Category Archives: List (Spark)

Fading an item renderer background fill on a Spark List control in Flex 4

The following example shows how you can fade an item renderer background fill on a Spark List control in Flex 4 by creating a custom item renderer, setting the Boolean autoDrawBackground property to false, drawing your own background fill, and then setting a fade transition from the normal and hovered states.

Continue reading Fading an item renderer background fill on a Spark List control in Flex 4

Scrolling to a specific index in a Spark List control in Flex 4

In a previous example, “Scrolling to a specific index in a Flex List control”, we saw how you could scroll to a specific item index in Flex by using the scrollToIndex() method.

The following example shows how you can scroll to a specific item index in a Spark List control in Flex 4 by using the ensureIndexIsVisible() method.

Continue reading Scrolling to a specific index in a Spark List control in Flex 4

Creating an item renderer with a corner radius on a Spark List control in Flex 4

The following example shows how you can create a custom item renderer with a corner radius on a Spark List control in Flex 4 by setting the cornerRadius property and creating a custom item renderer which sets its autoDrawBackground property to false and draws its own rounded background fill using the radiusX property in the hovered and selected states.

Continue reading Creating an item renderer with a corner radius on a Spark List control in Flex 4