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

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