How to scale from the middle in Actionscript
Hello all.
I have the following code:
function box1ScaleUp(e:MouseEvent):void {
box1.scaleX = 1.5;
box1.scaleY = 1.5;
box2.x = 80
box3.x = 135
}
Now, when it scales, it scales from the movieclip var registration point of 0,0. So when it scales, it appears to grow in two directions (down and to the right)
Is there a way to have it scale from the center of the box so that it scales equally in all 4 directions?
Thanks in advance!