Hi there:

I'm creating a complex object in AS 3 to send to a PHP page, but I'm having trouble when I try to send an array as part of that object.

For example:

Code:
searchObject.geo.geosearchfields = new Array();
searchObject.geo.geosearchfields["streetname"] = "34th";
searchObject.geo.geosearchfields["streetnumber"] = "";
searchObject.geo.geosearchfields["city"] = "Des Moines";
When I serialize searchObject, the arrays appear to get translated to string representations of regular objects with text keys instead of remaining an array, like so:

Code:
s:15:"geosearchfields";O:8:"stdClass":3:{s:10:"streetname";s:4:"34th";s:12:"streetnumber";s:0:"";s:4:"city";s:10:"Des Moines";}
This is causing problems when I send the object to the PHP page.

Does this behavior make sense?

Many thanks,

-mike