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
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
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
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
4 matches
Mail list logo