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 7/8/06, Ian Thomas <[EMAIL PROTECTED]> wrote:
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 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 list.
> - --
> Graham Pearson, System Administrator / Application Developer
> Northern Indiana Educational Services Center
> Mishawaka, IN 46544
> Voice (866) 254-5322 or (574) 254-5210 / Fax (574) 254-0148
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (MingW32)
> Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFErvfbrwdok4nP6d0RApSZAJ4s/kZLxwL+AmOkv7jNEyYuVY7f0QCgkeA5
> d5w567qFIxbE1QC0KjekgX4=
> =2DnR
> -----END PGP SIGNATURE-----
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to