home *** CD-ROM | disk | FTP | other *** search
- loadedSize = _root.getBytesLoaded();
- totalSize = _root.getBytesTotal();
- time = getTimer() - time0;
- if(time >= 1000)
- {
- time0 = getTimer();
- speed = Math.floor((loadedSize - loadSize0) / 1000);
- loadSize0 = loadedSize;
- forTime = Math.floor((totalSize - loadedSize) / 1000 / speed);
- }
- if(loadedSize >= totalSize)
- {
- downloadParcent = 100;
- this.display.sankaku.sizeChange(100);
- this.bar.sizeChange(100);
- this.anyBar.anyBarChange(100);
- }
- else
- {
- parcent = loadedSize / totalSize * 100;
- this.display.sankaku.sizeChange(parcent);
- this.bar.sizeChange(parcent);
- downloadParcent = Math.round(parcent);
- this.anyBar.anyBarChange(parcent);
- _root.stop();
- }
-