312 Working with Sound
This chapter contains the following sections:
Importing sounds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312
Adding sounds to a document. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
Adding sounds to buttons. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315
Using sounds with Sound objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316
About accessing ID3 properties in MP3 files with Flash Player . . . . . . . . . . . . . . . 316
Using the sound-editing controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317
Controlling sound playback using behaviors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318
Starting and stopping sounds at keyframes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320
About the onSoundComplete event. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320
Compressing sounds for export . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
About using sounds in Flash Lite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .326
Importing sounds
You place sound files into Flash by importing them into the library for the current document.
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)
Flash stores sounds in the library along with bitmaps and symbols. As with graphic symbols,
you need only one copy of a sound file to use that sound multiple ways in your document.
NOTE
When placing a sound in the Timeline, you place it on a separate layer. For more
information, see “Adding sounds to a document” on page 313.