Frame 1
play();
setProperty("/loadbar", _xscale , (_framesloaded / _totalframes) * "100");
Frame 3
ifFrameLoaded (10) {
gotoAndPlay (6);
}
Frame 5
gotoAndPlay (1);
Frame 13
setProperty("/loadbar", _xscale , (_framesloaded / _totalframes) * "100");
Frame 15
ifFrameLoaded (19) {
gotoAndPlay (19);
}
Frame 17
gotoAndPlay (13);
Frame 19
play();
Frame 21
ifFrameLoaded (31) {
gotoAndPlay (24);
}
Frame 23
gotoAndStop (19);
Frame 30
gotoAndPlay (24);
Frame 31
door1 = "0";
door2 = "0";
door3 = "0";
door4 = "0";
window1 = "0";
window2 = "0";
window3 = "0";
spike1 = "0";
spike2 = "0";
spike3 = "0";
spike4 = "0";
bonus = "0";
Set("cat1:flip", "0");
score = "0";
rate = "5";
power = "1";
splatnum = "0";
splat = "0";
missiles = "10";
missilecheck = "0";
miss = "0";
duplicateMovieClip ("/mask", "maskZ", "1000");
duplicateMovieClip ("/spike1a", "spike1", "1001");
duplicateMovieClip ("/spike2a", "spike2", "1002");
duplicateMovieClip ("/spike3a", "spike3", "1003");
duplicateMovieClip ("/spike4a", "spike4", "1004");
duplicateMovieClip ("/cat", "cat1", "1005");
duplicateMovieClip ("/cat", "cat2", "1006");
duplicateMovieClip ("/catapulta", "catapult", "1010");
duplicateMovieClip ("/crosshaira", "crosshair", "1011");
duplicateMovieClip ("/missilesa", "missiles", "1012");
duplicateMovieClip ("/scorea", "score", "1013");
duplicateMovieClip ("/powera", "power", "1015");
duplicateMovieClip ("/torturea", "torture", "1016");
duplicateMovieClip ("/allmask", "allmaskB", "1020");
setProperty("/missiles", _x , "470");
setProperty("/score", _x , "101");
setProperty("/power", _x , "7");
startDrag ("/crosshair", true, "20", "345", "580", "435");
Frame 32
num = "1";
while ("2" >= num) {
cat_check = "cat" add num;
tellTarget (cat_check) {
if ((on == "0") and (random("10") == "0")) {
on = "1";
gotoAndPlay ("start");
}
};
num = num + "1";
}
setProperty("/catapult", _x , getProperty("/crosshair", _x));
setProperty("/catapult", _y , getProperty("/crosshair", _y) + "90");
if (score < "5000") {
rate = "5" + int(score / "500");
} else {
rate = "15";
}
if (splat eq "cat1") {
duplicateMovieClip ("/blood", "blood" add splatnum, splatnum);
setProperty("/blood" add splatnum, _x , getProperty("/cat1", _x));
setProperty("/blood" add splatnum, _y , getProperty("/cat1", _y));
if ("15" < splatnum) {
removeMovieClip("blood" add (splatnum - "15"));
}
splatnum = splatnum + "1";
splat = "0";
} else if (splat eq "cat2") {
duplicateMovieClip ("/blood", "blood" add splatnum, splatnum);
setProperty("/blood" add splatnum, _x , getProperty("/cat2", _x));
setProperty("/blood" add splatnum, _y , getProperty("/cat2", _y));
if ("15" < splatnum) {
removeMovieClip("blood" add (splatnum - "15"));
}
splatnum = splatnum + "1";
splat = "0";
}
if ("10" < missiles) {
missiles = "10";
}
if (score < "0") {
score = "0";
}
if (missilecheck == "1") {
Set("../:missilecheck", "0");
if ("0" >= missiles) {
gotoAndPlay (35);
}
}
tellTarget ("/missiles") {
gotoAndStop("11" - ../:missiles);
};
tellTarget ("/power") {
if ("70" < ../:power) {
gotoAndStop (70);
} else {
gotoAndStop(../:power);
}
};
if ((((spike1 == "1") and (spike2 == "1")) and (spike3 == "1")) and (spike4 == "1")) {
spike1 = "0";
spike2 = "0";
spike3 = "0";
spike4 = "0";
score = score + "2000";
tellTarget ("/torture") {
gotoAndPlay (2);
};
}
Frame 33
gotoAndPlay (32);
Frame 59
stopDrag();
removeMovieClip("maskZ");
removeMovieClip("spike1");
removeMovieClip("spike2");
removeMovieClip("spike3");
removeMovieClip("spike4");
removeMovieClip("cat1");
removeMovieClip("catapult");
removeMovieClip("crosshair");
removeMovieClip("allmask");
removeMovieClip("score");
removeMovieClip("missiles");
removeMovieClip("power");
removeMovieClip("torture");
num = "0";
while (splatnum >= num) {
removeMovieClip("blood" add num);
num = num + "1";
}
if (quality == "0") {
quality = "1";
toggleHighQuality();
}
Frame 60
while (((("0" < door1) and ("0" < door2)) and ("0" < door3)) and ("0" < door4)) {
bonus = bonus + "200";
door1 = door1 - "1";
door2 = door2 - "1";
door3 = door3 - "1";
door4 = door4 - "1";
}
while ((("0" < window1) and ("0" < window2)) and ("0" < window3)) {
bonus = bonus + "500";
window1 = window1 - "1";
window2 = window2 - "1";
window3 = window3 - "1";
}
score = score + bonus;
gametable = "Catapult";
scorecheck = score;
scoregood = "0";
loadVariables ("highscores.asp?action=check", "", "POST");
Frame 61
play();
Frame 62
if (scoregood == "0") {
prevFrame();
} else if (scoregood == "1") {
gotoAndStop (65);
} else if (scoregood == "2") {
gotoAndStop (70);
}
Frame 66
play();
Frame 67
if (update == "0") {
prevFrame();
} else {
gotoAndStop (75);
}
Frame 75
loadVariables ("highscores.asp?action=view", "", "POST");
stop();
Symbol 3 MovieClip Frame 1
play();
Symbol 3 MovieClip Frame 85
gotoAndPlay (1);
Symbol 19 MovieClip Frame 1
play();
Symbol 19 MovieClip Frame 15
stop();
Symbol 20 MovieClip Frame 120
gotoAndPlay(random("90"));
Symbol 28 MovieClip Frame 1
play();
Symbol 28 MovieClip Frame 40
stop();
Symbol 34 Button
on (release) {
quality = "1";
gotoAndPlay (31);
}
Symbol 38 Button
on (release) {
quality = "0";
toggleHighQuality();
gotoAndPlay (31);
}
Symbol 39 Button
on (press) {
tellTarget ("/catapult") {
gotoAndPlay ("stretch");
}
}
on (release, releaseOutside) {
tellTarget ("/catapult") {
gotoAndPlay ("shoot");
};
if ("10" < power) {
crossX = getProperty("crosshair", _x);
crossY = getProperty("crosshair", _y);
numtest = "1";
while ("2" >= numtest) {
cat_test = "cat" add numtest;
tellTarget (cat_test) {
dx = _x - ../:crossX;
dy = _y - ../:crossY;
if ((((((-"30") < dx) and (dx < "60")) and (flip == "0")) or ((((-"60") < dx) and (dx < "30")) and (flip == "1"))) and (hit == "0")) {
Set("../:miss", "0");
hit = "1";
gotoAndPlay ("hitcheck");
} else {
Set("../:miss", ../:miss + "1");
}
};
numtest = numtest + "1";
}
}
if (miss == "2") {
missiles = missiles - "1";
missilecheck = "1";
}
miss = "0";
}
on (keyPress "h") {
if (quality == "1") {
quality = "0";
} else {
quality = "1";
}
toggleHighQuality();
}
Symbol 46 MovieClip Frame 1
play();
Symbol 46 MovieClip Frame 20
stop();
Symbol 51 MovieClip Frame 1
play();
Symbol 51 MovieClip Frame 8
gotoAndPlay (1);
Symbol 55 MovieClip Frame 1
play();
Symbol 55 MovieClip Frame 8
gotoAndPlay (1);
Symbol 66 MovieClip Frame 1
play();
Symbol 66 MovieClip Frame 10
stop();
Symbol 72 MovieClip Frame 1
tellTarget ("animation") {
gotoAndStop ("stand");
};
_xscale = "100";
_yscale = "100";
_x = "2000";
_y = "385";
on = "0";
hit = "0";
stop();
Symbol 72 MovieClip Frame 3
moves = "1";
speed = ../:rate + ("1" - random("3"));
distance = int(("250" / ../:rate) + random("500" / ../:rate));
if (random("2") == "0") {
if (flip == "0") {
flip = "1";
_xscale = (-"100");
}
_x = (-"70");
} else {
speed = speed * (-"1");
if (flip == "1") {
flip = "0";
_xscale = (-"100");
}
_x = "680";
}
count = "1";
tellTarget ("animation") {
gotoAndStop ("run");
};
gotoAndPlay (10);
Symbol 72 MovieClip Frame 5
moves = moves + "1";
speed = ../:rate + ("1" - random("3"));
distance = int(("250" / ../:rate) + random("500" / ../:rate));
direction = random(speed);
if ((direction == "0") and ("4" >= moves)) {
speed = "0";
tellTarget ("animation") {
gotoAndStop ("stand");
};
} else if (((speed / "2") < direction) and (flip == "0")) {
flip = "1";
_xscale = (-"100");
tellTarget ("animation") {
gotoAndStop ("run");
};
} else {
speed = speed * (-"1");
if (flip == "1") {
flip = "0";
_xscale = (-"100");
}
tellTarget ("animation") {
gotoAndStop ("run");
};
}
if ("4" >= moves) {
count = "1";
} else {
count = -"500";
}
gotoAndPlay (10);
Symbol 72 MovieClip Frame 9
play();
Symbol 72 MovieClip Frame 10
if (count < distance) {
_x = (_x + speed);
if ((_x < (-"70")) or ("680" < _x)) {
Set("../:score", ../:score - (../:rate * "10"));
gotoAndStop (1);
}
count = count + "1";
prevFrame();
} else {
gotoAndStop (5);
}
Symbol 72 MovieClip Frame 15
if ("20" < dy) {
Set("../:power", "1");
Set("../:missiles", ../:missiles - "1");
Set("../:missilecheck", "1");
gotoAndPlay (25);
} else {
if ("0" < dy) {
drop = "0";
heightextra = "0";
} else {
heightextra = dy * (-"1");
drop = dy;
dy = dy * (-"1");
}
dx = (dx + (flip * "30")) - "15";
angle = dx / "2";
if (dx < "0") {
dx = dx * (-"1");
}
catpower = ../:power / "3";
catpower = catpower - (catpower * (dy / "200"));
catpower = catpower - (catpower * (dx / "200"));
height = catpower * "2.5";
height = height + heightextra;
if (drop < "0") {
drop = (drop / catpower) * (-"0.8");
}
count = "1";
floor = "385";
tellTarget ("animation") {
gotoAndStop ("fly");
};
gotoAndPlay (41);
Set("../:power", "1");
}
Symbol 72 MovieClip Frame 25
tellTarget ("animation") {
gotoAndStop ("hairshot");
};
hairstill = "20" + random("30");
count = "0";
Symbol 72 MovieClip Frame 26
play();
Symbol 72 MovieClip Frame 27
if (count < hairstill) {
count = count + "1";
prevFrame();
} else {
nextFrame();
}
Symbol 72 MovieClip Frame 28
speed = "20";
if (random("2") == "0") {
if (flip == "0") {
flip = "1";
_xscale = (-"100");
}
} else {
speed = speed * (-"1");
if (flip == "1") {
flip = "0";
_xscale = (-"100");
}
}
tellTarget ("animation") {
gotoAndStop ("hairshotrun");
};
nextFrame();
Symbol 72 MovieClip Frame 29
play();
Symbol 72 MovieClip Frame 30
_x = (_x + speed);
if ((_x < (-"70")) or ("680" < _x)) {
Set("../:score", ../:score - (../:rate * "10"));
gotoAndStop (1);
}
prevFrame();
Symbol 72 MovieClip Frame 35
speed = "20";
if (random("2") == "0") {
if (flip == "0") {
flip = "1";
_xscale = (_xscale * (-"1"));
}
} else {
speed = speed * (-"1");
if (flip == "1") {
flip = "0";
_xscale = (_xscale * (-"1"));
}
}
tellTarget ("animation") {
gotoAndStop ("run");
};
nextFrame();
Symbol 72 MovieClip Frame 36
play();
Symbol 72 MovieClip Frame 37
_x = (_x + speed);
if ((_x < (-"70")) or ("680" < _x)) {
Set("../:score", ../:score - (../:rate * "10"));
gotoAndStop (1);
}
prevFrame();
Symbol 72 MovieClip Frame 40
play();
Symbol 72 MovieClip Frame 41
if (count < "10") {
if (floor < _y) {
Set("../:missiles", ../:missiles - "1");
Set("../:missilecheck", "1");
gotoAndStop (35);
}
floor = (floor - height) + heightextra;
_xscale = (_xscale - catpower);
if ((_yscale - catpower) < "0") {
_yscale = "1";
} else {
_yscale = (_yscale - catpower);
}
_x = (_x + angle);
_y = ((_y - height) + (drop * count));
setProperty("shadow", _y , (getProperty("shadow", _y) + height) - (drop * count));
if (_xscale < "50") {
gotoAndPlay (45);
}
count = count + "1";
prevFrame();
} else if ("270" < y) {
Set("../:missiles", ../:missiles - "1");
Set("../:missilecheck", "1");
gotoAndStop (35);
} else {
gotoAndPlay (45);
}
Symbol 72 MovieClip Frame 45
catX = _x;
catY = _y;
splat = "1";
if ("180" < catY) {
count = "1";
doorX = "60";
while ("480" >= doorX) {
if ((doorX < catX) and (catX < (doorX + "70"))) {
splat = "0";
Set("../:score", ../:score + "100");
Set("../:missiles", ../:missiles + "0");
Set("../:door" add count, eval ("../:door" add count) + "1");
gotoAndStop (52);
}
doorX = doorX + "140";
count = count + "1";
}
} else if (("65" < catY) and (catY < "135")) {
count = "1";
doorX = "110";
while ("430" >= doorX) {
if ((doorX < catX) and (catX < (doorX + "65"))) {
splat = "0";
Set("../:score", ../:score + "300");
Set("../:missiles", ../:missiles + "1");
Set("../:window" add count, eval ("../:window" add count) + "1");
gotoAndStop (52);
}
doorX = doorX + "160";
count = count + "1";
}
} else if (("10" < catY) and (catY < "65")) {
doorX = "175";
if ((doorX < catX) and (catX < (doorX + "50"))) {
splat = "0";
Set("../:spike1", "1");
tellTarget ("../spike1") {
gotoAndPlay (2);
};
gotoAndStop (1);
}
doorX = "225";
if ((doorX < catX) and (catX < (doorX + "50"))) {
splat = "0";
Set("../:spike2", "1");
tellTarget ("../spike2") {
gotoAndPlay (2);
};
gotoAndStop (1);
}
doorX = "345";
if ((doorX < catX) and (catX < (doorX + "50"))) {
splat = "0";
Set("../:spike3", "1");
tellTarget ("../spike3") {
gotoAndPlay (2);
};
gotoAndStop (1);
}
doorX = "395";
if ((doorX < catX) and (catX < (doorX + "50"))) {
splat = "0";
Set("../:spike4", "1");
tellTarget ("../spike4") {
gotoAndPlay (2);
};
gotoAndStop (1);
}
}
if (splat == "1") {
gotoAndPlay (73);
} else {
gotoAndStop (1);
}
Symbol 72 MovieClip Frame 52
gotoAndStop (1);
Symbol 72 MovieClip Frame 73
tellTarget ("animation") {
gotoAndStop ("splat");
};
Set("../:splat", _name);
Set("../:missiles", ../:missiles - "1");
Set("../:missilecheck", "1");
Symbol 72 MovieClip Frame 84
gotoAndStop (1);
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 2
play();
play();
Symbol 79 MovieClip Frame 16
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 2
play();
play();
Symbol 81 MovieClip Frame 16
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 2
play();
play();
Symbol 83 MovieClip Frame 16
stop();
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
play();
play();
Symbol 85 MovieClip Frame 16
stop();
Symbol 89 MovieClip Frame 1
play();
Symbol 89 MovieClip Frame 2
gotoAndPlay (1);
Symbol 90 MovieClip Frame 5
stop();
Symbol 99 MovieClip Frame 1
Set("../:power", "1");
stop();
Symbol 99 MovieClip Frame 4
play();
Symbol 99 MovieClip Frame 5
if (power < "50") {
Set("../:power", ../:power + int(../:rate / "5"));
} else if (power < "80") {
Set("../:power", ../:power + int(../:rate / "10"));
} else {
Set("../:power", "80");
}
prevFrame();
Symbol 99 MovieClip Frame 16
gotoAndStop (1);
Symbol 108 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 35
gotoAndStop (1);
Symbol 134 Button
on (release) {
gotoAndPlay (31);
}
Symbol 138 Button
on (release) {
quality = "0";
toggleHighQuality();
gotoAndPlay (31);
}