# Removing a MovieClip from itself in AS 3.0

**URL:** <https://forum.kirupa.com/t/removing-a-movieclip-from-itself-in-as-3-0/270681>\
**Category:** Uncategorized\
**Created:** [September 12, 2008, 8:59am UTC](https://forum.kirupa.com/t/removing-a-movieclip-from-itself-in-as-3-0/270681 "2008-09-12T08:59:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deluxmilkman](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@deluxmilkman](https://forum.kirupa.com/u/deluxmilkman)\
**Post date:** [September 12, 2008, 8:59am UTC](https://forum.kirupa.com/t/removing-a-movieclip-from-itself-in-as-3-0/270681/1 "2008-09-12T08:59:43Z")

</div>

I would like to remove a dynamically attached movie clip from itself when its animation is done.

in AS 2.0, I had this at the end of the frame of the movie clip I would like to remove.

```auto

removeMovieClip("");

```

then in AS 3.0, I wrote below, which gives me an error.

```auto

parent.removeChild(this);

```

how can I removeMovieClip in AS3.0?

P.S. I attached my mc like below.

```auto

var new_mc:My_mc = new My_mc();
this.addChild(new_mc);

```
