package classes.matuto.utils.model
{
	
	import classes.matuto.model.Model;
	
	import flash.display.Sprite;
	import flash.events.Event;

	
	public class Encurtador extends Sprite
	{
		
		private var value:String;
		public static const COMPLETE:String = "complete";
	
		
		public function Encurtador()
		{
			
		}
		
		public function init(_value:String)
		{
			value = _value;	
			Model.AMF_CONNECT("encurtadorUrl",complete,"ERRO NO ENCURTADOR",value);
		}
		
		private function complete(e:String):void
		{	
			value = e;
			dispatchEvent(new Event(COMPLETE));
		}
		
		public function get getLinkEncurtado():String
		{
		     return value;
		}
		
		
		
	}//end class
}