If the children are already created, just loop using getChildAt() and numChildren
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of timgerr Sent: Tuesday, November 04, 2008 10:18 AM To: [email protected] Subject: [flexcoders] Re: Recursively get all the childreen I am trying to do something like this: public function PerformaGetChild(ui:Object):void { if(ui.childDescriptors.length > 0){ for (var i:int = 0; i < ui.childDescriptors.length; i++) { var c:ComponentDescriptor = ui.childDescriptors[i]; var d:Object = c.properties; PerformaGetChild(d.id); } } else { trace(ui.id); } } PerformaGetChild(TileTop); But it does not work, any ideas? Thanks, timgerr --- In [email protected]<mailto:flexcoders%40yahoogroups.com>, "timgerr" <[EMAIL PROTECTED]> wrote: > > How can I get a list of all the childreen? > > <mx:Tile id="TileTop" width="333" height="197"> > <mx:Form> > <mx:FormItem label="Part 1"> > <mx:TextInput id="One"/> > </mx:FormItem> > <mx:FormItem label="Part 2"> > <mx:TextInput id="two"/> > </mx:FormItem> > <mx:FormItem label="Part 3"> > <mx:TextInput id="three"/> > </mx:FormItem> > </mx:Form> > </mx:Tile> > > > Thanks, > Timgerr >

