flash on 2010-2-15

by kojiOGATA
♥0 | Line 16 | Modified 2010-02-15 11:22:23 | MIT License
play

ActionScript3 source code

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

package {
	import flash.text.TextField;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            init();
        }
        
        private function init():void{
        		var tf:TextField = new TextField();
        		tf.text = "hello wonderfl.";
        		x = (stage.stageWidth - width) / 2;
        		y 
        		addChild(tf);
        		
        }
    }
}