home *** CD-ROM | disk | FTP | other *** search
/ Champak 48 / cdrom_image.iso / Games / numbersequence.swf / scripts / DefineSprite_40 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-09-27  |  512 b   |  22 lines

  1. function doLoading()
  2. {
  3.    var nTotalSize = _root.getBytesTotal();
  4.    var nLoadedSize = _root.getBytesLoaded();
  5.    if(nLoadedSize >= nTotalSize)
  6.    {
  7.       _root.play();
  8.       this.stop();
  9.    }
  10.    else
  11.    {
  12.       _root.stop();
  13.       var nPercent = Math.round(nLoadedSize * 100 / nTotalSize);
  14.       Progress.setPercent(nPercent);
  15.       this.gotoAndPlay(_currentframe - 1);
  16.    }
  17. }
  18. _root.stop();
  19. var g_nTest = 0;
  20. getUrl("FSCommand:fullscreen", "false");
  21. getUrl("FSCommand:allowscale", "false");
  22.