Hi dude,
One more suggestion for ur question is below:

First when ur object is marked as delete just add a removeEvent listener to
the component and assign the comp reference to null.
It will do.
This might be an easier way.
Jus try this out.

Thanks,
Veeru

On Sun, Aug 23, 2009 at 9:13 AM, Sachin Patil <[email protected]> wrote:

>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to