Category Archives: beta2

Setting the border color on a Spark DropDownList control in Flex 4

In a previous example, “Setting the border alpha on a Spark DropDownList control in Flex 4”, we saw how you could set the border alpha on a Spark DropDownList control’s popup menu in Flex 4 by setting the borderAlpha style.

The following example shows how you can set the border color on a Spark DropDownList control’s popup menu in Flex 4 by setting the borderColor style.

Continue reading Setting the border color on a Spark DropDownList control in Flex 4

Setting the slide duration on a Spark HScrollBar control in Flex 4

In a previous example, “Setting the slide duration on a Spark HSlider control in Flex 4”, we saw how you could set the slide duration on a Spark HSlider control in Flex 4 by setting the slideDuration style.

The following example shows how you can set the slide duration on a Spark HScrollBar control in Flex 4 by setting the slideDuration style to control the animated thumb scroll when Ctrl+clicking on the scroll bar track.

Continue reading Setting the slide duration on a Spark HScrollBar control in Flex 4

Preventing the selected item highlighting in the Spark List control in Flex 4

In a previous example, “Preventing item selection in the Spark List control in Flex 4”, we saw how you can prevent item selection in the Spark List control in Flex 4 by listening for the changing event and calling the preventDefault() method on the IndexChangeEvent event object instance.

The following example shows how you can keep List item selection but prevent the selected item highlighting (while maintaining the hover highlight) in the Spark List control in Flex 4 by creating a custom item renderer, setting the autoDrawBackground property to false, and drawing your own highlight in the hover state only.

Continue reading Preventing the selected item highlighting in the Spark List control in Flex 4