[Flashcoders] (AS3) Object to an Array

2008-04-29 Thread SJM - Flash
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

Re: [Flashcoders] (AS3) Object to an Array

2008-04-29 Thread Glen Pike
Hi, You could create a loop to look through each object and then make up your arrays a bit like this - untested: sendVars.textVars = new Array(); var numVars:int = textVars.length; for(var i:int = 0;i numVars;i++) { var obj:Object = textVars[i]; for(item:String

Re: [Flashcoders] (AS3) Object to an Array

2008-04-29 Thread Muzak
use remoting: http://www.amfphp.org/ - Original Message - From: SJM - Flash [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com 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

RE: [Flashcoders] (AS3) Object to an Array

2008-04-29 Thread Pete Hotchkiss
Or SWX format http://www.swxformat.org/ Pete -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: 29 April 2008 14:09 To: Flash Coders List Subject: Re: [Flashcoders] (AS3) Object to an Array use remoting: http://www.amfphp.org

Re: [Flashcoders] (AS3) Object to an Array

2008-04-29 Thread SJM - Flash
( [textVars] = [object Object] ) Thanks SM - Original Message - From: Glen Pike To: Flash Coders List Sent: Tuesday, April 29, 2008 1:43 PM Subject: Re: [Flashcoders] (AS3) Object to an Array Hi

Re: [Flashcoders] (AS3) Object to an Array

2008-04-29 Thread SJM - Flash
to an Array use remoting: http://www.amfphp.org/ - Original Message - From: SJM - Flash [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Tuesday, April 29, 2008 2:19 PM Subject: [Flashcoders] (AS3) Object to an Array Hi Guys Im in need

Re: [Flashcoders] (AS3) Object to an Array

2008-04-29 Thread Glen Pike
Object] ) Thanks SM - Original Message - From: Glen Pike To: Flash Coders List Sent: Tuesday, April 29, 2008 1:43 PM Subject: Re: [Flashcoders] (AS3) Object to an Array Hi, You could create a loop to look through each

Re: [Flashcoders] (AS3) Object to an Array

2008-04-29 Thread Juan Pablo Califano
Coders List Sent: Tuesday, April 29, 2008 1:43 PM Subject: Re: [Flashcoders] (AS3) Object to an Array Hi, You could create a loop to look through each object and then make up your arrays a bit like this - untested: sendVars.textVars = new Array(); var numVars:int

Re: [Flashcoders] (AS3) Object to an Array

2008-04-29 Thread Muzak
ASP .NET ? use remoting ;-) http://www.themidnightcoders.com/weborb/dotnet/ - Original Message - From: SJM - Flash [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Tuesday, April 29, 2008 3:52 PM Subject: Re: [Flashcoders] (AS3) Object to an Array

Re: [Flashcoders] (AS3) Object to an Array

2008-04-29 Thread SJM - Flash
Thanks for your help guys i went down the JSON route and won! :o) - Original Message - From: Muzak To: Flash Coders List Sent: Tuesday, April 29, 2008 3:35 PM Subject: Re: [Flashcoders] (AS3) Object to an Array ASP .NET ? use remoting ;-) http