# Error 1010:

**URL:** <https://forum.kirupa.com/t/error-1010/313469>\
**Category:** flash\
**Created:** [August 31, 2010, 3:25pm UTC](https://forum.kirupa.com/t/error-1010/313469 "2010-08-31T15:25:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![skelcher1991](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@skelcher1991](https://forum.kirupa.com/u/skelcher1991)\
**Post date:** [August 31, 2010, 3:25pm UTC](https://forum.kirupa.com/t/error-1010/313469/1 "2010-08-31T15:25:32Z")

</div>

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);
