home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / escape.swf / scripts / DefineSprite_242 / frame_1 / DoAction.as
Encoding:
Text File  |  2005-08-23  |  812 b   |  42 lines

  1. count = 1300;
  2. a = 0;
  3. temp_h = _height;
  4. temp_w = _width;
  5. this.onEnterFrame = function()
  6. {
  7.    if(a == 0)
  8.    {
  9.       count -= 1;
  10.       a = 3;
  11.       if(_root.chara01.nop3 + _root.chara02.nop3 + _root.chara03.nop3 > 9)
  12.       {
  13.          kyori_bg._alpha = 100;
  14.          a = 0;
  15.       }
  16.       else
  17.       {
  18.          kyori_bg._alpha = 0;
  19.       }
  20.    }
  21.    else
  22.    {
  23.       a -= 1;
  24.    }
  25.    if(count < 0)
  26.    {
  27.       _global.clr = 1;
  28.    }
  29.    tmp = count;
  30.    x1000 = Math.floor(tmp / 1000);
  31.    this.k1000.gotoAndStop(1 + x1000);
  32.    tmp -= x1000 * 1000;
  33.    x100 = Math.floor(tmp / 100);
  34.    this.k100.gotoAndStop(1 + x100);
  35.    tmp -= x100 * 100;
  36.    x10 = Math.floor(tmp / 10);
  37.    this.k10.gotoAndStop(1 + x10);
  38.    tmp -= x10 * 10;
  39.    x1 = Math.floor(tmp);
  40.    this.k1.gotoAndStop(1 + x1);
  41. };
  42.