Thanks David, OK, HTTP -> String... that clears a lot! Can you give a little example of how to do 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.
Best regards, Cor van Dooren -----Original Message----- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Dave Watts Sent: dinsdag 6 september 2011 6:08 To: Flash Coders List Subject: Re: [Flashcoders] DataGrid: save multidim arrayfrom Flash to mySQL with PHP > 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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders