You can't really blow things away in AS3 (or Java).  You kill all
references to them and they go away when garbage collected.  If you are
listening to the app model, it means the app model has a reference to
the event listener and thus it won't go away.  Use weak references or
clean up when removed from the display list.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Anderson
Sent: Sunday, June 03, 2007 11:32 PM
To: [email protected]
Subject: [flexcoders] Flex Component still active, even know TitleWindow
it resides in, is deleted -

 

Hello All,

I have a WEIRD problem, and I am hoping you can all shed some light on
this.

I have a Popup TitleWindow which serves the purpose of displaying
details from a Master Grid. Among all the other controls housed within
the TitleWindow, I am using the <ObserveValue> Component, which monitors
a Boolean Value residing in my ApplicationModel.

Once the user is finished looking at the Details, they must close the
Window. I am using the PopUpManager.removePopUp() method of closing the
TitleWindow, which should in essence, blow away the TitleWindow itself,
in addition to all the Controls that reside within it.

Even know the TitleWindow gets closed, I am still getting Trace Messages
outputted to my custom Debug Window (which demonstrates the fact, that
my ObserveValue Component is still active & functioning). A quick note,
I am tracing the output so that I can monitor my variables during
development of my app.

How is this possible??

I must get to the bottom of this ASAP, as this is causing some problems
with the rest of my application.

Thanks in advance for any help you can throw my way.

Mike

 

Reply via email to