Using The Scrollpane Component - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Using the ScrollPane component

You can use a scroll pane to display any content that is too large for the area into which it is
loaded. For example, if you have a large image and only a small space for it in an application,
you could load it into a scroll pane.
You can set up a scroll pane to allow users to drag the content within the pane by setting the
parameter to
; a pointing hand appears on the content. Unlike most other
scrollDrag
true
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
; otherwise each mouse interaction with the contents will
scrollDrag
false
invoke scroll dragging.
Components such as Loader, ScrollPane, and Window have events to determine when
content has finished loading. So, if you want to set properties on the content of a Loader,
ScrollPane, or Window component, add the property statement within a "complete" event
handler. Consider the following example:
loadtest = new Object();
loadtest.complete = function(eventObject){
content_mc._width= 100;
}
my_scrollpane.addEventListener("complete", loadtest)
For more information, see
"ScrollPane.content" on page
1104.
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
,
, or
. The
on
off
auto
default value is
.
auto
scrollDrag
is a Boolean value that determines whether scrolling occurs (
) or not (
)
true
false
when a user drags on the content within the scroll pane. The default value is
.
false
1094 ScrollPane component

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents