![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Flash Player 6.0.79.
Flash MX 2004.
scrollPaneInstance
.contentPath
Property; a string that indicates an absolute or relative URL of the SWF or JPEG file to load into the scroll pane. A relative path must be relative to the SWF that loads the content.
If you load content using a relative URL, the loaded content must be relative to the location of the SWF that contains the scroll pane. For example, an application using a ScrollPane component that resides in the directory /scrollpane/nav/example.swf could load contents from the directory /scrollpane/content/flash/logo.swf with the following contentPath property: "../content/flash/logo.swf"
The following example tells the scroll pane to display the contents of an image from the internet:
scrollPane.contentPath ="http://imagecache2.allposters.com/images/43/033_302.jpg";
The following example tells the scroll pane to display the contents of a symbol from the library:
scrollPane.contentPath ="movieClip_Name";
The following example tells the scroll pane to display the contents of the local file "logo.swf":
scrollPane.contentPath ="logo.swf";
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |