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, probably the reason why they named it that way) Dirk. > -----Original Message----- > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of flexlearner > Sent: Monday, October 09, 2006 12:54 PM > To: [email protected] > Subject: [flexcoders] var in Loop > > hello all, > I have a action script class which is bindable and > instantiates objects of other class as : > > > ---------------------------------------------------------------------- > ---------- > > [Bindable] > public class Templateobjects > { > > public var template1 = new sampleTemplate1(); > > public var template2 = new sampleTemplate2(); > > public function Templateobjects(){ > > // constructor function > } > > } > > > ---------------------------------------------------------------------- > ---------- > > > > > and in my mxml file i import this class as and trying to access this > variables in this class, as: > > import Templateobjects; > public var templatelistObject:Templateobjects = new Templateobjects(); > > for(var i:Objects in Templateobjects){ > trace(" found objects"); > } > > > i am not getting the trace... > please tell me how should i go about this. > > Regards > Flex Learner > > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > > > > > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

