Hi guys
I’m using AS2
I have a movie with Bg music playing
I need to silence music when I enter my video section & turn back on when I leave
At the moment it does those things but when I enter another section it adds another instance of Bg music
This initialises the Bg music
onEnterFrame = function() {
bgSound = new Sound(this);
bgSound.attachSound("sound9");
bgSound.start(0, 99);
delete this.onEnterFrame;
}
This turns it off (myPlayer is flv playback component)
myPlayer.onEnterFrame = function(){
_root.bgSound.stop();
delete this.onEnterFrame;
}
This turns it back on (clip event on component)
onClipEvent(unload){
_root.bgSound.start(0,99);
}
I can’t get setVolume to affect the music.
Any help is much appreciated
Peace