 		*/
 		override public function addCommand(cmd:ICommand):void
 		{
+			super.addCommand(cmd);
 			if (cmd is IResource)
 			{
 				m_numResourcesToLoad++;
 			}
-			super.addCommand(cmd);
 		}
 		
 		/**

		*/
		public function progress():Number
		{
			var total:Number = m_numResourcesLoaded + 
				m_numResourcesToLoad + m_pendingCommands.length;
			var current:Number = m_numResourcesLoaded;
			return Math.round(current / (total / 100) + 
				(progressOfCurrentResources() / total));
			return 0;
		}
		
		/**

			if (e.target is IResource)
			{
				m_numBytesLoaded += IResource(e.target).bytesLoaded();
				m_numResourcesLoaded++;
				dispatchEvent(new ResourceEvent(ResourceEvent.PROGRESS));
			}
			super.command_complete(e);
		}
