mattlundstrom
7/11/2012 - 11:52 PM

AS3 Smart Remove Child

AS3 Smart Remove Child

function smartRemoveChild(p:DisplayObject, c:DisplayObject):void{
	if (p.contains(c)) 	p.removeChild(c)
}