flash on 2009-11-30

by ukkr
♥0 | Line 14 | Modified 2009-11-30 17:26:04 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    import flash.text.*;
    
    public class FlashTest extends Sprite {
        private var txt:TextField;
        
        public function FlashTest() {
            // write as3 code here..
            var str:String = "02";
            var num:int = int( str );
                        
            txt = new TextField();
            txt.text = String( num );
            addChild( txt );
        }
    }
}