home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / egg_catcher_game.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2006-06-07  |  333 b   |  11 lines

  1. totalBytes = Math.round(getBytesTotal() / 1024);
  2. loadedBytes = Math.round(getBytesLoaded() / 1024);
  3. percentDone = Math.round(loadedBytes / totalBytes * 100);
  4. percentone = totalBytes / 100;
  5. percent = Math.round(loadedBytes / percentone);
  6. if(_root._framesloaded >= _root._totalframes)
  7. {
  8.    gotoAndStop("start");
  9.    play();
  10. }
  11.