home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / starball.swf / scripts / frame_2 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  572 b   |  19 lines

  1. tellTarget("Progress Bar")
  2. {
  3.    with("Progress Bar")
  4.    {
  5.       n = getTimer() / 1000 - this.begTime;
  6.       bps = Math.round(this.getBytesLoaded() / n);
  7.       tr = (this.asize - this.getBytesLoaded()) / bps;
  8.       trround = Math.floor(tr);
  9.       trf = Math.round((tr - trround) * 100);
  10.       trem = Math.floor(tr) + trf / 100;
  11.    }
  12.    gotoAndStop(Math.round(this.getBytesLoaded() / _parent.OnePercent));
  13.    _root.procent = Math.round(this.getBytesLoaded() / _parent.OnePercent);
  14. }
  15. if(this.getBytesLoaded() >= this.getBytesTotal())
  16. {
  17.    gotoAndStop(5);
  18. }
  19.