It is really simple and don't know why it doesn't work.
Here is my question.
I have a label(main, commercials, facts, shop)
On the label "facts"
I put two buttons which are next_btn and prev_btn which these buttons can navigate next frames or previous frames.
Here are the ac.
stop();
next_btn.addEventListener(
MouseEvent
.CLICK, goForward, false, 0, true);
prev_btn.addEventListener(
MouseEvent
.CLICK, goBack, false, 0, true);
function goForward(event:MouseEvent
){
nextFrame();
}
function goBack(event:MouseEvent){
prevFrame();
}
The next button(next_btn) is working but previous button(prev_btn) is not working.
Do you know why?
Start Free Trial