".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 <amyblankenship@
<mailto:[email protected]> bellsouth.net> wrote:

 

--- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.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.

 



Reply via email to