Ok, thanks for the underscore there, Tracy. Sounds like exactly what I need. Basically, at a simple level I'm extending that searchcoders search interface to a full adhoc query front end. So the plus minus buttons will add a row that will have combo-boxes with the data providers --both static and from a db -- and text entry boxes. So each row will actually be a series of sub- components. So I guess I could turn the row into a master component and stick it in the Repeater. I'll have to look into all these goodies that the Repeater provides.
thanks again! brad On Sun, Jun 14, 2009 at 6:43 PM, Tracy Spratt <[email protected]> wrote: > > > “…thought of the Repeater as a simple grid creator …” That is completely > wrong. Repeater has **no** layout functionality at all. It is simply a > replacement for addChild/ removeChild, with a lot of extra and useful > functionality like optional recycling and automatic creation of an array of > references via the id (myId[n]). > > > > Look into Repeater before you write all of that code manually. > > > > One suggestion: do not write any but the simplest repeated content > ‘in-line’. Instead, create a custom component and repeat that, passing in > the entire currentItem via a setter function. You will find this much > easier to code, especially dispatching events, etc. > > > > Tracy Spratt, > > Lariat Services, development services available > ------------------------------ > > *From:* [email protected] [mailto:[email protected]] *On > Behalf Of *Brad Bueche > *Sent:* Sunday, June 14, 2009 6:11 PM > *To:* [email protected] > *Subject:* Re: [flexcoders] Re: Dynamically Naming Objects > > > > > > > Thanks, Amy, I didnt think about that. I've always thought of the > Repeater as a simple grid creator but I guess I'll have to read up on it. > > brad > > On Sun, Jun 14, 2009 at 11:57 AM, Amy <[email protected]> > wrote: > > > > --- In [email protected] <flexcoders%40yahoogroups.com>, Gordon > Smith <gosm...@...> wrote: > > > > 1. If accessing the ComboBoxes you'll create by an index number is > sufficient, declare an instance var of type Array: > > > > private var comboBoxes:Array = []; > > > > When you dynamically create a new ComboBox, simply add the reference onto > the end of this Array: > > Or you can use a repeater, which automates this and will automatically > handle destroying and recreating all the comboboxes if the data source they > are based on changes. > > > >

