flashnewbe — 2013-01-23T19:12:59-05:00 — #1
Hello All, I have build an email form in Flash login/registration area.
What i am trying to do is when a user login to their email and password and have successfully registered, with their login details email, Password etc. How can i get their informatiom (=data) from MySQL database
to check a user's login/pass against a DB.
guido2004 — 2013-01-24T06:20:33-05:00 — #2
Do you need help with the query? Or are you asking how to connect to the database from flash?
flashnewbe — 2013-01-24T19:33:52-05:00 — #3
Thank you Guido for your response. It's the latter! Forgive the simplicity of my question, but I'm a complete beginner at this. When a user logs in how can Flash or the Database check the users information?
guido2004 — 2013-01-27T08:00:36-05:00 — #4
Flash (which runs client side) can't directly interact with the database (server side).
In your flash script you'll have to call a server side script (PHP?) passing it the variables it needs. The PHP script will do all the database accessing, reading, writing, etc, and then send the result back to the flash script.
You'd use URLLoader and URLRequest for that:
A thread that might interest you: http://www.sitepoint.com/forums/showthread.php?670517-Flash-AS3-Passing-between-variables
flashnewbe — 2013-01-27T09:13:16-05:00 — #5
Thank You for the links Guido. You been a great help. I now understand more clearly what i need to do.