Frame 1
function location_check() {
if (_url.toLowerCase().indexOf("uploads.ungrounded") == -1) {
coveritall.gotoAndStop(2);
_root.stop();
} else {
play();
}
}
if (!debug) {
location_check();
}
sfx = 0;
totalbytes = _root.getBytesTotal();
bytesloaded = _root.getBytesLoaded();
percent = int((bytesloaded / totalbytes) * 100);
if (percent < 0) {
percent = 0;
}
_root.loader.gotoAndStop(int(_root.percent / 2));
Frame 2
_root.gameid = 9;
if (bytesloaded >= totalbytes) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Frame 3
_root.attachMovie("mouser", "mw", 6010);
Mouse.hide();
startDrag ("mw", true);
baseship = "dot";
_quality = "HIGH";
function ingamemusic(ingame) {
var _local1 = ingame;
if (_root.sfx != 1) {
if (_local1 <= 0) {
i = random(4) + 1;
if (i < 1) {
i = 1;
}
if (i > 4) {
i = 4;
}
if (i == 1) {
bg1.start(0, 8000);
menusound = 0;
_local1 = 1;
}
if (i == 2) {
bg2.start(0, 8000);
menusound = 0;
_local1 = 2;
}
if (i == 3) {
bg3.start(0, 8000);
menusound = 0;
_local1 = 3;
}
if (i == 4) {
bg4.start(0, 8000);
menusound = 0;
_local1 = 4;
}
return;
}
if (_local1 == 1) {
bg1.start(0, 8000);
menusound = 0;
_local1 = 1;
return;
}
if (_local1 == 2) {
bg2.start(0, 8000);
menusound = 0;
_local1 = 2;
return;
}
if (_local1 == 3) {
bg3.start(0, 8000);
menusound = 0;
_local1 = 3;
return;
}
bg4.start(0, 8000);
menusound = 0;
_local1 = 4;
}
}
_root.createEmptyMovieClip("clip1", 4001);
_root.createEmptyMovieClip("clip2", 4002);
_root.createEmptyMovieClip("clip3", 4003);
_root.createEmptyMovieClip("clip4", 4004);
_root.createEmptyMovieClip("clip5", 4005);
_root.createEmptyMovieClip("clip6", 4006);
_root.createEmptyMovieClip("clip7", 4007);
combine = new Sound(clip1);
mybutton = new Sound(clip5);
bg1 = new Sound(clip2);
bg2 = new Sound(clip3);
bg3 = new Sound(clip4);
bg4 = new Sound(clip6);
slam = new Sound(clip7);
mybutton.attachSound("buttonsound");
combine.attachSound("combine");
combine.setVolume(40);
slam.attachSound("slam");
bg1.attachSound("bg1");
bg1.setVolume(30);
bg2.attachSound("bg2");
bg2.setVolume(30);
bg3.attachSound("bg3");
bg3.setVolume(30);
bg4.attachSound("bg4");
bg4.setVolume(30);
function buildscorearray() {
var _local1 = _root;
_local1.core1c = Math.abs(_local1.core1c);
_local1.core2c = Math.abs(_local1.core2c);
_local1.core3c = Math.abs(_local1.core3c);
_local1.core4c = Math.abs(_local1.core4c);
_local1.core5c = Math.abs(_local1.core5c);
_local1.score1 = Array(_local1.core1a, _local1.core1b, _local1.core1c, _local1.core1d);
_local1.score2 = Array(_local1.core2a, _local1.core2b, _local1.core2c, _local1.core2d);
_local1.score3 = Array(_local1.core3a, _local1.core3b, _local1.core3c, _local1.core3d);
_local1.score4 = Array(_local1.core4a, _local1.core4b, _local1.core4c, _local1.core4d);
_local1.score5 = Array(_local1.core5a, _local1.core5b, _local1.core5c, _local1.core5d);
}
function topfiver(thisscore) {
var _local1 = _root;
var _local2 = thisscore;
buildscorearray();
if ((_local2 > _local1.score5[2]) && (_local2 <= _local1.score4[2])) {
_local1.top5namese = "YOU";
_local1.top5scorese = _local2;
_local1.top5datee = "TODAY";
_local1.top5namesd = _local1.score4[1];
_local1.top5scoresd = _local1.score4[2];
_local1.top5dated = _local1.score4[3];
_local1.top5namesc = _local1.score3[1];
_local1.top5scoresc = _local1.score3[2];
_local1.top5datec = _local1.score3[3];
_local1.top5namesb = _local1.score2[1];
_local1.top5scoresb = _local1.score2[2];
_local1.top5dateb = _local1.score2[3];
_local1.top5namesa = _local1.score1[1];
_local1.top5scoresa = _local1.score1[2];
_local1.top5datea = _local1.score1[3];
_local1.replaceid = _local1.score5[0];
_local1.replacescore = _local2;
} else if ((_local2 > _local1.score4[2]) && (_local2 <= _local1.score3[2])) {
_local1.top5namese = _local1.score4[1];
_local1.top5scorese = _local1.score4[2];
_local1.top5datee = _local1.score4[3];
_local1.top5namesd = "YOU";
_local1.top5scoresd = _local2;
_local1.top5dated = "TODAY";
_local1.top5namesc = _local1.score3[1];
_local1.top5scoresc = _local1.score3[2];
_local1.top5datec = _local1.score3[3];
_local1.top5namesb = _local1.score2[1];
_local1.top5scoresb = _local1.score2[2];
_local1.top5dateb = _local1.score2[3];
_local1.top5namesa = _local1.score1[1];
_local1.top5scoresa = _local1.score1[2];
_local1.top5datea = _local1.score1[3];
_local1.replaceid = _local1.score4[0];
_local1.replacescore = _local2;
} else if ((_local2 > _local1.score3[2]) && (_local2 <= _local1.score2[2])) {
_local1.top5namese = _local1.score4[1];
_local1.top5scorese = _local1.score4[2];
_local1.top5datee = _local1.score4[3];
_local1.top5namesd = _local1.score3[1];
_local1.top5scoresd = _local1.score3[2];
_local1.top5dated = _local1.score3[3];
_local1.top5namesc = "YOU";
_local1.top5scoresc = _local2;
_local1.top5datec = "TODAY";
_local1.top5namesb = _local1.score2[1];
_local1.top5scoresb = _local1.score2[2];
_local1.top5dateb = _local1.score2[3];
_local1.top5namesa = _local1.score1[1];
_local1.top5scoresa = _local1.score1[2];
_local1.top5datea = _local1.score1[3];
_local1.replaceid = _local1.score3[0];
_local1.replacescore = _local2;
} else if ((_local2 > _local1.score2[2]) && (_local2 <= _local1.score1[2])) {
_local1.top5namese = _local1.score4[1];
_local1.top5scorese = _local1.score4[2];
_local1.top5datee = _local1.score4[3];
_local1.top5namesd = _local1.score3[1];
_local1.top5scoresd = _local1.score3[2];
_local1.top5dated = _local1.score3[3];
_local1.top5namesc = _local1.score2[1];
_local1.top5scoresc = _local1.score2[2];
_local1.top5datec = _local1.score2[3];
_local1.top5namesb = "YOU";
_local1.top5scoresb = _local2;
_local1.top5dateb = "TODAY";
_local1.top5namesa = _local1.score1[1];
_local1.top5scoresa = _local1.score1[2];
_local1.top5datea = _local1.score1[3];
_local1.replaceid = _local1.score2[0];
_local1.replacescore = _local2;
} else if (_local2 > _local1.score1[2]) {
_local1.top5namese = _local1.score4[1];
_local1.top5scorese = _local1.score4[2];
_local1.top5datee = _local1.score4[3];
_local1.top5namesd = _local1.score3[1];
_local1.top5scoresd = _local1.score3[2];
_local1.top5dated = _local1.score3[3];
_local1.top5namesc = _local1.score2[1];
_local1.top5scoresc = _local1.score2[2];
_local1.top5datec = _local1.score2[3];
_local1.top5namesb = _local1.score1[1];
_local1.top5scoresb = _local1.score1[2];
_local1.top5dateb = _local1.score1[3];
_local1.top5namesa = "YOU";
_local1.top5scoresa = _local2;
_local1.top5datea = "TODAY";
_local1.replaceid = _local1.score1[0];
_local1.replacescore = _local2;
} else {
_local1.top5namese = _local1.score5[1];
_local1.top5scorese = _local1.score5[2];
_local1.top5datee = _local1.score5[3];
_local1.top5namesd = _local1.score4[1];
_local1.top5scoresd = _local1.score4[2];
_local1.top5dated = _local1.score4[3];
_local1.top5namesc = _local1.score3[1];
_local1.top5scoresc = _local1.score3[2];
_local1.top5datec = _local1.score3[3];
_local1.top5namesb = _local1.score2[1];
_local1.top5scoresb = _local1.score2[2];
_local1.top5dateb = _local1.score2[3];
_local1.top5namesa = _local1.score1[1];
_local1.top5scoresa = _local1.score1[2];
_local1.top5datea = _local1.score1[3];
_local1.replaceid = 0;
}
}
ingame = 0;
stop();
Frame 4
call("fadescreen");
Frame 5
call("fadescreen");
Frame 6
function onpause(trigger) {
if (trigger == 1) {
duplicateMovieClip ("pausing", "pauser", 3000);
setProperty("pauser", _alpha , 100);
setProperty("pauser", _x , 250);
setProperty("pauser", _y , 228);
}
if (trigger == 0) {
pauser.removeMovieClip();
}
}
function onqual(trigger) {
duplicateMovieClip ("qualityannounce", "qualt", 3001);
setProperty("qualt", _alpha , 100);
setProperty("qualt", _x , 250);
setProperty("qualt", _y , 228);
if (trigger == 1) {
qualt.gotoAndPlay(2);
} else if (trigger == 2) {
qualt.gotoAndPlay(10);
}
}
Movieclip.prototype.clrscr = function () {
var _local2 = _root;
removeMovieClip(_local2.pop);
var _local1 = 0;
while (_local1 < allb.length) {
removeMovieClip(_local2[allb[_local1]]);
_local1++;
}
};
Movieclip.prototype.popscore = function (mc, score) {
var _local1 = _root;
var _local2 = mc;
_local1.attachmovie("pop", "pop", /:popdepth);
_local1.pop._x = _local1[_local2]._x;
_local1.pop._y = _local1[_local2]._y;
_local1.pop.a.ad = score;
_local1.pop.follow = _local2;
};
Movieclip.prototype.create = function () {
var _local2 = _root;
_local2.attachmovie(_local2.baseship, "b" + /:b, /:b);
/:allb.push("b" + /:b);
var _local1 = _local2["b" + /:b];
if (random(100) > 50) {
_local1._x = 0;
_local1._y = random(ymax);
} else {
_local1._x = random(xmax);
_local1._y = 0;
}
_local1.cl = /:carray.pop();
Set("/:b", /:b + 1);
};
Movieclip.prototype.line2line = function (px1, py1, px2, py2, qx1, qy1, qx2, qy2) {
var _local2 = px1;
var _local3 = qx1;
if (py2 == py1) {
py2 = py1 + 1E-6;
} else if (px2 == _local2) {
px2 = _local2 + 1E-6;
}
var deltax = (px2 - _local2);
var deltay = (py2 - py1);
var pm = (deltay / deltax);
var pb = (py1 - (pm * _local2));
if (qy2 == qy1) {
qy2 = qy1 + 1E-6;
} else if (qx2 == _local3) {
qx2 = _local3 + 1E-6;
}
deltax = qx2 - _local3;
deltay = qy2 - qy1;
var _local1 = deltay / deltax;
var qb = (qy1 - (_local1 * _local3));
if (pm != _local1) {
var xi = ((qb - pb) / (pm - _local1));
var yi = ((_local1 * xi) + qb);
var t = ((xi - _local3) / (qx2 - _local3));
var s = ((xi - _local2) / (px2 - _local2));
if (((t >= 0) and (t <= 1)) and ((s >= 0) and (s <= 1))) {
this.xpc = xi;
this.ypc = yi;
return(true);
}
return(false);
}
return(false);
};
Movieclip.prototype.removing = function (target, arr) {
var found = 0;
var i = 0;
var n = 0;
while (!found) {
if (eval (arr)[i] eq target) {
n = i;
found = 1;
}
i = i + 1;
}
eval (arr).splice(n, 1);
};
Array.prototype.randomize = function () {
return(this.sort(function (a, b) {
return(((Math.floor(Math.random() * 2) == 0) ? 1 : -1));
}));
};
Movieclip.prototype.rad = function (qdeg) {
return(qdeg * (Math.PI/180));
};
Movieclip.prototype.deg = function (qrad) {
return(qrad * 57.2957795130823);
};
Frame 8
level = 0;
score = 0;
stopAllSounds();
Frame 9
call("pro");
xmin = -10;
ymin = -10;
xmax = 510;
ymax = 460;
canpress = 0;
finish = 1;
point = [0, 0, 10, 30, 50, 80, 120, 160, 210, 260, 320, 380, 420, 460, 500, 550, 600, 650, 700, 750, 800, 850, 900, 950, 1000, 1050, 1100, 1150, 1200, 1250, 1300, 1350, 1400];
drawtimenow = 0;
drawtimemax = 180;
levels = [[8, 8], [8, 8, 8], [8, 8, 8, 8], [8, 8, 8, 8, 8], [20, 2, 2, 20, 2], [10, 5, 5, 10, 5], [5, 20, 2, 10, 2], [20, 20, 20, 20, 20], [30, 30, 30, 30, 30], [1, 1, 1, 1, 33]];
levelname = ["Beginner Level", "Trifecta", "Quads", "Quints", "Nebulus Corridor", "SpaceWays", "Transwarp", "Subspace Traffic", "Commerce Nightmare", "Imperium Transit"];
times = [1500, 2250, 3000, 5500, 3000, 4550, 11250, 9000, 20500, 2250];
time = times[level];
timebonuspoint = 1;
finishpoint = 1000;
onesec = 25;
totalcolor = levels[level].length;
carray = [];
var i = 0;
while (i < totalcolor) {
var f = 0;
while (f < levels[level][i]) {
carray.push(i + 1);
f++;
}
i++;
}
carray.randomize();
cmax = 30;
ztinkstatus = 0;
skastep = new Array(0, 120, 160, 200, 240, 999);
popdepth = 1500;
levelinfodepth = 1600;
b = 100;
Set("/:allb", []);
if (cmax > /:carray.length) {
max = /:carray.length;
} else {
max = cmax;
}
var i = 0;
while (i < max) {
_root.attachmovie(_root.baseship, "b" + /:b, /:b);
/:allb.push("b" + /:b);
var ob = _root["b" + /:b];
ob._x = random(xmax);
ob._y = random(ymax);
ob.cl = /:carray.pop();
Set("/:b", /:b + 1);
i++;
}
attachmovie("levelinfo", "levelinfo", levelinfodepth);
levelinfo._x = 250;
levelinfo._y = 228;
call("fadescreen");
Frame 12
stop();
Frame 13
call("fadescreen");
clrscr();
Frame 15
gotoAndPlay ("gameover");
Frame 16
call("fadescreen");
clrscr();
Set("/:score", /:score + /:finishpoint);
Frame 18
gotoAndPlay ("gameover");
Frame 19
stopAllSounds();
stop();
call("fadescreen");
Frame 20
createemptymovieclip("coverscr", 15999);
var d = this.coverscr;
with (d) {
lineStyle(1, 16777215, 100);
beginfill(16777215, 100);
moveto(-5000, -5000);
lineto(5000, -5000);
lineto(5000, 5000);
lineto(-5000, 5000);
endfill();
d.onEnterFrame = function () {
_alpha = _alpha - 10;
if (_alpha <= 0) {
removeMovieClip("");
stop();
}
};
}
Symbol 13 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 1
gotoAndStop(../:cl);
Symbol 39 MovieClip [dotlow] Frame 1
jointo = "";
ska = 100;
skastepnow = 1;
mass = 5;
bounce = 1;
angle = (random(300) - 150) / 100;
velocity = 1.5;
ran = 30;
ranhalf = 15;
steerforce = 0.5 * velocity;
da = 0;
sdis = velocity * 30;
srad = velocity * 20;
Symbol 39 MovieClip [dotlow] Frame 2
da = da + ((random(ran) - ranhalf) / 100);
sx = math.cos(angle) * sdis;
sy = math.sin(angle) * sdis;
vx = math.cos(angle) * velocity;
vy = math.sin(angle) * velocity;
dx = sx + (math.cos(da) * srad);
dy = sy + (math.sin(da) * srad);
doa = math.atan2(dy, dx);
steerx = steerforce * Math.cos(doa);
steery = steerforce * Math.sin(doa);
vx = vx + steerx;
vy = vy + steery;
_x = (_x + vx);
_y = (_y + vy);
angle = math.atan2(vy, vx);
a._rotation = deg(angle);
if (_x < /:xmin) {
_x = /:xmax;
} else if (_x > /:xmax) {
_x = /:xmin;
}
if (_y < /:ymin) {
_y = /:ymax;
} else if (_y > /:ymax) {
_y = /:ymin;
}
_xscale = ska;
_yscale = ska;
if (ska > /:skastep[skastepnow]) {
skastepnow = skastepnow + 1;
a.a.nextFrame();
}
Symbol 39 MovieClip [dotlow] Frame 3
if (_root.pausegame != 1) {
if (jointo eq "") {
prevFrame();
play();
} else {
gotoAndPlay (6);
}
} else {
gotoAndPlay (4);
}
Symbol 39 MovieClip [dotlow] Frame 4
if (_root.pausegame != 1) {
gotoAndPlay (2);
} else {
play();
}
Symbol 39 MovieClip [dotlow] Frame 5
gotoAndPlay (4);
Symbol 39 MovieClip [dotlow] Frame 6
var t = _root[jointo];
Symbol 39 MovieClip [dotlow] Frame 7
a._rotation = deg(math.atan2(t._y - _y, t._x - _x));
_x = (t._x + ((_x - t._x) / 1.6));
_y = (t._y + ((_y - t._y) / 1.6));
Symbol 39 MovieClip [dotlow] Frame 8
dis = ((t._x - _x) * (t._x - _x)) + ((t._y - _y) * (t._y - _y));
if (dis > 100) {
prevFrame();
play();
} else {
t.ska = t.ska + (0.1 * ska);
t.ska = t.ska + (0.1 * ska);
if (!_root.ztinkstatus) {
if (_root.sfx != 1) {
_root.combine.start();
}
_root.ztinkstatus = 1;
}
removing(_name, "/:allb");
if (/:carray.length > 0) {
create();
}
if (/:allb.length <= /:totalcolor) {
Set("/:finish", 1);
_root.attachmovie("levelfinish", "levelinfo", /:levelinfodepth);
_root.levelinfo._x = 250;
_root.levelinfo._y = 228;
}
removeMovieClip("");
stop();
}
Symbol 52 MovieClip Frame 1
level = /:level + 1;
levelname = _root.levelname[/:level];
Symbol 53 MovieClip Frame 1
_parent.stop();
d = _name;
Symbol 53 MovieClip Frame 2
d = d - 1;
Symbol 53 MovieClip Frame 3
if (d) {
prevFrame();
play();
} else {
_parent.play();
stop();
}
Symbol 54 MovieClip [levelinfo] Frame 1
i = random(4) + 1;
_root.ingamemusic(i);
if (_root.ingame == 1) {
_root.bg1.setVolume(10);
} else if (_root.ingame == 2) {
_root.bg2.setVolume(10);
} else if (_root.ingame == 3) {
_root.bg3.setVolume(10);
} else {
_root.bg4.setVolume(10);
}
Set("/:canpress", 0);
Symbol 54 MovieClip [levelinfo] Frame 5
if (_root.ingame == 1) {
_root.bg1.setVolume(15);
} else if (_root.ingame == 2) {
_root.bg2.setVolume(15);
} else if (_root.ingame == 3) {
_root.bg3.setVolume(15);
} else {
_root.bg4.setVolume(15);
}
Symbol 54 MovieClip [levelinfo] Frame 9
if (_root.ingame == 1) {
_root.bg1.setVolume(20);
} else if (_root.ingame == 2) {
_root.bg2.setVolume(20);
} else if (_root.ingame == 3) {
_root.bg3.setVolume(20);
} else {
_root.bg4.setVolume(20);
}
Symbol 54 MovieClip [levelinfo] Frame 10
if (_root.pausegame == 1) {
prevFrame();
play();
}
Symbol 54 MovieClip [levelinfo] Frame 13
if (_root.ingame == 1) {
_root.bg1.setVolume(25);
} else if (_root.ingame == 2) {
_root.bg2.setVolume(25);
} else if (_root.ingame == 3) {
_root.bg3.setVolume(25);
} else {
_root.bg4.setVolume(25);
}
Symbol 54 MovieClip [levelinfo] Frame 17
if (_root.ingame == 1) {
_root.bg1.setVolume(45);
} else if (_root.ingame == 2) {
_root.bg2.setVolume(45);
} else if (_root.ingame == 3) {
_root.bg3.setVolume(45);
} else {
_root.bg4.setVolume(45);
}
Symbol 54 MovieClip [levelinfo] Frame 25
Set("/:canpress", 1);
Set("/:finish", 0);
removeMovieClip("");
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 25
stop();
Symbol 87 MovieClip Frame 50
stop();
Symbol 98 Button
on (release) {
if (_root.sfx != 1) {
_root.mybutton.start();
}
getURL ("http://www.isskerberos.org", "_self");
}
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 2
stop();
Symbol 110 Button
on (release) {
if (_root.sfx != 1) {
_root.mybutton.start();
}
gotoAndStop ("credits");
}
Symbol 114 Button
on (release) {
if (_root.sfx != 1) {
_root.mybutton.start();
}
gotoAndStop ("rules");
}
Symbol 119 Button
on (release) {
var preventCaching = (getTimer() + random(10000));
loadVariablesNum ((("http://www.isskerberos.org/gamescore/top5.php?gameid=" + _root.gameid) + "&preventCache=") + preventCaching, 0);
if (_root.sfx != 1) {
_root.mybutton.start();
}
gotoAndPlay (6);
}
Symbol 124 Button
on (release) {
if (_root.sfx != 1) {
_root.mybutton.start();
}
gotoAndStop ("menu");
}
Symbol 140 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 2
stop();
Symbol 142 Button
on (release) {
nextFrame();
}
Symbol 150 Button
on (release) {
prevFrame();
}
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 2
stop();
Symbol 171 MovieClip Frame 3
stop();
Symbol 171 MovieClip Frame 4
stop();
Symbol 171 MovieClip Frame 5
stop();
Symbol 171 MovieClip Frame 6
stop();
Instance of Symbol 168 MovieClip "pkey" in Symbol 171 MovieClip Frame 6
onClipEvent (load) {
label = "P";
stop();
}
Instance of Symbol 168 MovieClip "qkey" in Symbol 171 MovieClip Frame 6
onClipEvent (load) {
label = "Q";
stop();
}
Symbol 171 MovieClip Frame 7
stop();
Symbol 180 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 1
gotoAndStop(../:cl);
Symbol 206 MovieClip [dot] Frame 1
jointo = "";
ska = 100;
skastepnow = 1;
mass = 5;
bounce = 1;
angle = (random(300) - 150) / 100;
velocity = 1.5;
ran = 30;
ranhalf = 15;
steerforce = 0.5 * velocity;
da = 0;
sdis = velocity * 30;
srad = velocity * 20;
Symbol 206 MovieClip [dot] Frame 2
if (_quality == "LOW") {
ahigh._visible = false;
alow._visible = true;
} else {
ahigh._visible = true;
alow._visible = false;
}
da = da + ((random(ran) - ranhalf) / 100);
sx = math.cos(angle) * sdis;
sy = math.sin(angle) * sdis;
vx = math.cos(angle) * velocity;
vy = math.sin(angle) * velocity;
dx = sx + (math.cos(da) * srad);
dy = sy + (math.sin(da) * srad);
doa = math.atan2(dy, dx);
steerx = steerforce * Math.cos(doa);
steery = steerforce * Math.sin(doa);
vx = vx + steerx;
vy = vy + steery;
_x = (_x + vx);
_y = (_y + vy);
angle = math.atan2(vy, vx);
if (_quality == "LOW") {
alow._rotation = deg(angle);
} else {
ahigh._rotation = deg(angle);
}
if (_x < /:xmin) {
_x = /:xmax;
} else if (_x > /:xmax) {
_x = /:xmin;
}
if (_y < /:ymin) {
_y = /:ymax;
} else if (_y > /:ymax) {
_y = /:ymin;
}
_xscale = ska;
_yscale = ska;
if (ska > /:skastep[skastepnow]) {
skastepnow = skastepnow + 1;
alow.a.nextFrame();
ahigh.a.nextFrame();
}
Symbol 206 MovieClip [dot] Frame 3
if (_root.pausegame != 1) {
if (jointo eq "") {
prevFrame();
play();
} else {
gotoAndPlay (6);
}
} else {
gotoAndPlay (4);
}
Symbol 206 MovieClip [dot] Frame 4
if (_root.pausegame != 1) {
gotoAndPlay (2);
} else {
play();
}
Symbol 206 MovieClip [dot] Frame 5
gotoAndPlay (4);
Symbol 206 MovieClip [dot] Frame 6
var t = _root[jointo];
Symbol 206 MovieClip [dot] Frame 7
if (_quality == "LOW") {
alow._rotation = deg(math.atan2(t._y - _y, t._x - _x));
} else {
ahigh._rotation = deg(math.atan2(t._y - _y, t._x - _x));
}
_x = (t._x + ((_x - t._x) / 1.6));
_y = (t._y + ((_y - t._y) / 1.6));
Symbol 206 MovieClip [dot] Frame 8
dis = ((t._x - _x) * (t._x - _x)) + ((t._y - _y) * (t._y - _y));
if (dis > 100) {
prevFrame();
play();
} else {
t.ska = t.ska + (0.1 * ska);
t.ska = t.ska + (0.1 * ska);
if (!_root.ztinkstatus) {
if (_root.sfx != 1) {
_root.combine.start();
}
_root.ztinkstatus = 1;
}
removing(_name, "/:allb");
if (/:carray.length > 0) {
create();
}
if (/:allb.length <= /:totalcolor) {
Set("/:finish", 1);
_root.attachmovie("levelfinish", "levelinfo", /:levelinfodepth);
_root.levelinfo._x = 250;
_root.levelinfo._y = 228;
}
removeMovieClip("");
stop();
}
Symbol 212 MovieClip [pop] Frame 1
onenterframe = function () {
_x = _root[follow]._x;
_y = _root[follow]._y;
};
Symbol 212 MovieClip [pop] Frame 24
removeMovieClip("");
stop();
Symbol 216 MovieClip Frame 1
tb = /:time * /:timebonuspoint;
Set("/:score", /:score + tb);
Symbol 217 MovieClip [levelfinish] Frame 1
if (_root.ingame == 1) {
_root.bg1.setVolume(35);
} else if (_root.ingame == 2) {
_root.bg2.setVolume(35);
} else if (_root.ingame == 3) {
_root.bg3.setVolume(35);
} else {
_root.bg4.setVolume(35);
}
Set("/:canpress", 0);
Symbol 217 MovieClip [levelfinish] Frame 5
if (_root.ingame == 1) {
_root.bg1.setVolume(25);
} else if (_root.ingame == 2) {
_root.bg2.setVolume(25);
} else if (_root.ingame == 3) {
_root.bg3.setVolume(25);
} else {
_root.bg4.setVolume(25);
}
Symbol 217 MovieClip [levelfinish] Frame 9
if (_root.ingame == 1) {
_root.bg1.setVolume(20);
} else if (_root.ingame == 2) {
_root.bg2.setVolume(20);
} else if (_root.ingame == 3) {
_root.bg3.setVolume(20);
} else {
_root.bg4.setVolume(20);
}
Symbol 217 MovieClip [levelfinish] Frame 10
if (_root.pausegame == 1) {
prevFrame();
play();
}
Symbol 217 MovieClip [levelfinish] Frame 13
if (_root.ingame == 1) {
_root.bg1.setVolume(15);
} else if (_root.ingame == 2) {
_root.bg2.setVolume(15);
} else if (_root.ingame == 3) {
_root.bg3.setVolume(15);
} else {
_root.bg4.setVolume(15);
}
Symbol 217 MovieClip [levelfinish] Frame 17
if (_root.ingame == 1) {
_root.bg1.setVolume(10);
} else if (_root.ingame == 2) {
_root.bg2.setVolume(10);
} else if (_root.ingame == 3) {
_root.bg3.setVolume(10);
} else {
_root.bg4.setVolume(10);
}
Symbol 217 MovieClip [levelfinish] Frame 21
if (_root.ingame == 1) {
_root.bg1.setVolume(5);
} else if (_root.ingame == 2) {
_root.bg2.setVolume(5);
} else if (_root.ingame == 3) {
_root.bg3.setVolume(5);
} else {
_root.bg4.setVolume(5);
}
Symbol 217 MovieClip [levelfinish] Frame 25
stopAllSounds();
Set("/:canpress", 1);
Set("/:level", /:level + 1);
if (/:level >= /:levels.length) {
_root.gotoAndPlay("fin");
} else {
clrscr();
_root.gotoAndPlay("start");
}
removeMovieClip("");
Symbol 220 Button
on (keyPress "p") {
play();
}
Symbol 221 Button
on (keyPress "P") {
play();
}
Symbol 222 MovieClip Frame 1
Set("/:pausegame", 0);
_root.onpause(0);
stop();
Symbol 222 MovieClip Frame 2
Set("/:pausegame", 1);
_root.onpause(1);
stop();
Symbol 223 Button
on (keyPress "q") {
_root.onqual(1);
play();
}
Symbol 224 Button
on (keyPress "Q") {
_root.onqual(1);
play();
}
Symbol 225 Button
on (keyPress "q") {
_root.onqual(2);
play();
}
Symbol 226 Button
on (keyPress "Q") {
_root.onqual(2);
play();
}
Symbol 227 MovieClip Frame 1
_root.baseship = "dot";
_quality = "HIGH";
stop();
Symbol 227 MovieClip Frame 2
_quality = "LOW";
_root.baseship = "dotlow";
stop();
Symbol 233 MovieClip Frame 1
onenterframe = function () {
if (/:drawtimenow > 0) {
gotoAndStop(11 - math.floor(/:drawtimenow / (/:drawtimemax / 10)));
} else {
gotoAndStop (1);
}
};
_root.ztinkstatus = false;
Symbol 234 MovieClip Frame 1
createEmptyMovieClip("lin", 200);
var li = this.lin;
r = 10;
onMouseUp = function () {
Set("/:click", 0);
Set("/:drawtimenow", 0);
with (li) {
clear();
}
};
onMouseDown = function () {
if (_root.pausegame != 1) {
if (/:canpress) {
with (li) {
clear();
lineStyle(2, 13868875, 100);
}
Set("/:click", 1);
Set("/:drawtimenow", 0);
_root.linestatus.gotoAndStop(11);
Set("/:pnum", 1);
Set("/:px", new Array());
Set("/:py", new Array());
/:px[0] = _root._xmouse;
/:py[0] = _root._ymouse;
}
}
};
onenterframe = function () {
if (/:click) {
Set("/:drawtimenow", /:drawtimenow + 1);
if (/:drawtimenow > /:drawtimemax) {
Set("/:click", 0);
Set("/:drawtimenow", 0);
with (li) {
clear();
}
} else if ((_root._xmouse != /:px[/:pnum - 1]) and (_root._ymouse != /:py[/:pnum - 1])) {
with (li) {
moveTo(/:px[/:pnum - 1], /:py[/:pnum - 1]);
lineto(_root._xmouse, _root._ymouse);
}
if (/:pnum > 5) {
var i = 1;
while (i < (/:px.length - 3)) {
var cek = 0;
cek = line2line(/:px[/:pnum - 1], /:py[/:pnum - 1], _root._xmouse, _root._ymouse, /:px[i], /:py[i], /:px[i - 1], /:py[i - 1]);
if (cek) {
Set("/:click", 0);
Set("/:drawtimenow", 0);
with (li) {
clear();
}
createemptymovieclip("r" + r, r);
var t = this["r" + r];
with (t) {
lineStyle(1, 0, 0);
moveto(xpc, ypc);
beginfill(16763904, 20);
t.onEnterFrame = function () {
var _local3 = _root;
if (cek != 9) {
cek = 9;
var _local1 = new Array();
var gotcl = new Array();
var _local2 = 0;
while (_local2 < /:allb.length) {
var bt = _local3[/:allb[_local2]];
if (this.hittest(bt._x, bt._y, 1)) {
_local1.push(/:allb[_local2]);
gotcl.push(bt.cl);
}
_local2++;
}
if (_local1.length > 1) {
var cl = gotcl[0];
var jointo = _local1[0];
var ska = _local3[jointo]._xscale;
var okcl = 1;
_local2 = 0;
while (_local2 < gotcl.length) {
if (gotcl[_local2] != cl) {
okcl = 0;
}
if (_local3[_local1[_local2]]._xscale > ska) {
ska = _local3[_local1[_local2]]._xscale;
jointo = _local1[_local2];
}
_local2++;
}
if (okcl) {
Set("/:score", /:score + /:point[_local1.length]);
popscore(jointo, /:point[_local1.length]);
_local2 = 0;
while (_local2 < _local1.length) {
if (_local1[_local2] ne jointo) {
var bt = _local3[_local1[_local2]];
bt.jointo = jointo;
}
_local2++;
}
}
}
}
_alpha = _alpha - 5;
if (_alpha <= 0) {
removeMovieClip(this);
}
};
}
var f = i;
while (f < /:px.length) {
with (t) {
lineto(/:px[f], /:py[f]);
}
f++;
}
with (t) {
endfill();
}
r = r + 1;
if (r > 100) {
r = 10;
}
break;
}
i++;
}
}
/:px[/:pnum] = _root._xmouse;
/:py[/:pnum] = _root._ymouse;
Set("/:pnum", /:pnum + 1);
}
}
};
Symbol 241 MovieClip Frame 1
onenterframe = function () {
if (_root.pausegame != 1) {
if (!/:finish) {
Set("/:time", /:time - 1);
}
if (/:time) {
sec = math.floor(/:time / /:onesec);
min = math.floor(sec / 60);
sec = sec - (min * 60);
if (min < 10) {
tmin = "0" + min;
} else {
tmin = min;
}
if (sec < 10) {
tsec = "0" + sec;
} else {
tsec = sec;
}
t.time = (tmin + ":") + tsec;
} else {
_root.gotoAndPlay("end");
}
}
};
Symbol 246 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 2
play();
Symbol 246 MovieClip Frame 9
removeMovieClip(this);
Symbol 246 MovieClip Frame 10
play();
Symbol 246 MovieClip Frame 20
removeMovieClip(this);
Symbol 266 Button
on (release) {
if (_root.sfx != 1) {
_root.mybutton.start();
}
achiever = 1;
loadVariablesNum ((((((("http://www.isskerberos.org/gamescore/achieved.php?gameid=" + _root.gameid) + "&replaceid=") + _root.replaceid) + "&replacescore=") + _root.score) + "&playername=") + _root.mynameis, 0);
play();
}
Symbol 274 Button
on (release) {
_root.result = 0;
_root.finished = 0;
if (_root.sfx != 1) {
_root.mybutton.start();
}
var preventCaching = (getTimer() + random(10000));
loadVariablesNum ((("http://www.isskerberos.org/gamescore/top5.php?gameid=" + _root.gameid) + "&preventCache=") + preventCaching, 0);
tellTarget ("/") {
gotoAndStop (3);
};
}
Symbol 295 MovieClip Frame 2
_root.gameover = 1;
Symbol 296 MovieClip Frame 2
gameid = _root.gameid;
_root.topfiver(_root.score);
if (_root.replaceid == 0) {
achiever = 0;
gotoAndPlay (23);
}
if (_root.end != 1) {
gotoAndPlay (23);
}
play();
Symbol 296 MovieClip Frame 22
stop();
Symbol 296 MovieClip Frame 23
var preventCaching = (getTimer() + random(10000));
loadVariablesNum ((("http://www.isskerberos.org/gamescore/top5.php?gameid=" + _root.gameid) + "&preventCache=") + preventCaching, 0);
Symbol 296 MovieClip Frame 32
if (achiever == 1) {
if (_root.top5namesa == "YOU") {
_root.top5namesa = _root.mynameis;
} else if (_root.top5namesb == "YOU") {
_root.top5namesb = _root.mynameis;
} else if (_root.top5namesc == "YOU") {
_root.top5namesc = _root.mynameis;
} else if (_root.top5namesd == "YOU") {
_root.top5namesd = _root.mynameis;
} else if (_root.top5namese == "YOU") {
_root.top5namese = _root.mynameis;
}
}
if (_root.end != 1) {
frufru.gotoAndStop(2);
} else {
frufru.gotoAndStop(1);
}
stop();
Symbol 297 MovieClip Frame 2
stopAllSounds();
Symbol 297 MovieClip Frame 5
if (_root.sfx != 1) {
_root.slam.start();
}
Symbol 297 MovieClip Frame 10
if (_root.sfx != 1) {
_root.slam2.start();
}
Symbol 297 MovieClip Frame 18
stop();