Flex 4: does deleting an element also destroy the element?

I am dynamically adding and removing items from VGroups. When I create an item and then add it to a VGroup and then remove it from that VGroup, does it destroy the item completely? if not how can I destroy the element so that it doesn't take up memory space.

thanks!

+2


a source to share


1 answer


An object is sent to the garbage collector if there are no references to that object. which means two things:



  • all container elements that include this object must remove the element (Group, Box, Container, ...)

  • all event listeners should be removed.

+2


a source







All Articles