# hitTestMX(sorry for not being more specific)

**URL:** https://forum.kirupa.com/t/hittestmx-sorry-for-not-being-more-specific/19252
**Category:** flash
**Created:** [April 25, 2003, 7:17pm UTC](https://forum.kirupa.com/t/hittestmx-sorry-for-not-being-more-specific/19252 "2003-04-25T19:17:25Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![whalenuker](https://avatars.discourse-cdn.com/v4/letter/w/a3d4f5/32.png) [@whalenuker](https://forum.kirupa.com/u/whalenuker)
#### Post date: [April 25, 2003, 7:17pm UTC](https://forum.kirupa.com/t/hittestmx-sorry-for-not-being-more-specific/19252/1 "2003-04-25T19:17:25Z")

</div>

my problem is that when i use hit test, the objects (which are not rectagles) keep coming up as collided even when they aren’t “actually touching”. i have realised that hitTest is testing if the blue rectangles(from making them into movieclips in the actuall flash maker) is what is being tested as hit. is thier anyway for me to make it so that it will only come up as hit when my objects(you know, the acutal pixel parts, not the rectangular movieclip boundary) are touching or overlaping.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 25, 2003, 7:24pm UTC](https://forum.kirupa.com/t/hittestmx-sorry-for-not-being-more-specific/19252/2 "2003-04-25T19:24:10Z")

</div>

you have to set the shape flag to true:

hitTest(x,y,true)

the code would look something like that…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 25, 2003, 7:32pm UTC](https://forum.kirupa.com/t/hittestmx-sorry-for-not-being-more-specific/19252/3 "2003-04-25T19:32:38Z")

</div>

I’m actually wondering the same thing, and I still cant figure it out.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 25, 2003, 7:56pm UTC](https://forum.kirupa.com/t/hittestmx-sorry-for-not-being-more-specific/19252/4 "2003-04-25T19:56:44Z")

</div>

when i do  
if(movieclip1,hitTest(x,y,true)){}  
it then puts true when my movieclip1 is overlaping or on the pixel at the cordinates x,y. how do i make it so that it will put out true if my movieclip1 (the real pixels, not the boundary) are over a mymovieclip2(the real pixels)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 25, 2003, 7:57pm UTC](https://forum.kirupa.com/t/hittestmx-sorry-for-not-being-more-specific/19252/5 "2003-04-25T19:57:35Z")

</div>

[http://www.macromedia.com/support/flash/action\_scripts/objects/moviecliphittest.html](http://www.macromedia.com/support/flash/action_scripts/objects/moviecliphittest.html)
