开发者

HitTest in Adobe Flex

开发者 https://www.devze.com 2023-02-25 02:54 出处:网络
Is there any way to get the top most UI element in a s开发者_如何学JAVApecific x,y location?var objects:Array = stage.getObjectsUnderPoint(new Point(x, y));

Is there any way to get the top most UI element in a s开发者_如何学JAVApecific x,y location?


var objects:Array = stage.getObjectsUnderPoint(new Point(x, y));

Where objects[0] will be the top most object. (I think)

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/DisplayObjectContainer.html#getObjectsUnderPoint()

0

精彩评论

暂无评论...
验证码 换一张
取 消