option and click OK.
To stop the sound on click
Select the button and choose "Item" > "Sounds" > "OnClick". 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 "Item" > "Actions" > "OnClick". Select ActionScript and type the command: stopAllSounds();
Click OK.
Streaming 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" > "Export Options"
- Click "Browse" in streaming 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.