jumpropek
11-21-2008, 12:00 AM
HELP!!!!
I have no way to detect which movie is currently playing on stage so that when I click on a button I want movie 1 to play while I fade out the other movies that have previously been clicked but not removed from the stage.
I don't want to see stacked movies...
I have 8 buttons with 8 corresponding movies.
On Btn1 click, play Movie1,
on Btn2 click, play Movie2,
on Btn3 click, play Movie3,
ie. (all 8 of my buttons are movies, and I'm telling each mc btn to play a separate 8 image based mc movies)
btn1.addEventListener(MouseEvent.MOUSE_OVER, pushPlus);
btn1.addEventListener(MouseEvent.MOUSE_OUT, backPlus);
btn1.addEventListener(MouseEvent.CLICK, displayPlus);
function pushPlus(e:MouseEvent) {
btn1.gotoAndPlay("push");
}
function backPlus(e:MouseEvent) {
btn1.gotoAndPlay("back");
}
function displayPlus(e:MouseEvent) {
btn1.gotoAndPlay("on");
btn2.gotoAndPlay("hide");
btn3.gotoAndPlay("hide");
btn4.gotoAndPlay("hide");
btn5.gotoAndPlay("hide");
btn6.gotoAndPlay("hide");
btn7.gotoAndPlay("hide");
btn8.gotoAndPlay("hide");
img1_mc.gotoAndPlay("fadeIn"));
//-- I want to say here if it's playing img1_mc
then tell only the current movie (or previously clicked button img3_mc let's say) to fade out, and make sure rest of the other movies aren't playing and I'm not seeing it.
}
I have no way to detect which movie is currently playing on stage so that when I click on a button I want movie 1 to play while I fade out the other movies that have previously been clicked but not removed from the stage.
I don't want to see stacked movies...
I have 8 buttons with 8 corresponding movies.
On Btn1 click, play Movie1,
on Btn2 click, play Movie2,
on Btn3 click, play Movie3,
ie. (all 8 of my buttons are movies, and I'm telling each mc btn to play a separate 8 image based mc movies)
btn1.addEventListener(MouseEvent.MOUSE_OVER, pushPlus);
btn1.addEventListener(MouseEvent.MOUSE_OUT, backPlus);
btn1.addEventListener(MouseEvent.CLICK, displayPlus);
function pushPlus(e:MouseEvent) {
btn1.gotoAndPlay("push");
}
function backPlus(e:MouseEvent) {
btn1.gotoAndPlay("back");
}
function displayPlus(e:MouseEvent) {
btn1.gotoAndPlay("on");
btn2.gotoAndPlay("hide");
btn3.gotoAndPlay("hide");
btn4.gotoAndPlay("hide");
btn5.gotoAndPlay("hide");
btn6.gotoAndPlay("hide");
btn7.gotoAndPlay("hide");
btn8.gotoAndPlay("hide");
img1_mc.gotoAndPlay("fadeIn"));
//-- I want to say here if it's playing img1_mc
then tell only the current movie (or previously clicked button img3_mc let's say) to fade out, and make sure rest of the other movies aren't playing and I'm not seeing it.
}