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

Lesson 17. Scripting for Sound > Creating a Sound Object

Creating a Sound Object

To control sounds dynamically, you must use Sound objects. One of the most important points to realize about Sound objects is that you associate each one with a particular timeline in your movie at the time you create the sound. To dynamically control sound on the root timeline, you would need to create a Sound object and associate it with the root timeline. To dynamically control sound in a movie clip instance, you would have to create a Sound object associated with that timeline. Sound objects are also used to control sounds in movies loaded into levels. Because Flash projects can contain multiple timelines, projects can contain several Sound objects, each controlling the sound in a different timeline.

Note

Although a particular timeline may contain several layers of sounds, it should be understood that when a Sound object is created and associated with a particular timeline, all sounds in that timeline will be controlled equally using that single Sound object. Setting the volume of that timeline's Sound object to 50 will relatively decrease all sounds on all layers of that timeline by 50 percent.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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