Because the items are not in MXML its in actionscript which dynamically creates the items for my form from a database and i want to dynamically loop the text box's so i can then save the data back to the database. you cant refer to a ID since the components are created at runtime
--- In [email protected], "Gordon Smith" <[EMAIL PROTECTED]> wrote: > > Why are you trying to use getChildByName to get a reference to a > component? If you give it an 'id' attribute in MXML, you can then refer > to it by that id. > > > > Gordon Smith > > Adobe Flex SDK Team > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Jason B > Sent: Monday, August 18, 2008 8:07 AM > To: [email protected] > Subject: [flexcoders] getChildByName using it to get the value of a > textbox > > > > when using getchildbyname variable i've not been able to get the value > can someone please post an example of how to get a value using > getChildByName. > > var test:DisplayObject = this.getChildByName("inputtext" + i); >

