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 gkittelson 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
Apr 21, 2006
7
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);
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top