PDA

View Full Version : removeMovieClip


Pattt
05-12-2007, 07: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
05-12-2007, 11:05 AM
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
05-12-2007, 12:40 PM
Oh, nice! :) It works perfect, thanks!