Before a sound can be used it must be imported. Choose "Movie" > "Import Sound" or drag sound file into Flash Designer document. Flash Designer supports WAV and MP3 sounds. To display currently loaded sounds choose "Movie" > "Sounds" command.
Frame sound starts playing when Flash player displays the frame. To define the sound choose "Frame" > "Frame Sound" command.
By default the sound starts before the frame is displayed (after intro animations). To change this change "Start Sound On" option.
To add a background sound
Choose "Movie" > "Import Sound" and select loop1.mp3 file (or your own soundtrack). Click OK to import it. Click OK in
the Sounds list. Select the first frame of the movie (for example "Frame 1) and choose "Frame" > "Frame Sound" command. (If "Frame Sound" is grayed out you have to select the first non-Master frame in the Frame List). Click "Select Sound", select imported sound file and click OK. Hit F9 to test the sound.
Exclusive sound mode
Exclusive sound mode will stop other sounds playing and prevent playing 2 sounds simultaneously. Choose "Frame" > "Frame Sound" and change "Start Sound On" option to "Exclusive mode".
Adjusting frame duration to the length of the sound
Choose "Movie" > "Sounds" command, select the sound and read sound duration
in seconds. Click Cancel. Choose "Frame" > "Frame Delay" and adjust "Show Frame for"
to the length of the sound so the sound and the frame will finish at the same time.
Event sounds will play when the user clicks an item. To define an event sound choose "Action" > "Sounds" commands.
To assign a sound to a button
Choose "Movie" > "Import Sound" and select one of the sound files (for example AIP.wav). Click OK to import it. Click OK in the Sounds list. Select the button and choose "Action" > "Sounds" > "On Click Sound". Select the sound file and click OK. Hit F9 to test the click.
To remove the sound from the button
Select the button and choose "Action" > "Sounds" > "On Click Sound". Select option and click OK.
To stop the sound on click
Select the button and choose "Action" > "Sounds" > "On Click Sound". Select the sound to stop and click "Stop" checkbox. Click OK.
To create a button that stops all sounds (mute button)
Draw or import a button. Select the button and choose "Action" > "On Click". Select More Actions and choose Stop Sounds, Click OK.
Choose "Insert" > "Audio Stream" to load and play MP3 file in streaming mode. The file will not be embeded in the SWF file but loaded from external source. Double click the item to edit properties.
You can use WAV format sound files and place them in your Flash movie as streaming sound, music that plays in the background when movie is displayed. The WAV file must be saved in PCM compressed format.
To add the sound to the movie in Flash Designer:
- Open your animation in Flash Designer
- Choose "Movie" > "Sounds"
- Click "Browse" in "Background Sound" to browse for WAV file
- Specify how many times the sound should be played (default is 1)
- Click OK to confirm
Specifying the iteration count
By default each sound is played once. If the animation loops after it comes to the end,
the sound starts every time the animation loops. If you specify iteration count greater than one,
the sound will play continously during the movie.
You can achieve better compression results by using lower sample rates of your sound file.
If you choose stereo sound instead of mono the file will grow respectively.
If your sound is 44kHz Stereo and you want to keep your SWF file small, use Sound Recorder to resample
your sound to lower rate, for example 11kHz mono.
To verify compression format:
- Open Sound Recorder from Start menu > All programs > Accessories.
- Open the WAV file in Sound Recorder.
- Choose File > Properties.
- The file should be compressed in PCM format.
- If not, click "Format Now" and choose PCM as the format.