troubleshooting Question

Pass object into pop up window

Avatar of hallikpapa
hallikpapa asked on
Apache Flex
4 Comments1 Solution783 ViewsLast Modified:
I have a pop up window for resetting a password in a TitleWindow componment. My main application calls this component by doing the following. How do I capture the object from the main application in my pop up window component?

Basically I want to pass the userID to reset the password for the correct user.
//main application code snippet
 private function resetPassword():void {
                var passwordWindow:IFlexDisplayObject =
                    PopUpManager.createPopUp(this, ResetPassword, true);
//Pop Up Component snippet
            import mx.managers.PopUpManager;
            import com.UserAccount;            
			import mx.managers.PopUpManager;
			import mx.controls.Alert;
            private var connection:NetConnection;
			private var gateway:String = "http://localhost/gateway.php";
			private function init():void
				connection = new NetConnection();
				connection.connect( gateway );
			private function resetPass():void
				if(pass1.text == pass2.text){
					var updateP:UserAccount = new UserAccount();
					updateP.userID =//WHAT SHOULD THIS BE;
					updateP.password = pass1.text;
						new Responder( onResult_new, onFault ), updateP ); 		         
                } else {
              "Password Mismatch");
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros