O'Reilly logo

How to Cheat in Adobe Flash CS4 by Chris Georgenes

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

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

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