package
{
	
	import classes.fl.motion.easing.*;
	import classes.matutoDesktop.core.Core;
	import classes.matutoDesktop.events.EventCore;
	import classes.matutoDesktop.model.DataCore;
	import classes.matutoDesktop.view.BaseView;
	import modules.menu.Menu;
	
	import flash.display.StageDisplayState;
	import flash.display.StageScaleMode;
	import flash.events.*;
	import flash.utils.setTimeout;
	import flash.ui.*;
	
	
	
	import genericos.APP;
	
	import modules.start.Start;
	
	
	public class Main extends BaseView
	{
		
		
		public var core			:	Core;
		
		
		public static var INSTANCE:Main;

		public function Main()
		{

			//Mouse.hide();
			//stage.displayState  = StageDisplayState.FULL_SCREEN_INTERACTIVE;
			stage.scaleMode  	= StageScaleMode.EXACT_FIT;
			//stage.align = StageAlign.TOP_LEFT;
		
			
			INSTANCE = this;
			
			setTimeout(init,000);

		
		}
		
		public function init():void
		{
			
			
			
			
			initCore();
		}
		
		private function initCore():void
		{
			core 	= new Core(this, new Start());
			core.addEventListener(EventCore.UPDATE_MODULE, onChangeModule);
		}
	
		private function onChangeModule(e:EventCore):void
		{
			
			var data:DataCore = e.getData;
		
		}
		
		public function resize():void
		{
		
		}
	
	} //END CLASS
}