No need of any code to utilize the frame from 2 to 21 for an continuous loop.
Create a new layer. Name it actions.
on 21st frame add a keyframe at the layer of actions and add gotoAndPlay(2);
Hence, when the frame reachest 21 the actions again repeat the frame from 2. Thats it!
rajarajan07
Nearly a Posting Virtuoso
1,447 posts since May 2008
Reputation Points: 167
Solved Threads: 239