flash on 2009-4-10

by esukei
♥0 | Line 16 | Modified 2009-04-10 15:25:55 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    import flash.text.TextField;
    
    public class FlashTest extends Sprite {
        
        private var date:Date;
        private var text:TextField;
        
        public function FlashTest() {
            // write as3 code here..
            date = new Date();
            text = new TextField();
            addChild( text );
            text.width = stage.stageWidth;
            text.height = stage.stageHeight;
            
            text.appendText( ( ( ( (date.hours * 60 + date.minutes) * 60 + date.seconds) * 1000 + date.milliseconds ) ).toString() );
        }
    }
}