AS3 gotoAndStop next frame with looping

/ Published in: ActionScript 3
Save to your folder(s)

Copy this code and paste it in your HTML
  1. // steps to next frame on the timeline and loops back round to frame 1 when it hits the end
  3. gotoAndStop(currentFrame==totalFrames ? 1 : currentFrame+1);

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.