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