removeAllChildren
Started by: edoleckiedolecki
On: 1203692330|%e %b %Y, %H:%M %Z|agohover
Number of posts: 1
rss icon RSS: New posts
removeAllChildren
edoleckiedolecki 1203692330|%e %b %Y, %H:%M %Z|agohover

Flex has removeAllChildren, but outside of Flex, you need to roll your own for now. An example.

private function removeAllChildren( containerObj:* ):void
{
    while ( containerObj.numChildren > 0 )
    {
        container.removeChildAt(0);
        // Of course this does not ensure Garbage Collection,
        // You'll still need to provide this logic.
    }
}
last edited on 1203692408|%e %b %Y, %H:%M %Z|agohover by edolecki + show more
unfold removeAllChildren by edoleckiedolecki, 1203692330|%e %b %Y, %H:%M %Z|agohover
New post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License