home *** CD-ROM | disk | FTP | other *** search
- tellTarget("Progress Bar")
- {
- with("Progress Bar")
- {
- n = getTimer() / 1000 - this.begTime;
- bps = Math.round(this.getBytesLoaded() / n);
- tr = (this.asize - this.getBytesLoaded()) / bps;
- trround = Math.floor(tr);
- trf = Math.round((tr - trround) * 100);
- trem = Math.floor(tr) + trf / 100;
- }
- gotoAndStop(Math.round(this.getBytesLoaded() / _parent.OnePercent));
- _root.procent = Math.round(this.getBytesLoaded() / _parent.OnePercent);
- }
- if(this.getBytesLoaded() >= this.getBytesTotal())
- {
- gotoAndStop(5);
- }
-