# Deleting a MC from inside itself

**URL:** <https://forum.kirupa.com/t/deleting-a-mc-from-inside-itself/129682>\
**Category:** Uncategorized\
**Created:** [November 26, 2004, 7:43pm UTC](https://forum.kirupa.com/t/deleting-a-mc-from-inside-itself/129682 "2004-11-26T19:43:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![VoS](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@VoS](https://forum.kirupa.com/u/VoS)\
**Post date:** [November 26, 2004, 7:43pm UTC](https://forum.kirupa.com/t/deleting-a-mc-from-inside-itself/129682/1 "2004-11-26T19:43:07Z")

</div>

Hey  
I have a question which probably isent to difficult…  
im making a game in which there are some mines which chase a ship…  
these mines are created with

```auto

dot.duplicateMovieClip("dot"+currdot, this.getNextHighestDepth(), {_x:-100, _y:-20});
currdot=currdot+1

```

inside the dot MC there is a video , it blinks and roatates and stuff when its just floaring around , and when it hits something

```auto

if(this.hitTest(_root.ufo)){
_root.shieldCurr=_root.shieldCurr-_root.dotDamadge;
trace("hit"+this);
this.gotoAndPlay(73); 
}

```

gotoAndPlay(73); refers to the 1st frame of the explode animation inside the MC frame 1 to 72 is a looping animation  
now after it plays the exploding animation , i want it to be deleted  
ive tried a few different things like…

```auto

_parent.removeMovieClip(this);

```

which dont seem to be working.  
So id like to remove the movie clip from inside itself , thank you.
