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 Scripts with Example Source Code in same category :