The following example shows how you can set the emphasized button state on a Flex 4 Spark Button control by setting the Boolean emphasized property.
Full code after the jump.
[click to continue…]
Tagged as:
emphasized,
Gumbo
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.
[click to continue…]
Tagged as:
emphasized,
selected,
toggle
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.
[click to continue…]
Tagged as:
borderColor,
emphasized,
Halo,
themeColor