package { import flash.display.JointStyle; import flash.display.CapsStyle; import flash.display.Graphics; import flash.display.Sprite; [SWF(backgroundColor="0")] public class FlashTest extends Sprite { public function FlashTest() { // write as3 code here.. var g:Graphics = this.graphics; g.moveTo(223,0); for (var i:uint = 0; i< 20; i++) { g.lineStyle(5 * i, 0xffff80, 0.5, false, "normal", CapsStyle.NONE, JointStyle.ROUND); g.lineTo(223 + 20 * (i & 1), 20 * i + 22); } } } }