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
This turns it off (myPlayer is flv playback component)
This turns it back on (clip event on component)
I can't get setVolume to affect the music.
Any help is much appreciated
Peace
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
Code:
onEnterFrame = function() {
bgSound = new Sound(this);
bgSound.attachSound("sound9");
bgSound.start(0, 99);
delete this.onEnterFrame;
}
Code:
myPlayer.onEnterFrame = function(){
_root.bgSound.stop();
delete this.onEnterFrame;
}
Code:
onClipEvent(unload){
_root.bgSound.start(0,99);
}
I can't get setVolume to affect the music.
Any help is much appreciated
Peace