 	import flash.events.SecurityErrorEvent;
 	import flash.net.URLLoader;
 	import flash.net.URLRequest;
+	import flash.utils.clearTimeout;
+	import flash.utils.setTimeout;
 	
 	import org.mangui.hls.HLS;
 	import org.mangui.hls.HLSSettings;

			}
		}
		
		protected function isCurrent(subtitles:Subtitles, position:Number):Boolean
		{
			return subtitles 

				Log.error(_remainingRetries+" retries remaining");
			}
			
			// We only wait 1s to retry because if we waited any longer the playhead will probably
			// have moved past the position where these subtitles were supposed to be used
			if (_remainingRetries--)
			{
				clearTimeout(_retryTimeout);
				_retryTimeout = setTimeout(loadFragment, 1000);
			}
			else
			{
