Can Actionscript 3 read/write off a MySQL database?
3 replies, posted
I don't know the language too well so that's why I'm asking. Is it possible for AS3 to read and write to a database?
Not AFAIK, you have to communicate through PHP to do that.
It could do, but that really isn't the way to do it at all; Anybody would be able to decompile your SWF and get hold of the database details. As efeX said, the best way to do it is to set up a php script as an interface. That way, you can sanitise anything the user does to ensure that it isn't malicious.
If you're pretty new to flash and php, a good tutorial can be found at [url]http://www.kirupa.com/developer/actionscript/flash_php_mysql.htm[/url]. It takes you through the notions and explains it pretty well along the way.
Let me know if you need any more help :)
Like everyone else has said, you want to use php with AS3. It's not too hard either.
Sorry, you need to Log In to post a reply to this thread.