Skip to main content
Participant
August 8, 2011
Question

hitTestObject problem in AIR for iOS

  • August 8, 2011
  • 1 reply
  • 490 views

I've been creating a game in Flash for a while now, and I never ran into a problem with the hitTestObject function I use for simple collision detection while making the swf version of the game. I recently started compiling it with AIR for iOS, and now hitTestObject returns true once in a while when it should clearly be false. I've traced the x, y, width, and height properties of the hit boxes that are being compared and and they aren't even close sometimes when hitTestObject returns true.

Could this be a bug with AIR for iOS or do I need to change something else when switching from Flash Player to AIR?

This topic has been closed for replies.

1 reply

Participating Frequently
August 8, 2011

Hi,

I tried hitTestObject inside the handler for MOUSE_UP event and it works consistently for me. Where are you testing for hitTestObject in your example? Could you please file a bug at http://bugbase.adobe.com with your sources?

Thanks,

Sanika