home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / chichi.swf / scripts / frame_2 / DoAction.as
Text File  |  2008-09-25  |  490b  |  9 lines

  1. per = Math.floor(this.getBytesLoaded() / this.getBytesTotal() * 100) + "%";
  2. load = Math.round(this.getBytesLoaded() / 1024 * 1000) / 1000 + " Kb of " + Math.round(this.getBytesTotal() / 1024 * 1000) / 1000 + " Kb total Loaded.";
  3. if(this.getBytesLoaded() == this.getBytesTotal())
  4. {
  5.    per = "100%";
  6.    load = Math.round(this.getBytesLoaded() / 1024 * 1000) / 1000 + " Kb of " + Math.round(this.getBytesTotal() / 1024 * 1000) / 1000 + " Kb total Loaded.";
  7.    gotoAndStop("Button");
  8. }
  9.