Tag Archives: emphasized

Styling an emphasized Spark Button control in Flex 4

In a previous example, “Creating an emphasized Spark Button control in Flex 4”, we saw how you could set the emphasized button state on a Flex 4 Spark Button control by setting the Boolean emphasized property.

The following example shows how you can style the Spark Button control’s emphasized state by setting the Button.emphasized CSS selector.

Full code after the jump.

Continue reading Styling an emphasized Spark Button control in Flex 4

Creating toggle and emphasized Button controls in Flex

Pretty basic stuff, but if you’ve never used a toggle button in Flex or Flash, you may find this useful. The following example creates two Button controls. The first button sets the toggle property to true and determines whether the button is currently selected by watching the button’s selected property. The second button simply sets the emphasized property to true, which gives the button a nice visible border, making it stand out a little more than the other buttons. This is great for highlighting a default button in a form.

Full code after the jump.

Continue reading Creating toggle and emphasized Button controls in Flex

Setting a Flex Button control’s border color and theme color

The following example shows how you can change the Button control’s borderColor and themeColor properties to one of the special Flex “halo” colors (“haloBlue”, “haloGreen”, “haloOrange” or “haloSilver”). Note that you can also use any other named or hex color as well, such as “red” or 0xFF0000.

Full code after the jump.

Continue reading Setting a Flex Button control’s border color and theme color