I have two rectangle shapes. If I change the scaleX of one of the rectangle shapes, it appears that it is scaling from the middle registration point rather than 0,0. I am just transitioning into AS3, so I am sure that it is something I am overlooking.
Here's my code:
Code:
var bg:Shape = new Shape()
bg.graphics.beginFill(0xcccccc,1);
bg.graphics.lineStyle(1,0x000000);
bg.graphics.drawRect(50,50,200,10)
bg.graphics.endFill();
addChild(bg);
var bar:Shape = new Shape();
bar.graphics.beginFill(0x990000,100);
bar.graphics.drawRect(50,40,200,10)
bar.graphics.endFill();
addChild(bar);
bar.scaleX=.5
Thanks for any and all replies