Flash AS2 事件处理机制(13) { this._currentCount = 0; this.stop(); } public function start():Void { this._timerID = setInterval(CFDelegate.create(this, this.startTimer), this._delay); this._running = true; } public function stop():Void { clearInterval(this._timerID); this._running = false; } public function toString():String { return "[AsBTimer]"; } //---------------------------------------- private function startTimer():Void { this._currentCount++; this.broadcastMessage("timer", this._currentCount); if (this._currentCount == this._repeatCount) { this.reset(); this.broadcastMessage("timerComplete"); } } //---------------------------------------- public function get delay():Number { return this._delay; } public function set delay(d:Number):Void { this._delay = d; } public function get repeatCount():Number