# How to Avoid a Mouse hitTest()

**URL:** https://forum.kirupa.com/t/how-to-avoid-a-mouse-hittest/95326
**Category:** Uncategorized
**Created:** [November 24, 2003, 6:04am UTC](https://forum.kirupa.com/t/how-to-avoid-a-mouse-hittest/95326 "2003-11-24T06:04:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![norie](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@norie](https://forum.kirupa.com/u/norie)
#### Post date: [November 24, 2003, 6:04am UTC](https://forum.kirupa.com/t/how-to-avoid-a-mouse-hittest/95326/1 "2003-11-24T06:04:22Z")

</div>

im creating a menu with nested MCs, of course, and the parent MC is using a RollOver action. The problem with that is: all other nested MC’s RollOver action are not detected. I know you can use a mouse hitTest as a work-around ie:

```auto
onEnterFrame = function(){
if(this.hitTest(_xmouse,_ymouse,true)){
//do whatever
}
}

```

but i’d like to avoid using that if possible. Any ideas? thanks!
