Timer.hx 689 B

123456789101112131415161718
  1. package flash.utils;
  2. extern class Timer extends flash.events.EventDispatcher {
  3. @:flash.property var currentCount(get,never) : Int;
  4. @:flash.property var delay(get,set) : Float;
  5. @:flash.property var repeatCount(get,set) : Int;
  6. @:flash.property var running(get,never) : Bool;
  7. function new(delay : Float, repeatCount : Int = 0) : Void;
  8. private function get_currentCount() : Int;
  9. private function get_delay() : Float;
  10. private function get_repeatCount() : Int;
  11. private function get_running() : Bool;
  12. function reset() : Void;
  13. private function set_delay(value : Float) : Float;
  14. private function set_repeatCount(value : Int) : Int;
  15. function start() : Void;
  16. function stop() : Void;
  17. }