If you load content using a relative URL, the loaded content must be relative to the location of
the SWF file 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 by using the following
"../content/flash/logo.swf"
Example
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";
See also
ScrollPane.content
ScrollPane.getBytesLoaded()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
scrollPaneInstance.getBytesLoaded()
Parameters
None.
Returns
The number of bytes loaded in the scroll pane.
Description
Method; returns the number of bytes loaded in the ScrollPane instance. You can call this method
at regular intervals while loading content to check its progress.
Example
This example creates a ScrollPane instance called
called
loadListener
determine the progress of the load:
createClassObject(mx.containers.ScrollPane, "scrollPane", 0);
loadListener = new Object();
with a
event handler that calls
progress
contentPath
. It then defines a listener object
scrollPane
getBytesLoaded()
ScrollPane component
property:
to help
677
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?