F > FScrollBar.setSmallScroll

 

FScrollBar.setSmallScroll

Availability

Flash Player 6.

Usage

myScrollBar.setSmallScroll(smallScroll)

Parameters

smallScroll An integer specifying the number of positions to scroll when the user clicks a scroll arrow. The default value is 1.

Returns

Nothing.

Description

Method; sets the smallScroll property of the scroll bar instance at runtime, if the text field has the focus. When the user clicks the scroll bar's arrows, or an arrow key on the keyboard, the scroll box (thumb) moves the distance specified for one smallScroll position.

Example

The following code specifies that when the user clicks a scroll arrow, scrollText1 is scrolled 5 positions.

scrollText1.setSmallScroll(5);

See also

FScrollBar.setLargeScroll