ActionScript 2.0 Components Language Reference |
|
|
|
| ScrollPane component > Using the ScrollPane component > ScrollPane parameters | |||
You can set the following authoring parameters for each ScrollPane instance in the Property inspector or in the Component inspector (Window > Component Inspector menu option):
contentPath indicates the content to load into the scroll pane. This value can be a relative path to a local SWF or JPEG file, or a relative or absolute path to a file on the Internet. It can also be the linkage identifier of a movie clip symbol in the library that is set to Export for ActionScript.
hLineScrollSize indicates the number of units a horizontal scroll bar moves each time an arrow button is clicked. The default value is 5.
hPageScrollSize indicates the number of units a horizontal scroll bar moves each time the track is clicked. The default value is 20.
hScrollPolicy displays the horizontal scroll bars. The value can be on, off, or auto. The default value is auto.
scrollDrag is a Boolean value that determines whether scrolling occurs (true) or not (false) when a user drags on the content within the scroll pane. The default value is false.
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.
|
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. |
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.
|
|
|
|