Frame 1
play();
fscommand ("showmenu", "false");
Frame 4
totalframes = _totalframes;
Frame 5
ifFrameLoaded (541) {
gotoAndPlay (8);
}
setProperty("/loader/bar", _xscale , 200 - ((_framesloaded / totalframes) * 200));
Frame 7
gotoAndPlay (5);
Frame 99
stop();
sine_lookup_table = "0.000/.0175/.0349/.0523/.0698/.0872/.1045/.1219/.1392/.1564/.1736/.1908/.2079/.2250/.2419/.2588/.2756/.2924/.3090/.3256/.3420/.3584/.3746/.3907/.4067/.4226/.4384/.4540/.4695/.4848/.5000/.5150/.5299/.5446/.5592/.5736/.5878/.6018/.6157/.6428/.6561/.6691/.6820/.6947/.7071/.7193/.7314/.7431/.7547/.7660/.7771/.7880/.7986/.8090/.8192/.8290/.8387/.8480/.8572/.8660/.8746/.8829/.8910/.8988/.9063/.9135/.9205/.9272/.9336/.9397/.9455/.9511/.9563/.9613/.9659/.9703/.9744/.9781/.9816/.9848/.9877/.9903/.9925/.9945/.9962/.9976/.9986/.9994/.9998/1.000";
bestscore = -100;
Instance of Symbol 76 MovieClip in Frame 99
//component parameters
onClipEvent (initialize) {
label = "GO";
wide = 75;
c1 = 0;
c2 = 153;
c3 = 0;
hc1 = 0;
hc2 = 200;
hc3 = 0;
baseMode = true;
widthMode = true;
rgb = 39168;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 51200;
}
on (press) {
getURL ("http://www.FlashGames247.com", "_blank");
}
Frame 131
threshold = 15;
compromised = 0;
shots = 1;
gameover = 0;
playerspeed = 5;
gun_radius = getProperty("/gun_o", _height) / 2;
shotspeed = 15;
shotpower = 1;
score = 0;
starttime = getTimer();
time = 60;
wave = 2;
play();
Frame 134
bugdeathcount = 0;
Frame 135
tellTarget ("/seal") {
gotoAndPlay (1);
};
Frame 157
tellTarget ("/seal") {
gotoAndPlay (1);
};
Frame 170
if (Number(seal1/:hit) == 0) {
call("losepoints");
}
Frame 194
call("createpickup");
Frame 200
if (Number(seal2/:hit) == 0) {
call("losepoints");
}
Frame 212
if (Number(seal3/:hit) == 0) {
call("losepoints");
}
Frame 213
if ((Number(wave) < 3) or (Number(random(2)) == 1)) {
gotoAndPlay (279);
}
Frame 317
if (Number(seal4/:hit) == 0) {
call("losepoints");
}
Frame 322
if (Number(seal1/:hit) == 0) {
call("losepoints");
}
Frame 340
call("createpickup");
Frame 359
if (Number(seal2/:hit) == 0) {
call("losepoints");
}
Frame 369
if (Number(seal3/:hit) == 0) {
call("losepoints");
}
Frame 380
if (Number(bugdeathcount) < 1) {
play();
} else {
this.gotoAndPlay(this._currentframe - 5);
}
Frame 384
wave = Number(wave) + 1;
gotoAndPlay (134);
Frame 385
if (Number(score) > 4) {
score = score - 5;
} else if (Number(score) < 5) {
score = 0;
}
Frame 393
duplicateMovieClip ("/pickup", "powerup" add random(99), Number(random(99)) + 3000);
Frame 402
gameover = 1;
play();
Frame 464
gotoAndPlay (546);
Frame 465
prevFrame();
Frame 466
accuracy = int(score / shots) * 80;
healthbonus = (8 - getProperty("health/", _currentframe)) * 120;
score = Number(Number(score) + Number(accuracy)) + Number(healthbonus);
gameover = 1;
play();
Frame 467
play();
Frame 551
stop();
Frame 553
prevFrame();
Symbol 9 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 1
Symbol 36 MovieClip Frame 56
stop();
Symbol 43 Button
on (press, keyPress "<Enter>") {
play();
}
on (keyPress "<Space>") {
play();
}
Symbol 48 MovieClip Frame 10
stop();
Symbol 51 MovieClip Frame 10
stop();
Symbol 52 MovieClip Frame 1
if (_root.liv == 0) {
_root.lost(3);
}
this.gotoAndStop(_root.liv + 2);
stop();
Symbol 76 MovieClip Frame 1
this.onPress = function () {
pressing = true;
i = 1;
while (i <= 3) {
buttonColor = new Color(eval ("piece" + i).colorchip);
buttonColor.setRGB(3355443);
lowColor = new Color(eval ("piece" + i).bottomhilite);
lowColorTransform = new Object();
lowColorTransform = {ra:"0", rb:"200", ga:"0", gb:"200", ba:"0", bb:"200", aa:"100", ab:"0"};
lowColor.setTransform(lowColorTransform);
i++;
}
};
this.onRelease = function () {
pressing = false;
};
this.onReleaseOutside = function () {
pressing = false;
};
this.onEnterFrame = function () {
if (pressing != true) {
i = 1;
while (i <= 3) {
buttonColor = new Color(eval ("piece" + i).colorchip);
buttonColor.setRGB(rgb);
lowColor = new Color(eval ("piece" + i).bottomhilite);
lowColorTransform = new Object();
lowColorTransform = {ra:"0", rb:hc1, ga:"0", gb:hc2, ba:"0", bb:hc3, aa:"100", ab:"0"};
lowColor.setTransform(lowColorTransform);
i++;
}
}
};
with (piece2) {
_width = _parent.wide;
piece1._x = _x - (_width / 2);
piece3._x = _x + (_width / 2);
_parent.midshadow._width = _width;
_parent.leftshadow._x = _x - (_width / 2);
_parent.rightshadow._x = _x + (_width / 2);
}
label1.autoSize = "center";
label2.autoSize = "center";
Symbol 85 Button
on (press) {
getURL ("http://www.FlashGames247.com", "_blank");
}
Symbol 86 Button
on (press) {
getURL ("http://www.FlashGames247.com/gamesbyemail", "_blank");
}
Symbol 87 Button
on (press) {
getURL ("http://www.FlashGames247.com/addflashgames", "_blank");
}
Symbol 88 Button
on (press) {
getURL ("http://www.FlashGames247.com/download/bughunt.exe", "_blank");
}
Instance of Symbol 93 MovieClip in Symbol 94 MovieClip Frame 1
on (press) {
getURL ("http://www.FlashGames247.com", "_blank");
}
Symbol 102 MovieClip Frame 1
stop();
if ((Number(/:shotpower) > 5) and (Number(/:shotpower) < 11)) {
gotoAndStop(/:shotpower - 5);
} else if ((Number(/:shotpower) > 10) and (Number(/:shotpower) < 16)) {
gotoAndStop(/:shotpower - 10);
} else if ((Number(/:shotpower) > 15) and (Number(/:shotpower) < 21)) {
gotoAndStop(/:shotpower - 15);
} else {
gotoAndStop(/:shotpower);
}
Symbol 102 MovieClip Frame 6
gotoAndStop (1);
Symbol 103 MovieClip Frame 1
stop();
if (_name ne "gunshot") {
power = /:shotpower;
gotoAndPlay (2);
}
Symbol 103 MovieClip Frame 2
my_x = _x;
my_y = _y;
if ((((Number(my_y) > Number(550)) or (Number(my_y) < Number(0))) or (Number(my_x) > Number(550))) or (Number(my_x) < Number(0))) {
Set("/:shooting", "0");
removeMovieClip("");
} else {
_x = (Number(my_x) + Number(xmov));
_y = (Number(my_y) + Number(ymov));
}
call("hittest");
Symbol 103 MovieClip Frame 3
gotoAndPlay (2);
Symbol 103 MovieClip Frame 4
n = 4;
c = 1;
while (Number(n) > 0) {
if (eval (("../seal" add n) add "/:imdead") == 0) {
shipx = getProperty("../seal" add n, _x);
shipy = getProperty("../seal" add n, _y);
shipwidth = getProperty("../seal" add n, _width) - c;
shipheight = getProperty("../seal" add n, _height) - c;
shiptop = shipy - (shipheight / 2);
shipbottom = Number(shipy) + Number(shipheight / 2);
shipleft = shipx - (shipwidth / 2);
shipright = Number(shipx) + Number(shipwidth / 2);
if ((((Number(my_x) > Number(shipleft)) and (Number(my_x) < Number(shipright))) and (Number(my_y) > Number(shiptop))) and (Number(my_y) < Number(shipbottom))) {
tellTarget ("../seal" add n) {
gotoAndStop ("hit");
};
power = power - 1;
if (Number(power) < 1) {
removeMovieClip("");
}
}
}
n = n - 1;
}
Symbol 104 MovieClip Frame 1
startDrag ("", true, 10, 10, 490, 390);
Symbol 105 MovieClip Frame 1
Set("/:time", int((Number(60000 - getTimer()) + Number(/:starttime)) / 1000));
tellTarget ("/timer") {
gotoAndStop(60 - /:time);
};
Symbol 105 MovieClip Frame 2
gotoAndPlay (1);
Symbol 110 MovieClip Frame 1
stop();
Set("../:ready", 1);
Symbol 110 MovieClip Frame 2
Set("../:ready", 0);
Symbol 111 MovieClip Frame 1
tellTarget ("/gun") {
call("shoot");
};
Symbol 112 Button
on (press) {
shooting = 1;
}
on (release, releaseOutside) {
shooting = 0;
}
Symbol 115 MovieClip Frame 1
gunx = _x;
guny = _y;
sx = getProperty("../ship", _x);
sy = getProperty("../ship", _y);
mouse_x = sx - gunx;
mouse_y = sy - guny;
if (Number(mouse_x) < 0) {
abs_mouse_x = Number(mouse_x) + Number(mouse_x * -2);
xsign = -1;
} else {
abs_mouse_x = mouse_x;
xsign = 1;
}
if (Number(mouse_y) < 0) {
abs_mouse_y = Number(mouse_y) + Number(mouse_y * -2);
ysign = -1;
} else {
abs_mouse_y = mouse_y;
ysign = 1;
}
input = Number(abs_mouse_x * abs_mouse_x) + Number(abs_mouse_y * abs_mouse_y);
call("sqrt");
hyp = output;
sin_theta = abs_mouse_y / hyp;
counter = 0;
found = 0;
while (!found) {
if (Number(substring(..:sine_lookup_table, Number(counter * 6) + 1, 5)) <= Number(sin_theta)) {
angle = counter;
} else {
found = 1;
}
counter = Number(counter) + 1;
}
if (Number(sx) < Number(gunx)) {
angle = Number(90 - angle) + 90;
}
if (Number(sy) > Number(guny)) {
angle = Number(angle) + 180;
} else {
angle = Number(90 - angle) + 90;
}
_rotation = angle;
divx = gunx - sx;
divy = guny - sy;
if (Number(shooting) == 0) {
if (Number(divx) > Number(/:threshold)) {
_x = (_x - /:playerspeed);
} else if (Number(divx) < Number(-/:threshold)) {
_x = (Number(_x) + Number(/:playerspeed));
}
if (Number(divy) > Number(/:threshold)) {
_y = (_y - /:playerspeed);
} else if (Number(divy) < Number(-/:threshold)) {
_y = (Number(_y) + Number(/:playerspeed));
}
}
call("hittest");
Symbol 115 MovieClip Frame 2
gotoAndPlay (1);
Symbol 115 MovieClip Frame 3
energy = energy - 1;
Set("/:score", /:score - 5);
tellTarget ("/health") {
nextFrame();
};
Symbol 115 MovieClip Frame 5
gotoAndPlay (1);
Symbol 115 MovieClip Frame 9
n = 1;
counter = 0;
while (Number(counter) < 11) {
n = n - (((n * n) - input) / (2 * n));
counter = Number(counter) + 1;
}
output = n;
Symbol 115 MovieClip Frame 14
if (Number(ready) == 1) {
Set("/:shots", Number(/:shots) + 1);
Set("/:shooting", 1);
shotname = Number(shotname) + 1;
if ((Number(shotname) >= 5999) or (Number(shotname) < 5000)) {
shotname = 5000;
}
duplicateMovieClip ("../gunshot", "shot" add shotname, shotname);
Set(("../shot" add shotname) add ":xpos", gunx);
Set(("../shot" add shotname) add ":ypos", guny);
if (Number(abs_mouse_x) >= Number(abs_mouse_y)) {
Set(("../shot" add shotname) add ":xmov", ..:shotspeed * xsign);
Set(("../shot" add shotname) add ":ymov", (..:shotspeed * (abs_mouse_y / abs_mouse_x)) * ysign);
} else {
Set(("../shot" add shotname) add ":ymov", ..:shotspeed * ysign);
Set(("../shot" add shotname) add ":xmov", (..:shotspeed * (abs_mouse_x / abs_mouse_y)) * xsign);
}
setProperty("../shot" add shotname, _rotation , angle);
setProperty("../shot" add shotname, _x , gunx);
setProperty("../shot" add shotname, _y , guny);
tellTarget ("player") {
play();
};
}
Symbol 115 MovieClip Frame 25
my_x = _x;
my_y = _y;
n = 4;
c = 1;
while (Number(n) > 0) {
if (eval (("../seal" add n) add "/:imdead") == 0) {
shipx = getProperty("../seal" add n, _x);
shipy = getProperty("../seal" add n, _y);
shipwidth = getProperty("../seal" add n, _width) - c;
shipheight = getProperty("../seal" add n, _height) - c;
shiptop = shipy - (shipheight / 2);
shipbottom = Number(shipy) + Number(shipheight / 2);
shipleft = shipx - (shipwidth / 2);
shipright = Number(shipx) + Number(shipwidth / 2);
if ((((Number(my_x) > Number(shipleft)) and (Number(my_x) < Number(shipright))) and (Number(my_y) > Number(shiptop))) and (Number(my_y) < Number(shipbottom))) {
tellTarget ("../seal" add n) {
gotoAndPlay ("hit");
};
Set("/:shooting", 0);
gotoAndPlay (3);
}
}
n = n - 1;
}
Symbol 115 MovieClip Frame 45
stop();
tellTarget ("/") {
gotoAndStop ("lose");
};
Symbol 120 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 60
stop();
tellTarget ("/") {
gotoAndStop ("win");
};
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 8
tellTarget ("/gun") {
gotoAndPlay ("dead");
};
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 2
tellTarget ("/health") {
gotoAndStop (1);
};
Symbol 134 MovieClip Frame 3
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 2
Set("/:playerspeed", Number(/:playerspeed) + 2);
Symbol 137 MovieClip Frame 3
stop();
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 2
Set("/:starttime", Number(/:starttime) + 10000);
tellTarget ("/timer") {
if (Number(_currentframe) < 11) {
gotoAndStop (1);
}
};
Symbol 139 MovieClip Frame 3
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 2
setProperty("/gunshot", _yscale , getProperty("/gunshot/", _yscale) * 1.4);
setProperty("/gunshot", _xscale , getProperty("/gunshot/", _xscale) * 1.1);
Set("/:shotpower", Number(/:shotpower) + 1);
Set("/:shotspeed", Number(/:shotspeed) + 3);
Symbol 142 MovieClip Frame 3
stop();
Symbol 143 MovieClip Frame 1
gotoAndStop(Number(random(4)) + 2);
Symbol 144 MovieClip Frame 1
stop();
if (_name ne "pickup") {
if ((substring(_name, 1, 4)) eq "powe") {
myx = Number(random(400)) + 50;
myy = Number(random(300)) + 50;
_x = myx;
_y = myy;
} else {
myx = _x;
myy = _y;
}
size = _width * 0.8;
gotoAndPlay (2);
}
Symbol 144 MovieClip Frame 2
if (Number(/:gameover) == 1) {
unloadMovie ();
}
divx = myx - getProperty("/gun/", _x);
divy = myy - getProperty("/gun/", _y);
if ((((Number(divx) < Number(size)) and (Number(divx) > Number(-size))) and (Number(divy) < Number(size))) and (Number(divy) > Number(-size))) {
gotoAndPlay (5);
}
Symbol 144 MovieClip Frame 4
count = Number(count) + 1;
if (Number(count) > 99) {
gotoAndPlay (13);
} else {
gotoAndPlay (2);
}
Symbol 144 MovieClip Frame 5
tellTarget ("power/powerup") {
play();
};
Symbol 144 MovieClip Frame 12
stop();
unloadMovie ();
Symbol 144 MovieClip Frame 15
call("check");
Symbol 144 MovieClip Frame 18
call("check");
Symbol 144 MovieClip Frame 21
call("check");
Symbol 144 MovieClip Frame 24
call("check");
Symbol 144 MovieClip Frame 27
call("check");
Symbol 144 MovieClip Frame 30
call("check");
Symbol 144 MovieClip Frame 33
call("check");
Symbol 144 MovieClip Frame 36
call("check");
Symbol 144 MovieClip Frame 39
call("check");
Symbol 144 MovieClip Frame 42
call("check");
Symbol 144 MovieClip Frame 45
call("check");
Symbol 144 MovieClip Frame 48
call("check");
Symbol 144 MovieClip Frame 51
call("check");
Symbol 144 MovieClip Frame 54
call("check");
Symbol 144 MovieClip Frame 57
call("check");
Symbol 144 MovieClip Frame 60
call("check");
Symbol 144 MovieClip Frame 63
call("check");
Symbol 144 MovieClip Frame 66
call("check");
Symbol 144 MovieClip Frame 71
stop();
unloadMovie ();
Symbol 145 MovieClip Frame 2
if ((Number(../:fps) < Number(../:fps_min)) or (Number(../:fps) > Number(../:fps_max))) {
chance = Number(chance) + 1;
}
if (Number(chance) > 30) {
gotoAndStop (14);
}
Symbol 145 MovieClip Frame 13
gotoAndPlay (2);
Symbol 145 MovieClip Frame 14
stop();
Set("/:compromised", 1);
unloadMovie ("../");
Symbol 146 MovieClip Frame 1
time = getTimer();
fps_min = 1;
fps_max = 35;
Symbol 146 MovieClip Frame 2
fps = int(1000 / (getTimer() - time));
Symbol 146 MovieClip Frame 11
time = getTimer();
Symbol 146 MovieClip Frame 12
gotoAndPlay (2);
Symbol 152 MovieClip Frame 1
stop();
gotoAndStop(../:colour);
Symbol 156 MovieClip Frame 4
stop();
Symbol 157 MovieClip Frame 1
stop();
gotoAndStop(../:colour);
Symbol 161 MovieClip Frame 1
hit = 0;
colour = Number(random(3)) + 1;
imdead = 0;
if ((_name eq "seal3") and (Number(/:wave) < 3)) {
unloadMovie ();
}
Symbol 161 MovieClip Frame 8
gotoAndPlay (2);
Symbol 161 MovieClip Frame 9
hit = 1;
Set("/:score", Number(Number(/:score) + 10) + Number(/:wave * 2));
deadrand = Number(random(999)) + 50;
duplicateMovieClip ("", "dead" add deadrand, deadrand);
Set("/:temp_colour", colour);
tellTarget ("/dead" add deadrand) {
colour = /:temp_colour;
gotoAndPlay ("dead");
};
unloadMovie ();
Symbol 161 MovieClip Frame 10
imdead = 1;
Symbol 161 MovieClip Frame 16
if (Number(random(6)) > 3) {
rand = random(99);
duplicateMovieClip ("/pickup", "collectable" add rand, Number(rand) + 3000);
setProperty("/collectable" add rand, _x , _x);
setProperty("/collectable" add rand, _y , _y);
}
Symbol 161 MovieClip Frame 23
stop();
unloadMovie ();
Symbol 164 MovieClip Frame 1
if ((_name eq "seal1") and (Number(/:wave) < 3)) {
Set("/:bugdeathcount", /:bugdeathcount - 1);
unloadMovie ();
} else if ((_name eq "seal2") and (Number(/:wave) < 5)) {
Set("/:bugdeathcount", /:bugdeathcount - 1);
unloadMovie ();
}
hit = 0;
colour = Number(random(6)) + 2;
size = (Number(random(75)) + 25) * (/:wave / 2);
energy = /:wave * (size / 50);
_xscale = size;
_yscale = size;
speed = Number(/:wave / (size / 100)) + 1;
Set("/:bugdeathcount", Number(/:bugdeathcount) + 1);
imdead = 0;
if ((_name eq "seal2") or (_name eq "seal4")) {
_y = (Number(random(400)) + 50);
} else if ((_name eq "seal1") or (_name eq "seal3")) {
_x = (Number(random(300)) + 50);
}
gotoAndPlay (2);
Symbol 164 MovieClip Frame 2
gunx = _x;
guny = _y;
sx = getProperty("../gun", _x);
sy = getProperty("../gun", _y);
mouse_x = sx - gunx;
mouse_y = sy - guny;
if (Number(mouse_x) < 0) {
abs_mouse_x = Number(mouse_x) + Number(mouse_x * -2);
xsign = -1;
} else {
abs_mouse_x = mouse_x;
xsign = 1;
}
if (Number(mouse_y) < 0) {
abs_mouse_y = Number(mouse_y) + Number(mouse_y * -2);
ysign = -1;
} else {
abs_mouse_y = mouse_y;
ysign = 1;
}
input = Number(abs_mouse_x * abs_mouse_x) + Number(abs_mouse_y * abs_mouse_y);
call("sqrt");
hyp = output;
sin_theta = abs_mouse_y / hyp;
counter = 0;
found = 0;
if ((Number(mouse_x) < Number(-2)) or (Number(mouse_x) > 0)) {
while (!found) {
if (Number(substring(..:sine_lookup_table, Number(counter * 6) + 1, 5)) <= Number(sin_theta)) {
angle = counter;
} else {
found = 1;
}
counter = Number(counter) + 1;
}
if (Number(sx) < Number(gunx)) {
angle = Number(90 - angle) + 90;
}
if (Number(sy) > Number(guny)) {
angle = Number(angle) + 180;
} else {
angle = Number(90 - angle) + 90;
}
_rotation = angle;
}
divx = gunx - sx;
divy = guny - sy;
Symbol 164 MovieClip Frame 3
if (Number(divx) > 1) {
_x = (_x - speed);
} else if (Number(divx) < Number(-1)) {
_x = (Number(_x) + Number(speed));
}
if (Number(divy) > 1) {
_y = (_y - speed);
} else if (Number(divy) < Number(-1)) {
_y = (Number(_y) + Number(speed));
}
Symbol 164 MovieClip Frame 4
gotoAndPlay (2);
Symbol 164 MovieClip Frame 6
n = 1;
counter = 0;
while (Number(counter) < 9) {
n = n - (((n * n) - input) / (2 * n));
counter = Number(counter) + 1;
}
output = n;
Symbol 164 MovieClip Frame 11
Set("/:score", Number(/:score) + 2);
energy = energy - 1;
if (Number(energy) < 1) {
Set("/:score", Number(/:score) + Number(int(size / 2)));
gotoAndPlay (15);
}
play();
Symbol 164 MovieClip Frame 13
gotoAndPlay (2);
Symbol 164 MovieClip Frame 15
imdead = 1;
hit = 1;
Symbol 164 MovieClip Frame 21
if (Number(random(3)) == 2) {
rand = random(99);
duplicateMovieClip ("/pickup", "collectable" add rand, Number(rand) + 3000);
setProperty("/collectable" add rand, _x , _x);
setProperty("/collectable" add rand, _y , _y);
}
Symbol 164 MovieClip Frame 28
Set("/:bugdeathcount", /:bugdeathcount - 1);
unloadMovie ();
Symbol 179 Button
on (press) {
score = 0;
gotoAndPlay (99);
}