Vibhakar SInha
Vibhakar SInha

Reputation: 299

Flash connectivity with database

How can I establish connection of a Flash site with a database(i.e. MYSQLetc)?

Upvotes: 1

Views: 358

Answers (4)

knuckfubuck
knuckfubuck

Reputation: 969

There is a project called assql that connects Flash directly to the database but is aimed at AIR projects. AMFPHP is good for using php to save to the database from AS3.

Upvotes: 0

Simsons
Simsons

Reputation: 12745

If you need to pass the Data from Flash to Database , for example Registration information , then follow the Tutorial

I assume you have knwoledge of Server Side Scripting like PHP or C#

Upvotes: 1

Adrian Pirvulescu
Adrian Pirvulescu

Reputation: 4340

You cannot connect to a database server directly from flash. To communicate with the database you need a webservice.

Upvotes: 0

Haziba
Haziba

Reputation: 1

I had to do this for a college project I did before and you can easily do it with the URLLoader and URLVariables functions by stocking up your variables and sending them to a page or recieving the variables and then taking them out of the URLVariables function.

However if you were to be passing arrays or dynamically chosen variables then you would need to pass all of your data as a comma seperated string and then parse through it on the other side and vice versa.

I'll try to post some actual code when I get home but I hope this helped

Upvotes: 0

Related Questions