View comments | RSS feed

ScrollPane.vPosition

Availability

Flash Player 6 (6.0 79.0).

Edition

Flash MX 2004.

Usage

scrollPaneInstance.vPosition

Description

Property; the pixel position of the scroll pane's vertical scroll bar. The default value is 0.


Comments


No screen name said on Dec 2, 2004 at 10:31 AM :
Two interesting things that I have found with ScrollPane.vPosition:

If you try to set vPosition to less than zero or more than the height of the contents the vPosition is not changed.

If you alter vPosition when the vertical scrollbar is not visible (when the content is smaller than the ScrollPane) then there is no bounds checking - vPosition can be set to any value and the content scrolls accordingly (even if it is no longer visible in the scrollPane)
clonyx said on Feb 25, 2005 at 5:53 PM :
Easy:
scrollPane.vPosition = scrollPane.content._height - scrollPane.height;
No screen name said on Jun 21, 2006 at 11:01 AM :
little vPosition trick:
to scroll to the bottom of the pane:
ScrollPane.vPosition = ScrollPane.vScroller.maxPos;

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/mx2004/main_7_2/00002785.html