F > FScrollPane.setScrollPosition

 

FScrollPane.setScrollPosition

Availability

Flash Player 6.

Usage

myScrollPane.setScrollPosition(x, y)

Parameters

x An integer specifying the number of pixels (from 0) to scroll to the right.

y An integer specifying the number of pixels (from 0) to scroll down.

Returns

Nothing.

Description

Method; sets the scroll position to the specified x, y coordinate positions.

Example

The following example causes the contents of display1 to scroll 14 pixels down and 40 pixels to the right.

display1.setScrollPosition(14,40);

See also

FScrollPane.getScrollPosition