Sound
1. Download the Sample Soundtrack Flash Movie and open it. Then open your own movie where you want to add a soundtrack.
2. Create two new layers in your own Flash Movie, one called “Soundtrack” and one called “Sound Controller.”
3. Select Frame 1 of the layer Sountrack. Drag the graphic called Sountrack1 to the stage. Select the Soundtrack on the stage (you will only see a small circle and crosshairs, so be careful with this step).
4. With the instance of soundtrack1 still selected, open the Properties panel. Change the behavior of the clip from “Graphic” to “Movie Clip.”
5. With the instance of soundtrack1 still selected, open your Action panel and paste this code:
on (release) {
// Play Sound Behavior
_global.Behaviors.Sound.soundtrack.start(0,1);
// End Play Sound Behavior
}
6. With the Action panel still open, select Frame 1 of the layer called Soundtrack. Go to the Action window and paste this code:
soundtrack = new Sound();
soundtrack.setVolume(80);
7. Select Frame 1 on the Sound Controller layer. Drag the movie clip called Sound to the stage where you want your controller to appear.
8. Save your work and test your movie.
If all is working, you can now go in and replace the sounds with ones more appropriate for your movie (the sounds included in this sample aren’t appropriate for anything!!).
Good Luck!!