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.
Streaming Sound
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.
WAV Soundtracks
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.
File Optimization
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.