Matrix 旋转mc 注册点在mc的左上角
摘要:
var myMatrix:Matrix = mc.transform.matrix;//计算原点/*var tempx,tempy;tempx = mc.x + mc.width / 2;tempy = mc.y + mc.height / 2;myMatrix.translate(-tempx,-tempy);myMatrix.rotate(30*Math.PI/180);myMatrix.translate(tempx,tempy);mc.transform.matrix = myMatrix;*//*var tempx,tempy;tempx=mc.x+mc.width/2;tempy= 阅读全文