views:

25

answers:

1

In Flex/Actionscript

When writing an on mouseMove event on a Canvas control for example, how could I check to see what control if any is under the mouse pointer at a particular coordinate?

+2  A: 

You can call getObjectsUnderPoint on your Canvas to determine what children of that canvas are under the current mouse point. You have to make sure the point you pass in is in stage coordinates. Hope that helps.

Wade Mueller
Good answer. If you had the local point, you could probably use the localToGlobal to find the stage coordinates
Brian Bishop