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