开发者

Absolute Coordinates in AS3

开发者 https://www.devze.com 2022-12-09 18:43 出处:网络
开发者_运维问答What is the simplest way to determine absolute object coordinates in AS3?(foo as DisplayObject).localToGlobal(new Point(x,y));var absolutePoint:Point = DisplayObject(foo).localToGlobal(

开发者_运维问答What is the simplest way to determine absolute object coordinates in AS3?


(foo as DisplayObject).localToGlobal(new Point(x,y));


var absolutePoint:Point = DisplayObject(foo).localToGlobal(new Point(foo.x, foo.y));

0

精彩评论

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