package launcher.button 
{
	/**
	 * ...
	 * @author alekskart
	 */
	import launcher.button.*;
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	import caurina.transitions.Tweener;
	 
	public class FightButton extends MovieClip 
	{
		public var fightbuttonActiveENI:fight_button_active_en = new fight_button_active_en();
        public var fightbuttonActiveRUI:fight_button_active_ru = new fight_button_active_ru();
        public var fightbuttonENI:fight_button_en = new fight_button_en();
        public var fightbuttonHoverENI:fight_button_hover_en = new fight_button_hover_en();
        public var fightbuttonHoverRUI:fight_button_hover_ru = new fight_button_hover_ru();
		public var fightbuttonRUI:fight_button_ru = new fight_button_ru();
		
		
        public var fightbuttonActiveEN:MovieClip = new MovieClip();
		public var fightbuttonActiveRU:MovieClip = new MovieClip();
		public var fightbuttonEN:MovieClip = new MovieClip();
		public var fightbuttonHoverEN:MovieClip = new MovieClip();
		public var fightbuttonHoverRU:MovieClip = new MovieClip();
		public var fightbuttonRU:MovieClip = new MovieClip();
		
		public function FightButton() 
		{
			
			fightbuttonRU.alpha = 0.7; 
            fightbuttonRU.addEventListener(MouseEvent.MOUSE_OVER, onFightButtonOver);
            fightbuttonRU.addEventListener(MouseEvent.MOUSE_OUT, onFightButtonOut);
			fightbuttonRU.addEventListener(MouseEvent.MOUSE_DOWN, onFightButtonDown);
            fightbuttonRU.addEventListener(MouseEvent.MOUSE_UP, onFightButtonUp);
			fightbuttonRU.addChild(fightbuttonRUI);
			fightbuttonRU.buttonMode = true;

			addChild(fightbuttonRU);
			
		    fightbuttonEN.alpha = 0.7; 
			fightbuttonEN.addChild(fightbuttonENI);
			fightbuttonEN.buttonMode = true;
			addChild(fightbuttonEN);
			fightbuttonEN.visible = false;
		}
		
		public function onFightButtonOver(event:MouseEvent):void 
		{
            Tweener.addTween(fightbuttonHoverRUI, { alpha: 0, time: 0 });
            Tweener.addTween(fightbuttonHoverRUI, { alpha: 1, time: 2.5 });
            fightbuttonRU.addChild(fightbuttonHoverRUI);
        }

		public function onFightButtonOut(event:MouseEvent):void 
		{
            Tweener.addTween(fightbuttonHoverRUI, { alpha: 0, time: 2.5, onComplete: removeHoverTexture });
        }
		
        private function removeHoverTexture():void 
        {
            fightbuttonRU.removeChild(fightbuttonHoverRUI);
            fightbuttonRU.addChild(fightbuttonRUI);
        }

		
		public function onFightButtonDown(event:MouseEvent):void 
		{
            if (fightbuttonRU.contains(fightbuttonHoverRUI)) 
			{
                fightbuttonRU.removeChild(fightbuttonHoverRUI);
            } 
			else 
			{
                fightbuttonRU.removeChild(fightbuttonRUI);
            }
            fightbuttonRU.addChild(fightbuttonActiveRUI);
        }

		public function onFightButtonUp(event:MouseEvent):void 
		{
            fightbuttonRU.removeChild(fightbuttonActiveRUI);
            if (fightbuttonRU.contains(fightbuttonHoverRUI)) 
			{
                fightbuttonRU.addChild(fightbuttonHoverRUI);
            } 
			else 
			{
                fightbuttonRU.addChild(fightbuttonRUI);
            }
        }

        public function updateButton(language:String):void 
		{
            if (language == "RU") 
			{
                fightbuttonEN.visible = false;
				fightbuttonRU.visible = true;
            } 
		    else if (language == "EN") 
		    {
                fightbuttonEN.visible = true;
				fightbuttonRU.visible = false;
            }
        }
		
	}

} как для fightbuttonHoverRU сделать появление и затухание плавное