# \[MX\] Multiple hitTest Detection

**URL:** https://forum.kirupa.com/t/mx-multiple-hittest-detection/275531
**Category:** flash
**Created:** [November 15, 2008, 1:26am UTC](https://forum.kirupa.com/t/mx-multiple-hittest-detection/275531 "2008-11-15T01:26:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Chaosed0](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@Chaosed0](https://forum.kirupa.com/u/Chaosed0)
#### Post date: [November 15, 2008, 1:26am UTC](https://forum.kirupa.com/t/mx-multiple-hittest-detection/275531/1 "2008-11-15T01:26:21Z")

</div>

Basically, I have a game with simple hitTests with a 2d 8-way moving system. I have multiple things that I want to do the same kind of hit detection for, water, trees, etc. Problem is, I can’t figure out how to do it. Since you can’t set the same instance name for mulitiple objects, I have no idea what to try next. Can anyone help?
