package modules.contato
{
	import flash.display.MovieClip;
	import flash.events.Event;
	import classes.matuto.model.Model;
	import classes.matuto.loaders.*;
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.MouseEvent;
	import genericos.*;
	import flash.net.*;
		//Matuto
	import classes.fl.motion.easing.*;
	import classes.greensock.*;
	import classes.matuto.core.*;
	import classes.matuto.core.module.*;
	import classes.matuto.events.*;
	import classes.matuto.interfaces.*;
	import classes.matuto.model.*;
	import classes.matuto.mtween.textinho.*;
	import classes.matuto.ui.*;
	import classes.matuto.utils.display.*;
	import classes.matuto.utils.model.*;	
	import modules.home.*;
	import modules.menu.*;
	import flash.geom.*;
	import genericos.RectangleSprite;
	import com.freshplanet.lib.ui.scroll.mobile.ScrollController;
	
	public class Contato extends MovieClip 
	{
		
		private var _scroll:ScrollController;
		private var container	:	Sprite;
		
		
		public function Contato() 
		{
			addEventListener(Event.ADDED_TO_STAGE, add);
			addEventListener(Event.REMOVED_FROM_STAGE, remove);
		}
		
		private function remove(e:Event):void 
		{
			removeEventListener(Event.REMOVED_FROM_STAGE, remove);
			_scroll.removeScrollControll();
			_scroll = null;
		}
		
		private function add(e:Event):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, add);
			
			alpha = 0;
			x = 300;
			TweenMax.to(this,.6,{x:0,autoAlpha:1,ease:Exponential.easeInOut,onComplete:function(){
			}});
			
			var containerViewport:Rectangle = new Rectangle(0, 118,stage.stageWidth,stage.stageHeight);
			this._scroll = new ScrollController();
			this._scroll.horizontalScrollingEnabled = false;
			this._scroll.addScrollControll(_container, this, containerViewport);
		}
		

		
	
	
		
	}//END CLASS

}