Posted By

weavermedia on 12/20/10


Tagged

as3


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

weavermedia
Josueriv


AS3 gotoAndStop next frame with looping


 / Published in: ActionScript 3
 

  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  

You need to login to post a comment.