# BitmapData.hitTest Questions

**URL:** <https://forum.kirupa.com/t/bitmapdata-hittest-questions/207365>\
**Category:** flash\
**Created:** [November 16, 2006, 8:03pm UTC](https://forum.kirupa.com/t/bitmapdata-hittest-questions/207365 "2006-11-16T20:03:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![suicidePills](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@suicidePills](https://forum.kirupa.com/u/suicidePills)\
**Post date:** [November 16, 2006, 8:03pm UTC](https://forum.kirupa.com/t/bitmapdata-hittest-questions/207365/1 "2006-11-16T20:03:16Z")

</div>

Let me preface this post by saying that I personally think that the BitmapData class is one of the most kick-\*\*\* (if not most cryptically documented) class I’ve ever used. It alone makes the upgrade to Flash8 worth it.

Ok, now that I’ve gotten that out of my system:

I’ve been exploring the hitTest method of the BitmapData class and I’ve found the method’s parameters to be a little…odd… Flash doc states:

```auto
public hitTest(firstPoint:Point, firstAlphaThreshold:Number, secondObject:Object, [secondBitmapPoint:Point], [secondAlphaThreshold:Number]) : Boolean

```

Now, if I’m testing a BitmapData object against another BitmapData object, why is is necessary for me to include a firstPoint or secondBitmapPoint parameter? I’ve tried excluding them in my code but flash complains about a Type Mismatch.

Anyone know why flash wants these Point params?

-sp
