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


Flash CS3


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00003460.html