If we compare this tutorial with the previous two tutorials the difference is enormous. This tutorial gives us the chance to turn on and turn off the sound using play and stop buttons.
Step 1Create a new Flash Document, click on file > Import > Import to Library and choose C:disk > Windows > Media > Windows XP Startup, to import a sound into a flash Library.
Step 2Draw a "play" and "stop" buttons on the stage.
Step 3After that select it (Ctrl+A) and press F8 on the keyborad (Convert to Symbol) to convert it into a Movie Clip. Look at the picture below!

Step 4Double click on a new made Movie Clip (stop and play buttons) or right click and choose Edit in Place.
Step 5Select the "play" button, and press F8 on the keyboard to convert it into a button. Look at the picture below!

Step 6Select the "stop" button, and convert it into a button in an equivalent way like we have converted the play button.
Step 7Insert a new layer and name it sound. Then click on the first frame of layer sound and using drag and drop technique move your sound (Windows XP Startup) from the Library on the stage.
Step 8Click again on the first frame of layer sound, open the Properties Panel (Ctrl+F3), and under Repeat option set some huge number.
#ads#
Step 9Insert a new layer and name it action.
Step 10Take the Selection Tool (V), and do like it is shown on the picture below! (Select the second frame of all layers and press F6)
Step 11Click on the first frame of layer action, open the Action Script Panel (F9), and paste this script:
stop ();
Step 12Select the second frame of layer action, and paste this script:
stopAllSounds();
Step 13Click on the first frame of Layer1, select the "play" button, and press Ctrl+B on the keyboard (Break Apart).
Step 14While you're still on the first frame of Layer1, select the "stop" button, open the Action Script Panel (F9) and paste this script:
on (release) {
nextFrame();
}
Step 15Click on the second frame of Layer1, select the "stop" button and press Ctrl+B on the keyborad to break it, like we have done for "play" button in step 13.
Step 16While you're still on the second frame of Layer1 select the "play" button, open the Action Script Panel (F9) and paste this script:
on (release) {
prevFrame();
}
Test your movie (Ctrl+Enter).
We're done!
Bye!
Download source file (.fla)