flash on 2010-2-5

by hacker_9p8x8mco
♥0 | Line 19 | Modified 2010-02-06 11:03:45 | MIT License
play

ActionScript3 source code

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

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" initialize="init()">
	<mx:Label id="time_lbl" x="10" y="10"/>
	<mx:Script>
		<![CDATA[
			import flash.utils.*;
			private function init():void{
				setInterval(onTime,2000);
			}
			private function onTime():void{
				var d:Date = new Date();
				var hh:Number = d.getHours();
				var mm:Number = d.getMinutes();
				var ss:Number = d.getSeconds();
				time_lbl.htmlText = "<font size='64'>"+hh+":"+mm+":"+ss+"</font>";
			}
		]]>
	</mx:Script>
</mx:Application>