home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / Animações / katie1.swf / scripts / DefineSprite_32 / frame_1 / DoAction.as
Text File  |  2005-12-10  |  305b  |  14 lines

  1. perc = Math.round(_parent.getBytesLoaded() / _parent.getBytesTotal() * 100);
  2. xperc = perc / 100;
  3. barlength = 200;
  4. if(perc == 100 and bar._width == barlength)
  5. {
  6.    _parent.gotoAndStop(11);
  7. }
  8. else
  9. {
  10.    nperc = perc + "%";
  11.    bar._width = barlength * xperc;
  12.    bar._x = -100 + bar._width / 2;
  13. }
  14.