Tag Archives: getItemIndex()

Adding a delete button in the hovered state of a Spark List control item renderer in Flex 4

The following example shows how you can add a delete button to the hovered state of a Spark List control item renderer in Flex 4 by creating a custom item renderer and listening for the mouseDown event.

Continue reading Adding a delete button in the hovered state of a Spark List control item renderer in Flex 4

Creating an alternating item renderer in a Spark List control in Flex 4 (redux)

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)