User Guide

680 Chapter 6: Components Dictionary
Example
This example positions the scroll bar at pixel 20:
scrollPane.hPosition = 20;
ScrollPane.hScrollPolicy
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
scrollPaneInstance.hScrollPolicy
Description
Property; determines whether the horizontal scroll bar is always present ("on"), is never present
(
"off"), or appears automatically according to the size of the image ("auto"). The default value
is
"auto".
Example
The following code turns scroll bars on all the time:
scrollPane.hScrollPolicy = "on";
ScrollPane.progress
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
Usage 1:
on(progress){
...
}
Usage 2:
listenerObject = new Object();
listenerObject.progress = function(eventObject){
...
}
scrollPaneInstance.addEventListener("progress", listenerObject)