flash on 2010-1-31
♥0 |
Line 17 |
Modified 2010-01-31 22:46:48 |
MIT License
archived:2017-03-20 12:54:04
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/1O9t
*/
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init();">
<mx:Script>
<![CDATA[
public function init():void{
addEventListener(Event.ENTER_FRAME,onEnterFrames);
}
private function onEnterFrames(event:Event):void{
var now:Date = new Date();
tf1.text = now.toTimeString();
tf2.text = now.time.toString();
}
]]>
</mx:Script>
<mx:Label text="ラベル" id="tf1" horizontalCenter="0" verticalCenter="-25" fontSize="36"/>
<mx:Label text="ラベル" id="tf2" horizontalCenter="0" verticalCenter="25" fontSize="36"/>
</mx:Application>