F > FPushButton.setEnabled

 

FPushButton.setEnabled

Availability

Flash Player 6.

Usage

myPushButton.setEnabled(enable)

Parameters

enable A Boolean value specifying whether the push button is enabled (true) or disabled (false).

Returns

Nothing.

Description

Method; determines whether the push button is enabled. If a push button is disabled, it does not accept mouse or keyboard interaction from the user, and the text on the button is dimmed. Omitting the parameter is the same as passing true.

Example

The following code disables button1.

button1.setEnabled(false);

See also

FPushButton.getEnabled