Re: [Flashcoders] Objects to Lists

2006-07-08 Thread Ian Thomas
var someObject:Object = ... your object ...; var arr:Array=[]; for(var key:String in someObject) { arr.push(someObject[key]); } HTH, Ian On 7/8/06, Graham Pearson [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Does anyone have a function or a bit of code that will

Re: [Flashcoders] Objects to Lists

2006-07-08 Thread Ian Thomas
Whoops, sorry - misread. I assumed you wanted to turn it into an array, not a string. That being the case, add one line to my code: var someObject:Object = ... your object ...; var arr:Array=[]; for(var key:String in someObject) { arr.push(someObject[key]); } var list:String=arr.join(,); On

[Flashcoders] Objects to Lists

2006-07-07 Thread Graham Pearson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Does anyone have a function or a bit of code that will take an object and turn it into a comma separated list. I have an object that is being pulled from a listbox and want to take the data values of this object and turn it into a comma separated