F > FScrollBar.setEnabled

 

FScrollBar.setEnabled

Availability

Flash Player 6.

Usage

myScrollBar.setEnabled(enable)

Parameters

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

Returns

Nothing.

Description

Method; determines whether the scroll bar is enabled (true) or disabled (false). If a scroll bar is disabled, it does not accept mouse or keyboard interaction from the user, and it is dimmed (unavailable to the user). Calling this method without passing a parameter is the same as passing a parameter of true.

Example

The following code disables the scroll bar scroll2.

scroll2.setEnabled(false);

See also

FScrollBar.getEnabled