O'Reilly logo

Understanding Flash MX 2004 ActionScript 2 by Alex Michael

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required