Frame 1
Set("/:number", "100");
Set("/:wind", random("55") - "27");
stop();
Symbol 9 MovieClip Frame 1
name = _name;
my_radius = _width / "2";
my_x = _x;
my_y = _y;
ymov = /:frwd;
xmov = /:sdwd;
if (my_y < "370") {
gun = "1";
}
if (_y < "25") {
Set("/:frwd", /:frwd + "20");
}
if ("25" < _y) {
if (_y < "100") {
Set("/:frwd", /:frwd + "10");
}
}
if ("100" < _y) {
if (_y < "150") {
Set("/:frwd", /:frwd + "5");
}
}
if ("150" < _y) {
if (_y < "225") {
Set("/:frwd", /:frwd + "2");
}
}
if ("225" < _y) {
if (_y < "320") {
Set("/:frwd", /:frwd + "1");
}
}
if ("320" < _y) {
if (_y < "325") {
if ("2" < frwd) {
Set("/:frwd", /:frwd + "1");
}
}
}
if (((gun == "1") and ("370" < _y)) or ("550" < _x)) {
Set("/:number", /:number + "1");
tellTarget ("/") {
gotoAndStop (1);
};
gotoAndPlay (3);
}
if ("0" < /:frwd) {
if ("370" < _y) {
Set("/:frwd", (/:frwd - (/:frwd * "2")) + (/:frwd / "3"));
}
}
if ((/:sdwd < "10") and ((-"10") < /:sdwd)) {
Set("/:frwd", /:frwd + "5");
}
if (((_y < "370") and ("1" < /:sdwd)) or ((/:sdwd < (-"1")) and (_y < "370"))) {
Set("/:sdwd", (/:sdwd - (/:sdwd / "10")) + (/:wind / "25"));
Set("/:frwd", /:frwd + "5");
}
if ((_x < "10") and (gun == "1")) {
Set("/:playerb", "1");
Set("/:number", /:number + "1");
tellTarget ("/") {
gotoAndStop(_currentframe - "1");
};
removeMovieClip("");
}
if ("550" < _x) {
Set("/:playerb", "1");
removeMovieClip("");
tellTarget ("/") {
gotoAndStop(_currentframe - "1");
};
}
_x = (my_x + /:sdwd);
_y = (my_y + /:frwd);
Symbol 9 MovieClip Frame 2
gotoAndPlay (1);
Symbol 9 MovieClip Frame 3
Set("/:playerb", "1");
Symbol 9 MovieClip Frame 7
stop();
removeMovieClip("");
Symbol 17 Button
on (press) {
startDrag ("", true, getProperty("/scale", _x) + "50", _y, getProperty("/scale", _x) - "50", _y);
}
on (release) {
stopDrag();
}
on (rollOver) {
Set("/:text", "Set cannon-power");
}
on (rollOut) {
Set("/:text", "");
}
Symbol 18 MovieClip Frame 1
Set("/:mainpower", int(_x - getProperty("/scale", _x)) + "100");
Symbol 20 Button
on (press) {
startDrag ("", true, getProperty("/scale2", _x) + "50", _y, getProperty("/scale2", _x) - "50", _y);
}
on (release) {
stopDrag();
}
on (rollOver) {
Set("/:text", "Set cannon-angle");
}
on (rollOut) {
Set("/:text", "");
}
Symbol 21 MovieClip Frame 1
Set("/:angel", int((_x - getProperty("/scale2", _x)) / "20") + "3");
Symbol 28 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 1
name = _name;
my_radius = _width / "2";
my_x = _x;
my_y = _y;
ymov = /:frwd;
xmov = /:sdwd;
if (my_y < "370") {
gun = "1";
}
if (_y < "25") {
Set("/:frwd", /:frwd + "20");
}
if ("25" < _y) {
if (_y < "100") {
Set("/:frwd", /:frwd + "10");
}
}
if ("100" < _y) {
if (_y < "150") {
Set("/:frwd", /:frwd + "5");
}
}
if ("150" < _y) {
if (_y < "225") {
Set("/:frwd", /:frwd + "2");
}
}
if ("225" < _y) {
if (_y < "320") {
Set("/:frwd", /:frwd + "1");
}
}
if ("320" < _y) {
if (_y < "325") {
if ("2" < frwd) {
Set("/:frwd", /:frwd + "1");
}
}
}
if (((gun == "1") and ("370" < _y)) or ("550" < _x)) {
Set("/:number", /:number + "1");
tellTarget ("/") {
gotoAndStop (1);
};
gotoAndPlay (3);
}
if ("0" < /:frwd) {
if ("370" < _y) {
Set("/:frwd", (/:frwd - (/:frwd * "2")) + (/:frwd / "3"));
}
}
if ((/:sdwd < "10") and ((-"10") < /:sdwd)) {
Set("/:frwd", /:frwd + "5");
}
if (((_y < "370") and ("1" < /:sdwd)) or ((/:sdwd < (-"1")) and (_y < "370"))) {
Set("/:sdwd", (/:sdwd - (/:sdwd / "10")) + (/:wind / "25"));
Set("/:frwd", /:frwd + "5");
}
if ((_x < "10") and (gun == "1")) {
Set("/:player1", "1");
Set("/:number", /:number + "1");
tellTarget ("/") {
gotoAndStop(_currentframe - "1");
};
removeMovieClip("");
}
if ("550" < _x) {
Set("/:player1", "1");
removeMovieClip("");
tellTarget ("/") {
gotoAndStop(_currentframe - "1");
};
}
_x = (my_x + /:sdwd);
_y = (my_y + /:frwd);
Symbol 29 MovieClip Frame 2
gotoAndPlay (1);
Symbol 29 MovieClip Frame 3
Set("/:player1", "1");
Symbol 29 MovieClip Frame 7
stop();
removeMovieClip("");
Symbol 32 Button
on (press) {
if ((/:builda == "1") and (/:player1 == "1")) {
Set("/:text", "You must build wall first!");
}
if (/:player1 == "0") {
Set("/:text", "It's not your turn");
}
if ((/:builda == "2") and (/:player1 == "1")) {
startDrag ("", true, "200", "380", "20", "380");
Set("/:player1", "0");
Set("/:playerb", "1");
}
}
on (release, releaseOutside) {
stopDrag();
Set("/:text", "");
}
on (rollOver) {
Set("/:text", "Click and drag to move cannon");
}
on (rollOut) {
Set("/:text", "");
}
Symbol 35 MovieClip Frame 1
_rotation = (/:angel * "15");
my_t = (_y - (_height / "2")) - "20";
my_b = (_y + (_height / "2")) + "20";
my_l = (_x - (_width / "2")) - "20";
my_r = (_x + (_width / "2")) + "20";
if ((((my_t < getProperty("/2", _y)) and (getProperty("/2", _y) < my_b)) and (my_l < getProperty("/2", _x))) and (getProperty("/2", _x) < my_r)) {
setProperty("/2", _x , "600");
gotoAndPlay (3);
}
Symbol 35 MovieClip Frame 2
gotoAndPlay (1);
Symbol 35 MovieClip Frame 3
Set("/:scoreb", /:scoreb + "5");
Symbol 37 MovieClip Frame 1
Set("/:getx", (/:mainpower / "5") * ("6" - /:angel));
if (/:brickleft == "0") {
setProperty("/quitbrick1", _visible , "0");
} else {
setProperty("/quitbrick1", _visible , "1");
}
if (/:bricklefta == "0") {
setProperty("/quitbrick2", _visible , "0");
} else {
setProperty("/quitbrick2", _visible , "1");
}
Set("/:getxb", (/:mainpowerb / "5") * ("6" - /:angelb));
if (/:player1 == "1") {
Set("/:player", "Player 1");
} else {
Set("/:player", "Player 2");
}
if (("0" < /:wind) and ("15" >= /:wind)) {
tellTarget ("/flag") {
gotoAndStop (4);
};
}
if ("15" < /:wind) {
tellTarget ("/flag") {
gotoAndStop (5);
};
}
if (/:wind == "0") {
tellTarget ("/flag") {
gotoAndStop (3);
};
}
if ((/:wind < "0") and (/:wind >= (-"15"))) {
tellTarget ("/flag") {
gotoAndStop (2);
};
}
if (/:wind < (-"15")) {
tellTarget ("/flag") {
gotoAndStop (1);
};
}
Symbol 37 MovieClip Frame 2
removeMovieClip("");
Symbol 39 MovieClip Frame 1
my_t = (_y - (_height / "2")) - "20";
my_b = (_y + (_height / "2")) + "20";
my_l = (_x - (_width / "2")) - "20";
my_r = (_x + (_width / "2")) + "20";
if ((((my_t < getProperty("/2", _y)) and (getProperty("/2", _y) < my_b)) and (my_l < getProperty("/2", _x))) and (getProperty("/2", _x) < my_r)) {
gotoAndPlay (3);
}
Symbol 39 MovieClip Frame 2
gotoAndPlay (1);
Symbol 39 MovieClip Frame 3
Set("/:scoreb", /:scoreb + "10");
Symbol 39 MovieClip Frame 8
stop();
Symbol 41 Button
on (release) {
stopDrag();
Set("/:tal", /:tal + "1");
}
Symbol 44 MovieClip Frame 1
my_t = (_y - (_height / "2")) - "20";
my_b = (_y + (_height / "2")) + "20";
my_l = (_x - (_width / "2")) - "20";
my_r = (_x + (_width / "2")) + "20";
if ((((my_t < getProperty("/1", _y)) and (getProperty("/1", _y) < my_b)) and (my_l < getProperty("/1", _x))) and (getProperty("/1", _x) < my_r)) {
setProperty("/1", _x , "600");
gotoAndPlay (3);
}
if ((((my_t < getProperty("/man", _y)) and (getProperty("/man", _y) < my_b)) and (my_l < getProperty("/man", _x))) and (getProperty("/man", _x) < my_r)) {
setProperty("/man", _x , getProperty("/man", _x) - "10");
}
Symbol 44 MovieClip Frame 2
gotoAndPlay(_currentframe - "1");
Symbol 44 MovieClip Frame 3
Set("/:scorea", /:scorea + "1");
Symbol 44 MovieClip Frame 5
stop();
Symbol 46 Button
on (press) {
if ((/:build == "1") and (/:playerb == "1")) {
Set("/:text", "You must build wall first!");
}
if (/:playerb == "0") {
Set("/:text", "It's not your turn");
}
if ((/:build == "2") and (/:playerb == "1")) {
startDrag ("", true, "350", "380", "530", "380");
Set("/:playerb", "0");
Set("/:player1", "1");
}
}
on (release, releaseOutside) {
stopDrag();
Set("/:text", "");
}
on (rollOver) {
Set("/:text", "Click and drag to move cannon");
}
on (rollOut) {
Set("/:text", "");
}
Symbol 50 MovieClip Frame 1
_rotation = (-(/:angelb * "15"));
my_t = (_y - (_height / "2")) - "20";
my_b = (_y + (_height / "2")) + "20";
my_l = (_x - (_width / "2")) - "20";
my_r = (_x + (_width / "2")) + "20";
if ((((my_t < getProperty("/1", _y)) and (getProperty("/1", _y) < my_b)) and (my_l < getProperty("/1", _x))) and (getProperty("/1", _x) < my_r)) {
setProperty("/1", _x , "600");
gotoAndPlay (3);
}
Symbol 50 MovieClip Frame 2
gotoAndPlay (1);
Symbol 50 MovieClip Frame 3
Set("/:scorea", /:scorea + "5");
Symbol 51 MovieClip Frame 1
my_t = (_y - (_height / "2")) - "20";
my_b = (_y + (_height / "2")) + "20";
my_l = (_x - (_width / "2")) - "20";
my_r = (_x + (_width / "2")) + "20";
if ((((my_t < getProperty("/2", _y)) and (getProperty("/2", _y) < my_b)) and (my_l < getProperty("/2", _x))) and (getProperty("/2", _x) < my_r)) {
setProperty("/2", _x , "600");
gotoAndPlay (3);
}
if ((((my_t < getProperty("/men", _y)) and (getProperty("/men", _y) < my_b)) and (my_l < getProperty("/men", _x))) and (getProperty("/men", _x) < my_r)) {
setProperty("/men", _x , getProperty("/men", _x) + "10");
}
Symbol 51 MovieClip Frame 2
gotoAndPlay(_currentframe - "1");
Symbol 51 MovieClip Frame 3
Set("/:scoreb", /:scoreb + "1");
Symbol 51 MovieClip Frame 5
stop();
Symbol 52 Button
on (release) {
if ((/:player1 == "1") and (/:builda == "1")) {
duplicateMovieClip ("/brick2", /:tal, /:tal);
Set("/:brickleft", /:brickleft - "1");
startDrag (/:tal, true, "0", "250", "250", "400");
Set("/:text", "Place brick by clicking it!");
Set("/:bricksa", /:bricksa + "1");
if ("21" < /:bricksa) {
Set("/:brickleft", "");
Set("/:builda", "2");
Set("/:text", "Player 2 place your bricks!");
Set("/:player1", "0");
Set("/:playerb", "2");
}
}
}
on (rollOver) {
if (/:builda == "1") {
Set("/:text", "Click here to produce brick");
}
}
on (press) {
Set("/:text", "");
}
Symbol 65 Button
on (press) {
startDrag ("", true, getProperty("/scale3", _x) + "50", _y, getProperty("/scale3", _x) - "50", _y);
}
on (release) {
stopDrag();
}
on (rollOver) {
Set("/:text", "Set cannon-power");
}
on (rollOut) {
Set("/:text", "");
}
Symbol 66 MovieClip Frame 1
Set("/:mainpowerb", int(_x - getProperty("/scale3", _x)) + "100");
Symbol 67 Button
on (press) {
startDrag ("", true, getProperty("/scale4", _x) + "50", _y, getProperty("/scale4", _x) - "50", _y);
}
on (release) {
stopDrag();
}
on (rollOver) {
Set("/:text", "Set cannon-angle");
}
on (rollOut) {
Set("/:text", "");
}
Symbol 68 MovieClip Frame 1
Set("/:angelb", int((_x - getProperty("/scale4", _x)) / "20") + "3");
Symbol 70 MovieClip Frame 1
my_t = (_y - (_height / "2")) - "20";
my_b = (_y + (_height / "2")) + "20";
my_l = (_x - (_width / "2")) - "20";
my_r = (_x + (_width / "2")) + "20";
if ((((my_t < getProperty("/2", _y)) and (getProperty("/2", _y) < my_b)) and (my_l < getProperty("/2", _x))) and (getProperty("/2", _x) < my_r)) {
gotoAndPlay (3);
}
Symbol 70 MovieClip Frame 2
gotoAndPlay (1);
Symbol 70 MovieClip Frame 3
setProperty("/ground", _x , getProperty("/ground", _x) - "5");
setProperty("/ground", _y , getProperty("/ground", _y) + "5");
Set("/:scoreb", /:scoreb + "15");
tellTarget ("/restart") {
gotoAndStop (2);
}
Symbol 70 MovieClip Frame 4
setProperty("/ground", _x , getProperty("/ground", _x) + "5");
setProperty("/ground", _y , getProperty("/ground", _y) - "5");
Symbol 70 MovieClip Frame 5
setProperty("/ground", _x , getProperty("/ground", _x) + "5");
setProperty("/ground", _y , getProperty("/ground", _y) - "5");
Symbol 70 MovieClip Frame 6
setProperty("/ground", _x , getProperty("/ground", _x) - "5");
setProperty("/ground", _y , getProperty("/ground", _y) + "5");
Symbol 70 MovieClip Frame 8
stop();
Set("/:playerb", "False");
Set("/:player1", "False");
Set("/:text", "Game over - Player 1 lost his King");
Symbol 72 MovieClip Frame 1
my_t = (_y - (_height / "2")) - "20";
my_b = (_y + (_height / "2")) + "20";
my_l = (_x - (_width / "2")) - "20";
my_r = (_x + (_width / "2")) + "20";
if ((((my_t < getProperty("/1", _y)) and (getProperty("/1", _y) < my_b)) and (my_l < getProperty("/1", _x))) and (getProperty("/1", _x) < my_r)) {
gotoAndPlay (3);
}
Symbol 72 MovieClip Frame 2
gotoAndPlay (1);
Symbol 72 MovieClip Frame 3
setProperty("/ground", _x , getProperty("/ground", _x) + "5");
setProperty("/ground", _y , getProperty("/ground", _y) + "5");
Set("/:scorea", /:scorea + "15");
tellTarget ("/restart") {
gotoAndStop (2);
}
Symbol 72 MovieClip Frame 4
setProperty("/ground", _x , getProperty("/ground", _x) - "5");
setProperty("/ground", _y , getProperty("/ground", _y) - "5");
Symbol 72 MovieClip Frame 5
setProperty("/ground", _x , getProperty("/ground", _x) - "5");
setProperty("/ground", _y , getProperty("/ground", _y) - "5");
Symbol 72 MovieClip Frame 6
setProperty("/ground", _x , getProperty("/ground", _x) + "5");
setProperty("/ground", _y , getProperty("/ground", _y) + "5");
Symbol 72 MovieClip Frame 8
stop();
Set("/:playerb", "False");
Set("/:player1", "False");
Set("/:text", "Game over - Player 2 lost his King");
Symbol 73 MovieClip Frame 1
my_t = (_y - (_height / "2")) - "20";
my_b = (_y + (_height / "2")) + "20";
my_l = (_x - (_width / "2")) - "20";
my_r = (_x + (_width / "2")) + "20";
if ((((my_t < getProperty("/1", _y)) and (getProperty("/1", _y) < my_b)) and (my_l < getProperty("/1", _x))) and (getProperty("/1", _x) < my_r)) {
gotoAndPlay (3);
}
Symbol 73 MovieClip Frame 2
gotoAndPlay (1);
Symbol 73 MovieClip Frame 3
Set("/:scorea", /:scorea + "10");
Symbol 73 MovieClip Frame 8
stop();
Symbol 78 Button
on (release) {
Set("/:player1", "1");
Set("/:playerb", "0");
Set("/:build", "1");
Set("/:builda", "1");
Set("/:bricks", "1");
Set("/:bricksa", "12");
Set("/:brickleft", "10");
Set("/:bricklefta", "10");
Set("/:text", "");
Set("/:soldiers", "False");
Set("/:soldier", "False");
tellTarget ("/b1") {
gotoAndPlay (1);
};
tellTarget ("/b2") {
gotoAndPlay (1);
};
tellTarget ("/b3") {
gotoAndPlay (1);
};
tellTarget ("/b4") {
gotoAndPlay (1);
};
tellTarget ("/b5") {
gotoAndPlay (1);
};
tellTarget ("/b6") {
gotoAndPlay (1);
};
tellTarget ("/k1") {
gotoAndPlay (1);
};
tellTarget ("/dead") {
gotoAndPlay (1);
};
tellTarget ("/k2") {
gotoAndPlay (1);
};
tellTarget ("/man") {
gotoAndPlay (1);
};
setProperty("/man", _x , "150");
setProperty("/cannon", _x , "20");
setProperty("/cannonb", _x , "530");
tellTarget ("/men") {
gotoAndPlay (1);
};
setProperty("/men", _x , "400");
gotoAndStop (1);
}
Symbol 81 Button
on (release) {
Set("/:text", "");
gotoAndStop (4);
}
Symbol 83 Button
on (release) {
gotoAndStop (3);
}
Symbol 85 MovieClip Frame 1
gotoAndStop (4);
Symbol 85 MovieClip Frame 2
Set("/:player1", "0");
Set("/:playerb", "0");
Symbol 85 MovieClip Frame 3
Set("/:text", "This is a turn-based 2-player Game First you have to build a wall, protecting your goods and your king. You build the wall by clicking the \"Brick-Icon\" - You have 10 bricks each. To firer Cannon: Player 1 press:\"Space-bar\" Player 2 press:\"Up\" Mind the wind-changes! - You can move your cannon when it's your turn!");
Symbol 86 Button
on (release) {
if ((/:build == "1") and (playerb == "1")) {
Set("/:text", "It's not your turn");
}
if (/:playerb == "2") {
duplicateMovieClip ("/brick", /:tal, /:tal);
Set("/:bricklefta", /:bricklefta - "1");
Set("/:text", "Click brick to place it!");
startDrag (/:tal, true, "550", "250", "300", "400");
Set("/:bricks", /:bricks + "1");
if ("10" < /:bricks) {
Set("/:bricklefta", "");
Set("/:build", "2");
Set("/:player1", "1");
Set("/:text", "Player 1 can now fire cannon!");
Set("/:playerb", "0");
}
}
}
on (rollOver) {
if (/:build == "1") {
Set("/:text", "Click here to produce brick");
}
}
on (press) {
Set("/:text", "");
}
Symbol 88 Button
on (release, keyPress "q") {
Set("/:builda", "2");
Set("/:brickleft", "");
Set("/:text", "Player 2 place your bricks!");
Set("/:player1", "0");
Set("/:playerb", "2");
}
on (rollOver) {
Set("/:text", "Click here to quit building wall (q)");
}
on (rollOut) {
Set("/:text", "");
}
Symbol 90 Button
on (release, keyPress "<Delete>") {
if (/:playerb == "2") {
Set("/:build", "2");
Set("/:bricklefta", "");
Set("/:player1", "1");
Set("/:text", "Player 1 can now fire cannon!");
Set("/:playerb", "0");
} else {
Set("/:text", "It's not your turn");
}
}
on (rollOver) {
Set("/:text", "Click here to quit building wall (Delete)");
}
on (rollOut) {
Set("/:text", "");
}
Symbol 97 MovieClip Frame 1
my_t = (_y - (_height / "2")) - "20";
my_b = (_y + (_height / "2")) + "20";
my_l = (_x - (_width / "2")) - "20";
my_r = (_x + (_width / "2")) + "20";
if ((((my_t < getProperty("/cannonb", _y)) and (getProperty("/cannonb", _y) < my_b)) and (my_l < getProperty("/cannonb", _x))) and (getProperty("/cannonb", _x) < my_r)) {
setProperty("/cannonb", _x , getProperty("/cannonb", _x) + "10");
tellTarget ("/cannonb") {
gotoAndPlay (3);
};
}
if ((((my_t < getProperty("/k2", _y)) and (getProperty("/k2", _y) < my_b)) and (my_l < getProperty("/k2", _x))) and (getProperty("/k2", _x) < my_r)) {
tellTarget ("/k2") {
gotoAndPlay (3);
};
setProperty("/k2", _name , "dead");
}
if ((((my_t < getProperty("/2", _y)) and (getProperty("/2", _y) < my_b)) and (my_l < getProperty("/2", _x))) and (getProperty("/2", _x) < my_r)) {
gotoAndPlay (3);
}
Symbol 97 MovieClip Frame 2
gotoAndPlay(_currentframe - "1");
Symbol 97 MovieClip Frame 3
Set("/:scoreb", /:scoreb + "1");
Set("/:soldier", "1");
Symbol 97 MovieClip Frame 5
stop();
Symbol 101 Button
on (release, keyPress "m") {
if ((/:builda == "1") and (/:player1 == "1")) {
Set("/:text", "You must build wall first!");
}
if (/:player1 == "0") {
Set("/:text", "It's not your turn");
}
if (/:soldier == "1") {
Set("/:text", "Your soldiers have died");
}
if (((/:builda == "2") and (/:player1 == "1")) and (/:soldier == "0")) {
Set("/:text", "Moving soldiers");
setProperty("/man", _x , getProperty("/man", _x) + "50");
Set("/:player1", "0");
Set("/:playerb", "1");
}
}
on (rollOver) {
Set("/:text", "Moves soldiers one step forward (m)");
}
on (rollOut) {
Set("/:text", "");
}
Symbol 104 MovieClip Frame 1
my_t = (_y - (_height / "2")) - "20";
my_b = (_y + (_height / "2")) + "20";
my_l = (_x - (_width / "2")) - "20";
my_r = (_x + (_width / "2")) + "20";
if ((((my_t < getProperty("/cannon", _y)) and (getProperty("/cannon", _y) < my_b)) and (my_l < getProperty("/cannon", _x))) and (getProperty("/cannon", _x) < my_r)) {
setProperty("/cannon", _x , getProperty("/cannon", _x) - "10");
tellTarget ("/cannon") {
gotoAndPlay (3);
};
}
if ((((my_t < getProperty("/k1", _y)) and (getProperty("/k1", _y) < my_b)) and (my_l < getProperty("/k1", _x))) and (getProperty("/k1", _x) < my_r)) {
tellTarget ("/k1") {
gotoAndPlay (3);
};
setProperty("/k1", _name , "dead");
}
if ((((my_t < getProperty("/1", _y)) and (getProperty("/1", _y) < my_b)) and (my_l < getProperty("/1", _x))) and (getProperty("/1", _x) < my_r)) {
gotoAndPlay (3);
}
Symbol 104 MovieClip Frame 2
gotoAndPlay(_currentframe - "1");
Symbol 104 MovieClip Frame 3
Set("/:scorea", /:scorea + "1");
Set("/:soldiers", "1");
Symbol 104 MovieClip Frame 5
stop();
Symbol 107 Button
on (release, keyPress "<Left>") {
if ((/:build == "1") and (/:playerb == "1")) {
Set("/:text", "You must build wall first!");
}
if ((/:build == "1") and (/:playerb == "2")) {
Set("/:text", "You must build wall first!");
}
if (/:player1 == "1") {
Set("/:text", "It's not your turn");
}
if (/:soldiers == "1") {
Set("/:text", "Your soldiers have died");
}
if (((/:build == "2") and (/:playerb == "1")) and (/:soldiers == "0")) {
Set("/:text", "Moving soldiers");
setProperty("/men", _x , getProperty("/men", _x) - "50");
Set("/:playerb", "0");
Set("/:player1", "1");
}
}
on (rollOver) {
Set("/:text", "Moves soldiers one step forward (Left)");
}
on (rollOut) {
Set("/:text", "");
}
Symbol 110 Button
on (release, keyPress "<Space>") {
if ((/:builda == "1") and (/:player1 == "1")) {
Set("/:text", "You must build wall first!");
}
if (/:player1 == "0") {
Set("/:text", "It's not your turn");
}
if ((/:player1 == "1") and (/:builda == "2")) {
Set("/:gety", (/:mainpower / "5") * (/:angel - "1"));
Set("/:text", "");
duplicateMovieClip ("/ball", "1", /:number + "1");
setProperty("/1", _x , getProperty("/cannon", _x));
setProperty("/1", _y , getProperty("/cannon", _y));
Set("/:frwd", /:getx);
Set("/:sdwd", /:gety);
Set("/:player1", "0");
gotoAndStop (2);
}
}
on (rollOver) {
Set("/:text", "Fire cannon (Space-bar)");
}
on (rollOut) {
Set("/:text", "");
}
Symbol 111 Button
on (release, keyPress "<Up>") {
if (/:playerb == "0") {
Set("/:text", "It's not your turn");
}
Set("/:getyb", (-(/:mainpowerb / "5")) * (/:angelb - "1"));
if ((/:player1 == "0") and (/:build == "1")) {
Set("/:text", "You must build a wall!");
}
if ((/:playerb == "1") and (/:build == "2")) {
Set("/:text", "");
duplicateMovieClip ("/ballb", "2", /:number + "1");
setProperty("/2", _x , getProperty("/cannonb", _x));
setProperty("/2", _y , getProperty("/cannonb", _y));
Set("/:frwd", /:getxb);
Set("/:sdwd", /:getyb);
Set("/:playerb", "0");
gotoAndStop (2);
}
}
on (rollOver) {
Set("/:text", "Fire cannon (Up)");
}
on (rollOut) {
Set("/:text", "");
}