# Is there a hitTest or anything similar that will return a value other than Boolean?

**URL:** <https://forum.kirupa.com/t/is-there-a-hittest-or-anything-similar-that-will-return-a-value-other-than-boolean/324609>\
**Category:** flash\
**Created:** [August 29, 2011, 11:41pm UTC](https://forum.kirupa.com/t/is-there-a-hittest-or-anything-similar-that-will-return-a-value-other-than-boolean/324609 "2011-08-29T23:41:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sogj](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sogj/32/3189_2.png) [@sogj](https://forum.kirupa.com/u/sogj)\
**Post date:** [August 29, 2011, 11:41pm UTC](https://forum.kirupa.com/t/is-there-a-hittest-or-anything-similar-that-will-return-a-value-other-than-boolean/324609/1 "2011-08-29T23:41:25Z")

</div>

Say I’ve got 30 movie clips on the stage and I want to see if any of them are overlapping a drop point I have at the bottom (i.e., if any of them have been “dropped off”.)

I could say dropPoint.hitTestObject(obj1) and then dropPoint.hitTestObject(obj2). (Assuming that because of the object’s names there is is no way to do a for loop). But that’s a lot of code.

It would be way easier if I could just say “What object is overlapping dropPoint?” instead of “Is object 1 overlapping dropPoint? No? Well, is object 2 overlapping dropPoint?” etc.

Is this possible in Actionscript 3?

Thanks! 😃
