Monthly Archives: May 2010

Changing the background color of a disabled Spark TextArea control in Flex 4

In a previous example, “Changing the background color of a disabled TextArea control in Flex”, we saw how you can change the background color of a disabled MX TextArea control by setting the use the backgroundDisabledColor style.

The following example shows how you can change the background color of a disabled Spark TextArea control in Flex 4 by setting the contentBackgroundColor style in the disabled skin state.

Continue reading Changing the background color of a disabled Spark TextArea control in Flex 4

Setting the text roll over color on a Spark DropDownList control in Flex 4

In a previous example, “Setting the text roll over color on a ComboBox control in Flex”, we saw how you could change the text roll over color for a Flex MX ComboBox control by setting the textRollOverColor style.

The following example shows how you can change the text roll over color in the Spark DropDownList control’s hovered and selected states by creating a custom item renderer and setting the color style.

Continue reading Setting the text roll over color on a Spark DropDownList 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

Setting the symbol color on the Spark Spinner component in Flex 4

In a previous example, “Setting the chrome color on the Spark Spinner component in Flex 4”, we saw how you could set the chrome color on the Spark Spinner component in Flex 4 by setting the chromeColor style.

The following example shows how you can set the symbol color on the Spark Spinner component in Flex 4 by setting the symbolColor style.

Continue reading Setting the symbol color on the Spark Spinner component in Flex 4