Re: [flexcoders] var in Loop

2006-10-11 Thread Mayur Bais
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

RE: [flexcoders] var in Loop

2006-10-10 Thread newLearner learner
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"); }

Re: [flexcoders] var in Loop

2006-10-10 Thread EECOLOR
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

RE: [flexcoders] var in Loop

2006-10-10 Thread Gordon Smith
[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

RE: [flexcoders] var in Loop

2006-10-09 Thread Dirk Eismann
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,