# A bitmap hittest question

**URL:** <https://forum.kirupa.com/t/a-bitmap-hittest-question/266033>\
**Category:** programming\
**Created:** [July 15, 2008, 5:24pm UTC](https://forum.kirupa.com/t/a-bitmap-hittest-question/266033 "2008-07-15T17:24:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![awflasher](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/awflasher/32/3562_2.png) [@awflasher](https://forum.kirupa.com/u/awflasher)\
**Post date:** [July 15, 2008, 5:24pm UTC](https://forum.kirupa.com/t/a-bitmap-hittest-question/266033/1 "2008-07-15T17:24:13Z")

</div>

I am now making a game, in which your ship has to avoid many bullets from around. The ship is a MovieClip due to some animation effects. The bullets are just BitmapData stuff…

However, The ship is also combined of five BitmapData with its five frames. How can I test the hit of the MovieClip and the bullets?

I read the docs and it is said that only BitmapData can hittest another BitmapData, now i’ve got a MovieClip (even different BitmapData in different frames) and many other BitmapData (the bullets).

Any suggestions for this situation?

Thanks in advance 🙂
