Uiscrollbar.pagescrollsize - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

// Load text to display and define onData handler.
var my_lv:LoadVars = new LoadVars();
my_lv.onData = function(src:String) {
if (src != undefined) {
my_txt.text = src;
} else {
my_txt.text = "Error loading text.";
}
};
my_lv.load("http://www.helpexamples.com/flash/lorem.txt");

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
UIScrollBar.setScrollTarget()
Example
The following example creates a scroll bar to scroll text in a text field that it loads from a web
page. The example sets the
user clicks the scroll track:
/**
Requires:
- UIScrollBar component in library
*/
this.createTextField("my_txt", 10, 10, 20, 200, 100);
my_txt.wordWrap = true;
this.createClassObject(mx.controls.UIScrollBar, "my_sb", 20);
// Set the target text field.
1402
UIScrollBar Component
pageSize
method.
property to scroll five lines of text each time the
pageScrollSize
parameter with the

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents