Showing posts with label removeMovieClip. Show all posts
Showing posts with label removeMovieClip. Show all posts

Wednesday, July 29, 2009

Remove a Flash Movie Clip from the stage AS2

Just some pure flash geekery:

Ok, so removeMovieClip() only works for dynamically created movieclips, but what if you have a bizarre scenario where you want to trash a clip that was created during development?

Easy as pie:

Assuming "myMovie" is what you want deleted:

myMovieClip.swapDepths(_root.getNextHighestDepth());
myMovieClip.removeMovieClip();