gpt4 book ai didi

flash - Adobe Flex 中的 HitTest

转载 作者:行者123 更新时间:2023-12-01 11:06:14 25 4
gpt4 key购买 nike

有什么方法可以在特定的 x,y 位置获取最顶部的 UI 元素?

最佳答案

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

其中 objects[0] 将是最顶层的对象。 (我认为)

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

关于flash - Adobe Flex 中的 HitTest ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5668968/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com