Sounds within Flash Documents
You can import the following sound file formats into Flash:
- WAV (Windows only)
- AIFF (Macintosh only)
- MP3 (Windows or Macintosh)
If you have QuickTime 4 or later installed on your system, you can import these additional sound file formats:
- AIFF (Windows or Macintosh)
- Sound Designer II (Macintosh only)
- Sound Only QuickTime Movies (Windows or Macintosh)
- Sun AU (Windows or Macintosh)
- System 7 Sounds (Macintosh only)
- WAV (Windows or Macintosh)
Macromedia Flash MX 2004 offer several ways to use sounds.
You can:
- make sounds that play continuously, independent of the Timeline
- synchronize animation to a sound track. (That is what you have to do in D202).
- add sounds to buttons to make them more interactive
- vary the volume of an imported track.
- make sounds fade in and out for a more polished sound track.
There are two types of sounds in Flash: event sounds and stream sounds:
- An event sound must download completely before it begins playing, and it continues playing until explicitly stopped.
- Stream sounds begin playing as soon as enough data for the first few frames has been downloaded; stream sounds are synchronized to the Timeline for playing on a website.
You select compression options to control the quality and size of sounds in exported SWF files. You can select compression options for individual sounds using the Sound Properties dialog box or define settings for all sounds in the document in the Publish Settings dialog box.
You can use sounds in shared libraries to link a sound from one library to multiple documents. You can also use the ActionScript 'onSoundComplete' event to trigger an event based on the completion of a sound.
You can use behaviors that are prewritten ActionScript scripts to load and control the playback of sounds. As with behaviors, the media components contain prewritten ActionScript scripts to load and control sounds (MP3 sounds only) but also provide a controller for stop, pause, rewind, and so on.