This content has been marked as final. Show 6 replies
try using stopAllSounds();
that didn't do it..
If you are unloading the movie on a click, stopAllSounds(); called prior to unloadClip should kill the sound. It doesn't matter if that sound is on the timeline or a Sound object.
It isn't stopping the sound.. and I have set to stop before the movie is unloaded.. since the movie unloads after a Tween has finished, i can easily control that.. The sound is still there.
never mind, I had it on the wrong side of an if statement.. Thank you both for the enlightenment..
Sorry to hijack topic but perhaps you can share your wisdom. I have a similar problem I think.
I have a main movie (index.swf) that preloads my external SWF that is a menu button 4.swf
My index.swf has background music (song1) that plays on load. I also have background music (song2) that plays on my 4.swf
It works fine when I test 4.swf directly however when I load my main index.swf I do not hear the song2.
I used stopAllSounds(); in my4.swf to stop the background music (song1) and then load my song2
my_sound = new Sound(sound_loop);
This has gotten me to get both songs to play when the site is loaded and when I click on my menu for 4 button all the sound stops and my song2 never plays.
My actionscript is not very good so any details you can give would be greatly appreciated.