Unfortunalty we are only testing in PHP, the application is going to be on an ASP coded website so we really need to fix this from flash! :o( ----- Original Message ----- From: Muzak To: Flash Coders List Sent: Tuesday, April 29, 2008 2:09 PM Subject: Re: [Flashcoders] (AS3) Object to an Array
use remoting: http://www.amfphp.org/ ----- Original Message ----- From: "SJM - Flash" <[EMAIL PROTECTED]> To: "Flash Coders List" <[email protected]> Sent: Tuesday, April 29, 2008 2:19 PM Subject: [Flashcoders] (AS3) Object to an Array Hi Guys Im in need of finding out how or even if its possible to convert an object to an array? Basically I am trying to output some vars from flash to an PHP script, yet when PHP recieves the $_POST['textVars'] as [object Object] which is a string and not an array so I can't access it with $_POST['textVars'][0]['x'], which should output the value of textBox1.x. var textVars:Object = new Object; textVars[0] = { x :textBox1.x, y :textBox1.y, width :textBox1.width, height :textBox1.height, rotation :textBox1.rotation }; textVars[1] = { x :textBox2.x, y :textBox2.y, width :textBox2.width, height :textBox2.height, rotation :textBox2.rotation }; sendVars.textVars = textVars; sendRequest.data = setVars; sendRequest.url = "process.php"; sendRequest.method = URLRequestMethod.POST; sendToURL(sendRequest); Thanks SM _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

