matrix绕中心旋转
摘要:
public function centerRotate(mc:DisplayObject,angle:Number):void { var currentRotation:Number = mc.rotation; //获取mc不旋转时候的尺寸 mc.rotation = 0; var mcWidth:Number = mc.width; var mcHeight:Number = mc.height; mc.rotation = currentRotation; //获取mc当前中心点坐标 var pointO:Point = mc.localToGlobal(new Point(mcWi 阅读全文
posted @ 2011-04-14 17:36 songqiuming 阅读(283) 评论(0) 推荐(0) 编辑