# Little confused about deletemovieClip

**URL:** <https://forum.kirupa.com/t/little-confused-about-deletemovieclip/187906>\
**Category:** Uncategorized\
**Created:** [May 3, 2006, 2:27am UTC](https://forum.kirupa.com/t/little-confused-about-deletemovieclip/187906 "2006-05-03T02:27:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![top\_speed201](https://avatars.discourse-cdn.com/v4/letter/t/7993a0/32.png) [@top\_speed201](https://forum.kirupa.com/u/top_speed201)\
**Post date:** [May 3, 2006, 2:27am UTC](https://forum.kirupa.com/t/little-confused-about-deletemovieclip/187906/1 "2006-05-03T02:27:58Z")

</div>

i am working on a game where bullets fly across the screen from right to left and i have successfully created the movie clip and made it duplicate itself. but i need to figure out how to make the movieclip delete itself once outside the movie frame.

```auto

onClipEvent (enterFrame) {
    if (this.hitTest(_root.plane)) {
        _root.planehealth -= 5;
    }
    dupMovie = function () { for (i=0; i<4; i++) {_root.bullet.duplicateMovieClip("bullet"+i, i, { _y:Math.random()*250} );with (eval("bullet"+i)); {_x-=15};}};
    dupMovie();
    if (this._y<0) {
        removeMovieClip(this);
        ;
    }
}

```

anyone know how to properly delete movie clips?  
~MikeG
