home *** CD-ROM | disk | FTP | other *** search
- objNewTime = new Date();
- varBytes = _root.getBytesLoaded();
- varKbytes = Math.round(_root.getBytesLoaded() / 1024 * 100) / 100;
- varTotalBytes = Math.round(_root.getBytesTotal() / 1024 * 100) / 100;
- if(1024 < varBytes)
- {
- txtBytes = varKbytes add " Kbytes of " add varTotalBytes add " Kbytes";
- }
- else
- {
- txtBytes = varBytes add " Bytes of " add varTotalBytes add " Kbytes";
- }
- txtPercentage = Math.round(_root.getBytesLoaded() / _root.getBytesTotal() * 100) add "%";
- varElapsedSeconds = objNewTime.getSeconds() - varStartSeconds;
- varElapsedMinutes = objNewTime.getMinutes() - varStartMinutes;
- varElapsedHours = objNewTime.getHours() - varStartHours;
- varElapsedDays = objNewTime.getDay() - varStartDays;
- varElapsedTime = varElapsedDays * 24 * 60 * 60 + varElapsedHours * 60 * 60 + varElapsedMinutes * 60 + varElapsedSeconds;
- if(1 < varElapsedTime)
- {
- txtElapsed = varElapsedTime add " Seconds";
- }
- else
- {
- txtElapsed = varElapsedTime add " Second";
- }
- varSpeed = Math.round(_root.getBytesLoaded() / varElapsedTime / 1024 * 10) / 10;
- txtSpeed = varSpeed add " Kbytes/Second";
- varRemaining = Math.round((_root.getBytesTotal() - _root.getBytesLoaded()) / (varSpeed * 1024));
- if(1 < varRemaining)
- {
- txtRemaining = varRemaining add " Seconds";
- }
- else
- {
- txtRemaining = varRemaining add " Second";
- }
- varMove = Math.Round(_root.getBytesLoaded() / _root.getBytesTotal() * 458.8);
- setProperty("_root.mcLoad", _X, -59.4 + varMove);
-