flex局部换取全局坐标

Posted on 2009-06-23 17:22 追梦人 阅读(398) 评论(0)  编辑  收藏 所属分类: flex
var mousePoint:Point = new Point(this.stage.mouseX, this.stage.mouseY);
    mousePoint = globalToLocal(mousePoint);//还有localToGlobal
    this.bigimg.x = mousePoint.x;
    this.bigimg.y = mousePoint.y;

只有注册用户登录后才能发表评论。


网站导航: