Thanks! I just had to move the listener from init to the method that instantiates helpWindow - or else it would be setting it to a null object.
--- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Are you dispatching the "LoginEvent.TYPE", etc event from the PopUp? > > > > Oh, also, unless those events are set to bubble, you don't want to add > your listeners to "this". instead, you want to do: > > helpWindow.addEventListener(LoginEvent.TYPE, checkLogin); > > > > Also, remove those last three args and use the defaults. > > > > Tracy > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of kenny14390 > Sent: Friday, April 04, 2008 7:10 PM > To: [email protected] > Subject: [flexcoders] Custom PopUp TitleWindow Sending Status Back to > Main App > > > > I made a custom TitleWindow to log a user in or register them and I > invoke it from the main application using: > > this.helpWindow = PopUpManager.createPopUp(canvas3, login, false); > > canvas3 is just the Canvas that I want the PopUp to be centered in, > and login is the name of my custom component. I have no idea why I > need "false" there, I copied the code from the documentation. > > Inside of login I have two HTTPServices; one for logging in and the > other for registering. When either gets a result, it dispatches a > custom Event. The problem is that I want the main app to listen for > the event and update some of its labels and fields accordingly. I have > the following code in my init method: > > this.addEventListener(LoginEvent.TYPE, checkLogin, false, 0, true); > this.addEventListener(RegEvent.TYPE, checkReg, false, 0 ,true); > > Somebody wrote the skeleton for this code for me, so again, I don't > know what "falso, 0, true" is for. > > The problem is that checkLogin and checkReg are never being called. > Any idea on how to pass back information from the popup back to the > main app? >

