I'm new in Flash and AS3. I have problem whit my project. I want to keep my buttons working in all of my frames and keep them working no matter how many times they are click or rollover-d
My code:
stop();
button1.addEventListener(MouseEvent.MOUSE_OVER, goto);
button2.addEventListener(MouseEvent.MOUSE_OVER, goto1);
button3.addEventListener(MouseEvent.MOUSE_OVER, goto2);
function goto(e:MouseEvent):void {
gotoAndStop(2);
}
function goto1(e:MouseEvent):void {
gotoAndStop(3);
}
function goto2(e:MouseEvent):void {
gotoAndStop(4);
}
It is working ok for the first time but when I go to button1 it take mi to frame 2.. and button2 take mi to frame 3 but on frame 3 the button1 is not working anymore.
Its look like every button is working only one time.
I have the same buttons on all of my frames. It is going to be 82 buttons and 82 frames so its going to be a problem.
If someone is wondering I'm making interactive infographic.
I hope someone can help me.