【どう書く?as】 Dateが正しく生成されているかチェックする

by sph62
♥0 | Line 13 | Modified 2009-12-04 20:23:31 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    import flash.text.TextField;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            var tf:TextField = new TextField();
            tf.autoSize = "left";
            addChild(tf);
            var d:Date = new Date("2009/0/9 10:10:10");
            tf.text = String(d.getTime()>0);
        }
    }
}