Playing+Sounds


 * Suppose you have an .mp3 file on your computer. How do you get it into Flash?**

So go to your .fla file Go to the File Tab Go Down to Import Then Select "Import to Library" Now find your sound file And continue on, it should show up in your library, where you see the rest of the symbols


 * Once you have the .mp3 file in Flash, what do you need to do to make it something that you can use in the Actionscript file?**

So click on the sound file in the library, and go to it's properties Click on "Export For Action Script" Then Name the Class(be sure to name it with the first letter capitalized and no spaces. eg.("OuchSound")


 * Once you have done that, what steps do you need to take to play the sound in your program?**

Step 1: Go to your public class, where all your var statements are in your main move action script file(eg. AsteroidGame.as) Insert--- var asteroidCollisionSound:SkadooshSound; The Format for this statement is: var + what you want to refer to that sound as + : + what is the name of the class of the sound you want + ;

Step 2: In your public function for the class, write this " asteroidCollisionSound = new SkadooshSound;" the format is: "what you want to call it" = new "name of class of sound";

Step 3: Wherever you want it to play, you insert this: asteroidCollisionSound.play; Format: whatEverYouNamedIt.play;

If this was unclear, this is an example of the class asteroid program. I highlighted these three steps red in itto help you have a visual idea. Link to File: Link to File ^^^^^^^^^^


 * How can you make a longer sound stop in mid-play?**
 * IDK, I will ask Mr. Howe this tomorrow.**