All id's are on the document/this object. If you have:
<mx:Panel id="rootPanel> <mx:Panel id="insidePanel_1" /> <mx:Panel id="insidePanel_2" /> Then you would use this["insidePanel_" + i] ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cavi21 Sent: Sunday, April 06, 2008 7:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: how can i access an object in a for thanks alex for the reply, so do you mean, that if I have a panel ("insidePanel_1" obtained by a for in some function) inside some panel ("rootPanel") that is locate in the main application, the way a can access is like this: rootPanel["insidePanel_1"].someProperty.... I tried this but I couldn't get it work. many thanks --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <[EMAIL PROTECTED]> wrote: > > That syntax should still work. Note that there are no _levels anymore. > >