/ Published in: ActionScript 3
Expand |
Embed | Plain Text
gotoAndStop(currentFrame+1);
Comments
Subscribe to comments
You need to login to post a comment.
gotoAndStop(currentFrame+1);
Subscribe to comments
You need to login to post a comment.
or nextFrame();
This line handles looping back the first frame too:
gotoAndStop(currentFrame==totalFrames ? 1 : currentFrame+1);