hello guys first post and inexperienced so try not to be too harsh. i am building a website for a local pub/restuarant and i cannot get my movie clip inside a movie clip to stop looping through the pages on the second movie clip. i have already had the error 1009 and sorted that out from other pages on here just need to sort out this error now HELP PLEASE!!! :beam:
i cant upload the file as its too big so here is the code:
pages.stop();
function makebutton(mc:MovieClip,num:int):void {
mc.addEventListener(MouseEvent.CLICK,onclk);
mc.buttonmode=true;
mc.num=num;
}
function onclk(e:MouseEvent):void {
pages.gotoAndStop(e.target.num);
}
makebutton(home_btn,1);
makebutton(aboutus_btn,2);
makebutton(menu_btn,3);
makebutton(events_btn,4);
makebutton(gallery_btn,5);
stop();
pages.menupages.stop();
pages.back_btn.addEventListener(MouseEvent.CLICK, goFunction);
function goFunction(e:MouseEvent):void {
pages.menupages.gotoAndStop;
}
pages.menupages.stop();
function makebutton1(mc:MovieClip,num1:int):void {
mc.addEventListener(MouseEvent.CLICK,onclk2);
mc.buttonmode=true;
mc.num1=num1;
}
function onclk2(e:MouseEvent):void {
pages.menupages.gotoAndStop(e.target.num);
}
makebutton1(pages.back_btn,1);
makebutton1(pages.breakfast_btn,2);
makebutton1(pages.snacks_btn,3);
makebutton1(pages.mains_btn,4);
makebutton1(pages.steaks_btn,5);
makebutton1(pages.beverages_btn,6);