Skip to main content
Participant
November 6, 2010
Answered

Flash-PHP-MySQL data exchange

  • November 6, 2010
  • 1 reply
  • 879 views

Hello,

I've been struggling with this for a few weeks, but I still can't get it right, and all the info I found is too ambiguous or uses AS2. What I want to do is to retrieve info from a MySQL database, using PHP, and send it to Flash; and in the other way, input info into the database from a Flash form. I want this to make a series of Flash tests for my website.

Could please anyone show me a simple example code (on both PHP and Flash) of how to exchange data? Thanks for your help.

PD: I know how to work with databases on PHP, so the only PHP code i need to see is the php-flash communication part. Thanks.

This topic has been closed for replies.
Correct answer Ned Murphy

If you show the code you have tried that is not working for you, someone may be able to help it along.

Beyond that, your best bet will be to search Google (or these forums) using terms like "AS3 URLVariables tutorial".  And if the data being retrieved from the mySQL tables involves alot of rows, you should look into having PHP echo the data to Flash in XML format.  You should search "AS3 XML PHP tutorial" for info on that.

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
November 6, 2010

If you show the code you have tried that is not working for you, someone may be able to help it along.

Beyond that, your best bet will be to search Google (or these forums) using terms like "AS3 URLVariables tutorial".  And if the data being retrieved from the mySQL tables involves alot of rows, you should look into having PHP echo the data to Flash in XML format.  You should search "AS3 XML PHP tutorial" for info on that.

hma90Author
Participant
November 6, 2010

Searching that I found exactly the examples I was looking for. Now I got this working, finally. Thanks for your help

Ned Murphy
Legend
November 6, 2010

You're welcome.