开发者

Flash connectivity with database

How can I esta开发者_Go百科blish connection of a Flash site with a database(i.e. MYSQLetc)?


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#


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


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜