package
{	
	import flash.events.MouseEvent;
	import flash.text.TextField;
	import flash.display.MovieClip;

	public class CTab extends MovieClip
	{
		public var txt:TextField; 
		
		public function CTab(Name:String)
		{
			txt = this.txt as TextField;
			txt.text = Name;
			addEventListener(MouseEvent.ROLL_OVER, onRollOver, false, 0, true);
			addEventListener(MouseEvent.ROLL_OUT, onRollOut, false, 0, true);
		}
		
		protected function onRollOver(e:MouseEvent):void
		{			
			this.alpha = 0.9;
		}
		
		protected function onRollOut(e:MouseEvent):void
		{
			this.alpha = 1;
		}
	}
}
