Field Summary |
public
| addEventListener: Function |
| See the EventDispatcher Class in Flash Help
|
|
public
| focusHandler: Function |
| Can be used to assign a direct event handler to the component instance.
|
|
public
| killFocusHandler: Function |
| Can be used to assign a direct event handler to the component instance.
|
|
public
| loadHandler: Function |
| Can be used to assign a direct event handler to the component instance.
|
|
public
| progressHandler: Function |
| Can be used to assign a direct event handler to the component instance.
|
|
public
| removeEventListener: Function |
| See the EventDispatcher Class in Flash Help
|
|
public
| scrollHandler: Function |
| Can be used to assign a direct event handler to the component instance.
|
|
public
| tabFocusHandler: Function |
| Can be used to assign a direct event handler to the component instance.
|
|
|
Property Summary |
public
| content: MovieClip (read-only)
|
| Returns a reference to the content loaded into the scrollpane. Note that if you alter the content after it has been set, you should invalidate the scrollpane so that the scrollbars correctly reflect the size and position of the new content.
|
|
public
| contentPath: String (write)
|
| Sets the linkage name of a symbol in the library to attach inside the scrollpane, or the url of an external swf or jpg image to load in.
|
|
public
| contentPath: String (read)
|
| Gets the linkage name of a symbol in the library to attach inside the scrollpane, or the url of an external swf or jpg image to load in.
|
|
public
| dragContent: Boolean (write)
|
| Sets the drag mode of the component. If true, content can be moved around by clicking and dragging within the scrollpane. If false, scrollbars must be used to move the content.
|
|
public
| dragContent: Boolean (read)
|
| Gets the drag mode of the component.
|
|
public
| hScrollPosition: Number (write)
|
| Sets the horizontal position of the content in the scrollpane.
|
|
public
| hScrollPosition: Number (read)
|
| Gets the horizontal position of the content in the scrollpane.
|
|
public
| maxHScrollPosition: Number (read-only)
|
| Gets the maximum horizontal position of the content in the scrollpane.
|
|
public
| maxVScrollPosition: Number (read-only)
|
| Gets the maximum vertical position of the content in the scrollpane.
|
|
public
| progress: Number (read-only)
|
| The percentage of content loaded into the scrollpane. If you are attaching a symbol, this will be either 0 or 100 (before and after attaching). If you are loading external content, this will go from 0 to 100 as the content loads in.
|
|
public
| scrollBarPolicy: String (write)
|
| Sets the visibility of the scrollbars in the scrollpane. If set to 'yes', the scrollbars are always visible. If set to 'no', the scrollbars are not visible. If set to 'auto', the scrollbars are visible when needed.
|
|
public
| scrollBarPolicy: String (read)
|
| Gets the scrollBarPolicy mode of the scrollpane.
|
|
public
| scrollBarWidth: Number (write)
|
| Sets the width of the scrollbars (if visible) in the scrollpane. Note that width here refers to both the width of the veritical scrollbar AND the height of hte horizontal scrollbar.
|
|
public
| scrollBarWidth: Number (read)
|
| Gets the width of the scrollbars in the scrollpane.
|
|
public
| vScrollPosition: Number (write)
|
| Sets the vertical position of the content in the scrollpane.
|
|
public
| vScrollPosition: Number (read)
|
| Gets the vertical position of the content in the scrollpane.
|
|
public
| zoom: Number (write)
|
| Sets the _xscale and _yscale of the content. Special care has been taken to ensure that scaling and scrolling the content will not result in the content going "out of bounds" and becoming invisible.
|
|
public
| zoom: Number (read)
|
| Gets the _xscale and _yscale of the content.
|
|
|
Constructor |
public
| ScrollPane (
Void)
|
|
|
|
Method Summary |
public
| alignLeft (
Void
): Void |
| Sets the content to line up on the left edge of the scroll pane
|
|
public
| alignTop (
Void
): Void |
| Sets the content to line up on the top edge of the scroll pane
|
|
public static
| create (
target: MovieClip, id: String, depth: Number, initObj: Object
): ScrollPane |
| Static method used to create an instance of a ScrollPane on stage at run time.
|
|
public
| refresh (
Void
): Void |
| Refreshes the scrollbars of the scrollpane. May be used when the content size have changed.
|
|
public
| zoomFull (
Void
): Void |
| Sets the zoom so that all of the content will be visible within the area of the scrollpane, and no scrollbars will be necessary.
|
|
public
| zoomHeight (
Void
): Void |
| Sets the zoom so that the content's height will be that of the scrollpane's height, and no vertical scrollbar will be necessary.
|
|
public
| zoomWidth (
Void
): Void |
| Sets the zoom so that the content's width will be that of the scrollpane's width, and no horizontal scrollbar will be necessary.
|
|
|
|