Frame 1
ifFrameLoaded (3) {
gotoAndPlay (3);
}
Frame 2
gotoAndPlay (1);
Frame 27
ifFrameLoaded (143) {
gotoAndPlay (30);
}
Frame 29
gotoAndPlay (3);
Frame 128
gotoAndPlay (95);
Frame 129
stop();
tellTarget ("/helpcannon") {
gotoAndStop (5);
};
tellTarget ("/helpstrength") {
gotoAndStop (5);
};
stop();
Frame 134
bouncemode = "OFF";
Frame 136
duplicateMovieClip ("/cannonoriginal", "cannon", "2");
setProperty("/cannon", _x , "100");
setProperty("/cannon", _y , "250");
Set("control:strength", "20");
tellTarget ("/strengthmeter") {
gotoAndStop (4);
};
Set("control:angle", "45");
call("control:angle");
tellTarget ("/target1original") {
gotoAndStop (1);
};
tellTarget ("/target2original") {
gotoAndStop (1);
};
tellTarget ("/target3original") {
gotoAndStop (1);
};
tellTarget ("/target4original") {
gotoAndStop (1);
};
tellTarget ("/target5original") {
gotoAndStop (1);
};
tellTarget ("/explodeoriginal") {
gotoAndStop (1);
};
Set("control:shoot", "0");
points = "0";
Set("control:castlestrength", "100");
princesslives = "3";
ballcount = "0";
ballsleft = "15";
call("/ballsleft:ballsleftupdate");
Set("control:target1replacevalue", "15");
Set("control:target2replacevalue", "20");
Set("control:target3replacevalue", "50");
Set("control:target4replacevalue", "40");
Set("control:target5replacevalue", "150");
Set("control:target1ready", "1");
Frame 137
stop();
Frame 138
removeMovieClip("/ball");
removeMovieClip("/target1");
removeMovieClip("/target2");
removeMovieClip("/target3");
removeMovieClip("/target4");
removeMovieClip("/target5");
stop();
Frame 139
removeMovieClip("/ball");
removeMovieClip("/target1");
removeMovieClip("/target2");
removeMovieClip("/target3");
removeMovieClip("/target4");
removeMovieClip("/target5");
tellTarget ("/cannon") {
gotoAndPlay ("explode");
};
stop();
Frame 140
removeMovieClip("/ball");
removeMovieClip("/target1");
removeMovieClip("/target2");
removeMovieClip("/target3");
removeMovieClip("/target4");
removeMovieClip("/target5");
stop();
Symbol 31 Button
on (release) {
gotoAndPlay (134);
}
Symbol 36 Button
on (release) {
ifFrameLoaded (129) {
gotoAndStop (129);
}
}
Symbol 45 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 5
stop();
Symbol 47 Button
on (release, keyPress "<Down>") {
tellTarget ("/helpstrength") {
prevFrame();
}
}
Symbol 48 Button
on (release, keyPress "<Up>") {
tellTarget ("/helpstrength") {
nextFrame();
}
}
Symbol 49 Button
on (release, keyPress "<Right>") {
tellTarget ("/helpcannon") {
prevFrame();
}
}
Symbol 50 Button
on (release, keyPress "<Left>") {
tellTarget ("/helpcannon") {
nextFrame();
}
}
Symbol 69 Button
on (release) {
nextFrame();
}
Symbol 72 Button
on (release) {
gotoAndPlay (110);
}
Symbol 80 MovieClip Frame 15
gotoAndPlay (1);
Symbol 80 MovieClip Frame 20
Set("/:princesslives", /:princesslives - "1");
Symbol 80 MovieClip Frame 32
if (/:princesslives == "0") {
tellTarget ("../") {
gotoAndStop ("youlose");
};
}
Symbol 80 MovieClip Frame 39
if (/:princesslives == "0") {
gotoAndPlay (33);
}
Symbol 80 MovieClip Frame 75
gotoAndPlay (1);
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 5
balltimerint = int(/:balltimer);
Symbol 87 MovieClip Frame 9
gotoAndPlay (5);
Symbol 88 MovieClip Frame 1
stop();
Symbol 91 Button
on (release, keyPress "z") {
tellTarget ("/helpcannonfire") {
play();
}
}
Symbol 95 Button
on (release) {
prevFrame();
}
Symbol 111 Button
on (release) {
getURL ("mailto:help@zanyfun.com", "_blank");
}
Symbol 122 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 3
gotoAndStop (1);
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 2
ang = input;
psi = ang / "57.29577951";
sq = "1";
fact = "1";
sign = "1";
cos = "1";
i = "2";
while (i < "100") {
fact = (fact * i) * (i - "1");
sq = (sq * psi) * psi;
sign = (-"1") * sign;
cos = cos + ((sign * sq) / fact);
i = i + "2";
}
output = cos;
stop();
Symbol 128 MovieClip Frame 3
ang = input;
psi = ang / "57.29577951";
sq = psi;
fact = "1";
sign = "1";
sin = psi;
i = "3";
while (i < "100") {
fact = (fact * i) * (i - "1");
sq = (sq * psi) * psi;
sign = (-"1") * sign;
sin = sin + ((sign * sq) / fact);
i = i + "2";
}
output = sin;
stop();
Symbol 128 MovieClip Frame 4
ang = input;
psi = ang;
pi = "3.1415926536";
if ("1" >= (psi * psi)) {
sq = psi;
fact = "1";
sign = "1";
atan = psi;
i = "3";
while (i < "200") {
fact = i;
sq = (sq * psi) * psi;
sign = (-"1") * sign;
atan = atan + ((sign * sq) / fact);
i = i + "2";
}
output = atan * "57.29577951";
}
if ("1" < psi) {
sq = psi;
fact = "1";
sign = -"1";
atan = (pi / "2") - ("1" / psi);
i = "3";
while (i < "200") {
fact = i;
sq = (sq * psi) * psi;
sign = (-"1") * sign;
atan = atan + ((sign / sq) / fact);
i = i + "2";
}
output = atan * "57.29577951";
}
if (psi < (-"1")) {
sq = psi;
fact = "1";
sign = -"1";
atan = (-(pi / "2")) - ("1" / psi);
i = "3";
while (i < "200") {
fact = i;
sq = (sq * psi) * psi;
sign = (-"1") * sign;
atan = atan + ((sign / sq) / fact);
i = i + "2";
}
output = atan * "57.29577951";
}
stop();
Symbol 129 MovieClip Frame 1
if (shoot == "1") {
call("ballmove");
}
call("castlecheck");
call("movethings");
call("targetscheck");
call("duplicatethings");
Symbol 129 MovieClip Frame 2
gotoAndPlay (1);
Symbol 129 MovieClip Frame 5
if ("0" < /:ballsleft) {
tellTarget ("/cannon") {
gotoAndPlay (2);
};
Set("/:ballcount", /:ballcount + "1");
Set("/:ballsleft", /:ballsleft - "1");
call("/ballsleft:ballsleftupdate");
duplicateMovieClip ("/balloriginal", "ball", "1");
setProperty("/ball", _x , "100");
setProperty("/ball", _y , "250");
call("angle");
shootstrength = strength;
ballxmove = cosangle;
ballymove = sinangle;
shoot = "1";
}
if (/:ballsleft == "0") {
tellTarget ("/cannon") {
gotoAndPlay (2);
};
}
Symbol 129 MovieClip Frame 10
setProperty("/cannon", _rotation , (-"1") * angle);
Set("math:input", angle);
call("math:cos");
cosangle = math:output;
Set("math:input", angle);
call("math:sin");
sinangle = math:output;
if (angle == "0") {
cosangle = "1";
sinangle = "0";
}
if (angle == "90") {
cosangle = "0";
sinangle = "1";
}
Symbol 129 MovieClip Frame 15
i = "0";
while (i < shootstrength) {
i = i + "1";
setProperty("/ball", _x , getProperty("/ball", _x) + ballxmove);
setProperty("/ball", _y , getProperty("/ball", _y) - ballymove);
call("groundcheck");
}
ballymove = ballymove - ("1.5" / shootstrength);
Symbol 129 MovieClip Frame 20
if (shoot == "1") {
if ("300" < getProperty("/ball", _y)) {
if (/:bouncemode eq "ON") {
call("bounce");
} else {
call("targetscheck");
call("ballexplode");
}
}
}
if (shoot == "1") {
if ("740" < getProperty("/ball", _x)) {
call("ballexplode");
}
if ((getProperty("/ball", _x) < "100") and (/:bouncemode eq "ON")) {
castlestrength = castlestrength - "10";
call("ballexplode");
}
if ((/:bouncemode eq "ON") and ("700" < getProperty("/ball", _x))) {
tellTarget ("/sound") {
gotoAndPlay ("bounce");
};
ballxmove = ballxmove * (-"1");
setProperty("/ball", _x , "700");
}
}
Symbol 129 MovieClip Frame 30
j = "1";
while ("5" >= j) {
targetx = getProperty("/target" add j, _x);
targety = getProperty("/target" add j, _y);
targetwidth = getProperty("/target" add j, _width);
targetheight = getProperty("/target" add j, _height);
ballxpos = getProperty("/ball", _x);
ballypos = getProperty("/ball", _y);
if (((("0" < (ballxpos - targetx)) and ((ballxpos - targetx) < targetwidth)) and ("0" < (targety - ballypos))) and ((targety - ballypos) < targetheight)) {
Set(("target" add j) add "present", "0");
targetsnum = targetsnum - "1";
tellTarget ("/target" add j) {
gotoAndPlay ("explode");
};
call("ballexplode");
}
j = j + "1";
}
Symbol 129 MovieClip Frame 40
if (target2present == "1") {
t2currentframe = getProperty("/target2", _currentframe) - "2";
if (t2currentframe < "15") {
setProperty("/target2", _y , "85" + (t2currentframe * t2currentframe));
} else {
setProperty("/target2", _y , "85" + (("30" - t2currentframe) * ("30" - t2currentframe)));
}
}
if (target5present == "1") {
t5currentframe = getProperty("/target5", _currentframe) - "2";
if (t5currentframe < "15") {
setProperty("/target5", _y , "85" + (t5currentframe * t5currentframe));
} else {
setProperty("/target5", _y , "85" + (("30" - t5currentframe) * ("30" - t5currentframe)));
}
}
Symbol 129 MovieClip Frame 45
duplicateMovieClip ("/explodeoriginal", "explode", "5");
setProperty("/explode", _x , getProperty("/ball", _x));
setProperty("/explode", _y , getProperty("/ball", _y));
removeMovieClip("/ball");
shoot = "0";
i = shootstrength;
Symbol 129 MovieClip Frame 55
k = "1";
while ("5" >= k) {
if (eval (("target" add k) add "ready") == "1") {
if (eval (("target" add k) add "present") <> "1") {
Set(("target" add k) add "replace", eval (("target" add k) add "replace") + "1");
}
if ((eval (("target" add k) add "replace") == eval (("target" add k) add "replacevalue")) and (eval (("target" add k) add "present") <> "1")) {
duplicateMovieClip (("/target" add k) add "original", "target" add k, "10" + k);
Set(("/target" add k) add ":self", "target" add k);
Set(("target" add k) add "present", "1");
Set(("target" add k) add "replace", "0");
}
}
k = k + "1";
}
Symbol 129 MovieClip Frame 60
if ((ballxmove < "0.1") and ((-"0.1") < ballxmove)) {
call("ballexplode");
}
tellTarget ("/sound") {
gotoAndPlay ("bounce");
};
ballxmove = ballxmove * "0.75";
ballymove = ballymove * (-"0.5");
setProperty("/ball", _y , "300");
Symbol 129 MovieClip Frame 65
if ("0" >= castlestrength) {
tellTarget ("../") {
gotoAndStop ("youlosecastle");
};
}
if (/:points >= "500") {
target4ready = "1";
}
if (/:points >= "1000") {
target2ready = "1";
}
if (/:points >= "1500") {
target3ready = "1";
}
if (/:points >= "5000") {
target5ready = "1";
}
if (/:points >= "20000") {
tellTarget ("/target1") {
gotoAndPlay ("explode");
};
tellTarget ("/target2") {
gotoAndPlay ("explode");
};
tellTarget ("/target3") {
gotoAndPlay ("explode");
};
tellTarget ("/target4") {
gotoAndPlay ("explode");
};
tellTarget ("../") {
gotoAndStop ("youwin");
};
}
Symbol 130 Button
on (press) {
if (control:shoot == "0") {
strengthhold = "1";
Set("/control:strength", "12.5");
tellTarget ("/strengthmeter") {
gotoAndStop (1);
};
tellTarget ("/strengthhold") {
gotoAndPlay (2);
};
} else if ((control:shoot == "1") and (bouncemode eq "ON")) {
call("control:targetscheck");
call("control:ballexplode");
}
}
on (release, dragOut) {
if (strengthhold == "1") {
strengthhold = "0";
tellTarget ("/strengthhold") {
gotoAndStop (1);
};
call("control:shoot");
}
}
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 2
if (/control:strength < "37.5") {
Set("/control:strength", /control:strength + "2.5");
tellTarget ("/strengthmeter") {
nextFrame();
};
} else if (/control:strength >= "37.5") {
Set("/:strengthhold", "0");
call("/control:shoot");
gotoAndStop (1);
}
Symbol 131 MovieClip Frame 4
gotoAndPlay (2);
Symbol 132 Button
on (release, keyPress "<Down>") {
if ("12.5" < control:strength) {
Set("control:strength", control:strength - "2.5");
tellTarget ("/strengthmeter") {
prevFrame();
};
}
}
Symbol 133 Button
on (release, keyPress "<Up>") {
if (control:strength < "37.5") {
Set("control:strength", control:strength + "2.5");
tellTarget ("/strengthmeter") {
nextFrame();
};
}
}
Symbol 134 Button
on (release, keyPress "<Right>") {
if ("0" < control:angle) {
Set("control:angle", control:angle - "5");
call("control:angle");
}
}
Symbol 135 Button
on (release, keyPress "<Left>") {
if (control:angle < "80") {
Set("control:angle", control:angle + "5");
call("control:angle");
}
}
Symbol 137 MovieClip Frame 2
setProperty("/" add self, _x , getProperty("/" add self, _x) - "7");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 137 MovieClip Frame 4
setProperty("/" add self, _x , getProperty("/" add self, _x) - "7");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 137 MovieClip Frame 6
setProperty("/" add self, _x , getProperty("/" add self, _x) - "7");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 137 MovieClip Frame 8
setProperty("/" add self, _x , getProperty("/" add self, _x) - "7");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 137 MovieClip Frame 10
setProperty("/" add self, _x , getProperty("/" add self, _x) - "7");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 137 MovieClip Frame 12
setProperty("/" add self, _x , getProperty("/" add self, _x) - "7");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 137 MovieClip Frame 14
setProperty("/" add self, _x , getProperty("/" add self, _x) - "7");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 137 MovieClip Frame 16
setProperty("/" add self, _x , getProperty("/" add self, _x) - "7");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 137 MovieClip Frame 18
setProperty("/" add self, _x , getProperty("/" add self, _x) - "7");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 137 MovieClip Frame 20
setProperty("/" add self, _x , getProperty("/" add self, _x) - "7");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 137 MovieClip Frame 22
setProperty("/" add self, _x , getProperty("/" add self, _x) - "7");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 137 MovieClip Frame 24
setProperty("/" add self, _x , getProperty("/" add self, _x) - "7");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 137 MovieClip Frame 26
setProperty("/" add self, _x , getProperty("/" add self, _x) - "7");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 137 MovieClip Frame 28
setProperty("/" add self, _x , getProperty("/" add self, _x) - "7");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 137 MovieClip Frame 30
setProperty("/" add self, _x , getProperty("/" add self, _x) - "7");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 137 MovieClip Frame 32
gotoAndPlay (2);
Symbol 137 MovieClip Frame 34
Set("/:points", /:points + "750");
Set("/:ballsleft", /:ballsleft + "3");
call("/ballsleft:ballsleftupdate");
Symbol 137 MovieClip Frame 39
removeMovieClip("/" add self);
Symbol 137 MovieClip Frame 41
Set("/:points", /:points - "400");
Set("/control:castlestrength", /control:castlestrength - "40");
if ("0" >= /:ballsleft) {
Set("/:ballsleft", "2");
call("/ballsleft:ballsleftupdate");
}
Symbol 137 MovieClip Frame 46
removeMovieClip("/" add self);
Symbol 138 MovieClip Frame 2
setProperty("/" add self, _x , getProperty("/" add self, _x) - "5");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 138 MovieClip Frame 4
setProperty("/" add self, _x , getProperty("/" add self, _x) - "5");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 138 MovieClip Frame 6
setProperty("/" add self, _x , getProperty("/" add self, _x) - "5");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 138 MovieClip Frame 8
setProperty("/" add self, _x , getProperty("/" add self, _x) - "5");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 138 MovieClip Frame 10
gotoAndPlay (2);
Symbol 138 MovieClip Frame 12
Set("/:points", /:points + "250");
Set("/:ballsleft", /:ballsleft + "1");
call("/ballsleft:ballsleftupdate");
Symbol 138 MovieClip Frame 17
removeMovieClip("/" add self);
Symbol 138 MovieClip Frame 19
Set("/:points", /:points - "400");
tellTarget ("/explode") {
gotoAndPlay (1);
};
Set("/control:castlestrength", /control:castlestrength - "20");
if ("0" >= /:ballsleft) {
Set("/:ballsleft", "2");
call("/ballsleft:ballsleftupdate");
}
Symbol 138 MovieClip Frame 24
removeMovieClip("/" add self);
Symbol 144 MovieClip Frame 2
setProperty("/" add self, _x , getProperty("/" add self, _x) - "5");
if (getProperty("/" add self, _x) < "40") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 144 MovieClip Frame 4
setProperty("/" add self, _x , getProperty("/" add self, _x) - "5");
if (getProperty("/" add self, _x) < "40") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 144 MovieClip Frame 6
gotoAndPlay (2);
Symbol 144 MovieClip Frame 8
Set("/:points", /:points + "500");
Set("/:ballsleft", /:ballsleft + "2");
call("/ballsleft:ballsleftupdate");
Symbol 144 MovieClip Frame 13
removeMovieClip("/" add self);
Symbol 144 MovieClip Frame 15
Set("/:points", /:points - "800");
tellTarget ("/princess") {
gotoAndPlay ("die");
}
Symbol 144 MovieClip Frame 20
removeMovieClip("/" add self);
Symbol 146 MovieClip Frame 2
setProperty("/" add self, _x , getProperty("/" add self, _x) - "4");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 146 MovieClip Frame 5
setProperty("/" add self, _x , getProperty("/" add self, _x) - "4");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 146 MovieClip Frame 8
setProperty("/" add self, _x , getProperty("/" add self, _x) - "4");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 146 MovieClip Frame 11
setProperty("/" add self, _x , getProperty("/" add self, _x) - "4");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 146 MovieClip Frame 14
setProperty("/" add self, _x , getProperty("/" add self, _x) - "4");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 146 MovieClip Frame 17
setProperty("/" add self, _x , getProperty("/" add self, _x) - "4");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 146 MovieClip Frame 20
setProperty("/" add self, _x , getProperty("/" add self, _x) - "4");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 146 MovieClip Frame 23
setProperty("/" add self, _x , getProperty("/" add self, _x) - "4");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 146 MovieClip Frame 26
setProperty("/" add self, _x , getProperty("/" add self, _x) - "4");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 146 MovieClip Frame 29
setProperty("/" add self, _x , getProperty("/" add self, _x) - "4");
if (getProperty("/" add self, _x) < "100") {
Set(("/control:" add self) add "present", "0");
tellTarget ("/" add self) {
gotoAndPlay ("hitcastle");
};
}
Symbol 146 MovieClip Frame 32
gotoAndPlay (2);
Symbol 146 MovieClip Frame 34
Set("/:points", /:points + "750");
Set("/:ballsleft", /:ballsleft + "3");
call("/ballsleft:ballsleftupdate");
Symbol 146 MovieClip Frame 39
removeMovieClip("/" add self);
Symbol 146 MovieClip Frame 41
Set("/:points", /:points - "400");
Set("/control:castlestrength", /control:castlestrength - "40");
if ("0" >= /:ballsleft) {
Set("/:ballsleft", "2");
call("/ballsleft:ballsleftupdate");
}
Symbol 146 MovieClip Frame 46
removeMovieClip("/" add self);
Symbol 153 Button
on (release) {
removeMovieClip("/cannon");
removeMovieClip("/ball");
removeMovieClip("/target1");
removeMovieClip("/target2");
removeMovieClip("/target3");
removeMovieClip("/target4");
gotoAndStop (129);
}
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 13
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 2
if ("30" < /:ballsleft) {
Set("/:ballsleft", "30");
}
tellTarget ("pile1") {
if ("10" < /:ballsleft) {
gotoAndStop (1);
} else {
gotoAndStop("11" - /:ballsleft);
}
};
tellTarget ("pile2") {
if ("20" < /:ballsleft) {
gotoAndStop (1);
} else {
gotoAndStop("21" - /:ballsleft);
}
};
tellTarget ("pile3") {
if ("30" < /:ballsleft) {
gotoAndStop (1);
} else {
gotoAndStop("31" - /:ballsleft);
}
}
Symbol 169 Button
on (release, keyPress "x") {
if (control:shoot == "0") {
if (bouncemode eq "ON") {
bouncemode = "OFF";
} else {
bouncemode = "ON";
}
}
}
Symbol 175 MovieClip Frame 7
stop();
Symbol 177 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 8
gotoAndStop (1);
Symbol 177 MovieClip Frame 19
removeMovieClip("/cannon");
Symbol 181 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 12
removeMovieClip("/explode");
gotoAndStop (1);
Symbol 193 Button
on (release) {
removeMovieClip("/cannon");
removeMovieClip("/ball");
removeMovieClip("/target1");
removeMovieClip("/target2");
removeMovieClip("/target3");
removeMovieClip("/target4");
gotoAndPlay (1);
}
Symbol 194 Button
on (press, keyPress "z") {
tellTarget ("/trig") {
gotoAndPlay (2);
};
if (control:shoot == "0") {
call("control:shoot");
} else if ((control:shoot == "1") and (bouncemode eq "ON")) {
call("control:targetscheck");
call("control:ballexplode");
}
}
Symbol 202 Button
on (release) {
gotoAndPlay (135);
}