Finding A Child Control Based On X & Y Coordinate in ActionScript
In Flex/Actionscrip开发者_运维问答t
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?
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.
精彩评论