# hitTest problem. URGENT

**URL:** https://forum.kirupa.com/t/hittest-problem-urgent/248335
**Category:** flash
**Created:** [January 7, 2008, 8:38am UTC](https://forum.kirupa.com/t/hittest-problem-urgent/248335 "2008-01-07T08:38:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![montyT](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@montyT](https://forum.kirupa.com/u/montyT)
#### Post date: [January 7, 2008, 8:38am UTC](https://forum.kirupa.com/t/hittest-problem-urgent/248335/1 "2008-01-07T08:38:59Z")

</div>

i have created hitTest function.  
it works in very strange way. It dosen’t work on every time I hit Ctrl+Enter.  
Some hitTest work and some time it dosen’t work. I am realy getting frustrated. Even It dosen’t work in all browser. Some time it works in opera and some time don’t. For the FF not a single time.  
here is the code:-

```auto
this.onEnterFrame = function() {
    if (this.black.hitTest(_root.huttest)) {
        trace("hit done");
        _root.zoomHuts();
    }
};

```

What is the possible reason behind this. This hitTest working like having luck and bad luck.  
thanks for your time.  
☹
