O'Reilly logo

ActionScript 3.0: Visual QuickStart Guide by Derrick Ypenburg

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

Chapter 19. Working with Sound

The Sound class provides us with programmatic control over sounds embedded or loaded into Flash applications. Other classes, such as SoundTransform and SoundChannel, also assist the Sound class in controlling and setting the properties of sounds.

Flash allows developers to embed a sound on the timeline, but you have limited options for controlling sound when you’re working with the timeline. Instantiating and controlling a sound using ActionScript, on the other hand, gives you full control over the playback, volume, and channels (left and right speakers). You can also load external sounds into an application using ActionScript and the Loader and Sound classes. Once a sound is loaded into a Sound object, you have full ...

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