var cir:Shape=new Shape()
cir.graphics.beginFill(0xff0000)
cir.graphics.drawCircle(100,100,40)
cir.graphics.endFill()
addChild(cir)
var lin:Shape=new Shape()
lin.graphics.moveTo(100,100)
lin.graphics.lineStyle(1,0x00ff00,1,true,"")
lin.graphics.lineTo(400,300)
addChild(lin)
在flash9中输入上面的代码,绘制圆形和直线