package classes.matuto.core
{

	
	/*
	
		Classes responsavel pelo 
		preloader inical do Main.swf
	
		autor: gustavo cosme
		data:  18/maio/2011
	
	*/
	
	import classes.matuto.loaders.SwfLoad;
	
	import flash.display.Loader;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.net.URLRequest;
	import flash.net.navigateToURL;
	import classes.matuto.ui.RightMenu;

	
	public class PreloaderBase extends SwfLoad
	{
		
		
		public function PreloaderBase()
		{
						
			stage.scaleMode = "noScale";
			stage.align     = "TL";
			
			SiteMaps.init(COMPLETE_SITE_MAPS);
		
		}	

		
		
		private function COMPLETE_SITE_MAPS():void
		{
			
			init();
			
			stage.addEventListener(Event.RESIZE,onResize);
			onResize(null);	
			addContext();
		}
		
	
		public function inicializaLoad():void
		{
			load("Main.swf");
			addEventListener(SwfLoad.COMPLETE,_complete);
			addEventListener(SwfLoad.PROGRESS,_progress);
				

		}
		
		
		
		
		private function _complete(e:Event):void
		{
		
			complete();
						
			removeEventListener(SwfLoad.COMPLETE,_complete);
			removeEventListener(SwfLoad.PROGRESS,_progress);
			stage.removeEventListener(Event.RESIZE,onResize);
		
		}
		
		private function _progress(e:Event):void
		{
		
		    progress();
			
		}
		
		
		public function onResize(e:Event):void
		{
		  
			resize();
		
		}

		
		
		//====================USER=====================================//

		
		
		public function init():void
		{
			
			
		}
		
		
		public function complete():void
		{
		
		
		}
		
		public function progress():void
		{
			
			
		}
		
		
		public function resize():void
		{
		
		
		
		}
		
		
		private function addContext():void
		{

			
			return;
			
		}
		
		

		
		
		
	}//end class
}