home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / fierce_fighter.swf / scripts / DefineSprite_537 / frame_1 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  1.6 KB  |  77 lines

  1. if(_root.bisha_chen == false)
  2. {
  3.    if(_root.fangxiang == 1 and _root.enemy_fangxiang == 1)
  4.    {
  5.       if(_root.enemy._x < 500)
  6.       {
  7.          _root.enemy._x += 15;
  8.       }
  9.       else
  10.       {
  11.          _root.chen._x -= 15;
  12.       }
  13.    }
  14.    else if(_root.fangxiang == 2 and _root.enemy_fangxiang == 1)
  15.    {
  16.       if(_root.enemy._x > 50)
  17.       {
  18.          _root.enemy._x -= 15;
  19.       }
  20.       else
  21.       {
  22.          _root.chen._x += 15;
  23.       }
  24.    }
  25.    else if(_root.fangxiang == 2 and _root.enemy_fangxiang == 2)
  26.    {
  27.       if(_root.enemy._x > 50)
  28.       {
  29.          _root.enemy._x -= 15;
  30.       }
  31.       else
  32.       {
  33.          _root.chen._x += 15;
  34.       }
  35.    }
  36.    else if(_root.fangxiang == 1 and _root.enemy_fangxiang == 2)
  37.    {
  38.       if(_root.enemy._x < 500)
  39.       {
  40.          _root.enemy._x += 15;
  41.       }
  42.       else
  43.       {
  44.          _root.chen._x -= 15;
  45.       }
  46.    }
  47. }
  48. if(_root.gongji_chen_name == "Σ╕¡µö╗")
  49. {
  50.    zhong._visible = 1;
  51.    zhongdown._visible = 0;
  52.    up._visible = 0;
  53.    _root.sheng_dong();
  54. }
  55. else if(_root.gongji_chen_name == "Σ╕¡Σ╕ïµö╗")
  56. {
  57.    zhong._visible = 0;
  58.    zhongdown._visible = 1;
  59.    up._visible = 0;
  60.    _root.sheng_dong();
  61. }
  62. else if(_root.gongji_chen_name == "Σ╕èµö╗")
  63. {
  64.    zhong._visible = 0;
  65.    zhongdown._visible = 0;
  66.    up._visible = 1;
  67.    _root.sheng_dong();
  68. }
  69. else
  70. {
  71.    zhong._visible = 0;
  72.    zhongdown._visible = 0;
  73.    up._visible = 0;
  74. }
  75. _root.gongji_enemy = true;
  76. _root.enemy_gongji_name = _root.boss1_gongji_name = _root.boss2_gongji_name = _root.boss3_gongji_name = _root.gongji_chen_name = "";
  77.