I have a form that displays information about an estimate/bid on a product. When you click edit, it displays a modal PopUp window that lets you edit the estimate. How can I tell when the PopUp has closed so that I can tell the original/parent form to refresh?
EDIT: Btw the PopUp is a mx:TitleWindow which I'm opening with the PopUpManager and passing my estimate to it.
Here is my code for opening the PopUp:
private function showEstimatePopUp(est:Estimate, title:String):void
private var win:EstimateForm;
win = EstimateForm(PopUpManager.createPopUp(this, EstimateForm, true));
win.title = title;
Message was edited by: acbarberi - Added code
Just listen for the "close" event on your TitleWindow.
If you want to have two different responses from your TitleWindow (ie. "OK" and "CANCEL"), then you'll need to dispatch custom events from your TitleWindow and listen for those.