# hitTest not working with embedded target? Help?

**URL:** <https://forum.kirupa.com/t/hittest-not-working-with-embedded-target-help/234157>\
**Category:** flash\
**Created:** [July 31, 2007, 4:28am UTC](https://forum.kirupa.com/t/hittest-not-working-with-embedded-target-help/234157 "2007-07-31T04:28:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Head\_In\_A\_Pan](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@Head\_In\_A\_Pan](https://forum.kirupa.com/u/Head_In_A_Pan)\
**Post date:** [July 31, 2007, 4:28am UTC](https://forum.kirupa.com/t/hittest-not-working-with-embedded-target-help/234157/1 "2007-07-31T04:28:20Z")

</div>

Heya!

I’m trying to make my first game - but having a little trouble with the hitTest.

I can trace a collision by merely putting my target on the stage and dropping my ‘weight’ on it (Loony Tunes Style!)

But when I embed the target area within a moving object/host then I can’t trace a collision.

Why oh why? It’s working with one hitTest but not another -

```auto

function squash(){
    if (weight_mc.killZone.hitTest(walkDog3_mc.scalpZone)){
        trace("kill!");

    }
}

```
