[flexcoders] Re: Accessing Components By Dynamically generated IDs

2007-11-30 Thread gaurav1146
central dictionary. Then you only have to scan the dictionary. > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of gaurav1146 > Sent: Thursday, November 29, 2007 7:31 AM > To: flexcoders@yahoogroups.com >

RE: [flexcoders] Re: Accessing Components By Dynamically generated IDs

2007-11-29 Thread Alex Harui
To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Accessing Components By Dynamically generated IDs I was wondering if there was a by which I could access the componets directly using ids without iterating through all the children. I observed that the components that were present directly

[flexcoders] Re: Accessing Components By Dynamically generated IDs

2007-11-29 Thread gaurav1146
I was wondering if there was a by which I could access the componets directly using ids without iterating through all the children. I observed that the components that were present directly in the mxml can be accessed using this[$id] but the components that I am adding later using actionscript cann

[flexcoders] Re: Accessing Components By Dynamically generated IDs

2007-11-22 Thread Rafael Faria
I got the same problem... and solve with this function function $(object:String,container:DisplayObjectContainer = null) { if (container == null) container = this; for (var i:uint=0; i < container.numChildren; i++) { var child:DisplayObject = container.getChildAt(i);