Thanks. I believe that's exactly what I need. I will also check out
the 'help' section for the repeater.

Thanks again.

--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "sdl1326" <azsl1326-email@> 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
>


Reply via email to