Hello Wonderfl World

by tororo_zz
基礎の基礎きも分ってないのでHelloWorldから始める。
♥0 | Line 18 | Modified 2010-12-30 07:05:03 | MIT License
play

ActionScript3 source code

/**
 * Copyright tororo_zz ( http://wonderfl.net/user/tororo_zz )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/gJUV
 */

package {
    //基礎の基礎きも分ってないのでHelloWorldから始める。
    
    import flash.text.TextField;
    import flash.display.Sprite;
        
    public class HelloWorld extends Sprite
    {
        public var kotoba:String = "Hello Wonderfl"
        
        public var hellText:TextField = new TextField();
        
        public function HelloWorld():void
        {
            init();
        }
        
        public function init():void
        {
            addChild(hellText);
            hellText.text = kotoba;
        }
    }
}