package classes.gustavo.ui.box 
{
	import classes.matuto.core.Button;
	
		
	import classes.greensock.TweenMax;	
	import fl.motion.easing.Exponential;

	
	/**
	 * ...
	 * @author gustavo
	 */
	public class Botao extends Button 
	{
		
		public function Botao() 
		{
			
		}
		
		public override function over() :void
		{
			TweenMax.to(this,.7,{autoAlpha:.5,ease:Exponential.easeInOut});
		}
		
		public override function out() :void
		{
			
			if(enabled) 
			{	
				TweenMax.to(this,.7,{autoAlpha:1,ease:Exponential.easeInOut});
			}
			
		}
		
		
		override public function set enabled(value:Boolean):void 
		{			
			super.enabled = value;
			
			if (value)out();
			else over();
		}
		
		
	}

}