[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (5.96 KiB) ● ●
function bitOR(a, b) {
var lsb = ((a & 1) | (b & 1));
var msb31 = ((a >>> 1) | (b >>> 1));
return((msb31 << 1) | lsb);
}
function bitXOR(a, b) {
var lsb = ((a & 1) ^ (b & 1));
var msb31 = ((a >>> 1) ^ (b >>> 1));
return((msb31 << 1) | lsb);
}
function bitAND(a, b) {
var lsb = ((a & 1) & (b & 1));
var msb31 = ((a >>> 1) & (b >>> 1));
return((msb31 << 1) | lsb);
}
function addme(x, y) {
var lsw = ((x & 65535) + (y & 65535));
var msw = (((x >> 16) + (y >> 16)) + (lsw >> 16));
return((msw << 16) | (lsw & 65535));
}
function rhex(num) {
str = "";
j = 0;
while (j <= 3) {
str = str + (hex_chr.charAt((num >> ((j * 8) + 4)) & 15) + hex_chr.charAt((num >> (j * 8)) & 15));
j++;
}
return(str);
}
function str2blks_MD5(str) {
nblk = ((str.length + 8) >> 6) + 1;
blks = new Array(nblk * 16);
i = 0;
while (i < (nblk * 16)) {
blks[i] = 0;
i++;
}
i = 0;
while (i < str.length) {
blks[i >> 2] = blks[i >> 2] | (str.charCodeAt(i) << ((((str.length * 8) + i) % 4) * 8));
i++;
}
blks[i >> 2] = blks[i >> 2] | (128 << ((((str.length * 8) + i) % 4) * 8));
var l = (str.length * 8);
blks[(nblk * 16) - 2] = l & 255;
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((l >>> 8) & 255) << 8);
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((l >>> 16) & 255) << 16);
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((l >>> 24) & 255) << 24);
return(blks);
}
function rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function cmn(q, a, b, x, s, t) {
return(addme(rol(addme(addme(a, q), addme(x, t)), s), b));
}
function ff(a, b, c, d, x, s, t) {
return(cmn(bitOR(bitAND(b, c), bitAND(~b, d)), a, b, x, s, t));
}
function gg(a, b, c, d, x, s, t) {
return(cmn(bitOR(bitAND(b, d), bitAND(c, ~d)), a, b, x, s, t));
}
function hh(a, b, c, d, x, s, t) {
return(cmn(bitXOR(bitXOR(b, c), d), a, b, x, s, t));
}
function ii(a, b, c, d, x, s, t) {
return(cmn(bitXOR(c, bitOR(b, ~d)), a, b, x, s, t));
}
function calcMD5(str) {
x = str2blks_MD5(str);
a = 1732584193 /* 0x67452301 */;
b = -271733879;
c = -1732584194;
d = 271733878 /* 0x10325476 */;
var step;
i = 0;
while (i < x.length) {
olda = a;
oldb = b;
oldc = c;
oldd = d;
step = 0;
a = ff(a, b, c, d, x[i + 0], 7, -680876936);
d = ff(d, a, b, c, x[i + 1], 12, -389564586);
c = ff(c, d, a, b, x[i + 2], 17, 606105819);
b = ff(b, c, d, a, x[i + 3], 22, -1044525330);
a = ff(a, b, c, d, x[i + 4], 7, -176418897);
d = ff(d, a, b, c, x[i + 5], 12, 1200080426);
c = ff(c, d, a, b, x[i + 6], 17, -1473231341);
b = ff(b, c, d, a, x[i + 7], 22, -45705983);
a = ff(a, b, c, d, x[i + 8], 7, 1770035416);
d = ff(d, a, b, c, x[i + 9], 12, -1958414417);
c = ff(c, d, a, b, x[i + 10], 17, -42063);
b = ff(b, c, d, a, x[i + 11], 22, -1990404162);
a = ff(a, b, c, d, x[i + 12], 7, 1804603682);
d = ff(d, a, b, c, x[i + 13], 12, -40341101);
c = ff(c, d, a, b, x[i + 14], 17, -1502002290);
b = ff(b, c, d, a, x[i + 15], 22, 1236535329);
a = gg(a, b, c, d, x[i + 1], 5, -165796510);
d = gg(d, a, b, c, x[i + 6], 9, -1069501632);
c = gg(c, d, a, b, x[i + 11], 14, 643717713);
b = gg(b, c, d, a, x[i + 0], 20, -373897302);
a = gg(a, b, c, d, x[i + 5], 5, -701558691);
d = gg(d, a, b, c, x[i + 10], 9, 38016083);
c = gg(c, d, a, b, x[i + 15], 14, -660478335);
b = gg(b, c, d, a, x[i + 4], 20, -405537848);
a = gg(a, b, c, d, x[i + 9], 5, 568446438);
d = gg(d, a, b, c, x[i + 14], 9, -1019803690);
c = gg(c, d, a, b, x[i + 3], 14, -187363961);
b = gg(b, c, d, a, x[i + 8], 20, 1163531501);
a = gg(a, b, c, d, x[i + 13], 5, -1444681467);
d = gg(d, a, b, c, x[i + 2], 9, -51403784);
c = gg(c, d, a, b, x[i + 7], 14, 1735328473);
b = gg(b, c, d, a, x[i + 12], 20, -1926607734);
a = hh(a, b, c, d, x[i + 5], 4, -378558);
d = hh(d, a, b, c, x[i + 8], 11, -2022574463);
c = hh(c, d, a, b, x[i + 11], 16, 1839030562);
b = hh(b, c, d, a, x[i + 14], 23, -35309556);
a = hh(a, b, c, d, x[i + 1], 4, -1530992060);
d = hh(d, a, b, c, x[i + 4], 11, 1272893353);
c = hh(c, d, a, b, x[i + 7], 16, -155497632);
b = hh(b, c, d, a, x[i + 10], 23, -1094730640);
a = hh(a, b, c, d, x[i + 13], 4, 681279174);
d = hh(d, a, b, c, x[i + 0], 11, -358537222);
c = hh(c, d, a, b, x[i + 3], 16, -722521979);
b = hh(b, c, d, a, x[i + 6], 23, 76029189);
a = hh(a, b, c, d, x[i + 9], 4, -640364487);
d = hh(d, a, b, c, x[i + 12], 11, -421815835);
c = hh(c, d, a, b, x[i + 15], 16, 530742520);
b = hh(b, c, d, a, x[i + 2], 23, -995338651);
a = ii(a, b, c, d, x[i + 0], 6, -198630844);
d = ii(d, a, b, c, x[i + 7], 10, 1126891415);
c = ii(c, d, a, b, x[i + 14], 15, -1416354905);
b = ii(b, c, d, a, x[i + 5], 21, -57434055);
a = ii(a, b, c, d, x[i + 12], 6, 1700485571);
d = ii(d, a, b, c, x[i + 3], 10, -1894986606);
c = ii(c, d, a, b, x[i + 10], 15, -1051523);
b = ii(b, c, d, a, x[i + 1], 21, -2054922799);
a = ii(a, b, c, d, x[i + 8], 6, 1873313359);
d = ii(d, a, b, c, x[i + 15], 10, -30611744);
c = ii(c, d, a, b, x[i + 6], 15, -1560198380);
b = ii(b, c, d, a, x[i + 13], 21, 1309151649);
a = ii(a, b, c, d, x[i + 4], 6, -145523070);
d = ii(d, a, b, c, x[i + 11], 10, -1120210379);
c = ii(c, d, a, b, x[i + 2], 15, 718787259);
b = ii(b, c, d, a, x[i + 9], 21, -343485551);
a = addme(a, olda);
b = addme(b, oldb);
c = addme(c, oldc);
d = addme(d, oldd);
i = i + 16;
}
return(((rhex(a) + rhex(b)) + rhex(c)) + rhex(d));
}
stop();
var hex_chr = "0123456789abcdef";
Stage.scaleMode = "noScale";
Mouse.show();
stopAllSounds();
onMouseDown = null;
if (getBytesLoaded() != getBytesTotal()) {
this.gotoAndPlay("load");
} else {
this.gotoAndStop("setup");
}
Instance of Symbol 80 MovieClip in Frame 1 (41 B)
onClipEvent (load) {
l_targ = _parent;
}
Frame 2 (113 B)
if (getBytesLoaded() != getBytesTotal()) {
this.gotoAndPlay("load");
} else {
this.gotoAndStop("setup");
}
Frame 4 (101 B)
traild = 4;
maxtraild = 4;
music = 1;
qual = 1;
soundClip.gotoAndPlay(4);
play();
nextFrame();
Instance of Symbol 83 MovieClip "session" in Frame 4 (160 B)
onClipEvent (load) {
loadVariables ("/bin/getSessionStatus.php", this, "POST");
}
onClipEvent (enterFrame) {
result = int(result);
gotoAndStop(result + 1);
}
Frame 5 (37 B)
stop();
knuggs = 0;
airbrakes = 0;
Frame 6 (31 B)
this.gotoAndStop("menuintro");
Frame 7 (8 B)
stop();
Frame 8 (26 B)
this.gotoAndStop("menu");
Instance of Symbol 174 MovieClip in Frame 10 (177 B)
onClipEvent (load) {
w = 150;
ns = 5;
def = _parent.traild;
valarray = ["Off", "Low", "Medium", "High", "Maximum"];
}
onClipEvent (enterFrame) {
_parent.traild = steps();
}
Instance of Symbol 174 MovieClip in Frame 10 (286 B)
onClipEvent (load) {
w = 150;
ns = 3;
def = _parent.qual;
valarray = ["Medium", "High", "Best"];
}
onClipEvent (enterFrame) {
_parent.qual = steps();
if (steps() == 0) {
_quality = "MEDIUM";
} else if (steps() == 1) {
_quality = "HIGH";
} else {
_quality = "BEST";
}
}
Instance of Symbol 180 MovieClip in Frame 10 (55 B)
onClipEvent (load) {
gotoAndStop(_parent.music + 1);
}
Frame 11 (29 B)
this.gotoAndStop("options");
Frame 16 (26 B)
this.gotoAndStop("help");
Frame 20 (122 B)
delete result;
lti = 0;
loadVariables ("/bin/getScoreboard.php?start=1&limit=20&gid=2", this, "POST");
play();
Frame 21 (8 B)
play();
Frame 22 (252 B)
if (result == "ok") {
this.gotoAndStop("highscoresget");
} else if (result == "err") {
this.gotoAndStop("highscorefailed");
} else {
this.gotoAndPlay("highscoresload");
lti++;
}
if (lti > 600) {
this.gotoAndStop("highscorefailed");
}
Frame 27 (35 B)
this.gotoAndStop("highscoresget");
Frame 31 (18 B)
gotoAndStop (30);
Frame 36 (225 B)
for (z in this.reader) {
delete this.reader[z];
}
lti = 0;
loadVariables ((("/bin/handleGameScores.php?score=" + knuggs) + "&gid=2&sdid=1284&sdcode=") + calcmd5("2:" + knuggs), this.reader, "POST");
play();
Frame 37 (8 B)
play();
Frame 38 (190 B)
if (this.reader.result == undefined) {
this.gotoAndPlay("transferring");
lti++;
} else {
this.gotoAndStop("transfered");
}
if (lti > 600) {
this.gotoAndStop("transfererr");
}
Frame 41 (1.33 KiB) ●
skore = this.reader.score;
dskore = this.reader.daily_score;
maxnuggs = this.reader.max_knuggs;
avnuggs = this.reader.available_knuggs;
totnuggs = this.reader.total_knuggs;
if (this.reader.result == "ok") {
transtext = "Success!\nKnuggs Earned This Game: ";
transtext = transtext + skore;
transtext = transtext + "\nTotal Knuggs Today Playing this Game: ";
transtext = transtext + dskore;
transtext = transtext + "\nKnugg Limit for this Game Today: ";
transtext = transtext + maxnuggs;
transtext = transtext + newline;
transtext = transtext + skore;
transtext = transtext + " have been added to your account.";
transtext = transtext + "\nYou can get a total of: ";
transtext = transtext + avnuggs;
transtext = transtext + " more Knuggs playing this game today.";
this.gotoAndStop("transferconf");
} else if (this.reader.result == "err") {
if (this.reader.message == "no_session") {
this.gotoAndStop("nologin");
} else if (this.reader.message == "daily_knugg_limit") {
this.gotoAndStop("maxknuggs");
} else if (this.reader.message == "missing_score") {
this.gotoAndStop("transfererr");
} else if (this.reader.message == "missing_gid") {
this.gotoAndStop("transfererr");
} else if (this.reader.message == "db_error") {
this.gotoAndStop("transfererr");
} else {
this.gotoAndStop("transfererr");
}
}
Frame 42 (32 B)
this.gotoAndStop("transfered");
Frame 46 (34 B)
this.gotoAndStop("transferconf");
Frame 51 (34 B)
this.gotoAndStop("transfercanc");
Frame 56 (31 B)
this.gotoAndStop("maxknuggs");
Frame 61 (33 B)
this.gotoAndStop("transfererr");
Frame 66 (29 B)
this.gotoAndStop("nologin");
Frame 70 (63 B)
bg.loadMovie("bg1.swf");
lti = 0;
play();
soundClip.play();
Instance of Symbol 80 MovieClip in Frame 70 (44 B)
onClipEvent (load) {
l_targ = _parent.bg;
}
Frame 72 (206 B)
lti++;
if (bg._framesloaded <= 0) {
this.gotoAndPlay("level1loading");
}
if ((lti > 60) && ((bg.getBytesLoaded() == 0) || (bg.getBytesLoaded() == -1))) {
this.gotoAndPlay("level1");
}
Frame 73 (191 B)
stop();
onEnterFrame = function () {
if ((bg.getBytesLoaded() == bg.getBytesTotal()) && (bg._currentframe > 1)) {
onEnterFrame = null;
this.gotoAndStop("level1");
}
};
Frame 74 (33 B)
this.gotoAndStop("level1intro");
Frame 75 (45 B)
stop();
soundclip.gotoAndPlay("forcestop");
Instance of Symbol 633 MovieClip "game" in Frame 75 (772 B)
onClipEvent (load) {
function scroll() {
if (superg.scroll) {
_parent.bg._x = (_x / w) * (bgw - 550);
if (_parent.bg._x > 0) {
_parent.bg._x = 0;
}
if (_parent.bg._x < (-(bgw - 550))) {
_parent.bg._x = -(bgw - 550);
}
_parent.bg._y = ((_y / h) * (bgh - 400)) - (bgh - 400);
if (_parent.bg._y > 0) {
_parent.bg._y = 0;
}
if (_parent.bg._y < ((-bgh) + 400)) {
_parent.bg._y = (-bgh) + 400;
}
}
}
topy = -20;
topx = 20;
onEnterFrame = function () {
if ((_y < (topy - 1)) || (_y > (topy + 1))) {
_y = (_y + ((topy - _y) / 6));
} else {
_y = topy;
superg.begin = 1;
w = _width;
h = _height;
bgw = _parent.bg._width;
bgh = _parent.bg._height;
onEnterFrame = scroll;
}
};
}
Frame 76 (28 B)
this.gotoAndStop("level1");
Frame 80 (63 B)
bg.loadMovie("bg2.swf");
lti = 0;
play();
soundClip.play();
Instance of Symbol 80 MovieClip in Frame 80 (44 B)
onClipEvent (load) {
l_targ = _parent.bg;
}
Frame 82 (206 B)
lti++;
if (bg._framesloaded <= 0) {
this.gotoAndPlay("level2loading");
}
if ((lti > 60) && ((bg.getBytesLoaded() == 0) || (bg.getBytesLoaded() == -1))) {
this.gotoAndPlay("level2");
}
Frame 83 (191 B)
stop();
onEnterFrame = function () {
if ((bg.getBytesLoaded() == bg.getBytesTotal()) && (bg._currentframe > 1)) {
onEnterFrame = null;
this.gotoAndStop("level2");
}
};
Frame 84 (33 B)
this.gotoAndStop("level2intro");
Frame 85 (45 B)
stop();
soundclip.gotoAndPlay("forcestop");
Instance of Symbol 718 MovieClip "game" in Frame 85 (772 B)
onClipEvent (load) {
function scroll() {
if (superg.scroll) {
_parent.bg._x = (_x / w) * (bgw - 550);
if (_parent.bg._x > 0) {
_parent.bg._x = 0;
}
if (_parent.bg._x < (-(bgw - 550))) {
_parent.bg._x = -(bgw - 550);
}
_parent.bg._y = ((_y / h) * (bgh - 400)) - (bgh - 400);
if (_parent.bg._y > 0) {
_parent.bg._y = 0;
}
if (_parent.bg._y < ((-bgh) + 400)) {
_parent.bg._y = (-bgh) + 400;
}
}
}
topy = -20;
topx = 20;
onEnterFrame = function () {
if ((_y < (topy - 1)) || (_y > (topy + 1))) {
_y = (_y + ((topy - _y) / 6));
} else {
_y = topy;
superg.begin = 1;
w = _width;
h = _height;
bgw = _parent.bg._width;
bgh = _parent.bg._height;
onEnterFrame = scroll;
}
};
}
Frame 86 (28 B)
this.gotoAndStop("level2");
Frame 90 (63 B)
bg.loadMovie("bg3.swf");
lti = 0;
play();
soundClip.play();
Instance of Symbol 80 MovieClip in Frame 90 (44 B)
onClipEvent (load) {
l_targ = _parent.bg;
}
Frame 92 (206 B)
lti++;
if (bg._framesloaded <= 0) {
this.gotoAndPlay("level3loading");
}
if ((lti > 60) && ((bg.getBytesLoaded() == 0) || (bg.getBytesLoaded() == -1))) {
this.gotoAndPlay("level3");
}
Frame 93 (191 B)
stop();
onEnterFrame = function () {
if ((bg.getBytesLoaded() == bg.getBytesTotal()) && (bg._currentframe > 1)) {
onEnterFrame = null;
this.gotoAndStop("level3");
}
};
Frame 94 (33 B)
this.gotoAndStop("level3intro");
Frame 95 (45 B)
stop();
soundclip.gotoAndPlay("forcestop");
Instance of Symbol 740 MovieClip "game" in Frame 95 (772 B)
onClipEvent (load) {
function scroll() {
if (superg.scroll) {
_parent.bg._x = (_x / w) * (bgw - 550);
if (_parent.bg._x > 0) {
_parent.bg._x = 0;
}
if (_parent.bg._x < (-(bgw - 550))) {
_parent.bg._x = -(bgw - 550);
}
_parent.bg._y = ((_y / h) * (bgh - 400)) - (bgh - 400);
if (_parent.bg._y > 0) {
_parent.bg._y = 0;
}
if (_parent.bg._y < ((-bgh) + 400)) {
_parent.bg._y = (-bgh) + 400;
}
}
}
topy = -20;
topx = 20;
onEnterFrame = function () {
if ((_y < (topy - 1)) || (_y > (topy + 1))) {
_y = (_y + ((topy - _y) / 6));
} else {
_y = topy;
superg.begin = 1;
w = _width;
h = _height;
bgw = _parent.bg._width;
bgh = _parent.bg._height;
onEnterFrame = scroll;
}
};
}
Frame 96 (28 B)
this.gotoAndStop("level3");
Frame 100 (63 B)
bg.loadMovie("bg4.swf");
lti = 0;
play();
soundClip.play();
Instance of Symbol 80 MovieClip in Frame 100 (44 B)
onClipEvent (load) {
l_targ = _parent.bg;
}
Frame 102 (206 B)
lti++;
if (bg._framesloaded <= 0) {
this.gotoAndPlay("level4loading");
}
if ((lti > 60) && ((bg.getBytesLoaded() == 0) || (bg.getBytesLoaded() == -1))) {
this.gotoAndPlay("level4");
}
Frame 103 (191 B)
stop();
onEnterFrame = function () {
if ((bg.getBytesLoaded() == bg.getBytesTotal()) && (bg._currentframe > 1)) {
onEnterFrame = null;
this.gotoAndStop("level4");
}
};
Frame 104 (33 B)
this.gotoAndStop("level4intro");
Frame 105 (45 B)
stop();
soundclip.gotoAndPlay("forcestop");
Instance of Symbol 793 MovieClip "game" in Frame 105 (333 B)
onClipEvent (load) {
topy = -20;
topx = 20;
onEnterFrame = function () {
if ((_y < (topy - 1)) || (_y > (topy + 1))) {
_y = (_y + ((topy - _y) / 6));
} else {
_y = topy;
superg.begin = 1;
w = _width;
h = _height;
bgw = _parent.bg._width;
bgh = _parent.bg._height;
onEnterFrame = null;
}
};
}
Frame 106 (28 B)
this.gotoAndStop("level4");
Frame 110 (114 B)
soundClip.play();
onMouseDown = null;
onMouseDown = function () {
onMouseDown = null;
gotoAndStop (36);
};
Frame 111 (19 B)
gotoAndStop (110);
Frame 115 (237 B)
soundClip.play();
onMouseDown = null;
onMouseDown = function () {
onMouseDown = null;
if (session.result) {
if (knuggs == 0) {
gotoAndStop (20);
} else {
gotoAndStop (36);
}
} else {
gotoAndStop (20);
}
};
Frame 116 (19 B)
gotoAndStop (115);
Frame 120 (114 B)
soundClip.play();
onMouseDown = null;
onMouseDown = function () {
onMouseDown = null;
gotoAndStop (20);
};
Frame 121 (19 B)
gotoAndStop (120);
Symbol 9 MovieClip [Popup] Frame 38 (21 B)
removeMovieClip("");
Symbol 10 MovieClip [draw] Frame 1 (102 B)
function remove() {
_alpha = (_alpha - 25);
if (_alpha <= 0) {
removeMovieClip("");
}
}
Instance of Symbol 39 MovieClip in Symbol 40 MovieClip Frame 1 (77 B)
onClipEvent (load) {
gotoAndStop(int(random(_totalframes * 50) / 50) + 1);
}
Symbol 42 MovieClip [Pickuph] Frame 1 (524 B)
if (xspeed < 0) {
_xscale = -100;
}
stop();
onEnterFrame = function () {
_x = (_x + xspeed);
if (xspeed > 0) {
if (_x > (startx + dist)) {
_x = startx;
}
} else if (_x < (startx - dist)) {
_x = startx;
}
if (_parent.superg.hitTest(hit) && (!_parent.superg.dead)) {
_root.knuggs = _root.knuggs + _parent.snumber;
_parent.addPopUp(_x, _y, "Katra: +" + _parent.snumber, 3);
_parent.superg.collect = 1;
parent.pickUp = null;
this.gotoAndPlay("remove");
}
};
Symbol 42 MovieClip [Pickuph] Frame 2 (17 B)
gotoAndStop (1);
Symbol 42 MovieClip [Pickuph] Frame 6 (30 B)
stop();
removeMovieClip("");
Symbol 52 MovieClip Frame 1 (18 B)
hit._visible = 0;
Symbol 62 MovieClip [electricfield] Frame 1 (955 B)
stop();
stop();
el1._x = difx;
el1._y = dify;
dist = Math.sqrt(((el1._x - el0._x) * (el1._x - el0._x)) + ((el1._y - el0._y) * (el1._y - el0._y)));
rot = (360 - ((Math.atan2(el0._x - el1._x, el0._y - el1._y) * 180) / Math.PI)) - 90;
line._x = el0._x;
line._y = el0._y;
line._rotation = rot;
line._xscale = dist;
line._yscale = (100 * line._xscale) / 100;
r = er;
if (swap == 5) {
t = r + 2;
}
onenterFrame = function () {
t++;
while (t >= r) {
if (line._visible) {
line._visible = 0;
play();
r = ofr;
} else {
line._visible = 1;
play();
r = er;
}
el0.elec._visible = el0.elec._visible == 0;
el1.elec._visible = el1.elec._visible == 0;
t = 0;
}
if ((line._visible && (_parent.superg.hitTest(line.hit))) && (_parent.superg.dead == 0)) {
_parent.superg.gotoAndStop("electricing");
_parent.superg.soundClip.gotoAndStop("electric");
_parent.superg.dead = 1;
}
};
Symbol 62 MovieClip [electricfield] Frame 2 (8 B)
stop();
Symbol 70 MovieClip [Pickup] Frame 1 (277 B)
onEnterFrame = function () {
if (_parent.superg.hitTest(this) && (!_parent.superg.dead)) {
_root.knuggs = _root.knuggs + _parent.snumber;
parent.pickUp = null;
_parent.addPopUp(_x, _y, "Knugg: +" + _parent.snumber, 3);
this.gotoAndPlay("remove");
}
};
Symbol 70 MovieClip [Pickup] Frame 6 (8 B)
stop();
Symbol 70 MovieClip [Pickup] Frame 11 (21 B)
removeMovieClip("");
Symbol 70 MovieClip [Pickup] Frame 16 (30 B)
stop();
removeMovieClip("");
Symbol 80 MovieClip Frame 16 (274 B)
loadedBytes = l_targ.getBytesLoaded();
totalBytes = l_targ.getBytesTotal();
if (loadedBytes < totalBytes) {
perc = int((loadedBytes / totalBytes) * 100);
loaderBar._xscale = perc;
gotoAndPlay (17);
perctext = perc + "% LOADED";
} else {
gotoAndPlay (21);
}
Symbol 80 MovieClip Frame 20 (18 B)
gotoAndPlay (16);
Symbol 80 MovieClip Frame 33 (25 B)
_parent.play();
stop();
Symbol 97 MovieClip Frame 1 (8 B)
stop();
Symbol 97 MovieClip Frame 2 (17 B)
stopAllSounds();
Symbol 97 MovieClip Frame 3 (44 B)
if (!_parent.music) {
gotoAndStop (1);
}
Symbol 97 MovieClip Frame 4 (17 B)
gotoAndStop (1);
Symbol 97 MovieClip Frame 10 (17 B)
gotoAndStop (1);
Symbol 133 Button (97 B)
on (release) {
_parent.knuggs = 0;
_parent.airbrakes = 0;
_parent.gotoAndPlay("level1load");
}
Symbol 137 Button (46 B)
on (release) {
_parent.gotoAndStop("help");
}
Symbol 141 Button (49 B)
on (release) {
_parent.gotoAndStop("options");
}
Symbol 144 MovieClip Frame 1 (8 B)
stop();
Symbol 144 MovieClip Frame 2 (8 B)
stop();
Symbol 150 Button (989 B)
on (release, keyPress "<Enter>") {
if (pass.toLowerCase() == "tskrules") {
stopAllSounds();
if (_parent._parent.session.result) {
_parent._parent.knuggs = 0;
_parent._parent.airbrakes = 0;
_parent._parent.gotoAndPlay("level2load");
} else {
_parent._parent.gotoAndStop("buygame");
}
} else if (pass.toLowerCase() == "interfake") {
stopAllSounds();
if (_parent._parent.session.result) {
_parent._parent.knuggs = 0;
_parent._parent.airbrakes = 0;
_parent._parent.gotoAndPlay("level3load");
} else {
_parent._parent.gotoAndStop("buygame");
}
} else if (pass.toLowerCase() == "ecafretni") {
stopAllSounds();
if (_parent._parent.session.result) {
stopAllSounds();
_parent._parent.knuggs = 0;
_parent._parent.airbrakes = 0;
_parent._parent.gotoAndPlay("level4load");
stopAllSounds();
} else {
_parent._parent.gotoAndStop("buygame");
}
}
}
on (release) {
if (pass.length <= 1) {
Selection.setFocus(secretbox);
}
}
Symbol 153 MovieClip Frame 1 (8 B)
stop();
Symbol 156 MovieClip Frame 1 (486 B)
onEnterFrame = function () {
if (_parent._parent.session.result) {
if (pass.toLowerCase() == "tskrules") {
go.gotoAndStop(2);
} else if (pass.toLowerCase() == "interfake") {
go.gotoAndStop(2);
} else if (pass.toLowerCase() == "ecafretni") {
go.gotoAndStop(2);
} else {
go.gotoAndStop(1);
}
} else {
go.gotoAndStop(1);
}
if (Selection.getFocus() == "_level0.mm.pw.secretbox") {
text.gotoAndStop(2);
} else {
text.gotoAndStop(1);
}
};
Symbol 157 Button (52 B)
on (release) {
_parent.gotoAndStop("highscores");
}
Symbol 158 MovieClip Frame 113 (38 B)
stop();
_parent.gotoAndStop("menu");
Symbol 161 Button (115 B)
on (release) {
stopAllSounds();
_parent.knuggs = 0;
_parent.airbrakes = 0;
_parent.gotoAndPlay("level1load");
}
Symbol 162 MovieClip Frame 1 (8 B)
stop();
Symbol 167 Button (34 B)
on (release) {
gotoAndStop (7);
}
Symbol 174 MovieClip Frame 1 (522 B)
function kPress() {
knob.startDrag(1, 0, 0, w, 0);
}
function kRelease() {
stopDrag();
knob._x = steps() * (w / (ns - 1));
}
function steps() {
var t = 0;
var tw = w;
while (tw > knob._x) {
t++;
tw = tw - step;
}
if (t == 0) {
t = 1;
}
return(ns - t);
}
step = w / ns;
slider._width = w;
knob._x = def * (w / (ns - 1));
knob.onPress = kPress;
knob.onRelease = (knob.onReleaseOutside = kRelease);
onEnterFrame = function () {
val = valarray[steps()];
this[ref] = steps();
};
Symbol 177 Button (77 B)
on (release) {
_parent.soundClip.play();
_parent.music = 1;
nextFrame();
}
Symbol 179 Button (68 B)
on (release) {
prevFrame();
_parent.music = 0;
stopAllSounds();
}
Symbol 180 MovieClip Frame 1 (8 B)
stop();
Symbol 180 MovieClip Frame 2 (8 B)
stop();
Symbol 196 MovieClip Frame 1 (8 B)
stop();
Symbol 196 MovieClip Frame 10 (15 B)
_visible = 0;
Symbol 244 Button (30 B)
on (release) {
nextFrame();
}
Symbol 245 Button (46 B)
on (release) {
_parent.gotoAndStop("menu");
}
Symbol 279 Button (30 B)
on (release) {
prevFrame();
}
Symbol 332 MovieClip Frame 1 (8 B)
stop();
Symbol 332 MovieClip Frame 10 (15 B)
_visible = 0;
Symbol 374 MovieClip Frame 54 (8 B)
stop();
Symbol 386 MovieClip Frame 1 (8 B)
stop();
Symbol 484 Button (35 B)
on (release) {
gotoAndStop (20);
}
Symbol 493 Button (35 B)
on (release) {
gotoAndStop (50);
}
Symbol 511 Button (35 B)
on (release) {
gotoAndStop (36);
}
Symbol 515 Button (50 B)
on (release) {
getURL ("javascript:joinPop()");
}
Symbol 516 Button (35 B)
on (release) {
gotoAndStop (20);
}
Symbol 558 MovieClip Frame 10 (8 B)
stop();
Symbol 560 MovieClip Frame 1 (8 B)
stop();
Symbol 560 MovieClip Frame 4 (17 B)
gotoAndPlay (3);
Symbol 564 MovieClip Frame 1 (704 B)
function launch() {
play();
c = 1;
ft2 = 0;
}
stop();
reset = function () {
gotoAndStop (1);
time = basetime;
r = 21;
ft = 1;
t = 0;
f = 0;
ft2 = 1;
c = 0;
onEnterFrame = null;
};
reset();
standing = function () {
if (ft) {
_visible = 1;
gotoAndStop (2);
ft = 0;
}
t++;
if (t > r) {
time--;
t = 0;
}
if (time <= 0) {
if (f) {
if (ft2) {
with (_parent.superg) {
gotoAndStop("diefalling");
flying = 1;
aim = 0;
dead = 1;
firstdie = 1;
yspeed = 0;
xspeed = 0;
oldy = 50000;
_parent.aimer._visible = 0;
}
ft2 = 0;
}
} else {
play();
c = 1;
}
}
};
Symbol 564 MovieClip Frame 2 (8 B)
stop();
Symbol 564 MovieClip Frame 37 (7 B)
f = 1;
Symbol 564 MovieClip Frame 56 (30 B)
onEnterFrame = null;
stop();
Symbol 564 MovieClip Frame 66 (37 B)
_visible = 0;
removeMovieClip("");
Symbol 564 MovieClip Frame 69 (29 B)
if (c) {
_visible = 0;
}
Symbol 564 MovieClip Frame 74 (15 B)
_visible = 0;
Symbol 566 MovieClip Frame 7 (8 B)
stop();
Symbol 568 MovieClip Frame 1 (772 B)
function land(override) {
if (override == undefined) {
override = 0;
}
if (override) {
if (!fire) {
return(0);
}
}
if (fire || (override)) {
stop();
_parent.superg.gotoAndStop("burning");
_parent.superg.yspeed = -10;
_parent.superg.soundClip.gotoAndStop("fire");
_parent.superg.xspeed = -3 + random(6);
_parent.superg.die = 1;
_parent.superg.dead = 1;
return(1);
}
gotoAndStop (1);
onEnterFrame = null;
}
function reset() {
gotoAndPlay (1);
onEnterFrame = active;
}
function standing() {
gotoAndStop (1);
onEnterFrame = null;
fire = 0;
}
fire = 0;
active = function () {
if (_visible) {
play();
} else {
stop();
}
};
if (ft == undefined) {
onEnterFrame = active;
ft = 1;
}
stop();
Symbol 568 MovieClip Frame 38 (10 B)
fire = 1;
Symbol 568 MovieClip Frame 87 (17 B)
gotoAndPlay (1);
Symbol 568 MovieClip Frame 94 (15 B)
_visible = 0;
Symbol 580 MovieClip Frame 1 (8 B)
stop();
Symbol 580 MovieClip Frame 6 (17 B)
gotoAndStop (1);
Symbol 580 MovieClip Frame 11 (17 B)
gotoAndStop (1);
Symbol 580 MovieClip Frame 16 (17 B)
gotoAndStop (1);
Symbol 580 MovieClip Frame 21 (17 B)
gotoAndStop (1);
Symbol 580 MovieClip Frame 26 (17 B)
gotoAndStop (1);
Symbol 580 MovieClip Frame 31 (17 B)
gotoAndStop (1);
Symbol 580 MovieClip Frame 36 (17 B)
gotoAndStop (1);
Symbol 580 MovieClip Frame 41 (17 B)
gotoAndStop (1);
Symbol 580 MovieClip Frame 46 (17 B)
gotoAndStop (1);
Symbol 580 MovieClip Frame 51 (17 B)
gotoAndStop (1);
Symbol 580 MovieClip Frame 56 (17 B)
gotoAndStop (1);
Symbol 580 MovieClip Frame 61 (17 B)
gotoAndStop (1);
Symbol 584 MovieClip Frame 7 (33 B)
_parent.go = 1;
_parent.play();
Symbol 587 MovieClip Frame 3 (8 B)
stop();
Symbol 591 MovieClip Frame 8 (25 B)
_parent.play();
stop();
Symbol 594 MovieClip Frame 3 (8 B)
stop();
Symbol 598 MovieClip Frame 6 (33 B)
stop();
_parent.gotoAndStop(1);
Symbol 615 MovieClip Frame 32 (26 B)
stop();
_parent.res = 1;
Symbol 617 MovieClip Frame 23 (8 B)
stop();
Symbol 620 MovieClip Frame 64 (50 B)
_parent.go = 1;
_parent.gotoAndStop("standing");
Symbol 621 MovieClip Frame 1 (18 B)
stop();
stop();
Symbol 621 MovieClip Frame 3 (8 B)
stop();
Symbol 621 MovieClip Frame 5 (8 B)
stop();
Symbol 621 MovieClip Frame 6 (8 B)
stop();
Symbol 621 MovieClip Frame 7 (8 B)
stop();
Symbol 621 MovieClip Frame 8 (8 B)
stop();
Symbol 621 MovieClip Frame 10 (8 B)
stop();
Symbol 621 MovieClip Frame 14 (8 B)
stop();
Symbol 622 MovieClip Frame 1 (8 B)
stop();
Symbol 632 MovieClip Frame 14 (21 B)
stop();
_y = 5000;
Symbol 633 MovieClip Frame 1 (5.89 KiB) ● ●
function addPopUp(x, y, text, col, ydif, alpha) {
temp = this.attachMovie("Popup", "PopUp" + pu, pu);
temp._x = x;
temp._y = y;
temp.gfx.text = text;
temp.gfx._alpha = alpha;
if (col != 32) {
temp.gfx.gotoAndStop(col);
}
if ((temp._x - (temp._width / 2)) < ((-superg.destx) + 20)) {
temp._x = ((-superg.destx) + 20) + (temp._width / 2);
}
if ((temp._x + (temp._width / 2)) > (((-superg.destx) + sw) + 20)) {
temp._x = (((-superg.destx) + sw) + 20) - (temp._width / 2);
}
if ((temp._y - 50) < (-superg.desty)) {
}
pu++;
}
w = basePlatform0._width;
h = basePlatform0._height;
sw = 510;
sh = 400;
startx = 0;
starty = 400;
p = 4000;
pu = 100000 /* 0x0186A0 */;
mt = 1;
snumber = 10;
baseLives = 5;
basePlatform0._x = startx + (w / 2);
mt++;
basePlatform1._x = startx + 300;
basePlatform1._y = starty;
basePlatform1.next = basePlatform2;
startx = basePlatform1._x;
starty = basePlatform1._y;
mt++;
basePlatform2._visible = 0;
basePlatform2._x = (startx + 510) - w;
basePlatform2._y = starty;
basePlatform2.next = basePlatform3;
startx = basePlatform2._x;
starty = basePlatform2._y;
mt++;
basePlatform3._visible = 0;
basePlatform3._x = startx + 300;
basePlatform3._y = starty - 150;
startx = basePlatform3._x;
starty = basePlatform3._y;
mt++;
basePlatform4._visible = 0;
basePlatform4._x = (startx + 510) - w;
basePlatform4._y = starty - 280;
startx = basePlatform4._x;
starty = basePlatform4._y;
mt++;
basePlatform5._visible = 0;
basePlatform5._x = (startx + 400) - w;
basePlatform5._y = starty - 100;
basePlatform5.inter = 1;
basePlatform5.parent = 1;
mt++;
basePlatform6._visible = 0;
basePlatform6._x = (startx + 250) - w;
basePlatform6._y = starty - 200;
startx = basePlatform6._x;
starty = basePlatform6._y;
mt++;
basePlatform7._visible = 0;
basePlatform7._x = (startx + 300) - w;
basePlatform7._y = starty - 200;
basePlatform7.inter = 1;
basePlatform7.parent = 1;
mt++;
basePlatform8._visible = 0;
basePlatform8._x = (startx + 510) - w;
basePlatform8._y = starty;
basePlatform8.next = basePlatform9;
startx = basePlatform8._x;
starty = basePlatform8._y;
mt++;
basePlatform9._visible = 0;
basePlatform9._x = (startx + 400) - w;
basePlatform9._y = starty - 75;
basePlatform9.baseTime = 2;
startx = basePlatform9._x;
starty = basePlatform9._y;
mt++;
basePlatform10._visible = 0;
basePlatform10._x = (startx + 350) - w;
basePlatform10._y = starty - 100;
startx = basePlatform10._x;
starty = basePlatform10._y;
mt++;
basePlatform11._visible = 0;
basePlatform11._x = (startx + 250) - w;
basePlatform11._y = starty - 75;
basePlatform11.baseTime = 2;
basePlatform11.inter = 1;
basePlatform11.parent = 1;
mt++;
basePlatform12._visible = 0;
basePlatform12._x = (startx + 450) - w;
basePlatform12._y = starty - 280;
basePlatform12.baseTime = 2;
basePlatform12.next = basePlatform13;
startx = basePlatform12._x;
starty = basePlatform12._y;
mt++;
basePlatform13._visible = 0;
basePlatform13._x = (startx + 500) - w;
basePlatform13._y = starty - 50;
basePlatform13.baseTime = 2;
basePlatform13.inter = 1;
basePlatform13.parent = 1;
basePlatform13.next = basePlatform14;
mt++;
basePlatform14._visible = 0;
basePlatform14._x = (startx + 300) - w;
basePlatform14._y = starty - 150;
basePlatform14.baseTime = 2;
basePlatform14.inter = 1;
mt++;
basePlatform15._visible = 0;
basePlatform15._x = (startx + 500) - w;
basePlatform15._y = starty - 280;
startx = basePlatform15._x;
starty = basePlatform15._y;
mt++;
basePlatform16._visible = 0;
basePlatform16._x = startx + 250;
basePlatform16._y = starty - 75;
startx = basePlatform16._x;
starty = basePlatform16._y;
mt++;
basePlatform17._visible = 0;
basePlatform17._x = startx + 250;
basePlatform17._y = starty - 150;
basePlatform17.inter = 1;
basePlatform17.parent = 1;
mt++;
basePlatform18._visible = 0;
basePlatform18._x = startx;
basePlatform18._y = starty - 150;
basePlatform18.baseTime = 2;
startx = basePlatform18._x;
starty = basePlatform18._y;
mt++;
basePlatform19._visible = 0;
basePlatform19._x = (startx + 510) - w;
basePlatform19._y = starty - 280;
basePlatform19.next = basePlatform20;
startx = basePlatform19._x;
starty = basePlatform19._y;
mt++;
basePlatform20._visible = 0;
basePlatform20._x = (startx + 350) - w;
basePlatform20._y = starty - 125;
basePlatform20.next = basePlatform20;
startx = basePlatform20._x;
starty = basePlatform20._y;
mt++;
basePlatform21._visible = 0;
basePlatform21._x = (startx + 500) - w;
basePlatform21._y = starty;
basePlatform21.baseTime = 2;
basePlatform21.inter = 1;
basePlatform21.parent = 1;
mt++;
basePlatform22._visible = 0;
basePlatform22._x = (startx + 500) - w;
basePlatform22._y = starty - 250;
startx = basePlatform22._x;
starty = basePlatform22._y;
mt++;
basePlatform23._visible = 0;
basePlatform23._x = startx + 150;
basePlatform23._y = starty - 200;
basePlatform23.inter = 1;
basePlatform23.parent = 1;
mt++;
basePlatform24._visible = 0;
basePlatform24._x = startx + 350;
basePlatform24._y = starty - 100;
basePlatform24.inter = 1;
basePlatform24.baseTime = 2;
mt++;
basePlatform25._visible = 0;
basePlatform25._x = startx;
basePlatform25._y = starty - 250;
startx = basePlatform25._x;
starty = basePlatform25._y;
mt++;
basePlatform26._visible = 0;
basePlatform26._x = (startx + 250) - w;
basePlatform26._y = starty - 50;
basePlatform26.inter = 1;
basePlatform26.parent = 1;
basePlatform26.baseTime = 1;
mt++;
basePlatform27._visible = 0;
basePlatform27._x = (startx + 400) - w;
basePlatform27._y = starty - 150;
basePlatform27.inter = 1;
basePlatform27.baseTime = 1;
mt++;
basePlatform28._visible = 0;
basePlatform28._x = (startx + 510) - w;
basePlatform28._y = starty - 250;
basePlatform28.next = wormhole;
basePlatform28.baseTime = 1;
startx = basePlatform28._x;
starty = basePlatform28._y;
wormhole._visible = 0;
wormhole._x = (startx + 475) - w;
wormhole._y = starty;
superg.maxtargets = mt;
Instance of Symbol 196 MovieClip "basePlatform2" in Symbol 633 MovieClip Frame 1 (258 B)
onClipEvent (load) {
function pickUp() {
x = _x + 85;
y = _y - 325;
temp = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp._x = x;
temp._y = y;
temp.parent = this;
_parent.p++;
}
function unPickUp() {
temp.play();
}
}
Instance of Symbol 196 MovieClip "basePlatform3" in Symbol 633 MovieClip Frame 1 (327 B)
onClipEvent (load) {
function pickUp() {
pass = {xspeed:-12, startx:_x + 600, starty:_y - 150, dist:1100, parent:this};
temp = _parent.attachMovie("pickuph", "pickuph" + _parent.p, _parent.p, pass);
temp._x = pass.startx;
temp._y = pass.starty;
_parent.p++;
}
function unPickUp() {
temp.removeMovieClip("");
}
}
Instance of Symbol 196 MovieClip "basePlatform1" in Symbol 633 MovieClip Frame 1 (780 B)
onClipEvent (load) {
function pickUp() {
x = next._x;
y = next._y;
temp1 = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp1._x = x;
temp1._y = y - 50;
temp1.parent = this;
_parent.p++;
temp2 = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp2._x = x - 25;
temp2._y = y - 100;
temp2.parent = this;
_parent.p++;
temp3 = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp3._x = x - 50;
temp3._y = y - 150;
temp3.parent = this;
_parent.p++;
temp4 = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp4._x = x - 75;
temp4._y = y - 200;
temp4.parent = this;
_parent.p++;
}
function unPickUp() {
temp1.play();
temp2.play();
temp3.play();
temp4.play();
}
}
Instance of Symbol 560 MovieClip "wormhole" in Symbol 633 MovieClip Frame 1 (198 B)
onClipEvent (enterFrame) {
function standing() {
if (_parent._parent.session.result) {
_parent._parent.gotoAndStop("level2load");
} else {
_parent._parent.gotoAndStop("buygame");
}
}
}
Instance of Symbol 196 MovieClip "basePlatform7" in Symbol 633 MovieClip Frame 1 (326 B)
onClipEvent (load) {
function pickUp() {
pass = {xspeed:10, startx:_x - 350, starty:_y + 100, dist:1100, parent:this};
temp = _parent.attachMovie("pickuph", "pickuph" + _parent.p, _parent.p, pass);
temp._x = pass.startx;
temp._y = pass.starty;
_parent.p++;
}
function unPickUp() {
temp.removeMovieClip("");
}
}
Instance of Symbol 196 MovieClip "basePlatform8" in Symbol 633 MovieClip Frame 1 (611 B)
onClipEvent (load) {
function pickUp() {
x = next._x;
y = next._y;
temp1 = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp1._x = x + 50;
temp1._y = y - 100;
temp1.parent = this;
_parent.p++;
temp2 = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp2._x = x + 100;
temp2._y = y - 150;
temp2.parent = this._parent.p++;
temp3 = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp3._x = x + 150;
temp3._y = y - 200;
temp3.parent = this._parent.p++;
}
function unPickUp() {
temp1.play();
temp2.play();
temp3.play();
}
}
Instance of Symbol 196 MovieClip "basePlatform10" in Symbol 633 MovieClip Frame 1 (327 B)
onClipEvent (load) {
function pickUp() {
pass = {xspeed:-10, startx:_x + 600, starty:_y - 350, dist:1500, parent:this};
temp = _parent.attachMovie("pickuph", "pickuph" + _parent.p, _parent.p, pass);
temp._x = pass.startx;
temp._y = pass.starty;
_parent.p++;
}
function unPickUp() {
temp.removeMovieClip("");
}
}
Instance of Symbol 564 MovieClip "basePlatform12" in Symbol 633 MovieClip Frame 1 (262 B)
onClipEvent (load) {
function pickUp() {
x = next._x;
y = next._y - 50;
temp = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp._x = x;
temp._y = y;
temp.parent = this;
_parent.p++;
}
function unPickUp() {
temp.play();
}
}
Instance of Symbol 564 MovieClip "basePlatform13" in Symbol 633 MovieClip Frame 1 (262 B)
onClipEvent (load) {
function pickUp() {
x = next._x;
y = next._y - 50;
temp = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp._x = x;
temp._y = y;
temp.parent = this;
_parent.p++;
}
function unPickUp() {
temp.play();
}
}
Instance of Symbol 564 MovieClip "basePlatform14" in Symbol 633 MovieClip Frame 1 (21 B)
/* no clip actions */
Instance of Symbol 196 MovieClip "basePlatform19" in Symbol 633 MovieClip Frame 1 (416 B)
onClipEvent (load) {
function unPickUp() {
temp.removeMovieClip("");
}
function land(override) {
if (override == undefined) {
overide = 0;
}
if (!override) {
pass = {difx:0, dify:-175, er:50, ofr:50};
temp = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp._x = _x + ((next._x - _x) / 2);
temp._y = _y + ((next._y - _y) / 2);
_parent.p++;
}
}
}
Instance of Symbol 564 MovieClip "basePlatform21" in Symbol 633 MovieClip Frame 1 (420 B)
onClipEvent (load) {
function unPickUp() {
temp.removeMovieClip("");
}
function land(override) {
if (override == undefined) {
overide = 0;
}
if (!override) {
pass = {difx:_width * 2, dify:0, er:50, ofr:50};
temp.removeMovieClip("");
temp = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp._x = _x - _width;
temp._y = _y - 125;
_parent.p++;
}
}
}
Instance of Symbol 564 MovieClip "basePlatform24" in Symbol 633 MovieClip Frame 1 (391 B)
onClipEvent (load) {
function unPickUp() {
temp.removeMovieClip("");
}
function land(override) {
if (override == undefined) {
overide = 0;
}
if (!override) {
pass = {difx:_width * 2, dify:0, er:50, ofr:50};
temp = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp._x = _x - _width;
temp._y = _y - 115;
_parent.p++;
}
}
}
Instance of Symbol 564 MovieClip "basePlatform28" in Symbol 633 MovieClip Frame 1 (667 B)
onClipEvent (load) {
function unPickUp() {
temp1.removeMovieClip("");
temp2.removeMovieClip("");
}
function land(override) {
if (override == undefined) {
overide = 0;
}
if (!override) {
pass = {difx:0, dify:-250, er:20, ofr:0};
temp1 = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp1._x = _x + ((next._x - _x) / 2);
temp1._y = _y - _height;
_parent.p++;
pass = {difx:200, dify:0, er:20, ofr:0};
temp2 = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp2._x = _x + ((next._x - _x) / 2);
temp2._y = (_y - _height) - 250;
_parent.p++;
}
}
}
Instance of Symbol 621 MovieClip "superg" in Symbol 633 MovieClip Frame 1 (20.03 KiB) ● ● ●
onClipEvent (load) {
function aimit() {
pos = _root._xmouse - _parent._x;
if (pos > _x) {
if ((_x + _parent.aimer.radar._width) > ((-destx) + 550)) {
_xscale = -100;
} else {
_xscale = 100;
}
} else if ((_x - _parent.aimer.radar._width) < (-destx)) {
_xscale = 100;
} else {
_xscale = -100;
}
if (_xscale > 0) {
arot = ((360 - ((Math.atan2(((_x + arm._x) - _root._xmouse) + _parent._x, ((_y + arm._y) - _root._ymouse) + _parent._y) * 180) / Math.PI)) - 90) - 90;
if (arot > 270) {
arot = 270;
}
if (arot < 180) {
arot = 180;
}
guy.head._rotation = (arot - 270) / 2;
_parent.aimer._xscale = 100;
_parent.aimer._x = _x;
_parent.aimer._y = _y - 40;
} else {
arot = (((Math.atan2(((_x + arm._x) - _root._xmouse) + _parent._x, ((_y + arm._y) - _root._ymouse) + _parent._y) * 180) / Math.PI) - 90) - 90;
if (arot > -90) {
arot = -90;
}
if (arot < -180) {
arot = -180;
}
guy.head._rotation = ((arot - 270) + 360) / 2;
_parent.aimer._xscale = -100;
_parent.aimer._x = _x;
_parent.aimer._y = _y - 40;
}
}
this.gotoAndStop("blank");
lives = _parent.baseLives;
_parent._parent.airbrakes = _parent._parent.airbrakes + 3;
startx = _x;
starty = _y;
aim = 1;
sw = 550;
sh = 400;
destx = _parent.topx;
desty = _parent.topy;
this.swapDepths(10000);
i = 0;
targetnum = 1;
base = _parent.basePlatform0;
target = _parent["basePlatform" + targetnum];
first = 1;
clev = 1;
jumpno = 0;
jumpnum = 0;
combo = 0;
}
onClipEvent (enterFrame) {
_parent._parent.lives = lives;
_parent._parent.knuggsc = _parent._parent.knuggs;
_parent._parent.airbrakesc = _parent._parent.airbrakes;
_parent._parent.level = clev;
if (lives <= 0) {
_parent._parent.gotoAndStop("gameover");
}
if (!first) {
if (aim) {
aimit();
if ((_parent.aimer.dist < 125) && (_parent.aimer.ok)) {
Mouse.hide();
} else {
Mouse.show();
}
} else if (go) {
if (flying) {
die = 1;
oldy = _y;
oldx = _x;
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_x > ((sw - 20) + (-destx))) {
_x = ((sw - 20) + (-destx));
xspeed = xspeed * -1;
_xscale = (_xscale * -1);
if (_currentframe == 3) {
gotoAndStop (4);
_rotation = 0;
}
ricochet++;
soundClip.gotoAndPlay("ricochet");
}
if (_x < (20 + (-destx))) {
_x = (20 + (-destx));
xspeed = xspeed * -1;
_xscale = (_xscale * -1);
if (_currentframe == 3) {
gotoAndStop (4);
_rotation = 0;
}
ricochet++;
soundClip.gotoAndPlay("ricochet");
}
if (_y < (-desty)) {
_parent.arrow._x = _x;
_parent.arrow._y = (-desty) + 10;
} else {
_parent.arrow._y = 5000;
}
if (yspeed >= 0) {
if (_currentframe == 3) {
gotoAndStop (4);
_rotation = 0;
}
}
if (((!dead) && (_y >= (target._y + target.anchor._y))) && (oldy <= (target._y + target.anchor._y))) {
if ((_x > (target._x + target.anchor._x)) && (_x < (target._x + target.anchor2._x))) {
if (!target.land()) {
soundClip.gotoAndPlay("land");
flying = 0;
die = 0;
_y = (target._y + target.anchor._y);
gotoAndStop (6);
_parent.smoke.gotoAndPlay(1);
_parent.smoke._x = _x;
_parent.smoke._y = _y;
im = 0;
if (targetnum < maxtargets) {
if (target.inter) {
im = 1;
if (target.parent) {
firstinter = base;
secondinter = target;
targetnuminter = targetnum;
}
} else {
lives = _parent.baseLives;
with (_parent.aimer) {
oldercrossx = 0;
oldercrossy = 5000;
oldcrossx = 0;
oldcrossy = 5000;
oldercrossxi = 0;
oldercrossyi = 5000;
oldcrossxi = 0;
oldcrossyi = 5000;
oldcross._x = 0;
oldcross._y = 5000;
oldercross._x = 0;
oldercross._y = 5000;
oldcross.gotoAndStop(1);
oldercross.gotoAndStop(1);
}
clev++;
}
targetnum++;
base.gotoAndPlay("dissapear");
base.unPickUp();
if (xs == 1) {
if (airbrake == 0) {
base.oldcrossf = 2;
} else {
base.oldcrossf = 3;
}
} else if (airbrake == 0) {
base.oldcrossfi = 2;
} else {
base.oldcrossf = 3;
}
base = target;
if (targetnum != maxtargets) {
target = _parent["basePlatform" + targetnum];
} else {
soundClip.gotoAndPlay("wormhole");
target = _parent.wormhole;
tika = 0;
}
if (base.inter || (target.inter)) {
if (base.aimdata) {
_parent.aimer.oldercrossx = base.oldercrossx;
_parent.aimer.oldercrossy = base.oldercrossy;
_parent.aimer.oldcrossx = base.oldcrossx;
_parent.aimer.oldcrossy = base.oldcrossy;
_parent.aimer.oldercrossxi = base.oldercrossxi;
_parent.aimer.oldercrossyi = base.oldercrossyi;
_parent.aimer.oldcrossxi = base.oldcrossxi;
_parent.aimer.oldcrossyi = base.oldcrossyi;
_parent.aimer.oldcrossf = base.oldcrossf;
_parent.aimer.oldercrossf = base.oldercrossf;
_parent.aimer.oldcrossfi = base.oldcrossfi;
_parent.aimer.oldercrossfi = base.oldercrossfi;
} else {
with (_parent.aimer) {
oldercrossx = 0;
oldercrossy = 5000;
oldcrossx = 0;
oldcrossy = 5000;
oldercrossxi = 0;
oldercrossyi = 5000;
oldcrossxi = 0;
oldcrossyi = 5000;
oldcross._x = 0;
oldcross._y = 5000;
oldercross._x = 0;
oldercross._y = 5000;
}
base.aimdata = 1;
base.oldercrossx = 0;
base.oldercrossy = 5000;
base.oldcrossx = 0;
base.oldcrossy = 5000;
base.oldercrossxi = 0;
base.oldercrossyi = 5000;
base.oldcrossxi = 0;
base.oldcrossyi = 5000;
base.oldcrossf = 1;
base.oldercrossf = 1;
base.oldcrossfi = 1;
base.oldercrossfi = 1;
}
base.landx = _x;
}
target._visible = 1;
} else {
base.unPickUp();
base.gotoAndPlay("dissapear");
base = _parent.wormhole;
lives = _parent.baseLives;
aim = 0;
first = 1;
begin = 0;
go = 0;
end = 1;
_parent.anchor.onEnterFrame = _parent.anchor.remove;
}
}
if (dead == 0) {
if (im == 0) {
jumpnum++;
}
if (jumpnum > 2) {
if (_parent._parent.airbrakes < 3) {
_parent._parent.airbrakes++;
}
jumpnum = 0;
}
totnum = 0;
if (im == 0) {
totnum = totnum + 20;
}
if (jumpno == 1) {
combo++;
if (combo > 1) {
totnum = totnum + 20;
}
totnum = totnum + 20;
}
if ((_x > (base._x - 10)) && (_x < (base._x + 10))) {
totnum = totnum + 20;
}
if (dist >= 100) {
totnum = totnum + 20;
}
r = 0;
while (r < ricochet) {
totnum = totnum + 20;
r++;
}
if (airbrake) {
totnum = totnum + 20;
}
if (collect) {
totnum = totnum + 20;
}
bnum = 0;
if (((_y - 100) - totnum) < (-desty)) {
totnum = 0;
if ((_y - 100) < (-desty)) {
totnum = -50;
}
}
snumber = _parent.snumber;
if (im == 0) {
if (base._name != "wormhole") {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Level Clear: +" + (snumber * 2), 1, 0 + bnum);
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 2);
} else {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "World Clear!: +" + (snumber * 20), 32, 0 + bnum);
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 20);
}
bnum = bnum + 20;
}
if (jumpno == 1) {
if (combo < 2) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 2), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 2);
} else if (combo == 2) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Combo!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 3), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 3);
} else if (combo == 3) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Double Combo!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 4), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 4);
} else if (combo == 4) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Triple Combo!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 5), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 5);
} else if (combo == 5) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Super Combo!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 6), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 6);
} else if (combo == 6) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Mega Combo!!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 7), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 7);
} else if (combo == 7) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Ultra Combo!!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 8), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 8);
} else if (combo == 8) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Extreme Combo!!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 9), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 9);
} else if (combo >= 9) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Top Secret Combo!!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 10), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 10);
}
}
jumpno = 0;
if ((_x > (base._x - 10)) && (_x < (base._x + 10))) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Accuracy: +" + snumber, 1, 0 + bnum);
_parent._parent.knuggs = _parent._parent.knuggs + snumber;
bnum = bnum + 20;
}
if (dist >= 100) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Full Speed: +" + snumber, 1, 0 + bnum);
_parent._parent.knuggs = _parent._parent.knuggs + snumber;
bnum = bnum + 20;
}
r = 0;
while (r < ricochet) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Ricochet: +" + snumber, 1, 0 + bnum);
_parent._parent.knuggs = _parent._parent.knuggs + snumber;
bnum = bnum + 20;
r++;
}
if (airbrake) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Airbrake: +" + snumber, 1, 0 + bnum);
_parent._parent.knuggs = _parent._parent.knuggs + snumber;
bnum = bnum + 20;
}
if (collect) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Katra Landed: +" + (snumber * 4), 1, 0 + bnum);
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 4);
bnum = bnum + 20;
}
}
}
} else if (((!dead) && (_y >= (target._y - target._height))) && (_y <= target._y)) {
if ((_x > (target._x + target.anchor._x)) && (_x < (target._x + target.anchor2._x))) {
target.land(1);
}
}
if (_y > ((sh - _parent._y) + (_height * 2))) {
flying = 0;
die = 1;
dead = 1;
soundClip.gotoAndPlay("fall");
}
yspeed++;
ticks++;
if ((ticks >= (_parent._parent.maxtraild - _parent._parent.traild)) && (_parent._parent.traild != 0)) {
temp = _parent.anchor.attachMovie("dot", "dot" + i, i);
_parent.anchor.n++;
temp._x = _x;
temp._y = _y - 30;
y = y - 10;
if (y < 0) {
y = 0;
}
rgb = ((y << 16) | (f << 8)) | y;
_parent.anchor.lineStyle(2, rgb, 100);
_parent.anchor.lineTo(_x, _y - 30);
i++;
ticks = 0;
}
} else {
tik++;
if (((Key.isDown(32) || (dead)) || (tik > 25)) || (im && (tik > 15))) {
if (die || (dead)) {
if (firstdie) {
if (im) {
base.unPickUp();
target.unPickUp();
base.gotoAndPlay("dissapear");
target.gotoAndPlay("dissapear");
base = firstinter;
base.gotoAndStop(1);
base._visible = 1;
startx = base._x;
starty = base._y + base.anchor._y;
target = secondinter;
target.gotoAndStop(1);
target._visible = 1;
target.reset();
base.land();
targetnum = targetnuminter;
if (base.aimdata) {
_parent.aimer.oldercrossx = base.oldercrossx;
_parent.aimer.oldercrossy = base.oldercrossy;
_parent.aimer.oldcrossx = base.oldcrossx;
_parent.aimer.oldcrossy = base.oldcrossy;
_parent.aimer.oldercrossxi = base.oldercrossxi;
_parent.aimer.oldercrossyi = base.oldercrossyi;
_parent.aimer.oldcrossxi = base.oldcrossxi;
_parent.aimer.oldcrossyi = base.oldcrossyi;
_parent.aimer.oldcrossf = base.oldcrossf;
_parent.aimer.oldercrossf = base.oldercrossf;
_parent.aimer.oldcrossfi = base.oldcrossfi;
_parent.aimer.oldercrossfi = base.oldercrossfi;
} else {
with (_parent.aimer) {
oldercrossx = 0;
oldercrossy = 5000;
oldcrossx = 0;
oldcrossy = 5000;
oldercrossxi = 0;
oldercrossyi = 5000;
oldcrossxi = 0;
oldcrossyi = 5000;
oldcross._x = 0;
oldcross._y = 5000;
oldercross._x = 0;
oldercross._y = 5000;
}
base.aimdata = 1;
base.oldercrossx = 0;
base.oldercrossy = 5000;
base.oldcrossx = 0;
base.oldcrossy = 5000;
base.oldercrossxi = 0;
base.oldercrossyi = 5000;
base.oldcrossxi = 0;
base.oldcrossyi = 5000;
base.oldcrossf = 1;
base.oldercrossf = 1;
base.oldcrossfi = 1;
base.oldercrossfi = 1;
}
startx = base.landx;
}
lives--;
_x = startx;
_y = starty;
back = 1;
res = 0;
_parent.anchor.onEnterFrame = _parent.anchor.remove;
this.gotoAndStop("reserect");
soundClip.gotoAndPlay("reser");
firstdie = 0;
combo = 0;
}
} else if (firstdie) {
if (!im) {
soundClip.gotoAndPlay("nextlev");
}
scroll = 1;
_parent.anchor.onEnterFrame = _parent.anchor.remove;
firstdie = 0;
}
}
if (back) {
base._visible = 1;
base.gotoAndStop(1);
if (res) {
aim = 1;
aimit();
_parent.aimer._visible = 1;
base.onEnterFrame = base.standing;
soundClip.gotoAndPlay("ready");
i = 0;
gotoAndStop (1);
back = 0;
res = 0;
}
}
if (scroll) {
if (!im) {
destx = ((-base._x) + (base._width / 2)) + _parent.topx;
desty = (_parent.topy - base._y) + sh;
}
if ((((_parent._x > (destx + 1)) || (_parent._x < (destx - 1))) || (_parent._y > (desty + 1))) || (_parent._y < (desty - 1))) {
_parent._x = _parent._x + ((destx - _parent._x) / 6);
_parent._y = _parent._y + ((desty - _parent._y) / 6);
} else {
_parent._x = destx;
_parent._y = desty;
startx = _x;
starty = _y;
with (_parent.aimer) {
_visible = 1;
}
aim = 1;
aimit();
base.onEnterFrame = base.standing;
base.pickUp();
i = 0;
gotoAndStop (1);
soundClip.gotoAndPlay("ready");
scroll = 0;
}
}
}
}
} else {
if (begin) {
this.gotoAndStop("warpin");
}
if (go) {
this.gotoAndStop("standing");
_parent.aimer._visible = 1;
first = 0;
soundClip.gotoAndPlay("ready");
}
if (end) {
tika++;
if (tika > 25) {
this.gotoAndStop("warpout");
_x = (_x + ((base._x - _x) / 2));
_y = (_y + (((base._y - 60) - _y) / 2));
if (tika > 50) {
base.play();
if (tika > 100) {
base.onEnterFrame = base.standing;
}
}
}
}
}
dc++;
}
onClipEvent (mouseDown) {
if (((aim && (!first)) && (_parent.aimer.dist < 125)) && (_parent.aimer.ok)) {
with (_parent.aimer) {
_visible = 0;
if (_xscale > 0) {
oldercrossx = oldcrossx;
oldercrossy = oldcrossy;
oldcrossx = cross._x;
oldcrossy = cross._y;
oldercrossf = oldcrossf;
oldcrossf = 1;
} else {
oldercrossxi = oldcrossxi;
oldercrossyi = oldcrossyi;
oldcrossxi = cross._x;
oldcrossyi = cross._y;
oldercrossfi = oldcrossfi;
oldcrossfi = 1;
}
}
if (base.inter || (target.inter)) {
if (base.aimdata == 1) {
if (_xscale > 0) {
base.oldercrossx = _parent.aimer.oldercrossx;
base.oldercrossy = _parent.aimer.oldercrossy;
base.oldcrossx = _parent.aimer.oldcrossx;
base.oldcrossy = _parent.aimer.oldcrossy;
base.oldercrossf = _parent.aimer.oldercrossf;
base.oldcrossf = 1;
} else {
base.oldercrossxi = _parent.aimer.oldercrossxi;
base.oldercrossyi = _parent.aimer.oldercrossyi;
base.oldcrossxi = _parent.aimer.oldcrossxi;
base.oldcrossyi = _parent.aimer.oldcrossyi;
base.oldercrossfi = _parent.aimer.oldercrossfi;
base.oldcrossfi = 1;
}
}
}
if (_xscale > 0) {
rot = Math.floor(_parent.aimer.rot);
dist = Math.floor(Math.min(_parent.aimer.dist, 100));
speed = 7 * (dist / 22);
xs = 1;
} else {
rot = Math.floor(((Math.atan2(-_parent.aimer.cross._x, -_parent.aimer.cross._y) * 180) / Math.PI) - 180);
dist = Math.floor(Math.min(_parent.aimer.dist, 100));
speed = 7 * (-(dist / 22));
xs = -1;
}
xspeed = speed * Math.cos(((rot - 90) * Math.PI) / 180);
yspeed = speed * Math.sin(((rot - 90) * Math.PI) / 180);
aim = 0;
flying = 1;
go = 0;
gotoAndStop (2);
_parent.attachMovie("draw", "anchor", 100);
_parent.anchor.moveTo(_x, _y - 30);
startx = _x;
starty = _y;
base.launch();
base.onEnterFrame = null;
dead = 0;
y = 255;
f = 255;
rgb = ((y << 16) | (f << 8)) | y;
tik = 0;
firstdie = 1;
res = 0;
scroll = 0;
back = 0;
airbrake = 0;
ricochet = 0;
collect = 0;
_parent.smoke.gotoAndPlay(1);
_parent.smoke._x = _x;
_parent.smoke._y = _y;
Mouse.show();
jumpno++;
soundClip.gotoAndPlay("launch");
}
if (!aim) {
if (dc < 5) {
if (flying) {
if ((((_parent._parent.airbrakes > 0) && (airbrake == 0)) && (_y < ((-desty) + sh))) && (dead == 0)) {
airbrake = 1;
xspeed = 0;
yspeed = 0;
_parent._parent.airbrakes--;
_parent.smoke.gotoAndPlay(1);
_parent.smoke._x = _x;
_parent.smoke._y = _y;
soundClip.gotoAndPlay("airbrake");
}
}
}
dc = 0;
}
}
Instance of Symbol 628 MovieClip "aimer" in Symbol 633 MovieClip Frame 1 (2.4 KiB) ●
onClipEvent (load) {
_visible = 0;
this.swapDepths(9999);
oldercrossx = 0;
oldercrossy = 5000;
oldcrossx = 0;
oldcrossy = 5000;
oldercrossxi = 0;
oldercrossyi = 5000;
oldcrossxi = 0;
oldcrossyi = 5000;
oldcrossf = 1;
oldercrossf = 1;
oldcrossfi = 1;
oldercrossf = 1;
}
onClipEvent (enterFrame) {
ok = 1;
if (_visible) {
if (_xscale > 0) {
oldercross._x = oldercrossx;
oldercross._y = oldercrossy;
oldcross._x = oldcrossx;
oldcross._y = oldcrossy;
oldcross.gotoAndStop(oldcrossf);
oldercross.gotoAndStop(oldercrossf);
cross._x = _root._xmouse - (_x + _parent._x);
cross._y = _root._ymouse - (_y + _parent._y);
if ((cross._y > 25) || (cross._x < -25)) {
ok = 0;
}
if (cross._y > 0) {
cross._y = 0;
}
if (cross._x < 0) {
cross._x = 0;
}
dist = Math.sqrt(((cross._x - 0) * (cross._x - 0)) + ((cross._y - 0) * (cross._y - 0)));
rot = ((360 - ((Math.atan2(-cross._x, -cross._y) * 180) / Math.PI)) - 90) + 90;
if (dist > 100) {
cross._x = 100 * Math.cos(((rot - 90) * Math.PI) / 180);
cross._y = 100 * Math.sin(((rot - 90) * Math.PI) / 180);
}
line._rotation = rot;
line.line._height = Math.sqrt(Math.pow(-_parent.aimer.cross._x, 2) + Math.pow(-_parent.aimer.cross._y, 2));
} else {
oldercross._x = oldercrossxi;
oldercross._y = oldercrossyi;
oldcross._x = oldcrossxi;
oldcross._y = oldcrossyi;
oldcross.gotoAndStop(oldcrossfi);
oldercross.gotoAndStop(oldercrossfi);
cross._x = (_x - _root._xmouse) + _parent._x;
cross._y = (_root._ymouse - _y) - _parent._y;
if ((cross._y > 25) || (cross._x < -25)) {
ok = 0;
}
if (cross._y > 0) {
cross._y = 0;
}
if (cross._x < 0) {
cross._x = 0;
}
dist = Math.sqrt(((cross._x - 0) * (cross._x - 0)) + ((cross._y - 0) * (cross._y - 0)));
rot = ((360 - ((Math.atan2(-cross._x, -cross._y) * 180) / Math.PI)) - 90) + 90;
if (dist > 100) {
cross._x = 100 * Math.cos(((rot - 90) * Math.PI) / 180);
cross._y = 100 * Math.sin(((rot - 90) * Math.PI) / 180);
}
line._rotation = rot;
line.line._height = Math.sqrt(Math.pow(-_parent.aimer.cross._x, 2) + Math.pow(-_parent.aimer.cross._y, 2));
}
pd = Math.floor(rot - 360);
pv = Math.floor(Math.min(dist, 100));
power._xscale = _xscale;
if (_xscale < 0) {
power._x = power.a._x;
pd = -pd;
} else {
power._x = 0;
}
power.deg = pd;
power.pow = pv;
}
}
Instance of Symbol 196 MovieClip "basePlatform17" in Symbol 633 MovieClip Frame 1 (410 B)
onClipEvent (load) {
function unPickUp() {
temp.removeMovieClip("");
}
function land(override) {
if (override == undefined) {
overide = 0;
}
if (!override) {
pass = {difx:0, dify:150, er:50, ofr:50};
temp.removeMovieClip("");
temp = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp._x = _x - 125;
temp._y = _y - 150;
_parent.p++;
}
}
}
Symbol 661 MovieClip Frame 1 (8 B)
stop();
Symbol 661 MovieClip Frame 9 (15 B)
_visible = 0;
Symbol 663 MovieClip Frame 1 (8 B)
stop();
Symbol 663 MovieClip Frame 9 (15 B)
_visible = 0;
Symbol 664 MovieClip Frame 1 (8 B)
stop();
Symbol 664 MovieClip Frame 4 (17 B)
gotoAndPlay (3);
Symbol 674 MovieClip Frame 1 (121 B)
function reset() {
m._height = h;
r._y = h - 35;
}
onEnterFrame = function () {
_visible = parent._visible;
};
Symbol 684 MovieClip Frame 1 (772 B)
function land(override) {
if (override == undefined) {
override = 0;
}
if (override) {
if (!fire) {
return(0);
}
}
if (fire || (override)) {
stop();
_parent.superg.gotoAndStop("spiking");
_parent.superg.soundClip.gotoAndStop("fire");
_parent.superg.yspeed = -10;
_parent.superg.xspeed = -3 + random(6);
_parent.superg.die = 1;
_parent.superg.dead = 1;
return(1);
}
gotoAndStop (1);
onEnterFrame = null;
}
function reset() {
gotoAndPlay (1);
onEnterFrame = active;
}
function standing() {
gotoAndStop (1);
onEnterFrame = null;
fire = 0;
}
fire = 0;
active = function () {
if (_visible) {
play();
} else {
stop();
}
};
if (ft == undefined) {
onEnterFrame = active;
ft = 1;
}
stop();
Symbol 684 MovieClip Frame 36 (10 B)
fire = 1;
Symbol 684 MovieClip Frame 64 (17 B)
gotoAndPlay (1);
Symbol 684 MovieClip Frame 74 (15 B)
_visible = 0;
Symbol 687 MovieClip Frame 1 (120 B)
function reset() {
m._width = w;
r._x = w - 25;
}
onEnterFrame = function () {
_visible = parent._visible;
};
Symbol 712 MovieClip Frame 47 (8 B)
stop();
Symbol 713 MovieClip Frame 1 (704 B)
function launch() {
play();
c = 1;
ft2 = 0;
}
stop();
reset = function () {
gotoAndStop (1);
time = basetime;
r = 21;
ft = 1;
t = 0;
f = 0;
ft2 = 1;
c = 0;
onEnterFrame = null;
};
reset();
standing = function () {
if (ft) {
_visible = 1;
gotoAndStop (2);
ft = 0;
}
t++;
if (t > r) {
time--;
t = 0;
}
if (time <= 0) {
if (f) {
if (ft2) {
with (_parent.superg) {
gotoAndStop("diefalling");
flying = 1;
aim = 0;
dead = 1;
firstdie = 1;
yspeed = 0;
xspeed = 0;
oldy = 50000;
_parent.aimer._visible = 0;
}
ft2 = 0;
}
} else {
play();
c = 1;
}
}
};
Symbol 713 MovieClip Frame 2 (8 B)
stop();
Symbol 713 MovieClip Frame 37 (7 B)
f = 1;
Symbol 713 MovieClip Frame 65 (30 B)
onEnterFrame = null;
stop();
Symbol 713 MovieClip Frame 75 (37 B)
_visible = 0;
removeMovieClip("");
Symbol 713 MovieClip Frame 78 (29 B)
if (c) {
_visible = 0;
}
Symbol 713 MovieClip Frame 83 (15 B)
_visible = 0;
Symbol 714 MovieClip Frame 1 (772 B)
function land(override) {
if (override == undefined) {
override = 0;
}
if (override) {
if (!fire) {
return(0);
}
}
if (fire || (override)) {
stop();
_parent.superg.gotoAndStop("spiking");
_parent.superg.soundClip.gotoAndStop("fire");
_parent.superg.yspeed = -10;
_parent.superg.xspeed = -3 + random(6);
_parent.superg.die = 1;
_parent.superg.dead = 1;
return(1);
}
gotoAndStop (1);
onEnterFrame = null;
}
function reset() {
gotoAndPlay (1);
onEnterFrame = active;
}
function standing() {
gotoAndStop (1);
onEnterFrame = null;
fire = 0;
}
fire = 0;
active = function () {
if (_visible) {
play();
} else {
stop();
}
};
if (ft == undefined) {
onEnterFrame = active;
ft = 1;
}
stop();
Symbol 714 MovieClip Frame 36 (10 B)
fire = 1;
Symbol 714 MovieClip Frame 64 (17 B)
gotoAndPlay (1);
Symbol 714 MovieClip Frame 74 (15 B)
_visible = 0;
Symbol 716 MovieClip Frame 1 (8 B)
stop();
Symbol 716 MovieClip Frame 9 (15 B)
_visible = 0;
Symbol 717 MovieClip Frame 1 (968 B)
function land(override) {
if (override == undefined) {
override = 0;
}
if (override) {
if (!fire) {
return(0);
}
}
if (fire || (override)) {
stop();
_parent.superg.gotoAndStop("spiking");
_parent.superg.soundClip.gotoAndStop("fire");
_parent.superg.yspeed = -10;
_parent.superg.xspeed = -3 + random(6);
_parent.superg.die = 1;
_parent.superg.dead = 1;
return(1);
}
gotoAndStop (1);
onEnterFrame = null;
}
function reset() {
gotoAndPlay (1);
onEnterFrame = function () {
active();
move();
};
}
function standing() {
gotoAndStop (1);
onEnterFrame = null;
fire = 0;
}
fire = 0;
move = function () {
t++;
if (t > time) {
dir = dir != 1;
t = 0;
}
if (dir) {
_x = (_x + speed);
} else {
_x = (_x - speed);
}
};
active = function () {
if (_visible) {
play();
} else {
stop();
}
};
if (ft == undefined) {
onEnterFrame = active;
ft = 1;
}
stop();
Symbol 717 MovieClip Frame 2 (55 B)
onEnterFrame = function () {
active();
move();
};
Symbol 717 MovieClip Frame 24 (10 B)
fire = 1;
Symbol 717 MovieClip Frame 52 (17 B)
gotoAndPlay (1);
Symbol 717 MovieClip Frame 62 (15 B)
_visible = 0;
Symbol 718 MovieClip Frame 1 (6.01 KiB) ● ●
function addPopUp(x, y, text, col, ydif, alpha) {
temp = this.attachMovie("Popup", "PopUp" + pu, pu);
temp._x = x;
temp._y = y;
temp.gfx.text = text;
temp.gfx._alpha = alpha;
if (col != 32) {
temp.gfx.gotoAndStop(col);
}
if ((temp._x - (temp._width / 2)) < ((-superg.destx) + 20)) {
temp._x = ((-superg.destx) + 20) + (temp._width / 2);
}
if ((temp._x + (temp._width / 2)) > (((-superg.destx) + sw) + 20)) {
temp._x = (((-superg.destx) + sw) + 20) - (temp._width / 2);
}
if ((temp._y - 50) < (-superg.desty)) {
}
pu++;
}
w = basePlatform0._width;
h = basePlatform0._height;
sw = 510;
sh = 400;
startx = 0;
starty = 400;
p = 4000;
pu = 100000 /* 0x0186A0 */;
mt = 1;
snumber = 10;
baseLives = 5;
basePlatform0._x = startx + (w / 2);
mt++;
basePlatform1._x = (startx + 375) - w;
basePlatform1._y = starty - 150;
starty = basePlatform1._y;
mt++;
basePlatform2._x = startx + (w / 2);
basePlatform2._y = starty - 200;
basePlatform2._visible = 0;
starty = basePlatform2._y;
mt++;
basePlatform3._x = (startx + 350) - w;
basePlatform3._y = starty - 100;
basePlatform3._visible = 0;
basePlatform3.parent = 1;
basePlatform3.inter = 1;
mt++;
basePlatform4._x = startx + 100;
basePlatform4._y = starty - 200;
basePlatform4._visible = 0;
basePlatform4.baseTime = 3;
starty = basePlatform4._y;
basePlatform4.startx = startx;
basePlatform4.starty = starty;
mt++;
basePlatform5._x = startx + 400;
basePlatform5._y = starty - 200;
basePlatform5._visible = 0;
starty = basePlatform5._y;
mt++;
basePlatform6._x = startx + 50;
basePlatform6._y = starty - 100;
basePlatform6._visible = 0;
starty = basePlatform6._y;
mt++;
basePlatform7._x = startx + 275;
basePlatform7._y = starty - 200;
basePlatform7._visible = 0;
basePlatform7.baseTime = 2;
basePlatform7.parent = 1;
basePlatform7.inter = 1;
mt++;
basePlatform8._x = startx + 300;
basePlatform8._y = starty - 100;
basePlatform8._visible = 0;
basePlatform8.next = basePlatform9;
starty = basePlatform8._y;
mt++;
basePlatform9._x = startx + 75;
basePlatform9._y = starty;
basePlatform9._visible = 0;
basePlatform9.baseTime = 2;
basePlatform9.parent = 1;
basePlatform9.inter = 1;
mt++;
basePlatform10._x = startx + 75;
basePlatform10._y = starty - 200;
basePlatform10._visible = 0;
basePlatform10.baseTime = 2;
starty = basePlatform10._y;
mt++;
basePlatform11._x = startx + 300;
basePlatform11._y = starty - 250;
basePlatform11._visible = 0;
basePlatform11.parent = 1;
basePlatform11.inter = 1;
basePlatform11.next = basePlatform12;
mt++;
basePlatform12._x = ((startx + 550) - w) + 10;
basePlatform12._y = starty - 280;
basePlatform12._visible = 0;
starty = basePlatform12._y;
mt++;
basePlatform13._x = startx + 100;
basePlatform13._y = starty;
basePlatform13._visible = 0;
basePlatform13.parent = 1;
basePlatform13.inter = 1;
basePlatform13.next = basePlatform14;
mt++;
basePlatform14._x = startx + 400;
basePlatform14._y = starty - 200;
basePlatform14._visible = 0;
basePlatform14.inter = 1;
mt++;
basePlatform15._x = startx + 100;
basePlatform15._y = starty - 200;
basePlatform15._visible = 0;
starty = basePlatform15._y;
basePlatform15.startx = startx;
basePlatform15.starty = starty;
mt++;
basePlatform16._x = startx + 400;
basePlatform16._y = starty - 100;
basePlatform16._visible = 0;
basePlatform16.parent = 1;
basePlatform16.inter = 1;
basePlatform16.startx = startx;
basePlatform16.starty = starty;
mt++;
basePlatform17._x = startx + 300;
basePlatform17._y = starty - 300;
basePlatform17._visible = 0;
basePlatform17.baseTime = 2;
starty = basePlatform17._y;
mt++;
basePlatform18._x = startx + 400;
basePlatform18._y = starty - 150;
basePlatform18._visible = 0;
basePlatform18.parent = 1;
basePlatform18.inter = 1;
basePlatform18.baseTime = 2;
mt++;
basePlatform19._x = startx + 50;
basePlatform19._y = starty - 200;
basePlatform19._visible = 0;
basePlatform19.baseTime = 2;
starty = basePlatform19._y;
mt++;
basePlatform20._x = startx + 455;
basePlatform20._y = starty - 175;
basePlatform20._visible = 0;
basePlatform20.parent = 1;
basePlatform20.inter = 1;
mt++;
basePlatform21._x = startx + 50;
basePlatform21._y = starty - 175;
basePlatform21._visible = 0;
basePlatform21.inter = 1;
mt++;
basePlatform22._x = startx + 336;
basePlatform22._y = starty - 175;
basePlatform22._visible = 0;
starty = basePlatform22._y;
mt++;
basePlatform23._x = startx + 400;
basePlatform23._y = starty - 250;
basePlatform23._visible = 0;
basePlatform23.parent = 1;
basePlatform23.inter = 1;
mt++;
basePlatform24._x = startx + 75;
basePlatform24._y = starty - 125;
basePlatform24._visible = 0;
basePlatform24.inter = 1;
mt++;
basePlatform25._x = startx + 400;
basePlatform25._y = starty - 250;
basePlatform25._visible = 0;
starty = basePlatform25._y;
mt++;
basePlatform26._x = startx + 165;
basePlatform26._y = starty - 250;
basePlatform26._visible = 0;
basePlatform26.parent = 1;
basePlatform26.inter = 1;
mt++;
basePlatform27._x = startx + 46;
basePlatform27._y = starty - 250;
basePlatform27._visible = 0;
basePlatform27.inter = 1;
mt++;
basePlatform28._x = startx + 250;
basePlatform28._y = starty - 250;
basePlatform28._visible = 0;
starty = basePlatform28._y;
mt++;
basePlatform29._x = startx + 50;
basePlatform29._y = starty - 200;
basePlatform29._visible = 0;
starty = basePlatform29._y;
mt++;
basePlatform30._x = startx + 175;
basePlatform30._y = starty - 200;
basePlatform30._visible = 0;
starty = basePlatform30._y;
mt++;
basePlatform31._x = startx + 50;
basePlatform31._y = starty - 200;
basePlatform31._visible = 0;
basePlatform31.parent = 1;
basePlatform31.inter = 1;
basePlatform31.baseTime = 2;
mt++;
basePlatform32._x = startx + 50;
basePlatform32._y = starty;
basePlatform32._visible = 0;
basePlatform32.inter = 1;
mt++;
basePlatform33._x = startx + 225;
basePlatform33._y = starty - 275;
basePlatform33._visible = 0;
basePlatform33.starty = starty;
wormhole._visible = 0;
wormhole._x = (startx + 550) - 90;
wormhole._y = starty - 275;
superg.maxtargets = mt;
Instance of Symbol 661 MovieClip "basePlatform0" in Symbol 718 MovieClip Frame 1 (325 B)
onClipEvent (load) {
function pickUp() {
pass = {xspeed:-5, startx:_x + 600, starty:_y - 350, dist:750, parent:this};
temp = _parent.attachMovie("pickuph", "pickuph" + _parent.p, _parent.p, pass);
temp._x = pass.startx;
temp._y = pass.starty;
_parent.p++;
}
function unPickUp() {
temp.removeMovieClip("");
}
}
Instance of Symbol 664 MovieClip "wormhole" in Symbol 718 MovieClip Frame 1 (214 B)
onClipEvent (enterFrame) {
function standing() {
_parent._parent.gotoAndStop("level3load");
}
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.w = 0;
track.parent = this;
track.reset();
}
Instance of Symbol 684 MovieClip "basePlatform1" in Symbol 718 MovieClip Frame 1 (443 B)
onClipEvent (load) {
function unPickUp() {
temp.removeMovieClip("");
}
function pickUp() {
pass = {difx:0, dify:-200, er:50, ofr:50};
temp.removeMovieClip("");
temp = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp._x = _x - _width;
temp._y = _y - 115;
_parent.p++;
}
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.h = 0;
track.parent = this;
track.reset();
}
Instance of Symbol 713 MovieClip "basePlatform4" in Symbol 718 MovieClip Frame 1 (827 B)
onClipEvent (load) {
function pickUp() {
x = startx + 400;
y = starty - 250;
temp.play();
temp = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp._x = x;
temp._y = y;
temp.parent = this;
_parent.p++;
temp2.play();
temp2 = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp2._x = x;
temp2._y = y + 50;
temp2.parent = this;
_parent.p++;
temp3.play();
temp3 = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp3._x = x;
temp3._y = y + 100;
temp3.parent = this;
_parent.p++;
temp4.play();
temp4 = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp4._x = x;
temp4._y = y + 150;
temp4.parent = this;
_parent.p++;
}
function unPickUp() {
temp.play();
temp2.play();
temp3.play();
temp4.play();
}
}
Instance of Symbol 714 MovieClip "basePlatform3" in Symbol 718 MovieClip Frame 1 (137 B)
onClipEvent (load) {
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.w = 0;
track.parent = this;
track.reset();
}
Instance of Symbol 661 MovieClip "basePlatform5" in Symbol 718 MovieClip Frame 1 (597 B)
onClipEvent (load) {
function reset() {
onenterFrame = move;
}
function standing() {
onenterFrame = null;
}
function land(override) {
if (override == undefined) {
override = 0;
}
if (!override) {
onEnterFrame = null;
}
}
dir = 1;
t = 0;
time = 75;
speed = 2;
move = function () {
t++;
if (t > time) {
dir = dir != 1;
t = 0;
}
if (dir) {
_y = (_y + speed);
} else {
_y = (_y - speed);
}
};
onEnterFrame = move;
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.h = time * speed;
track.parent = this;
track.reset();
}
Instance of Symbol 716 MovieClip "basePlatform6" in Symbol 718 MovieClip Frame 1 (597 B)
onClipEvent (load) {
function reset() {
onenterFrame = move;
}
function standing() {
onenterFrame = null;
}
function land(override) {
if (override == undefined) {
override = 0;
}
if (!override) {
onEnterFrame = null;
}
}
dir = 1;
t = 0;
time = 75;
speed = 2;
move = function () {
t++;
if (t > time) {
dir = dir != 1;
t = 0;
}
if (dir) {
_x = (_x + speed);
} else {
_x = (_x - speed);
}
};
onEnterFrame = move;
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.w = time * speed;
track.parent = this;
track.reset();
}
Instance of Symbol 716 MovieClip "basePlatform8" in Symbol 718 MovieClip Frame 1 (597 B)
onClipEvent (load) {
function reset() {
onenterFrame = move;
}
function standing() {
onenterFrame = null;
}
function land(override) {
if (override == undefined) {
override = 0;
}
if (!override) {
onEnterFrame = null;
}
}
dir = 1;
t = 0;
time = 75;
speed = 2;
move = function () {
t++;
if (t > time) {
dir = dir != 1;
t = 0;
}
if (dir) {
_x = (_x + speed);
} else {
_x = (_x - speed);
}
};
onEnterFrame = move;
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.w = time * speed;
track.parent = this;
track.reset();
}
Instance of Symbol 713 MovieClip "basePlatform9" in Symbol 718 MovieClip Frame 1 (336 B)
onClipEvent (load) {
function unPickUp() {
temp.removeMovieClip("");
}
function pickUp() {
pass = {difx:_width, dify:0, er:25, ofr:25};
temp.removeMovieClip("");
temp = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp._x = _x - (_width / 2);
temp._y = _y - 100;
_parent.p++;
}
}
Instance of Symbol 663 MovieClip "basePlatform11" in Symbol 718 MovieClip Frame 1 (834 B)
onClipEvent (load) {
function reset() {
onenterFrame = move;
}
function standing() {
onenterFrame = null;
}
function land(override) {
if (override == undefined) {
override = 0;
}
if (!override) {
onEnterFrame = null;
}
}
function pickUp() {
temp.play();
temp = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp._x = next._x;
temp._y = next._y - 50;
temp.parent = this;
_parent.p++;
}
function unPickUp() {
temp.play();
}
dir = 1;
t = 0;
time = 75;
speed = 2;
move = function () {
t++;
if (t > time) {
dir = dir != 1;
t = 0;
}
if (dir) {
_y = (_y + speed);
} else {
_y = (_y - speed);
}
};
onEnterFrame = move;
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.h = time * speed;
track.parent = this;
track.reset();
}
Instance of Symbol 714 MovieClip "basePlatform15" in Symbol 718 MovieClip Frame 1 (137 B)
onClipEvent (load) {
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.w = 0;
track.parent = this;
track.reset();
}
Instance of Symbol 663 MovieClip "basePlatform13" in Symbol 718 MovieClip Frame 1 (764 B)
onClipEvent (load) {
function pickUp() {
x = next._x;
y = next._y - 50;
temp.play();
temp = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp._x = x;
temp._y = y;
temp.parent = this;
_parent.p++;
temp2.play();
temp2 = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp2._x = x + 35;
temp2._y = y - 35;
temp2.parent = this;
_parent.p++;
temp3.play();
temp3 = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp3._x = x + 70;
temp3._y = y - 70;
temp3.parent = this;
_parent.p++;
}
function unPickUp() {
temp.play();
temp2.play();
temp3.play();
}
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.h = 0;
track.parent = this;
track.reset();
}
Instance of Symbol 661 MovieClip "basePlatform14" in Symbol 718 MovieClip Frame 1 (137 B)
onClipEvent (load) {
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.h = 0;
track.parent = this;
track.reset();
}
Instance of Symbol 716 MovieClip "basePlatform16" in Symbol 718 MovieClip Frame 1 (593 B)
onClipEvent (load) {
function unPickUp() {
temp.removeMovieClip("");
}
function land(override) {
if (override == undefined) {
overide = 0;
}
if (!override) {
pass = {difx:_width * 2, dify:0, er:25, ofr:25};
temp.removeMovieClip("");
temp = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp._x = (startx + 400) - _width;
temp._y = starty - 225;
_parent.p++;
}
}
dir = 1;
t = 0;
time = 75;
speed = 2;
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.w = 0;
track.parent = this;
track.reset();
}
Instance of Symbol 663 MovieClip "basePlatform21" in Symbol 718 MovieClip Frame 1 (137 B)
onClipEvent (load) {
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.h = 0;
track.parent = this;
track.reset();
}
Instance of Symbol 663 MovieClip "basePlatform22" in Symbol 718 MovieClip Frame 1 (137 B)
onClipEvent (load) {
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.h = 0;
track.parent = this;
track.reset();
}
Instance of Symbol 661 MovieClip "basePlatform20" in Symbol 718 MovieClip Frame 1 (137 B)
onClipEvent (load) {
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.h = 0;
track.parent = this;
track.reset();
}
Instance of Symbol 716 MovieClip "basePlatform24" in Symbol 718 MovieClip Frame 1 (597 B)
onClipEvent (load) {
function reset() {
onenterFrame = move;
}
function standing() {
onenterFrame = null;
}
function land(override) {
if (override == undefined) {
override = 0;
}
if (!override) {
onEnterFrame = null;
}
}
dir = 1;
t = 0;
time = 75;
speed = 2;
move = function () {
t++;
if (t > time) {
dir = dir != 1;
t = 0;
}
if (dir) {
_x = (_x + speed);
} else {
_x = (_x - speed);
}
};
onEnterFrame = move;
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.w = time * speed;
track.parent = this;
track.reset();
}
Instance of Symbol 716 MovieClip "basePlatform23" in Symbol 718 MovieClip Frame 1 (137 B)
onClipEvent (load) {
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.w = 0;
track.parent = this;
track.reset();
}
Instance of Symbol 714 MovieClip "basePlatform25" in Symbol 718 MovieClip Frame 1 (137 B)
onClipEvent (load) {
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.w = 0;
track.parent = this;
track.reset();
}
Instance of Symbol 716 MovieClip "basePlatform29" in Symbol 718 MovieClip Frame 1 (597 B)
onClipEvent (load) {
function reset() {
onenterFrame = move;
}
function standing() {
onenterFrame = null;
}
function land(override) {
if (override == undefined) {
override = 0;
}
if (!override) {
onEnterFrame = null;
}
}
dir = 1;
t = 0;
time = 80;
speed = 5;
move = function () {
t++;
if (t > time) {
dir = dir != 1;
t = 0;
}
if (dir) {
_x = (_x + speed);
} else {
_x = (_x - speed);
}
};
onEnterFrame = move;
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.w = time * speed;
track.parent = this;
track.reset();
}
Instance of Symbol 717 MovieClip "basePlatform30" in Symbol 718 MovieClip Frame 1 (597 B)
onClipEvent (load) {
function reset() {
onenterFrame = move;
}
function standing() {
onenterFrame = null;
}
function land(override) {
if (override == undefined) {
override = 0;
}
if (!override) {
onEnterFrame = null;
}
}
dir = 1;
t = 0;
time = 50;
speed = 4;
move = function () {
t++;
if (t > time) {
dir = dir != 1;
t = 0;
}
if (dir) {
_x = (_x + speed);
} else {
_x = (_x - speed);
}
};
onEnterFrame = move;
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.w = time * speed;
track.parent = this;
track.reset();
}
Instance of Symbol 663 MovieClip "basePlatform27" in Symbol 718 MovieClip Frame 1 (597 B)
onClipEvent (load) {
function reset() {
onenterFrame = move;
}
function standing() {
onenterFrame = null;
}
function land(override) {
if (override == undefined) {
override = 0;
}
if (!override) {
onEnterFrame = null;
}
}
dir = 1;
t = 0;
time = 38;
speed = 4;
move = function () {
t++;
if (t > time) {
dir = dir != 1;
t = 0;
}
if (dir) {
_y = (_y + speed);
} else {
_y = (_y - speed);
}
};
onEnterFrame = move;
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.h = time * speed;
track.parent = this;
track.reset();
}
Instance of Symbol 661 MovieClip "basePlatform26" in Symbol 718 MovieClip Frame 1 (597 B)
onClipEvent (load) {
function reset() {
onenterFrame = move;
}
function standing() {
onenterFrame = null;
}
function land(override) {
if (override == undefined) {
override = 0;
}
if (!override) {
onEnterFrame = null;
}
}
dir = 1;
t = 0;
time = 38;
speed = 4;
move = function () {
t++;
if (t > time) {
dir = dir != 1;
t = 0;
}
if (dir) {
_y = (_y + speed);
} else {
_y = (_y - speed);
}
};
onEnterFrame = move;
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.h = time * speed;
track.parent = this;
track.reset();
}
Instance of Symbol 716 MovieClip "basePlatform28" in Symbol 718 MovieClip Frame 1 (597 B)
onClipEvent (load) {
function reset() {
onenterFrame = move;
}
function standing() {
onenterFrame = null;
}
function land(override) {
if (override == undefined) {
override = 0;
}
if (!override) {
onEnterFrame = null;
}
}
dir = 1;
t = 0;
time = 38;
speed = 4;
move = function () {
t++;
if (t > time) {
dir = dir != 1;
t = 0;
}
if (dir) {
_x = (_x + speed);
} else {
_x = (_x - speed);
}
};
onEnterFrame = move;
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.w = time * speed;
track.parent = this;
track.reset();
}
Instance of Symbol 663 MovieClip "basePlatform33" in Symbol 718 MovieClip Frame 1 (1.13 KiB) ●
onClipEvent (load) {
function reset() {
onenterFrame = move;
}
function standing() {
onenterFrame = null;
}
function land(override) {
if (override == undefined) {
override = 0;
}
if (!override) {
onEnterFrame = null;
}
}
function unPickUp() {
temp1.removeMovieClip("");
temp2.removeMovieClip("");
}
function pickUp() {
pass = {difx:0, dify:-175, er:50, ofr:0};
temp1.removeMovieClip("");
temp1 = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp1._x = _x + 75;
temp1._y = _y - 10;
_parent.p++;
pass = {difx:-100, dify:0, er:50, ofr:0};
temp2.removeMovieClip("");
temp2 = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp2._x = _x + 75;
temp2._y = _y - 185;
_parent.p++;
}
dir = 1;
t = 0;
time = 38;
speed = 4;
move = function () {
t++;
if (t > time) {
dir = dir != 1;
t = 0;
}
if (dir) {
_y = (_y + speed);
} else {
_y = (_y - speed);
}
};
onEnterFrame = move;
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.h = time * speed;
track.parent = this;
track.reset();
}
Instance of Symbol 713 MovieClip "basePlatform31" in Symbol 718 MovieClip Frame 1 (336 B)
onClipEvent (load) {
function unPickUp() {
temp.removeMovieClip("");
}
function pickUp() {
pass = {difx:_width, dify:0, er:25, ofr:25};
temp.removeMovieClip("");
temp = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp._x = _x - (_width / 2);
temp._y = _y + 100;
_parent.p++;
}
}
Instance of Symbol 621 MovieClip "superg" in Symbol 718 MovieClip Frame 1 (19.91 KiB) ● ● ●
onClipEvent (load) {
function aimit() {
pos = _root._xmouse - _parent._x;
if (pos > _x) {
if ((_x + _parent.aimer.radar._width) > ((-destx) + 550)) {
_xscale = -100;
} else {
_xscale = 100;
}
} else if ((_x - _parent.aimer.radar._width) < (-destx)) {
_xscale = 100;
} else {
_xscale = -100;
}
if (_xscale > 0) {
arot = ((360 - ((Math.atan2(((_x + arm._x) - _root._xmouse) + _parent._x, ((_y + arm._y) - _root._ymouse) + _parent._y) * 180) / Math.PI)) - 90) - 90;
if (arot > 270) {
arot = 270;
}
if (arot < 180) {
arot = 180;
}
guy.head._rotation = (arot - 270) / 2;
_parent.aimer._xscale = 100;
_parent.aimer._x = _x;
_parent.aimer._y = _y - 40;
} else {
arot = (((Math.atan2(((_x + arm._x) - _root._xmouse) + _parent._x, ((_y + arm._y) - _root._ymouse) + _parent._y) * 180) / Math.PI) - 90) - 90;
if (arot > -90) {
arot = -90;
}
if (arot < -180) {
arot = -180;
}
guy.head._rotation = ((arot - 270) + 360) / 2;
_parent.aimer._xscale = -100;
_parent.aimer._x = _x;
_parent.aimer._y = _y - 40;
}
}
this.gotoAndStop("blank");
lives = _parent.baseLives;
_parent._parent.airbrakes = _parent._parent.airbrakes + 3;
startx = _x;
starty = _y;
aim = 1;
sw = 550;
sh = 400;
destx = _parent.topx;
desty = _parent.topy;
this.swapDepths(10000);
i = 0;
targetnum = 1;
base = _parent.basePlatform0;
target = _parent["basePlatform" + targetnum];
first = 1;
clev = 1;
jumpno = 0;
jumpnum = 0;
combo = 0;
}
onClipEvent (enterFrame) {
_parent._parent.lives = lives;
_parent._parent.knuggsc = _parent._parent.knuggs;
_parent._parent.airbrakesc = _parent._parent.airbrakes;
_parent._parent.level = clev;
if (lives <= 0) {
_parent._parent.gotoAndStop("gameover");
}
if (!first) {
if (aim) {
aimit();
if ((_parent.aimer.dist < 125) && (_parent.aimer.ok)) {
Mouse.hide();
} else {
Mouse.show();
}
} else if (go) {
if (flying) {
die = 1;
oldy = _y;
oldx = _x;
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_x > ((sw - 20) + (-destx))) {
_x = ((sw - 20) + (-destx));
xspeed = xspeed * -1;
_xscale = (_xscale * -1);
if (_currentframe == 3) {
gotoAndStop (4);
_rotation = 0;
}
ricochet++;
soundClip.gotoAndPlay("ricochet");
}
if (_x < (20 + (-destx))) {
_x = (20 + (-destx));
xspeed = xspeed * -1;
_xscale = (_xscale * -1);
if (_currentframe == 3) {
gotoAndStop (4);
_rotation = 0;
}
ricochet++;
soundClip.gotoAndPlay("ricochet");
}
if (_y < (-desty)) {
_parent.arrow._x = _x;
_parent.arrow._y = (-desty) + 10;
} else {
_parent.arrow._y = 5000;
}
if (yspeed >= 0) {
if (_currentframe == 3) {
gotoAndStop (4);
_rotation = 0;
}
}
if (((!dead) && (_y >= (target._y + target.anchor._y))) && (oldy <= (target._y + target.anchor._y))) {
if ((_x > (target._x + target.anchor._x)) && (_x < (target._x + target.anchor2._x))) {
if (!target.land()) {
soundClip.gotoAndPlay("land");
flying = 0;
die = 0;
_y = (target._y + target.anchor._y);
gotoAndStop (6);
_parent.smoke.gotoAndPlay(1);
_parent.smoke._x = _x;
_parent.smoke._y = _y;
im = 0;
if (targetnum < maxtargets) {
if (target.inter) {
im = 1;
if (target.parent) {
firstinter = base;
secondinter = target;
targetnuminter = targetnum;
}
} else {
lives = _parent.baseLives;
with (_parent.aimer) {
oldercrossx = 0;
oldercrossy = 5000;
oldcrossx = 0;
oldcrossy = 5000;
oldercrossxi = 0;
oldercrossyi = 5000;
oldcrossxi = 0;
oldcrossyi = 5000;
oldcross._x = 0;
oldcross._y = 5000;
oldercross._x = 0;
oldercross._y = 5000;
oldcross.gotoAndStop(1);
oldercross.gotoAndStop(1);
}
clev++;
}
targetnum++;
base.gotoAndPlay("dissapear");
base.unPickUp();
if (xs == 1) {
if (airbrake == 0) {
base.oldcrossf = 2;
} else {
base.oldcrossf = 3;
}
} else if (airbrake == 0) {
base.oldcrossfi = 2;
} else {
base.oldcrossf = 3;
}
base = target;
if (targetnum != maxtargets) {
target = _parent["basePlatform" + targetnum];
} else {
soundClip.gotoAndPlay("wormhole");
target = _parent.wormhole;
tika = 0;
}
if (base.inter || (target.inter)) {
if (base.aimdata) {
_parent.aimer.oldercrossx = base.oldercrossx;
_parent.aimer.oldercrossy = base.oldercrossy;
_parent.aimer.oldcrossx = base.oldcrossx;
_parent.aimer.oldcrossy = base.oldcrossy;
_parent.aimer.oldercrossxi = base.oldercrossxi;
_parent.aimer.oldercrossyi = base.oldercrossyi;
_parent.aimer.oldcrossxi = base.oldcrossxi;
_parent.aimer.oldcrossyi = base.oldcrossyi;
_parent.aimer.oldcrossf = base.oldcrossf;
_parent.aimer.oldercrossf = base.oldercrossf;
_parent.aimer.oldcrossfi = base.oldcrossfi;
_parent.aimer.oldercrossfi = base.oldercrossfi;
} else {
with (_parent.aimer) {
oldercrossx = 0;
oldercrossy = 5000;
oldcrossx = 0;
oldcrossy = 5000;
oldercrossxi = 0;
oldercrossyi = 5000;
oldcrossxi = 0;
oldcrossyi = 5000;
oldcross._x = 0;
oldcross._y = 5000;
oldercross._x = 0;
oldercross._y = 5000;
}
base.aimdata = 1;
base.oldercrossx = 0;
base.oldercrossy = 5000;
base.oldcrossx = 0;
base.oldcrossy = 5000;
base.oldercrossxi = 0;
base.oldercrossyi = 5000;
base.oldcrossxi = 0;
base.oldcrossyi = 5000;
base.oldcrossf = 1;
base.oldercrossf = 1;
base.oldcrossfi = 1;
base.oldercrossfi = 1;
}
base.landx = _x;
}
target._visible = 1;
} else {
base.unPickUp();
base.gotoAndPlay("dissapear");
base = _parent.wormhole;
lives = _parent.baseLives;
aim = 0;
first = 1;
begin = 0;
go = 0;
end = 1;
_parent.anchor.onEnterFrame = _parent.anchor.remove;
}
}
if (im == 0) {
jumpnum++;
}
if (jumpnum > 2) {
if (_parent._parent.airbrakes < 3) {
_parent._parent.airbrakes++;
}
jumpnum = 0;
}
if (dead == 0) {
totnum = 0;
if (im == 0) {
totnum = totnum + 20;
}
if (jumpno == 1) {
combo++;
if (combo > 1) {
totnum = totnum + 20;
}
totnum = totnum + 20;
}
if ((_x > (base._x - 10)) && (_x < (base._x + 10))) {
totnum = totnum + 20;
}
if (dist >= 100) {
totnum = totnum + 20;
}
r = 0;
while (r < ricochet) {
totnum = totnum + 20;
r++;
}
if (airbrake) {
totnum = totnum + 20;
}
if (collect) {
totnum = totnum + 20;
}
bnum = 0;
if (((_y - 100) - totnum) < (-desty)) {
totnum = 0;
if ((_y - 100) < (-desty)) {
totnum = -50;
}
}
snumber = _parent.snumber;
if (im == 0) {
if (base._name != "wormhole") {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Level Clear: +" + (snumber * 2), 1, 0 + bnum);
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 2);
} else {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "World Clear!: +" + (snumber * 20), 32, 0 + bnum);
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 20);
}
bnum = bnum + 20;
}
if (jumpno == 1) {
if (combo < 2) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 2), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 2);
} else if (combo == 2) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Combo!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 3), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 3);
} else if (combo == 3) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Double Combo!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 4), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 4);
} else if (combo == 4) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Triple Combo!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 5), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 5);
} else if (combo == 5) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Super Combo!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 6), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 6);
} else if (combo == 6) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Mega Combo!!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 7), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 7);
} else if (combo == 7) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Ultra Combo!!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 8), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 8);
} else if (combo == 8) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Extreme Combo!!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 9), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 9);
} else if (combo >= 9) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Top Secret Combo!!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 10), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 10);
}
}
jumpno = 0;
if ((_x > (base._x - 10)) && (_x < (base._x + 10))) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Accuracy: +" + snumber, 1, 0 + bnum);
_parent._parent.knuggs = _parent._parent.knuggs + snumber;
bnum = bnum + 20;
}
if (dist >= 100) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Full Speed: +" + snumber, 1, 0 + bnum);
_parent._parent.knuggs = _parent._parent.knuggs + snumber;
bnum = bnum + 20;
}
r = 0;
while (r < ricochet) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Ricochet: +" + snumber, 1, 0 + bnum);
_parent._parent.knuggs = _parent._parent.knuggs + snumber;
bnum = bnum + 20;
r++;
}
if (airbrake) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Airbrake: +" + snumber, 1, 0 + bnum);
_parent._parent.knuggs = _parent._parent.knuggs + snumber;
bnum = bnum + 20;
}
if (collect) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Katra Landed: +" + (snumber * 4), 1, 0 + bnum);
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 4);
bnum = bnum + 20;
}
}
}
} else if (((!dead) && (_y >= (target._y - target._height))) && (_y <= target._y)) {
if ((_x > (target._x + target.anchor._x)) && (_x < (target._x + target.anchor2._x))) {
target.land(1);
}
}
if (_y > ((sh - _parent._y) + (_height * 2))) {
flying = 0;
die = 1;
dead = 1;
soundClip.gotoAndPlay("fall");
}
yspeed++;
ticks++;
if ((ticks >= (_parent._parent.maxtraild - _parent._parent.traild)) && (_parent._parent.traild != 0)) {
temp = _parent.anchor.attachMovie("dot", "dot" + i, i);
_parent.anchor.n++;
temp._x = _x;
temp._y = _y - 30;
y = y - 10;
if (y < 0) {
y = 0;
}
rgb = ((y << 16) | (f << 8)) | y;
_parent.anchor.lineStyle(2, rgb, 100);
_parent.anchor.lineTo(_x, _y - 30);
i++;
ticks = 0;
}
} else {
tik++;
if (((Key.isDown(32) || (dead)) || (tik > 25)) || (im && (tik > 15))) {
if (die || (dead)) {
if (firstdie) {
if (im) {
base.unPickUp();
target.unPickUp();
base.reset();
target.reset();
base.gotoAndPlay("dissapear");
target.gotoAndPlay("dissapear");
base = firstinter;
base.gotoAndStop(1);
base._visible = 1;
startx = base._x;
starty = base._y + base.anchor._y;
target = secondinter;
target.gotoAndStop(1);
target._visible = 1;
target.reset();
base.land();
base.pickUp();
targetnum = targetnuminter;
if (base.aimdata) {
_parent.aimer.oldercrossx = base.oldercrossx;
_parent.aimer.oldercrossy = base.oldercrossy;
_parent.aimer.oldcrossx = base.oldcrossx;
_parent.aimer.oldcrossy = base.oldcrossy;
_parent.aimer.oldercrossxi = base.oldercrossxi;
_parent.aimer.oldercrossyi = base.oldercrossyi;
_parent.aimer.oldcrossxi = base.oldcrossxi;
_parent.aimer.oldcrossyi = base.oldcrossyi;
_parent.aimer.oldcrossf = base.oldcrossf;
_parent.aimer.oldercrossf = base.oldercrossf;
_parent.aimer.oldcrossfi = base.oldcrossfi;
_parent.aimer.oldercrossfi = base.oldercrossfi;
} else {
with (_parent.aimer) {
oldercrossx = 0;
oldercrossy = 5000;
oldcrossx = 0;
oldcrossy = 5000;
oldercrossxi = 0;
oldercrossyi = 5000;
oldcrossxi = 0;
oldcrossyi = 5000;
oldcross._x = 0;
oldcross._y = 5000;
oldercross._x = 0;
oldercross._y = 5000;
}
base.aimdata = 1;
base.oldercrossx = 0;
base.oldercrossy = 5000;
base.oldcrossx = 0;
base.oldcrossy = 5000;
base.oldercrossxi = 0;
base.oldercrossyi = 5000;
base.oldcrossxi = 0;
base.oldcrossyi = 5000;
base.oldcrossf = 1;
base.oldercrossf = 1;
base.oldcrossfi = 1;
base.oldercrossfi = 1;
}
startx = base.landx;
}
lives--;
target.reset();
_x = startx;
_y = starty;
back = 1;
res = 0;
_parent.anchor.onEnterFrame = _parent.anchor.remove;
this.gotoAndStop("reserect");
soundClip.gotoAndPlay("reser");
firstdie = 0;
combo = 0;
}
} else if (firstdie) {
scroll = 1;
_parent.anchor.onEnterFrame = _parent.anchor.remove;
firstdie = 0;
if (!im) {
soundClip.gotoAndPlay("nextlev");
}
}
}
if (back) {
base._visible = 1;
base.gotoAndStop(1);
if (res) {
aim = 1;
aimit();
_parent.aimer._visible = 1;
base.onEnterFrame = base.standing;
i = 0;
gotoAndStop (1);
soundClip.gotoAndPlay("ready");
back = 0;
res = 0;
}
}
if (scroll) {
if (!im) {
desty = (_parent.topy - base._y) + sh;
}
if ((_parent._y > (desty + 1)) || (_parent._y < (desty - 1))) {
_parent._y = _parent._y + ((desty - _parent._y) / 6);
} else {
_parent._y = desty;
startx = _x;
starty = _y;
with (_parent.aimer) {
_visible = 1;
}
aim = 1;
aimit();
base.onEnterFrame = base.standing;
base.pickUp();
i = 0;
gotoAndStop (1);
soundClip.gotoAndPlay("ready");
scroll = 0;
}
}
}
}
} else {
if (begin) {
this.gotoAndStop("warpin");
}
if (go) {
this.gotoAndStop("standing");
_parent.aimer._visible = 1;
first = 0;
base.pickUp();
soundClip.gotoAndPlay("ready");
}
if (end) {
tika++;
if (tika > 25) {
this.gotoAndStop("warpout");
_x = (_x + ((base._x - _x) / 2));
_y = (_y + (((base._y - 60) - _y) / 2));
if (tika > 50) {
base.play();
if (tika > 100) {
base.onEnterFrame = base.standing;
}
}
}
}
}
dc++;
}
onClipEvent (mouseDown) {
if (((aim && (!first)) && (_parent.aimer.dist < 125)) && (_parent.aimer.ok)) {
with (_parent.aimer) {
_visible = 0;
if (_xscale > 0) {
oldercrossx = oldcrossx;
oldercrossy = oldcrossy;
oldcrossx = cross._x;
oldcrossy = cross._y;
oldercrossf = oldcrossf;
oldcrossf = 1;
} else {
oldercrossxi = oldcrossxi;
oldercrossyi = oldcrossyi;
oldcrossxi = cross._x;
oldcrossyi = cross._y;
oldercrossfi = oldcrossfi;
oldcrossfi = 1;
}
}
if (base.inter || (target.inter)) {
if (base.aimdata == 1) {
if (_xscale > 0) {
base.oldercrossx = _parent.aimer.oldercrossx;
base.oldercrossy = _parent.aimer.oldercrossy;
base.oldcrossx = _parent.aimer.oldcrossx;
base.oldcrossy = _parent.aimer.oldcrossy;
base.oldercrossf = _parent.aimer.oldercrossf;
base.oldcrossf = 1;
} else {
base.oldercrossxi = _parent.aimer.oldercrossxi;
base.oldercrossyi = _parent.aimer.oldercrossyi;
base.oldcrossxi = _parent.aimer.oldcrossxi;
base.oldcrossyi = _parent.aimer.oldcrossyi;
base.oldercrossfi = _parent.aimer.oldercrossfi;
base.oldcrossfi = 1;
}
}
}
if (_xscale > 0) {
rot = Math.floor(_parent.aimer.rot);
dist = Math.floor(Math.min(_parent.aimer.dist, 100));
speed = 7 * (dist / 22);
xs = 1;
} else {
rot = Math.floor(((Math.atan2(-_parent.aimer.cross._x, -_parent.aimer.cross._y) * 180) / Math.PI) - 180);
dist = Math.floor(Math.min(_parent.aimer.dist, 100));
speed = 7 * (-(dist / 22));
xs = -1;
}
xspeed = speed * Math.cos(((rot - 90) * Math.PI) / 180);
yspeed = speed * Math.sin(((rot - 90) * Math.PI) / 180);
aim = 0;
flying = 1;
go = 0;
gotoAndStop (2);
_parent.attachMovie("draw", "anchor", 100);
_parent.anchor.moveTo(_x, _y - 30);
startx = _x;
starty = _y;
base.launch();
base.onEnterFrame = null;
dead = 0;
y = 255;
f = 255;
rgb = ((y << 16) | (f << 8)) | y;
tik = 0;
firstdie = 1;
res = 0;
scroll = 0;
back = 0;
airbrake = 0;
ricochet = 0;
collect = 0;
_parent.smoke.gotoAndPlay(1);
_parent.smoke._x = _x;
_parent.smoke._y = _y;
Mouse.show();
jumpno++;
soundClip.gotoAndPlay("launch");
}
if (!aim) {
if (dc < 5) {
if (flying) {
if ((((_parent._parent.airbrakes > 0) && (airbrake == 0)) && (_y < ((-desty) + sh))) && (dead == 0)) {
airbrake = 1;
xspeed = 0;
yspeed = 0;
_parent._parent.airbrakes--;
_parent.smoke.gotoAndPlay(1);
_parent.smoke._x = _x;
_parent.smoke._y = _y;
soundClip.gotoAndPlay("airbrake");
}
}
}
dc = 0;
}
}
Instance of Symbol 628 MovieClip "aimer" in Symbol 718 MovieClip Frame 1 (2.4 KiB) ●
onClipEvent (load) {
_visible = 0;
this.swapDepths(9999);
oldercrossx = 0;
oldercrossy = 5000;
oldcrossx = 0;
oldcrossy = 5000;
oldercrossxi = 0;
oldercrossyi = 5000;
oldcrossxi = 0;
oldcrossyi = 5000;
oldcrossf = 1;
oldercrossf = 1;
oldcrossfi = 1;
oldercrossf = 1;
}
onClipEvent (enterFrame) {
ok = 1;
if (_visible) {
if (_xscale > 0) {
oldercross._x = oldercrossx;
oldercross._y = oldercrossy;
oldcross._x = oldcrossx;
oldcross._y = oldcrossy;
oldcross.gotoAndStop(oldcrossf);
oldercross.gotoAndStop(oldercrossf);
cross._x = _root._xmouse - (_x + _parent._x);
cross._y = _root._ymouse - (_y + _parent._y);
if ((cross._y > 25) || (cross._x < -25)) {
ok = 0;
}
if (cross._y > 0) {
cross._y = 0;
}
if (cross._x < 0) {
cross._x = 0;
}
dist = Math.sqrt(((cross._x - 0) * (cross._x - 0)) + ((cross._y - 0) * (cross._y - 0)));
rot = ((360 - ((Math.atan2(-cross._x, -cross._y) * 180) / Math.PI)) - 90) + 90;
if (dist > 100) {
cross._x = 100 * Math.cos(((rot - 90) * Math.PI) / 180);
cross._y = 100 * Math.sin(((rot - 90) * Math.PI) / 180);
}
line._rotation = rot;
line.line._height = Math.sqrt(Math.pow(-_parent.aimer.cross._x, 2) + Math.pow(-_parent.aimer.cross._y, 2));
} else {
oldercross._x = oldercrossxi;
oldercross._y = oldercrossyi;
oldcross._x = oldcrossxi;
oldcross._y = oldcrossyi;
oldcross.gotoAndStop(oldcrossfi);
oldercross.gotoAndStop(oldercrossfi);
cross._x = (_x - _root._xmouse) + _parent._x;
cross._y = (_root._ymouse - _y) - _parent._y;
if ((cross._y > 25) || (cross._x < -25)) {
ok = 0;
}
if (cross._y > 0) {
cross._y = 0;
}
if (cross._x < 0) {
cross._x = 0;
}
dist = Math.sqrt(((cross._x - 0) * (cross._x - 0)) + ((cross._y - 0) * (cross._y - 0)));
rot = ((360 - ((Math.atan2(-cross._x, -cross._y) * 180) / Math.PI)) - 90) + 90;
if (dist > 100) {
cross._x = 100 * Math.cos(((rot - 90) * Math.PI) / 180);
cross._y = 100 * Math.sin(((rot - 90) * Math.PI) / 180);
}
line._rotation = rot;
line.line._height = Math.sqrt(Math.pow(-_parent.aimer.cross._x, 2) + Math.pow(-_parent.aimer.cross._y, 2));
}
pd = Math.floor(rot - 360);
pv = Math.floor(Math.min(dist, 100));
power._xscale = _xscale;
if (_xscale < 0) {
power._x = power.a._x;
pd = -pd;
} else {
power._x = 0;
}
power.deg = pd;
power.pow = pv;
}
}
Symbol 728 MovieClip Frame 1 (8 B)
stop();
Symbol 728 MovieClip Frame 4 (17 B)
gotoAndPlay (3);
Symbol 737 MovieClip Frame 1 (704 B)
function launch() {
play();
c = 1;
ft2 = 0;
}
stop();
reset = function () {
gotoAndStop (1);
time = basetime;
r = 21;
ft = 1;
t = 0;
f = 0;
ft2 = 1;
c = 0;
onEnterFrame = null;
};
reset();
standing = function () {
if (ft) {
_visible = 1;
gotoAndStop (2);
ft = 0;
}
t++;
if (t > r) {
time--;
t = 0;
}
if (time <= 0) {
if (f) {
if (ft2) {
with (_parent.superg) {
gotoAndStop("diefalling");
flying = 1;
aim = 0;
dead = 1;
firstdie = 1;
yspeed = 0;
xspeed = 0;
oldy = 50000;
_parent.aimer._visible = 0;
}
ft2 = 0;
}
} else {
play();
c = 1;
}
}
};
Symbol 737 MovieClip Frame 2 (8 B)
stop();
Symbol 737 MovieClip Frame 38 (7 B)
f = 1;
Symbol 737 MovieClip Frame 43 (30 B)
onEnterFrame = null;
stop();
Symbol 737 MovieClip Frame 53 (37 B)
_visible = 0;
removeMovieClip("");
Symbol 737 MovieClip Frame 56 (29 B)
if (c) {
_visible = 0;
}
Symbol 737 MovieClip Frame 61 (15 B)
_visible = 0;
Symbol 738 MovieClip Frame 1 (842 B)
function land(override) {
if (override == undefined) {
override = 0;
}
if (override) {
if (!fire) {
return(0);
}
}
if (fire || (override)) {
stop();
_parent.superg.gotoAndStop("electricing");
_parent.superg.yspeed = -10;
_parent.superg.xspeed = -3 + random(6);
_parent.superg.soundClip.gotoAndStop("electric");
_parent.superg.die = 1;
_parent.superg.dead = 1;
_parent.flying = 1;
_parent.go = 1;
_parent.aim = 0;
return(1);
}
gotoAndStop (1);
onEnterFrame = null;
}
function reset() {
gotoAndPlay (1);
onEnterFrame = active;
}
function standing() {
gotoAndStop (1);
onEnterFrame = null;
fire = 0;
}
fire = 0;
active = function () {
if (_visible) {
play();
} else {
stop();
}
};
if (ft == undefined) {
onEnterFrame = active;
ft = 1;
}
stop();
Symbol 738 MovieClip Frame 37 (10 B)
fire = 1;
Symbol 738 MovieClip Frame 71 (17 B)
gotoAndPlay (1);
Symbol 738 MovieClip Frame 81 (15 B)
_visible = 0;
Symbol 739 MovieClip Frame 1 (976 B)
function land(override) {
if (override == undefined) {
override = 0;
}
if (override) {
if (!fire) {
return(0);
}
}
if (fire || (override)) {
stop();
_parent.superg.gotoAndStop("electricing");
_parent.superg.soundClip.gotoAndStop("electric");
_parent.superg.yspeed = -10;
_parent.superg.xspeed = -3 + random(6);
_parent.superg.die = 1;
_parent.superg.dead = 1;
return(1);
}
gotoAndStop (1);
onEnterFrame = null;
}
function reset() {
gotoAndPlay (1);
onEnterFrame = function () {
active();
move();
};
}
function standing() {
gotoAndStop (1);
onEnterFrame = null;
fire = 0;
}
fire = 0;
move = function () {
t++;
if (t > time) {
dir = dir != 1;
t = 0;
}
if (dir) {
_y = (_y - speed);
} else {
_y = (_y + speed);
}
};
active = function () {
if (_visible) {
play();
} else {
stop();
}
};
if (ft == undefined) {
onEnterFrame = active;
ft = 1;
}
stop();
Symbol 739 MovieClip Frame 2 (55 B)
onEnterFrame = function () {
active();
move();
};
Symbol 739 MovieClip Frame 24 (10 B)
fire = 1;
Symbol 739 MovieClip Frame 52 (17 B)
gotoAndPlay (1);
Symbol 739 MovieClip Frame 62 (15 B)
_visible = 0;
Symbol 740 MovieClip Frame 1 (6.78 KiB) ● ●
function addPopUp(x, y, text, col, ydif, alpha) {
temp = this.attachMovie("Popup", "PopUp" + pu, pu);
temp._x = x;
temp._y = y;
temp.gfx.text = text;
temp.gfx._alpha = alpha;
if (col != 32) {
temp.gfx.gotoAndStop(col);
}
if ((temp._x - (temp._width / 2)) < ((-superg.destx) + 20)) {
temp._x = ((-superg.destx) + 20) + (temp._width / 2);
}
if ((temp._x + (temp._width / 2)) > (((-superg.destx) + sw) + 20)) {
temp._x = (((-superg.destx) + sw) + 20) - (temp._width / 2);
}
if ((temp._y - 50) < (-superg.desty)) {
}
pu++;
}
w = basePlatform0._width;
h = basePlatform0._height;
sw = 510;
sh = 400;
startx = 0;
starty = 400;
p = 4000;
pu = 100000 /* 0x0186A0 */;
mt = 1;
snumber = 10;
baseLives = 4;
basePlatform0._x = startx + (w / 2);
mt++;
basePlatform1._x = (startx + 375) - w;
basePlatform1._y = starty - 150;
basePlatform1.baseTime = 2;
startx = basePlatform1._x;
mt++;
basePlatform2._x = startx + 350;
basePlatform2._y = starty - 200;
basePlatform2.baseTime = 2;
basePlatform2.inter = 1;
basePlatform2.parent = 1;
basePlatform2._visible = 0;
mt++;
basePlatform3._x = startx + 150;
basePlatform3._y = starty;
basePlatform3._visible = 0;
basePlatform3.next = basePlatform4;
startx = basePlatform3._x;
mt++;
basePlatform4._x = startx + 100;
basePlatform4._y = starty - 200;
basePlatform4.baseTime = 2;
basePlatform4.inter = 1;
basePlatform4.parent = 1;
basePlatform4._visible = 0;
basePlatform4.next = basePlatform5;
mt++;
basePlatform5._x = startx + 350;
basePlatform5._y = starty - 150;
basePlatform5.baseTime = 4;
basePlatform5._visible = 0;
startx = basePlatform5._x;
mt++;
basePlatform6._x = startx + 350;
basePlatform6._y = starty - 225;
basePlatform6.inter = 1;
basePlatform6.parent = 1;
basePlatform6._visible = 0;
mt++;
basePlatform7._x = startx + 200;
basePlatform7._y = starty - 75;
basePlatform7.inter = 1;
basePlatform7._visible = 0;
mt++;
basePlatform8._x = startx + 400;
basePlatform8._y = starty - 150;
basePlatform8._visible = 0;
startx = basePlatform8._x;
mt++;
basePlatform9._x = startx + 400;
basePlatform9._y = starty - 200;
basePlatform9.basetime = 4;
basePlatform9.inter = 1;
basePlatform9.parent = 1;
basePlatform9._visible = 0;
mt++;
basePlatform10._x = startx + 400;
basePlatform10._y = starty - 50;
basePlatform10._visible = 0;
basePlatform10.next = basePlatform11;
startx = basePlatform10._x - 150;
mt++;
basePlatform11._x = startx + 250;
basePlatform11._y = starty - 50;
basePlatform11.inter = 1;
basePlatform11.parent = 1;
basePlatform11._visible = 0;
basePlatform11.next = basePlatform12;
mt++;
basePlatform12._x = startx + 400;
basePlatform12._y = starty - 150;
basePlatform12._visible = 0;
startx = basePlatform12._x;
mt++;
basePlatform13._x = startx + 100;
basePlatform13._y = starty;
basePlatform13.inter = 1;
basePlatform13.parent = 1;
basePlatform13.basetime = 2;
basePlatform13._visible = 0;
mt++;
basePlatform14._x = startx + 250;
basePlatform14._y = starty - 75;
basePlatform14.inter = 1;
basePlatform14.basetime = 2;
basePlatform14._visible = 0;
mt++;
basePlatform15._x = startx + 100;
basePlatform15._y = starty - 150;
basePlatform15.basetime = 2;
basePlatform15._visible = 0;
startx = basePlatform15._x;
mt++;
basePlatform16._x = startx + 200;
basePlatform16._y = starty;
basePlatform16.inter = 1;
basePlatform16.parent = 1;
basePlatform16.basetime = 2;
basePlatform16._visible = 0;
basePlatform16.next = basePlatform17;
mt++;
basePlatform17._x = startx + 400;
basePlatform17._y = starty - 75;
basePlatform17.basetime = 2;
basePlatform17._visible = 0;
startx = basePlatform17._x;
mt++;
basePlatform18._x = startx + 200;
basePlatform18._y = starty - 50;
basePlatform18.inter = 1;
basePlatform18.parent = 1;
basePlatform18._visible = 0;
basePlatform18.next = basePlatform17;
mt++;
basePlatform19._x = startx + 400;
basePlatform19._y = starty - 150;
basePlatform19._visible = 0;
startx = basePlatform19._x - 150;
mt++;
basePlatform20._x = startx + 275;
basePlatform20._y = starty - 50;
basePlatform20._visible = 0;
startx = basePlatform20._x;
mt++;
basePlatform21._x = startx + 375;
basePlatform21._y = starty - 30;
basePlatform21.inter = 1;
basePlatform21.parent = 1;
basePlatform21._visible = 0;
basePlatform21.baseTime = 3;
basePlatform21.next = basePlatform22;
mt++;
basePlatform22._x = startx + 100;
basePlatform22._y = starty - 100;
basePlatform22.baseTime = 3;
basePlatform22._visible = 0;
startx = basePlatform22._x;
mt++;
basePlatform23._x = startx + 100;
basePlatform23._y = starty;
basePlatform23.inter = 1;
basePlatform23.parent = 1;
basePlatform23._visible = 0;
basePlatform23.next = basePlatform22;
mt++;
basePlatform24._x = startx + 375;
basePlatform24._y = starty;
basePlatform24.baseTime = 3;
basePlatform24._visible = 0;
startx = basePlatform24._x;
mt++;
basePlatform25._x = startx + 100;
basePlatform25._y = starty;
basePlatform25.inter = 1;
basePlatform25.parent = 1;
basePlatform25._visible = 0;
mt++;
basePlatform26._x = startx + 375;
basePlatform26._y = starty;
basePlatform26.inter = 1;
basePlatform26._visible = 0;
mt++;
basePlatform27._x = startx;
basePlatform27._y = starty - 75;
basePlatform27._visible = 0;
basePlatform27.next = basePlatform29;
startx = basePlatform27._x;
mt++;
basePlatform28._x = startx + 225;
basePlatform28._y = starty;
basePlatform28.inter = 1;
basePlatform28.parent = 1;
basePlatform28._visible = 0;
mt++;
basePlatform29._x = startx + 300;
basePlatform29._y = starty - 150;
basePlatform29._visible = 0;
basePlatform29.baseTime = 2;
startx = basePlatform29._x;
mt++;
basePlatform30._x = startx + 400;
basePlatform30._y = starty - 150;
basePlatform30.inter = 1;
basePlatform30.parent = 1;
basePlatform30._visible = 0;
basePlatform30.baseTime = 2;
mt++;
basePlatform31._x = startx + 400;
basePlatform31._y = starty;
basePlatform31.inter = 1;
basePlatform31._visible = 0;
basePlatform31.baseTime = 2;
mt++;
basePlatform32._x = startx;
basePlatform32._y = starty;
basePlatform32._visible = 0;
basePlatform32.baseTime = 2;
basePlatform32.next = basePlatform33;
basePlatform32.starty = starty;
startx = basePlatform32._x;
mt++;
basePlatform33._x = startx + 250;
basePlatform33._y = starty;
basePlatform33.inter = 1;
basePlatform33.parent = 1;
basePlatform33._visible = 0;
basePlatform33.starty = starty;
mt++;
basePlatform34._x = startx + 250;
basePlatform34._y = starty - 200;
basePlatform34._visible = 0;
basePlatform34.baseTime = 8;
basePlatform34.next = basePlatform35;
startx = basePlatform34._x;
mt++;
basePlatform35._x = startx + 125;
basePlatform35._y = starty - 200;
basePlatform34.nexty = basePlatform35._y;
basePlatform35._visible = 0;
startx = basePlatform35._x;
wormhole._visible = 0;
wormhole._x = startx + 400;
wormhole._y = starty - 110;
superg.maxtargets = mt;
Instance of Symbol 728 MovieClip "wormhole" in Symbol 740 MovieClip Frame 1 (275 B)
onClipEvent (enterFrame) {
function standing() {
_parent._parent.gotoAndStop("level4load");
_parent._parent._xscale = (_parent._parent._yscale = 100);
}
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.w = 0;
track.parent = this;
track.reset();
}
Instance of Symbol 737 MovieClip "basePlatform4" in Symbol 740 MovieClip Frame 1 (345 B)
onClipEvent (load) {
function unPickUp() {
temp.removeMovieClip("");
}
function pickUp() {
pass = {difx:_width, dify:0, er:25, ofr:50};
temp.removeMovieClip("");
temp = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp._x = next._x - (_width / 2);
temp._y = next._y - 75;
_parent.p++;
}
}
Instance of Symbol 332 MovieClip "basePlatform6" in Symbol 740 MovieClip Frame 1 (471 B)
onClipEvent (load) {
function reset() {
onenterFrame = move;
}
function standing() {
onenterFrame = null;
}
function land(override) {
if (override == undefined) {
override = 0;
}
if (!override) {
onEnterFrame = null;
}
}
dir = 1;
t = 0;
time = 75;
speed = 2;
move = function () {
t++;
if (t > time) {
dir = dir != 1;
t = 0;
}
if (dir) {
_y = (_y + speed);
} else {
_y = (_y - speed);
}
};
onEnterFrame = move;
}
Instance of Symbol 332 MovieClip "basePlatform7" in Symbol 740 MovieClip Frame 1 (834 B)
onClipEvent (load) {
function reset() {
onenterFrame = move;
}
function standing() {
onenterFrame = null;
}
function land(override) {
if (override == undefined) {
override = 0;
}
if (!override) {
onEnterFrame = null;
}
}
function pickUp() {
temp.play();
temp = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp._x = next._x;
temp._y = next._y - 50;
temp.parent = this;
_parent.p++;
}
function unPickUp() {
temp.play();
}
dir = 1;
t = 0;
time = 75;
speed = 2;
move = function () {
t++;
if (t > time) {
dir = dir != 1;
t = 0;
}
if (dir) {
_y = (_y - speed);
} else {
_y = (_y + speed);
}
};
onEnterFrame = move;
track = _parent[_name + "t"];
track._x = _x;
track._y = _y;
track.h = time * speed;
track.parent = this;
track.reset();
}
Instance of Symbol 737 MovieClip "basePlatform9" in Symbol 740 MovieClip Frame 1 (334 B)
onClipEvent (load) {
function unPickUp() {
temp.removeMovieClip("");
}
function pickUp() {
pass = {difx:_width, dify:0, er:25, ofr:0};
temp.removeMovieClip("");
temp = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp._x = _x - (_width / 2);
temp._y = _y + 25;
_parent.p++;
}
}
Instance of Symbol 332 MovieClip "basePlatform10" in Symbol 740 MovieClip Frame 1 (1.25 KiB) ●
onClipEvent (load) {
function reset() {
onenterFrame = move;
}
function standing() {
onenterFrame = null;
}
function land(override) {
if (override == undefined) {
override = 0;
}
if (!override) {
onEnterFrame = null;
}
}
function pickUp() {
x = next._x;
y = next._y - 100;
temp.play();
temp = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp._x = x;
temp._y = y;
temp.parent = this;
_parent.p++;
temp2.play();
temp2 = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp2._x = x;
temp2._y = y + 50;
temp2.parent = this;
_parent.p++;
temp3.play();
temp3 = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp3._x = x + 25;
temp3._y = y + 25;
temp3.parent = this;
_parent.p++;
temp4.play();
temp4 = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp4._x = x - 25;
temp4._y = y + 25;
temp4.parent = this;
_parent.p++;
}
function unPickUp() {
temp.play();
temp2.play();
temp3.play();
temp4.play();
}
dir = 1;
t = 0;
time = 100;
speed = 2;
move = function () {
t++;
if (t > time) {
dir = dir != 1;
t = 0;
}
if (dir) {
_x = (_x - speed);
} else {
_x = (_x + speed);
}
};
onEnterFrame = move;
}
Instance of Symbol 737 MovieClip "basePlatform13" in Symbol 740 MovieClip Frame 1 (339 B)
onClipEvent (load) {
function unPickUp() {
temp.removeMovieClip("");
}
function pickUp() {
pass = {difx:0, dify:-100, er:25, ofr:0};
temp.removeMovieClip("");
temp = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp._x = (_x + (_width / 2)) + 25;
temp._y = _y - 50;
_parent.p++;
}
}
Instance of Symbol 737 MovieClip "basePlatform14" in Symbol 740 MovieClip Frame 1 (340 B)
onClipEvent (load) {
function unPickUp() {
temp.removeMovieClip("");
}
function pickUp() {
pass = {difx:0, dify:-100, er:25, ofr:0};
temp.removeMovieClip("");
temp = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp._x = (_x - (_width / 2)) - 25;
temp._y = _y - 100;
_parent.p++;
}
}
Instance of Symbol 737 MovieClip "basePlatform16" in Symbol 740 MovieClip Frame 1 (1.17 KiB) ●
onClipEvent (load) {
function unPickUp() {
temp1.removeMovieClip("");
temp2.removeMovieClip("");
temp3.removeMovieClip("");
temp4.removeMovieClip("");
}
function pickUp() {
pass = {difx:0, dify:100, er:25, ofr:0};
temp1.removeMovieClip("");
temp1 = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp1._x = (next._x - (_width / 2)) - 25;
temp1._y = next._y - 25;
_parent.p++;
pass = {difx:100, dify:0, er:25, ofr:0};
temp2.removeMovieClip("");
temp2 = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp2._x = (next._x - (_width / 2)) - 25;
temp2._y = next._y + 75;
_parent.p++;
pass = {difx:0, dify:-100, er:25, ofr:0};
temp3.removeMovieClip("");
temp3 = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp3._x = (next._x - (_width / 2)) - 25;
temp3._y = next._y - 175;
_parent.p++;
pass = {difx:100, dify:0, er:25, ofr:0};
temp4.removeMovieClip("");
temp4 = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp4._x = (next._x - (_width / 2)) - 25;
temp4._y = next._y - 275;
_parent.p++;
}
}
Instance of Symbol 737 MovieClip "basePlatform21" in Symbol 740 MovieClip Frame 1 (1.25 KiB) ●
onClipEvent (load) {
function unPickUp() {
temp0.removeMovieClip("");
temp1.removeMovieClip("");
temp2.removeMovieClip("");
temp3.removeMovieClip("");
temp4.removeMovieClip("");
}
function land(override) {
if (override == undefined) {
overide = 0;
}
if (!override) {
pass = {difx:_width, dify:0, er:42, ofr:100};
temp0.removeMovieClip("");
temp0 = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp0._x = next._x - (_width / 2);
temp0._y = next._y - 150;
_parent.p++;
}
}
function pickUp() {
x = next._x;
y = next._y - 225;
temp1.play();
temp1 = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp1._x = x;
temp1._y = y;
temp1.parent = this;
_parent.p++;
temp2.play();
temp2 = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp2._x = x;
temp2._y = y + 50;
temp2.parent = this;
_parent.p++;
temp3.play();
temp3 = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp3._x = x + 25;
temp3._y = y + 25;
temp3.parent = this;
_parent.p++;
temp4.play();
temp4 = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp4._x = x - 25;
temp4._y = y + 25;
temp4.parent = this;
_parent.p++;
}
}
Instance of Symbol 738 MovieClip "basePlatform3" in Symbol 740 MovieClip Frame 1 (357 B)
onClipEvent (load) {
function unPickUp() {
temp.removeMovieClip("");
}
function pickUp() {
pass = {difx:(next._x - _x) + _width, dify:0, er:25, ofr:50};
temp.removeMovieClip("");
temp = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp._x = _x - (_width / 2);
temp._y = next._y + 25;
_parent.p++;
}
}
Instance of Symbol 738 MovieClip "basePlatform11" in Symbol 740 MovieClip Frame 1 (831 B)
onClipEvent (load) {
function pickUp() {
x = next._x;
y = next._y - 100;
temp.play();
temp = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp._x = x;
temp._y = y;
temp.parent = this;
_parent.p++;
temp2.play();
temp2 = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp2._x = x;
temp2._y = y + 50;
temp2.parent = this;
_parent.p++;
temp3.play();
temp3 = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp3._x = x + 25;
temp3._y = y + 25;
temp3.parent = this;
_parent.p++;
temp4.play();
temp4 = _parent.attachMovie("pickup", "pickup" + _parent.p, _parent.p);
temp4._x = x - 25;
temp4._y = y + 25;
temp4.parent = this;
_parent.p++;
}
function unPickUp() {
temp.play();
temp2.play();
temp3.play();
temp4.play();
}
}
Instance of Symbol 332 MovieClip "basePlatform19" in Symbol 740 MovieClip Frame 1 (472 B)
onClipEvent (load) {
function reset() {
onenterFrame = move;
}
function standing() {
onenterFrame = null;
}
function land(override) {
if (override == undefined) {
override = 0;
}
if (!override) {
onEnterFrame = null;
}
}
dir = 1;
t = 0;
time = 100;
speed = 2;
move = function () {
t++;
if (t > time) {
dir = dir != 1;
t = 0;
}
if (dir) {
_x = (_x - speed);
} else {
_x = (_x + speed);
}
};
onEnterFrame = move;
}
Instance of Symbol 739 MovieClip "basePlatform20" in Symbol 740 MovieClip Frame 1 (65 B)
onClipEvent (load) {
dir = 1;
t = 0;
time = 100;
speed = 2;
}
Instance of Symbol 738 MovieClip "basePlatform23" in Symbol 740 MovieClip Frame 1 (870 B)
onClipEvent (load) {
function unPickUp() {
temp0.removeMovieClip("");
temp1.removeMovieClip("");
temp2.removeMovieClip("");
}
function pickUp() {
pass = {xspeed:7, startx:_x - 200, starty:_y - 350, dist:750, parent:this};
temp2 = _parent.attachMovie("pickuph", "pickuph" + _parent.p, _parent.p, pass);
temp2._x = pass.startx;
temp2._y = pass.starty;
_parent.p++;
pass = {difx:_width * 2, dify:0, er:40, ofr:40};
temp0.removeMovieClip("");
temp0 = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp0._x = _x - _width;
temp0._y = _y - 150;
_parent.p++;
pass = {difx:0, dify:_width * 2, er:40, ofr:40, swap:5};
temp1.removeMovieClip("");
temp1 = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp1._x = _x + _width;
temp1._y = _y - 150;
_parent.p++;
}
}
Instance of Symbol 332 MovieClip "basePlatform25" in Symbol 740 MovieClip Frame 1 (471 B)
onClipEvent (load) {
function reset() {
onenterFrame = move;
}
function standing() {
onenterFrame = null;
}
function land(override) {
if (override == undefined) {
override = 0;
}
if (!override) {
onEnterFrame = null;
}
}
dir = 1;
t = 0;
time = 75;
speed = 2;
move = function () {
t++;
if (t > time) {
dir = dir != 1;
t = 0;
}
if (dir) {
_y = (_y - speed);
} else {
_y = (_y + speed);
}
};
onEnterFrame = move;
}
Instance of Symbol 332 MovieClip "basePlatform26" in Symbol 740 MovieClip Frame 1 (471 B)
onClipEvent (load) {
function reset() {
onenterFrame = move;
}
function standing() {
onenterFrame = null;
}
function land(override) {
if (override == undefined) {
override = 0;
}
if (!override) {
onEnterFrame = null;
}
}
dir = 1;
t = 0;
time = 75;
speed = 2;
move = function () {
t++;
if (t > time) {
dir = dir != 1;
t = 0;
}
if (dir) {
_y = (_y - speed);
} else {
_y = (_y + speed);
}
};
onEnterFrame = move;
}
Instance of Symbol 332 MovieClip "basePlatform27" in Symbol 740 MovieClip Frame 1 (1.04 KiB) ●
onClipEvent (load) {
function reset() {
onenterFrame = move;
}
function standing() {
onenterFrame = null;
}
function land(override) {
if (override == undefined) {
override = 0;
}
if (!override) {
onEnterFrame = null;
}
}
function unPickUp() {
temp0.removeMovieClip("");
temp1.removeMovieClip("");
}
function pickUp() {
pass = {difx:-_width, dify:0, er:40, ofr:0};
temp0.removeMovieClip("");
temp0 = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp0._x = next._x - _width;
temp0._y = next._y + 25;
_parent.p++;
pass = {difx:_width, dify:0, er:40, ofr:0};
temp1.removeMovieClip("");
temp1 = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp1._x = next._x + (_width / 2);
temp1._y = next._y + 25;
_parent.p++;
}
dir = 1;
t = 0;
time = 75;
speed = 2;
move = function () {
t++;
if (t > time) {
dir = dir != 1;
t = 0;
}
if (dir) {
_y = (_y - speed);
} else {
_y = (_y + speed);
}
};
onEnterFrame = move;
}
Instance of Symbol 332 MovieClip "basePlatform28" in Symbol 740 MovieClip Frame 1 (471 B)
onClipEvent (load) {
function reset() {
onenterFrame = move;
}
function standing() {
onenterFrame = null;
}
function land(override) {
if (override == undefined) {
override = 0;
}
if (!override) {
onEnterFrame = null;
}
}
dir = 1;
t = 0;
time = 50;
speed = 3;
move = function () {
t++;
if (t > time) {
dir = dir != 1;
t = 0;
}
if (dir) {
_x = (_x + speed);
} else {
_x = (_x - speed);
}
};
onEnterFrame = move;
}
Instance of Symbol 737 MovieClip "basePlatform32" in Symbol 740 MovieClip Frame 1 (344 B)
onClipEvent (load) {
function unPickUp() {
temp.removeMovieClip("");
}
function pickUp() {
pass = {difx:_width, dify:0, er:40, ofr:0};
temp.removeMovieClip("");
temp = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp._x = next._x - (_width / 2);
temp._y = starty - 175;
_parent.p++;
}
}
Instance of Symbol 738 MovieClip "basePlatform33" in Symbol 740 MovieClip Frame 1 (339 B)
onClipEvent (load) {
function unPickUp() {
temp.removeMovieClip("");
}
function pickUp() {
pass = {difx:_width, dify:0, er:40, ofr:0};
temp.removeMovieClip("");
temp = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp._x = _x - (_width / 2);
temp._y = starty - 175;
_parent.p++;
}
}
Instance of Symbol 737 MovieClip "basePlatform34" in Symbol 740 MovieClip Frame 1 (899 B)
onClipEvent (load) {
function unPickUp() {
temp1.removeMovieClip("");
temp2.removeMovieClip("");
temp3.removeMovieClip("");
}
function pickUp() {
pass = {difx:_width, dify:0, er:40, ofr:0};
temp1.removeMovieClip("");
temp1 = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp1._x = next._x - (_width / 2);
temp1._y = nexty + 50;
_parent.p++;
pass = {difx:_width, dify:0, er:40, ofr:0};
temp2.removeMovieClip("");
temp2 = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp2._x = next._x - (_width / 2);
temp2._y = nexty + 100;
_parent.p++;
pass = {difx:_width, dify:0, er:40, ofr:0};
temp3.removeMovieClip("");
temp3 = _parent.attachMovie("electricfield", "electricfield" + _parent.p, _parent.p, pass);
temp3._x = next._x - (_width / 2);
temp3._y = nexty + 150;
_parent.p++;
}
}
Instance of Symbol 332 MovieClip "basePlatform35" in Symbol 740 MovieClip Frame 1 (471 B)
onClipEvent (load) {
function reset() {
onenterFrame = move;
}
function standing() {
onenterFrame = null;
}
function land(override) {
if (override == undefined) {
override = 0;
}
if (!override) {
onEnterFrame = null;
}
}
dir = 1;
t = 0;
time = 75;
speed = 2;
move = function () {
t++;
if (t > time) {
dir = dir != 1;
t = 0;
}
if (dir) {
_y = (_y + speed);
} else {
_y = (_y - speed);
}
};
onEnterFrame = move;
}
Instance of Symbol 628 MovieClip "aimer" in Symbol 740 MovieClip Frame 1 (2.4 KiB) ●
onClipEvent (load) {
_visible = 0;
this.swapDepths(9999);
oldercrossx = 0;
oldercrossy = 5000;
oldcrossx = 0;
oldcrossy = 5000;
oldercrossxi = 0;
oldercrossyi = 5000;
oldcrossxi = 0;
oldcrossyi = 5000;
oldcrossf = 1;
oldercrossf = 1;
oldcrossfi = 1;
oldercrossf = 1;
}
onClipEvent (enterFrame) {
ok = 1;
if (_visible) {
if (_xscale > 0) {
oldercross._x = oldercrossx;
oldercross._y = oldercrossy;
oldcross._x = oldcrossx;
oldcross._y = oldcrossy;
oldcross.gotoAndStop(oldcrossf);
oldercross.gotoAndStop(oldercrossf);
cross._x = _root._xmouse - (_x + _parent._x);
cross._y = _root._ymouse - (_y + _parent._y);
if ((cross._y > 25) || (cross._x < -25)) {
ok = 0;
}
if (cross._y > 0) {
cross._y = 0;
}
if (cross._x < 0) {
cross._x = 0;
}
dist = Math.sqrt(((cross._x - 0) * (cross._x - 0)) + ((cross._y - 0) * (cross._y - 0)));
rot = ((360 - ((Math.atan2(-cross._x, -cross._y) * 180) / Math.PI)) - 90) + 90;
if (dist > 100) {
cross._x = 100 * Math.cos(((rot - 90) * Math.PI) / 180);
cross._y = 100 * Math.sin(((rot - 90) * Math.PI) / 180);
}
line._rotation = rot;
line.line._height = Math.sqrt(Math.pow(-_parent.aimer.cross._x, 2) + Math.pow(-_parent.aimer.cross._y, 2));
} else {
oldercross._x = oldercrossxi;
oldercross._y = oldercrossyi;
oldcross._x = oldcrossxi;
oldcross._y = oldcrossyi;
oldcross.gotoAndStop(oldcrossfi);
oldercross.gotoAndStop(oldercrossfi);
cross._x = (_x - _root._xmouse) + _parent._x;
cross._y = (_root._ymouse - _y) - _parent._y;
if ((cross._y > 25) || (cross._x < -25)) {
ok = 0;
}
if (cross._y > 0) {
cross._y = 0;
}
if (cross._x < 0) {
cross._x = 0;
}
dist = Math.sqrt(((cross._x - 0) * (cross._x - 0)) + ((cross._y - 0) * (cross._y - 0)));
rot = ((360 - ((Math.atan2(-cross._x, -cross._y) * 180) / Math.PI)) - 90) + 90;
if (dist > 100) {
cross._x = 100 * Math.cos(((rot - 90) * Math.PI) / 180);
cross._y = 100 * Math.sin(((rot - 90) * Math.PI) / 180);
}
line._rotation = rot;
line.line._height = Math.sqrt(Math.pow(-_parent.aimer.cross._x, 2) + Math.pow(-_parent.aimer.cross._y, 2));
}
pd = Math.floor(rot - 360);
pv = Math.floor(Math.min(dist, 100));
power._xscale = _xscale;
if (_xscale < 0) {
power._x = power.a._x;
pd = -pd;
} else {
power._x = 0;
}
power.deg = pd;
power.pow = pv;
}
}
Instance of Symbol 621 MovieClip "superg" in Symbol 740 MovieClip Frame 1 (19.92 KiB) ● ● ●
onClipEvent (load) {
function aimit() {
pos = _root._xmouse - _parent._x;
if (pos > _x) {
if ((_x + _parent.aimer.radar._width) > ((-destx) + 550)) {
_xscale = -100;
} else {
_xscale = 100;
}
} else if ((_x - _parent.aimer.radar._width) < (-destx)) {
_xscale = 100;
} else {
_xscale = -100;
}
if (_xscale > 0) {
arot = ((360 - ((Math.atan2(((_x + arm._x) - _root._xmouse) + _parent._x, ((_y + arm._y) - _root._ymouse) + _parent._y) * 180) / Math.PI)) - 90) - 90;
if (arot > 270) {
arot = 270;
}
if (arot < 180) {
arot = 180;
}
guy.head._rotation = (arot - 270) / 2;
_parent.aimer._xscale = 100;
_parent.aimer._x = _x;
_parent.aimer._y = _y - 40;
} else {
arot = (((Math.atan2(((_x + arm._x) - _root._xmouse) + _parent._x, ((_y + arm._y) - _root._ymouse) + _parent._y) * 180) / Math.PI) - 90) - 90;
if (arot > -90) {
arot = -90;
}
if (arot < -180) {
arot = -180;
}
guy.head._rotation = ((arot - 270) + 360) / 2;
_parent.aimer._xscale = -100;
_parent.aimer._x = _x;
_parent.aimer._y = _y - 40;
}
}
this.gotoAndStop("blank");
lives = _parent.baseLives;
_parent._parent.airbrakes = _parent._parent.airbrakes + 3;
startx = _x;
starty = _y;
aim = 1;
sw = 550;
sh = 400;
destx = _parent.topx;
desty = _parent.topy;
this.swapDepths(10000);
i = 0;
targetnum = 1;
base = _parent.basePlatform0;
target = _parent["basePlatform" + targetnum];
first = 1;
clev = 1;
jumpno = 0;
jumpnum = 0;
combo = 0;
aim = 1;
}
onClipEvent (enterFrame) {
_parent._parent.lives = lives;
_parent._parent.knuggsc = _parent._parent.knuggs;
_parent._parent.airbrakesc = _parent._parent.airbrakes;
_parent._parent.level = clev;
if (lives <= 0) {
_parent._parent.gotoAndStop("gameover");
}
if (!first) {
if (aim) {
aimit();
if ((_parent.aimer.dist < 125) && (_parent.aimer.ok)) {
Mouse.hide();
} else {
Mouse.show();
}
} else if (go) {
if (flying) {
die = 1;
oldy = _y;
oldx = _x;
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_x > ((sw - 20) + (-destx))) {
_x = ((sw - 20) + (-destx));
xspeed = xspeed * -1;
_xscale = (_xscale * -1);
if (_currentframe == 3) {
gotoAndStop (4);
_rotation = 0;
}
ricochet++;
soundClip.gotoAndPlay("ricochet");
}
if (_x < (20 + (-destx))) {
_x = (20 + (-destx));
xspeed = xspeed * -1;
_xscale = (_xscale * -1);
if (_currentframe == 3) {
gotoAndStop (4);
_rotation = 0;
}
ricochet++;
soundClip.gotoAndPlay("ricochet");
}
if (_y < (-desty)) {
_parent.arrow._x = _x;
_parent.arrow._y = (-desty) + 10;
} else {
_parent.arrow._y = 5000;
}
if (yspeed >= 0) {
if (_currentframe == 3) {
gotoAndStop (4);
_rotation = 0;
}
}
if (((!dead) && (_y >= (target._y + target.anchor._y))) && (oldy <= (target._y + target.anchor._y))) {
if ((_x > (target._x + target.anchor._x)) && (_x < (target._x + target.anchor2._x))) {
if (!target.land()) {
soundClip.gotoAndPlay("land");
flying = 0;
die = 0;
_y = (target._y + target.anchor._y);
gotoAndStop (6);
_parent.smoke.gotoAndPlay(1);
_parent.smoke._x = _x;
_parent.smoke._y = _y;
im = 0;
if (targetnum < maxtargets) {
if (target.inter) {
im = 1;
if (target.parent) {
firstinter = base;
secondinter = target;
targetnuminter = targetnum;
}
} else {
lives = _parent.baseLives;
with (_parent.aimer) {
oldercrossx = 0;
oldercrossy = 5000;
oldcrossx = 0;
oldcrossy = 5000;
oldercrossxi = 0;
oldercrossyi = 5000;
oldcrossxi = 0;
oldcrossyi = 5000;
oldcross._x = 0;
oldcross._y = 5000;
oldercross._x = 0;
oldercross._y = 5000;
oldcross.gotoAndStop(1);
oldercross.gotoAndStop(1);
}
clev++;
}
targetnum++;
base.gotoAndPlay("dissapear");
base.unPickUp();
if (xs == 1) {
if (airbrake == 0) {
base.oldcrossf = 2;
} else {
base.oldcrossf = 3;
}
} else if (airbrake == 0) {
base.oldcrossfi = 2;
} else {
base.oldcrossf = 3;
}
base = target;
if (targetnum != maxtargets) {
target = _parent["basePlatform" + targetnum];
} else {
soundClip.gotoAndPlay("wormhole");
target = _parent.wormhole;
tika = 0;
}
if (base.inter || (target.inter)) {
if (base.aimdata) {
_parent.aimer.oldercrossx = base.oldercrossx;
_parent.aimer.oldercrossy = base.oldercrossy;
_parent.aimer.oldcrossx = base.oldcrossx;
_parent.aimer.oldcrossy = base.oldcrossy;
_parent.aimer.oldercrossxi = base.oldercrossxi;
_parent.aimer.oldercrossyi = base.oldercrossyi;
_parent.aimer.oldcrossxi = base.oldcrossxi;
_parent.aimer.oldcrossyi = base.oldcrossyi;
_parent.aimer.oldcrossf = base.oldcrossf;
_parent.aimer.oldercrossf = base.oldercrossf;
_parent.aimer.oldcrossfi = base.oldcrossfi;
_parent.aimer.oldercrossfi = base.oldercrossfi;
} else {
with (_parent.aimer) {
oldercrossx = 0;
oldercrossy = 5000;
oldcrossx = 0;
oldcrossy = 5000;
oldercrossxi = 0;
oldercrossyi = 5000;
oldcrossxi = 0;
oldcrossyi = 5000;
oldcross._x = 0;
oldcross._y = 5000;
oldercross._x = 0;
oldercross._y = 5000;
}
base.aimdata = 1;
base.oldercrossx = 0;
base.oldercrossy = 5000;
base.oldcrossx = 0;
base.oldcrossy = 5000;
base.oldercrossxi = 0;
base.oldercrossyi = 5000;
base.oldcrossxi = 0;
base.oldcrossyi = 5000;
base.oldcrossf = 1;
base.oldercrossf = 1;
base.oldcrossfi = 1;
base.oldercrossfi = 1;
}
base.landx = _x;
}
target._visible = 1;
} else {
base.unPickUp();
base.gotoAndPlay("dissapear");
base = _parent.wormhole;
lives = _parent.baseLives;
aim = 0;
first = 1;
begin = 0;
go = 0;
end = 1;
_parent.anchor.onEnterFrame = _parent.anchor.remove;
}
}
if (im == 0) {
jumpnum++;
}
if (jumpnum > 2) {
if (_parent._parent.airbrakes < 3) {
_parent._parent.airbrakes++;
}
jumpnum = 0;
}
if (dead == 0) {
totnum = 0;
if (im == 0) {
totnum = totnum + 20;
}
if (jumpno == 1) {
combo++;
if (combo > 1) {
totnum = totnum + 20;
}
totnum = totnum + 20;
}
if ((_x > (base._x - 10)) && (_x < (base._x + 10))) {
totnum = totnum + 20;
}
if (dist >= 100) {
totnum = totnum + 20;
}
r = 0;
while (r < ricochet) {
totnum = totnum + 20;
r++;
}
if (airbrake) {
totnum = totnum + 20;
}
if (collect) {
totnum = totnum + 20;
}
bnum = 0;
if (((_y - 100) - totnum) < (-desty)) {
totnum = 0;
if ((_y - 100) < (-desty)) {
totnum = -50;
}
}
snumber = _parent.snumber;
if (im == 0) {
if (base._name != "wormhole") {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Level Clear: +" + (snumber * 2), 1, 0 + bnum);
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 2);
} else {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "World Clear!: +" + (snumber * 20), 32, 0 + bnum);
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 20);
}
bnum = bnum + 20;
}
if (jumpno == 1) {
if (combo < 2) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 2), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 2);
} else if (combo == 2) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Combo!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 3), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 3);
} else if (combo == 3) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Double Combo!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 4), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 4);
} else if (combo == 4) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Triple Combo!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 5), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 5);
} else if (combo == 5) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Super Combo!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 6), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 6);
} else if (combo == 6) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Mega Combo!!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 7), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 7);
} else if (combo == 7) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Ultra Combo!!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 8), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 8);
} else if (combo == 8) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Extreme Combo!!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 9), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 9);
} else if (combo >= 9) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Top Secret Combo!!", 32, 0 + bnum);
bnum = bnum + 20;
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Perfect: +" + (snumber * 10), 1, 0 + bnum);
bnum = bnum + 20;
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 10);
}
}
jumpno = 0;
if ((_x > (base._x - 10)) && (_x < (base._x + 10))) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Accuracy: +" + snumber, 1, 0 + bnum);
_parent._parent.knuggs = _parent._parent.knuggs + snumber;
bnum = bnum + 20;
}
if (dist >= 100) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Full Speed: +" + snumber, 1, 0 + bnum);
_parent._parent.knuggs = _parent._parent.knuggs + snumber;
bnum = bnum + 20;
}
r = 0;
while (r < ricochet) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Ricochet: +" + snumber, 1, 0 + bnum);
_parent._parent.knuggs = _parent._parent.knuggs + snumber;
bnum = bnum + 20;
r++;
}
if (airbrake) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Airbrake: +" + snumber, 1, 0 + bnum);
_parent._parent.knuggs = _parent._parent.knuggs + snumber;
bnum = bnum + 20;
}
if (collect) {
_parent.addPopup(_x, (_y - 50) - (totnum - bnum), "Katra Landed: +" + (snumber * 4), 1, 0 + bnum);
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 4);
bnum = bnum + 20;
}
}
}
} else if (((!dead) && (_y >= (target._y - target._height))) && (_y <= target._y)) {
if ((_x > (target._x + target.anchor._x)) && (_x < (target._x + target.anchor2._x))) {
target.land(1);
}
}
if (_y > ((sh - _parent._y) + (_height * 2))) {
flying = 0;
die = 1;
dead = 1;
soundClip.gotoAndPlay("fall");
}
yspeed++;
ticks++;
if ((ticks >= (_parent._parent.maxtraild - _parent._parent.traild)) && (_parent._parent.traild != 0)) {
temp = _parent.anchor.attachMovie("dot", "dot" + i, i);
_parent.anchor.n++;
temp._x = _x;
temp._y = _y - 30;
y = y - 10;
if (y < 0) {
y = 0;
}
rgb = ((y << 16) | (f << 8)) | y;
_parent.anchor.lineStyle(2, rgb, 100);
_parent.anchor.lineTo(_x, _y - 30);
i++;
ticks = 0;
}
} else {
tik++;
if (((Key.isDown(32) || (dead)) || (tik > 25)) || (im && (tik > 15))) {
if (die || (dead)) {
if (firstdie) {
if (im) {
base.unPickUp();
target.unPickUp();
base.reset();
target.reset();
base.gotoAndPlay("dissapear");
target.gotoAndPlay("dissapear");
base = firstinter;
base.gotoAndStop(1);
base._visible = 1;
startx = base._x;
starty = base._y + base.anchor._y;
target = secondinter;
target.gotoAndStop(1);
target._visible = 1;
target.reset();
base.land();
base.pickUp();
targetnum = targetnuminter;
if (base.aimdata) {
_parent.aimer.oldercrossx = base.oldercrossx;
_parent.aimer.oldercrossy = base.oldercrossy;
_parent.aimer.oldcrossx = base.oldcrossx;
_parent.aimer.oldcrossy = base.oldcrossy;
_parent.aimer.oldercrossxi = base.oldercrossxi;
_parent.aimer.oldercrossyi = base.oldercrossyi;
_parent.aimer.oldcrossxi = base.oldcrossxi;
_parent.aimer.oldcrossyi = base.oldcrossyi;
_parent.aimer.oldcrossf = base.oldcrossf;
_parent.aimer.oldercrossf = base.oldercrossf;
_parent.aimer.oldcrossfi = base.oldcrossfi;
_parent.aimer.oldercrossfi = base.oldercrossfi;
} else {
with (_parent.aimer) {
oldercrossx = 0;
oldercrossy = 5000;
oldcrossx = 0;
oldcrossy = 5000;
oldercrossxi = 0;
oldercrossyi = 5000;
oldcrossxi = 0;
oldcrossyi = 5000;
oldcross._x = 0;
oldcross._y = 5000;
oldercross._x = 0;
oldercross._y = 5000;
}
base.aimdata = 1;
base.oldercrossx = 0;
base.oldercrossy = 5000;
base.oldcrossx = 0;
base.oldcrossy = 5000;
base.oldercrossxi = 0;
base.oldercrossyi = 5000;
base.oldcrossxi = 0;
base.oldcrossyi = 5000;
base.oldcrossf = 1;
base.oldercrossf = 1;
base.oldcrossfi = 1;
base.oldercrossfi = 1;
}
startx = base.landx;
}
lives--;
_x = startx;
_y = starty;
back = 1;
res = 0;
_parent.anchor.onEnterFrame = _parent.anchor.remove;
this.gotoAndStop("reserect");
soundClip.gotoAndPlay("reser");
firstdie = 0;
combo = 0;
}
} else if (firstdie) {
if (!im) {
soundClip.gotoAndPlay("nextlev");
}
scroll = 1;
_parent.anchor.onEnterFrame = _parent.anchor.remove;
firstdie = 0;
}
}
if (back) {
base._visible = 1;
base.gotoAndStop(1);
if (res) {
aim = 1;
aimit();
_parent.aimer._visible = 1;
base.onEnterFrame = base.standing;
i = 0;
gotoAndStop (1);
soundClip.gotoAndPlay("ready");
back = 0;
res = 0;
}
}
if (scroll) {
if (!im) {
destx = ((-base._x) + (base._width / 2)) + _parent.topx;
}
if ((_parent._x > (destx + 1)) || (_parent._x < (destx - 1))) {
_parent._x = _parent._x + ((destx - _parent._x) / 6);
} else {
_parent._x = destx;
startx = _x;
starty = _y;
with (_parent.aimer) {
_visible = 1;
}
aim = 1;
aimit();
base.onEnterFrame = base.standing;
base.pickUp();
i = 0;
gotoAndStop (1);
soundClip.gotoAndPlay("ready");
scroll = 0;
}
}
}
}
} else {
if (begin) {
this.gotoAndStop("warpin");
}
if (go) {
this.gotoAndStop("standing");
_parent.aimer._visible = 1;
first = 0;
base.pickUp();
soundClip.gotoAndPlay("ready");
}
if (end) {
tika++;
if (tika > 25) {
this.gotoAndStop("warpout");
_x = (_x + ((base._x - _x) / 2));
_y = (_y + (((base._y - 60) - _y) / 2));
if (tika > 50) {
base.play();
if (tika > 100) {
base.onEnterFrame = base.standing;
}
}
}
}
}
dc++;
}
onClipEvent (mouseDown) {
if (((aim && (!first)) && (_parent.aimer.dist < 125)) && (_parent.aimer.ok)) {
with (_parent.aimer) {
_visible = 0;
if (_xscale > 0) {
oldercrossx = oldcrossx;
oldercrossy = oldcrossy;
oldcrossx = cross._x;
oldcrossy = cross._y;
oldercrossf = oldcrossf;
oldcrossf = 1;
} else {
oldercrossxi = oldcrossxi;
oldercrossyi = oldcrossyi;
oldcrossxi = cross._x;
oldcrossyi = cross._y;
oldercrossfi = oldcrossfi;
oldcrossfi = 1;
}
}
if (base.inter || (target.inter)) {
if (base.aimdata == 1) {
if (_xscale > 0) {
base.oldercrossx = _parent.aimer.oldercrossx;
base.oldercrossy = _parent.aimer.oldercrossy;
base.oldcrossx = _parent.aimer.oldcrossx;
base.oldcrossy = _parent.aimer.oldcrossy;
base.oldercrossf = _parent.aimer.oldercrossf;
base.oldcrossf = 1;
} else {
base.oldercrossxi = _parent.aimer.oldercrossxi;
base.oldercrossyi = _parent.aimer.oldercrossyi;
base.oldcrossxi = _parent.aimer.oldcrossxi;
base.oldcrossyi = _parent.aimer.oldcrossyi;
base.oldercrossfi = _parent.aimer.oldercrossfi;
base.oldcrossfi = 1;
}
}
}
if (_xscale > 0) {
rot = Math.floor(_parent.aimer.rot);
dist = Math.floor(Math.min(_parent.aimer.dist, 100));
speed = 7 * (dist / 22);
xs = 1;
} else {
rot = Math.floor(((Math.atan2(-_parent.aimer.cross._x, -_parent.aimer.cross._y) * 180) / Math.PI) - 180);
dist = Math.floor(Math.min(_parent.aimer.dist, 100));
speed = 7 * (-(dist / 22));
xs = -1;
}
xspeed = speed * Math.cos(((rot - 90) * Math.PI) / 180);
yspeed = speed * Math.sin(((rot - 90) * Math.PI) / 180);
aim = 0;
flying = 1;
go = 0;
gotoAndStop (2);
_parent.attachMovie("draw", "anchor", 100);
_parent.anchor.moveTo(_x, _y - 30);
startx = _x;
starty = _y;
base.launch();
base.onEnterFrame = null;
dead = 0;
y = 255;
f = 255;
rgb = ((y << 16) | (f << 8)) | y;
tik = 0;
firstdie = 1;
res = 0;
scroll = 0;
back = 0;
airbrake = 0;
ricochet = 0;
collect = 0;
_parent.smoke.gotoAndPlay(1);
_parent.smoke._x = _x;
_parent.smoke._y = _y;
Mouse.show();
jumpno++;
soundClip.gotoAndPlay("launch");
}
if (!aim) {
if (dc < 5) {
if (flying) {
if ((((_parent._parent.airbrakes > 0) && (airbrake == 0)) && (_y < ((-desty) + sh))) && (dead == 0)) {
airbrake = 1;
xspeed = 0;
yspeed = 0;
_parent._parent.airbrakes--;
_parent.smoke.gotoAndPlay(1);
_parent.smoke._x = _x;
_parent.smoke._y = _y;
soundClip.gotoAndPlay("airbrake");
}
}
}
dc = 0;
}
}
Symbol 791 MovieClip Frame 1 (8 B)
stop();
Symbol 791 MovieClip Frame 6 (17 B)
gotoAndStop (1);
Symbol 791 MovieClip Frame 11 (17 B)
gotoAndStop (1);
Symbol 792 MovieClip Frame 20 (17 B)
gotoAndPlay (2);
Symbol 793 MovieClip Frame 1 (874 B)
function addPopUp(x, y, text, col, ydif, alpha) {
temp = this.attachMovie("Popup", "PopUp" + pu, pu);
temp._x = x;
temp._y = y;
temp.gfx.text = text;
temp.gfx._alpha = alpha;
if (col != 32) {
temp.gfx.gotoAndStop(col);
}
if ((temp._x - (temp._width / 2)) < ((-superg.destx) + 20)) {
temp._x = ((-superg.destx) + 20) + (temp._width / 2);
}
if ((temp._x + (temp._width / 2)) > (((-superg.destx) + sw) + 20)) {
temp._x = (((-superg.destx) + sw) + 20) - (temp._width / 2);
}
if ((temp._y - 50) < (-superg.desty)) {
}
pu++;
}
w = basePlatform0._width;
h = basePlatform0._height;
sw = 510;
sh = 400;
startx = 0;
starty = 400;
p = 4000;
pu = 100000 /* 0x0186A0 */;
mt = 1;
snumber = 10;
baseLives = 4;
mt = mt + 6;
wormhole._x = startx + 255;
wormhole._y = starty - 200;
wormhole._visible = 0;
superg.maxtargets = mt;
Instance of Symbol 728 MovieClip "wormhole" in Symbol 793 MovieClip Frame 1 (96 B)
onClipEvent (enterFrame) {
function standing() {
_parent._parent.gotoAndStop("endgame");
}
}
Instance of Symbol 621 MovieClip "superg" in Symbol 793 MovieClip Frame 1 (8.96 KiB) ● ●
onClipEvent (load) {
function aimit() {
pos = _root._xmouse - _parent._x;
if (pos > _x) {
if ((_x + _parent.aimer.radar._width) > ((-destx) + 550)) {
_xscale = -100;
} else {
_xscale = 100;
}
} else if ((_x - _parent.aimer.radar._width) < (-destx)) {
_xscale = 100;
} else {
_xscale = -100;
}
if (_xscale > 0) {
arot = ((360 - ((Math.atan2(((_x + arm._x) - _root._xmouse) + _parent._x, ((_y + arm._y) - _root._ymouse) + _parent._y) * 180) / Math.PI)) - 90) - 90;
if (arot > 270) {
arot = 270;
}
if (arot < 180) {
arot = 180;
}
guy.head._rotation = (arot - 270) / 2;
_parent.aimer._xscale = 100;
_parent.aimer._x = _x;
_parent.aimer._y = _y - 40;
} else {
arot = (((Math.atan2(((_x + arm._x) - _root._xmouse) + _parent._x, ((_y + arm._y) - _root._ymouse) + _parent._y) * 180) / Math.PI) - 90) - 90;
if (arot > -90) {
arot = -90;
}
if (arot < -180) {
arot = -180;
}
guy.head._rotation = ((arot - 270) + 360) / 2;
_parent.aimer._xscale = -100;
_parent.aimer._x = _x;
_parent.aimer._y = _y - 40;
}
}
this.gotoAndStop("blank");
lives = _parent.baseLives;
_parent._parent.airbrakes = _parent._parent.airbrakes + 3;
aim = 1;
sw = 550;
sh = 400;
this.swapDepths(10000);
i = 0;
base = _parent.basePlatform0;
first = 1;
bticks = 0;
btime = 1000;
desty = -20;
destx = -10;
b = 0;
}
onClipEvent (enterFrame) {
_parent._parent.lives = lives;
_parent._parent.knuggsc = _parent._parent.knuggs;
_parent._parent.airbrakesc = _parent._parent.airbrakes;
_parent._parent.level = "x";
if (lives <= 0) {
_parent._parent.gotoAndStop("gameover");
}
if (!back) {
bticks++;
}
if ((bticks > btime) && (b == 0)) {
b = 1;
_parent.wormhole._visible = 1;
soundClip.gotoAndPlay("wormhole");
}
if (!first) {
if (aim) {
aimit();
if ((_parent.aimer.dist < 125) && (_parent.aimer.ok)) {
Mouse.hide();
} else {
Mouse.show();
}
} else if (go) {
if (flying) {
die = 1;
oldy = _y;
oldx = _x;
_x = (_x + xspeed);
_y = (_y + yspeed);
if (_x > ((sw - 50) + (-destx))) {
_x = ((sw - 50) + (-destx));
xspeed = xspeed * -1;
_xscale = (_xscale * -1);
if (_currentframe == 3) {
gotoAndStop (4);
_rotation = 0;
}
soundClip.gotoAndPlay("ricochet");
}
if (_x < (-destx)) {
_x = (-destx);
xspeed = xspeed * -1;
_xscale = (_xscale * -1);
if (_currentframe == 3) {
gotoAndStop (4);
_rotation = 0;
}
soundClip.gotoAndPlay("ricochet");
}
if (_y < (-desty)) {
_parent.arrow._x = _x;
_parent.arrow._y = (-desty) + 10;
} else {
_parent.arrow._y = 5000;
}
if (yspeed >= 0) {
if (_currentframe == 3) {
gotoAndStop (4);
_rotation = 0;
}
}
s = 0;
while (s < maxtargets) {
target = _parent["basePlatform" + s];
if ((((!dead) && (target != base)) && (_y >= (target._y + target.anchor._y))) && (oldy <= (target._y + target.anchor._y))) {
if ((_x > (target._x + target.anchor._x)) && (_x < (target._x + target.anchor2._x))) {
soundClip.gotoAndPlay("land");
flying = 0;
die = 0;
_y = (target._y + target.anchor._y);
gotoAndStop (6);
_parent.smoke.gotoAndPlay(1);
_parent.smoke._x = _x;
_parent.smoke._y = _y;
if (xs == 1) {
if (airbrake == 0) {
base.oldcrossf = 2;
} else {
base.oldcrossf = 3;
}
} else if (airbrake == 0) {
base.oldcrossfi = 2;
} else {
base.oldcrossf = 3;
}
base = target;
make++;
if (make > 2) {
make = 0;
_parent._parent.airbrakes++;
}
break;
}
}
s++;
}
if (_parent.wormhole._visible == 1) {
wtarget = _parent.wormhole;
if (((!dead) && (_y >= (wtarget._y + wtarget.anchor._y))) && (oldy <= (wtarget._y + wtarget.anchor._y))) {
if ((_x > (wtarget._x + wtarget.anchor._x)) && (_x < (wtarget._x + wtarget.anchor2._x))) {
flying = 0;
die = 0;
_y = (wtarget._y + wtarget.anchor._y);
this.gotoAndStop("landing");
soundClip.gotoAndPlay("land");
_parent.smoke.gotoAndPlay(1);
_parent.smoke._x = _x;
_parent.smoke._y = _y;
_parent.interface.soundClip.gotoAndPlay("no");
base = _parent.wormhole;
lives = _parent.baseLives;
aim = 0;
back = 0;
scroll = 0;
first = 1;
begin = 0;
go = 0;
end = 1;
_parent.anchor.onEnterFrame = _parent.anchor.remove;
snumber = _parent.snumber;
_parent.addPopup(_x, _y - 50, "Mission Completed!", 32, 0 + bnum);
_parent._parent.knuggs = _parent._parent.knuggs + (snumber * 200);
}
}
}
snumber = _parent.snumber;
if (_y > ((sh - _parent._y) + (_height * 2))) {
flying = 0;
die = 1;
dead = 1;
soundClip.gotoAndPlay("fall");
_parent.interface.soundClip.gotoAndPlay("laugh");
}
yspeed++;
ticks++;
if ((ticks >= (_parent._parent.maxtraild - _parent._parent.traild)) && (_parent._parent.traild != 0)) {
temp = _parent.anchor.attachMovie("dot", "dot" + i, i);
_parent.anchor.n++;
temp._x = _x;
temp._y = _y - 30;
y = y - 10;
if (y < 0) {
y = 0;
}
rgb = ((y << 16) | (f << 8)) | y;
_parent.anchor.lineStyle(2, rgb, 100);
_parent.anchor.lineTo(_x, _y - 30);
i++;
ticks = 0;
}
} else {
tik++;
if ((tik > 5) || (dead)) {
if (die || (dead)) {
if (firstdie) {
lives--;
_x = base._x;
_y = (base._y + base.anchor._y);
back = 1;
res = 0;
_parent.anchor.onEnterFrame = _parent.anchor.remove;
this.gotoAndStop("reserect");
soundClip.gotoAndPlay("reser");
firstdie = 0;
}
} else if (firstdie) {
scroll = 1;
_parent.anchor.onEnterFrame = _parent.anchor.remove;
firstdie = 0;
}
if (back) {
if (res) {
aim = 1;
aimit();
_parent.aimer._visible = 1;
i = 0;
gotoAndStop (1);
soundClip.gotoAndPlay("ready");
flying = 0;
die = 0;
dead = 0;
back = 0;
res = 0;
tik = 0;
}
}
if (scroll) {
startx = _x;
starty = _y;
with (_parent.aimer) {
_visible = 1;
}
aim = 1;
aimit();
i = 0;
gotoAndStop (1);
soundClip.gotoAndPlay("ready");
scroll = 0;
tik = 0;
}
}
}
}
} else {
if (begin) {
this.gotoAndStop("warpin");
}
if (go) {
this.gotoAndStop("standing");
_parent.aimer._visible = 1;
first = 0;
base.pickUp();
soundClip.gotoAndPlay("ready");
}
if (end) {
tika++;
if (tika > 25) {
this.gotoAndStop("warpout");
_x = (_x + ((base._x - _x) / 2));
_y = (_y + (((base._y - 60) - _y) / 2));
if (tika > 50) {
base.play();
if (tika > 100) {
base.onEnterFrame = base.standing;
}
}
}
}
}
dc++;
}
onClipEvent (mouseDown) {
if (((aim && (!first)) && (_parent.aimer.dist < 125)) && (_parent.aimer.ok)) {
with (_parent.aimer) {
_visible = 0;
if (_xscale > 0) {
oldercrossx = 0;
oldercrossy = 5000;
oldcrossx = 0;
oldcrossy = 5000;
oldercrossf = 1;
oldcrossf = 1;
} else {
oldercrossxi = 0;
oldercrossyi = 5000;
oldcrossxi = 0;
oldcrossyi = 5000;
oldercrossfi = 1;
oldcrossfi = 1;
}
}
if (_xscale > 0) {
rot = Math.floor(_parent.aimer.rot);
dist = Math.floor(Math.min(_parent.aimer.dist, 100));
speed = 7 * (dist / 22);
xs = 1;
} else {
rot = Math.floor(((Math.atan2(-_parent.aimer.cross._x, -_parent.aimer.cross._y) * 180) / Math.PI) - 180);
dist = Math.floor(Math.min(_parent.aimer.dist, 100));
speed = 7 * (-(dist / 22));
xs = -1;
}
xspeed = speed * Math.cos(((rot - 90) * Math.PI) / 180);
yspeed = speed * Math.sin(((rot - 90) * Math.PI) / 180);
aim = 0;
flying = 1;
go = 0;
gotoAndStop (2);
_parent.attachMovie("draw", "anchor", 100);
_parent.anchor.moveTo(_x, _y - 30);
dead = 0;
y = 255;
f = 255;
rgb = ((y << 16) | (f << 8)) | y;
tik = 0;
firstdie = 1;
res = 0;
scroll = 0;
back = 0;
airbrake = 0;
_parent.smoke.gotoAndPlay(1);
_parent.smoke._x = _x;
_parent.smoke._y = _y;
Mouse.show();
soundClip.gotoAndPlay("launch");
}
if (!aim) {
if (dc < 5) {
if (flying) {
if ((((_parent._parent.airbrakes > 0) && (airbrake == 0)) && (_y < ((-desty) + sh))) && (dead == 0)) {
airbrake = 1;
xspeed = 0;
yspeed = 0;
_parent._parent.airbrakes--;
_parent.smoke.gotoAndPlay(1);
_parent.smoke._x = _x;
_parent.smoke._y = _y;
soundClip.gotoAndPlay("airbrake");
}
}
}
dc = 0;
}
}
Instance of Symbol 628 MovieClip "aimer" in Symbol 793 MovieClip Frame 1 (2.4 KiB) ●
onClipEvent (load) {
_visible = 0;
this.swapDepths(9999);
oldercrossx = 0;
oldercrossy = 5000;
oldcrossx = 0;
oldcrossy = 5000;
oldercrossxi = 0;
oldercrossyi = 5000;
oldcrossxi = 0;
oldcrossyi = 5000;
oldcrossf = 1;
oldercrossf = 1;
oldcrossfi = 1;
oldercrossf = 1;
}
onClipEvent (enterFrame) {
ok = 1;
if (_visible) {
if (_xscale > 0) {
oldercross._x = oldercrossx;
oldercross._y = oldercrossy;
oldcross._x = oldcrossx;
oldcross._y = oldcrossy;
oldcross.gotoAndStop(oldcrossf);
oldercross.gotoAndStop(oldercrossf);
cross._x = _root._xmouse - (_x + _parent._x);
cross._y = _root._ymouse - (_y + _parent._y);
if ((cross._y > 25) || (cross._x < -25)) {
ok = 0;
}
if (cross._y > 0) {
cross._y = 0;
}
if (cross._x < 0) {
cross._x = 0;
}
dist = Math.sqrt(((cross._x - 0) * (cross._x - 0)) + ((cross._y - 0) * (cross._y - 0)));
rot = ((360 - ((Math.atan2(-cross._x, -cross._y) * 180) / Math.PI)) - 90) + 90;
if (dist > 100) {
cross._x = 100 * Math.cos(((rot - 90) * Math.PI) / 180);
cross._y = 100 * Math.sin(((rot - 90) * Math.PI) / 180);
}
line._rotation = rot;
line.line._height = Math.sqrt(Math.pow(-_parent.aimer.cross._x, 2) + Math.pow(-_parent.aimer.cross._y, 2));
} else {
oldercross._x = oldercrossxi;
oldercross._y = oldercrossyi;
oldcross._x = oldcrossxi;
oldcross._y = oldcrossyi;
oldcross.gotoAndStop(oldcrossfi);
oldercross.gotoAndStop(oldercrossfi);
cross._x = (_x - _root._xmouse) + _parent._x;
cross._y = (_root._ymouse - _y) - _parent._y;
if ((cross._y > 25) || (cross._x < -25)) {
ok = 0;
}
if (cross._y > 0) {
cross._y = 0;
}
if (cross._x < 0) {
cross._x = 0;
}
dist = Math.sqrt(((cross._x - 0) * (cross._x - 0)) + ((cross._y - 0) * (cross._y - 0)));
rot = ((360 - ((Math.atan2(-cross._x, -cross._y) * 180) / Math.PI)) - 90) + 90;
if (dist > 100) {
cross._x = 100 * Math.cos(((rot - 90) * Math.PI) / 180);
cross._y = 100 * Math.sin(((rot - 90) * Math.PI) / 180);
}
line._rotation = rot;
line.line._height = Math.sqrt(Math.pow(-_parent.aimer.cross._x, 2) + Math.pow(-_parent.aimer.cross._y, 2));
}
pd = Math.floor(rot - 360);
pv = Math.floor(Math.min(dist, 100));
power._xscale = _xscale;
if (_xscale < 0) {
power._x = power.a._x;
pd = -pd;
} else {
power._x = 0;
}
power.deg = pd;
power.pow = pv;
}
}
Instance of Symbol 792 MovieClip "interface" in Symbol 793 MovieClip Frame 1 (1.03 KiB) ●
onClipEvent (load) {
target = _parent.superg;
degrad = (Math.PI/180);
raddeg = 57.2957795130823;
dspeed = 4;
}
onClipEvent (enterFrame) {
if (target.dead || ((!target.go) && (!target.flying))) {
targetx = 275;
targety = -60;
speed = dspeed;
if (target.dead) {
target.go = 1;
}
} else {
dspeed = Math.sqrt(((275 - _x) * (275 - _x)) + ((-60 - _y) * (-60 - _y))) / 32;
targetx = target._x;
targety = target._y;
if (hit.hitTest(target)) {
target.dead = 1;
target.gotoAndStop("electricing");
soundClip.gotoAndPlay("laugh");
target.soundClip.gotoAndPlay("electric");
if (target.aim) {
target.flying = 1;
target.go = 1;
target.aim = 0;
target.die = 1;
target.dead = 1;
target.firstdie = 1;
target.first = 0;
target.xspeed = 0;
target.yspeed = 0;
_parent.aimer._visible = 0;
}
}
speed = 2;
}
ang = 90 - (Math.atan2(_x - targetx, _y - targety) * raddeg);
_x = (_x + (speed * Math.cos((ang + 180) * degrad)));
_y = (_y + (speed * Math.sin((ang + 180) * degrad)));
}