# MovieClip still exists without being displayed

**URL:** <https://forum.kirupa.com/t/movieclip-still-exists-without-being-displayed/325944>\
**Category:** flash\
**Created:** [November 13, 2011, 2:42pm UTC](https://forum.kirupa.com/t/movieclip-still-exists-without-being-displayed/325944 "2011-11-13T14:42:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![coggia](https://avatars.discourse-cdn.com/v4/letter/c/8c91f0/32.png) [@coggia](https://forum.kirupa.com/u/coggia)\
**Post date:** [November 13, 2011, 2:42pm UTC](https://forum.kirupa.com/t/movieclip-still-exists-without-being-displayed/325944/1 "2011-11-13T14:42:40Z")

</div>

Hello everyone, I’m callinf for help because I get a weird problem :

I add a movie clip on a displayobject like this : (mc is a MovieClip with frames on it)

```auto

mc = new Mc();
levels.addChild(mc);

```

So here it is, my mc is displayed on levels object…  
For debug reason at each frame in my mc object i use :

```auto
trace("mcMoves on "+parent )
//it traces "mcMoves on [object Levels]"

```

Now i want to remove it (and all the objects displayed on the level object) like this:

```auto
while (levels.numChildren) levels.removeChildAt(0);
levels = null;

```

So everything disappears, but it still trace :  
“mcMoves on null”

so my object just disappear from my view, not from the code, how can i erase my object for good ?
