F > FScrollPane.getScrollPosition

 

FScrollPane.getScrollPosition

Availability

Flash Player 6.

Usage

myScrollPane.getScrollPosition()

Parameters

None.

Returns

An object.

Description

Method; returns an object with the fields .x or .y specifying the current vertical or horizontal scroll position of the scroll pane view.

Example

The following code returns the current scroll position of the scroll pane scroll2 to the Output window.

trace(scroll2.getScrollPosition());

See also

FScrollPane.setScrollPosition