package { import flash.display.Sprite; public class FlashTest extends Sprite { private static const SP:Sprite = new Sprite(); {//static block SP.graphics.beginFill(0xff9999); SP.graphics.drawCircle(50, 50, 50); } public function FlashTest() { // write as3 code here.. addChild(SP); } } }