Frame 1
stop();
Instance of Symbol 68 MovieClip in Frame 1
onClipEvent (enterFrame) {
tot = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (tot < 100) {
gotoAndStop(tot);
} else {
play();
}
}
Frame 2
bgm = new Sound();
bgm.attachSound("title");
bgm.start();
bgm.onSoundComplete = function () {
bgm.start();
};
stop();
Frame 3
crocs = 5;
health = 50;
lives = 3;
score = 0;
Instance of Symbol 118 MovieClip in Frame 3
onClipEvent (load) {
tbaddies = 100;
trate = 60;
loop = 0;
speed = 8;
reset = 5;
d = 1000;
double = 4;
wave = 1;
tx = 65;
bx = 265;
xr = bx - tx;
xs = tx + random(xr);
if (random(100) < 50) {
yd = 60;
} else {
yd = -60;
}
delay = 0;
speed2 = 10;
nextw = 10;
}
onClipEvent (enterFrame) {
if (wave == 1) {
loop++;
if (loop >= trate) {
loop = 0;
reset--;
if (reset < 1) {
reset = 5;
trate = trate - 6;
if (trate < 16) {
trate = 16;
speed = speed - 2;
}
speed = speed + 0.5;
}
double--;
if (speed > 0) {
if (double < 1) {
double = 4;
addRay(80);
addRay(200);
} else {
addRay();
}
} else {
rays = 0;
for (i in this) {
if (this[i].type == "ray") {
rays++;
}
}
if (rays < 1) {
wave = 2;
speed = 5.5;
}
}
}
} else if (wave == 2) {
delay--;
if (delay < 1) {
delay = 12;
attachMovie("ray2", "r" + d, d);
this["r" + d]._x = 720;
this["r" + d]._y = xs;
xs = xs + yd;
if (xs > bx) {
xs = bx;
yd = yd * -1;
}
if (xs < tx) {
xs = tx;
yd = yd * -1.1;
speed2 = speed2 + 0.25;
}
d++;
}
if (speed2 > 14) {
reset--;
if (reset < 1) {
reset = 50;
addRay(140);
nextw--;
trace(nextw);
if (nextw < 1) {
wave = 3;
trace("wave 3");
}
}
}
} else if (wave == 3) {
attachMovie("boss", "BOSS", d);
wave = 4;
d++;
BOSS._y = 180;
BOSS._x = 720;
}
}
Symbol 15 MovieClip [bullet] Frame 1
onEnterFrame = function () {
_x = (_x + 28);
if (_x > 700) {
this.removeMovieClip();
}
};
type = "bullet";
Symbol 16 MovieClip [STINGRAY] Frame 1
type = "ray";
ybob = new Array();
ybob[0] = 0;
ybob[1] = 0.5;
ybob[2] = 1;
ybob[3] = 1.5;
ybob[4] = 2;
ybob[5] = 2;
ybob[6] = 2;
ybob[7] = 2;
ybob[8] = 1.5;
ybob[9] = 1;
ybob[10] = 0.5;
ybob[11] = 0;
ybob[12] = 0;
ybob[13] = -0.5;
ybob[14] = -1;
ybob[15] = -1.5;
ybob[16] = -2;
ybob[17] = -2;
ybob[18] = -2;
ybob[19] = -2;
ybob[20] = -1.5;
ybob[21] = -1;
ybob[22] = -0.5;
ybob[23] = 0;
yb = random(24);
stinger = true;
onEnterFrame = function () {
if (!dead) {
if ((_x < 580) and (stinger == true)) {
if ((_parent.terri._y < (_y + 20)) and (_parent.terri._y > (_y - 20))) {
if (random(100) < 20) {
_parent.attachMovie("stinger", "st" + _parent.d, _parent.d);
_parent["st" + _parent.d]._x = _x + 36;
_parent["st" + _parent.d]._y = _y + 5;
_parent.d++;
stinger = false;
}
}
}
yb = yb + 0.5;
if (yb >= ybob.length) {
yb = 0;
}
_y = (_y + (ybob[Math.round(yb)] * 2));
_x = (_x - _parent.speed);
this.ray.gotoAndStop(Math.round(yb));
if ((_x < -100) or (_x > 780)) {
this.removeMovieClip();
}
if (this.hitTest(_parent.croc)) {
dead = true;
play();
}
for (i in _parent) {
if (_parent[i].type == "bullet") {
if ((_parent[i]._x >= _x) and (_parent[i]._x <= (_x + 84))) {
if ((_parent[i]._y >= (_y + 4)) and (_parent[i]._y <= (_y + 38))) {
_parent[i].removeMovieClip();
dead = true;
play();
}
}
}
}
if (((_y + 40) > _parent.terri._y) and (_y < (_parent.terri._y + 35))) {
if (((_x + 60) > (_parent.terri._x + 40)) and (_x < (_parent.terri._x + 130))) {
if (_parent.terri.hurt != true) {
_parent.terri.gotoAndPlay("hurtani");
_root.health = _root.health - 5;
}
}
}
}
};
stop();
Symbol 16 MovieClip [STINGRAY] Frame 2
_root.score = _root.score + 100;
Symbol 16 MovieClip [STINGRAY] Frame 11
this.removeMovieClip();
stop();
Symbol 28 MovieClip Frame 1
stop();
Symbol 28 MovieClip Frame 12
_parent.shoot(15);
Symbol 28 MovieClip Frame 20
_parent.shoot(-15);
Symbol 28 MovieClip Frame 28
_parent.shoot(0);
Symbol 28 MovieClip Frame 37
_parent.newMode();
Symbol 45 MovieClip [boss] Frame 1
function newMode() {
xd = 8 * ((random(100) - 50) / 100);
this.mode = ms[random(ms.length)];
attack--;
if (attack < 1) {
attack = 4;
this.mode = "s";
}
}
function shoot(a) {
trace("firing " + a);
if (a < 0) {
xxx = 100;
yyy = -60;
} else if (a > 0) {
xxx = 96;
yyy = -98;
} else {
xxx = 116;
yyy = -75;
}
_parent.attachMovie("stinger2", "x" + _parent.d, _parent.d);
_parent["x" + _parent.d]._rotation = a;
_parent["x" + _parent.d]._x = _x + xxx;
_parent["x" + _parent.d]._y = _y + yyy;
_parent.d++;
}
if (!init) {
init = 1;
mode = "a";
ms = new Array();
ms[0] = "u";
ms[1] = "d";
ms[2] = "b";
timer = 20;
attack = 4;
xd = 0;
hits = 0;
}
hurt = false;
onEnterFrame = function () {
if ((mode != "a") and (hurt != true)) {
if (this.hitTest(_parent.croc)) {
_parent.croc.croc.play();
gotoAndPlay ("hurtani");
} else {
for (i in _parent) {
if (_parent[i].type == "bullet") {
if ((_parent[i]._x > _x) and (_parent[i]._x < (_x + 170))) {
if ((_parent[i]._y > (_y - 37)) and (_parent[i]._y < (_y + 30))) {
gotoAndPlay ("hurtani");
_parent[i].removeMovieClip();
}
}
}
}
}
}
if (((_parent.terri._x + 130) > _x) and ((_parent.terri._x + 30) < (_x + 170))) {
if ((_parent.terri._y > (_y - 37)) and ((_parent.terri._y + 38) < (_y + 30))) {
if (_parent.terri.hurt != true) {
_parent.terri.gotoAndPlay("hurtani");
_root.health = _root.health - 25;
}
}
}
if ((_x < 240) and (xd < 0)) {
xd = xd * -1;
} else if ((_x > 360) and (xd > 0)) {
xd = xd * -1;
}
if (mode == "a") {
_x = (_x - 6);
if (_x < 324) {
mode = "b";
play();
}
} else if (mode == "b") {
_x = (_x + xd);
timer--;
if (timer < 1) {
timer = 20;
newMode();
}
} else if (mode == "u") {
_x = (_x + xd);
if (_y <= 138) {
newMode();
} else {
_y = (_y - 8);
}
} else if (mode == "d") {
_x = (_x + xd);
if (_y >= 270) {
newMode();
} else {
_y = (_y + 8);
}
} else if (mode == "s") {
ray.play();
}
};
stop();
Symbol 45 MovieClip [boss] Frame 4
gotoAndStop (1);
Symbol 45 MovieClip [boss] Frame 5
hurt = true;
hits++;
if (hits >= 25) {
gotoAndPlay ("die");
}
Symbol 45 MovieClip [boss] Frame 23
gotoAndStop (1);
Symbol 45 MovieClip [boss] Frame 24
_root.score = _root.score + 2000;
Symbol 45 MovieClip [boss] Frame 80
_parent.bgm.stop();
_root.gotoAndStop("win");
stop();
Symbol 49 MovieClip [stinger2] Frame 2
onEnterFrame = function () {
if (_rotation > 0) {
xs = 20;
ys = -10;
} else if (_rotation < 0) {
xs = 20;
ys = 10;
} else {
xs = 33;
}
_x = (_x - xs);
_y = (_y + ys);
if (_x < -10) {
this.removeMovieClip();
}
if (((_y + 12) > _parent.terri._y) and ((_y - 12) < (_parent.terri._y + 35))) {
if (((_x + 12) > (_parent.terri._x + 40)) and ((_x - 12) < (_parent.terri._x + 130))) {
if (_parent.terri.hurt != true) {
_parent.terri.gotoAndPlay("hurtani");
_root.health = _root.health - 25;
this.removeMovieClip();
}
}
}
};
stop();
Symbol 50 MovieClip [stinger] Frame 2
onEnterFrame = function () {
_x = (_x - (_parent.speed + 10));
if (_x < -10) {
this.removeMovieClip();
}
if (((_y + 2) > _parent.terri._y) and ((_y - 2) < (_parent.terri._y + 35))) {
if (((_x + 4) > (_parent.terri._x + 40)) and ((_x - 4) < (_parent.terri._x + 130))) {
if (_parent.terri.hurt != true) {
_parent.terri.gotoAndPlay("hurtani");
_root.health = _root.health - 25;
this.removeMovieClip();
}
}
}
};
stop();
Symbol 53 MovieClip [health] Frame 1
onEnterFrame = function () {
_x = (_x - 10);
if (_x < -20) {
this.removeMovieClip();
}
if (this.hitTest(_parent.terri)) {
play();
}
};
stop();
Symbol 53 MovieClip [health] Frame 2
_root.health = _root.health + 10;
if (_root.health > 50) {
_root.health = 50;
}
Symbol 53 MovieClip [health] Frame 17
this.removeMovieClip();
stop();
Symbol 63 MovieClip [ray2] Frame 1
onEnterFrame = function () {
if (!dead) {
_x = (_x - _parent.speed2);
if (_x < -100) {
this.removeMovieClip();
}
for (i in _parent) {
if (_parent[i].type == "bullet") {
if ((_parent[i]._x >= _x) and (_parent[i]._x <= (_x + 84))) {
if ((_parent[i]._y >= (_y - 20)) and (_parent[i]._y <= (_y + 26))) {
_parent[i].removeMovieClip();
dead = true;
play();
}
}
}
}
if (this.hitTest(_parent.croc)) {
dead = true;
play();
}
if (((_y + 20) > _parent.terri._y) and ((_y - 20) < (_parent.terri._y + 35))) {
if (((_x + 60) > (_parent.terri._x + 40)) and (_x < (_parent.terri._x + 130))) {
if (_parent.terri.hurt != true) {
_parent.terri.gotoAndPlay("hurtani");
_root.health = _root.health - 5;
}
}
}
}
};
stop();
Symbol 63 MovieClip [ray2] Frame 2
_root.score = _root.score + 100;
Symbol 63 MovieClip [ray2] Frame 11
this.removeMovieClip();
stop();
Symbol 68 MovieClip Frame 144
_parent.nextFrame();
stop();
Symbol 85 Button
on (release) {
bgm.stop();
nextFrame();
}
Symbol 109 MovieClip Frame 1
stop();
hurt = false;
Symbol 109 MovieClip Frame 8
gotoAndStop (1);
Symbol 109 MovieClip Frame 9
hurt = true;
Symbol 109 MovieClip Frame 15
if (_root.health < 1) {
_root.lives--;
gotoAndPlay (25);
}
Symbol 109 MovieClip Frame 22
gotoAndPlay (1);
Symbol 109 MovieClip Frame 56
_x = 30;
_y = 240;
_root.health = 50;
if (_root.lives < 1) {
_parent.bgm.stop();
_root.gotoAndStop("lose");
stop();
}
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 14
_parent.gotoAndStop(1);
stop();
Symbol 117 MovieClip Frame 1
loaded = 1;
croc.gotoAndStop(1);
stop();
Symbol 118 MovieClip Frame 1
function addRay(yyy) {
this.attachMovie("STINGRAY", "S" + d, d);
this["S" + d]._x = 720;
t = 85;
b = 235;
dd = Math.ceil(b - t) / 32;
if (yyy) {
this["S" + d]._y = yyy;
} else {
this["S" + d]._y = t + (random(dd) * 32);
}
d++;
}
bgm = new Sound();
bgm.attachSound("loopylooploop");
bgm.start();
bgm.onSoundComplete = function () {
bgm.start();
};
Instance of Symbol 109 MovieClip "terri" in Symbol 118 MovieClip Frame 1
onClipEvent (load) {
k = new Object();
gdelay = 0;
nexP = 500;
}
onClipEvent (keyUp) {
key = Key.getCode();
k[key] = false;
}
onClipEvent (keyDown) {
key = Key.getCode();
trace(key);
if (_root.score >= nexP) {
nexP = nexP + 1500;
_parent.attachMovie("health", "h" + _parent.d, _parent.d);
_parent["h" + _parent.d]._x = 720;
_parent["h" + _parent.d]._y = 50 + random(120);
_parent.d++;
}
if (hurt != true) {
if ((key == 32) and (k[key] != true)) {
if (gdelay < 1) {
gdelay = 11;
play();
_parent.attachMovie("bullet", "b" + _parent.d, _parent.d);
_parent["b" + _parent.d]._x = _x + 152;
_parent["b" + _parent.d]._y = _y + 26;
_parent.d++;
}
} else if ((key == 90) and (k[key] != true)) {
if ((_parent.croc.loaded == 1) and (_root.crocs > 0)) {
_parent.croc.play();
_parent.croc.loaded = 0;
_root.crocs--;
}
}
}
k[key] = true;
}
onClipEvent (enterFrame) {
if (_root.health < 1) {
_root.health = 0;
}
if (gdelay > 0) {
gdelay--;
}
spd = 8;
if (Key.isDown(38)) {
_y = (_y - spd);
} else if (Key.isDown(40)) {
_y = (_y + spd);
}
if (Key.isDown(37)) {
_x = (_x - spd);
} else if (Key.isDown(39)) {
_x = (_x + spd);
}
if (_y < 45) {
_y = 45;
} else if (_y > 280) {
_y = 280;
}
if (_x < 0) {
_x = 0;
} else if (_x > 470) {
_x = 470;
}
}
Symbol 127 MovieClip Frame 1
gotoAndStop(random(5) + 1);
onEnterFrame = function () {
_x = (_x - 4);
if (_x < 0) {
_x = (_x + 750);
gotoAndStop(random(5) + 1);
}
};
Symbol 157 Button
on (release) {
prevFrame();
}
Symbol 179 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 180 MovieClip Frame 721
stop();