F > FScrollBar.setScrollPosition

 

FScrollBar.setScrollPosition

Availability

Flash Player 6.

Usage

myScrollBar.setScrollPosition(position)

Parameters

position An integer between the minPos and maxPos settings of the scroll bar. See FScrollBar.setScrollProperties for more information on setting the minPos and maxPos properties.

Returns

Nothing.

Description

Method; specifies the position of the scroll box (thumb) on the scroll bar and executes the change handler function specified with FScrollBar.setChangeHandler.

Example

The following code sets the position of the scroll box for scrollText1 to 5.

scrollText1.setScrollPosition(5);

See FScrollBar.setChangeHandler for another example that uses this method.

See also

FScrollBar.setChangeHandler, FScrollBar.setScrollProperties