UIScrollBar.scrollPosition
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
scrollBarInstance.scrollPosition
Description
Property; gets or sets the current scroll position of the scroll box (thumb) when a new
value is set. The value of
scrollPosition
UIScrollBar instance is being used for vertical or horizontal scrolling.
Set the scrolling of the scroll bar target instance separately, using the following syntax:
my_scrollbar._targetInstanceName.scroll = 20;
If the UIScrollBar instance is being used for vertical scrolling (the most common use), the
value of
scrollPosition
number that is equal to the total number of lines in the text field divided by the number of
lines that can be displayed in the text field simultaneously. If
number greater than this range, the text field simply scrolls to the end of the text.
To set the scroll box (thumb) to the first line, set
To set the scroll box (thumb) to the end, set
in the text field minus 1. You can determine the number of lines by retrieving the value of the
property of the text field.
maxscroll
If the UIScrollBar instance is being used for horizontal scrolling, the value of
is an integer value ranging from 0 to the width of the text field, in pixels.
scrollPosition
You can determine the width of the text field in pixels by getting the value of the
property of the text field.
The default value of
scrollPosition
1406
UIScrollBar Component
scrollPosition
is an integer with a range that begins with 0 and ends with a
scrollPosition
is 0.
depends on whether the
scrollPosition
to 0.
scrollPosition
to the number of lines of text
is set to a
maxhscroll
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?