# A more efficient hitTest?

**URL:** https://forum.kirupa.com/t/a-more-efficient-hittest/288192
**Category:** flash
**Created:** [May 12, 2009, 5:55pm UTC](https://forum.kirupa.com/t/a-more-efficient-hittest/288192 "2009-05-12T17:55:55Z")
**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 12, 2009, 5:55pm UTC](https://forum.kirupa.com/t/a-more-efficient-hittest/288192/1 "2009-05-12T17:55:55Z")

</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.
