--- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> I have not done this recently that I can recall, but here are some
> suggestions.
>
> * If your data Provider is a collection, you can use
> getRepeaterItem() with collection.getItemIndex()
> * Look at the repeaterIndex and instanceIndex properties of
> UIComponent. Remember the click handler event object provides the
> target and currentTarget properties to reference the repeated UIObject
> * Use a custom component to repeat and set an index property on it
> using repeater.currentIndex
I've already tried suggestion 3, and the index does not seem to bear
any relation to what was clicked. For instance, I can click 3
different things and get back 2, and several other things and get back
4, but never do I get anything other than 2 or 4. I have not even been
able to get the click event to fire on the repeater itself, so it seems
that option 3 is most promising. However, the index valued that is
stored isn't correct.
using
<mx:Repeater id="allBlocks" dataProvider="{contentSource.children()}">
<ac:ContentBlock contentItem="{allBlocks.currentItem}"
rIndex="{allBlocks.currentIndex}" />
</mx:Repeater>
Thanks;
Amy