ScrollPane component
The ScrollPane component displays movie clips, JPEG files, and SWF files in a scrollable area. By
using a scroll pane, you can limit the amount of screen area occupied by these media types. The
scroll pane can display content that is loaded from a local disk or from the Internet. You can set
this content while authoring and at runtime by using ActionScript.
Once the scroll pane has focus, if its content has valid tab stops, those markers receive focus. After
the last tab stop in the content, focus shifts to the next component. The vertical and horizontal
scroll bars in the scroll pane never receive focus.
A ScrollPane instance receives focus if a user clicks it or tabs to it. When a ScrollPane instance has
focus, you can use the following keys to control it:
Key
Down Arrow
End
Left Arrow
Home
Page Down
Page Up
Right Arrow
Up Arrow
For more information about controlling focus, see
on page 50
or
"FocusManager class" on page
A live preview of each ScrollPane instance reflects changes made to parameters in the Property
inspector or Component inspector during authoring.
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
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
scrollDrag
scroll dragging.
ScrollPane parameters
You can set the following authoring parameters for each ScrollPane instance in the Property
inspector or in the Component inspector:
668
Chapter 6: Components Dictionary
Description
Content moves up one vertical line scroll.
Content moves to the bottom of the scroll pane.
Content moves right one horizontal line scroll.
Content moves to the top of the scroll pane.
Content moves up one vertical page scroll.
Content moves down one vertical page scroll.
Content moves left one horizontal line scroll.
Content moves down one vertical line scroll.
; a pointing hand appears on the content. Unlike most other
true
to
; otherwise each mouse interaction with the contents will invoke
false
Components Dictionary
"Creating custom focus navigation"
419.
CHAPTER 6
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