Change scaleX
package{
import flash.display.*;
public class Main extends Sprite{
public function Main(){
var rectangleA:Shape = new Shape();
rectangleA.graphics.lineStyle(1, 0, 100);
rectangleA.graphics.lineTo(100, 0);
rectangleA.graphics.lineTo(100, 50);
rectangleA.graphics.lineTo(0, 50);
rectangleA.graphics.lineTo(0, 0);
rectangleA.scaleX = 4;
addChild(rectangleA);
}
}
}
Related examples in the same category