Tag Archives: enabled

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 disabled alpha on a Spark TextInput control in Flex 4

In a previous example, “Styling the disabled state on a Spark TextInput control in Flex 4”, we saw how you could style the disabled state on a Spark TextInput control in Flex 4 using CSS.

The following example shows how you can set the alpha of the disabled state of a Spark TextInput control in Flex 4 by creating a custom Spark TextInput skin and setting the alpha property on the disabled skin state.

Continue reading Setting the disabled alpha on a Spark TextInput control in Flex 4

Disabling the scrub bar on the Spark VideoPlayer control in Flex 4

In a previous example, “Disabling the mouse on the Spark VideoPlayer control scrub bar in Flex 4”, we saw how to disable the mouse on the Spark VideoPlayer control scrub bar in Flex 4 by setting the Boolean mouseEnabled and mouseChildren properties.

The following example shows how you can disable the scrub bar on the Spark VideoPlayer control in Flex 4 by setting the Boolean enabled property on the scrubBar skin part.

Full code after the jump.

Continue reading Disabling the scrub bar on the Spark VideoPlayer control in Flex 4

Disabling a Spark Application container in Flex 4

In a previous example, “Disabling an Application in Flex 3”, we saw how you could disable an entire Flex Application in Flex 3 by setting the Boolean enabled property on the application object.

The following example shows how you can disable an entire Spark Application in Flex 4 by setting the Boolean enabled property on the static FlexGlobals.topLevelApplication object.

Continue reading Disabling a Spark Application container in Flex 4

Accessing specific buttons in a Spark ButtonBar control in Flex 4

In a suspiciously similar previous example, “Disabling specific buttons in a Spark ButtonBar control in Flex 4”, we saw how you could disable specific buttons in a Spark ButtonBar control in Flex 4 by using a custom skin and setting the skinClass style.

The following example shows you how you can modify specific buttons at runtime using the Flex 4 Spark ButtonBar control’s dataGroup property and getElementAt() method.

Full code after the jump.

Continue reading Accessing specific buttons in a Spark ButtonBar control in Flex 4