• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Controlling Sound > The Sound Object

The Sound Object

Attaching a sound file to a keyframe in the Timeline is an easy way to incorporate sounds into your movie. Two valid ways to integrate sound are to use the Event Sync option to play a clicking sound in the down state of a button symbol, and to use the Stream Sync option to synchronize dialogue with an animation. But if you need to control when a sound plays, or to dynamically change its volume and playback through the left and right speakers, turn to the Sound object.

The Sound object is a Flash-defined class whose methods control sound files imported and stored in the Library. You need to instantiate the Sound object using a constructor function to give it a name, just as you've done with the Color object in the previous chapter. Once the Sound object is named, you'll be able to use it to play and modify sound files in your Library.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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