RE: [flexcoders] Popup window close button fails

2009-05-06 Thread Tracy Spratt
It is not automatic.  The button just dispatches the close event.  You need
to define a close event handler. And in that do
PopUpmanager.removePopUp(this).

 

Though  more often, I just dispatch a custom named event, and have in a
listener/handler in the component that created the popup, and in that
handler, I get what data I need from the popup on close, like status(ok,
cancel) and value if any, then call PopUpmanager.removePopUp(event.target).

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tom McNeer
Sent: Wednesday, May 06, 2009 5:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Popup window close button fails

 






In the application I'm creating, I have a few popups. Each has the
showCloseWindow attribute set to true, and sure enough, the button is
there. But it won't close the window when clicked.

?

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumco http://www.mediumcool.com ol.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560





Re: [flexcoders] Popup window close button fails

2009-05-06 Thread Tom McNeer
Hi Tracy,

Thanks for the explanation. I knew the close event was fired. But I guess I
thought the default close event also called the PopUpManager.

Maybe it's me, but I think the Lang Ref could be a little clearer about
this.

Thanks for straightening me out, anyway.


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560