> Do you mean that is it not possible to send an array from Flash to PHP in
> this way:
>
> private function validateAndSend(e:MouseEvent):void {
> form_variables = new URLVariables();
> ...
> form_variables.VALUES = myMultiDimArray;
> form_varLoader.addEventListener(Event.COMPLETE,
> completeLoadHandler);
> form_varLoader.load(form_varSend);
> }
That would send a single form field, VALUES, with a single value
containing something that's not a string. But sending data via HTTP
requires that you use strings. In the simplest case, you'd at least
have to convert the array to a string to store it within the single
form field. This kind of thing is a fairly common problem with web
applications - you typically have to serialize your data to send via
HTTP, then deserialize the sent data to use it as an object that's not
a string.
Normally, as an occasional Flex guy, I end up using AMF which includes
serialization/deserialization functionality to handle this for you.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders