User Guide
Using the ScrollPane component 1095
vLineScrollSize indicates the number of units a vertical scroll bar moves each time a scroll
arrow is clicked. The default value is 5.
vPageScrollSize indicates the number of units a vertical scroll bar moves each time the scroll
bar track is clicked. The default value is 20.
vScrollPolicy displays the vertical scroll bars. The value can be on, off, or auto. The default
value is
auto.
You can set the following additional parameters for each ScrollPane component instance in
the Component inspector (Window > Component Inspector):
enabled is a Boolean value that indicates whether the component can receive focus and input.
The default value is
true.
visible is a Boolean value that indicates whether the object is visible (true) or not (false).
The default value is
true.
You can write ActionScript to control these and additional options for a ScrollPane
component using its properties, methods, and events. For more information, see “ScrollPane
class” on page 1098.
Creating an application with the ScrollPane
component
The following procedure explains how to add a ScrollPane component to an application while
authoring. In this example, the scroll pane loads a picture from a path specified by the
contentPath property.
To create an application with the ScrollPane component:
1. Drag the ScrollPane component from the Components panel to the Stage.
2. In the Property inspector, enter the instance name my_sp.
NOTE
The minHeight and minWidth properties are used by internal sizing routines. They are
defined in UIObject, and are overridden by different components as needed. These
properties can be used if you make a custom layout manager for your application.
Otherwise, setting these properties in the Component inspector has no visible effect.