home *** CD-ROM | disk | FTP | other *** search
/ Champak 112 / jogo-disk-112.iso / Games / mon_the_monkey.swf / scripts / frame_1 / DoAction.as
Text File  |  2010-07-14  |  394b  |  17 lines

  1. stop();
  2. this.onEnterFrame = function()
  3. {
  4.    sedang = _root.getBytesLoaded();
  5.    total = _root.getBytesTotal();
  6.    xpersen = Math.floor(sedang / total * 100);
  7.    persen = xpersen + " %";
  8.    wpersen = Math.floor(xpersen);
  9.    bar_mc.gotoAndStop(Math.floor(xpersen / 10));
  10.    if(sedang == total)
  11.    {
  12.       gotoAndStop("menu");
  13.       play();
  14.       delete this.onEnterFrame;
  15.    }
  16. };
  17.