开发者

flex 4: does remove element also destroys the element?

开发者 https://www.devze.com 2022-12-30 17:48 出处:网络
I dynamically add and remove elements form VGroups. When I create an element and then append it to a VGroup and then remove it from that VGroup, does it destroy the element completely? if not, how can

I dynamically add and remove elements form VGroups. When I create an element and then append it to a VGroup and then remove it from that VGroup, does it destroy the element completely? if not, how can I destroy the element so it won't take space i开发者_如何学Gon memory.


An Object is sent to the garbage collector as long as there are no references to this object. which means two things:

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

  2. all event listeners should be removed.

0

精彩评论

暂无评论...
验证码 换一张
取 消