home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / eggrun.swf / scripts / DefineSprite_58 / frame_5 / DoAction.as
Encoding:
Text File  |  2007-03-28  |  461 b   |  14 lines

  1. var loadedPercent = int(_root.getBytesLoaded() / _root.getBytesTotal() * 100);
  2. if(loadedPercent < 100)
  3. {
  4.    mcLoadingAnimated.mcLoading.gotoAndStop(loadedPercent);
  5.    mcLoadingAnimated.mcLoading.txtPercentLoaded1 = "The game is loading (" + loadedPercent + "%)";
  6.    mcLoadingAnimated.mcLoading.txtPercentLoaded2 = "The game is loading (" + loadedPercent + "%)";
  7.    gotoAndPlay(_currentframe - 1);
  8. }
  9. else
  10. {
  11.    mcLoadingAnimated.play();
  12.    stop();
  13. }
  14.