# hitTest in a custom area

**URL:** https://forum.kirupa.com/t/hittest-in-a-custom-area/260226
**Category:** flash
**Created:** [May 13, 2008, 5:22pm UTC](https://forum.kirupa.com/t/hittest-in-a-custom-area/260226 "2008-05-13T17:22:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![pantas](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pantas](https://forum.kirupa.com/u/pantas)
#### Post date: [May 13, 2008, 5:22pm UTC](https://forum.kirupa.com/t/hittest-in-a-custom-area/260226/1 "2008-05-13T17:22:51Z")

</div>

hi there!  
well…i´ve just checked the help files but couldnt find an answer for this, so i hope anyone can help me out here…

i have a custom shape inside a movieClip, and i want to detect when another clip hits it.  
but the really strange thing is that when i publish my fla, the hitTest detects the hits as if my shape is a rectangle (only looks for the width and height of the movieclip), not the drawing i did…

still with me? thanks! 😃

i tried cashAsBitmap, aplied a mask to the movieclip with the shape, but nothing worked… anyone ever had this problem?  
i have no idea for this issue…

thanks in advance!  
cheers

---

<div class="post-metadata">

### Author: ![pantas](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pantas](https://forum.kirupa.com/u/pantas)
#### Post date: [May 14, 2008, 9:43am UTC](https://forum.kirupa.com/t/hittest-in-a-custom-area/260226/2 "2008-05-14T09:43:11Z")

</div>

anyone?

---

<div class="post-metadata">

### Author: ![cooldude88](https://avatars.discourse-cdn.com/v4/letter/c/e0b2c6/32.png) [@cooldude88](https://forum.kirupa.com/u/cooldude88)
#### Post date: [May 14, 2008, 6:46pm UTC](https://forum.kirupa.com/t/hittest-in-a-custom-area/260226/3 "2008-05-14T18:46:40Z")

</div>

hi there youll probobly have to make a custom hitTest for that is what hittest does it draws a rectangle around the shape according to it hieght and with i havnt been able to find a way around this so you mey want to look up custom hittests.

---

<div class="post-metadata">

### Author: ![pantas](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pantas](https://forum.kirupa.com/u/pantas)
#### Post date: [May 15, 2008, 11:10am UTC](https://forum.kirupa.com/t/hittest-in-a-custom-area/260226/4 "2008-05-15T11:10:49Z")

</div>

yeah!  
finally a post!

Once i get the answer ill post it here. looks like no one ever had this problem… ☹  
so far, the way i found to bypass this issue was creating LOTS of movieclips to fill the shape…but this is not a good way to do it…

thanks for the reply cooldude88! ill check it out!

---

<div class="post-metadata">

### Author: ![pantas](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pantas](https://forum.kirupa.com/u/pantas)
#### Post date: [June 20, 2008, 10:47am UTC](https://forum.kirupa.com/t/hittest-in-a-custom-area/260226/5 "2008-06-20T10:47:10Z")

</div>

here’s the answer!

[http://www.kirupa.com/forum/showpost.php?p=1922772&postcount=4](http://www.kirupa.com/forum/showpost.php?p=1922772&postcount=4)

cheers
