• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Adding a Scroll Pane

The ScrollPane component can be used for displaying large movie clips, .jpg files, and .swf files that need a scrollable area to display, or that you want to confine to a specific area on the Flash Stage. You have the ability to display images in a limited area, using scroll bars, and the content loaded into the ScrollPane can be from a local location, or over the Internet.

Add a ScrollPane Component

Open the Components panel.

Click the UI Components Expand triangle.

Drag the ScrollPane component onto the Stage, and then select the pane.

Open the Component Inspector panel, and then select the Parameters tab.

Select from the following ScrollPane parameters:

  • contentPath. Click the value field, and then enter the full path name to the movie, clip, .jpg, or .swf file.

  • hLineScrollSize. Click the value field, and then enter the number of pixels to move the content when the left or right arrow in the horizontal scroll bar is pressed.

  • hPageScrollSize. Click the value field, and then enter the number of pixels to move the content when the track in the horizontal scroll bar is pressed.

  • hScrollPolicy. Click the value field, and then select whether the horizontal scroll bar is always present (on), never present (off), or appears automatically according to the size of the image (auto).

  • scrollDrag. Click the value field, and then select whether there is scrolling when a user presses and drags within the ScrollPane (true), or no scrolling (false).

  • vLineScrollSize. Click the value field, and then enter the number of pixels to move the content when the up or down arrow in the vertical scroll bar is pressed.

  • vPageScrollSize. Click the value field, and then enter the number of pixels to move the content when the track in the vertical scroll bar is pressed.

  • vScrollPolicy. Click the value field, and then select whether the vertical scroll bar is always present (on), never present (off), or appears automatically according to the size of the image (auto).

  • enabled. When you click the value field, and select true, the field can be selected. If you select false, the field appears grayed out, and is not selectable.

  • visible. When you click the value field, and select true, the field can be viewed. If you select false, the field is invisible.

  • minHeight. Click the value field, and then enter a minimum height for the ScrollPane.

  • minWidth. Click the value field, and then enter a minimum width for the ScrollPane.

Click the Control menu, and then click Test Movie.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint