 		{
 			return m_loader.data;
 		}
-		
+
 		public override function bytesLoaded() : int
 		{
+			if (m_attachMode)
+			{
+				return 1;
+			}
+			if (!m_loader)
+			{
+				return 0;
+			}
 			return m_loader.bytesLoaded;
 		}
-		
+
 		public override function bytesTotal() : int
 		{
+			if (m_attachMode)
+			{
+				return 1;
+			}
+			if (!m_loader)
+			{
+				return 0;
+			}
 			return m_loader.bytesTotal;
 		}
 		

		***************************************************************************/
		protected override function doLoad() : void
		{
			m_loader = new URLLoader();
			m_loader.addEventListener(
				HTTPStatusEvent.HTTP_STATUS, loader_httpStatus);

	import flash.events.HTTPStatusEvent;
	import flash.net.URLLoader;
	import flash.net.URLRequest;
	import flash.net.URLRequestMethod;
	import flash.utils.ByteArray;

	public class FileResource extends AbstractResource
	{
