Frame 1
all = _root.getBytesTotal();
Frame 2
loading = _root.getBytesLoaded();
bar._xscale = int((loading / all) * 100);
aa = int((loading / all) * 100);
ifFrameLoaded (119) {
gotoAndPlay (5);
}
Frame 3
gotoAndPlay (2);
Frame 45
stop();
Frame 51
fscommand ("allowscale", "false");
ballanum = 5000;
depth1 = 1000;
ballspeed = 25;
badspeed = 2;
powerdown1 = 2;
stage = 1;
lifecheck = 6;
out = 10;
badnum = 2;
goodnum = 2;
w = 550 - man1._width;
h = 300 - man1._height;
theangle = 1.18682389135614;
theangle2 = 0.453785605518526;
powerdown = new Array();
change = new Array(1, 1, 2, 2, 3, 3, 4, 4, 4, 4);
badpow = new Array(1, 1, 2, 2, 3, 3, 4, 4, 4, 4);
badposx = new Array(275, 192, 74, 200, 135, 33);
ballbad = new Array();
balla = new Array();
badposy = new Array(70, 136, 179, 56, 94, 109);
goodposx = new Array(450, 356, 262);
goodposy = new Array(130, 164, 247);
jjdifx = new Array();
jjdify = new Array();
jj2difx = new Array();
jj2dify = new Array();
badjj = new Array();
goodjj = new Array();
bad._visible = false;
man._visible = false;
powerdown = new Array(10, 20);
Frame 52
bad._visible = false;
man._visible = false;
level = "level" + stage;
removeMovieClip("end1");
i = 0;
while (badnum >= i) {
depth1++;
duplicateMovieClip ("bad", "bad" + i, depth1);
badjj[i] = eval ("bad" + i);
badjj[i]._visible = true;
badjj[i]._x = random(400);
badjj[i]._y = -20;
i++;
}
i2 = 0;
while (goodnum >= i2) {
depth1++;
duplicateMovieClip ("man", "man" + i2, depth1);
goodjj[i2] = eval ("man" + i2);
goodjj[i2]._visible = true;
goodjj[i2]._x = random(400);
goodjj[i2]._y = 320;
i2++;
}
Frame 56
j = 0;
while (badnum >= j) {
jjdifx[j] = badposx[j] - badjj[j]._x;
jjdify[j] = badposy[j] - badjj[j]._y;
badjj[j]._x = badjj[j]._x + (jjdifx[j] / out);
badjj[j]._y = badjj[j]._y + (jjdify[j] / out);
ax = jjdifx[j];
ay = jjdify[j];
ddd = Math.abs(ax + ay);
j++;
}
j2 = 0;
while (goodnum >= j2) {
jj2difx[j2] = goodposx[j2] - goodjj[j2]._x;
jj2dify[j2] = goodposy[j2] - goodjj[j2]._y;
goodjj[j2]._x = goodjj[j2]._x + (jj2difx[j2] / out);
goodjj[j2]._y = goodjj[j2]._y + (jj2dify[j2] / out);
ddd2 = Math.abs(jj2difx[j2] + jj2dify[j2]);
j2++;
}
if ((5 >= ddd) and (5 >= ddd2)) {
qq = 0;
while (badnum >= qq) {
badjj[qq].move;
with (badjj[qq].dir) {
gotoAndPlay(2);
}
qq++;
}
qq2 = 0;
while (goodnum >= qq2) {
with (goodjj[qq2]) {
gotoAndStop(2);
}
qq2++;
}
gotoAndStop (60);
}
Frame 57
gotoAndPlay (56);
Frame 60
er = powerdown[_root.ballanum];
stop();
Instance of Symbol 159 MovieClip in Frame 60
onClipEvent (enterFrame) {
_parent.badlifecheck = ((((_root.badjj[0].life + _root.badjj[5].life) + _root.badjj[1].life) + _root.badjj[2].life) + _root.badjj[3].life) + _root.badjj[4].life;
}
Frame 70
gotoAndPlay (52);
Frame 87
stage = stage + 1;
badnum++;
he = 0;
while ((_root.badnum + 1) >= he) {
h2 = eval ("_root.bad" + he);
removeMovieClip(h2);
he++;
}
removeMovieClip("_root.man1");
removeMovieClip("_root.man2");
removeMovieClip("_root.man0");
ballall = 5000;
while (ballall < _root.ballanum) {
ballall2 = eval ("_root.ballbad" + ballall);
ballall3 = eval ("_root.ball" + ballall);
removeMovieClip(ballall2);
removeMovieClip(ballall3);
ballall++;
}
_root.depth1 = 1000;
_root.ballspeed = 25;
_root.ballanum = 5000;
_root.badspeed = 2;
_root.powerdown1 = 2;
if (4 < stage) {
gotoAndPlay (113);
} else {
gotoAndPlay (52);
}
Frame 100
duplicateMovieClip ("end", "end1", 8000);
end1._x = 263;
end1._y = 120;
stop();
Frame 113
he = 0;
while ((_root.badnum + 1) >= he) {
h2 = eval ("_root.bad" + he);
removeMovieClip(h2);
he++;
}
removeMovieClip("_root.man1");
removeMovieClip("_root.man2");
removeMovieClip("_root.man0");
ballall = 5000;
while (ballall < _root.ballanum) {
ballall2 = eval ("_root.ballbad" + ballall);
ballall3 = eval ("_root.ball" + ballall);
removeMovieClip(ballall2);
removeMovieClip(ballall3);
ballall++;
}
Frame 119
stop();
Symbol 20 MovieClip Frame 21
stop();
Symbol 35 Button
on (release) {
tellTarget ("_root") {
gotoAndPlay ("1");
};
}
Symbol 59 MovieClip Frame 1
Symbol 59 MovieClip Frame 2
stop();
Symbol 59 MovieClip Frame 3
stop();
Symbol 59 MovieClip Frame 4
duplicateMovieClip ("_root.ballgood", "ball" + _root.ballanum, _root.ballanum);
_root.balla[_root.ballanum] = eval ("_root.ball" + _root.ballanum);
_root.balla[_root.ballanum]._x = _parent._x;
_root.balla[_root.ballanum]._y = _parent._y - 10;
_root.balla[_root.ballanum].powerdown = _parent.powerdown;
_root.ballanum++;
Symbol 59 MovieClip Frame 8
gotoAndStop (2);
Symbol 61 Button
on (press) {
tellTarget ("move") {
gotoAndPlay (2);
};
tellTarget ("bar") {
gotoAndPlay (2);
};
tellTarget ("power") {
gotoAndPlay ("2");
};
_root.depth1 = _root.depth1 + 1;
this.swapDepths(_root.depth1);
}
on (release, releaseOutside) {
tellTarget ("bar") {
gotoAndPlay ("back");
};
tellTarget ("move") {
gotoAndStop (1);
};
tellTarget ("man") {
gotoAndPlay ("du");
};
tellTarget ("power") {
gotoAndStop (1);
};
}
on (rollOver) {
tellTarget ("man") {
gotoAndStop ("up");
};
}
on (rollOut) {
tellTarget ("man") {
gotoAndStop ("down");
};
}
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 2
_parent._x = _root._xmouse;
_parent._y = _root._ymouse;
if (_parent.topx >= _parent._x) {
_parent._x = _parent.topx;
}
if (550 < _parent._x) {
_parent._x = 550;
}
if (_parent._x < 0) {
_parent._x = 0;
}
if (300 < _parent._y) {
_parent._y = 300;
}
if (_parent._y < 0) {
_parent._y = 0;
}
Symbol 62 MovieClip Frame 3
gotoAndPlay (2);
Symbol 70 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 12
stop();
Symbol 70 MovieClip Frame 28
gotoAndStop (1);
Symbol 71 MovieClip Frame 1
powerdown1 = 2;
stop();
Symbol 71 MovieClip Frame 2
powerdown1 = powerdown1 + 4;
_parent.powerdown = 50 / powerdown1;
if (0.1 >= _parent.powerdown) {
_parent.powerdown = 0;
}
Symbol 71 MovieClip Frame 3
gotoAndPlay (2);
Symbol 93 MovieClip Frame 19
gotoAndPlay (1);
Symbol 102 MovieClip Frame 19
gotoAndPlay (1);
Symbol 104 MovieClip Frame 1
stop();
i = 1;
name = _name;
life = 2;
Symbol 104 MovieClip Frame 2
stop();
Instance of Symbol 59 MovieClip "man" in Symbol 104 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent.man1x = _parent._x;
_parent.man1y = 230 - _parent._y;
_parent.hyp = _parent.man1x / Math.sin(_root.theangle);
_parent.hyp1 = _parent.man1y / Math.cos(_root.theangle);
_parent.topy = int(250 - (Math.cos(_root.theangle) * _parent.hyp));
_parent.topx = int(Math.sin(_root.theangle) * _parent.hyp1);
updateAfterEvent();
}
Symbol 104 MovieClip Frame 5
life = life - 1;
if (life < 1) {
gotoAndPlay (15);
}
Symbol 104 MovieClip Frame 14
gotoAndStop (2);
Symbol 104 MovieClip Frame 21
_root.lifecheck = (_root.man1.life + _root.man2.life) + _root.man0.life;
if (0 >= _root.lifecheck) {
tellTarget ("_root") {
gotoAndPlay ("end");
};
}
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 2
duplicateMovieClip ("_root.ballbad", "ballbad" + _root.ballanum, _root.ballanum);
_root.ballbad[_root.ballanum] = eval ("_root.ballbad" + _root.ballanum);
_root.ballbad[_root.ballanum]._x = _parent._x;
_root.ballbad[_root.ballanum]._y = _parent._y - 60;
_root.ballanum++;
Symbol 126 MovieClip Frame 1
dirx = (diry = 1);
tx = dirx;
ty = diry;
stop();
Symbol 126 MovieClip Frame 2
cc = random(_root.change.length);
dd = _root.change[cc];
if (dd == 1) {
tx = -tx;
call("move");
} else if (dd == 2) {
call("move");
ty = -ty;
} else if (dd == 3) {
ty = -ty;
tx = -tx;
call("move");
} else if (dd == 4) {
tx = tx;
ty = ty;
call("stop");
}
Symbol 126 MovieClip Frame 12
gotoAndPlay (2);
Symbol 126 MovieClip Frame 16
with (_parent.move) {
gotoAndPlay(2);
}
Symbol 126 MovieClip Frame 21
with (_parent.move) {
gotoAndStop(1);
}
with (_parent.bad) {
gotoAndPlay("du");
}
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 2
_parent._x = _parent._x + (_root.badspeed * _parent.dir.tx);
_parent._y = _parent._y + (_root.badspeed * _parent.dir.ty);
if (_parent._x < 10) {
_parent._x = 12;
_parent.dir.ty = -_parent.dir.ty;
_parent.dir.tx = -_parent.dir.tx;
}
if (_parent.topx < _parent._x) {
_parent._x = _parent.topx;
_parent.dir.ty = -1;
}
if (480 < _parent._x) {
_parent._x = 480;
_parent.dir.tx = -1;
}
if (_parent._y < 50) {
_parent._y = 50;
_parent.dir.ty = 1;
}
l = 0;
while (_root.badnum >= l) {
ll = eval ("_root.bad" + l);
if (((ll._y < _parent._y) and _parent.bad.hitTest(ll.bad)) and (_parent._x < ll._x)) {
_root.depth1 = _root.depth1 + _root.badnum;
_parent._x = _parent._x - 10;
ll._x = ll._x + 10;
_parent.swapDepths(_root.depth1);
}
l++;
}
Symbol 127 MovieClip Frame 3
gotoAndPlay (2);
Symbol 139 MovieClip Frame 1
life = 2;
name = _name;
Instance of Symbol 125 MovieClip "bad" in Symbol 139 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.bady = 250 - _parent._y;
_parent.hyp = _parent.bady / Math.sin(_root.theangle2);
_parent.topx = int(Math.cos(_root.theangle2) * _parent.hyp);
updateAfterEvent();
}
Symbol 139 MovieClip Frame 2
stop();
Symbol 139 MovieClip Frame 3
with (move) {
gotoAndPlay(2);
}
stop();
Symbol 139 MovieClip Frame 4
life = life - 1;
if (life < 1) {
gotoAndPlay (14);
}
Symbol 139 MovieClip Frame 12
gotoAndStop (3);
Symbol 139 MovieClip Frame 21
if (0 >= _root.badlifecheck) {
tellTarget ("_root") {
gotoAndPlay ("nextstage");
};
}
stop();
Symbol 142 MovieClip Frame 28
stop();
Symbol 154 MovieClip Frame 1
px = _x;
py = _y;
ballspeed = _root.ballspeed;
power = -60;
radian = -1.0471975511966;
Symbol 154 MovieClip Frame 2
px2 = Math.abs(px - _x);
py2 = Math.abs(py - _y);
cc = py2 / px2;
q = _parent.powerdown[1];
power = power - powerdown;
radian2 = (Math.PI/180) * power;
ballspeed = ballspeed * 1;
_x = (_x + (ballspeed * Math.sin(radian)));
_y = (_y - (ballspeed * Math.cos(radian2)));
shadow._y = shadow._y - (cc * 4.5);
if ((0.3 >= cc) and (0 < cc)) {
gotoAndPlay (9);
}
g = 0;
while (_root.badnum >= g) {
if (water.hitTest(_root.badjj[g].heart)) {
with (_root.badjj[g]) {
gotoAndPlay("hit");
}
gotoAndPlay (25);
}
g++;
}
Symbol 154 MovieClip Frame 3
gotoAndPlay (2);
Symbol 154 MovieClip Frame 21
removeMovieClip("");
Symbol 154 MovieClip Frame 31
removeMovieClip("");
Symbol 158 MovieClip Frame 1
px = _x;
py = _y;
ballspeed = _root.ballspeed;
power = 60;
radian = 1.0471975511966;
ran = random(10);
if (_root.badpow[ran] == 1) {
powerdown = 8;
} else if (_root.badpow[ran] == 2) {
powerdown = 4;
} else if (_root.badpow[ran] == 3) {
powerdown = 2;
} else if (_root.badpow[ran] == 4) {
powerdown = 1;
}
Symbol 158 MovieClip Frame 2
px2 = Math.abs(px - _x);
py2 = Math.abs(py - _y);
cc = py2 / px2;
power = power - powerdown;
radian2 = (Math.PI/180) * power;
ballspeed = ballspeed * 1;
_x = (_x + (ballspeed * Math.sin(radian)));
_y = (_y + (ballspeed * Math.cos(radian2)));
shadow._y = shadow._y - (cc * 1.5);
if (0.8 < cc) {
gotoAndPlay (9);
}
j = 0;
while (2 >= j) {
jj = eval ("_root.man" + j);
if (water.hitTest(jj.heart)) {
gotoAndPlay (26);
tellTarget (jj) {
gotoAndPlay ("hit");
};
}
j++;
}
if (330 < _y) {
gotoAndStop (40);
}
Symbol 158 MovieClip Frame 3
gotoAndPlay (2);
Symbol 158 MovieClip Frame 20
removeMovieClip("");
Symbol 158 MovieClip Frame 32
removeMovieClip("");
Symbol 162 MovieClip Frame 23
stop();
Symbol 167 Button
on (release) {
he = 0;
while ((_root.badnum + 1) >= he) {
h2 = eval ("_root.bad" + he);
removeMovieClip(h2);
he++;
}
removeMovieClip("_root.man1");
removeMovieClip("_root.man2");
removeMovieClip("_root.man0");
ballall = 5000;
while (ballall < _root.ballanum) {
ballall2 = eval ("_root.ballbad" + ballall);
ballall3 = eval ("_root.ball" + ballall);
removeMovieClip(ballall2);
removeMovieClip(ballall3);
ballall++;
}
_root.depth1 = 1000;
_root.ballspeed = 25;
_root.badspeed = 2;
_root.ballanum = 1;
_root.ballbadnum = 1;
_root.powerdown1 = 2;
_root.badnum = 2;
_root.stage = 1;
with (_root) {
gotoAndPlay("replay");
}
}
Symbol 174 MovieClip Frame 8
stop();