# A more efficient hitTest?

**URL:** <https://forum.kirupa.com/t/a-more-efficient-hittest/288341>\
**Category:** Uncategorized\
**Created:** [May 14, 2009, 1:01pm UTC](https://forum.kirupa.com/t/a-more-efficient-hittest/288341 "2009-05-14T13:01:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kimsan](https://avatars.discourse-cdn.com/v4/letter/k/919ad9/32.png) [@Kimsan](https://forum.kirupa.com/u/Kimsan)\
**Post date:** [May 14, 2009, 1:01pm UTC](https://forum.kirupa.com/t/a-more-efficient-hittest/288341/1 "2009-05-14T13:01:21Z")

</div>

Hey, everyone.

I’m making a game with a LOT of symbols. Right now I need to hitTest them all (it easily goes up to like 700 symbols) with a for-loop. It gets a little laggy.

So what what’d be perfect for me would be a way to tell a symbol to hitTest just anything and then give me the instance name of whatever it hits. Is there a way of achieving this without a huge for-loop?

Hope this hasn’t been asked too many times already…

Thanks.
