• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Using Sounds

Now that we've imported the sounds into our movie, we can explore how to make them play at the correct times. There's really only one place you can use sounds in Flash: in keyframes. (One exception is adding sounds dynamically with the advanced ActionScripting method for sound objects called attachSound.) If you want a sound to play whenever the user places his or her cursor over a button, you still need to place the sound in a keyframe—it's just a keyframe in the button. Attaching sounds to a button is a little more complex, and we'll cover that in depth in Hour 13, “Making Buttons for Your User to Click.”

Now that we know sounds go in keyframes, we need a way to put them there. When you select a keyframe, the Properties panel provides a way to control what sounds play when you reach the selected keyframe. Flash provides other clues for you to “see” where sounds have been placed. For example, if your Timeline is long enough, you'll see a waveform for the sounds being used (as shown in Figure 10.3).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint