Frame 75
ifFrameLoaded (469) {
gotoAndPlay (93);
}
Frame 77
gotoAndPlay (70);
Frame 193
Mouse.show();
stop();
Frame 194
loadVariablesNum ("score.txt?" add random(9999), 0);
stop();
Frame 195
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";
time = "250";
startDrag ("/ship", true, 0, 0, 550, 230);
Mouse.hide();
Frame 219
gotoAndPlay (220);
Frame 220
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";
time = 250;
startDrag ("/ship", true, 0, 0, 550, 230);
Frame 221
if (75 < Number(getProperty("/shield", _currentframe))) {
gotoAndPlay (359);
} else {
play();
}
time = time - 1;
Frame 222
if (time eq 0) {
time = "LEVEL COMPLETE - 1500 BONUS";
Set("/score:score", Number(/score:score) + 1500);
gotoAndPlay (364);
} else {
gotoAndPlay (221);
}
Frame 359
time = "KILLED IN ACTION";
tellTarget ("_root.dead") {
gotoAndPlay (2);
};
Frame 364
loadVariablesNum ("score.txt?" add random(9999), 0);
_quality = "HIGH";
Mouse.show();
play();
Frame 412
loadVariablesNum ("score.txt?" add random(9999), 0);
Frame 413
score = Number(_root.score:score);
Frame 414
if (score < score5) {
_root.gameover = 1;
} else {
_root.gameover = 1;
}
Frame 419
loadVariablesNum ("score.txt?" add random(9999), 0);
name = "";
stop();
Frame 420
score5 = score;
name5 = name;
loadVariables ("score.asp?action=sg", "", "POST");
gotoAndPlay (429);
Frame 421
score5 = score4;
name5 = name4;
score4 = score;
name4 = name;
loadVariables ("score.asp?action=sg", "", "POST");
gotoAndPlay (429);
Frame 422
score5 = score4;
name5 = name4;
score4 = score3;
name4 = name3;
score3 = score;
name3 = name;
loadVariables ("score.asp?action=sg", "", "POST");
gotoAndPlay (429);
Frame 423
score5 = score4;
name5 = name4;
score4 = score3;
name4 = name3;
score3 = score2;
name3 = name2;
score2 = score;
name2 = name;
loadVariables ("score.asp?action=sg", "", "POST");
gotoAndPlay (429);
Frame 424
score5 = score4;
name5 = name4;
score4 = score3;
name4 = name3;
score3 = score2;
name3 = name2;
score2 = score1;
name2 = name1;
score1 = score;
name1 = name;
loadVariables ("score.asp?action=sg", "", "POST");
gotoAndPlay (429);
Frame 451
gotoAndPlay (93);
Symbol 11 MovieClip Frame 1
if (this.sessionstarted != 1) {
this.arcade = new LoadVars();
this.sessionvars = new LoadVars();
this.arcade.gamename = "asteroids2000";
this.arcade.sessdo = "sessionstart";
this.arcade.sendAndLoad("arcade.php", sessionvars, "POST");
if (this.sessionvars.sessiontype != 2) {
_root.is_a_challenge = 0;
} else {
_root.is_a_challenge = 1;
}
this.sessionstarted = 1;
}
if (_root.gameover == 1) {
if ((this.askpermission != 1) && (this.sessionvars.connStatus == 1)) {
this.prequestvars = new LoadVars();
this.pranswer = new LoadVars();
this.prequestvars.gametime = this.sessionvars.gametime;
this.prequestvars.fakekey = this.sessionvars.initbar;
_root.score = int(Number(_root.score));
if (_root.score != 0) {
this.prequestvars.score = _root.score;
} else {
this.prequestvars.score = -1;
}
this.prequestvars.id = this.sessionvars.lastid;
this.prequestvars.sessdo = "permrequest";
this.prequestvars.note = (this.prequestvars.id * this.prequestvars.score) * this.prequestvars.fakekey;
this.prequestvars.sendAndLoad("./arcade.php", this.pranswer, "POST");
this.askpermission = 1;
}
if ((this.pranswer.validate == 1) && (this.finalsent != 1)) {
this.burnscore = new LoadVars();
this.burnscore.microone = this.pranswer.microone;
this.burnscore.gametime = this.prequestvars.gametime;
this.burnscore.id = this.prequestvars.id;
if (_root.score == 0) {
this.burnscore.noscore = 1;
}
this.burnscore.sessdo = "burn";
this.burnscore.send("./arcade.php", "_self", "POST");
this.finalsent = 1;
}
}
Symbol 20 Button
on (release) {
getURL ("http://www.dotcomcafe.co.uk", "_blank");
}
Symbol 22 Button
on (release) {
getURL ("http://www.jssmedia.com", "_blank");
}
Symbol 25 Button
on (release) {
getURL ("http://www.dotcomcafe.co.uk", "_blank");
}
Symbol 26 Button
on (release) {
getURL ("http://www.jssmedia.com", "_blank");
}
Symbol 27 MovieClip Frame 67
stop();
Symbol 47 Button
on (release) {
gotoAndPlay (195);
}
on (release) {
_quality = "LOW";
}
Symbol 52 MovieClip Frame 30
gotoAndPlay (1);
Symbol 53 MovieClip Frame 39
gotoAndPlay (10);
Symbol 55 Button
on (release) {
stopAllSounds();
}
on (release) {
gotoAndStop (2);
}
Symbol 56 Button
on (release) {
stopAllSounds();
}
on (release) {
gotoAndStop (2);
}
Symbol 57 Button
on (release) {
gotoAndStop (1);
}
Symbol 54 MovieClip Frame 1
stop();
Symbol 58 Button
on (release) {
nextFrame();
}
Symbol 59 Button
on (release) {
getURL ("http://www.dotcomcafe.co.uk", "_blank");
}
Symbol 60 Button
on (release) {
getURL ("http://www.jssmedia.com", "_blank");
}
Symbol 61 Button
on (release) {
gotoAndPlay (195);
}
on (release) {
_quality = "LOW";
}
Symbol 62 Button
on (release) {
prevFrame();
}
Symbol 70 Button
on (release) {
nextFrame();
}
Symbol 87 Button
on (release) {
if (Number(getProperty("/temp", _currentframe)) < 35) {
tellTarget ("/gunsfx") {
gotoAndPlay (3);
};
} else {
tellTarget ("/gun_right/gunB") {
gotoAndPlay (2);
};
tellTarget ("/gun_left/gunA") {
gotoAndPlay (2);
};
tellTarget ("/gunsfx") {
gotoAndPlay (2);
};
tellTarget ("/temp") {
gotoAndPlay(getProperty("/temp", _currentframe) - 2);
};
}
}
Symbol 91 MovieClip Frame 1
gotoAndStop (90);
Symbol 91 MovieClip Frame 2
gotoAndPlay (16);
Symbol 91 MovieClip Frame 3
gotoAndPlay (16);
Symbol 91 MovieClip Frame 4
gotoAndPlay (16);
Symbol 91 MovieClip Frame 5
gotoAndPlay (16);
Symbol 91 MovieClip Frame 6
gotoAndPlay (16);
Symbol 91 MovieClip Frame 7
gotoAndPlay (16);
Symbol 91 MovieClip Frame 8
gotoAndPlay (16);
Symbol 91 MovieClip Frame 9
gotoAndPlay (16);
Symbol 91 MovieClip Frame 10
gotoAndPlay (16);
Symbol 91 MovieClip Frame 11
gotoAndPlay (16);
Symbol 91 MovieClip Frame 12
gotoAndPlay (16);
Symbol 91 MovieClip Frame 13
gotoAndPlay (16);
Symbol 91 MovieClip Frame 14
gotoAndPlay (16);
Symbol 91 MovieClip Frame 15
gotoAndPlay (16);
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 15
stop();
Symbol 98 MovieClip Frame 30
stop();
Symbol 98 MovieClip Frame 45
stop();
Symbol 98 MovieClip Frame 60
stop();
Symbol 98 MovieClip Frame 75
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 3
gotoAndStop (1);
Symbol 104 MovieClip Frame 1
gunx = _x;
guny = _y;
sx = getProperty("../ship", _x);
sy = getProperty("../ship", _y);
mouse_x = getProperty("../ship", _x) - gunx;
mouse_y = getProperty("../ship", _y) - 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(sin_theta) >= Number(substring(..:sine_lookup_table, Number(counter * 6) + 1, 5))) {
angle = counter;
} else {
found = 1;
}
counter = Number(counter) + 1;
}
if (Number(sx) < Number(gunx)) {
angle = Number(90 - angle) + 90;
}
if (Number(guny) < Number(sy)) {
angle = Number(angle) + 180;
} else {
angle = Number(90 - angle) + 90;
}
_rotation = angle;
shootnow = Number(random(100)) + 1;
if (Number(shootchance) >= Number(shootnow)) {
shotname = Number(shotname) + 1;
if (Number(shotname) >= 1000) {
shotname = 1;
}
duplicateMovieClip ("../star", "shot" add shotname, shotname);
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);
}
Symbol 104 MovieClip Frame 2
gotoAndPlay (1);
Symbol 104 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 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 3
gotoAndStop (1);
Symbol 109 MovieClip Frame 1
gunx = _x;
guny = _y;
sx = getProperty("../ship", _x);
sy = getProperty("../ship", _y);
mouse_x = getProperty("../ship", _x) - gunx;
mouse_y = getProperty("../ship", _y) - 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(sin_theta) >= Number(substring(..:sine_lookup_table, Number(counter * 6) + 1, 5))) {
angle = counter;
} else {
found = 1;
}
counter = Number(counter) + 1;
}
if (Number(sx) < Number(gunx)) {
angle = Number(90 - angle) + 90;
}
if (Number(guny) < Number(sy)) {
angle = Number(angle) + 180;
} else {
angle = Number(90 - angle) + 90;
}
_rotation = angle;
shootnow = Number(random(100)) + 1;
if (Number(shootchance) >= Number(shootnow)) {
shotname = Number(shotname) + 1;
if (Number(shotname) >= 1000) {
shotname = 1;
}
duplicateMovieClip ("../star", "shot" add shotname, shotname);
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);
}
Symbol 109 MovieClip Frame 2
gotoAndPlay (1);
Symbol 109 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 114 MovieClip Frame 1
score = "0";
Symbol 114 MovieClip Frame 2
stop();
Symbol 114 MovieClip Frame 3
score = Number(score) + 50;
gotoAndStop (2);
Symbol 114 MovieClip Frame 4
score = Number(score) + 100;
gotoAndStop (2);
Symbol 125 Button
on (release) {
prevFrame();
}
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 2
gotoAndStop (1);
Symbol 126 MovieClip Frame 3
gotoAndStop (1);
Symbol 130 Button
on (release) {
getURL ("http://www.dotcomcafe.co.uk", "_blank");
}
Symbol 131 Button
on (release) {
getURL ("http://www.jssmedia.com", "_blank");
}
Symbol 134 Button
on (release) {
if (Number(getProperty("/temp", _currentframe)) < 35) {
tellTarget ("/gunsfx") {
gotoAndPlay (3);
};
} else {
tellTarget ("/gun_right/gunB") {
gotoAndPlay (2);
};
tellTarget ("/gun_left/gunA") {
gotoAndPlay (2);
};
tellTarget ("/gunsfx") {
gotoAndPlay (2);
};
tellTarget ("/temp") {
gotoAndPlay(getProperty("/temp", _currentframe) - 2);
};
}
}
Symbol 135 Button
on (release) {
if (Number(getProperty("/temp", _currentframe)) < 35) {
tellTarget ("/gunsfx") {
gotoAndPlay (3);
};
} else {
tellTarget ("/gun_right/gunB") {
gotoAndPlay (2);
};
tellTarget ("/gun_left/gunA") {
gotoAndPlay (2);
};
tellTarget ("/gunsfx") {
gotoAndPlay (2);
};
tellTarget ("/temp") {
gotoAndPlay(getProperty("/temp", _currentframe) - 4);
};
}
}
Symbol 138 Button
on (release) {
if (Number(getProperty("/temp", _currentframe)) < 35) {
tellTarget ("/gunsfx") {
gotoAndPlay (3);
};
} else {
gotoAndPlay (5);
tellTarget ("/gunsfx") {
gotoAndPlay (2);
};
tellTarget ("/temp") {
gotoAndPlay(getProperty("/temp", _currentframe) - 2);
};
}
}
Symbol 140 Button
on (release) {
if (Number(getProperty("/temp", _currentframe)) < 35) {
tellTarget ("/gunsfx") {
gotoAndPlay (3);
};
} else {
gotoAndPlay (5);
tellTarget ("/gunsfx") {
gotoAndPlay (2);
};
tellTarget ("/temp") {
gotoAndPlay(getProperty("/temp", _currentframe) - 2);
};
}
}
Symbol 136 MovieClip Frame 1
_x = (Number(random(510)) + 20);
_y = (Number(random(220)) + 20);
_xscale = "10";
_yscale = "10";
speed = Number(random(5)) + 2;
rotate = Number(random(2)) + 1;
Symbol 136 MovieClip Frame 2
_xscale = (Number(_xscale) + Number(speed));
_yscale = (Number(_yscale) + Number(speed));
_rotation = (Number(_rotation) + Number(rotate));
Symbol 136 MovieClip Frame 3
_xscale = (Number(_xscale) + Number(speed));
_yscale = (Number(_yscale) + Number(speed));
_rotation = (Number(_rotation) + Number(rotate));
if (190 < Number(_xscale)) {
tellTarget ("/shield") {
play();
};
gotoAndPlay (1);
} else {
gotoAndPlay (2);
}
Symbol 136 MovieClip Frame 5
tellTarget ("/score") {
gotoAndPlay (3);
};
Symbol 144 Button
on (release) {
if (Number(getProperty("/temp", _currentframe)) < 35) {
tellTarget ("/gunsfx") {
gotoAndPlay (3);
};
} else {
gotoAndPlay (5);
tellTarget ("/gunsfx") {
gotoAndPlay (2);
};
tellTarget ("/temp") {
gotoAndPlay(getProperty("/temp", _currentframe) - 2);
};
}
}
Symbol 145 Button
on (release) {
if (Number(getProperty("/temp", _currentframe)) < 35) {
tellTarget ("/gunsfx") {
gotoAndPlay (3);
};
} else {
gotoAndPlay (5);
tellTarget ("/gunsfx") {
gotoAndPlay (2);
};
tellTarget ("/temp") {
gotoAndPlay(getProperty("/temp", _currentframe) - 2);
};
}
}
Symbol 142 MovieClip Frame 1
_x = (Number(random(510)) + 20);
_y = (Number(random(220)) + 20);
_xscale = "10";
_yscale = "10";
speed = Number(random(20)) + 3;
rotate = Number(random(3)) + 1;
Symbol 142 MovieClip Frame 2
_xscale = (Number(_xscale) + Number(speed));
_yscale = (Number(_yscale) + Number(speed));
_rotation = (Number(_rotation) + Number(rotate));
Symbol 142 MovieClip Frame 3
_xscale = (Number(_xscale) + Number(speed));
_yscale = (Number(_yscale) + Number(speed));
_rotation = (Number(_rotation) + Number(rotate));
if (350 < Number(_xscale)) {
tellTarget ("/shield") {
play();
};
gotoAndPlay (1);
} else {
gotoAndPlay (2);
}
Symbol 142 MovieClip Frame 5
tellTarget ("/score") {
gotoAndPlay (4);
};
Symbol 146 MovieClip Frame 1
score = "0";
Symbol 146 MovieClip Frame 2
stop();
Symbol 146 MovieClip Frame 3
score = Number(score) + 50;
gotoAndStop (2);
Symbol 146 MovieClip Frame 4
score = Number(score) + 100;
gotoAndStop (2);
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 60
stop();
Symbol 151 Button
on (release) {
if (Number(getProperty("/temp", _currentframe)) < 35) {
tellTarget ("/gunsfx") {
gotoAndPlay (3);
};
} else {
tellTarget ("/gun_right/gunB") {
gotoAndPlay (2);
};
tellTarget ("/gun_left/gunA") {
gotoAndPlay (2);
};
tellTarget ("/gunsfx") {
gotoAndPlay (2);
};
tellTarget ("/temp") {
gotoAndPlay(getProperty("/temp", _currentframe) - 4);
};
}
}
Symbol 152 Button
on (release) {
getURL ("http://www.dotcomcafe.co.uk", "_blank");
}
Symbol 153 Button
on (release) {
getURL ("http://www.jssmedia.com", "_blank");
}
Symbol 154 MovieClip Frame 50
stop();
Symbol 159 Button
on (release) {
if ((score >= score5) and (score < score4)) {
gotoAndPlay (420);
} else if ((score >= score4) and (score < score3)) {
gotoAndPlay (421);
} else if ((score >= score3) and (score < score2)) {
gotoAndPlay (422);
} else if ((score >= score2) and (score < score1)) {
gotoAndPlay (423);
} else if (score >= score1) {
gotoAndPlay (424);
} else if (score < score5) {
gotoAndPlay (429);
}
}
Symbol 166 Button
on (release) {
if ((score >= score5) and (score < score4)) {
gotoAndPlay (420);
} else if ((score >= score4) and (score < score3)) {
gotoAndPlay (421);
} else if ((score >= score3) and (score < score2)) {
gotoAndPlay (422);
} else if ((score >= score2) and (score < score1)) {
gotoAndPlay (423);
} else if (score >= score1) {
gotoAndPlay (424);
} else if (score < score5) {
gotoAndPlay (429);
}
}
Symbol 167 Button
on (release) {
if ((score >= score5) and (score < score4)) {
gotoAndPlay (420);
} else if ((score >= score4) and (score < score3)) {
gotoAndPlay (421);
} else if ((score >= score3) and (score < score2)) {
gotoAndPlay (422);
} else if ((score >= score2) and (score < score1)) {
gotoAndPlay (423);
} else if (score >= score1) {
gotoAndPlay (424);
} else if (score < score5) {
gotoAndPlay (429);
}
}
Symbol 168 Button
on (release) {
if ((score >= score5) and (score < score4)) {
gotoAndPlay (420);
} else if ((score >= score4) and (score < score3)) {
gotoAndPlay (421);
} else if ((score >= score3) and (score < score2)) {
gotoAndPlay (422);
} else if ((score >= score2) and (score < score1)) {
gotoAndPlay (423);
} else if (score >= score1) {
gotoAndPlay (424);
} else if (score < score5) {
gotoAndPlay (429);
}
}