         private var _fragment_loading:Boolean;
         /** means that last fragment of a VOD playlist has been loaded */
         private var _reached_vod_end:Boolean;
-        /** Interval for checking buffer and position. **/
-        private var _interval:Number;
+        /** Timer used to check buffer and position. **/
+        private var _timer:Timer;
         /** requested start position **/
         private var _seek_position_requested:Number = 0;
          /** real start position , retrieved from first fragment **/

            _hls.addEventListener(HLSEvent.LAST_VOD_FRAGMENT_LOADED,_lastVODFragmentLoadedHandler);
            _hls.addEventListener(HLSEvent.PLAYLIST_DURATION_UPDATED,_playlistDurationUpdated);
            _setState(HLSStates.IDLE);
        };


        /** Check the bufferlength. **/
        private function _checkBuffer():void {
            var buffer:Number = 0;
            // Calculate the buffer and position.
            if(_buffer.length) {

                if(super.bufferLength ==0) {
                  // reach end of playlist + playback complete (as buffer is empty).
                  // stop timer, report event and switch to IDLE mode.
                  _timer.stop();
                  _hls.dispatchEvent(new HLSEvent(HLSEvent.PLAYBACK_COMPLETE));
                  _setState(HLSStates.IDLE);
                }
