package { import flash.display.Sprite; public class FlashTest extends Sprite { public function FlashTest() { // write as3 code here.. graphics.lineStyle(1); var a:Number = 0; var b:Number = 0; for(var i:Number = 0; i < 100; i++) { var q = Math.random() * 10; var p = Math.random() * 10; graphics.lineTo(a+p,b+q); a = a+q; b = b+p; } } } }