# Hit test prob

**URL:** https://forum.kirupa.com/t/hit-test-prob/313618
**Category:** Uncategorized
**Created:** [September 4, 2010, 6:13pm UTC](https://forum.kirupa.com/t/hit-test-prob/313618 "2010-09-04T18:13:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dmasters](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@dmasters](https://forum.kirupa.com/u/dmasters)
#### Post date: [September 4, 2010, 6:13pm UTC](https://forum.kirupa.com/t/hit-test-prob/313618/1 "2010-09-04T18:13:54Z")

</div>

I am having a weird hit test prob. When my mc hits the target nothing happens, but when I roll off the target it works?

```auto
onClipEvent (enterFrame) {
    if (this.hitTest(_root.cont.targ)) {
        mengo()
    
    }
}

```
