last updated Dec 13, 2008
haXe/Flashの個人的なメモ。
import haxe.Timer; class Clock { static public function main() { var tf = flash.Lib.current.createTextField("clock", 0, 0, 0, 0, 0); tf.autoSize = true; var redraw = function():Void { tf.text = Date.now().toString(); }; var tm = new Timer(1000); tm.run = redraw; redraw(); } }これ →