PDA

View Full Version : removeMovieClip



Pattt
May 12th, 2007, 08:17 AM
I have a enterframe-code inside an MC's frame.
From there, I want to remove the MC. But how? removeMovieClip is removed. :P And I couldn't use this=null or removeChild(this) either.

Please help! :hoser:

senocular
May 12th, 2007, 12:05 PM
when you say removeChild in that own clip's enterFrame, you're telling it to remove one of its children. If you want it to remove itself, you have to have its parent remove it.


parent.removeChild(this);

Pattt
May 12th, 2007, 01:40 PM
Oh, nice! :) It works perfect, thanks!