This content has been marked as final. Show 4 replies
Have your main application register an event listener with your DlgLogin. When the login is done, dispatch that event from your DlgLogin form.
It's easier if you create the popup then launch it .
myPopup = PopUpManager.createPopUp( .....);
in DlgLogin when done: dispatchEvent( new Event("done"));
in your event handler:
private function handleLogin(event:Event):void
or you can make a custom Event and put the data from login in the event object.
another solution my be that your DlgLogin has a member variable which is a callback-function. you implement the callback-function in the main application and before you add the popup you set the callback-function in the DlgLogin, when you are done with login, just call your callback-function
Thanks for your help :-)