i have 6 buttons
every button linked to different movieclip … when i click on button 1 movieclip load correctly, but the problem is, when i click on button 1 again, movieclip load again …
the question is: i want when i click on button 1, i can’t click on it again, until i click on another button…
sorry but i had another question: i created my buttons animations with “labels” first label is “over” for roll over and second is “out” for roll out, labels “over” and “out” is working well, but the problem is, when i click on the button, it stop in frame (20), but when i roll the mouse out the button, it goes to play “out” label which is roll out, i think i need to use “if” condition… tell me what to do, and i will be thanks
here is my codes
home_mc.buttonMode = true;
works_mc.buttonMode = true;
news_mc.buttonMode = true;
services_mc.buttonMode = true;
aboutus_mc.buttonMode = true;
contact_mc.buttonMode = true;
var currentPage:MovieClip = home_mc;
var ContactPage:pageContact = new pageContact();
var ServicesPage:pageServices = new pageServices();
ContactPage.x = ServicesPage.x = -746.7;
ContactPage.y = ServicesPage.y = -35.5;
home_mc.TargetMC = homepage_mc;
contact_mc.TargetMC = ContactPage;
services_mc.TargetMC = ServicesPage;
home_mc.addEventListener(MouseEvent.ROLL_OVER, OnOver);
works_mc.addEventListener(MouseEvent.ROLL_OVER, OnOver);
news_mc.addEventListener(MouseEvent.ROLL_OVER, OnOver);
services_mc.addEventListener(MouseEvent.ROLL_OVER, OnOver);
aboutus_mc.addEventListener(MouseEvent.ROLL_OVER, OnOver);
contact_mc.addEventListener(MouseEvent.ROLL_OVER, OnOver);
function OnOver(e:MouseEvent):void
{
e.currentTarget.gotoAndPlay(“over”);
}
home_mc.addEventListener(MouseEvent.ROLL_OUT, OnOut);
works_mc.addEventListener(MouseEvent.ROLL_OUT, OnOut);
news_mc.addEventListener(MouseEvent.ROLL_OUT, OnOut);
services_mc.addEventListener(MouseEvent.ROLL_OUT, OnOut);
aboutus_mc.addEventListener(MouseEvent.ROLL_OUT, OnOut);
contact_mc.addEventListener(MouseEvent.ROLL_OUT, OnOut);
function OnOut(e:MouseEvent):void
{
e.currentTarget.gotoAndPlay(“out”);
}
home_mc.addEventListener(MouseEvent.CLICK, newPage);
contact_mc.addEventListener(MouseEvent.CLICK, newPage);
news_mc.addEventListener(MouseEvent.CLICK, newPage);
works_mc.addEventListener(MouseEvent.CLICK, newPage);
services_mc.addEventListener(MouseEvent.CLICK, newPage);
aboutus_mc.addEventListener(MouseEvent.CLICK, newPage);
function newPage(e:MouseEvent):void
{
e.currentTarget.gotoAndStop(20);
currentPage.TargetMC.gotoAndPlay(“out”);
currentPage = MovieClip(e.currentTarget);
addChild(currentPage.TargetMC);
currentPage.TargetMC.gotoAndPlay(1);
}