Adding sound to the application


show more Adding sound to the application provides you with in-depth training on Web. Taught by Todd Perkins as part of the Flash CS3 Professional Beyond the Basics show less
please wait ...

Adding sound to the application

Now we'll add a soundtrack to our dancing robot. If you're following along, I'm working in 05_Soundtrack.fla in the Chapter 06 folder in the Exercise Files folder. Before we go to our ActionScript, let's take a look in the library at a sound called soundtrack.mp3. This is the soundtrack for our dancing robot. If you right-click or Control-click the sound in the library and choose Linkage, you can check the Export for ActionScript box, so that we can use the soundtrack in the ActionScript. For the Class, I'm going to truncate the default name, so that the Class is simply soundtrack.

Then I'm going to click OK. Let's go the first keyframe in the actions layer and open up the Actions panel by pressing Option+F9 on the Mac, or F9 on the PC. Above all the other code for new variable called sound, and the datatype will be soundtrack, all lower case. This is the same value that we just set in the linkage properties for our sound. We'll set it equal to a new instance ...

Adding sound to the application
Video duration: 2m 34s 5h 21m Intermediate

Viewers:

Adding sound to the application provides you with in-depth training on Web. Taught by Todd Perkins as part of the Flash CS3 Professional Beyond the Basics

Subject:
Web
Software:
Flash Professional
Author:
please wait ...