loadListener.progress = function(eventObj){
// eventObj.target is the component that generated the change event
var bytesLoaded = scrollPane.getBytesLoaded();
var bytesTotal = scrollPane.getBytesTotal();
var percentComplete = Math.floor(bytesLoaded/bytesTotal);
if (percentComplete < 5)
{
trace(" Starting loading contents from Internet");
}
else if(percentComplete = 50) // 50% complete
{
trace(" 50% contents downloaded ");
}
}
scrollPane.addEventListener("progress", loadListener);
scrollPane.contentPath = "http://www.geocities.com/hcls_matrix/Images/
homeview5.jpg";
ScrollPane.getBytesTotal()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
scrollPaneInstance.getBytesTotal()
Parameters
None.
Returns
A number.
Description
Method; returns the total number of bytes to be loaded into the ScrollPane instance.
See also
ScrollPane.getBytesLoaded()
ScrollPane.hLineScrollSize
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
678
Chapter 6: Components Dictionary
// loading begins
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers