# removeMovieClip - not working

**URL:** <https://forum.kirupa.com/t/removemovieclip-not-working/221874>\
**Category:** flash\
**Created:** [April 8, 2007, 11:10pm UTC](https://forum.kirupa.com/t/removemovieclip-not-working/221874 "2007-04-08T23:10:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbailey](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jbailey/32/2380_2.png) [@jbailey](https://forum.kirupa.com/u/jbailey)\
**Post date:** [April 8, 2007, 11:10pm UTC](https://forum.kirupa.com/t/removemovieclip-not-working/221874/1 "2007-04-08T23:10:59Z")

</div>

I read the other posts pertaining to removeMovieClip(), but none of them are using a button within the attached movie to remove the attached movie itself. Is this why the following won’t remove the attached MC.

```auto

var editorStartPoint:MovieClip = this;

editorStartPoint.attachMovie("addMCWin","addMCWin",editorStartPoint.getNextHighestDepth());
    addMCWin._x = (Stage.width/2)-(addMCWin._width/2);
    addMCWin._y = (Stage.height/2)-(addMCWin._height/2);
    addMCWin.closeBTN.onRelease = function(){
        trace("closed")
        trace(editorStartPoint.addMCWin);
        editorStartPoint.addWin.removeMovieClip();
    }

```
