ActionScript 2.0 Components Language Reference |
|
|
|
| SimpleButton class > SimpleButton.emphasized | |||
Flash Player 6 (6.0.79.0).
Flash MX 2004.
buttonInstance.emphasized
Property; indicates whether the button is in an emphasized state (true) or not (false). The emphasized state is equivalent to the appearance of a default push button. In general, use the FocusManager.defaultPushButton property instead of setting the emphasized property directly. The default value is false.
If you aren't using FocusManager.defaultPushButton, you might just want to set a button to the emphasized state, or use the emphasized state to change text from one color to another. The following example sets the emphasized property for the button instance myButton:
_global.styles.foo = new CSSStyleDeclaration(); _global.styles.foo.color = 0xFF0000; SimpleButton.emphasizedStyleDeclaration = "neutralStyle"; myButton.emphasized = true;
SimpleButton.emphasizedStyleDeclaration
|
|
|
|