The following example shows how you can create a custom item renderer in Flex 4 which repositions elements based on the current item renderer’s index in the data provider using the itemIndex
property.
Continue reading Creating an alternating item renderer in a Spark List control in Flex 4