开发者

HitTest in Adobe Flex

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜