# hitTestObject

**URL:** <https://forum.kirupa.com/t/hittestobject/327456>\
**Category:** Uncategorized\
**Created:** [March 2, 2012, 2:27am UTC](https://forum.kirupa.com/t/hittestobject/327456 "2012-03-02T02:27:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeponkz](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@jeponkz](https://forum.kirupa.com/u/jeponkz)\
**Post date:** [March 2, 2012, 2:27am UTC](https://forum.kirupa.com/t/hittestobject/327456/1 "2012-03-02T02:27:19Z")

</div>

Is it possible to use hitTestObject into a child of another class??

I have a ball class…

and there is a large box , and inside that box is a small ball… this means that small ball is a child of the box…

how can I use hitTestObject in that small ball??
