# Array hittest problem

**URL:** <https://forum.kirupa.com/t/array-hittest-problem/242394>\
**Category:** Uncategorized\
**Created:** [October 25, 2007, 2:26pm UTC](https://forum.kirupa.com/t/array-hittest-problem/242394 "2007-10-25T14:26:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![superbungalow](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@superbungalow](https://forum.kirupa.com/u/superbungalow)\
**Post date:** [October 25, 2007, 2:26pm UTC](https://forum.kirupa.com/t/array-hittest-problem/242394/1 "2007-10-25T14:26:27Z")

</div>

OK, so I have an array of enemy instance names produced using the push(); and pop(); method and i have code so that when an attached bullet hits any of the ones in that array (uses a for loop), it removes the bullet, but I can’t figure out how to get it to remove the enemy it hit. Is there a way to find out which enemy movieclip it hit and return that instance name so i can put it in a variable and remove it? Thanks.
