onClipEvent(enterFrame) { if(this._parent.resetTimeStop) { this._parent.resetTimeStop = false; for(var i = this._parent.times.length ; i > 0; i--) { if(this.playheadTime < this._parent.times[i]) { this._parent.timeStops = --i; this._parent.captions.gotoAndStop(this._parent.timeStops + 1); } } } if(this.playheadTime > this._parent.times[this._parent.timeStops]) { this._parent.timeStops++; this._parent.captions.gotoAndStop(this._parent.timeStops + 1); } if((this.totalTime > 0) && (this.playheadTime >= (this.totalTime - .5))) { getURL("javascript:window.close();"); } } on(playheadChange) { this._parent.resetTimeStop = true; }