A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: How to Restart MovieClip with stop in a Main Timeline Looping Animation?

Threaded View

  1. #2
    Senior Member
    Join Date
    Jun 2008
    Posts
    549
    Use the gotoAndPlay() method. This will play the movie clip on the next timeline iteration.

    For example,

    Code:
    MC.gotoAndPlay(2);
    If you are currently using the play() method to start the movie clip's animation. The playhead will still be at the end of the movie clip's timeline when the animation finishes. Therefore the next timeline iteration the movie clip will not play. If you use the MC.gotoAndPlay(2) method it will restart the playhead from the second frame.
    Last edited by ilike2; 06-20-2012 at 04:53 AM. Reason: typo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center