So I have a small issue. I have an animation that is set to stop when I open the swf. A play button is ther and works fine, When I hit it it plays through the animation, but stops once it's done. I need the animation to loopback to the begining. Can anyone help me out?
If you have a bunch of code on the first frame that sets anything up you might not want to return back to the first frame in your loop. Only you know what you have for code on the first frame to answer that. If that's the case then on the last frame of the animation just skip the first frame by telling it to go back to frame 2 to loop.
On the last frame:
If you wish to repeat frame 1 then put your stop() in a condition. Something like this:
if (loop == null)
// first time running (var loop doesn't exist)
// define the var so it will exist next time
var loop:Boolean = true;
// stop initially
The next time the animation returns to frame 1 the variable 'loop' will exist and the stop() will be ignored, continuing the playhead (looping).