# hitTest not working

**URL:** <https://forum.kirupa.com/t/hittest-not-working/231223>\
**Category:** Uncategorized\
**Created:** [July 3, 2007, 2:03am UTC](https://forum.kirupa.com/t/hittest-not-working/231223 "2007-07-03T02:03:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattd8752](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@mattd8752](https://forum.kirupa.com/u/mattd8752)\
**Post date:** [July 3, 2007, 2:03am UTC](https://forum.kirupa.com/t/hittest-not-working/231223/1 "2007-07-03T02:03:33Z")

</div>

I have tried hitTest many times. The function works perfect if I run it from an example, but not if I do it myself.

Could someone please look at my file. I attached the FLA.

Also, in this demonstration I tried using the if with the ,s. I have tried with \_root.mc.hitTest style.

Please see if you can find my error.  
This is for CS3.

Thanks,  
Matt
