0 Replies Latest reply on Nov 25, 2007 11:42 AM by Newsgroup_User

    How to pass query result from pop-up?

    Level 7
      First of all, sorry for my english, I hope you could understand me :-)
      I'm newbie in Flex, just started. I wrote main application with button
      "Login", and when I click on it I generate pop-up window witn my
      custom component "LoginForm". In this form I check in my MySQL
      database using PHP if the username and the password are correct.
      To this point it works.

      Now, I would like to pass the result (the query return full name of
      the users if it is correct) to the variable declared in main
      var person:Staff = new Staff();

      Staff is my class defined in separate file Staff.as with public
      variable full_name:String and public method setFullName(name:String);

      How to do that?

      Best regards,