1 Reply Latest reply on Nov 27, 2007 10:45 AM by ntsiii

    How to pass query result from pop-up?

    TodLoch
      Hi!
      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
      application:
      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,
      Mariusz