# Removing MC and creating it again

**URL:** https://forum.kirupa.com/t/removing-mc-and-creating-it-again/251863
**Category:** flash
**Created:** [February 13, 2008, 11:04am UTC](https://forum.kirupa.com/t/removing-mc-and-creating-it-again/251863 "2008-02-13T11:04:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Poco](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@Poco](https://forum.kirupa.com/u/Poco)
#### Post date: [February 13, 2008, 11:04am UTC](https://forum.kirupa.com/t/removing-mc-and-creating-it-again/251863/1 "2008-02-13T11:04:23Z")

</div>

Hi everybody,  
I have quite tough time trying to remove a MC completely and I can’t find a solution to it. Here is what I do:

1. I create an MC using createEmptyMovieClip() (let’s call it “MAIN”)
2. I create 10 MC’s in MAIN and I draw to them with the Flash api, the depth for the 10 new MC’s is MAIN.getNextHighestDepth()
3. Now I call MAIN.removeMovieClip() - works, MAIN is removed  
—so far so good but now comes the problem—
4. I create an MC called MAIN again, same depth as the previous one
5. I create more MC’s in MAIN and I draw to them with the Flash api BUT the old MC’s seem to be still there, even the depths for the new ones are 11-20 so the old ones are obviously there.

How the heck do I remove the old MAIN completely with all it’s objects and properties? All comments greatly appreciated, thanks for reading!

P.
