Sound class provides us with programmatic control over sounds embedded or loaded into Flash applications. Other classes, such as
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
Sound classes. Once a sound is loaded into a
Sound object, you have full ...