package 
{
	import flash.display.Sprite;
	import flash.events.Event;
 import flash.text.TextField;
	
	/**
	 * ...
	 * @author test
	 */
	public class main extends Sprite 
	{
		
		public function main():void 
		{
			if (stage) init();
			else addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init(e:Event = null):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			// entry point
   
   var s:TextField = new TextField;
   addChild(s);
   s.text = "Test!";
		}
		
	}
	
}