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
  2.  
  3. gotoAndStop(currentFrame==totalFrames ? 1 : currentFrame+1);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.