PDA

View Full Version : Help, remove



AriesMK
May 20th, 2005, 11:25 AM
Hi, i was wondering if anyone knew how to remove a movie clip after it is done playing. I know this might sound alittle noobish. :)

scotty
May 20th, 2005, 04:12 PM
If it is on a removable depth

your_mc.removeMovieClip();

scotty(-:

AriesMK
May 20th, 2005, 04:44 PM
ya i know about removeMovieClip but i made a shape tween back stage and when i shoot my gun i have it attaching to my gun and playing but what i am trying to do is when the gun shoots it attachs the explosion plays the tween then removes the movieclip when it is done

lostinbeta
May 20th, 2005, 04:46 PM
Call the removeMovieClip() on the last animation of the tween.

It would then be _parent.removeMovieClip();


And as scotty said... it has to be on a removeable depth. Which it sounds like it is from your description, but if it isn't just use swapDepths(value) and use a number above 0 as the value (usually an outstandingly high number is a safe bet... like 140000)