In an earlier example, “Creating an alternating item renderer in a Spark List control in Flex 4”, we saw how you could 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.
The following example shows how you can alternate between two separate item renderers using a custom item renderer function and the getItemIndex()
method.
Continue reading Creating an alternating item renderer in a Spark List control in Flex 4 (redux)