We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
将指定的X和Y坐标从该DisplayObject的坐标空间转换为全局(stage)坐标空间。例如,这可以用于将HTML标签放置在嵌套显示对象上的特定点上。返回一个具有x和y属性的点坐标,返回的坐标与stage坐标相关。
displayObject.x = 300; displayObject.y = 200; stage.addChild(displayObject); var point = displayObject.localToGlobal(100, 100); // Results in x=400, y=300
There was an error while loading. Please reload this page.