home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / dingleballgame.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2004-07-23  |  235 b   |  9 lines

  1. loadedbytes = getBytesLoaded();
  2. totalbytes = getBytesTotal();
  3. percentloaded = Math.floor(loadedbytes / totalbytes * 100);
  4. loadbar.loadbarwiper._xscale = 100 - percentloaded;
  5. if(loadedbytes >= totalbytes)
  6. {
  7.    gotoAndPlay(5);
  8. }
  9.