home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / rudolfs_revenge.swf / scripts / DefineSprite_120 / frame_2 / DoAction.as
Encoding:
Text File  |  2007-07-07  |  1.1 KB  |  58 lines

  1. var ┬º\x01┬º = 695;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 695)
  5.    {
  6.       set("\x01",eval("\x01") + 273);
  7.       ┬º┬ºpush(true);
  8.    }
  9.    else
  10.    {
  11.       if(eval("\x01") != 968)
  12.       {
  13.          break;
  14.       }
  15.       set("\x01",eval("\x01") - 394);
  16.       if(┬º┬ºpop())
  17.       {
  18.          set("\x01",eval("\x01") + 213);
  19.       }
  20.    }
  21. }
  22. if(eval("\x01") == 574)
  23. {
  24.    set("\x01",eval("\x01") + 213);
  25.    stop();
  26.    this.onEnterFrame = function()
  27.    {
  28.       if(_root.scrollin == 1)
  29.       {
  30.          if(this.hitTest(_root.mos.targ))
  31.          {
  32.             plusvx = random(7) - 3;
  33.             _root.mos.vx += plusvx;
  34.             if(plusvx > 0)
  35.             {
  36.                _root.mos.accelx = - Math.abs(_root.mos.accelx);
  37.             }
  38.             else if(plusvx < 0)
  39.             {
  40.                _root.mos.accelx = - Math.abs(_root.mos.accelx);
  41.             }
  42.             this.gotoAndPlay("remove");
  43.          }
  44.       }
  45.    };
  46.    ran = random(4) + 1;
  47.    gotoAndStop(ran);
  48. }
  49. else if(eval("\x01") == 787)
  50. {
  51.    set("\x01",eval("\x01") + 92);
  52.    stop();
  53. }
  54. else if(eval("\x01") == 879)
  55. {
  56.    set("\x01",eval("\x01") - 879);
  57. }
  58.