# AddChild HitTestObject?

**URL:** <https://forum.kirupa.com/t/addchild-hittestobject/635345>\
**Category:** flash\
**Created:** [October 2, 2016, 2:10am UTC](https://forum.kirupa.com/t/addchild-hittestobject/635345 "2016-10-02T02:10:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Twisted4000](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@Twisted4000](https://forum.kirupa.com/u/Twisted4000)\
**Post date:** [October 2, 2016, 2:10am UTC](https://forum.kirupa.com/t/addchild-hittestobject/635345/1 "2016-10-02T02:10:20Z")

</div>

In AS3, how do I code it so that two separate added children to the stage can check if they HitTestObject each other? For example, a game where you fire projectiles at a bunch of generated enemies. Please show me how to code it, thank you.
