全局坐标与局部坐标互相转换
摘要:
import flash.display.Sprite;import flash.events.MouseEvent;import flash.geom.Point;var square:Sprite = new Sprite();square.graphics.beginFill(0xFFCC00);square.graphics.drawRect(0, 0, 100, 100);square.x = 100;square.y = 200;addChild(square);square.addEventListener(MouseEvent.CLICK, traceCoordinates); 阅读全文