yeah thanks it was helpfull :)
On 10/11/06, EECOLOR [EMAIL PROTECTED] wrote:
Hello,
Its not that the concept of the for..in loop has changed (i think), but the way classes are defined internally has changed.
Properties and methods ofclasses that are defined inside the class definition
You are right, I tried this way. dynamic public class Templateobjects{ // class structure } and in mxml filelistobj = new Templateobjects();// adding new property dynamically to classlistobj.newporp = "NewProp"for(var i in listobj){ trace("Object found"); }
Hello,
Its not that the concept of the for..in loop has changed (i think), but the way classes are defined internally has changed.
Properties and methods ofclasses that are defined inside the class definition will not change at runtime. This is (i think) why they are stored in a different
[mailto:flexcoders@yahoogroups.com] On Behalf Of EECOLOR
Sent: Tuesday, October 10, 2006
1:29 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] var in Loop
Hello,
Its not that the concept of the for..in loop has changed (i think), but
the way classes are defined internally
No, this does not work. for var in loops only work on dynamically
attached properties (i.e. your class is dynamic or you loop over the
props of an untyped Object instance)
To introspect a typed class instance use describeType(), it returns an
e4x XML structure that describes the type (hmm,
5 matches
Mail list logo