You first drag the ScrollPane component from the Components panel to the current
document's library and then add the following code to Frame 1:
/**
Requires:
- ScrollPane component in library
*/
this.createClassObject(mx.containers.ScrollPane, "my_sp", 10);
my_sp.setSize(360, 280);
my_sp.hScrollPolicy = "off";
System.security.allowDomain("http://www.helpexamples.com");
my_sp.contentPath = "http://www.helpexamples.com/flash/images/image1.jpg";
ScrollPane.progress
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
Usage 1:
var listenerObject:Object = new Object();
listenerObject.progress = function(eventObject:Object) {
// ...
};
scrollPaneInstance.addEventListener("progress", listenerObject);
Usage 2:
on (progress) {
// ...
}
Description
Event; broadcast to all registered listeners while content is loading. The progress event is not
always broadcast; the
dispatched. This can happen especially if the loaded content is a local file. Your application
triggers the
progress
property.
contentPath
event may be broadcast without any
complete
event when the content starts loading by setting the value of the
events being
progress
ScrollPane.progress
1113
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers