package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var spr:Sprite = new Sprite();
spr.graphics.lineStyle(1, 0x0000ff);
spr.graphics.moveTo(30, 30);
spr.graphics.lineTo(100, 30);
spr.graphics.lineTo(100, 100);
spr.graphics.lineTo(30, 100);
spr.graphics.lineTo(30, 30);
spr.graphics.endFill();
addChild(spr);
}
}
}
|