![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Inheritance UIObject > UIComponent > View > ScrollView > ScrollPane
ActionScript Class Namespace mx.containers.ScrollPane
The properties of the ScrollPane class allow you to set the content, monitor the loading progress, and adjust the scroll amount at runtime.
Setting a property of the ScrollPane class with ActionScript overrides the parameter of the same name set in the Property inspector or Component Inspector panel.
You can set up a scroll pane to allow users to drag the content within the pane by setting the scrollDrag
property to true
; a pointing hand appears on the content. Unlike most other components, events are broadcast when the mouse button is pressed and continue broadcasting until the button is released. If the contents of a scroll pane have valid tab stops, you must set scrollDrag
to false
otherwise each mouse interaction with the contents will invoke scroll dragging.
Each component class has a version
property which is a class property. Class properties are only available on the class itself. The version
property returns a string that indicates the version of the component. To access the version
property, use the following code:
trace(mx.containers.ScrollPane.version);
Note: The following code returns undefined: trace(myScrollPaneInstance.version);
.
Method |
Description |
---|---|
|
Returns the number of bytes of content loaded. |
|
Returns the total number of content bytes to be loaded. |
|
Reloads the contents of the scroll pane. |
Inherits all methods from UIObject class and UIComponent class.
Method |
Description |
---|---|
|
A reference to the content loaded into the scroll pane. |
|
An absolute or relative URL of the SWF or JPEG file to load into the scroll pane |
|
The amount of content to scroll horizontally when an arrow button is pressed. |
|
The amount of content to scroll horizontally when the track is pressed. |
|
The horizontal pixel position of the scroll pane. |
|
The status of the horizontal scroll bar. It can be always on ( |
|
Indicates whether there is scrolling when a user presses and drags within the ScrollPane ( |
|
The amount of content to scroll vertically when an arrow button is pressed. |
|
The amount of content to scroll vertically when the track is pressed. |
|
The vertical pixel position of the scroll pane. |
|
The status of the vertical scroll bar. It can be always on ( |
Inherits all properties from UIObject class and UIComponent class.
Method |
Description |
---|---|
|
Broadcast when the scroll pane content is loaded. |
|
Broadcast while the scroll bar content is loading. |
|
Broadcast when the scroll bar is pressed. |
Inherits all events from UIObject class and UIComponent class.
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |