home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Esportes / Quadriball.swf / scripts / DefineSprite_120 / frame_1 / DoAction.as
Encoding:
Text File  |  2005-08-05  |  218 b   |  12 lines

  1. fileSize = _root.getBytesTotal();
  2. loaded = _root.getBytesLoaded();
  3. percent = int(loaded / fileSize * 100) + "%";
  4. if(loaded < fileSize)
  5. {
  6.    bar._xscale = loaded / fileSize * 100;
  7. }
  8. else
  9. {
  10.    _root.play();
  11. }
  12.