7

Sound Object

This chapter looks at the Sound object. The Color and Sound objects are very similar in that they both require separate objects to add new characteristics to a movie clip, such as scripted audio or color changes. This chapter explores the construction of these objects and shows you how to implement them in your movie focusing.

The Sound object lets you control sound in a movie. You can add sounds to a movie clip from the library while the movie is playing and control those sounds. The Sound object has four elements:

  • A sound file imported into the library.
  • A sound instance created with the new Sound( ) constructor.
  • A MovieClip object that stores the loaded sound file.
  • A link to the identifier for the linkage ID.

If you do not specify ...

Get Understanding Flash MX 2004 ActionScript 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.