Hello,world

mzp2006-08-24

うわ、Javaっぽいなぁ。

package{
    import flash.display.*;
    import flash.text.*;
    public class Hello extends Sprite{
	private var label:TextField;
	function Hello(){
	    label = new TextField();
	    label.autoSize = TextFieldAutoSize.LEFT;

	    var format:TextFormat = new TextFormat();
	    format.size = 50;
	    label.defaultTextFormat = format;
	    label.text = 'Hello,world!!';
	    addChild(label);
	}
    }
}