 import flash.net.URLLoader;
 import flash.net.URLLoaderDataFormat;
 import flash.net.URLRequest;
+import flash.system.ApplicationDomain;
 import flash.utils.Timer;
 
 import mx.core.mx_internal;

		dispatchEvent(new ProgressEvent(ProgressEvent.PROGRESS,
										false, false, loaded, total));

		// Check if we are finished
		if (rslDone &&
			((loaded >= total && total > 0) || (total == 0 && loaded > 0) || (root is MovieClip && (MovieClip(root).totalFrames > 2) && (MovieClip(root).framesLoaded >= 2)) ))
		{
			timer.removeEventListener(TimerEvent.TIMER, timerHandler);
			
			// Stop the timer.
			timer.reset();
			
			// Dispatch a complete event.
			dispatchEvent(new Event(Event.COMPLETE));
			
			// Dispatch an initProgress event.
			dispatchEvent(new FlexEvent(FlexEvent.INIT_PROGRESS));
		}
	}


	    var index:int = rslListLoader.getIndex();
	    var item:RSLItem = rslListLoader.getItem(index);
		var rslEvent:RSLEvent = new RSLEvent(RSLEvent.RSL_ERROR);
		rslEvent.isResourceModule = (rslListLoader == resourceModuleListLoader);
		rslEvent.bytesLoaded = 0;
		rslEvent.bytesTotal = 0;
		rslEvent.rslIndex = index;
