home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Acao / SWING-CAT.swf / scripts / DefineSprite_401 / frame_1 / DoAction.as
Text File  |  2008-09-25  |  6KB  |  240 lines

  1. function ┬º\x01\x02┬º()
  2. {
  3.    return 2671 % 511 * 5;
  4. }
  5. var ┬º\x01┬º = 401 + "\x01\x02"();
  6. while(true)
  7. {
  8.    if(eval("\x01") == 981)
  9.    {
  10.       set("\x01",eval("\x01") - 909);
  11.       ┬º┬ºpush(true);
  12.    }
  13.    else if(eval("\x01") == 983)
  14.    {
  15.       set("\x01",eval("\x01") - 639);
  16.       var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  17.       {
  18.          return 2671 % 511 * 5;
  19.       };
  20.    }
  21.    else if(eval("\x01") == 344)
  22.    {
  23.       set("\x01",eval("\x01") - 29);
  24.       ┬º┬ºpush("\x0f");
  25.    }
  26.    else if(eval("\x01") == 315)
  27.    {
  28.       set("\x01",eval("\x01") + 121);
  29.       ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  30.       {
  31.          return 2671 % 511 * 5;
  32.       }));
  33.    }
  34.    else if(eval("\x01") == 436)
  35.    {
  36.       set("\x01",eval("\x01") + 368);
  37.       ┬º┬ºpush(!function ┬º\x01\x02┬º()
  38.       {
  39.          return 2671 % 511 * 5;
  40.       });
  41.    }
  42.    else if(eval("\x01") == 19)
  43.    {
  44.       set("\x01",eval("\x01") + 964);
  45.       ┬º┬ºpush("\x0f");
  46.       ┬º┬ºpush(1);
  47.    }
  48.    else if(eval("\x01") == 399)
  49.    {
  50.       set("\x01",eval("\x01") - 380);
  51.    }
  52.    else if(eval("\x01") == 502)
  53.    {
  54.       set("\x01",eval("\x01") - 483);
  55.    }
  56.    else if(eval("\x01") == 72)
  57.    {
  58.       set("\x01",eval("\x01") + 536);
  59.       if(function ┬º\x01\x02┬º()
  60.       {
  61.          return 2671 % 511 * 5;
  62.       })
  63.       {
  64.          set("\x01",eval("\x01") - 106);
  65.       }
  66.    }
  67.    else if(eval("\x01") == 804)
  68.    {
  69.       set("\x01",eval("\x01") + 125);
  70.       if(function ┬º\x01\x02┬º()
  71.       {
  72.          return 2671 % 511 * 5;
  73.       })
  74.       {
  75.          set("\x01",eval("\x01") - 351);
  76.       }
  77.    }
  78.    else
  79.    {
  80.       if(eval("\x01") != 929)
  81.       {
  82.          break;
  83.       }
  84.       set("\x01",eval("\x01") - 351);
  85.    }
  86. }
  87. if(eval("\x01") == 608)
  88. {
  89.    set("\x01",eval("\x01") - 106);
  90. }
  91. else if(eval("\x01") == 578)
  92. {
  93.    set("\x01",eval("\x01") - 427);
  94.    stop();
  95.    this.onEnterFrame = function()
  96.    {
  97.       if(_global.game_state)
  98.       {
  99.          if(_parent.stick1_mc.stick_mc.a1_mc.hitTest(this))
  100.          {
  101.             side_hitTest(_parent.stick1_mc.stick_mc.a1_mc,"a1");
  102.             if(stick1_flag)
  103.             {
  104.                stick1_flag = false;
  105.                if(my_states != states[states.length - 1])
  106.                {
  107.                   _parent.stick1_mc.stick_mc.gotoAndPlay("back");
  108.                   _parent.oncetouch1_mc.gotoAndPlay(2);
  109.                   i++;
  110.                   my_states = states[i];
  111.                   if(remove == 0)
  112.                   {
  113.                      remove = space;
  114.                      remove = space + (space - Math.abs(remove));
  115.                   }
  116.                   else
  117.                   {
  118.                      remove = space - Math.abs(remove);
  119.                   }
  120.                }
  121.             }
  122.          }
  123.          else
  124.          {
  125.             stick1_flag = true;
  126.          }
  127.          if(_parent.stick2_mc.stick_mc.a2_mc.hitTest(this))
  128.          {
  129.             side_hitTest(_parent.stick2_mc.stick_mc.a2_mc,"a2");
  130.             if(stick2_flag)
  131.             {
  132.                stick2_flag = false;
  133.                if(my_states != states[0])
  134.                {
  135.                   _parent.stick2_mc.stick_mc.gotoAndPlay("back");
  136.                   _parent.oncetouch2_mc.gotoAndPlay(2);
  137.                   i--;
  138.                   my_states = states[i];
  139.                   if(remove == 0)
  140.                   {
  141.                      remove = space;
  142.                      remove = - (space + (space - Math.abs(remove)));
  143.                   }
  144.                   else
  145.                   {
  146.                      remove = - (space - Math.abs(remove));
  147.                   }
  148.                }
  149.             }
  150.          }
  151.          else
  152.          {
  153.             stick2_flag = true;
  154.          }
  155.          if(remove > 0)
  156.          {
  157.             if(_global.only_win < 1)
  158.             {
  159.                this._x += speed;
  160.                remove -= speed;
  161.             }
  162.          }
  163.          else if(remove < 0)
  164.          {
  165.             if(_global.only_win < 1)
  166.             {
  167.                this._x -= speed;
  168.                remove += speed;
  169.             }
  170.          }
  171.          else
  172.          {
  173.             if(my_states == states[states.length - 1])
  174.             {
  175.                _global.a1 = 1;
  176.                _global.a2 = 0;
  177.                my_states = 0;
  178.                _parent.game_win();
  179.                this._x += 20;
  180.                store_move = true;
  181.             }
  182.             if(my_states == states[0])
  183.             {
  184.                _global.a1 = 0;
  185.                _global.a2 = 1;
  186.                my_states = 0;
  187.                _parent.game_win();
  188.                this._x -= 20;
  189.                store_move = true;
  190.             }
  191.          }
  192.          if(store_move)
  193.          {
  194.             if(this._y < 250)
  195.             {
  196.                j = 0;
  197.                while(j < _global.stones.length)
  198.                {
  199.                   if(this.hitTest(_global.stones[j]))
  200.                   {
  201.                      _global.stones[j].gotoAndPlay(2);
  202.                   }
  203.                   j++;
  204.                }
  205.                this._y += 15;
  206.             }
  207.             else
  208.             {
  209.                this._visible = false;
  210.                store_move = false;
  211.                _global.game_state = false;
  212.                if(_global.a1 > _global.a2)
  213.                {
  214.                   _parent.cat2.gotoAndStop(2);
  215.                   if(_global.win == "")
  216.                   {
  217.                      _root.a1_mc.gotoAndStop("win");
  218.                      _root.a2_mc.gotoAndStop("lost");
  219.                   }
  220.                }
  221.                else if(_global.a1 < _global.a2)
  222.                {
  223.                   _parent.cat1.gotoAndStop(2);
  224.                   if(_global.win == "")
  225.                   {
  226.                      _root.a1_mc.gotoAndStop("lost");
  227.                      _root.a2_mc.gotoAndStop("win");
  228.                   }
  229.                }
  230.             }
  231.          }
  232.       }
  233.    };
  234.    store_initialization();
  235. }
  236. else if(eval("\x01") == 151)
  237. {
  238.    set("\x01",eval("\x01") - 151);
  239. }
  240.