Problems with gotoAndPlay
I have written Actionscript 3 to listen for keyboard events. For instance, if the user is on frame 2 of the timeline, and they press the right arrow key on the keyboard, they will gotoAndPlay (3). This works fine.
I have also programmed the left arrow key to go back frames. For instance, if they are on frame 2, and they press the left arrow, it will gotoAndPlay (1). This works OK, but here is the problem.
Once they go back to frame 1, if they press the right arrow key, it should go to frame 2. But, it doesn't. It picks up from frame 2 and jumps to frame 3.
Why?