Skip to main content
November 12, 2009
Question

Is there a way to destroy an timer on its parent removal from stage?

  • November 12, 2009
  • 1 reply
  • 432 views

Hi,

I'm having an issue where I am placing a timer inside of a MovieClip instance which is dynamically placed on stage. When I remove the MovieClip from the stage, the timer keeps on running.  It is sometimes a bit complicated to be able to stop all the timers inside of this MovieClip so I was wondering if there was a way to either destroy the MovieClip instance and thus destroy the timers within it? or how could I go about making sure the timers stop when their parent Object is not on stage.

Thanks for the help.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
November 12, 2009

you should explicity stop your timers.  even if your movieclip is gc'd that the timer will probably not stop.  i may test that later today if i get time.

kglad
Community Expert
Community Expert
November 12, 2009

addendum:  the timer doesn't stop even when the movieclip is gc'd.