USING ACTIONSCRIPT 2
hello, im currently building a site with 3 buttons and each buttons loads an external swf for each section of the site on a empty movie clip, im having an issue with the video section that has an video thumb gallery loading flv videos,
every time i try to go somewhere else in the site, the video sound continues to play (loop) behind the scene.
this is the actionscript code im using for my buttons.
/* These two actions are run immediately when the movie loads so that the first
menu button in the menu is not initially clickable.*/
navMenu_mc.button1_mc.enabled = false;
navMenu_mc.button1_mc.gotoAndStop(3);
/*
You can add as many additional buttons as you like. Just remember to add functions
for them in this section of the code, as well as incorporating them into the
"mc. navMenu " movieClip symbol in the Library.
*/
// ---- Function to instantly reactivate the menu
function reActivateMenu () {
navMenu_mc.button1_mc.gotoAndStop(1);
navMenu_mc.button1_mc.enabled = true;
navMenu_mc.button2_mc.gotoAndStop(1);
navMenu_mc.button2_mc.enabled = true;
navMenu_mc.button3_mc.gotoAndStop(1);
navMenu_mc.button3_mc.enabled = true;
}
// ---- onRollOver, onRollOut, and onRelease event handlers for the buttons
navMenu_mc.button1_mc.onRollOver = function () {
this.gotoAndStop(2);
};
navMenu_mc.button1_mc.onRollOut = function () {
this.gotoAndStop(1);
};
navMenu_mc.button1_mc.onRelease = function () {
reActivateMenu();
this.gotoAndStop(3);
this.enabled = false;
contentBox_mc.gotoAndStop(1);
};
navMenu_mc.button2_mc.onRollOver = function () {
this.gotoAndStop(2);
};
navMenu_mc.button2_mc.onRollOut = function () {
this.gotoAndStop(1);
};
navMenu_mc.button2_mc.onRelease = function () {
reActivateMenu();
this.gotoAndStop(3);
this.enabled = false;
contentBox_mc.gotoAndStop(2);
};
navMenu_mc.button3_mc.onRollOver = function () {
this.gotoAndStop(2);
};
navMenu_mc.button3_mc.onRollOut = function () {
this.gotoAndStop(1);
};
navMenu_mc.button3_mc.onRelease = function () {
reActivateMenu();
this.gotoAndStop(3);
this.enabled = false;
contentBox_mc.gotoAndStop(3);
};
its there a way that i could stop this from happening?
thank you
Angel