Skip to main content
Inspiring
October 1, 2019
Question

way to Completely 'Reset' a MovieClip

  • October 1, 2019
  • 1 reply
  • 1555 views

Hello all,

 

I've got a situation where I have multipe MC's on the same frame... each is animated and doing something different.  As the user interacts with them, I'd like a way (when cued) to reset the MC back to it's initial state - not gotoAndStop("MC frame 1"); - but actually set it like it's running for the first time.  

 

Is there a command to resetMovieClip?  I need this reset not to affect the other MC's that are running simultaneously.

 

Thanks in advance for taking a look!

 

Best,

 

    This topic has been closed for replies.

    1 reply

    JoãoCésar17023019
    Community Expert
    Community Expert
    October 1, 2019

    Hi.

     

    What exactly do you need to be reset other than the current frame?

     

     

    Regards,

    JC

    Inspiring
    October 2, 2019
    Several things including some timers, counters, etc. These are still firing when you jump back to the first frame of the MC. I'm looking for an easier way to 'reset' the MC and was hoping there's a command that accomplishes that.
    Colin Holgate
    Inspiring
    October 2, 2019
    If the movie clips have code to take care of those things when they are removed from the stage, an easy solution would be to remove the current one, and add a new one. That would assume that they are symbols in the library, and you can do addChild(new Thingy() as MovieClip) as the way you add them to the scene.