--- In flexcoders@yahoogroups.com, "sdl1326" <[EMAIL PROTECTED]> wrote: > > I am using the Tile Component along with a repeater and then a custom > component (image control). Is it possible to give the custom component > a unique id/name? I have tried to use a variable associated with the > current repeater item ({repeater.currentItem.name}), however, it does > not seem that this is possible as I am getting an error that the ID is > not a valid identifier. > > Thanks for any and all replies. >
If you have something like this: <mx:Repeater id="theRepeater" dataProvider="{yourAC}"> <yourNS:YourComponent id="foo"/> </mx:Repeater> then you can refer to any repeated component by its index within foo. i.e. foo[0] is the first component. This is pretty thoroughly documented in the help for Repeater. HTH; Amy