Jump to content


Photo

Connecting to databse via Flash


  • Please log in to reply
1 reply to this topic

#1 phpnewbie1212

phpnewbie1212

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 10 March 2013 - 04:55 PM

Hello All, Just a query. I have Fla and php file. I'm trying to connect flash to a mysql database through PHP to create a login system for Flash. I've setup the server and database, and i'm trying to write the flash/php to connect them. My question is in the AS3 file were do you specify the location of the phpconnection file and the exact syntax for requesting access to the php file? Sorry if it sounds like a dumb question but im new to this.

Thanks



#2 jcbones

jcbones

    Advanced Member

  • Gurus
  • 2,439 posts
  • LocationNorth Carolina

Posted 10 March 2013 - 06:19 PM

You don't connect to the database through flash, but you can through PHP.  What is going to happen, is flash is going to request data from a script, that script returns the data in some form (text,xml,html), and then you let AS3 sort and display that data how you desire.

Take a look at http://help.adobe.co.../URLLoader.html






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com