The following code also sends a message to the Output panel when
clicked. The
handler must be attached directly to
on()
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 (
emphasized state is equivalent to the appearance of a default push button. In general, use the
FocusManager.defaultPushButton
directly. The default value is
If you aren't using
FocusManager.defaultPushButton
to the emphasized state, or use the emphasized state to change text from one color to another.
The following example sets the
_global.styles.foo = new CSSStyleDeclaration();
_global.styles.foo.color = 0xFF0000;
SimpleButton.emphasizedStyleDeclaration = "neutralStyle";
myButton.emphasized = true;
See also
SimpleButton.emphasizedStyleDeclaration
property instead of setting the
.
false
property for the button instance
emphasized
buttonInstance
.
buttonInstance
) or not (
true
emphasized
, you might just want to set a button
SimpleButton.emphasized
is
). The
false
property
:
myButton
1131