0
votes

I want to create a program to write and access a database. How do I do that using ActionScript?

2
You will typically get far more response here if you show that you have put for any tiny little bit of effort to solve the problem yourself. "Write me a database in Action Script 3" isn't likely to be successful. Share what you have tried. If you have not tried anything yet, do so. Then come back and ask again. - mmc

2 Answers

0
votes

ActionScript within the Flash Player has no possibility to access the file system alone. You'll need a server-side language, such as php, to perform such tasks. ActionScript will then only communicate to those scripts and send and receive the information. It so works similar to a simple HTML website, just with Flash displaying the content.

0
votes

Flash(AS3) can make arbitrary TCP socket connections, so this is possible. It presents an immense security risk as a swf can easily be decompiled and a malicious individual can then use the credentials compiled in the swf to perform whatever queries they would like. You also get into socket policy files on the server.