Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

question about getBytesTotal & loadMovie

Status
Not open for further replies.

hugstable77

Programmer
Joined
Apr 21, 2006
Messages
7
Location
US
my site has a preloader featuring some logic featuring the getBytesTotal function - will getBytesTotal take the swf's loaded via a loadMovie into account? The code is:

bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
 
> will getBytesTotal take the swf's loaded via a loadMovie into account?

I don't think so. Flash would not know the file size until it actually starts loading the file.

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top