home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / fierce_fighter.swf / scripts / DefineSprite_776 / frame_1 / DoAction.as < prev   
Encoding:
Text File  |  2006-06-13  |  921 b   |  48 lines

  1. if(_root.fangxiang == 1 and _root.boss1_fangxiang == 1)
  2. {
  3.    if(_root.boss2._x < 500)
  4.    {
  5.       _root.boss2._x += 15;
  6.    }
  7.    else
  8.    {
  9.       _root.chen._x -= 15;
  10.    }
  11. }
  12. else if(_root.fangxiang == 2 and _root.boss1_fangxiang == 1)
  13. {
  14.    if(_root.boss2._x > 50)
  15.    {
  16.       _root.boss2._x -= 15;
  17.    }
  18.    else
  19.    {
  20.       _root.chen._x += 15;
  21.    }
  22. }
  23. else if(_root.fangxiang == 2 and _root.boss1_fangxiang == 2)
  24. {
  25.    if(_root.boss2._x > 50)
  26.    {
  27.       _root.boss2._x -= 15;
  28.    }
  29.    else
  30.    {
  31.       _root.chen._x += 15;
  32.    }
  33. }
  34. else if(_root.fangxiang == 1 and _root.boss1_fangxiang == 2)
  35. {
  36.    if(_root.boss2._x < 500)
  37.    {
  38.       _root.boss2._x += 15;
  39.    }
  40.    else
  41.    {
  42.       _root.chen._x -= 15;
  43.    }
  44. }
  45. _root.boss1_dao = true;
  46. _root.sheng_dong();
  47. _root.enemy_gongji_name = _root.boss1_gongji_name = _root.boss2_gongji_name = _root.boss3_gongji_name = _root.gongji_chen_name = "";
  48.