Frame 2
byteloaded = _root.getBytesLoaded();
bytetotal = _root.getBytesTotal();
loaded = int((byteloaded / bytetotal) * 100);
load_bar.gotoAndStop(loaded);
fscommand ("allowscale", "false");
fscommand ("showmenu", "0");
Stage.showMenu = false;
Frame 7
if (byteloaded == bytetotal) {
gotoAndStop ("end");
} else {
gotoAndPlay ("loop");
}
Frame 9
stop();
_root.boy1dead = 0;
_root.boy2dead = 0;
Frame 12
function fight() {
var _local1 = _root;
_local1.attachMovie("boy1", "boy1", 100);
_local1.attachmovie("boy3", "boy2", 101);
_local1.attachmovie("quanchangsheng", "q", 1000000);
setProperty(_local1.boy1, _x , 200);
setProperty(_local1.boy1, _y , 228);
setProperty(_local1.boy1, _xscale , 16.5);
setProperty(_local1.boy1, _yscale , 16.5);
setProperty(_local1.boy2, _x , 350);
setProperty(_local1.boy2, _y , 228);
setProperty(_local1.boy2, _xscale , 16.5);
setProperty(_local1.boy2, _yscale , 16.5);
Set("_root:boy2xspeed", 4);
Set("_root:boy2yspeed", 2);
_local1.boy2ai = random(9) + 1;
}
stop();
Set("_root:boy1leftkey", 65);
Set("_root:boy1rightkey", 68);
Set("_root:boy1upkey", 87);
Set("_root:boy1downkey", 83);
Set("_root:boy1hitkey1", 66);
Set("_root:boy1hitkey2", 78);
Set("_root:boy1hitkey3", 77);
Set("_root:boy1fangshou", 32);
Set("_root:boy1xspeed", 4);
Set("_root:boy1yspeed", 2);
Set("_root:Xmax", 425);
Set("_root:Xmin", 125);
Set("_root:Ymax", 300);
Set("_root:Ymin", 166);
Instance of Symbol 221 MovieClip in Frame 12
onClipEvent (load) {
boy2says = "Hi,man,this is my first time to fight";
}
Frame 13
stop();
fight();
Instance of Symbol 253 MovieClip "say" in Frame 14
onClipEvent (load) {
boy1says = "\u5C0F\u5B50\u7259\u90FD\u6CA1\u957F\u9F50\u8FD8\u6765\u8DDF\u6211\u6253\uFF01";
}
Frame 15
Set("_root:boy1leftkey", 65);
Set("_root:boy1rightkey", 68);
Set("_root:boy1upkey", 87);
Set("_root:boy1downkey", 83);
Set("_root:boy1hitkey1", 66);
Set("_root:boy1hitkey2", 78);
Set("_root:boy1hitkey3", 77);
Set("_root:boy1fangshou", 32);
Set("_root:boy2leftkey", 37);
Set("_root:boy2rightkey", 39);
Set("_root:boy2upkey", 38);
Set("_root:boy2downkey", 40);
Set("_root:boy2hitkey1", 97);
Set("_root:boy2hitkey2", 98);
Set("_root:boy2hitkey3", 99);
Set("_root:boy2fangshou", 96);
Set("_root:boy1xspeed", 4);
Set("_root:boy1yspeed", 2);
Set("_root:boy2xspeed", 4);
Set("_root:boy2yspeed", 2);
Set("_root:boy2power1", 2);
Set("_root:boy2power2", 4);
Set("_root:boy2power3", 9);
Set("_root:Xmax", 425);
Set("_root:Xmin", 125);
Set("_root:Ymax", 300);
Set("_root:Ymin", 166);
_root.attachMovie("boy1", "boy1", 100);
_root.attachMovie("boy2", "boy2", 101);
_root.attachmovie("quanchangsheng", "q", 1000000);
setProperty(_root.boy1, _x , 200);
setProperty(_root.boy1, _y , 228);
setProperty(_root.boy1, _xscale , 16.5);
setProperty(_root.boy1, _yscale , 16.5);
setProperty(_root.boy2, _x , 350);
setProperty(_root.boy2, _y , 228);
setProperty(_root.boy2, _xscale , 16.5);
setProperty(_root.boy2, _yscale , 16.5);
stop();
Symbol 18 MovieClip Frame 1
stop();
Instance of Symbol 17 MovieClip in Symbol 18 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.boy1.area.hittest(this)) {
with (_parent) {
play();
}
}
if (_root.boy1.fangshou.area.hittest(this)) {
with (_parent) {
play();
}
}
}
Symbol 18 MovieClip Frame 2
if (random(_root.boy2ai) == 0) {
gotoAndPlay (50);
}
Symbol 18 MovieClip Frame 20
gotoAndStop (1);
Symbol 18 MovieClip Frame 50
with (_parent) {
gotoAndStop(5);
}
Symbol 19 MovieClip Frame 1
stop();
Instance of Symbol 17 MovieClip in Symbol 19 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.boy1.area.hittest(this)) {
with (_parent) {
play();
}
}
if (_root.boy1.fangshou.area.hittest(this)) {
with (_parent) {
play();
}
}
}
Symbol 19 MovieClip Frame 2
if (random(_root.boy2ai) == 0) {
gotoAndPlay (50);
}
Symbol 19 MovieClip Frame 20
gotoAndStop (1);
Symbol 19 MovieClip Frame 50
with (_parent) {
gotoAndStop(3);
}
Symbol 20 MovieClip Frame 1
stop();
Instance of Symbol 17 MovieClip in Symbol 20 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.boy1.area.hittest(this)) {
with (_parent) {
play();
}
}
if (_root.boy1.fangshou.area.hittest(this)) {
with (_parent) {
play();
}
}
}
Symbol 20 MovieClip Frame 2
if (random(_root.boy2ai) == 0) {
gotoAndPlay (50);
}
Symbol 20 MovieClip Frame 20
gotoAndStop (1);
Symbol 20 MovieClip Frame 50
with (_parent) {
gotoAndStop(4);
}
Symbol 22 MovieClip Frame 1
if (random(_root.boy2ai) == 0) {
gotoAndPlay (50);
}
Symbol 22 MovieClip Frame 20
gotoAndPlay (1);
Symbol 22 MovieClip Frame 50
with (_parent) {
gotoAndStop(2);
}
Symbol 26 MovieClip Frame 1
if (random(_root.boy2ai) == 0) {
gotoAndPlay (80);
} else {
play();
}
Instance of Symbol 23 MovieClip in Symbol 26 MovieClip Frame 2
onClipEvent (load) {
xx = random(_root:Xmax - _root:Xmin) + _root:Xmin;
yy = random(_root:Ymax - _root:Ymin) + _root:Ymin;
}
onClipEvent (enterFrame) {
if (xx <= _parent._parent._x) {
setProperty(_parent._parent, _x , _parent._parent._x - _root.boy2xspeed);
}
if (xx >= _parent._parent._x) {
setProperty(_parent._parent, _x , _parent._parent._x + _root.boy2xspeed);
}
if (yy >= _parent._parent._y) {
setProperty(_parent._parent, _y , _parent._parent._y + _root.boy2yspeed);
}
if (yy <= _parent._parent._y) {
setProperty(_parent._parent, _y , _parent._parent._y - _root.boy2yspeed);
}
}
Symbol 26 MovieClip Frame 79
with (_parent) {
gotoAndStop(1);
}
Instance of Symbol 23 MovieClip in Symbol 26 MovieClip Frame 80
onClipEvent (enterFrame) {
if (_root.boy1._x > _parent._parent._x) {
xx = _root.boy1._x - 70;
yy = _root.boy1._y;
} else {
xx = _root.boy1._x + 70;
yy = _root.boy1._y;
}
if (xx <= _parent._parent._x) {
setProperty(_parent._parent, _x , _parent._parent._x - _root.boy2xspeed);
}
if (xx >= _parent._parent._x) {
setProperty(_parent._parent, _x , _parent._parent._x + _root.boy2xspeed);
}
if (yy >= _parent._parent._y) {
setProperty(_parent._parent, _y , _parent._parent._y + _root.boy2yspeed);
}
if (yy <= _parent._parent._y) {
setProperty(_parent._parent, _y , _parent._parent._y - _root.boy2yspeed);
}
}
Symbol 26 MovieClip Frame 161
with (_parent) {
gotoAndStop(1);
}
Symbol 30 MovieClip Frame 10
with (_parent) {
gotoAndStop(1);
}
Symbol 34 MovieClip Frame 15
with (_parent) {
gotoAndStop(1);
}
Symbol 37 MovieClip Frame 25
with (_parent) {
gotoAndStop(1);
}
Symbol 43 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 10
gotoAndStop (1);
Symbol 43 MovieClip Frame 19
gotoAndStop (1);
Instance of Symbol 23 MovieClip in Symbol 44 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(_root:boy2fangshou)) {
} else {
with (_parent) {
play();
}
}
}
Instance of Symbol 16 MovieClip in Symbol 44 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.boy1.hit1.area)) {
with (_parent.han) {
gotoAndPlay(2);
}
with (_root.boy2xue) {
nextFrame();
}
if (_parent._parent._x < _root.boy1._x) {
if (_parent._parent._x > _root.Xmin) {
setProperty(_parent._parent, _x , _parent._parent._x - 0.5);
}
} else if (_parent._parent._x > _root.boy1._x) {
if (_parent._parent._x < _root.Xmax) {
setProperty(_parent._parent, _x , _parent._parent._x + 0.5);
}
}
} else if (this.hittest(_root.boy1.hit2.area)) {
with (_parent.han) {
gotoAndPlay(11);
}
with (_root.boy2xue) {
nextFrame();
}
if (_parent._parent._x < _root.boy1._x) {
if (_parent._parent._x > _root.Xmin) {
setProperty(_parent._parent, _x , _parent._parent._x - 1);
}
} else if (_parent._parent._x > _root.boy1._x) {
if (_parent._parent._x < _root.Xmax) {
setProperty(_parent._parent, _x , _parent._parent._x + 1);
}
}
} else if (this.hittest(_root.boy1.hit3.area)) {
with (_parent.han) {
gotoAndPlay(2);
}
with (_root.boy2xue) {
nextFrame();
}
if (_parent._parent._x < _root.boy1._x) {
if (_parent._parent._x > _root.Xmin) {
setProperty(_parent._parent, _x , _parent._parent._x - 1.5);
}
} else if (_parent._parent._x > _root.boy1._x) {
if (_parent._parent._x < _root.Xmax) {
setProperty(_parent._parent, _x , _parent._parent._x + 1.5);
}
}
}
}
Symbol 44 MovieClip Frame 10
stop();
Symbol 44 MovieClip Frame 12
with (_parent) {
gotoAndStop(1);
}
Symbol 53 MovieClip Frame 1
with (_root.boy2xue) {
gotoAndStop(_root.boy2xue._currentframe + 2);
}
Instance of Symbol 48 MovieClip in Symbol 53 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._x < _root.boy1._x) {
if (_parent._parent._x > _root.Xmin) {
setProperty(_parent._parent, _x , _parent._parent._x - 1.5);
}
} else if (_parent._parent._x > _root.boy1._x) {
if (_parent._parent._x < _root.Xmax) {
setProperty(_parent._parent, _x , _parent._parent._x + 1.5);
}
}
}
Symbol 53 MovieClip Frame 9
with (_parent) {
gotoAndStop(1);
}
Symbol 61 MovieClip Frame 1
with (_root.boy2xue) {
gotoAndStop(_root.boy2xue._currentframe + 4);
}
Instance of Symbol 48 MovieClip in Symbol 61 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._x < _root.boy1._x) {
if (_parent._parent._x > _root.Xmin) {
setProperty(_parent._parent, _x , _parent._parent._x - 2);
}
} else if (_parent._parent._x > _root.boy1._x) {
if (_parent._parent._x < _root.Xmax) {
setProperty(_parent._parent, _x , _parent._parent._x + 2);
}
}
}
Symbol 61 MovieClip Frame 21
with (_parent) {
gotoAndStop(1);
}
Symbol 70 MovieClip Frame 1
with (_root.boy2xue) {
gotoAndStop(_root.boy2xue._currentframe + 9);
}
Instance of Symbol 48 MovieClip in Symbol 70 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._x < _root.boy1._x) {
if (_parent._parent._x > _root.Xmin) {
setProperty(_parent._parent, _x , _parent._parent._x - 6);
}
} else if (_parent._parent._x > _root.boy1._x) {
if (_parent._parent._x < _root.Xmax) {
setProperty(_parent._parent, _x , _parent._parent._x + 6);
}
}
}
Symbol 70 MovieClip Frame 40
if (_root.boy2dead == 1) {
trace("11");
_root.win.play();
stop();
}
Symbol 70 MovieClip Frame 53
with (_parent) {
gotoAndStop(1);
}
Symbol 71 MovieClip [boy3] Frame 1
stop();
Instance of Symbol 16 MovieClip "area" in Symbol 71 MovieClip [boy3] Frame 1
onClipEvent (enterFrame) {
if (_root.boy1.hit1.area.hittest(this)) {
if (random(_root.boy2ai) == 0) {
with (_parent) {
gotoAndStop(6);
}
} else {
with (_parent) {
gotoAndStop(7);
}
}
} else if (_root.boy1.hit2.area.hittest(this)) {
if (random(_root.boy2ai) == 0) {
with (_parent) {
gotoAndStop(6);
}
} else {
with (_parent) {
gotoAndStop(8);
}
}
} else if (_root.boy1.hit3.area.hittest(this)) {
if (random(_root.boy2ai) == 0) {
with (_parent) {
gotoAndStop(6);
}
} else {
with (_parent) {
gotoAndStop(9);
}
}
}
}
Instance of Symbol 23 MovieClip in Symbol 71 MovieClip [boy3] Frame 1
onClipEvent (enterFrame) {
_parent.swapDepths(_parent._y * 1000);
if (_root.boy1._x < _root.boy2._x) {
setProperty(_parent, _xscale , -16.5);
} else if (_root.boy1._x > _root.boy2._x) {
setProperty(_parent, _xscale , 16.5);
}
}
Instance of Symbol 16 MovieClip "area" in Symbol 71 MovieClip [boy3] Frame 8
onClipEvent (enterFrame) {
if (_root.boy1.hit1.area.hittest(this)) {
with (_parent) {
gotoAndStop(7);
}
} else if (_root.boy1.hit2.area.hittest(this)) {
with (_parent) {
gotoAndStop(8);
}
} else if (_root.boy1.hit3.area.hittest(this)) {
with (_parent) {
gotoAndStop(9);
}
}
}
Symbol 75 MovieClip Frame 10
with (_parent) {
gotoAndStop(1);
}
Symbol 76 MovieClip Frame 15
with (_parent) {
gotoAndStop(1);
}
Symbol 77 MovieClip Frame 25
with (_parent) {
gotoAndStop(1);
}
Instance of Symbol 73 MovieClip in Symbol 78 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(_root:boy2fangshou)) {
} else {
with (_parent) {
play();
}
}
}
Instance of Symbol 17 MovieClip in Symbol 78 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.boy1.hit1.area)) {
with (_parent.han) {
gotoAndPlay(2);
}
with (_root.boy2xue) {
nextFrame();
}
if (_parent._parent._x < _root.boy1._x) {
if (_parent._parent._x > _root.Xmin) {
setProperty(_parent._parent, _x , _parent._parent._x - 0.5);
}
} else if (_parent._parent._x > _root.boy1._x) {
if (_parent._parent._x < _root.Xmax) {
setProperty(_parent._parent, _x , _parent._parent._x + 0.5);
}
}
} else if (this.hittest(_root.boy1.hit2.area)) {
with (_parent.han) {
gotoAndPlay(11);
}
with (_root.boy2xue) {
nextFrame();
}
if (_parent._parent._x < _root.boy1._x) {
if (_parent._parent._x > _root.Xmin) {
setProperty(_parent._parent, _x , _parent._parent._x - 1);
}
} else if (_parent._parent._x > _root.boy1._x) {
if (_parent._parent._x < _root.Xmax) {
setProperty(_parent._parent, _x , _parent._parent._x + 1);
}
}
} else if (this.hittest(_root.boy1.hit3.area)) {
with (_parent.han) {
gotoAndPlay(2);
}
with (_root.boy2xue) {
nextFrame();
}
if (_parent._parent._x < _root.boy1._x) {
if (_parent._parent._x > _root.Xmin) {
setProperty(_parent._parent, _x , _parent._parent._x - 1.5);
}
} else if (_parent._parent._x > _root.boy1._x) {
if (_parent._parent._x < _root.Xmax) {
setProperty(_parent._parent, _x , _parent._parent._x + 1.5);
}
}
}
}
Symbol 78 MovieClip Frame 10
stop();
Symbol 78 MovieClip Frame 12
with (_parent) {
gotoAndStop(1);
}
Symbol 81 MovieClip Frame 1
with (_root.boy2xue) {
gotoAndStop(_root.boy2xue._currentframe + 2);
}
Instance of Symbol 80 MovieClip in Symbol 81 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._x < _root.boy1._x) {
if (_parent._parent._x > _root.Xmin) {
setProperty(_parent._parent, _x , _parent._parent._x - 1.5);
}
} else if (_parent._parent._x > _root.boy1._x) {
if (_parent._parent._x < _root.Xmax) {
setProperty(_parent._parent, _x , _parent._parent._x + 1.5);
}
}
}
Symbol 81 MovieClip Frame 9
with (_parent) {
gotoAndStop(1);
}
Symbol 82 MovieClip Frame 1
with (_root.boy2xue) {
gotoAndStop(_root.boy2xue._currentframe + 4);
}
Instance of Symbol 80 MovieClip in Symbol 82 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._x < _root.boy1._x) {
if (_parent._parent._x > _root.Xmin) {
setProperty(_parent._parent, _x , _parent._parent._x - 2);
}
} else if (_parent._parent._x > _root.boy1._x) {
if (_parent._parent._x < _root.Xmax) {
setProperty(_parent._parent, _x , _parent._parent._x + 2);
}
}
}
Symbol 82 MovieClip Frame 21
with (_parent) {
gotoAndStop(1);
}
Symbol 83 MovieClip Frame 1
with (_root.boy2xue) {
gotoAndStop(_root.boy2xue._currentframe + 9);
}
Instance of Symbol 80 MovieClip in Symbol 83 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._x < _root.boy1._x) {
if (_parent._parent._x > _root.Xmin) {
setProperty(_parent._parent, _x , _parent._parent._x - 6);
}
} else if (_parent._parent._x > _root.boy1._x) {
if (_parent._parent._x < _root.Xmax) {
setProperty(_parent._parent, _x , _parent._parent._x + 6);
}
}
}
Symbol 83 MovieClip Frame 40
if (_root.boy2dead == 1) {
_root.win.gotoAndPlay("lose");
stop();
}
Symbol 83 MovieClip Frame 53
with (_parent) {
gotoAndStop(1);
}
Symbol 84 MovieClip [boy2] Frame 1
stop();
Instance of Symbol 17 MovieClip "area" in Symbol 84 MovieClip [boy2] Frame 1
onClipEvent (enterFrame) {
if (_root.boy1.hit1.area.hittest(this)) {
with (_parent) {
gotoAndStop(7);
}
} else if (_root.boy1.hit2.area.hittest(this)) {
with (_parent) {
gotoAndStop(8);
}
} else if (_root.boy1.hit3.area.hittest(this)) {
with (_parent) {
gotoAndStop(9);
}
}
}
Instance of Symbol 73 MovieClip in Symbol 84 MovieClip [boy2] Frame 1
onClipEvent (enterFrame) {
if (((Key.isDown(_root.boy2rightkey) or Key.isDown(_root:boy2leftkey)) or Key.isDown(_root.boy2downkey)) or Key.isDown(_root.boy2upkey)) {
with (_parent) {
gotoAndStop(2);
}
}
if (Key.isDown(_root:boy2hitkey1)) {
with (_parent) {
gotoAndStop(3);
}
} else if (Key.isDown(_root:boy2hitkey2)) {
with (_parent) {
gotoAndStop(4);
}
} else if (Key.isDown(_root:boy2hitkey3)) {
with (_parent) {
gotoAndStop(5);
}
} else if (Key.isDown(_root:boy2fangshou)) {
with (_parent) {
gotoAndStop(6);
}
}
}
Instance of Symbol 73 MovieClip in Symbol 84 MovieClip [boy2] Frame 1
onClipEvent (enterFrame) {
_parent.swapDepths(_parent._y * 1000);
if (_root.boy1._x < _root.boy2._x) {
setProperty(_parent, _xscale , -16.5);
} else if (_root.boy1._x > _root.boy2._x) {
setProperty(_parent, _xscale , 16.5);
}
}
Instance of Symbol 73 MovieClip in Symbol 84 MovieClip [boy2] Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(_root:boy2hitkey1)) {
with (_parent) {
gotoAndStop(3);
}
} else if (Key.isDown(_root:boy2hitkey2)) {
with (_parent) {
gotoAndStop(4);
}
} else if (Key.isDown(_root:boy2hitkey3)) {
with (_parent) {
gotoAndStop(5);
}
} else if (Key.isDown(_root:boy2fangshou)) {
with (_parent) {
gotoAndStop(6);
}
}
if (Key.isDown(_root:boy2rightkey)) {
if (_parent._x < _root.Xmax) {
setProperty(_parent, _x , getProperty(_parent, _x) + _root.boy2xspeed);
}
} else if (Key.isDown(_root:boy2leftkey)) {
if (_parent._x > _root.Xmin) {
setProperty(_parent, _x , getProperty(_parent, _x) - _root.boy2xspeed);
}
}
if (Key.isDown(_root:boy2downkey)) {
if (_parent._y < _root.Ymax) {
setProperty(_parent, _y , getProperty(_parent, _y) + _root.boy2yspeed);
}
} else if (Key.isDown(_root:boy2upkey)) {
if (_parent._y > _root.Ymin) {
setProperty(_parent, _y , getProperty(_parent, _y) - _root.boy2yspeed);
}
}
if (((Key.isDown(_root:boy2rightkey) or Key.isDown(_root:boy2leftkey)) or Key.isDown(_root:boy2downkey)) or Key.isDown(_root:boy2upkey)) {
} else {
with (_parent) {
gotoAndStop(1);
}
}
}
Instance of Symbol 17 MovieClip "area" in Symbol 84 MovieClip [boy2] Frame 8
onClipEvent (enterFrame) {
if (_root.boy1.hit1.area.hittest(this)) {
with (_parent) {
gotoAndStop(7);
}
} else if (_root.boy1.hit2.area.hittest(this)) {
with (_parent) {
gotoAndStop(8);
}
} else if (_root.boy1.hit3.area.hittest(this)) {
with (_parent) {
gotoAndStop(9);
}
}
}
Symbol 98 MovieClip Frame 10
with (_parent) {
gotoAndStop(1);
}
Symbol 100 MovieClip Frame 15
with (_parent) {
gotoAndStop(1);
}
Symbol 101 MovieClip Frame 25
with (_parent) {
gotoAndStop(1);
}
Instance of Symbol 80 MovieClip in Symbol 102 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(_root:boy1fangshou)) {
} else {
with (_parent) {
play();
}
}
}
Instance of Symbol 17 MovieClip "area" in Symbol 102 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.boy2.hit1.area)) {
with (_parent.han) {
gotoAndPlay(2);
}
with (_root.boy1xue) {
nextFrame(Math.floor(_root.boy2power1 * 0.5));
}
if (_parent._parent._x < _root.boy2._x) {
if (_parent._parent._x > _root.Xmin) {
setProperty(_parent._parent, _x , _parent._parent._x - 0.5);
}
} else if (_parent._parent._x > _root.boy2._x) {
if (_parent._parent._x < _root.Xmax) {
setProperty(_parent._parent, _x , _parent._parent._x + 0.5);
}
}
} else if (this.hittest(_root.boy2.hit2.area)) {
with (_parent.han) {
gotoAndPlay(11);
}
with (_root.boy1xue) {
nextFrame(Math.floor(_root.boy2power2 * 0.5));
}
if (_parent._parent._x < _root.boy2._x) {
if (_parent._parent._x > _root.Xmin) {
setProperty(_parent._parent, _x , _parent._parent._x - 1);
}
} else if (_parent._parent._x > _root.boy2._x) {
if (_parent._parent._x < _root.Xmax) {
setProperty(_parent._parent, _x , _parent._parent._x + 1);
}
}
} else if (this.hittest(_root.boy2.hit3.area)) {
with (_parent.han) {
gotoAndPlay(2);
}
with (_root.boy1xue) {
nextFrame(Math.floor(_root.boy2power3 * 0.3));
}
if (_parent._parent._x < _root.boy2._x) {
if (_parent._parent._x > _root.Xmin) {
setProperty(_parent._parent, _x , _parent._parent._x - 1.5);
}
} else if (_parent._parent._x > _root.boy2._x) {
if (_parent._parent._x < _root.Xmax) {
setProperty(_parent._parent, _x , _parent._parent._x + 1.5);
}
}
}
}
Symbol 102 MovieClip Frame 10
stop();
Symbol 102 MovieClip Frame 12
with (_parent) {
gotoAndStop(1);
}
Symbol 104 MovieClip Frame 1
with (_root.boy1xue) {
gotoAndStop(_root.boy1xue._currentframe + _root:boy2power1);
}
Instance of Symbol 80 MovieClip in Symbol 104 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._x < _root.boy2._x) {
if (_parent._parent._x > _root.Xmin) {
setProperty(_parent._parent, _x , _parent._parent._x - 1.5);
}
} else if (_parent._parent._x > _root.boy2._x) {
if (_parent._parent._x < _root.Xmax) {
setProperty(_parent._parent, _x , _parent._parent._x + 1.5);
}
}
}
Symbol 104 MovieClip Frame 9
with (_parent) {
gotoAndStop(1);
}
Symbol 106 MovieClip Frame 1
with (_root.boy1xue) {
gotoAndStop(_root.boy1xue._currentframe + _root:boy2power2);
}
Instance of Symbol 80 MovieClip in Symbol 106 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._x < _root.boy2._x) {
if (_parent._parent._x > _root.Xmin) {
setProperty(_parent._parent, _x , _parent._parent._x - 2);
}
} else if (_parent._parent._x > _root.boy2._x) {
if (_parent._parent._x < _root.Xmax) {
setProperty(_parent._parent, _x , _parent._parent._x + 2);
}
}
}
Symbol 106 MovieClip Frame 19
with (_parent) {
gotoAndStop(1);
}
Symbol 107 MovieClip Frame 1
with (_root.boy1xue) {
gotoAndStop(_root.boy1xue._currentframe + _root:boy2power3);
}
Instance of Symbol 80 MovieClip in Symbol 107 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._x < _root.boy2._x) {
if (_parent._parent._x > _root.Xmin) {
setProperty(_parent._parent, _x , _parent._parent._x - 6);
}
} else if (_parent._parent._x > _root.boy2._x) {
if (_parent._parent._x < _root.Xmax) {
setProperty(_parent._parent, _x , _parent._parent._x + 6);
}
}
}
Symbol 107 MovieClip Frame 40
if (_root.boy1dead == 1) {
stop();
_root.win.gotoAndPlay("lose");
}
Symbol 107 MovieClip Frame 53
with (_parent) {
gotoAndStop(1);
}
Symbol 108 MovieClip [boy1] Frame 1
stop();
Instance of Symbol 17 MovieClip "area" in Symbol 108 MovieClip [boy1] Frame 1
onClipEvent (enterFrame) {
if (_root.boy2.hit1.area.hittest(this)) {
with (_parent) {
gotoAndStop(7);
}
} else if (_root.boy2.hit2.area.hittest(this)) {
with (_parent) {
gotoAndStop(8);
}
} else if (_root.boy2.hit3.area.hittest(this)) {
with (_parent) {
gotoAndStop(9);
}
}
}
Instance of Symbol 80 MovieClip in Symbol 108 MovieClip [boy1] Frame 1
onClipEvent (enterFrame) {
if (((Key.isDown(_root.boy1rightkey) or Key.isDown(_root:boy1leftkey)) or Key.isDown(_root.boy1downkey)) or Key.isDown(_root.boy1upkey)) {
with (_parent) {
gotoAndStop(2);
}
}
if (Key.isDown(_root:boy1hitkey1)) {
with (_parent) {
gotoAndStop(3);
}
} else if (Key.isDown(_root:boy1hitkey2)) {
with (_parent) {
gotoAndStop(4);
}
} else if (Key.isDown(_root:boy1hitkey3)) {
with (_parent) {
gotoAndStop(5);
}
} else if (Key.isDown(_root:boy1fangshou)) {
with (_parent) {
gotoAndStop(6);
}
}
}
Instance of Symbol 80 MovieClip in Symbol 108 MovieClip [boy1] Frame 1
onClipEvent (enterFrame) {
_parent.swapDepths(_parent._y * 1000);
if (_root.boy1._x < _root.boy2._x) {
setProperty(_parent, _xscale , 16.5);
} else if (_root.boy1._x > _root.boy2._x) {
setProperty(_parent, _xscale , -16.5);
}
}
Instance of Symbol 80 MovieClip in Symbol 108 MovieClip [boy1] Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(_root:boy1hitkey1)) {
with (_parent) {
gotoAndStop(3);
}
} else if (Key.isDown(_root:boy1hitkey2)) {
with (_parent) {
gotoAndStop(4);
}
} else if (Key.isDown(_root:boy1hitkey3)) {
with (_parent) {
gotoAndStop(5);
}
} else if (Key.isDown(_root:boy1fangshou)) {
with (_parent) {
gotoAndStop(6);
}
}
if (Key.isDown(_root:boy1rightkey)) {
if (_parent._x < _root.Xmax) {
setProperty(_parent, _x , getProperty(_parent, _x) + _root.boy1xspeed);
}
} else if (Key.isDown(_root:boy1leftkey)) {
if (_parent._x > _root.Xmin) {
setProperty(_parent, _x , getProperty(_parent, _x) - _root.boy1xspeed);
}
}
if (Key.isDown(_root:boy1downkey)) {
if (_parent._y < _root.Ymax) {
setProperty(_parent, _y , getProperty(_parent, _y) + _root.boy1yspeed);
}
} else if (Key.isDown(_root:boy1upkey)) {
if (_parent._y > _root.Ymin) {
setProperty(_parent, _y , getProperty(_parent, _y) - _root.boy1yspeed);
}
}
if (((Key.isDown(_root:boy1rightkey) or Key.isDown(_root:boy1leftkey)) or Key.isDown(_root:boy1downkey)) or Key.isDown(_root:boy1upkey)) {
} else {
with (_parent) {
gotoAndStop(1);
}
}
}
Instance of Symbol 17 MovieClip "area" in Symbol 108 MovieClip [boy1] Frame 8
onClipEvent (enterFrame) {
if (_root.boy2.hit1.area.hittest(this)) {
with (_parent) {
gotoAndStop(7);
}
} else if (_root.boy2.hit2.area.hittest(this)) {
with (_parent) {
gotoAndStop(8);
}
} else if (_root.boy2.hit3.area.hittest(this)) {
with (_parent) {
gotoAndStop(9);
}
}
}
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 100
stop();
Symbol 126 Button
on (release) {
getURL ("http://www.crazymonkeygames.com/", "_blank");
}
Symbol 131 Button
on (release) {
play();
}
Symbol 149 Button
on (release) {
play();
}
Symbol 158 MovieClip Frame 116
stop();
Symbol 166 Button
on (release) {
_root.wintimes = 0;
gotoAndStop (10);
}
Symbol 168 Button
on (release) {
gotoAndStop (15);
}
Symbol 170 Button
on (release) {
gotoAndStop (11);
}
Symbol 172 Button
on (release) {
getURL ("http://www.crazymonkeygames.com", "_blank");
}
Symbol 175 Button
on (release) {
Set("_root:boy2power1", 2);
Set("_root:boy2power2", 4);
Set("_root:boy2power3", 9);
gotoAndPlay (12);
}
Symbol 177 Button
on (release) {
Set("_root:boy2power1", 4);
Set("_root:boy2power2", 8);
Set("_root:boy2power3", 18);
gotoAndPlay (12);
}
Symbol 179 Button
on (release) {
Set("_root:boy2power1", 8);
Set("_root:boy2power2", 16);
Set("_root:boy2power3", 36);
gotoAndPlay (12);
}
Symbol 181 Button
on (release) {
gotoAndStop (9);
}
Symbol 221 MovieClip Frame 145
with (_parent) {
play();
}
_root.boy2dead = 0;
Symbol 226 Button
on (release) {
removeMovieClip("_root.boy1");
removeMovieClip("_root.boy2");
removeMovieClip("_root.q");
_root.gotoAndStop("start");
}
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 7
_root.wintimes++;
Symbol 227 MovieClip Frame 40
removeMovieClip("_root.boy1");
removeMovieClip("_root.boy2");
removeMovieClip("_root.q");
_parent.nextFrame();
gotoAndStop (1);
Symbol 227 MovieClip Frame 80
stop();
Symbol 239 MovieClip Frame 1
stop();
Instance of Symbol 238 MovieClip in Symbol 239 MovieClip Frame 100
onClipEvent (load) {
_root.boy1dead = 1;
_root.boy1.gotoAndStop(9);
}
Symbol 245 MovieClip Frame 1
stop();
Instance of Symbol 238 MovieClip in Symbol 245 MovieClip Frame 100
onClipEvent (load) {
_root.boy2dead = 1;
_root.boy2.gotoAndStop(9);
}
Symbol 250 Button
on (release) {
_parent.gotoAndStop("intro");
}
Symbol 253 MovieClip Frame 1
say = ("you win " + _root.wintimes) + " times.";
Symbol 253 MovieClip Frame 105
stop();