View Full Version : Flash Array -> AMFPHP

10-21-2004, 12:06 PM
Can I send a Actionscript Array object to my AMFPHP Gateway? Before I go getting a flat spot from banging my head thought someone might be able to shed some light on this for me.

Something like this:

myArray:Array = new Array();
//Populate the Array with some stuff
//and send it to the gateway
service.myService(myResponder, myArray);

When it gets to the PHP method this is what i have

function myService($myArray){
// blah blah blah }

Can I do this?? :eek:

11-17-2004, 09:19 PM
No... cos Flash AS uses a different style of arrays and simply posting it over will deffinitely not be compadable. And besides how is flash ment to express array data VIA POST/GET format?

11-17-2004, 10:22 PM
huh? this isn't POST/GET, this is AMFPHP remoting.

Yes, you can pass arrays to your AMFPHP service. You can even pass objects ^_^

11-18-2004, 10:10 AM
woops sry my mind was off