home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / year_of_the_snake.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2007-03-20  |  280 b   |  7 lines

  1. stopAllSounds();
  2. _root.bytesLoaded = _root.getBytesLoaded();
  3. _root.bytesTotal = _root.getBytesTotal();
  4. _root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
  5. _root.percentLoadedText = _root.percentLoaded + "%";
  6. _root.bar.gotoAndStop(percentLoaded);
  7.