package{
import flash.display.*;
public class Main extends Sprite{
public function Main(){
var canvas:Shape = new Shape( );
canvas.graphics.lineStyle(1, 0x000000);
canvas.graphics.lineTo(100, 0);
canvas.graphics.lineStyle(5, 0xFF0000);
canvas.graphics.lineTo(100, 100);
canvas.graphics.lineStyle(10, 0x00FF00);
canvas.graphics.lineTo(0, 100);
canvas.graphics.lineStyle(15, 0x0000FF);
canvas.graphics.lineTo(0, 0);
addChild(canvas);
}
}
}
|