home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / naval.swf / scripts / frame_3 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  358 b   |  22 lines

  1. stot = this.getBytesTotal();
  2. sloa = this.getBytesLoaded();
  3. if(stot != 0)
  4. {
  5.    per = Math.floor(sloa / stot * 100);
  6. }
  7. else
  8. {
  9.    per = 0;
  10. }
  11. mc_bar.mc._x = mc_bar.mc._width * (-1 + sloa / stot);
  12. txtPer = String(per) + "%";
  13. if(sloa >= 1 && stot >= 1 && sloa == stot)
  14. {
  15.    gotoAndStop("main");
  16.    inMenuFirst();
  17. }
  18. else
  19. {
  20.    gotoAndPlay(2);
  21. }
  22.