package classes.matuto.utils.display 
{
	import flash.display.DisplayObject;
	import classes.greensock.*;
	
	/**
	 * ...
	 * @author gustavo
	 */
	public class Remove 
	{
		
		public static function add(value:DisplayObject) 
		{
			
			value.parent.removeChild(value);
			value = null;
			TweenLite.killTweensOf(value,false,{onComplete:true});
			TweenMax.killTweensOf(value,false,{onComplete:true});
		}
		
		public static function greensock(value:DisplayObject) 
		{
			TweenLite.killTweensOf(value,false,{onComplete:true});
			TweenMax.killTweensOf(value,false,{onComplete:true});
		}
		
	}

}