package { import flash.display.Sprite; import flash.events.Event; public class FlashTest extends Sprite { public function FlashTest() { addEventListener(Event.ENTER_FRAME, render); } public function render(e:Event):void { graphics.lineStyle(Math.random()*3, Math.random()*0xFF0000); graphics.curveTo(Math.random()*stage.stageWidth, Math.random()*stage.stageHeight, Math.random()*stage.stageWidth, Math.random()*stage.stageHeight); } } }