Don't think procedural. Think broadcast/listener. If you're waiting on service results, just add setBusyCursor="true" to the service component. This will prevent the user from doing anything until the results return. Then in your results handler, close the popup.
Regards, Rob Rusher RIA Consultant Macromedia Certified Flex Instructor e:[EMAIL PROTECTED] c:303.885.7044 im:robrusher -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of charlespaz1 Sent: Wednesday, July 20, 2005 5:05 PM To: [email protected] Subject: [flexcoders] Wait for Popup to close How do you make your application pause execution while waiting for the results of a Pop up? i.e. function test() { var myPopUp = mx.managers.PopUpManager.createPopUp(_root, myWindow, true, false); // Pause here, don't show alert until popup is closed mx.controls.Alert.show("PopUp closed"); } -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

