AS3: HitTest Any Object
问题 I am working on an application where an image serves as cursor. Now i would like to know at any time over which object the cursor is hovering. Sort of like a HitTestObject(*) where i can then see what object the * represents. Does anyone have any idea how i could accomplish this? (and using the mouse is not an option) 回答1: Put the elements you want to monitor for 'hovering' in a separate array, then add an onEnterFrame listener to the object attached to your mouse that iterates through the