home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / mug.swf / scripts / DefineSprite_110 / frame_1 / DoAction.as
Encoding:
Text File  |  2005-11-18  |  3.0 KB  |  160 lines

  1. x = this._x;
  2. y = this._y;
  3. fall = eval("/:fall");
  4. if(Number(x) < 0)
  5. {
  6.    fall = 0;
  7. }
  8. y += fall;
  9. if(this.hitTest(_root.ring1))
  10. {
  11.    go = random(2) + 1;
  12.    if(Number(go) == 1)
  13.    {
  14.       x += 15;
  15.    }
  16.    if(Number(go) == 2)
  17.    {
  18.       ┬º┬ºpush("x");
  19.       ┬º┬ºpush("x");
  20.    }
  21.    else
  22.    {
  23.       _root.ring1.play();
  24.       addr72:
  25.       if(this.hitTest(_root.ring2))
  26.       {
  27.          go = random(2) + 1;
  28.          if(Number(go) == 1)
  29.          {
  30.             x += 15;
  31.          }
  32.          if(Number(go) == 2)
  33.          {
  34.             x -= 15;
  35.          }
  36.          _root.ring2.play();
  37.       }
  38.       if(this.hitTest(_root.ring3))
  39.       {
  40.          go = random(2) + 1;
  41.          if(Number(go) == 1)
  42.          {
  43.             x += 15;
  44.          }
  45.          if(Number(go) == 2)
  46.          {
  47.             x -= 15;
  48.          }
  49.          _root.ring3.play();
  50.       }
  51.       if(this.hitTest(_root.ring4))
  52.       {
  53.          go = random(2) + 1;
  54.          if(Number(go) == 1)
  55.          {
  56.             x += 15;
  57.          }
  58.          if(Number(go) == 2)
  59.          {
  60.             x -= 15;
  61.          }
  62.          _root.ring4.play();
  63.       }
  64.       if(this.hitTest(_root.ring5))
  65.       {
  66.          go = random(2) + 1;
  67.          if(Number(go) == 1)
  68.          {
  69.             x += 15;
  70.          }
  71.          if(Number(go) == 2)
  72.          {
  73.             x -= 15;
  74.          }
  75.          _root.ring5.play();
  76.       }
  77.       if(this.hitTest(_root.ring6))
  78.       {
  79.          go = random(2) + 1;
  80.          if(Number(go) == 1)
  81.          {
  82.             x += 15;
  83.          }
  84.          if(Number(go) == 2)
  85.          {
  86.             x -= 15;
  87.          }
  88.          _root.ring6.play();
  89.       }
  90.       if(this.hitTest(_root.ring7))
  91.       {
  92.          go = random(2) + 1;
  93.          if(Number(go) == 1)
  94.          {
  95.             x += 15;
  96.          }
  97.          if(Number(go) == 2)
  98.          {
  99.             x -= 15;
  100.          }
  101.          _root.ring7.play();
  102.       }
  103.       if(this.hitTest(_root.ring8))
  104.       {
  105.          go = random(2) + 1;
  106.          if(Number(go) == 1)
  107.          {
  108.             x += 15;
  109.          }
  110.          if(Number(go) == 2)
  111.          {
  112.             x -= 15;
  113.          }
  114.          _root.ring8.play();
  115.       }
  116.       if(this.hitTest(_root.ring9))
  117.       {
  118.          go = random(2) + 1;
  119.          if(Number(go) == 1)
  120.          {
  121.             x += 15;
  122.          }
  123.          if(Number(go) == 2)
  124.          {
  125.             x -= 15;
  126.          }
  127.          _root.ring9.play();
  128.       }
  129.       if(this.hitTest(_root.ring10))
  130.       {
  131.          go = random(2) + 1;
  132.          if(Number(go) == 1)
  133.          {
  134.             x += 15;
  135.          }
  136.          if(Number(go) == 2)
  137.          {
  138.             x -= 15;
  139.          }
  140.          _root.ring10.play();
  141.       }
  142.       this._x = x;
  143.       this._y = y;
  144.       if(Number(y) > 370)
  145.       {
  146.          tellTarget("/life")
  147.          {
  148.             play();
  149.          }
  150.          ┬º/:life┬º++;
  151.          gotoAndPlay(3);
  152.       }
  153.       if(this.act1.hitTest(_root.cup.act))
  154.       {
  155.          gotoAndPlay(10);
  156.       }
  157.    }
  158. }
  159. §§goto(addr72);
  160.