----- Original Message ----- From: "roopal_oswal" <[email protected]> To: <[email protected]> Sent: Wednesday, January 07, 2009 12:09 PM Subject: [flexcoders] Re: Properly remove children
> --- In [email protected], "markgoldin_2000" > <markgoldin_2...@...> wrote: >> >> How do I remove children from a container in order to completely >> destroy them? Will removeAllChildren do the job? >> >> Thanks >> > > removeChild(obj) will remove the obj child from the container. you can > assign obj to null if you do not want to reuse it.removeAllChildren > will remove all the child objects of your Container. Yes, but this doesn't always make them available for garbage collection, so they won't be completely destroyed if there are still references to the removed children.

