| Now we will import our loop and make our buttons control the loop! |
| Go to File --> Import --> Import to Library... and select the loop/music file you would like to be played. Now, click on the third frame of the 'sounds' layer that we left alone earlier in Step 3. In the 'Properties' panel(1), under 'Sound:', click the drop down menu - your imported music file should now be an option...select it. Your sound is now ready to be controlled! |
![]() |
| Click on your 'Play' button and add the Actionscript shown below into the Actions panel. (You will notice that the on (release) { command points to a movie clip we have not created. Do not add this script unless you want to have an animation accompany the 'Play' 'Stop' buttons - this option will be explained later on if you are curious). *MAKE SURE YOU CLICK ON THE 'PLAY' BUTTON BEFORE ADDING THE ACTIONSCRIPT, DO NOT SIMPLY CLICK THE FRAME YOU HAVE THE 'PLAY' BUTTON ON. |
![]() |
| Now click on the 'Stop' button and add the Actionscript shown below into the Actions panel. (Again, the sound_bars.stop(); command is pointing to a movie clip we have not created yet - do not add this unless you are planning on adding a small animation to the buttons). Once this is complete you should be able to test your movie (Ctrl+enter) and have functional 'Play' and 'Stop' buttons. That's all there is to it! If you would like to add a small animation to the whole thing, continue to Step 7. |
![]() |
| If you want to have a mock-equalizer animation play each time you click 'Play' then create a new Movie Clip named 'sound_bars'. You can do whatever you like in the movie clip, I just have bars moving up and down to make it look cooler. To make this animation start and stop with your 'Play' and 'Stop' buttons simply add the extra Actionscript I told you to ommit in Steps 5 and 6. |
![]() |
| Here is my finished product. This is the bottom bar used for Sun Zoo's website, which you can check out at www.Sun-Zoo.com! |
| That concludes my Flash Sound tutorial. I hope it was of some use to you. Please let me know what I can do differently in any future tutorials, and/or give me ideas for future tutorials. I really appreciate any comments that you might have, so drop me a line at cgx@abstractallusion.com |