-HOME-


Tutorial Page: <1-2>

 

Welcome to my second tutorial! Adding sound to flash movies is a fun way to make your movies more interactive and dynamic. Adding sound in flash seemed a daunting task to me at first, however it is surprisingly easy! Hopefully this tutorial will help you out in your future flash endeavors. Just a quick note - you will need to have a music loop or music file of some kind handy to complete this tutorial, preferably an .mp3 file.

 

Create or open the flash document you want to add sound to. Create one layer for your 'Play' button, one for your 'Stop' button, another for your sounds, and yet another layer where you should place a 'stop();' command in the Actions panel (This is a fairly superfluous layer for this project, however I like to add it regardless). You can obviously add more layers depending on your project's specific needs. I inserted frames (not keyframes) on frame 20 for each layer just to give me some room to mess around, which is what I recommend doing - you really only need about 5 frames though.

 

Now we create our 'Play' and 'Stop' buttons. Go to Insert --> New Symbol...(ctrl+F8); name each button appropriately; make sure to click the 'Button' radio button under 'Behaviors' for both buttons.

 

This step is one of the more important steps in this tutorial - so pay attention! On the 'sounds' layer we created earlier we are going to make four keyframes one after another, as shown in the figure below. On the first keyframe add a 'stop();' command in the Actions panel. On the second keyframe add 'stopAllSounds();' and 'gotoAndStop(3);' (The frame number entered in the gotoAndStop command will change according to your particular project, just make sure it points to the frame with the sound - which we are going to add next). On the third frame add a 'stop();' command in the Actions panel, then go to the Properties panel and make sure that you have the layer set to "Sync: Event - Repeat - 999." We are going to add the actual loop in the next step, so don't worry about the "Sound:" option yet. Leave the fourth keyframe blank.

 

Click here to go to the next page

Tutorial Page: <1-2>