# Method like hitTestPoint that ignores movieclip between mouse and target clip?

**URL:** <https://forum.kirupa.com/t/method-like-hittestpoint-that-ignores-movieclip-between-mouse-and-target-clip/330210>\
**Category:** Uncategorized\
**Created:** [December 14, 2012, 4:39am UTC](https://forum.kirupa.com/t/method-like-hittestpoint-that-ignores-movieclip-between-mouse-and-target-clip/330210 "2012-12-14T04:39:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phastings](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@phastings](https://forum.kirupa.com/u/phastings)\
**Post date:** [December 14, 2012, 4:39am UTC](https://forum.kirupa.com/t/method-like-hittestpoint-that-ignores-movieclip-between-mouse-and-target-clip/330210/1 "2012-12-14T04:39:44Z")

</div>

this is driving me crazy. i have a bunch of movieclips with their own class that get placed on the stage. i’m using hitTestPoint to determine if a mouse is over and OBJECT:

in the OBJECT class i’m checking:

if (this.hitTestPoint(stage.mouseX,stage.mouseY, true)) {  
trace(“over”);  
} else {  
trace(“out”);  
}

the problem i’m having is, if two OBJECT moveclips overlap the “over” call happens even if the OBJECT is covered by another OBJECT. is there a way to get the hitTestPoint to only target the object directly under it?
