How to get list repeaterindex Spark?

I can't figure out how to get the good repeaterIndex of converter of an element in a spark list. In the following example how I set slotIndex to increment properly?

Thank you!

< s:List

id=" rList " top=" 27 "left = ' 8 'low =' 8 " right = " 8 " dataProvider =" {_collection} " borderAlpha =" 0 " contentBackgroundAlpha =" 0 " " > " "

< s:itemRenderer >

< fx:Component >

< control: EnhancementSocket " socketType =" {}outerDocument.enhancementType} "slotIndex =" {? } " }" />

< / fx:Component >

< / s:itemRenderer >

< / s:List >

If your class EnhancementSocket extends ItemRenderer then you can use the itemIndex property.

Tags: Flex

Similar Questions

Maybe you are looking for