# \[F8\]2 Attached movies' hitTest

**URL:** <https://forum.kirupa.com/t/f8-2-attached-movies-hittest/219148>\
**Category:** flash\
**Created:** [March 14, 2007, 10:01am UTC](https://forum.kirupa.com/t/f8-2-attached-movies-hittest/219148 "2007-03-14T10:01:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esoltas](https://avatars.discourse-cdn.com/v4/letter/e/5e9695/32.png) [@Esoltas](https://forum.kirupa.com/u/Esoltas)\
**Post date:** [March 14, 2007, 10:01am UTC](https://forum.kirupa.com/t/f8-2-attached-movies-hittest/219148/1 "2007-03-14T10:01:29Z")

</div>

So, I have in my vertical shooter game a bullet and a flag (enemy) that are attached properly and fly up and to the left, respectively. I am able to delete both the flags and bullets when they go off screen, because I know how to say:  
\_root.enemy.onEnterFrame(){  
this.deleteMovieClip();  
}  
The problem arrives when I want to connect the two. How would I code a hitTest between one of the bullets and one of the flags? I uploaded my fla here: [http://www.megaupload.com/?d=H4LBGTHE](http://www.megaupload.com/?d=H4LBGTHE)
