Toggling Sound (AS3)

WE TOOK A quick look at ActionScripted audio in Chapter 8, but that was only an hors d’oeuvre. In that exercise, you loaded sounds from the Library. By loading your audio from external files instead, you can reduce the overall size of your SWF and still have all the programmatic control described earlier. 10 to 1, you’ll find that sound is a common part of your day-to-day Flash workflow, so let’s explore a bit more.

 

images

1 One of the most commonly requested audio features in a Flash movie is a mute button, something that gives the user the option to temporarily pause the audio, or silence it while it keeps playing. We’ll build ...

Get How to Cheat in Adobe Flash CS4 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.