Nicolas Cannasse 19 年 前
コミット
7e1d199e9c
1 ファイル変更19 行追加0 行削除
  1. 19 0
      std/flash/Timer.hx

+ 19 - 0
std/flash/Timer.hx

@@ -0,0 +1,19 @@
+package flash;
+
+class Timer {
+
+	private var id : Int;
+
+	public function new( time : Int ) {
+		id = untyped _global.setInterval(this,"run",time);
+	}
+
+	public function run() {
+	}
+
+	public function stop() {
+		untyped _global.clearInterval(id);
+		id = null;
+	}
+
+}