[Request] AMFPHP object for flash runtime
Hello,
I'm a long time Clickteam game creation software user (starting with Klik&Play - my copy was one of the first anyone bought in Poland! :) ). I was mostly creating games for fun (with K&P and later with TGF1) but recently I decided to go pro. But in my first commissioned game I've encountered a problem that I cannot resolve by myself.
I'm expected to deliver flash games that will be integrated into an online gaming service. The service lets people compete in various arcade games by registering their scores an comparing them. The problem is that the outcome data (such as game session ID, players ID and the score) has to be transfered to the server via AMFPHP (http://www.amfphp.org) and the client won't agree to do it any other way.
I imagine that AMFPHP is quite a popular way of integrating flash games into sites. As there is no extension for that, I wonder if any of you extension developers could look into that matter and judge just how possible it would be to port AMFPHP as a MMF2 Flash extension. Or maybe just some of the functions? Or maybe something that would mimic the output so that server-side AMFPHP scripts would accept it?
I have no means to do it myself (no C++ knowledge whatsoever). I hope to receive some support here - if not from Clickteam (gratz!) then from the community.
Regards!
Re: [Request] AMFPHP object for flash runtime
If you know the format that the PHP scripts are expecting, then you'll be able to do this yourself already with the Get object (telling it to retrieve the page address, with your parameters on the end). However, I haven't yet looked at how complex the data that needs to be exchanged is, or whether this is practical.
And hello and welcome :)
Re: [Request] AMFPHP object for flash runtime
Hi David :-) Long time no see!
Actually I have the server-game communication figured out and yes, I plan to use "GET" object for that. But I don't think that it can handle the game-server communication. Posting parameters to the server is a bit more complicated than reading parameters from the page the SWF was embedded on.
Help and tips still needed, guys!
Re: [Request] AMFPHP object for flash runtime
Re: [Request] AMFPHP object for flash runtime
Quote:
Originally Posted by WMroczek
But I don't think that it can handle the game-server communication. Posting parameters to the server is a bit more complicated than reading parameters from the page the SWF was embedded on.
How so?
Re: [Request] AMFPHP object for flash runtime
As I understand my client's specific needs, he's running a AMFPHP server-side script (or application - I don't really understand how AMFPHP works - hence my call for help) which he uses to gather information (such as score, game session ID and user ID) from the games upon their end. Up until now he would put on his service games made directly in Flash. That allowed embedding AMFPHP game-side code.
If I understand you and David correctly - both of you think that there's no reason that sending parameters to AMFPHP serwer via GET object calls wouldn't work?
Re: [Request] AMFPHP object for flash runtime
Mruqe - Get objects not only receives data but also sends data so it should work perfectly for you.
I siema :)
Re: [Request] AMFPHP object for flash runtime
Quote:
Originally Posted by Fanotherpg
Mruqe - Get objects not only receives data but also sends data so it should work perfectly for you.
I'm well aware that GET is able to send strings of data. But that's not how AMFPHP works. It logs onto a AMF server and sends binary commands. You can't do that via GET. I had some hopes to use Lacewing for that, but no luck.
So, I'll guess the request still stands :-)
I siema ;-)