Save data to mysql using AS3 + Flash Builder(flex) OR AS3+AMFPHP? or AS3
Copy link to clipboard
Copied
Hi,
i just want to confirm with you guys about saving data to mysql using Action script 3.
I am now developing RPG game that user can save data again and again to the MySQL.
I searched on the net and found few solutions:
- AS3 alone using URL Loader
- AS3 + Flex +Php to save data to mysql
- AS3 + AMFPHP to save data to mysql
This make me confused as there are too many options but i do not know which one is better for me
or what are their limitations...
Could you guys help me on this?
Copy link to clipboard
Copied
in all situations, you need server-side code. so, 1 is wrong.
you don't need to use flex and you can use php or any number of other server-side languages that your server supports.
you can use navigateToURL or better use the urlloader class to call your server-side code.

Copy link to clipboard
Copied
AMF PHP is used when there is a necessity to store data in almost real time. Think of a situation where you can play a multiplayer online game where an action of any player needs to be stored prior to any other operation.
It can also be used when there is heavy data transfers needed. AMF PHP isbest way to communicate with server but it is comparatively difficult to implement.
Rest of the methods are good to be used when the data transfer between your app. and server is limited and you need a easier solution.

Copy link to clipboard
Copied
You can also think of data servers like Blaze DS, Adobe Live Cycle to transfer your data. These options are equally difficult to implement as that of AMF PHP.
Copy link to clipboard
Copied
Goedemorgen
Ik heb gisteren wat gedownload en krijg ik allemaal emails van diversen
mensen en ik ben maar een gebruiken van jullie software.
Ik wil graag een emailadres waar ik ze naar toe kan sturen ???
Sorry maar ik schijf in het nederland,maar dat kunnen jullie vertalen ???
Hoop op een antwoord,of ik kan weggooien of verzenden naar jullie.
Maar mijn computer loop vol.
Please antwoord mij ???
Regards Terry van Geel
email: terryvangeel@hotmail.com
Copy link to clipboard
Copied
Go for Flash/Flex Remoting. When using PHP, AMFPHP or ZEND are good implementations.
Zend is a complete framework, so if you're not familiar with it, it might be a bit harder to learn than AMFPHP.
On the other hand, AMFPHP is no longer being developed (if I'm not mistaken), while ZEND is - and is supported by Adobe.
http://devzone.zend.com/article/3743
Copy link to clipboard
Copied
Zend Framework
How about the costing when using Zend Framework?
As indie game developer, i think i should minimize the cost
Is there any other limitation by Zend etc?
AS3 URL Loader
I found this article at http://www.ultrashock.com/forums/actionscript/sendandload-data-91833.html
From that discussion, I think that we will have problem when using AS3 URL Loader especially to get many rows of data etc.
Now i will start focusing on Flash remoting: either by AMFPHP or Zend.
As explained by Muzak, i should moving toward Zend.
Copy link to clipboard
Copied
ramzwatcher wrote:
Zend Framework
How about the costing when using Zend Framework?
As indie game developer, i think i should minimize the cost
Is there any other limitation by Zend etc?
Not sure what you mean. Last time I checked, Zend is free.
Quote from this page: http://www.zend.com/en/products/server-ce/?zfs=zf_homepage
Zend Server Community Edition is a fast and reliable PHP application stack. It is completely free, and you can use it in development, testing and production.
Copy link to clipboard
Copied
The features of zend community server is at:
http://www.zend.com/en/products/server/editions
Yes, it's free. just curious about installing zend community server?
Does i need to install it like apache etc?
I am using shared hosting, thus not sure whether it can be installed trough shared hosting
or not.
Any one have experienced this?
Thanks
Copy link to clipboard
Copied
For developing you can use the server (install like any other software), but the Zend framework is nothing more than php files, so all you need to do is upload the framework to you hosting server and all should be well.. You may have to configure a few things, but you should be able to do that yourself.
There's plenty of documentation on installing and configuring Zend on their website.
So, only get the server edition if you don't already have a dev server (on you computer) installed, like Apache. Otherwise, just grab the framework:
http://framework.zend.com/download/latest
Select "minimal package" on the page above to only get the framework (no install). Or grab both and see what each one does but the minimal package is what you need to upload to your hosting server.
As for where Flex/Flash Builder comes in.. FB is the tool you use to create a Flash/Flex application.
Zend, AMFPHP, etc.. is used to communicate with your backend from your application, using RemoteObject
RemoteObject API
http://livedocs.adobe.com/flex/3/langref/mx/rpc/remoting/RemoteObject.html
Using RemoteObject components
http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_4.html
Copy link to clipboard
Copied
i followed this tutorial:
http://www.flepstudio.org/forum/tutorials/2862-storing-data-database-flash-cs3.html
and found URL Loader class still can save and load to database.
Thus i am not sure why we should use flash remoting while url loader can save data to mysql.
any experience muzak?
Or it just a problem when retrieving the data where it comes with a form of xml?
Thanks in advanced
Copy link to clipboard
Copied
Go for Flash/Flex Remoting. When using PHP, AMFPHP or ZEND are good implementations.
Zend is a complete framework, so if you're not familiar with it, it might be a bit harder to learn than AMFPHP.
On the other hand, AMFPHP is no longer being developed (if I'm not mistaken), while ZEND is - and is supported by Adobe.
Hurm, how about Flash Builder or FLEX itself ? When does Zend comes in?
I still confused with these technologies. Any suggestion would help

