Repeater is not really a container.  It just instantiates its "child"
components within the enclosing container.

 

So use getChildAt() on the enclosing Vbox or HBox, or whatever the
container is.

 

Also, FYI, if you give a repeated component an id, say, "myComp", then
you can reference the individual repeated components like this:
myComp[n], where "n" is the indes of the dataProvider item that produced
the instance. 

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Nate Pearson
Sent: Monday, April 21, 2008 11:52 AM
To: [email protected]
Subject: [flexcoders] Getting a repeater's children

 

I'm trying to loop through the children of a repeater.

I've tried:

myRepeater.getChildAt(index) and that doesn't work...

I've also tried:

myRepeater.createdComponents[i] and that doesn't work either...

it seems like I'm missing something simple.

Thanks for the help!

-Nate

 

Reply via email to