This content has been marked as final. Show 5 replies
onEnterFrame, despite its name, does not execute once upon entry of the playhead into a frame. it executes repeatedly whether the playhead is moving or not. so, that's not what you want to use.
attached to the frame where you want your sound to stop, use:
Thank you sooooo much! That definitely works. Still not clear on the fade sound but I'll settle for this. Many thanks.
Okay. Now when the user navigates to this mc the music stops (thanks to your help). Do you know how that when they exit this mc to navigate anywhere else in the site I can have the music resume? I'm hoping there is a command on exiting the movie clip the music will resume regardless of where they navigate to.
Thank you again!
there must be some way a user navigates away from this frame. commonly a button press would do it. it's in that button's code, that you would add
That works but then if the music is already playing when they click on the other buttons that has mySound.start() I get two instances of the sound file playing.
Is there an If Then statement I can add that if the music is already playing not to start another instance of the sound file?
create a boolean variable that you use to record whether your sound's start() method has been most recently called or its stop() method.