PDA

View Full Version : hitTest


prettymuchbryce
04-11-2007, 09:38 PM
Whenever I try to use hitTest it tells me an error that says hitTest is not a function. I'm used to using it the as 2.0 way so I'm probably just getting some kind of stupid syntax wrong. Can someone show me an example of hittesting an object with a point?

panel
04-12-2007, 09:20 AM
Whenever I try to use hitTest it tells me an error that says hitTest is not a function. I'm used to using it the as 2.0 way so I'm probably just getting some kind of stupid syntax wrong. Can someone show me an example of hittesting an object with a point?

A lot of things changed...
Migration form as2 to as3 (http://livedocs.adobe.com/flex/2/langref/migration.html)

dr_zeus
04-12-2007, 04:35 PM
There are now two hit test functions: hitTestObject and
hitTestPoint

Check the language reference (http://livedocs.adobe.com/flex/201/langref/flash/display/DisplayObject.html) for more details.

prettymuchbryce
04-12-2007, 07:28 PM
Thankyou zeus. Very helpful. Got it figured out now thanks.