package classes.gustavo.ui.scrollItem.menuList
{
	
	import flash.display.MovieClip;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	
	public class Item extends MovieClip
	{
		
		private var texto					:TextField;
		private var bg						:MovieClip;
		
		private var id						:int;
		
		public function Item()
		{
			super();
		
			texto 				= _texto;
			bg					= _bg;
			
			initTexto();
			

	
		}
		
		public function init():void
		{
		}
		
		public function close():void
		{
			
		}
	
		private function initTexto():void
		{
			texto.mouseEnabled 		= false
			texto.autoSize  		= TextFieldAutoSize.LEFT;
		}
		
		public function set setText(value:String):void
		{
			texto.text = value;	
		}
		
		public function resize(altura:Number):void
		{
		   bg.height  =  altura;
		   texto.y    = (bg.height>>1)-((texto.textWidth-12)>>1);    
		}
		
		
		public function set setId(value:int):void
		{
			id = value;
		}
		
		public function get getId():int
		{
			return id;
		}
		
		
		
		
	
	}//end class
}

