User Guide
SimpleButton.emphasized 1131
The following code also sends a message to the Output panel when buttonInstance is
clicked. The
on() handler must be attached directly to buttonInstance.
on (click) {
trace("button component was clicked");
}
SimpleButton.emphasized
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
buttonInstance.emphasized
Description
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;
See also
SimpleButton.emphasizedStyleDeclaration