package engine 
{
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFormat;
	
	/**
	 * ...
	 * @author beisik
	 */
	public class Label extends TextField 
	{
		
		public function Label(x: Number, y: Number, text: String, color: uint = 0xFFFFFF, font: String = "", size: int = 0) 
		{
			if (font != "")
			{
				embedFonts = true;
				defaultTextFormat = new TextFormat(font, size);
			}
			
			this.x = x;
			this.y = y;
			this.text = text;
			
			autoSize = TextFieldAutoSize.LEFT;
			textColor = color;
			selectable = false;
			mouseEnabled = false;
		}
		
	}

}