flash on 2011-11-2

by octech
♥0 | Line 14 | Modified 2011-11-02 18:05:39 | MIT License
play

ActionScript3 source code

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

package {
    import flash.text.TextField;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        
        public function FlashTest() {
            // write as3 code here..
            
            var resultText:String    = "";
            var checkNum:Number    = 4;
            resultText = isNaN(Number("-")) ? "!!!" : checkNum.toString();
            
            var tf:TextField = new TextField();
            tf.text    = "TEST>> " + NaN + Number(NaN) + int(NaN);
            this.addChild( tf );
        }
    }
}