This content has been marked as final. Show 4 replies
it's possible to play a sound without attaching the sound to a frame. but it's not possible to do it using anything like your code.
use the sound() class to instantiate a sound, use attachSound() to attach a sound to your sound object from your library or loadSound() to load an external sound file into your sound object. use the start() method of your sound object to start your sound.
Put your sound in a movie clip and put that clip on the stage.
With the instance name of the clip as myClip simply use:
--> Adobe Community Expert
*Flash Helps* http://www.smithmediafusion.com/blog/?cat=11
*THE online Radio* http://www.tornadostream.com
*Must Read* http://www.smithmediafusion.com/blog
"IndioDoido" <firstname.lastname@example.org> wrote in message
> I would like to know if it's possible to have a button play a sound
> without it being in a frame?
> Something like gotoAndPlay(SOUND); or play(SOUND);
Thanks for the tips. I'm going to try both and see that's best for me.
If i need anymore help i'll be in touch ;-)
you'll need to do bit more if you use dan's suggestion and you will have to attach the sound to a frame using that suggestion (or you'll end up using my suggestion with dan's suggestion and then there's no point to adding the extra complexity of introducing an extraneous movieclip).