Using skins with the ScrollPane component
The ScrollPane component uses an instance of RectBorder for its border and scroll bars for scroll
assets. For more information about skinning these visual elements, see
on page 647
and
ScrollPane class
Inheritance
MovieClip >
ScrollPane
ActionScript Class Name
The properties of the ScrollPane class let you do the following at runtime: set the content,
monitor the loading progress, and adjust the scroll amount.
Setting a property of the ScrollPane class with ActionScript overrides the parameter of the same
name set in the Property inspector or Component inspector.
You can set up a scroll pane so that users can drag the content within the pane. To do this, set the
property to
scrollDrag
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
to
scrollDrag
false
scroll dragging.
Each component class has a
available only on the class itself. The
of the component. To access this property, use the following code:
trace(mx.containers.ScrollPane.version);
Note: The code
trace(myScrollPaneInstance.version);
Method summary for the ScrollPane class
The following table lists methods of the ScrollPane class.
Method
ScrollPane.getBytesLoaded()
ScrollPane.getBytesTotal()
ScrollPane.refreshPane()
"Using skins with the UIScrollBar component" on page
UIObject class
mx.containers.ScrollPane
; a pointing hand appears on the content. Unlike most other
true
; otherwise, each mouse interaction with the contents will invoke
property, which is a class property. Class properties are
version
version
Description
Returns the number of bytes of content loaded.
Returns the total number of bytes of content to be loaded.
Reloads the contents of the scroll pane.
>
UIComponent class
property returns a string that indicates the version
returns
undefined
"RectBorder class"
831.
> View > ScrollView >
.
ScrollPane component
671
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers