Flash can embed sounds in the SWF at author time or load external sounds at runtime. Embedded sounds can be manipulated through the timeline properties in the Properties inspector, but usually embedded and external sounds are controlled dynamically using the Sound object in ActionScript. Sound can be used to add life to your movies by adding soundtracks and user feedback during interactivity.
This sample demonstrates sound loading and playback using a simple set of custom controls. Click the buttons to control the sound or click the numeric stepper to change sounds.
User level: Intermediate
To view these samples, you need the following software and files:

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License