View Full Version : Sound name help

12-28-2007, 12:37 AM
I been using a video to learn flash and i got a point where i had to type this:

var supersound:Sound = new Sound(???);

Now the part in brackets is the name of the sound file now this guy says something to do with the name of the clip... now what i was going to put was the sound file like supercollosal.mp3

But he just puts "super" but no idea where he named the sound file to super for short cos he didn't quite mention it.. i dont see an area to name the sound clip to something i see a box called:

<Frame Label>

Which comes up when i click each layer in the properties.. is that what he had done to give it a shorthand name ?

12-28-2007, 03:04 AM
I'll cover the bases for you just to make sure you get it all. First you have to first import the sound to the library, and then right click on it and select Linkage. Give it a name of "super" and make sure the export this symbol option is selected. Then to add a sound object you do something like this:

var supersound:Sound = new Sound(this);

So I believe the step missed is the Linkage issue, so check that.

You can also read this: http://www.kirupa.com/developer/actionscript/sound.htm

12-28-2007, 02:19 PM
My video i have doesn't do that.. he imports them to the library drags it on to the stage with the movie clip it belongs with and just sets it to too loop.. doesn't do any linkage stuff.. is there like different ways to do the same thing basically?

01-01-2008, 08:39 AM
Ok so that is essentially the same thing. By dragging it to the stage you are making an instance of the sound object and can label it, but by doing the linkage stuff you are able to access stuff in the library without it being on stage. Same thing, both should get you to be able to access it. Does it work?