SimpleButton.emphasized

Availability

Flash Player 6.0.79.

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 looks if a default push button. In general, use the FocusManager.defaultPushButton property instead of setting the emphasized property directly. The default value is false.

The emphasized property is a static property of the SimpleButton class. Therefore, you must access it directly from SimpleButton, as in the following:

SimpleButton.emphasizedStyleDeclaration = "foo";

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 = "foo"; 
myButton.emphasized = true;

See also

SimpleButton.emphasizedStyleDeclaration