I'm not sure what you mean by "still available".  Generally, there will
be some way to avoid it.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of David Ham
Sent: Saturday, May 03, 2008 8:22 AM
To: [email protected]
Subject: [flexcoders] Re: States, Garbage Collection, Event
Listeners--all FUBAR

 

I changed my setup a bit, but I'm not sure it's helping. I now have a
ViewContainer which has a property 'page' which refers to the current
view. When I change the page, I do this:

* Call the current page's clear() method, which unregisters all of its
listeners, and calls similar clear() methods on its child components
* Call the ViewContainer.removeChild( page )
* Set the new page -- ViewContainer.page = newPage;
* The 'page' setter in ViewContainer then calls invalidateProperties,
-Size, and -DisplayList

However, it seems that the old page is still available to the
container after being removed. Any way to avoid this?

OK
DAH

 

Reply via email to