home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / dragon.swf / scripts / frame_6 / DoAction.as
Encoding:
Text File  |  2008-09-12  |  354 b   |  14 lines

  1. loadedBytes = _root.getBytesLoaded();
  2. totalBytes = _root.getBytesTotal();
  3. if(_framesloaded >= _totalframes)
  4. {
  5.    gotoAndPlay(1);
  6. }
  7. else
  8. {
  9.    percentageOutput = int(loadedBytes / totalBytes * 100);
  10.    _root.loading_screen.loaderBar._xscale = percentageOutput;
  11.    _root.dude_head.gotoAndStop(Math.ceil(percentageOutput));
  12.    gotoAndPlay(6);
  13. }
  14.