Hi all, I’m in a bit of a bind that truly confounds me and hope that you guys could shed some light.
See, I have a movieclip in the main stage that has several frames. Then, I created a separate layer for the code that goes like this:
addEventListener(MouseEvent.CLICK, nextPage);
function nextPage(e:MouseEvent):void {
this.gotoAndStop(this.currentFrame+1);
}
Except for the last frame, which does not contain this code, seems to perform as expected. However, when I called up the same movieclip again by having it go back to a certain frame:
tutorial_MC.gotoAndPlay("2");
and the whole stuff seems to work fine, when I click and expecting the frame to go to the next, it seems to skip one frame and land on the other instead. For example, if I’m on frame 16 it’ll jump to 18, then 20, and so forth.
I tried other alternatives but they all seem to yield the same result.