code on 2009-1-17

by Saqoosha
♥0 | Line 12 | Modified 2009-01-17 15:21:55 | MIT License
play

ActionScript3 source code

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

// write as3 code here..
package {
    
    import flash.display.*;
    import flash.text.*;

    public class Hoge extends Sprite {

        public function Hoge() {
            var tf:TextField = this.addChild(new TextField()) as TextField;
            tf.defaultTextFormat = new TextFormat('Verdana', 32);
            tf.autoSize = TextFieldAutoSize.LEFT;
            tf.text = 'Shinachiku!!!';
        }

    }
    
}