Hello World

by tokufxug
♥0 | Line 15 | Modified 2009-11-29 11:26:29 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFormat;
    
    public class HelloWorld extends Sprite {
        
        public var tf:TextField;
            
        public function HelloWorld() {
                
            tf = new TextField();
            tf.defaultTextFormat = new TextFormat("_sans", 40);
            addChild(tf);
            tf.text = "Hello World";
            tf.width = tf.textWidth + 10;
        }
    }
}

Forked