Using Components > The ScrollPane component |
![]() ![]() ![]() |
The ScrollPane component
The ScrollPane component lets you add window panes with vertical and horizontal scroll bars to display movie clips in Flash documents. The ScrollPane component is useful for displaying large areas of content without taking up a lot of Stage space. The ScrollPane component only displays movie clips. To add scroll bars to text fields, you use the ScrollBar component.
To display movie clips (or JPEG files that have been converted to movie clips) inside the ScrollPane, you specify the symbol linkage ID of the movie clip for the scrollContent
parameter. The movie clip must be in the library to set the scrollContent
parameter, but it need not be on the Stage. Also, the movie clip must also have the Export for ActionScript option selected in the Linkage Properties dialog box. For more information, see Using movie clip event handler methods to trigger scripts.
You can display JPEG and SWF files loaded from a server in the scroll pane using the FScrollPane.loadScrollContent()
method to specify the content for the scroll pane.
Note: Text in scroll panes must be displayed using embedded fonts. You cannot use device fonts to display text in scroll panes. See About embedded fonts and device fonts.
![]() ![]() ![]() |