User Guide
UIScrollBar component 837
Description
Property; gets or sets the number of lines or pixels scrolled when the user clicks the arrow buttons
of the UIScrollBar component. If the scroll bar is oriented vertically, the value is a number of
lines. If the scroll bar is oriented horizontally, the value is a number of pixels.
The default value is 1.
Example
The following example sets the scroll bar to scroll two lines of text each time the user clicks one of
the scroll arrows:
myScrollBar.lineScrollSize = 2;
UIScrollBar.pageScrollSize
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
scrollBarInstance.pageScrollSize
Description
Property; gets or sets the number of lines or pixels scrolled when the user clicks the track of the
UIScrollBar component. If the scroll bar is oriented vertically, the value is a number of lines. If
the scroll bar is oriented horizontally, the value is a number of pixels.
You can also set this value by passing a
pageSize parameter with the
UIScrollBar.setScrollTarget() method.
Example
The following example sets the scroll bar to scroll 10 lines of text each time the user clicks the
scroll track:
myScrollBar.pageScrollSize = 10;
UIScrollBar.scroll
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.