# \[FMX\] Advanced Hit Test question

**URL:** <https://forum.kirupa.com/t/fmx-advanced-hit-test-question/9653>\
**Category:** flash\
**Created:** [December 16, 2002, 2:24am UTC](https://forum.kirupa.com/t/fmx-advanced-hit-test-question/9653 "2002-12-16T02:24:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Psykloak1](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@Psykloak1](https://forum.kirupa.com/u/Psykloak1)\
**Post date:** [December 16, 2002, 2:24am UTC](https://forum.kirupa.com/t/fmx-advanced-hit-test-question/9653/1 "2002-12-16T02:24:29Z")

</div>

I have a Movie Clip and Im trying to do a hit test on it but i want it to test when the second object touches th eactualy object in the movie clip, not just enters inside of the blue outline.

I hope that makes any sence, if not I can make up a better example.

---

<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:** [December 16, 2002, 6:34am UTC](https://forum.kirupa.com/t/fmx-advanced-hit-test-question/9653/2 "2002-12-16T06:34:44Z")

</div>

Ahh… Blue Lined Bounding Boxes… Actually if you use the hitTest method… The only way around this is to create invisible small movie clips with a tighter bounding box inside of the movie clip…

Now I’ve seen methods of defining hitTests when comparing RGB examples albeit… You might wanna check out some tutorials on this site and others for that one. I always just used the invisible box treatment…

Peace

---

<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:** [December 16, 2002, 1:22pm UTC](https://forum.kirupa.com/t/fmx-advanced-hit-test-question/9653/3 "2002-12-16T13:22:53Z")

</div>

I didn’t look at the code, but it’s pretty impressive:  
[http://actionscript-toolbox.com/samplemx\_bounceCollide.php](http://actionscript-toolbox.com/samplemx_bounceCollide.php)

pom :+)

---

<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:** [December 16, 2002, 3:34pm UTC](https://forum.kirupa.com/t/fmx-advanced-hit-test-question/9653/4 "2002-12-16T15:34:57Z")

</div>

It’s basically saying the same thing I said…

“Create a bunch of blank clips inside of the movie clip to define a more precise border.”

It’s basically the only way to really do this… Then alls you have t do is test and see if all the sentry points hit another object or another objects sentry points… This also makes for more realistic possibilities when coding the bouncing…

🙂
