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 ...
Get ActionScript 3.0: Visual QuickStart Guide 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.