Got the answer :) The weakRef parameter to the addEventListener() method provides you with some control over memory resources for listeners. A strong reference (when weakRef is false) prevents the listener from being garbage collected. A weak reference (when weakRef is true) does not. The default is false.
On Aug 20, 10:49 am, Sachin Patil <[email protected]> wrote: > Hi All, > > I am facing some serious memory issues. One of the action script > component(used as renderer to datagrid) is not garbage collected, as > the eventListners are not removed when component is removed or > deleted. I want to know how to write a destructor method in Action > Script or a method which gets called when the component/object is > marked as delete. > > Waiting for reply. > > Regards, > Sachin Patil. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

