# \[MX\] Very Accurate HitTest

**URL:** https://forum.kirupa.com/t/mx-very-accurate-hittest/31568
**Category:** flash
**Created:** [September 24, 2003, 1:34pm UTC](https://forum.kirupa.com/t/mx-very-accurate-hittest/31568 "2003-09-24T13:34:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![davymacca](https://avatars.discourse-cdn.com/v4/letter/d/5f8ce5/32.png) [@davymacca](https://forum.kirupa.com/u/davymacca)
#### Post date: [September 24, 2003, 1:34pm UTC](https://forum.kirupa.com/t/mx-very-accurate-hittest/31568/1 "2003-09-24T13:34:21Z")

</div>

I require a accurate hitTest for my movie.

I have 2 odd shaped movie clips, a “ball” and a “square” (with a bit cut out).

I need to know if the two movies are over lapping. The problem is I can find this out using the following AS

[AS][SIZE=2]//on the ball movie clip  
onClipEvent(enterFrame)  
{   
if (this.hitTest(\_root.square))  
{  
trace(“hits the square”);  
}  
}[/SIZE] [/AS]

When I do this it gives the trace when overlapping the Binding Box and I need it to be very exact over the actual shape and contours of the Movie Clip.

Your help would be very much appreciated.:h:
