RE: [flexcoders] for in loop dosen't work on custom class

2007-04-16 Thread Alex Harui
Check out mx.utils.ObjectUtil, especially getClassInfo From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paolo Bernardini Sent: Monday, April 16, 2007 5:22 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] for in loop dosen't

Re: [flexcoders] for in loop dosen't work on custom class

2007-04-16 Thread Paolo Bernardini
sorry for the * it was a copy and past problem. Thanks Shaun, for your explanation. I need the for in loop not to add new properties to my object, but to iterate through its properties and add them to a new object. On 16 Apr 2007 04:39:03 -0700, shaun <[EMAIL PROTECTED]> wrote: Paolo Bernard

Re: [flexcoders] for in loop dosen't work on custom class

2007-04-16 Thread shaun
Paolo Bernardini wrote: > I found that if you try to do a for in loop for a custom class it won't > work. > > *for* (*var* i:String *in* ItemVO*){* > * trace*(ItemVO[i]); // it won't trace anything. > } > [snip] > *public* *class* ItemVO *implements* IValueObject > [snip] The "for in" loo

Re: [flexcoders] for in loop dosen't work on custom class

2007-04-16 Thread Tom Chiverton
On Monday 16 Apr 2007, Paolo Bernardini wrote: > *for* (*var* i:String *in* ItemVO*){* > * trace*(ItemVO[i]); // it won't trace anything. > } Please take the *'s out next time :-) Maybe you want for (i in ItemVO){ trace ItemVO[i] } -- Tom Chiverton Helping to paradigmatically exploit