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=mc.y+mc.height/2;
myMatrix.translate(-tempx,-tempy);
//实现斜切变形代码开始
var skewMatrix:Matrix = new Matrix();
skewMatrix.b = Math.tan(1);
myMatrix.concat(skewMatrix);
//实现斜切变形代码结束
myMatrix.rotate(2 * Math.PI * (-45 / 360));
myMatrix.translate(tempx,tempy);
mc.transform.matrix = myMatrix; */
var tempx,tempy;
tempx=mc.x+mc.width/2;//计算中心点x坐标
tempy=mc.y+mc.height/2;//计算中心点y坐标
myMatrix.translate(-tempx,-tempy);