HELP ADOBE AS3! Playing frame twice is not working
okay so I'm almost done with my website, but i got really stuck on the last part.
i have a main page that works perfectly wen i just open my site, in it are buttons that takes me to three other minor pages, there are buttons in the minor pages that takes you back to the main page. when i click on these buttons and get i succesfully get to the mainpage, the codes don't work anymore and i cant click on the buttons to go to the minor pages :S!!! WHAT IS THE PROBLEM :'(.. it works in the begining and then it does't this doesnt make sense:
this is the code i use:
stop();
buttons.buttonmotion.addEventListener(MouseEvent.CLICK, klk);
function klk(event:MouseEvent):void {
gotoAndPlay("motionreal");
}
stop();
buttons.buttonmodeling.addEventListener(MouseEvent.CLICK, hhh);
function hhh(event:MouseEvent):void {
gotoAndPlay("modelingreal");
}
stop();
buttons.buttonprint.addEventListener(MouseEvent.CLICK, kjk);
function kjk(event:MouseEvent):void {
gotoAndPlay("printreal");
}
stop();
buttons.buttonweb.addEventListener(MouseEvent.CLICK, lkk);
function lkk(event:MouseEvent):void {
gotoAndPlay("webreal1");
}
stop();
buttons.buttonaboutme.addEventListener(MouseEvent.CLICK, sos);
function sos(event:MouseEvent):void {
gotoAndPlay("aboutmereal");
}