home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Esportes / FishHunter.swf / scripts / frame_4 / DoAction.as
Encoding:
Text File  |  2005-08-05  |  40.8 KB  |  1,612 lines

  1. function addnum()
  2. {
  3.    _root.space_num += 1;
  4. }
  5. function tougun()
  6. {
  7.    if(!_root.qiangZHeng._visible)
  8.    {
  9.       K_Code = Key.getCode();
  10.       if(Key.isDown(32))
  11.       {
  12.          key_cotrol = 32;
  13.       }
  14.       if(K_Code == 32 and key_cotrol == 32)
  15.       {
  16.          if(_root.space_flg == 0)
  17.          {
  18.             _root.space_flg = 1;
  19.          }
  20.          else
  21.          {
  22.             _root.space_flg = 1;
  23.          }
  24.          if(_root.f_do == 1 and _root.space_flg == 1)
  25.          {
  26.             _root.f_do = 2;
  27.             if(!_root.qiangZHeng._visible)
  28.             {
  29.                if(_root.ren_zunbei._visible)
  30.                {
  31.                   _root.ren_shoot._x = _root.ren_zunbei._x;
  32.                   _root.ren_shoot._y = _root.ren_zunbei._y;
  33.                }
  34.                _root.jsjiaodu();
  35.                _root.gunrunZB1();
  36.             }
  37.          }
  38.          K_Code = 0;
  39.          key_cotrol = 0;
  40.       }
  41.    }
  42. }
  43. function renmove(bz)
  44. {
  45.    if(bz == 1)
  46.    {
  47.       if(_root.ren_shoot._x - _root.ren_jl > _root.Di_Zbj)
  48.       {
  49.          _root.ren_shoot.gotoAndPlay(1);
  50.          _root.ren_shoot._x -= _root.ren_jl;
  51.       }
  52.    }
  53.    else if(bz == 2)
  54.    {
  55.       if(_root.ren_shoot._x + _root.ren_jl < _root.Di_Ybj)
  56.       {
  57.          _root.ren_shoot.gotoAndPlay(1);
  58.          _root.ren_shoot._x += _root.ren_jl;
  59.       }
  60.    }
  61.    _root.f_do = 1;
  62. }
  63. function jsfzjl()
  64. {
  65.    var t1;
  66.    var t2;
  67.    var t3;
  68.    var max_y;
  69.    var sp_py;
  70.    var hd;
  71.    hd = 0.017453292519943295 * _root.jd_yu_1;
  72.    _root.fz_status = 2;
  73.    _root.yu_status = 3;
  74.    _root.jd_yu_sp = Math.floor(_root.v_yu_2 * Math.cos(hd));
  75.    _root.jd_yu_cz = Math.floor(_root.v_yu_2 * Math.sin(hd));
  76.    t1 = _root.jd_yu_cz / _root.g;
  77.    max_y = _root.jd_yu_cz * t1 - _root.g * (t1 * t1) / 2;
  78.    _root.max_y = max_y;
  79.    t2 = Math.sqrt(2 * max_y / _root.g);
  80.    t3 = t1 + t2;
  81.    sp_py = t3 * _root.jd_yu_sp;
  82.    _root.sp_py = sp_py;
  83.    yupingyipd(1);
  84.    _root.SX_pao_bz = 1;
  85.    _root.s_rotate_time = t1 * 1000;
  86.    _root.x_rotate_time = t2 * 1000;
  87.    _root.gd_time_num = 0;
  88. }
  89. function yujump()
  90. {
  91.    if(_root.fz_status == 1)
  92.    {
  93.       sjjpd();
  94.    }
  95.    else if(_root.fz_status == 2)
  96.    {
  97.       sjjpd();
  98.    }
  99.    else if(_root.fz_status == 4)
  100.    {
  101.       xjjpd();
  102.    }
  103.    else if(_root.fz_status == 5)
  104.    {
  105.       xjjpd();
  106.    }
  107. }
  108. function sjjpd()
  109. {
  110.    var t1;
  111.    var max_y;
  112.    var py_x;
  113.    _root.gd_time_num += 1;
  114.    if(_root.gd_time_num == Math.floor(_root.s_rotate_time / _root.rotate_t1))
  115.    {
  116.       _root.fz_status = 3;
  117.    }
  118.    t1 = _root.gd_time_num * _root.rotate_t1 / 1000;
  119.    max_y = _root.jd_yu_cz * t1 - _root.g * (t1 * t1) / 2;
  120.    if(yu1._y > _root.sm_y and yu1._y - max_y <= _root.sm_y)
  121.    {
  122.       _root.fz_status = 1;
  123.    }
  124.    else if(_root.fz_status != 3)
  125.    {
  126.       _root.fz_status = 2;
  127.    }
  128.    yu1._y = _root.yu_y - max_y;
  129.    py_x = t1 * _root.jd_yu_sp;
  130.    if(_root.yu_FX == 1)
  131.    {
  132.       _root.yu1._x = _root.yu_qiangshi_X + py_x;
  133.    }
  134.    else
  135.    {
  136.       _root.yu1._x = _root.yu_qiangshi_X - py_x;
  137.    }
  138.    _root.yupingyipd(_root.fz_status);
  139.    if(_root.fz_status == 1)
  140.    {
  141.       _root.fz_status = 2;
  142.    }
  143.    else if(_root.fz_status != 2)
  144.    {
  145.       if(_root.fz_status == 3)
  146.       {
  147.          _root.SX_pao_bz = 2;
  148.          _root.fz_status = 4;
  149.          _root.gd_time_num = 0;
  150.       }
  151.    }
  152. }
  153. function xjjpd()
  154. {
  155.    var t1;
  156.    var max_y;
  157.    var py_x;
  158.    _root.gd_time_num += 1;
  159.    if(_root.gd_time_num > Math.floor(_root.x_rotate_time / _root.rotate_t2))
  160.    {
  161.       _root.yu_qiangshi_X = _root.yu1._x;
  162.       if(_root.yu_FX == 2)
  163.       {
  164.          _root.yu_Zuoyi._x = _root.yu1._x;
  165.          _root.yu_Zuoyi._y = _root.yu_y;
  166.          _root.yu_Zuoyi._visible = 1;
  167.       }
  168.       else
  169.       {
  170.          _root.yu_Youyi._x = _root.yu1._x;
  171.          _root.yu_Youyi._y = _root.yu_y;
  172.          _root.yu_Youyi._visible = 1;
  173.       }
  174.       _root.yu1._visible = 0;
  175.       clearInterval(time2);
  176.       time1 = setInterval(yupingyi,_root.move_t1);
  177.    }
  178.    else
  179.    {
  180.       t1 = _root.gd_time_num * _root.rotate_t2 / 1000;
  181.       max_y = _root.g * (t1 * t1) / 2;
  182.       if(yu1._y < _root.sm_y and _root.yu_y - (_root.max_y - max_y) >= _root.sm_y)
  183.       {
  184.          _root.midiplay(3);
  185.          _root.fz_status = 5;
  186.       }
  187.       _root.yu1._y = _root.yu_y - (_root.max_y - max_y);
  188.       py_x = (t1 + _root.s_rotate_time / 1000) * _root.jd_yu_sp;
  189.       if(_root.yu_FX == 1)
  190.       {
  191.          _root.yu1._x = _root.yu_qiangshi_X + py_x;
  192.       }
  193.       else
  194.       {
  195.          _root.yu1._x = _root.yu_qiangshi_X - py_x;
  196.       }
  197.       _root.yupingyipd(_root.fz_status);
  198.       if(_root.fz_status == 5)
  199.       {
  200.          _root.fz_status = 4;
  201.       }
  202.       if(_root.gd_time_num == Math.floor(_root.x_rotate_time / _root.rotate_t2))
  203.       {
  204.          if(_root.yu_FX == 1)
  205.          {
  206.             _root.yu_qiangshi_X += _root.sp_py;
  207.          }
  208.          else
  209.          {
  210.             _root.yu_qiangshi_X -= _root.sp_py;
  211.          }
  212.       }
  213.    }
  214. }
  215. function yujumprangle()
  216. {
  217.    var gl;
  218.    gl = Math.floor(Math.random() * 4);
  219.    if(gl == 0)
  220.    {
  221.       _root.jd_yu_1 = 75 + Math.floor(Math.random() * 5);
  222.    }
  223.    else if(gl == 1)
  224.    {
  225.       _root.jd_yu_1 = 80 + Math.floor(Math.random() * 5);
  226.    }
  227.    else if(gl == 2)
  228.    {
  229.       _root.jd_yu_1 = 85 + Math.floor(Math.random() * 5);
  230.    }
  231.    else if(gl == 3)
  232.    {
  233.       _root.jd_yu_1 = 90;
  234.    }
  235. }
  236. function yumovev()
  237. {
  238.    var gl;
  239.    var bl;
  240.    if(_root.yu_num == 0)
  241.    {
  242.       bl = 1;
  243.    }
  244.    else if(_root.yu_num == 1)
  245.    {
  246.       bl = 2;
  247.    }
  248.    else if(_root.yu_num == 2)
  249.    {
  250.       bl = 3;
  251.    }
  252.    gl = Math.floor(Math.random() * 4);
  253.    if(gl == 0)
  254.    {
  255.       _root.v_yu_1 = 250 + Math.floor(Math.random() * 10);
  256.    }
  257.    else if(gl == 1)
  258.    {
  259.       _root.v_yu_1 = 320 + Math.floor(Math.random() * 10);
  260.    }
  261.    else if(gl == 2)
  262.    {
  263.       _root.v_yu_1 = 420 + Math.floor(Math.random() * 10);
  264.    }
  265.    else if(gl == 3)
  266.    {
  267.       _root.v_yu_1 = 550 + Math.floor(Math.random() * 10);
  268.    }
  269.    _root.v_yu_1 *= bl;
  270. }
  271. function yujumpv()
  272. {
  273.    var gl;
  274.    gl = Math.floor(Math.random() * 4);
  275.    if(gl == 0)
  276.    {
  277.       _root.v_yu_2 = 220 + Math.floor(Math.random() * 10);
  278.    }
  279.    else if(gl == 1)
  280.    {
  281.       _root.v_yu_2 = 280 + Math.floor(Math.random() * 10);
  282.    }
  283.    else if(gl == 2)
  284.    {
  285.       _root.v_yu_2 = 320 + Math.floor(Math.random() * 10);
  286.    }
  287.    else if(gl == 3)
  288.    {
  289.       _root.v_yu_2 = 400 + Math.floor(Math.random() * 10);
  290.    }
  291. }
  292. function yupingyi()
  293. {
  294.    var gl;
  295.    if(!(_root.yu_FX != 1 and _root.yu_FX != 2))
  296.    {
  297.       if(_root.yu_FX == 1)
  298.       {
  299.          if(yu_Youyi._x - _root.yu_qiangshi_X >= _root.jl_yu_jump)
  300.          {
  301.             gl = Math.floor(Math.random() * 30);
  302.             if(gl == 0)
  303.             {
  304.                _root.yu_qiangshi_X = _root.yu_Youyi._x;
  305.                _root.yu1._x = _root.yu_Youyi._x;
  306.                _root.yu1._y = _root.yu_Youyi._y;
  307.                _root.yu_Youyi._visible = 0;
  308.                _root.yu_Zuoyi._visible = 0;
  309.                _root.yu_Youyi.gotoAndStop(1);
  310.                _root.yu1._visible = 1;
  311.                _root.yumovev();
  312.                _root.yujumpv();
  313.                _root.yujumprangle();
  314.                _root.jsfzjl();
  315.                clearInterval(time1);
  316.                time2 = setInterval(yujump,_root.rotate_t1);
  317.                return 1;
  318.             }
  319.             if(gl == 1)
  320.             {
  321.             }
  322.          }
  323.       }
  324.       else if(_root.yu_FX == 2)
  325.       {
  326.          if(_root.yu_qiangshi_X - yu_Zuoyi._x >= _root.jl_yu_jump)
  327.          {
  328.             gl = Math.floor(Math.random() * 30);
  329.             if(gl == 0)
  330.             {
  331.                _root.yu_qiangshi_X = yu_Zuoyi._x;
  332.                _root.yu1._x = _root.yu_Zuoyi._x;
  333.                _root.yu1._y = _root.yu_Zuoyi._y;
  334.                _root.yu_Zuoyi._visible = 0;
  335.                _root.yu_Youyi._visible = 0;
  336.                _root.yu_Zuoyi.gotoAndStop(1);
  337.                _root.yu1._visible = 1;
  338.                _root.yumovev();
  339.                _root.yujumpv();
  340.                _root.yujumprangle();
  341.                _root.jsfzjl();
  342.                clearInterval(time1);
  343.                time2 = setInterval(yujump,_root.rotate_t1);
  344.                return 1;
  345.             }
  346.             if(gl == 1)
  347.             {
  348.             }
  349.          }
  350.       }
  351.       if(_root.yu_FX == 1)
  352.       {
  353.          if(yu_Youyi._x - _root.yu_qiangshi_X >= _root.jl_yu_fz)
  354.          {
  355.             gl = Math.floor(Math.random() * 10);
  356.             if(gl == 0)
  357.             {
  358.                _root.yu_status = 2;
  359.                _root.yu_qiangshi_X = _root.yu_Youyi._x;
  360.                _root.yu_Youyi.gotoAndStop(1);
  361.                _root.yu_Youyi._visible = 0;
  362.                _root.yu_youzuan._x = _root.yu_Youyi._x;
  363.                _root.yu_youzuan._y = _root.yu_Youyi._y;
  364.                _root.yu_youzuan._visible = 1;
  365.                _root.yu_FX = 2;
  366.                _root.yuZYpingyipd(1);
  367.                _root.yumovev();
  368.                _root.yu_Zuoyi._x = _root.yu_Youyi._x;
  369.                _root.yu_Zuoyi._y = _root.yu_Youyi._y;
  370.                return 2;
  371.             }
  372.             if(gl == 1)
  373.             {
  374.             }
  375.          }
  376.       }
  377.       else if(_root.yu_FX == 2)
  378.       {
  379.          if(_root.yu_qiangshi_X - yu_Zuoyi._x >= _root.jl_yu_fz)
  380.          {
  381.             gl = Math.floor(Math.random() * 10);
  382.             if(gl == 0)
  383.             {
  384.                _root.yu_status = 2;
  385.                _root.yu_qiangshi_X = _root.yu_Zuoyi._x;
  386.                _root.yu_Zuoyi.gotoAndStop(1);
  387.                _root.yu_Zuoyi._visible = 0;
  388.                _root.yu_zuozuan._x = _root.yu_Zuoyi._x;
  389.                _root.yu_zuozuan._y = _root.yu_Zuoyi._y;
  390.                _root.yu_zuozuan._visible = 1;
  391.                _root.yu_FX = 1;
  392.                _root.yuZYpingyipd(2);
  393.                _root.yumovev();
  394.                _root.yu_Youyi._x = _root.yu_Zuoyi._x;
  395.                _root.yu_Youyi._y = _root.yu_Zuoyi._y;
  396.                return 2;
  397.             }
  398.             if(gl == 1)
  399.             {
  400.             }
  401.          }
  402.       }
  403.       if(_root.yu_FX == 1)
  404.       {
  405.          if(_root.yu_Youbj - yu_Youyi._x < _root.v_yu_1 * _root.move_t1 / 1000)
  406.          {
  407.             _root.yu_status = 2;
  408.             _root.yu_qiangshi_X = yu_Youyi._x;
  409.             _root.yu_Youyi.gotoAndStop(1);
  410.             _root.yu_Youyi._visible = 0;
  411.             _root.yu_youzuan._x = _root.yu_Youyi._x;
  412.             _root.yu_youzuan._y = _root.yu_Youyi._y;
  413.             _root.yu_youzuan._visible = 1;
  414.             _root.yu_FX = 2;
  415.             _root.yuZYpingyipd(1);
  416.             _root.yumovev();
  417.             _root.yu_Zuoyi._x = _root.yu_Youyi._x;
  418.             _root.yu_Zuoyi._y = _root.yu_Youyi._y;
  419.             return 2;
  420.          }
  421.       }
  422.       else if(yu_Zuoyi._x - _root.yu_Zuobj < _root.v_yu_1 * _root.move_t1 / 1000)
  423.       {
  424.          _root.yu_status = 2;
  425.          _root.yu_qiangshi_X = yu_Zuoyi._x;
  426.          _root.yu_Zuoyi.gotoAndStop(1);
  427.          _root.yu_Zuoyi._visible = 0;
  428.          _root.yu_zuozuan._x = _root.yu_Zuoyi._x;
  429.          _root.yu_zuozuan._y = _root.yu_Zuoyi._y;
  430.          _root.yu_zuozuan._visible = 1;
  431.          _root.yu_FX = 1;
  432.          _root.yuZYpingyipd(2);
  433.          _root.yumovev();
  434.          _root.yu_Youyi._x = _root.yu_Zuoyi._x;
  435.          _root.yu_Youyi._y = _root.yu_Zuoyi._y;
  436.          return 2;
  437.       }
  438.       if(_root.yu_FX == 1)
  439.       {
  440.          _root.yu_status = 1;
  441.          _root.yu_Youyi._x += _root.v_yu_1 * _root.move_t1 / 1000;
  442.          return 3;
  443.       }
  444.       if(_root.yu_FX == 2)
  445.       {
  446.          _root.yu_status = 1;
  447.          _root.yu_Zuoyi._x -= _root.v_yu_1 * _root.move_t1 / 1000;
  448.          return 3;
  449.       }
  450.    }
  451. }
  452. function yuZYpingyipd(bz)
  453. {
  454.    _root.yu_FX += 2;
  455.    if(bz == 1)
  456.    {
  457.       _root.yu_youzuan.gotoAndPlay(1);
  458.    }
  459.    else
  460.    {
  461.       _root.yu_zuozuan.gotoAndPlay(1);
  462.    }
  463. }
  464. function yupingyipd(bz)
  465. {
  466.    if(bz == 1)
  467.    {
  468.       _root.yu_Youyi._visible = 0;
  469.       _root.yu_Zuoyi._visible = 0;
  470.       _root.yu1.gotoAndPlay(1);
  471.    }
  472.    else if(bz == 2)
  473.    {
  474.       _root.yu_Youyi._visible = 0;
  475.       _root.yu_Zuoyi._visible = 0;
  476.       _root.yu1.gotoAndPlay(4);
  477.    }
  478.    else if(bz == 3)
  479.    {
  480.       _root.yu1.gotoAndStop(9);
  481.       _root.yu1.gotoAndStop(10);
  482.       _root.yu1.gotoAndStop(11);
  483.    }
  484.    else if(bz == 4)
  485.    {
  486.       _root.yu1.gotoAndPlay(10);
  487.    }
  488.    else if(bz == 5)
  489.    {
  490.       _root.yu1.gotoAndPlay(11);
  491.       _root.water1._x = _root.yu1._x;
  492.       _root.water1._y = _root.yu1._y;
  493.       _root.water1._visible = 1;
  494.       _root.water1.gotoAndPlay(1);
  495.    }
  496. }
  497. function yusxpingyi(bz)
  498. {
  499. }
  500. function HQkey()
  501. {
  502.    if(!_root.qiangZHeng._visible)
  503.    {
  504.       K_Code = Key.getCode();
  505.       if(Key.isDown(37))
  506.       {
  507.          key_cotrol = 37;
  508.       }
  509.       else if(Key.isDown(38))
  510.       {
  511.          key_cotrol = 38;
  512.       }
  513.       else if(Key.isDown(39))
  514.       {
  515.          key_cotrol = 39;
  516.       }
  517.       else if(Key.isDown(40))
  518.       {
  519.          key_cotrol = 40;
  520.       }
  521.       else if(Key.isDown(32))
  522.       {
  523.          key_cotrol = 32;
  524.       }
  525.       if(K_Code == 37 and key_cotrol == 37)
  526.       {
  527.          if(_root.f_do == 1 or _root.f_do == 0)
  528.          {
  529.             _root.f_do = 0;
  530.             if(_root.ren_zunbei._visible)
  531.             {
  532.                _root.ren_shoot._x = _root.ren_zunbei._x;
  533.                _root.ren_shoot._y = _root.ren_zunbei._y;
  534.             }
  535.             _root.ren_shoot._visible = 1;
  536.             _root.ren_zunbei._visible = 0;
  537.             K_Code = 0;
  538.             key_cotrol = 0;
  539.             _root.renmove(1);
  540.          }
  541.       }
  542.       else if(K_Code == 38 and key_cotrol == 38)
  543.       {
  544.          if(_root.f_do == 1 or _root.f_do == 0)
  545.          {
  546.             _root.f_do = 0;
  547.             if(_root.ren_zunbei._visible)
  548.             {
  549.                _root.ren_shoot._x = _root.ren_zunbei._x;
  550.                _root.ren_shoot._y = _root.ren_zunbei._y;
  551.             }
  552.             _root.ren_shoot._visible = 1;
  553.             _root.ren_zunbei._visible = 0;
  554.             _root.renxuanzhuanZX(1);
  555.             K_Code = 0;
  556.             key_cotrol = 0;
  557.          }
  558.       }
  559.       else if(K_Code == 39 and key_cotrol == 39)
  560.       {
  561.          if(_root.f_do == 1 or _root.f_do == 0)
  562.          {
  563.             _root.f_do = 0;
  564.             if(_root.ren_zunbei._visible)
  565.             {
  566.                _root.ren_shoot._x = _root.ren_zunbei._x;
  567.                _root.ren_shoot._y = _root.ren_zunbei._y;
  568.             }
  569.             _root.ren_shoot._visible = 1;
  570.             _root.ren_zunbei._visible = 0;
  571.             _root.renmove(2);
  572.             K_Code = 0;
  573.             key_cotrol = 0;
  574.          }
  575.       }
  576.       else if(K_Code == 40 and key_cotrol == 40)
  577.       {
  578.          if(_root.f_do == 1 or _root.f_do == 0)
  579.          {
  580.             _root.f_do = 0;
  581.             if(_root.ren_zunbei._visible)
  582.             {
  583.                _root.ren_shoot._x = _root.ren_zunbei._x;
  584.                _root.ren_shoot._y = _root.ren_zunbei._y;
  585.             }
  586.             _root.ren_shoot._visible = 1;
  587.             _root.ren_zunbei._visible = 0;
  588.             _root.renxuanzhuanZX(2);
  589.             K_Code = 0;
  590.             key_cotrol = 0;
  591.          }
  592.       }
  593.       else if(K_Code == 32 and key_cotrol == 32)
  594.       {
  595.          if(_root.f_do == 1)
  596.          {
  597.             _root.f_do = 2;
  598.             if(!_root.qiangZHeng._visible)
  599.             {
  600.                if(_root.ren_zunbei._visible)
  601.                {
  602.                   _root.ren_shoot._x = _root.ren_zunbei._x;
  603.                   _root.ren_shoot._y = _root.ren_zunbei._y;
  604.                }
  605.                K_Code = 0;
  606.                key_cotrol = 0;
  607.                jsjiaodu();
  608.                _root.gunrunZB1();
  609.             }
  610.          }
  611.       }
  612.    }
  613. }
  614. function renxuanzhuan(bz)
  615. {
  616.    if(bz == 1)
  617.    {
  618.       if(_root.Bi_jiaodu > _root.Bi_Sjd)
  619.       {
  620.          _root.Bi_jiaodu -= _root.ren_ds;
  621.          _root.jiaodu = 30 - _root.Bi_jiaodu;
  622.       }
  623.    }
  624.    else if(bz == 2)
  625.    {
  626.       if(_root.Bi_jiaodu < _root.Bi_Xjd)
  627.       {
  628.          _root.Bi_jiaodu += _root.ren_ds;
  629.          _root.jiaodu = 30 - _root.Bi_jiaodu;
  630.       }
  631.    }
  632.    _root.f_do = 1;
  633. }
  634. function renxuanzhuanZX(bz)
  635. {
  636.    if(bz == 1)
  637.    {
  638.       _root.renxuanzhuan(1);
  639.       _root.ren_shoot.ren_qianbi._rotation = _root.Bi_jiaodu;
  640.    }
  641.    else if(bz == 2)
  642.    {
  643.       _root.renxuanzhuan(2);
  644.       _root.ren_shoot.ren_qianbi._rotation = _root.Bi_jiaodu;
  645.    }
  646.    _root.f_do = 1;
  647. }
  648. function jsjiaodu()
  649. {
  650.    if(_root.jiaodu < 90)
  651.    {
  652.       _root.gun_jiaodu = 90 - _root.jiaodu;
  653.       _root.gun_jd = 90 - _root.jiaodu;
  654.       _root.gun_rflg = 1;
  655.    }
  656.    else if(_root.jiaodu == 90)
  657.    {
  658.       _root.gun_jiaodu = 0;
  659.       _root.gun_jd = 0;
  660.       _root.gun_rflg = 2;
  661.    }
  662.    else
  663.    {
  664.       _root.gun_jiaodu = 90 - (180 - _root.jiaodu);
  665.       _root.gun_jd = - (90 - (180 - _root.jiaodu));
  666.       _root.gun_rflg = 3;
  667.    }
  668. }
  669. function gunrunZB1()
  670. {
  671.    _root.ren_shoot._visible = 0;
  672.    _root.ren_shoot_zb._x = _root.ren_shoot._x;
  673.    _root.ren_shoot_zb._y = _root.ren_shoot._y;
  674.    _root.ren_shoot_zb._visible = 1;
  675.    _root.ren_zunbei._visible = 0;
  676.    _root.ren_shoot_zb.gotoAndPlay(1);
  677. }
  678. function gunrunZB2()
  679. {
  680.    _root.ren_shoot_zb._visible = 0;
  681.    _root.ren_shoot_zb.gotoAndStop(1);
  682.    _root.ren_shoot._visible = 1;
  683.    _root.ren_shoot.ren_qianbi.gotoAndStop(2);
  684.    _root.ren_shoot.ren_qianbi.qiang1._visible = 0;
  685.    _root.gunrunZB3();
  686.    _root.ren_zunbei._x = _root.ren_shoot._x;
  687.    _root.ren_zunbei._y = _root.ren_shoot._y;
  688. }
  689. function gunrunZB3()
  690. {
  691.    _root.LtoG();
  692.    _root.qiangZHeng._rotation += _root.gun_jd;
  693.    _root.qiangZHeng._visible = 1;
  694.    _root.qiangZHeng._x = _root.xx;
  695.    _root.qiangZHeng._y = _root.yy;
  696.    _root.midiplay(4);
  697.    time3 = setInterval(gunrun2,_root.move_t1);
  698. }
  699. function gunrun2()
  700. {
  701.    var hd;
  702.    var gun_sp;
  703.    var gun_cz;
  704.    var ret;
  705.    ret = _root.hitpd();
  706.    if(ret == 1)
  707.    {
  708.       return undefined;
  709.    }
  710.    if(ret == 2)
  711.    {
  712.    }
  713.    hd = 0.017453292519943295 * _root.gun_jiaodu;
  714.    gun_sp = Math.floor(_root.v_qiang * Math.cos(hd));
  715.    gun_cz = Math.floor(_root.v_qiang * Math.sin(hd));
  716.    if(_root.gun_rflg == 1)
  717.    {
  718.       _root.qiangZHeng._x += gun_sp * _root.move_t1 / 1000;
  719.       _root.qiangZHeng._y += gun_cz * _root.move_t1 / 1000;
  720.    }
  721.    else if(_root.gun_rflg == 2)
  722.    {
  723.       _root.qiangZHeng._x += gun_sp * _root.move_t1 / 1000;
  724.    }
  725.    else if(_root.gun_rflg == 3)
  726.    {
  727.       _root.qiangZHeng._x -= gun_sp * _root.move_t1 / 1000;
  728.       _root.qiangZHeng._y += gun_cz * _root.move_t1 / 1000;
  729.    }
  730.    if(_root.qiangZHeng._x <= 0 or _root.qiangZHeng._x >= 600)
  731.    {
  732.       _root.f_do = 1;
  733.       _root.hitwater.gotoAndStop(1);
  734.       _root.hitwater._visible = 0;
  735.       _root.end1();
  736.       _root.ren_zunbei._visible = 1;
  737.       clearInterval(time3);
  738.       if(_root.gun_num - 1 >= 0)
  739.       {
  740.          _root.gun_num -= 1;
  741.       }
  742.       if(_root.gun_num == 5)
  743.       {
  744.          _root.qt1._visible = 1;
  745.          _root.qt2._visible = 1;
  746.          _root.qt3._visible = 1;
  747.          _root.qt4._visible = 1;
  748.          _root.qt5._visible = 1;
  749.          _root.qt6._visible = 0;
  750.          clearInterval(time4);
  751.          _root.renDeng._visible = 0;
  752.          _root.renCixia._visible = 1;
  753.          _root.renCixia.gotoAndPlay(1);
  754.       }
  755.       else if(_root.gun_num == 4)
  756.       {
  757.          _root.qt1._visible = 1;
  758.          _root.qt2._visible = 1;
  759.          _root.qt3._visible = 1;
  760.          _root.qt4._visible = 1;
  761.          _root.qt5._visible = 0;
  762.          _root.qt6._visible = 0;
  763.          clearInterval(time4);
  764.          _root.renDeng._visible = 0;
  765.          _root.renCixia._visible = 1;
  766.          _root.renCixia.gotoAndPlay(1);
  767.       }
  768.       else if(_root.gun_num == 3)
  769.       {
  770.          _root.qt1._visible = 1;
  771.          _root.qt2._visible = 1;
  772.          _root.qt3._visible = 1;
  773.          _root.qt4._visible = 0;
  774.          _root.qt5._visible = 0;
  775.          _root.qt6._visible = 0;
  776.          clearInterval(time4);
  777.          _root.renDeng._visible = 0;
  778.          _root.renCixia._visible = 1;
  779.          _root.renCixia.gotoAndPlay(1);
  780.       }
  781.       else if(_root.gun_num == 2)
  782.       {
  783.          _root.qt1._visible = 1;
  784.          _root.qt2._visible = 1;
  785.          _root.qt3._visible = 0;
  786.          _root.qt4._visible = 0;
  787.          _root.qt5._visible = 0;
  788.          _root.qt6._visible = 0;
  789.          clearInterval(time4);
  790.          _root.renDeng._visible = 0;
  791.          _root.renCixia._visible = 1;
  792.          _root.renCixia.gotoAndPlay(1);
  793.       }
  794.       else if(_root.gun_num == 1)
  795.       {
  796.          _root.qt1._visible = 1;
  797.          _root.qt2._visible = 0;
  798.          _root.qt3._visible = 0;
  799.          _root.qt4._visible = 0;
  800.          _root.qt5._visible = 0;
  801.          _root.qt6._visible = 0;
  802.          clearInterval(time4);
  803.          _root.renDeng._visible = 0;
  804.          _root.renCixia._visible = 1;
  805.          _root.renCixia.gotoAndPlay(1);
  806.       }
  807.       else if(_root.gun_num == 0)
  808.       {
  809.          _root.qt1._visible = 0;
  810.          _root.qt2._visible = 0;
  811.          _root.qt3._visible = 0;
  812.          _root.qt4._visible = 0;
  813.          _root.qt5._visible = 0;
  814.          _root.qt6._visible = 0;
  815.          clearInterval(time3);
  816.          _root.jieshu();
  817.          _root.gotoAndStop(7);
  818.       }
  819.    }
  820.    else if(_root.qiangZHeng._y <= 0 or _root.qiangZHeng._y >= 450)
  821.    {
  822.       _root.f_do = 1;
  823.       _root.hitwater.gotoAndStop(1);
  824.       _root.hitwater._visible = 0;
  825.       _root.end1();
  826.       _root.ren_zunbei._visible = 1;
  827.       clearInterval(time3);
  828.       if(_root.gun_num - 1 >= 0)
  829.       {
  830.          _root.gun_num -= 1;
  831.       }
  832.       if(_root.gun_num == 5)
  833.       {
  834.          _root.qt1._visible = 1;
  835.          _root.qt2._visible = 1;
  836.          _root.qt3._visible = 1;
  837.          _root.qt4._visible = 1;
  838.          _root.qt5._visible = 1;
  839.          _root.qt6._visible = 0;
  840.          clearInterval(time4);
  841.          _root.renDeng._visible = 0;
  842.          _root.renCixia._visible = 1;
  843.          _root.renCixia.gotoAndPlay(1);
  844.       }
  845.       else if(_root.gun_num == 4)
  846.       {
  847.          _root.qt1._visible = 1;
  848.          _root.qt2._visible = 1;
  849.          _root.qt3._visible = 1;
  850.          _root.qt4._visible = 1;
  851.          _root.qt5._visible = 0;
  852.          _root.qt6._visible = 0;
  853.          clearInterval(time4);
  854.          _root.renDeng._visible = 0;
  855.          _root.renCixia._visible = 1;
  856.          _root.renCixia.gotoAndPlay(1);
  857.       }
  858.       else if(_root.gun_num == 3)
  859.       {
  860.          _root.qt1._visible = 1;
  861.          _root.qt2._visible = 1;
  862.          _root.qt3._visible = 1;
  863.          _root.qt4._visible = 0;
  864.          _root.qt5._visible = 0;
  865.          _root.qt6._visible = 0;
  866.          clearInterval(time4);
  867.          _root.renDeng._visible = 0;
  868.          _root.renCixia._visible = 1;
  869.          _root.renCixia.gotoAndPlay(1);
  870.       }
  871.       else if(_root.gun_num == 2)
  872.       {
  873.          _root.qt1._visible = 1;
  874.          _root.qt2._visible = 1;
  875.          _root.qt3._visible = 0;
  876.          _root.qt4._visible = 0;
  877.          _root.qt5._visible = 0;
  878.          _root.qt6._visible = 0;
  879.          clearInterval(time4);
  880.          _root.renDeng._visible = 0;
  881.          _root.renCixia._visible = 1;
  882.          _root.renCixia.gotoAndPlay(1);
  883.       }
  884.       else if(_root.gun_num == 1)
  885.       {
  886.          _root.qt1._visible = 1;
  887.          _root.qt2._visible = 0;
  888.          _root.qt3._visible = 0;
  889.          _root.qt4._visible = 0;
  890.          _root.qt5._visible = 0;
  891.          _root.qt6._visible = 0;
  892.          clearInterval(time4);
  893.          _root.renDeng._visible = 0;
  894.          _root.renCixia._visible = 1;
  895.          _root.renCixia.gotoAndPlay(1);
  896.       }
  897.       else if(_root.gun_num == 0)
  898.       {
  899.          _root.qt1._visible = 0;
  900.          _root.qt2._visible = 0;
  901.          _root.qt3._visible = 0;
  902.          _root.qt4._visible = 0;
  903.          _root.qt5._visible = 0;
  904.          _root.qt6._visible = 0;
  905.          clearInterval(time3);
  906.          _root.jieshu();
  907.          _root.gotoAndStop(7);
  908.       }
  909.    }
  910. }
  911. function jsfen(hitlx)
  912. {
  913.    var bl;
  914.    var bl2;
  915.    if(_root.yu_num == 0)
  916.    {
  917.       bl = 1;
  918.    }
  919.    else if(_root.yu_num == 1)
  920.    {
  921.       bl = 2;
  922.    }
  923.    else if(_root.yu_num == 2)
  924.    {
  925.       bl = 4;
  926.    }
  927.    if(_root.gun_num == 6)
  928.    {
  929.       bl2 = 1;
  930.    }
  931.    else if(_root.gun_num == 5)
  932.    {
  933.       bl2 = 0.95;
  934.    }
  935.    else if(_root.gun_num == 4)
  936.    {
  937.       bl2 = 0.9;
  938.    }
  939.    else if(_root.gun_num == 3)
  940.    {
  941.       bl2 = 0.85;
  942.    }
  943.    else if(_root.gun_num == 2)
  944.    {
  945.       bl2 = 0.8;
  946.    }
  947.    else if(_root.gun_num == 1)
  948.    {
  949.       bl2 = 0.75;
  950.    }
  951.    if(hitlx == 1)
  952.    {
  953.       bl = 1;
  954.       _root.fen_num = Math.floor(_root.fen_num + 5 * bl2);
  955.    }
  956.    else if(hitlx == 2)
  957.    {
  958.       _root.fen_num = Math.floor(_root.fen_num + 50 * bl * bl2);
  959.    }
  960.    else if(hitlx == 3)
  961.    {
  962.       _root.fen_num = Math.floor(_root.fen_num + 100 * bl * bl2);
  963.    }
  964.    if(_root.fen_num > 100 and _root.yu_num == 2)
  965.    {
  966.       _root.fen_num += _root.timenum;
  967.    }
  968.    _root.score = _root.fen_num;
  969. }
  970. function hitpd()
  971. {
  972.    var sp;
  973.    var hd;
  974.    if(_root.qiangZHeng.qiangtai.hitTest(_root.yu1.yugYING) and _root.yu1._visible)
  975.    {
  976.       _root.jsfen(1);
  977.       _root.yu_status = 4;
  978.       _root.yu1.gotoAndStop(1);
  979.       _root.yu1._visible = 0;
  980.       _root.qudiaoQiang();
  981.       _root.hityu._visible = 1;
  982.       clearInterval(time2);
  983.       _root.hityu._x = _root.yu1._x;
  984.       _root.hityu._y = _root.yu1._y;
  985.       _root.hityu.gotoAndPlay(1);
  986.       clearInterval(time3);
  987.       clearInterval(time4);
  988.       _root.renDeng._visible = 0;
  989.       _root.RenJiZH._visible = 1;
  990.       _root.RenJiZH.gotoAndPlay(1);
  991.       _root.huntyu();
  992.       return 1;
  993.    }
  994.    if(_root.qiangZHeng.qiangtai.hitTest(_root.yu_Zuoyi.yugYING) and _root.yu_Zuoyi._visible)
  995.    {
  996.       _root.jsfen(2);
  997.       _root.yu_status = 4;
  998.       clearInterval(time1);
  999.       _root.yu_Zuoyi.gotoAndStop(1);
  1000.       _root.yu_Zuoyi._visible = 0;
  1001.       _root.qudiaoQiang();
  1002.       _root.hityu._visible = 1;
  1003.       _root.hityu._x = _root.yu_Zuoyi._x;
  1004.       _root.hityu._y = _root.yu_Zuoyi._y;
  1005.       _root.hityu.gotoAndPlay(1);
  1006.       clearInterval(time3);
  1007.       clearInterval(time4);
  1008.       _root.renDeng._visible = 0;
  1009.       _root.RenJiZH._visible = 1;
  1010.       _root.RenJiZH.gotoAndPlay(1);
  1011.       _root.huntyu();
  1012.       return 1;
  1013.    }
  1014.    if(_root.qiangZHeng.qiangtai.hitTest(_root.yu_Youyi.yugYING) and _root.yu_Youyi._visible)
  1015.    {
  1016.       _root.jsfen(2);
  1017.       _root.yu_status = 4;
  1018.       clearInterval(time1);
  1019.       _root.yu_Youyi.gotoAndStop(1);
  1020.       _root.yu_Youyi._visible = 0;
  1021.       _root.qudiaoQiang();
  1022.       _root.hityu._visible = 1;
  1023.       _root.hityu._x = _root.yu_Youyi._x;
  1024.       _root.hityu._y = _root.yu_Youyi._y;
  1025.       _root.hityu.gotoAndPlay(1);
  1026.       clearInterval(time3);
  1027.       clearInterval(time4);
  1028.       _root.renDeng._visible = 0;
  1029.       _root.RenJiZH._visible = 1;
  1030.       _root.RenJiZH.gotoAndPlay(1);
  1031.       _root.huntyu();
  1032.       return 1;
  1033.    }
  1034.    if(_root.qiangZHeng.qiangtai.hitTest(_root.yu_youzuan.yugYING) and _root.yu_youzuan._visible)
  1035.    {
  1036.       _root.jsfen(3);
  1037.       _root.yu_status = 4;
  1038.       clearInterval(time1);
  1039.       _root.yu_youzuan.gotoAndStop(1);
  1040.       _root.yu_youzuan._visible = 0;
  1041.       _root.qudiaoQiang();
  1042.       _root.hityu._visible = 1;
  1043.       _root.hityu._x = _root.yu_youzuan._x;
  1044.       _root.hityu._y = _root.yu_youzuan._y;
  1045.       _root.hityu.gotoAndPlay(1);
  1046.       clearInterval(time3);
  1047.       clearInterval(time4);
  1048.       _root.renDeng._visible = 0;
  1049.       _root.RenJiZH._visible = 1;
  1050.       _root.RenJiZH.gotoAndPlay(1);
  1051.       _root.huntyu();
  1052.       return 1;
  1053.    }
  1054.    if(_root.qiangZHeng.qiangtai.hitTest(_root.yu_zuozuan.yugYING) and _root.yu_zuozuan._visible)
  1055.    {
  1056.       _root.jsfen(3);
  1057.       _root.yu_status = 4;
  1058.       clearInterval(time1);
  1059.       _root.yu_zuozuan.gotoAndStop(1);
  1060.       _root.yu_zuozuan._visible = 0;
  1061.       _root.qudiaoQiang();
  1062.       _root.hityu._visible = 1;
  1063.       _root.hityu._x = _root.yu_zuozuan._x;
  1064.       _root.hityu._y = _root.yu_zuozuan._y;
  1065.       _root.hityu.gotoAndPlay(1);
  1066.       clearInterval(time3);
  1067.       clearInterval(time4);
  1068.       _root.renDeng._visible = 0;
  1069.       _root.RenJiZH._visible = 1;
  1070.       _root.RenJiZH.gotoAndPlay(1);
  1071.       _root.huntyu();
  1072.       return 1;
  1073.    }
  1074.    if(_root.qiangZHeng.qiangtai.hitTest(_root.water2) and _root.water2._visible)
  1075.    {
  1076.       _root.midiplay(2);
  1077.       _root.hitwater._visible = 1;
  1078.       _root.LtoG2();
  1079.       _root.hitwater._x = _root.xx;
  1080.       _root.hitwater._y = _root.yy;
  1081.       _root.hitwater.gotoAndPlay(1);
  1082.       return 2;
  1083.    }
  1084.    return 0;
  1085. }
  1086. function end1()
  1087. {
  1088.    removeMovieClip("_root.ren_shoot");
  1089.    removeMovieClip("_root.qiangZHeng");
  1090.    duplicateMovieClip("_root.qiangZHeng_yun","qiangZHeng",16390);
  1091.    _root.qiangZHeng._visible = 0;
  1092.    duplicateMovieClip("_root.ren_shoot_yu","ren_shoot",16388);
  1093.    _root.ren_shoot._visible = 0;
  1094.    _root.Bi_jiaodu = 0;
  1095.    _root.jiaodu = 30;
  1096. }
  1097. function LtoG()
  1098. {
  1099.    var gl;
  1100.    var hd;
  1101.    var sp;
  1102.    hd = 0.017453292519943295 * _root.gun_jiaodu;
  1103.    sp = Math.floor(40 * Math.cos(hd));
  1104.    aobj.x = _root.ren_shoot.ren_qianbi.qiang1._x - sp;
  1105.    aobj.y = _root.ren_shoot.ren_qianbi.qiang1._y;
  1106.    _root.ren_shoot.ren_qianbi.qiang1.localToGlobal(aobj);
  1107.    _root.xx = aobj.x;
  1108.    _root.yy = aobj.y;
  1109. }
  1110. function GtoL()
  1111. {
  1112.    var gl;
  1113.    var hd;
  1114.    var sp;
  1115.    aobj.x = _root.xx;
  1116.    aobj.y = _root.yy;
  1117.    aobj.x -= 199;
  1118.    aobj.y -= 210.10000000000002;
  1119.    _root.ren_shoot.ren_qianbi.qiang1._x = aobj.x;
  1120.    _root.ren_shoot.ren_qianbi.qiang1._y = aobj.y;
  1121. }
  1122. function jzYu()
  1123. {
  1124.    removeMovieClip("_root.hityu");
  1125.    duplicateMovieClip("_root.hityu_yun","hityu",16392);
  1126.    _root.hityu._visible = 0;
  1127. }
  1128. function qudiaoQiang()
  1129. {
  1130.    removeMovieClip("_root.qiangZHeng");
  1131.    duplicateMovieClip("_root.qiangZHeng_yun","qiangZHeng",16390);
  1132.    _root.qiangZHeng._visible = 0;
  1133. }
  1134. function LtoG2()
  1135. {
  1136.    var gl;
  1137.    var hd;
  1138.    var sp;
  1139.    hd = 0.017453292519943295 * _root.gun_jiaodu;
  1140.    sp = Math.floor(40 * Math.cos(hd));
  1141.    aobj.x = _root.qiangZHeng.qiangtai._x - sp;
  1142.    aobj.y = _root.qiangZHeng.qiangtai._y;
  1143.    _root.qiangZHeng.qiangtai.localToGlobal(aobj);
  1144.    _root.xx = aobj.x;
  1145.    _root.yy = _root.sm_y;
  1146. }
  1147. function checkstone()
  1148. {
  1149.    var gl;
  1150.    if(_root.yu_status == 1)
  1151.    {
  1152.       gl = Math.floor(Math.random() * 3);
  1153.       if(gl == 0)
  1154.       {
  1155.          clearInterval(time4);
  1156.          _root.renDeng._visible = 0;
  1157.          _root.RenZaST._visible = 1;
  1158.          _root.RenZaST.gotoAndPlay(1);
  1159.       }
  1160.    }
  1161. }
  1162. function stonechangyu()
  1163. {
  1164.    var gl;
  1165.    if(_root.yu_status == 1)
  1166.    {
  1167.       gl = Math.floor(Math.random() * 2);
  1168.       if(gl == 0)
  1169.       {
  1170.          if(_root.yu_FX == 1)
  1171.          {
  1172.             _root.yu_qiangshi_X = _root.yu_Youyi._x;
  1173.             _root.yu1._x = _root.yu_Youyi._x;
  1174.             _root.yu1._y = _root.yu_Youyi._y;
  1175.             _root.yu_Youyi._visible = 0;
  1176.             _root.yu_Zuoyi._visible = 0;
  1177.             _root.yu_Youyi.gotoAndStop(1);
  1178.             _root.yu1._visible = 1;
  1179.             _root.yumovev();
  1180.             _root.yujumpv();
  1181.             _root.yujumprangle();
  1182.             _root.jsfzjl();
  1183.             clearInterval(time1);
  1184.             time2 = setInterval(yujump,_root.rotate_t1);
  1185.             return 1;
  1186.          }
  1187.          if(_root.yu_FX == 2)
  1188.          {
  1189.             _root.yu_qiangshi_X = yu_Zuoyi._x;
  1190.             _root.yu1._x = _root.yu_Zuoyi._x;
  1191.             _root.yu1._y = _root.yu_Zuoyi._y;
  1192.             _root.yu_Zuoyi._visible = 0;
  1193.             _root.yu_Youyi._visible = 0;
  1194.             _root.yu_Zuoyi.gotoAndStop(1);
  1195.             _root.yu1._visible = 1;
  1196.             _root.yumovev();
  1197.             _root.yujumpv();
  1198.             _root.yujumprangle();
  1199.             _root.jsfzjl();
  1200.             clearInterval(time1);
  1201.             time2 = setInterval(yujump,_root.rotate_t1);
  1202.             return 1;
  1203.          }
  1204.       }
  1205.       else
  1206.       {
  1207.          if(_root.yu_FX == 1)
  1208.          {
  1209.             _root.yu_qiangshi_X = yu_Youyi._x;
  1210.             _root.yu_Youyi._visible = 0;
  1211.             _root.yu_Youyi.gotoAndStop(1);
  1212.             _root.yu_youzuan._x = _root.yu_Youyi._x;
  1213.             _root.yu_youzuan._y = _root.yu_Youyi._y;
  1214.             _root.yu_youzuan._visible = 1;
  1215.             _root.yu_FX = 2;
  1216.             _root.yuZYpingyipd(1);
  1217.             _root.yumovev();
  1218.             _root.yu_Zuoyi._x = _root.yu_Youyi._x;
  1219.             _root.yu_Zuoyi._y = _root.yu_Youyi._y;
  1220.             return 2;
  1221.          }
  1222.          if(_root.yu_FX == 2)
  1223.          {
  1224.             _root.yu_qiangshi_X = yu_Zuoyi._x;
  1225.             _root.yu_Zuoyi.gotoAndStop(1);
  1226.             _root.yu_Zuoyi._visible = 0;
  1227.             _root.yu_zuozuan._x = _root.yu_Zuoyi._x;
  1228.             _root.yu_zuozuan._y = _root.yu_Zuoyi._y;
  1229.             _root.yu_zuozuan._visible = 1;
  1230.             _root.yu_FX = 1;
  1231.             _root.yuZYpingyipd(2);
  1232.             _root.yumovev();
  1233.             _root.yu_Youyi._x = _root.yu_Zuoyi._x;
  1234.             _root.yu_Youyi._y = _root.yu_Zuoyi._y;
  1235.             return 2;
  1236.          }
  1237.       }
  1238.    }
  1239. }
  1240. function stonerun()
  1241. {
  1242.    var hd;
  1243.    var gun_sp;
  1244.    var gun_cz;
  1245.    if(_root.SHitou1.hitTest(_root.water2))
  1246.    {
  1247.       _root.midiplay(2);
  1248.       _root.hitwater1._visible = 1;
  1249.       _root.hitwater1._x = _root.SHitou1._x;
  1250.       _root.hitwater1._y = _root.sm_y;
  1251.       _root.hitwater1.gotoAndPlay(1);
  1252.       _root.stonechangyu();
  1253.       hd = 0.017453292519943295 * _root.stone_jd;
  1254.       gun_sp = Math.floor(_root.v_stone * Math.cos(hd));
  1255.       gun_cz = Math.floor(_root.v_stone * Math.sin(hd));
  1256.       _root.SHitou1._x -= gun_sp * _root.move_t1 / 1000;
  1257.       _root.SHitou1._y += gun_cz * _root.move_t1 / 1000;
  1258.    }
  1259.    else if(_root.SHitou1._x <= 0 or _root.SHitou1._x >= 600)
  1260.    {
  1261.       _root.SHitou1._visible = 0;
  1262.       clearInterval(time5);
  1263.       _root.RenZaST._visible = 0;
  1264.       _root.renDeng._visible = 1;
  1265.       _root.hitwater1._visible = 0;
  1266.       _root.hitwater1.gotoAndPlay(1);
  1267.       time4 = setInterval(checkstone,200);
  1268.    }
  1269.    else if(_root.SHitou1._y <= 0 or _root.SHitou1._y >= 450)
  1270.    {
  1271.       _root.SHitou1._visible = 0;
  1272.       clearInterval(time5);
  1273.       _root.RenZaST._visible = 0;
  1274.       _root.renDeng._visible = 1;
  1275.       _root.hitwater1.gotoAndStop(1);
  1276.       _root.hitwater1._visible = 0;
  1277.       time4 = setInterval(checkstone,1000);
  1278.    }
  1279.    else
  1280.    {
  1281.       hd = 0.017453292519943295 * _root.stone_jd;
  1282.       gun_sp = Math.floor(_root.v_stone * Math.cos(hd));
  1283.       gun_cz = Math.floor(_root.v_stone * Math.sin(hd));
  1284.       _root.SHitou1._x -= gun_sp * _root.move_t1 / 1000;
  1285.       _root.SHitou1._y += gun_cz * _root.move_t1 / 1000;
  1286.    }
  1287. }
  1288. function timexl()
  1289. {
  1290.    time5 = setInterval(stonerun,50);
  1291. }
  1292. function numXS(number1, wz)
  1293. {
  1294. }
  1295. function numQC()
  1296. {
  1297.    var i;
  1298.    i = 1;
  1299.    while(i <= 5)
  1300.    {
  1301.       removeMovieClip(strsave[i]);
  1302.       i++;
  1303.    }
  1304. }
  1305. function SJtime()
  1306. {
  1307.    _root.timenum -= 1;
  1308.    _root.SJGstr();
  1309.    if(_root.timenum == 0)
  1310.    {
  1311.       _root.qt1._visible = 0;
  1312.       _root.qt2._visible = 0;
  1313.       _root.qt3._visible = 0;
  1314.       _root.qt4._visible = 0;
  1315.       _root.qt5._visible = 0;
  1316.       _root.qt6._visible = 0;
  1317.       clearInterval(time3);
  1318.       _root.jieshu();
  1319.       _root.gotoAndStop(7);
  1320.    }
  1321. }
  1322. function SJGstr()
  1323. {
  1324.    var temp1;
  1325.    var temp2;
  1326.    var i;
  1327.    if(_root._strIntzt == 1)
  1328.    {
  1329.       _root.numQC();
  1330.    }
  1331.    _root.strIntzt = 1;
  1332.    if(_root.timenum == 120)
  1333.    {
  1334.       temp1 = "200";
  1335.    }
  1336.    else if(_root.timenum >= 60)
  1337.    {
  1338.       if(_root.timenum == 60)
  1339.       {
  1340.          temp1 = "100";
  1341.       }
  1342.       else if(_root.timenum > 60 and _root.timenum < 70)
  1343.       {
  1344.          temp1 = "10" + (_root.timenum - 60);
  1345.       }
  1346.       else
  1347.       {
  1348.          temp1 = "1" + (_root.timenum - 60);
  1349.       }
  1350.    }
  1351.    else if(_root.timenum < 60 and _root.timenum >= 10)
  1352.    {
  1353.       temp1 = "0" + _root.timenum;
  1354.    }
  1355.    else
  1356.    {
  1357.       temp1 = "00" + _root.timenum;
  1358.    }
  1359.    _root.txt2 = temp1.charAt(0);
  1360.    _root.txt3 = temp1.charAt(1) + temp1.charAt(2);
  1361. }
  1362. function endyu()
  1363. {
  1364.    if(_root.stage eq "01")
  1365.    {
  1366.       _root.stage = "02";
  1367.       _root.jzYu();
  1368.       _root.ren_zunbei._visible = 1;
  1369.       _root.end1();
  1370.       clearInterval(time3);
  1371.       _root.qt1._visible = 1;
  1372.       _root.qt2._visible = 1;
  1373.       _root.qt3._visible = 1;
  1374.       _root.qt4._visible = 1;
  1375.       _root.qt5._visible = 1;
  1376.       _root.qt6._visible = 1;
  1377.       _root.gun_num = 6;
  1378.       _root.yu_status = 1;
  1379.       _root.yu_Zuoyi._visible = 1;
  1380.       _root.f_do = 1;
  1381.       _root.yu_qiangshi_X = 550;
  1382.       _root.yu_Zuoyi._x = _root.yu_qiangshi_X;
  1383.       _root.yu_Zuoyi._y = 420;
  1384.       _root.jiaodu = 30;
  1385.       _root.yu_zuozuan._visible = 0;
  1386.       _root.yu_FX = 2;
  1387.       time1 = setInterval(yupingyi,_root.move_t1);
  1388.    }
  1389.    else if(_root.stage eq "02")
  1390.    {
  1391.       _root.stage = "03";
  1392.       _root.jzYu();
  1393.       _root.ren_zunbei._visible = 1;
  1394.       _root.end1();
  1395.       _root.f_do = 1;
  1396.       _root.yu_Zuoyi._visible = 1;
  1397.       _root.yu_qiangshi_X = 550;
  1398.       _root.yu_Zuoyi._x = _root.yu_qiangshi_X;
  1399.       _root.yu_Zuoyi._y = 420;
  1400.       _root.jiaodu = 30;
  1401.       _root.yu_FX = 2;
  1402.       _root.yu_zuozuan._visible = 0;
  1403.       clearInterval(time3);
  1404.       _root.qt1._visible = 1;
  1405.       _root.qt2._visible = 1;
  1406.       _root.qt3._visible = 1;
  1407.       _root.qt4._visible = 1;
  1408.       _root.qt5._visible = 1;
  1409.       _root.qt6._visible = 1;
  1410.       _root.gun_num = 6;
  1411.       time1 = setInterval(yupingyi,_root.move_t1);
  1412.       _root.yu_status = 1;
  1413.    }
  1414.    else if(_root.stage eq "03")
  1415.    {
  1416.       _root.jzYu();
  1417.       _root.ren_zunbei._visible = 1;
  1418.       _root.f_do = 1;
  1419.       _root.end1();
  1420.       clearInterval(time3);
  1421.       _root.jieshu();
  1422.       _root.gotoAndStop(6);
  1423.       _root.txt4 = _root.fen_num;
  1424.    }
  1425. }
  1426. function paishou()
  1427. {
  1428.    time4 = setInterval(checkstone,20);
  1429.    _root.renDeng._visible = 1;
  1430. }
  1431. function jieshu()
  1432. {
  1433.    _root.f_do = 1;
  1434.    _root.midistop(1);
  1435.    _root.midistop(2);
  1436.    _root.water2._visible = 0;
  1437.    _root.water3._visible = 0;
  1438.    clearInterval(time0);
  1439.    clearInterval(time1);
  1440.    clearInterval(time2);
  1441.    clearInterval(time4);
  1442.    clearInterval(time7);
  1443.    removeMovieClip("_root.ren_zunbei");
  1444.    removeMovieClip("_root.ren_shoot");
  1445.    removeMovieClip("_root.yu1");
  1446.    removeMovieClip("_root.hityu");
  1447.    removeMovieClip("_root.yu_Youyi");
  1448.    removeMovieClip("_root.yu_Zuoyi");
  1449.    removeMovieClip("_root.yu_youzuan");
  1450.    removeMovieClip("_root.yu_zuozuan");
  1451. }
  1452. function aftersmile()
  1453. {
  1454.    time4 = setInterval(checkstone,20);
  1455.    _root.renDeng._visible = 1;
  1456. }
  1457. function restetsys()
  1458. {
  1459.    clearInterval(time1);
  1460.    clearInterval(time2);
  1461.    clearInterval(time4);
  1462.    clearInterval(time7);
  1463.    _root.ren_zunbei.removeMovieClip();
  1464.    _root.ren_shoot.removeMovieClip();
  1465.    _root.qiangZHeng.removeMovieClip();
  1466.    _root.yu1.removeMovieClip();
  1467.    _root.hityu.removeMovieClip();
  1468.    _root.yu_Youyi.removeMovieClip();
  1469.    _root.yu_Zuoyi.removeMovieClip();
  1470.    _root.yu_youzuan.removeMovieClip();
  1471.    _root.yu_zuozuan.removeMovieClip();
  1472.    _root.water2.removeMovieClip();
  1473.    _root.water3.removeMovieClip();
  1474. }
  1475. function huntyu()
  1476. {
  1477.    _root.yu_num += 1;
  1478.    if(_root.yu_num == 0)
  1479.    {
  1480.       _root.gyu1.gotoAndStop(1);
  1481.       _root.gyu2.gotoAndStop(1);
  1482.       _root.gyu3.gotoAndStop(1);
  1483.    }
  1484.    else if(_root.yu_num == 1)
  1485.    {
  1486.       _root.gyu1.gotoAndStop(2);
  1487.    }
  1488.    else if(_root.yu_num == 2)
  1489.    {
  1490.       _root.gyu2.gotoAndStop(2);
  1491.    }
  1492.    else if(_root.yu_num == 3)
  1493.    {
  1494.       _root.gyu3.gotoAndStop(2);
  1495.    }
  1496. }
  1497. function midiplay(bz)
  1498. {
  1499.    if(bz == 1)
  1500.    {
  1501.       if(_root.sound_flg == 1)
  1502.       {
  1503.          sound1.attachSound("midi1");
  1504.          sound1.start("",60);
  1505.       }
  1506.    }
  1507.    else if(bz == 2)
  1508.    {
  1509.       sound2.attachSound("smallwsound");
  1510.       sound2.start("",1);
  1511.    }
  1512.    else if(bz == 3)
  1513.    {
  1514.       sound3.attachSound("bigwsound");
  1515.       sound3.start("",1);
  1516.    }
  1517.    else if(bz == 4)
  1518.    {
  1519.       sound4.attachSound("biao");
  1520.       sound4.start("",1);
  1521.    }
  1522. }
  1523. function midistop(bz)
  1524. {
  1525.    if(bz == 1)
  1526.    {
  1527.       sound1.stop();
  1528.    }
  1529.    else if(bz == 2)
  1530.    {
  1531.       sound2.stop();
  1532.    }
  1533.    else if(bz == 3)
  1534.    {
  1535.       sound3.stop();
  1536.    }
  1537.    else if(bz == 4)
  1538.    {
  1539.       sound4.stop();
  1540.    }
  1541. }
  1542. stop();
  1543. _root.jg = 4;
  1544. _root.old_num = -4;
  1545. _root.space_t1 = 100;
  1546. _root.space_num = 0;
  1547. _root.keyupdownflg = 0;
  1548. _root.up_flg = 0;
  1549. _root.down_flg = 0;
  1550. _root.left_flg = 0;
  1551. _root.right_flg = 0;
  1552. _root.space_flg = 0;
  1553. _root.sound_flg = 1;
  1554. _root.score = 0;
  1555. _root.f_do = 1;
  1556. _root.fen_num = 0;
  1557. _root.yu_num = 0;
  1558. _root.gun_num = 6;
  1559. _root.stage = "01";
  1560. _root.tep1 = "01";
  1561. _root.tep2 = "01";
  1562. _root.timenum = 120;
  1563. sound1 = new Sound();
  1564. sound2 = new Sound();
  1565. sound3 = new Sound();
  1566. sound4 = new Sound();
  1567. SHiJian = 40;
  1568. strsave = new Array(5);
  1569. strIntzt = 0;
  1570. stone_x = 0;
  1571. stone_y = 0;
  1572. stone_jd = 45;
  1573. v_stone = 1500;
  1574. aobj = new Object();
  1575. xx = 0;
  1576. yy = 0;
  1577. gun_jiaodu = 0;
  1578. gun_jd = 0;
  1579. gun_rflg = 1;
  1580. _root.jiaodu = 0;
  1581. sm_y = 357;
  1582. max_y = 1;
  1583. yu_y = 420;
  1584. v_bz = 1;
  1585. v_yu_1 = 300;
  1586. v_yu_2 = 100;
  1587. move_t1 = SHiJian;
  1588. s_rotate_time = -10;
  1589. x_rotate_time = SHiJian;
  1590. rotate_t1 = SHiJian;
  1591. rotate_t2 = SHiJian;
  1592. SX_pao_bz = 1;
  1593. yu_Zuobj = 50;
  1594. yu_Youbj = 560;
  1595. yu_FX = 2;
  1596. v_qiang = 2000;
  1597. yu_qiangshi_X = 550;
  1598. Di_Zbj = 40;
  1599. Di_Ybj = 420;
  1600. Bi_Sjd = -60;
  1601. Bi_Xjd = 30;
  1602. ren_ds = 15;
  1603. ren_jl = 12;
  1604. Bi_jiaodu = 0;
  1605. jl_yu_jump = 100;
  1606. jl_yu_fz = 100;
  1607. jd_yu_1 = 80;
  1608. jd_yu_sp = 30;
  1609. jd_yu_cz = 30;
  1610. g = 300;
  1611. yu_status = 1;
  1612.