2 Replies Latest reply on Dec 5, 2010 10:50 PM by wejrhwkekdf

    How to get repeaterindex of Spark List?

    wejrhwkekdf

      I can't figure out how to get the proper repeaterIndex of a item renderer in a spark list. In following example how would i set slotIndex to increment properly?

       

      thanks!

       

      <s:List

       

       

      id="rList" top="27" left="8" bottom="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>