Groups | Blog | Home
all groups > flash actionscript > february 2006 >

flash actionscript : Cancelling audio with a loaded .swf


bb73
2/24/2006 8:33:35 PM
I have a container file used for loading .swfs for an interactive CD I'm
building. In this container is a sound object controlled by a play/pause
button that plays backgound music as the user reads the content on the disc.
Since it's in the container it sits on top of all .swfs that are loaded into it.
My problem is that some the the .swfs being loaded into the container have
video and I'd like for those .swfs to somehow tell the container to stop
playing the music without the user having to hit the pause button. (if the
music is playing when the video is loaded it contiues to play as the video
plays)
Is it possible for a loaded .swf to cancel the audio that is in the container?

thanks,
Brant
michael novia
2/24/2006 9:02:44 PM
yes totally possible

_root.myContainer.movieclip.mySound.....etc.
bb73
2/24/2006 9:31:32 PM
I sorta know where you're going with this, but not fully. Can you elaborate?

Stasa
2/25/2006 2:22:46 AM
In the external movie clip you are loading, put code that will point to the
containter you have sound (_root.myContainer.stopAllSounds();) to stop sound.
... so when the movie loads it will execute the code you put in it...

I hope this help...
bb73
2/27/2006 1:40:29 PM
AddThis Social Bookmark Button