Frame 1
function a(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
a("5c9e6219", this, 10301, true);
function b(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
b("2dd5063a", this, 10301, true);
function Remove(Name, nameDepth) {
delete _root[Name + nameDepth];
}
function Loading() {
if ((_root.getBytesLoaded() / _root.getBytesTotal()) == 1) {
_root.preloader2000002._alpha = _root.preloader2000002._alpha - 3;
speed = speed + 1;
_root.Shape0.Move(0, 0, -speed);
if (_root.preloader2000002._alpha < 10) {
i = 0;
while (i < (depth + 1)) {
_root["Shape" + (depth * 100)].Die();
i++;
}
Refreshb();
}
if (_root.preloader2000002._alpha < 0) {
_root.gotoAndStop(2);
_root.attachMovie("sound", "sound2000009", 2000009, {_x:270, _y:-140});
_root.attachMovie("theyarrasidlink", "theyarrasidlink2000002", 2000002);
yar = true;
}
if (yar) {
if (yarcounter < 30) {
_root.theyarrasidlink2000002._alpha = _root.theyarrasidlink2000002._alpha - 10;
}
yarcounter--;
if (yarcounter == 0) {
yar = false;
counting = true;
_root.attachMovie("AWESOMEYAY-INTRO", "AWESOMEYAY-INTRO2000002", 2000002);
_root.preloader2000002.removeMovieClip();
}
}
if (counting) {
if (countTimer > 0) {
countTimer--;
} else {
counting = false;
_root.gotoAndStop(3);
}
}
}
}
function Site() {
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
if (domain != "newgrounds.com") {
Playable = true;
} else {
Playable = true;
}
}
stop();
_x = 300;
_y = 150;
_root.attachMovie("bg", "bg0", 0, {_x:-300});
_root.attachMovie("HUDB", "HUDB2000000", 2000000, {_x:-300, _y:-150});
_root.attachMovie("preloader", "preloader2000002", 2000002, {_x:0, _y:0});
var xPlayer = new Array(0, 2, 0, -2, 0, 6, 8, 6, 6, -6, -8, -6, -6);
var yPlayer = new Array(0, 0, 0, 0, -3, 0, 0, 0, -2, 0, 0, 0, -2);
var zPlayer = new Array(5, 0, -10, 0, -2, 15, 0, -5, -2, 15, 0, -5, -2);
var sPlayer = new Array([0, 1, 4, 0], [0, 4, 3, 0], [4, 1, 2, 4], [3, 4, 2, 3], [0, 3, 1, 0], [1, 3, 2, 1], [5, 6, 8, 5], [1, 5, 8, 1], [8, 6, 7, 8], [1, 8, 7, 1], [5, 1, 6, 5], [6, 1, 7, 6], [9, 3, 12, 9], [9, 12, 10, 9], [12, 3, 11, 12], [10, 12, 11, 10], [9, 10, 3, 9], [3, 10, 11, 3]);
var xdep = 0;
var ydep = 0;
var zdep = 0;
var depth = 0;
var instance = 1000;
var per = 500;
var speed = 0;
var yar = false;
var yarcounter = 90;
var counting = false;
var countTimer = 130;
Refreshb = function () {
zdep = 0;
depth = 0;
per = 500;
timer = 30;
timerb = 0;
timerc = 0;
perTimera = 40;
perTimerb = 0;
};
Refreshb();
var C = 16711782;
_root["Shape" + (depth * 100)] = new MenuObject(sPlayer.concat(), xPlayer.concat(), yPlayer.concat(), zPlayer.concat(), 0, 15, 70, 11, depth * 100, [C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C]);
depth = 100;
Site();
onEnterFrame = function () {
if ((!Load) && (Playable)) {
Loading();
drawOrder = new Array();
_root.Shape0.Frame(0, 0, 0);
_root.Shape0.DepthSort();
drawOrder.reverse();
i = 0;
while (i < _root.drawOrder.length) {
_root["Shape" + _root.drawOrder[i][2]].Draw(_root.drawOrder[i][1]);
i++;
}
}
};
Frame 3
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
function Circle() {
xCir = new Array();
i = 0;
while (i < 2) {
ii = 0;
while (ii < seg) {
xCir.push(r * Math.cos((((ii * 360) / seg) * Math.PI) / 180));
ii++;
}
i++;
}
zCir = new Array();
i = 0;
while (i < 2) {
ii = 0;
while (ii < seg) {
zCir.push(r * Math.sin((((ii * 360) / seg) * Math.PI) / 180));
ii++;
}
i++;
}
yCir = new Array();
i = 0;
while (i < seg) {
yCir.push(-10);
i++;
}
ii = 0;
while (ii < seg) {
yCir.push(0);
ii++;
}
sCir = new Array();
i = 0;
while (i < seg) {
var _local1 = (i + seg) + 1;
if (_local1 == (2 * seg)) {
_local1 = seg;
}
var _local2 = i + 1;
if (_local2 == seg) {
_local2 = 0;
}
sCir.push([i, i + seg, _local1, _local2, i]);
i++;
}
}
function NewMenu() {
_root.name2000003.removeMovieClip();
_root.attachMovie("fill", "fill2000003", 2000003);
_root.attachMovie("GameMenu", "GameMenu1999999", 1999999);
}
function NewGame() {
_root.GameMenu1999999.removeMovieClip();
_root.attachMovie("fill", "fill1999999", 1999999);
Playing = true;
Refresh();
Score = 0;
zspeed = 10;
levelCounter = 0;
levelCounterB = 0;
Lives = 5;
_root.Shape0 = new PlayerSprite(_root.sPlayer.concat(), _root.xPlayer.concat(), _root.yPlayer.concat(), _root.zPlayer.concat(), 0, 15, 70, 11, 0, [C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C]);
depth = 100;
if (easy) {
CreateLevel(12);
} else {
CreateLevel(20);
}
}
function Remove(Name, nameDepth) {
delete _root[Name + nameDepth];
}
function Text(num) {
_root.Text0.removeMovieClip();
_root.attachMovie("Text", "Text0", 2000001);
_root.Text0.gotoAndStop(num);
_root.Text0._alpha = 0;
_root.Text0.up = true;
_root.Text0.onEnterFrame = function () {
if (this.up) {
this._alpha = this._alpha + 5;
} else {
this._alpha = this._alpha - 5;
}
if (this._alpha > 100) {
this.up = false;
}
if (this._alpha < 0) {
this.removeMovieClip();
}
};
}
var named = "lazy people";
var nameBool = false;
var A = 10092288;
var B = 16763904;
var C = 16711782;
var D = 16737792;
var G = 3407616;
var F = 3355647;
var Score = 0;
var highScore = 0;
var savefile = SharedObject.getLocal("geom");
if (savefile.data.highScore == undefined) {
highScore = 0;
} else {
highScore = savefile.data.highScore;
}
var insta = 1;
var instTimer = 0;
var Load = false;
var per = 500;
var depth = 0;
var timer = 10;
var timerb = 0;
var timerc = 0;
var perTimera = 40;
var perTimerb = 0;
var xspeed = 0;
var zspeed = 10;
var xposition = 0;
var playerDepth = 70;
var playerDead = false;
var instance = 1000;
var levelCounter = 0;
var levelCounterB = 0;
var Lives = 5;
var zdep = 0;
var Playing = false;
var easy = false;
var Paused = false;
var instructionsTimer = 0;
var EnemyArray = new Array([8, 0, 0], [6, 2, 0], [6, 4, 1], [4, 2, 3], [4, 4, 4], [0, 6, 6], [0, 12, 0], [0, 4, 8]);
var Level = new Array("E", "A", "B", "C", "E", "F", "D", "C", "A", "E", "B", "D", "A", "C", "E", "B", "A", "B", "C", "E", "D", "A", "D", "B", "E");
var xTri = new Array(0, 5, 0, -5);
var yTri = new Array(-5, 5, 5, 5);
var zTri = new Array(0, 0, -5, 0);
var sTri = new Array([0, 1, 2, 0], [0, 2, 3, 0]);
var xCube = new Array(-5, -5, 5, 5, -5, -5, 5, 5);
var yCube = new Array(5, -5, -5, 5, 5, -5, -5, 5);
var zCube = new Array(-5, -5, -5, -5, 5.1, 5, 5, 5.1);
var sCube = new Array([4, 5, 1, 0, 4], [7, 3, 2, 6, 7], [1, 2, 3, 0, 1], [5, 6, 2, 1, 5]);
var xCubeE = new Array(-2, -2, 2, 2, -2, -2, 2, 2);
var yCubeE = new Array(2, -2, -2, 2, 2, -2, -2, 2);
var zCubeE = new Array(-2, -2, -2, -2, 2.1, 2, 2, 2.1);
var sCubeE = new Array([4, 5, 1, 0, 4], [7, 3, 2, 6, 7], [1, 2, 3, 0, 1], [5, 6, 2, 1, 5]);
var xOct = new Array(-5, -2, 2, 5, 5, 2, -2, -5, 5, 5, 2, -2, -5, -5);
var yOct = new Array(-3, -3, -3, -3, -3, -3, -3, -3, 5, 5, 5, 5, 5, 5);
var zOct = new Array(2, 5, 5, 2, -2, -5, -5, -2, 2, -2, -5, -5, -2, 2);
var sOct = new Array([0, 1, 2, 3, 7, 0], [7, 3, 4, 5, 6, 7], [3, 8, 9, 4, 3], [4, 9, 10, 5, 4], [5, 10, 11, 6, 5], [6, 11, 12, 7, 6], [7, 12, 13, 0, 7]);
var xSPyr = new Array(0, -5, 5, 5, -5);
var ySPyr = new Array(5, -5, -5, 5, 5);
var zSPyr = new Array(-5, 5, 5, 5, 5);
var sSPyr = new Array([1, 2, 0, 1], [2, 3, 0, 2], [1, 0, 4, 1]);
var xSpin = new Array(0, -7, -7, -7, 7, 7, 7);
var ySpin = new Array(0, -5, 5, 5, -5, 5, 5);
var zSpin = new Array(0, 0, 7, -7, 0, 7, -7);
var sSpin = new Array([1, 0, 3, 1], [1, 3, 2, 1], [1, 2, 0, 1], [3, 0, 2, 3], [0, 4, 6, 0], [4, 0, 5, 4], [4, 5, 6, 4], [6, 5, 0, 6]);
var xPlayer = new Array(0, 2, 0, -2, 0, 6, 8, 6, 6, -6, -8, -6, -6);
var yPlayer = new Array(0, 0, 0, 0, -3, 0, 0, 0, -2, 0, 0, 0, -2);
var zPlayer = new Array(5, 0, -10, 0, -2, 15, 0, -5, -2, 15, 0, -5, -2);
var sPlayer = new Array([0, 1, 4, 0], [0, 4, 3, 0], [4, 1, 2, 4], [3, 4, 2, 3], [0, 3, 1, 0], [1, 3, 2, 1], [5, 6, 8, 5], [1, 5, 8, 1], [8, 6, 7, 8], [1, 8, 7, 1], [5, 1, 6, 5], [6, 1, 7, 6], [9, 3, 12, 9], [9, 12, 10, 9], [12, 3, 11, 12], [10, 12, 11, 10], [9, 10, 3, 9], [3, 10, 11, 3]);
var xShield = new Array(-10, -7, 7, 10, 10, 7, -7, -10);
var yShield = new Array(-2, -3, -3, -2, 2, 3, 3, 2);
var zShield = new Array(0, 0, 0, 0, 0, 0, 0, 0);
var sShield = new Array([0, 1, 2, 3, 0], [0, 3, 4, 7, 0], [7, 4, 5, 6, 7]);
var xPow = new Array(-5, 0, 5, 0, 5, 0, -5);
var yPow = new Array(-15, -15, -15, 0, 5, 5, 5);
var zPow = new Array(-2, 5, -2, 0, 2, -5, 2);
var sPow = new Array([0, 2, 3, 0], [2, 1, 3, 2], [0, 3, 1, 0], [3, 4, 5, 3], [3, 5, 6, 3], [3, 6, 4, 3], [0, 1, 2, 0]);
var xPowb = new Array(-5, -2.5, 2.5, 5, -5, -2.5, 2.5, 5);
var yPowb = new Array(0, -15, -15, 0, 0, -15, -15, 0);
var zPowb = new Array(-5, -2.5, -2.5, -5, 5, 2.5, 2.5, 5);
var sPowb = new Array([4, 5, 1, 0, 4], [7, 3, 2, 6, 7], [1, 2, 3, 0, 1], [5, 6, 2, 1, 5], [6, 5, 4, 7, 6]);
var xShoot = new Array(0, 0, 5, -5, 3, 0, -3, 3, 0, -3, 0);
var yShoot = new Array(-2, 5, 5, 5, -4, -6, -4, -4, -6, -4, -2);
var zShoot = new Array(0, 5, -3, -3, 0, 0, 0, 8, 8, 8, 8);
var sShoot = new Array([0, 1, 2, 0], [0, 2, 3, 0], [0, 3, 1, 0], [5, 4, 0, 6, 5], [5, 8, 7, 4, 5], [8, 5, 6, 9, 8], [7, 10, 0, 4, 7], [9, 6, 0, 10, 9], [8, 9, 10, 7, 8]);
var xChase = new Array(0, 4, 8, 4, -4, -8, -4);
var yChase = new Array(5, -3, 5, 5, -3, 5, 5);
var zChase = new Array(0, 2, 0, -8, 2, 0, -8);
var sChase = new Array([1, 2, 3, 1], [1, 3, 0, 1], [1, 0, 2, 1], [4, 0, 6, 4], [4, 6, 5, 4], [4, 5, 0, 4]);
var xBull = new Array(-2, 2, 2, -2, -2, 2, 2, -2);
var yBull = new Array(-2, -2, 2, 2, -2, -2, 2, 2);
var zBull = new Array(-2, -2, -2, -2, 2, 2, 2, 2);
var sBull = new Array([0, 1, 2, 3, 0], [4, 0, 3, 7, 4], [5, 4, 7, 6, 5], [1, 5, 6, 2, 1], [5, 1, 0, 4, 5]);
var r = 400;
var seg = 30;
var colCirA = new Array();
i = 0;
while (i < seg) {
colCirA.push(C);
i++;
}
var colCirB = new Array();
i = 0;
while (i < seg) {
colCirB.push(F);
i++;
}
var colCirC = new Array();
i = 0;
while (i < seg) {
colCirC.push(F);
i++;
}
Refresh = function () {
timer = 30;
perTimera = 40;
perTimerb = 0;
zdep = 0;
};
Refreshb = function () {
zdep = 0;
depth = 100;
per = 500;
timer = 30;
timerb = 0;
timerc = 0;
perTimera = 40;
perTimerb = 0;
};
Refresh();
CreateLevel = function (Z) {
xdep = 0;
zdep = 0;
ydep = 0;
Text(20);
if (Lives > 0) {
if (Level[levelCounter] == "A") {
_root.Level0 = new DodgeLevel(Z);
} else if (Level[levelCounter] == "B") {
_root.Level0 = new ShapeLevel(Z);
} else if (Level[levelCounter] == "C") {
_root.Level0 = new DodgeBLevel(Z);
} else if (Level[levelCounter] == "D") {
_root.Level0 = new InvaderLevel(Z);
} else if (Level[levelCounter] == "E") {
_root.Level0 = new FlyLevel(Z);
levelCounterB++;
} else if (Level[levelCounter] == "F") {
_root.Level0 = new DodgeLevelHigh(Z);
} else {
_root.Level0 = new DodgeLevel(Z);
}
} else {
if (Score > highScore) {
savefile.data.highScore = Score;
savefile.flush();
highScore = Score;
}
bXlnYW1lX25hbWVfdmFyaWFibGU = named;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = Score;
__rankz_send__("MjI5N2olZSVhJW4lcw==", "c3ZWWXBuWmg=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
Text(9);
Remove("Shape", 0);
Remove("Level", 0);
Playing = false;
_root.attachMovie("GameMenu", "GameMenu1999999", 1999999);
_root.Level0 = new MenuLevel(10);
Score = Score - 150;
}
};
_root.attachMovie("HUD", "HUD2000000", 2000000, {_x:-300, _y:-150});
_root.createEmptyMovieClip("kittens", 2000002);
_root.attachMovie("name", "name2000003", 2000003, {_x:460});
_root.Level0 = new MenuLevel(10);
HighScore = function () {
getURL ("http://rankz.armorbot.com/geom", "_blank");
};
Instructions = function () {
_root.GameMenu1999999.removeMovieClip();
_root.attachMovie("InstructionsPage", "InstructionsPage1999999", 1999999, {_x:500});
};
Instructionsb = function () {
_root.InstructionsPage1999999.removeMovieClip();
_root.attachMovie("InstructionsPage2", "InstructionsPage21999999", 1999999, {_x:500});
};
Instructionsc = function () {
_root.InstructionsPage21999999.removeMovieClip();
_root.attachMovie("InstructionsPage4", "InstructionsPage41999999", 1999999, {_x:500});
};
Instructionsd = function () {
_root.InstructionsPage41999999.removeMovieClip();
_root.attachMovie("InstructionsPage3", "InstructionsPage31999999", 1999999, {_x:500});
};
ExitInstructions = function () {
_root.InstructionsPage1999999.removeMovieClip();
_root.InstructionsPage21999999.removeMovieClip();
_root.InstructionsPage31999999.removeMovieClip();
_root.attachMovie("GameMenu", "GameMenu1999999", 1999999);
};
Scores = function () {
if ((Lives > 0) && (Playing)) {
instance = 1000;
Score = Score + zspeed;
}
Score = Math.round(Score);
if (timerb > 0) {
per = per - 10;
}
if ((timerc <= 20) && (timerc > 0)) {
per = per + 10;
}
timerb--;
timerc--;
};
Perspective = function () {
if (per == 500) {
timerb = 20;
timerc = 100;
}
};
Power = function () {
if ((timer == 2) && (Math.round(Math.random() * 5) == 0)) {
depth++;
_root["Shape" + (depth * 100)] = new PowerUp(_root.sPow.concat(), _root.xPow.concat(), _root.yPow.concat(), _root.zPow.concat(), (Math.round(Math.random() * 6) * 15) - 45, 15, 500, 5, _root.depth * 100, [C, C, C, C, C, C, C], Math.round(Math.random() * 4));
}
};
GetName = function () {
named = _root.name2000003.namebox.text;
nameBool = true;
};
var ListenerObject = new Object();
ListenerObject.onKeyDown = function () {
if (Playing) {
if ((Key.getCode() == 80) && (!Paused)) {
Paused = true;
Text(31);
} else if ((Key.getCode() == 80) && (Paused)) {
Paused = false;
Text(32);
}
}
};
AwsomePause = function () {
if (!Paused) {
getURL ("http://www.awesomeyay.com/", "_blank");
if (Playing) {
_root.attachMovie("unpause", "unpause2000008", 2000008, {_x:400});
Paused = true;
}
} else if (Paused) {
Paused = false;
}
};
Key.addListener(ListenerObject);
onEnterFrame = function () {
if (!Paused) {
_root.Level0.Frame();
}
};
Instance of Symbol 4 MovieClip in Symbol 13 MovieClip [Preloader] Frame 1
onClipEvent (enterFrame) {
_xscale = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_xscale == 100) {
_alpha = 0;
}
}
Symbol 16 MovieClip Frame 1
var up = true;
onEnterFrame = function () {
if (_alpha < 60) {
up = true;
}
if (_alpha > 100) {
up = false;
}
if (up) {
_alpha = (_alpha+1);
} else {
_alpha = (_alpha-1);
}
};
Symbol 19 MovieClip Frame 1
var up = true;
onEnterFrame = function () {
if (_alpha < 60) {
up = true;
}
if (_alpha > 100) {
up = false;
}
if (up) {
_alpha = (_alpha+1);
} else {
_alpha = (_alpha-1);
}
};
Symbol 20 MovieClip [sound] Frame 1
var i = 1;
_x = 270;
_y = -140;
gotoAndStop(i);
_alpha = 0;
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = (_alpha + 3);
}
};
onPress = function () {
if ((_root.getBytesLoaded() / _root.getBytesTotal()) == 1) {
i++;
if (i > 2) {
i = 1;
}
if (i == 1) {
_root.music.gotoAndStop(1);
} else if (i == 2) {
_root.music.gotoAndStop(2);
stopAllSounds();
}
_root.sound2000002.gotoAndStop(i);
}
};
Symbol 24 MovieClip Frame 1
var up = true;
onEnterFrame = function () {
if (_alpha < 60) {
up = true;
}
if (_alpha > 100) {
up = false;
}
if (up) {
_alpha = (_alpha+1);
} else {
_alpha = (_alpha-1);
}
};
Symbol 53 MovieClip Frame 70
gotoAndPlay (1);
_parent._parent.play();
Symbol 56 Button
on (release) {
_root.AwsomePause();
}
Symbol 57 MovieClip Frame 1
_alpha = 0;
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = (_alpha + 3);
}
};
Symbol 115 MovieClip Frame 1
var up = true;
onEnterFrame = function () {
if (_alpha < 60) {
up = true;
}
if (_alpha > 100) {
up = false;
}
if (up) {
_alpha = (_alpha+1);
} else {
_alpha = (_alpha-1);
}
};
Symbol 119 MovieClip Frame 1
var timera = 0;
var timerb = 20;
var clicked = false;
_root.out = false;
onPress = function () {
if (!_root.out) {
clicked = true;
}
};
onEnterFrame = function () {
if (((timera > 0) && (!clicked)) && (!_root.out)) {
timera--;
} else if (((timerb > 0) && (!clicked)) && (!_root.out)) {
_x = (_x + timerb);
timerb--;
} else if ((clicked && (timerb < 30)) && (!_root.out)) {
_root.out = true;
}
if (_root.out) {
_x = (_x - timerb);
timerb++;
}
if ((timerb == 29) && (clicked)) {
_root.Paused = false;
_root.Level0.Die();
}
};
Symbol 122 MovieClip Frame 1
var timera = 10;
var timerb = 20;
var clicked = false;
_root.out = false;
onPress = function () {
if (!_root.out) {
clicked = true;
}
};
onEnterFrame = function () {
if (((timera > 0) && (!clicked)) && (!_root.out)) {
timera--;
} else if (((timerb > 0) && (!clicked)) && (!_root.out)) {
_x = (_x + timerb);
timerb--;
} else if ((clicked && (timerb < 30)) && (!_root.out)) {
_root.out = true;
}
if (_root.out) {
_x = (_x - timerb);
timerb++;
}
if ((timerb == 29) && (clicked)) {
_root.Instructions();
}
};
Symbol 125 MovieClip Frame 1
var timera = 20;
var timerb = 20;
var clicked = false;
_root.out = false;
onRelease = function () {
_root.HighScore();
};
onEnterFrame = function () {
if (((timera > 0) && (!clicked)) && (!_root.out)) {
timera--;
} else if (((timerb > 0) && (!clicked)) && (!_root.out)) {
_x = (_x + timerb);
timerb--;
} else if ((clicked && (timerb < 30)) && (!_root.out)) {
_root.out = true;
}
if (_root.out) {
_x = (_x - timerb);
timerb++;
}
};
Symbol 128 MovieClip Frame 1
var up = true;
onEnterFrame = function () {
if (_alpha < 60) {
up = true;
}
if (_alpha > 100) {
up = false;
}
if (up) {
_alpha = (_alpha+1);
} else {
_alpha = (_alpha-1);
}
};
Symbol 132 MovieClip Frame 1
var timera = 20;
var timerb = 25;
_root.out = false;
onEnterFrame = function () {
if ((timera > 0) && (!_root.out)) {
timera--;
} else if ((timerb > 0) && (!_root.out)) {
_x = (_x - timerb);
timerb--;
}
if (_root.out) {
_x = (_x + timerb);
timerb++;
}
};
Symbol 134 MovieClip Frame 1
var up = true;
onEnterFrame = function () {
if (_alpha < 60) {
up = true;
}
if (_alpha > 100) {
up = false;
}
if (up) {
_alpha = (_alpha+1);
} else {
_alpha = (_alpha-1);
}
};
Symbol 139 MovieClip Frame 1
_root.easy = true;
onPress = function () {
_root.easy = true;
};
onEnterFrame = function () {
if (!_root.easy) {
if (_alpha > 50) {
_alpha = (_alpha - 2);
}
} else if (_alpha < 100) {
_alpha = (_alpha + 4);
}
};
Symbol 142 MovieClip Frame 1
onPress = function () {
_root.easy = false;
};
onEnterFrame = function () {
if (_root.easy) {
if (_alpha > 50) {
_alpha = (_alpha - 2);
}
} else if (_alpha < 100) {
_alpha = (_alpha + 4);
}
};
Symbol 147 MovieClip Frame 19
stop();
Symbol 152 MovieClip Frame 6
stop();
Symbol 154 Button
on (release) {
getURL ("http://www.awesomeyay.com/", "_blank");
}
Symbol 155 MovieClip Frame 1
var timera = 20;
var timerb = 16;
_root.out = false;
onEnterFrame = function () {
if ((timera > 0) && (!_root.out)) {
timera--;
} else if ((timerb > 0) && (!_root.out)) {
_y = (_y - timerb);
timerb--;
}
if (_root.out) {
_y = (_y + timerb);
timerb++;
}
};
Symbol 158 MovieClip Frame 1
var timera = 30;
var timerb = 20;
var clicked = false;
_root.out = false;
onRelease = function () {
getURL ("http://www.awesomeyay.com/", "_blank");
};
onEnterFrame = function () {
if (((timera > 0) && (!clicked)) && (!_root.out)) {
timera--;
} else if (((timerb > 0) && (!clicked)) && (!_root.out)) {
_x = (_x + timerb);
timerb--;
} else if ((clicked && (timerb < 30)) && (!_root.out)) {
_root.out = true;
}
if (_root.out) {
_x = (_x - timerb);
timerb++;
}
};
Symbol 162 MovieClip Frame 1
var up = true;
onEnterFrame = function () {
if (_alpha < 60) {
up = true;
}
if (_alpha > 100) {
up = false;
}
if (up) {
_alpha = (_alpha+1);
} else {
_alpha = (_alpha-1);
}
};
Symbol 164 MovieClip Frame 1
_alpha = 80;
Symbol 167 MovieClip Frame 1
var up = true;
onEnterFrame = function () {
if (_alpha < 60) {
up = true;
}
if (_alpha > 100) {
up = false;
}
if (up) {
_alpha = (_alpha+1);
} else {
_alpha = (_alpha-1);
}
};
Symbol 182 MovieClip Frame 1
var up = true;
onEnterFrame = function () {
if (_alpha < 60) {
up = true;
}
if (_alpha > 100) {
up = false;
}
if (up) {
_alpha = (_alpha+1);
} else {
_alpha = (_alpha-1);
}
};
Symbol 183 MovieClip Frame 1
onPress = function () {
_root.instructionsTimer = 30;
_root.out = true;
};
Symbol 186 MovieClip Frame 1
var up = true;
onEnterFrame = function () {
if (_alpha < 60) {
up = true;
}
if (_alpha > 100) {
up = false;
}
if (up) {
_alpha = (_alpha+1);
} else {
_alpha = (_alpha-1);
}
};
Symbol 188 MovieClip Frame 1
onPress = function () {
_root.instructionsTimer = 30;
};
Symbol 189 MovieClip [InstructionsPage] Frame 1
var timera = 30;
_root.out = false;
onEnterFrame = function () {
if ((timera > 0) && (_root.instructionsTimer == 0)) {
_x = (_x - timera);
timera--;
} else if (_root.instructionsTimer > 0) {
_x = (_x + _root.instructionsTimer);
_root.instructionsTimer--;
if ((_root.instructionsTimer == 0) && (!_root.out)) {
_root.Instructionsb();
} else if ((_root.instructionsTimer == 0) && (_root.out)) {
_root.ExitInstructions();
}
}
};
Symbol 195 MovieClip Frame 1
onPress = function () {
_root.instructionsTimer = 30;
};
Symbol 196 MovieClip [InstructionsPage2] Frame 1
var timera = 30;
_root.out = false;
onEnterFrame = function () {
if ((timera > 0) && (_root.instructionsTimer == 0)) {
_x = (_x - timera);
timera--;
} else if (_root.instructionsTimer > 0) {
_x = (_x + _root.instructionsTimer);
_root.instructionsTimer--;
if ((_root.instructionsTimer == 0) && (!_root.out)) {
_root.Instructionsc();
} else if ((_root.instructionsTimer == 0) && (_root.out)) {
_root.ExitInstructions();
}
}
};
Symbol 199 MovieClip [InstructionsPage3] Frame 1
var timera = 30;
_root.out = false;
onEnterFrame = function () {
if ((timera > 0) && (_root.instructionsTimer == 0)) {
_x = (_x - timera);
timera--;
} else if (_root.instructionsTimer > 0) {
_x = (_x + _root.instructionsTimer);
_root.instructionsTimer--;
if ((_root.instructionsTimer == 0) && (!_root.out)) {
_root.Instructions();
} else if ((_root.instructionsTimer == 0) && (_root.out)) {
_root.ExitInstructions();
}
}
};
Symbol 204 MovieClip Frame 1
onPress = function () {
if (!_root.Enter) {
_root.GetName();
}
};
Symbol 205 MovieClip [name] Frame 1
var timera = 30;
_root.Enter = false;
onEnterFrame = function () {
if ((timera > 0) && (!_root.nameBool)) {
_x = (_x - timera);
timera--;
} else if (_root.nameBool) {
_x = (_x + timera);
timera++;
if (timera == 30) {
_root.NewMenu();
}
}
if (Key.isDown(13) && (!_root.Enter)) {
_root.GetName();
}
};
Symbol 227 MovieClip [InstructionsPage4] Frame 1
var timera = 30;
_root.out = false;
onEnterFrame = function () {
if ((timera > 0) && (_root.instructionsTimer == 0)) {
_x = (_x - timera);
timera--;
} else if (_root.instructionsTimer > 0) {
_x = (_x + _root.instructionsTimer);
_root.instructionsTimer--;
if ((_root.instructionsTimer == 0) && (!_root.out)) {
_root.Instructionsd();
} else if ((_root.instructionsTimer == 0) && (_root.out)) {
_root.ExitInstructions();
}
}
};
Instance of Symbol 229 MovieClip in Symbol 230 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.countTimer < 20) {
_alpha = (_alpha - 5);
}
}
on (release) {
getURL ("http://www.awesomeyay.com/", "_blank");
}
Symbol 236 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 20
stop();
Symbol 243 MovieClip Frame 70
stop();
_parent._parent.play();
Symbol 255 MovieClip Frame 70
gotoAndPlay (30);
_parent._parent.play();
Symbol 256 MovieClip Frame 1
_root.countTimer = _root.countTimer + 40;
Symbol 256 MovieClip Frame 110
gotoAndPlay (10);
_parent._parent.play();
Symbol 257 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 2
stop();
Symbol 257 MovieClip Frame 3
stop();
Symbol 257 MovieClip Frame 4
stop();
Symbol 258 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.AWESOMEYAY.com", "_blank");
};
Symbol 258 MovieClip Frame 40
stop();
Instance of Symbol 257 MovieClip "ay" in Symbol 258 MovieClip Frame 40
onClipEvent (load) {
asd = random(5);
this.gotoAndStop(asd);
}
Symbol 258 MovieClip Frame 69
_root.play();
Symbol 262 MovieClip [unpause] Frame 1
var timer = 26;
onPress = function () {
_root.Paused = false;
};
onEnterFrame = function () {
if (_root.Paused) {
if (timer > 0) {
_x = (_x - timer);
timer--;
}
} else {
timer++;
_x = (_x + timer);
if (_x > 400) {
_root.createEmptyMovieClip("kitties", 2000008);
}
}
};
Symbol 268 MovieClip [theyarrasidlink] Frame 1
_alpha = 0;
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
};
onRelease = function () {
getURL ("http://disarray-yarrasid.newgrounds.com/", "_blank");
};
Symbol 274 MovieClip [JFPS] Frame 1
#initclip 37
Object.registerClass("JFPS", com.j3r.components.JFPS);
#endinitclip
Symbol 277 MovieClip [__Packages.SpriteThree] Frame 0
class SpriteThree
{
var depth, xposition, yposition, zposition, i, holderb, ii, wide, holder;
function SpriteThree (S, X, Y, Z, xPo, yPo, zPo, instance, col) {
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
depth = instance;
xposition = xPo;
yposition = yPo;
zposition = zPo;
color = col;
i = 0;
while (i < xposit.length) {
yposit[i] = yposit[i] + yPo;
xposit[i] = xposit[i] + xPo;
zposit[i] = zposit[i] + zPo;
i++;
}
}
function toHex(r, g, b) {
if (b > 255) {
b = 255;
}
return(((r << 16) | (g << 8)) | b);
}
function GetColor(Void) {
holderb = 0;
ii = 0;
while (ii < (shape[i].length - 1)) {
holderb = holderb + zposit[shape[i][ii]];
ii++;
}
holderb = holderb / (ii + 1);
}
function Draw(Void) {
if (((zposition > 0) && (Math.abs((_root.per / zposition) * xposition) < (300 + ((_root.per / zposition) * wide)))) && (Math.abs((_root.per / zposition) * yposition) < (150 + ((_root.per / zposition) * wide)))) {
i = 0;
while (i < shape.length) {
_root["cube" + (depth + i)].removeMovieClip();
_root.instance++;
_root.createEmptyMovieClip("cube" + (depth + i), _root.instance);
holder = _root.per / zposit[shape[i][0]];
_root["cube" + (depth + i)].lineStyle(0, color, 0);
GetColor();
_root["cube" + (depth + i)].beginFill(Math.round(toHex(200, 0, 50 + (10000 / holderb))), 100);
_root["cube" + (depth + i)].moveTo(xposit[shape[i][0]] * holder, yposit[shape[i][0]] * holder);
ii = 0;
while (ii < shape[i].length) {
holder = _root.per / zposit[shape[i][ii]];
_root["cube" + (depth + i)].lineTo(xposit[shape[i][ii]] * holder, yposit[shape[i][ii]] * holder);
ii++;
}
_root["cube" + (depth + i)].endFill();
i++;
}
} else {
i = 0;
while (i < shape.length) {
_root["cube" + (depth + i)].removeMovieClip();
i++;
}
}
}
function Move(xspeed, yspeed, zspeed) {
i = 0;
while (i < xposit.length) {
xposit[i] = xposit[i] - xspeed;
yposit[i] = yposit[i] - yspeed;
zposit[i] = zposit[i] - zspeed;
i++;
}
xposition = xposition - xspeed;
yposition = yposition - yspeed;
zposition = zposition - zspeed;
}
function DepthSort(Void) {
_root.drawOrder.push([Math.sqrt((Math.pow(zposition, 2) + Math.pow(xposition, 2)) + Math.pow(yposition, 2)), depth]);
}
function Die(Void) {
var _local3 = 0;
while (_local3 < shape.length) {
_root["cube" + (depth + _local3)].removeMovieClip();
_local3++;
}
_root.Remove("Shape", depth);
}
var xposit = new Array();
var yposit = new Array();
var zposit = new Array();
var shape = new Array();
var color = new Array();
}
Symbol 278 MovieClip [__Packages.FormThree] Frame 0
class FormThree extends SpriteThree
{
var shape, xposit, yposit, zposit, color, wide, i, xposition, yposition, zposition, depth, sin, cos, holder;
function FormThree (S, X, Y, Z, xPo, yPo, zPo, W, instance, col) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
color = col;
wide = W;
i = 0;
while (i < xposit.length) {
xposit[i] = xposit[i] + xPo;
yposit[i] = yposit[i] + yPo;
zposit[i] = zposit[i] + zPo;
i++;
}
xposition = xPo;
yposition = yPo;
zposition = zPo;
depth = instance;
}
function RotateX(ypo, zpo, rotate) {
sin = Math.sin(rotate * rotConstant);
cos = Math.cos(rotate * rotConstant);
holder = (((yposition + ypo) * cos) - ((zposition + zpo) * sin)) - ypo;
zposition = (((yposition + ypo) * sin) + ((zposition + zpo) * cos)) - zpo;
yposition = holder;
i = 0;
while (i < xposit.length) {
holder = (((yposit[i] + ypo) * cos) - ((zposit[i] + zpo) * sin)) - ypo;
zposit[i] = (((yposit[i] + ypo) * sin) + ((zposit[i] + zpo) * cos)) - zpo;
yposit[i] = holder;
i++;
}
}
function RotateY(xpo, zpo, rotate) {
sin = Math.sin(rotate * rotConstant);
cos = Math.cos(rotate * rotConstant);
holder = (((zposition + zpo) * cos) - ((xposition + xpo) * sin)) - zpo;
xposition = (((zposition + zpo) * sin) + ((xposition + xpo) * cos)) - xpo;
zposition = holder;
i = 0;
while (i < xposit.length) {
holder = (((zposit[i] + zpo) * cos) - ((xposit[i] + xpo) * sin)) - zpo;
xposit[i] = (((zposit[i] + zpo) * sin) + ((xposit[i] + xpo) * cos)) - xpo;
zposit[i] = holder;
i++;
}
}
function RotateZ(xpo, ypo, rotate) {
sin = Math.sin(rotate * rotConstant);
cos = Math.cos(rotate * rotConstant);
holder = (((xposition + xpo) * cos) - ((yposition + ypo) * sin)) - xpo;
yposition = (((xposition + xpo) * sin) + ((yposition + ypo) * cos)) - ypo;
xposition = holder;
i = 0;
while (i < xposit.length) {
holder = (((xposit[i] + xpo) * cos) - ((yposit[i] + ypo) * sin)) - xpo;
yposit[i] = (((xposit[i] + xpo) * sin) + ((yposit[i] + ypo) * cos)) - ypo;
xposit[i] = holder;
i++;
}
}
var rotConstant = (Math.PI/180);
var xspeed = 0;
var yspeed = 0;
var zspeed = 0;
}
Symbol 279 MovieClip [__Packages.FormThreeSort] Frame 0
class FormThreeSort extends FormThree
{
var shape, xposit, yposit, zposit, color, wide, i, xposition, yposition, zposition, depth, zdep, holderc, v1x, xdep, v1z, v1y, ydep, v2x, v2z, v2y, cx, cy, cz, vclength, dot, red, grn, blu, holder, ii, colr;
function FormThreeSort (S, X, Y, Z, xPo, yPo, zPo, W, instance, col) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
color = col;
wide = W;
i = 0;
while (i < xposit.length) {
xposit[i] = xposit[i] + xPo;
yposit[i] = yposit[i] + yPo;
zposit[i] = zposit[i] + zPo;
i++;
}
xposition = xPo;
yposition = yPo;
zposition = zPo;
depth = instance;
}
function Explode() {
i = 0;
while (i < 4) {
_root.depth++;
_root["Shape" + (_root.depth * 100)] = new Exp(_root.sCubeE.concat(), _root.xCubeE.concat(), _root.yCubeE.concat(), _root.zCubeE.concat(), xposition, yposition, zposition, 2, _root.depth * 100, [A, A, A, A]);
i++;
}
}
function Cull(col) {
var _local5 = _root.per / (zposit[shape[holderc][0]] - zdep);
var _local3 = _root.per / (zposit[shape[holderc][1]] - zdep);
var _local4 = _root.per / (zposit[shape[holderc][2]] - zdep);
v1x = ((xposit[shape[holderc][0]] - xdep) * _local5) - ((xposit[shape[holderc][1]] - xdep) * _local3);
v1z = ((zposit[shape[holderc][0]] - zdep) * 3) - ((zposit[shape[holderc][1]] - zdep) * 3);
v1y = ((yposit[shape[holderc][0]] - ydep) * _local5) - ((yposit[shape[holderc][1]] - ydep) * _local3);
v2x = ((xposit[shape[holderc][1]] - xdep) * _local3) - ((xposit[shape[holderc][2]] - xdep) * _local4);
v2z = ((zposit[shape[holderc][1]] - zdep) * 3) - ((zposit[shape[holderc][2]] - zdep) * 3);
v2y = ((yposit[shape[holderc][1]] - ydep) * _local3) - ((yposit[shape[holderc][2]] - ydep) * _local4);
cx = (v1y * v2z) - (v1z * v2y);
cy = (v1z * v2x) - (v1x * v2z);
cz = (v1x * v2y) - (v1y * v2x);
vclength = Math.sqrt(((cx * cx) + (cz * cz)) + (cy * cy));
cx = cx / vclength;
cy = cy / vclength;
cz = cz / vclength;
dot = ((cz * 1) + (cy * 0)) + (cx * 0);
dot = dot * 0.7;
if (back && (dot < 0)) {
dot = dot * -1;
}
red = col >> 16;
grn = (col - (red << 16)) >> 8;
blu = (col - (red << 16)) - (grn << 8);
red = Math.round(red * (dot + 0.3));
grn = Math.round(grn * (dot + 0.3));
blu = Math.round(blu * (dot + 0.3));
return(((red << 16) | (grn << 8)) | blu);
}
function DepthSort() {
zdep = _root.zdep;
xdep = _root.xdep;
ydep = _root.ydep;
i = 0;
while (i < shape.length) {
_root["cube" + (depth + i)].removeMovieClip();
i++;
}
if ((((zposition - zdep) > 0) && (Math.abs((_root.per / (zposition - zdep)) * (xposition - xdep)) < (300 + ((_root.per / (zposition - zdep)) * wide)))) && (Math.abs((_root.per / (zposition - zdep)) * (yposition - ydep)) < (150 + ((_root.per / (zposition - zdep)) * wide)))) {
i = 0;
while (i < shape.length) {
holder = -1000000;
ii = 0;
while (ii < (shape[i].length - 1)) {
if ((zposit[shape[i][ii]] - zdep) > holder) {
holder = zposit[shape[i][ii]] - zdep;
}
ii++;
}
_root.drawOrder.push([holder, i, depth]);
i++;
}
}
i = 0;
}
function Draw(num) {
holderc = num;
if ((zposit[shape[holderc][0]] - zdep) > (wide + 5)) {
holder = _root.per / (zposit[shape[holderc][0]] - zdep);
colr = Cull(color[holderc]);
if (dot >= 0) {
_root.instance++;
_root.createEmptyMovieClip("cube" + (depth + i), _root.instance);
_root["cube" + (depth + i)].lineStyle(0, 0, 0);
_root["cube" + (depth + i)].beginFill(colr, 100);
_root["cube" + (depth + i)].moveTo((xposit[shape[holderc][0]] - xdep) * holder, (yposit[shape[holderc][0]] - ydep) * holder);
ii = 0;
while (ii < shape[holderc].length) {
holder = _root.per / (zposit[shape[holderc][ii]] - zdep);
_root["cube" + (depth + i)].lineTo((xposit[shape[holderc][ii]] - xdep) * holder, (yposit[shape[holderc][ii]] - ydep) * holder);
ii++;
}
_root["cube" + (depth + i)].endFill();
}
i++;
}
}
var Load = new Array();
var Loadb = new Array();
var back = false;
var A = 16711782;
var Score = 100;
}
Symbol 280 MovieClip [__Packages.Exp] Frame 0
class Exp extends FormThreeSort
{
var shape, xposit, yposit, zposit, color, wide, xspeed, yspeed, i, xposition, yposition, zposition, depth, Move, Die;
function Exp (S, X, Y, Z, xPo, yPo, zPo, W, instance, col) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
color = col;
wide = W;
xspeed = (Math.random() * 10) - 5;
yspeed = Math.random() * 5;
i = 0;
while (i < xposit.length) {
xposit[i] = xposit[i] + xPo;
yposit[i] = yposit[i] + yPo;
zposit[i] = zposit[i] + zPo;
i++;
}
xposition = xPo;
yposition = yPo;
zposition = zPo;
depth = instance;
}
function Frame(Void) {
Move(xspeed, yspeed, _root.zspeed + 2);
timer--;
if (((zposition < (wide + 10)) && (!(_root.Level[_root.levelCounter] === "E"))) or (timer < 1)) {
Die();
}
}
var timer = 30;
}
Symbol 281 MovieClip [__Packages.Enemy] Frame 0
class Enemy extends FormThreeSort
{
var shape, xposit, yposit, zposit, color, wide, A, i, xposition, yposition, zposition, depth, sin, rotConstant, cos, holder, Die, Explode;
function Enemy (S, X, Y, Z, xPo, yPo, zPo, W, instance, col) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
color = col;
wide = W;
A = color[0];
i = 0;
while (i < xposit.length) {
xposit[i] = xposit[i] + xPo;
yposit[i] = yposit[i] + yPo;
zposit[i] = zposit[i] + zPo;
i++;
}
xposition = xPo;
yposition = yPo;
zposition = zPo;
depth = instance;
}
function RotateXC(ypo, zpo, rotate) {
sin = Math.sin(rotate * rotConstant);
cos = Math.cos(rotate * rotConstant);
holder = (((yposition + ypo) * cos) - ((zposition + zpo) * sin)) - ypo;
zposition = (((yposition + ypo) * sin) + ((zposition + zpo) * cos)) - zpo;
yposition = holder;
holder = (yspeed * cos) - (zspeed * sin);
zspeed = (yspeed * sin) + (zspeed * cos);
yspeed = holder;
i = 0;
while (i < xposit.length) {
holder = (((yposit[i] + ypo) * cos) - ((zposit[i] + zpo) * sin)) - ypo;
zposit[i] = (((yposit[i] + ypo) * sin) + ((zposit[i] + zpo) * cos)) - zpo;
yposit[i] = holder;
i++;
}
}
function RotateYC(xpo, zpo, rotate) {
sin = Math.sin(rotate * rotConstant);
cos = Math.cos(rotate * rotConstant);
holder = (((zposition + zpo) * cos) - ((xposition + xpo) * sin)) - zpo;
xposition = (((zposition + zpo) * sin) + ((xposition + xpo) * cos)) - xpo;
zposition = holder;
holder = (zspeed * cos) - (xspeed * sin);
xspeed = (zspeed * sin) + (xspeed * cos);
zspeed = holder;
i = 0;
while (i < xposit.length) {
holder = (((zposit[i] + zpo) * cos) - ((xposit[i] + xpo) * sin)) - zpo;
xposit[i] = (((zposit[i] + zpo) * sin) + ((xposit[i] + xpo) * cos)) - xpo;
zposit[i] = holder;
i++;
}
}
function RotateZC(xpo, ypo, rotate) {
sin = Math.sin(rotate * rotConstant);
cos = Math.cos(rotate * rotConstant);
holder = (((xposition + xpo) * cos) - ((yposition + ypo) * sin)) - xpo;
yposition = (((xposition + xpo) * sin) + ((yposition + ypo) * cos)) - ypo;
xposition = holder;
holder = (xspeed * cos) - (yspeed * sin);
yspeed = (xspeed * sin) + (yspeed * cos);
xspeed = holder;
i = 0;
while (i < xposit.length) {
holder = (((xposit[i] + xpo) * cos) - ((yposit[i] + ypo) * sin)) - xpo;
yposit[i] = (((xposit[i] + xpo) * sin) + ((yposit[i] + ypo) * cos)) - ypo;
xposit[i] = holder;
i++;
}
}
function PowerUp(Void) {
if ((Math.round(Math.random()) * 3) == 0) {
_root.depth++;
_root["Shape" + (_root.depth * 100)] = new PowerUpB(_root.sPowb.concat(), _root.xPowb.concat(), _root.yPowb.concat(), _root.zPowb.concat(), xposition, yposition, zposition, 5, _root.depth * 100, [0, 0, 0, 0, 0, 0, 0], Math.round(Math.random() * 5) - 1);
}
}
function Colide(Void) {
if (Math.abs(zposition - _root.Shape0.zposition) < (3 + wide)) {
if (Math.abs(yposition - _root.Shape0.yposition) < 3) {
if (Math.abs(xposition - _root.Shape0.xposition) < (3 + wide)) {
if (_root.Shape0.shield < 1) {
_root.playerDead = true;
_root.Level0.Die();
} else {
_root.Level0.enemies--;
}
Die();
Explode();
}
}
}
}
var speed = 0;
var xspeed = 0;
var yspeed = 0;
var zspeed = 0;
var cyrotation = 0;
var dyrotation = 0;
var Score = 0;
}
Symbol 282 MovieClip [__Packages.PowerUpB] Frame 0
class PowerUpB extends Enemy
{
var shape, xposit, yposit, zposit, depth, xposition, yposition, zposition, color, wide, type, Score, i, holder, RotateY;
function PowerUpB (S, X, Y, Z, xPo, yPo, zPo, W, instance, col, Type) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
depth = instance;
xposition = xPo;
yposition = yPo;
zposition = zPo;
color = col;
wide = W;
type = Type;
Score = 100;
i = 0;
while (i < xposit.length) {
yposit[i] = yposit[i] + yPo;
xposit[i] = xposit[i] + xPo;
zposit[i] = zposit[i] + zPo;
i++;
}
switch (type) {
case 0 :
holder = _root.G;
break;
case 1 :
holder = _root.B;
break;
case 2 :
holder = _root.F;
break;
case 3 :
holder = _root.C;
break;
default :
holder = _root.D;
}
i = 0;
while (i < color.length) {
color[i] = holder;
i++;
}
}
function Colide(Void) {
RotateY(-xposition, -zposition, 2);
if (Math.abs(yposition - _root.Shape0.yposition) < (10 + wide)) {
if (Math.abs(zposition - _root.Shape0.zposition) < (9 + wide)) {
if (Math.abs(xposition - _root.Shape0.xposition) < (9 + wide)) {
switch (type) {
case 0 :
_root.Shape0.jumpHeight = -3.5;
break;
case 1 :
_root.Score = _root.Score + 3000;
break;
case 2 :
_root.Shape0.Burst = 10;
_root.Shape0.Seek = 0;
break;
case 3 :
_root.Shape0.Shield();
break;
default :
_root.Shape0.Seek = 10;
_root.Shape0.Burst = 0;
type = 4;
}
_root.Text(type + 12);
Die();
}
}
}
}
function Die(Void) {
var _local3 = 0;
while (_local3 < shape.length) {
_root["cube" + (depth + _local3)].removeMovieClip();
_local3++;
}
_root.Remove("Shape", depth);
}
function Frame(Void) {
Colide();
}
var A = 10092288;
var B = 13421568;
var C = 16711782;
var D = 16737792;
var G = 3407616;
var F = 3355647;
}
Symbol 283 MovieClip [__Packages.MenuObject] Frame 0
class MenuObject extends Enemy
{
var shape, xposit, yposit, zposit, color, wide, i, xposition, yposition, zposition, depth, xDistance, zDistance, rad, dyrotation, holderc, cyrotation, turnSpeed, RotateY, Move;
function MenuObject (S, X, Y, Z, xPo, yPo, zPo, W, instance, col) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
color = col;
wide = W;
i = 0;
while (i < xposit.length) {
xposit[i] = xposit[i] + xPo;
yposit[i] = yposit[i] + yPo;
zposit[i] = zposit[i] + zPo;
i++;
}
xposition = xPo;
yposition = yPo;
zposition = zPo;
depth = instance;
}
function Frame(xpo, ypo, zpo) {
xDistance = (_root._xmouse / 10) - xposition;
zDistance = 30 - zposition;
rad = Math.atan2(xDistance, zDistance);
dyrotation = (rad * 360) / (Math.PI*2);
holderc = dyrotation - cyrotation;
if (holderc > 180) {
holderc = holderc - 360;
} else if (holderc < -180) {
holderc = holderc + 360;
}
if (holderc > turnSpeed) {
holderc = turnSpeed;
} else if (holderc < (-turnSpeed)) {
holderc = -1 * turnSpeed;
}
RotateY(-xposition, -zposition, holderc);
cyrotation = cyrotation + holderc;
Move(xpo, ypo, zpo);
}
}
Symbol 284 MovieClip [__Packages.MenuLevel] Frame 0
class MenuLevel
{
var i;
function MenuLevel (Z) {
_root.zspeed = Z;
if (_root.Level[_root.levelCounter + 1] == "E") {
blankLevel = 575;
blank = true;
}
_root.Shape0 = new Shape(_root.sPlayer.concat(), _root.xPlayer.concat(), _root.yPlayer.concat(), _root.zPlayer.concat(), 0, Height, 70, 11, 0, [C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C]);
}
function Create(Void) {
i = 0;
while (i < 4) {
_root.depth++;
_root["Shape" + (_root.depth * 100)] = new Shape(_root.sCube.concat(), _root.xCube.concat(), _root.yCube.concat(), _root.zCube.concat(), ((Math.round(Math.random() * 12) * 15) + (90 * i)) - 180, Height - (Math.random() * 25), Depth, 5, _root.depth * 100, [B, B, B, B]);
i++;
}
}
function Timer(Void) {
if (!death) {
blankLevel--;
}
if ((NextLevel < 1) && (blankLevel < 1)) {
death = true;
finalDeath = true;
Die();
}
if ((blankLevel > 75) or (!blank)) {
_root.timer--;
}
if (_root.timer == 0) {
Create();
_root.timer = Math.round(700 / (_root.zspeed * 7));
}
}
function Move(Void) {
if (death) {
_root.perTimera--;
if (_root.per > 20) {
_root.per = _root.per - 20;
} else {
_root.per = 10;
}
}
if ((_root.per <= 20) && (_root.perTimera == 0)) {
finalDeath = true;
Die();
}
if ((Key.isDown(37) && (_root.Shape0.xposition > -40)) && (_root.xspeed > -6)) {
_root.xspeed = _root.xspeed - 1;
} else if ((Key.isDown(39) && (_root.Shape0.xposition < 40)) && (_root.xspeed < 6)) {
_root.xspeed = _root.xspeed + 1;
} else {
_root.xspeed = _root.xspeed * 0.7;
}
_root.xposition = _root.xposition + _root.xspeed;
_root.xspeedB = 0;
}
function Frame(Void) {
Move();
Timer();
_root.drawOrder = new Array();
_root.Shape0.Frame(-_root.xspeed, 0, 0);
_root.Shape0.DepthSort();
i = _root.depth - 99;
while (i < (_root.depth + 1)) {
_root["Shape" + (i * 100)].Frame(0, 0, _root.zspeed);
_root["Shape" + (i * 100)].DepthSort();
i++;
}
_root.drawOrder.sortOn(0, 16);
_root.drawOrder.reverse();
i = 0;
while (i < _root.drawOrder.length) {
_root["Shape" + _root.drawOrder[i][2]].Draw(_root.drawOrder[i][1]);
i++;
}
}
function Die(Void) {
death = true;
if (finalDeath) {
i = 0;
while (i < (_root.depth + 1)) {
_root["Shape" + (i * 100)].Die();
i++;
}
_root.Refreshb();
_root.Shape0.Die;
_root.Shape100.Die();
_root.playerDead = false;
_root.NewGame();
}
}
var Height = 15;
var Depth = 500;
var A = 10092288;
var B = 13421568;
var C = 16711782;
var D = 16737792;
var E = 3407616;
var F = 3355647;
var death = false;
var finalDeath = false;
var blankLevel = 0;
var blank = false;
var NextLevel = 500;
}
Symbol 285 MovieClip [__Packages.Shape] Frame 0
class Shape extends FormThreeSort
{
var shape, xposit, yposit, zposit, depth, xposition, yposition, zposition, color, wide, A, i, Die, Explode, Move;
function Shape (S, X, Y, Z, xPo, yPo, zPo, W, instance, col) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
depth = instance;
xposition = xPo;
yposition = yPo;
zposition = zPo;
color = col;
wide = W;
A = color[0];
i = 0;
while (i < xposit.length) {
yposit[i] = yposit[i] + yPo;
xposit[i] = xposit[i] + xPo;
zposit[i] = zposit[i] + zPo;
i++;
}
}
function Colide(Void) {
if (Math.abs(zposition - _root.Shape0.zposition) < (8 + wide)) {
if (Math.abs(yposition - _root.Shape0.yposition) < wide) {
if (Math.abs(xposition - _root.Shape0.xposition) < (8 + wide)) {
if (_root.Shape0.shield < 1) {
_root.Shape0.Wings(xposition);
}
if (Math.abs(xposition - _root.Shape0.xposition) < (3 + wide)) {
if (_root.Shape0.shield < 1) {
_root.Shape0.Explode();
_root.playerDead = true;
_root.Shape0.Die();
_root.Level0.Die();
}
Die();
}
_root.Score = _root.Score + 150;
Explode();
}
}
}
if (zposition < 10) {
Die();
}
}
function Frame(xspeed, yspeed, zspeed) {
Move(xspeed, yspeed, zspeed);
Colide();
}
}
Symbol 286 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 287 MovieClip [__Packages.PlayerSprite] Frame 0
class PlayerSprite extends FormThreeSort
{
var shape, xposit, yposit, zposit, depth, xposition, yposition, zposition, color, A, wide, i, Explode, Move;
function PlayerSprite (S, X, Y, Z, xPo, yPo, zPo, W, instance, col) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
depth = instance;
xposition = xPo;
yposition = yPo;
zposition = zPo;
color = col;
A = color[0];
wide = W;
i = 0;
while (i < xposit.length) {
yposit[i] = yposit[i] + yPo;
xposit[i] = xposit[i] + xPo;
zposit[i] = zposit[i] + zPo;
i++;
}
}
function Wings(xpo) {
if (((xposition - xpo) < 0) && (leftWing)) {
Explode();
_root.Score = _root.Score - (50 * _root.zspeed);
leftWing = false;
shape.splice(6, 6);
if (!rightWing) {
i = 6;
while (i < 12) {
_root["cube" + (depth + i)].removeMovieClip();
i++;
}
} else {
i = 12;
while (i < 18) {
_root["cube" + (depth + i)].removeMovieClip();
i++;
}
}
}
if (((xposition - xpo) >= 0) && (rightWing)) {
Explode();
_root.Score = _root.Score - (50 * _root.zspeed);
rightWing = false;
if (!leftWing) {
shape.splice(6, 6);
i = 6;
while (i < 12) {
_root["cube" + (depth + i)].removeMovieClip();
i++;
}
} else {
shape.splice(12, 6);
i = 12;
while (i < 18) {
_root["cube" + (depth + i)].removeMovieClip();
i++;
}
}
}
}
function Jump(Void) {
if (Key.isDown(38) && (speed < 4)) {
speed = speed + 0.2;
_root.zspeed = _root.zspeed + 0.2;
}
if (Key.isDown(40) && (speed > 0)) {
speed = speed - 0.2;
_root.zspeed = _root.zspeed - 0.2;
}
_root.Level0.speed = speed;
if ((Key.isDown(65) or Key.isDown(32)) && (yposition == 15)) {
jumpTimer = jumpHeight;
}
if (yposition < 15) {
jumpTimer = jumpTimer + 0.25;
}
}
function EndJump(Void) {
if (yposition == 15) {
jumpTimer = 0;
}
}
function Shields(Void) {
shield = 100;
_root.r = 15;
_root.seg = 10;
_root.Circle();
var _local3 = 0;
while (_local3 < _root.seg) {
_root.yCir[_local3] = _root.yCir[_local3] + 7;
_local3++;
}
_root.Shape100 = new Shield(_root.sCir.concat(), _root.xCir.concat(), _root.yCir.concat(), _root.zCir.concat(), xposition, yposition, zposition, 11, 100, [C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C]);
}
function RemoveShield(Void) {
shield = 0;
_root.Shape100.Die();
}
function Misc() {
shootTimer--;
if (shield == 50) {
_root.Text(7);
}
if (shield == 0) {
RemoveShield();
}
if (Key.isDown(83) && (shootTimer < 0)) {
_root.Text(11);
shootTimer = 40;
}
}
function Frame(xspeed, yspeed, zspeed) {
shield--;
Misc();
Jump();
_root.Shape100.Frame(xspeed * coeff, -jumpTimer, 0);
_root.Shape100.DepthSort();
Move(xspeed * coeff, -jumpTimer, 0);
EndJump();
}
var rightWing = true;
var leftWing = true;
var coeff = 0.4;
var jumpTimer = 0;
var jumpHeight = -2.5;
var shield = 0;
var C = 16711782;
var speed = 0;
var shootTimer = 0;
}
Symbol 288 MovieClip [__Packages.Shield] Frame 0
class Shield extends FormThreeSort
{
var shape, xposit, yposit, zposit, color, wide, i, xposition, yposition, zposition, depth;
function Shield (S, X, Y, Z, xPo, yPo, zPo, W, instance, col) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
color = col;
wide = W;
i = 0;
while (i < xposit.length) {
xposit[i] = xposit[i] + xPo;
yposit[i] = yposit[i] + yPo;
zposit[i] = zposit[i] + (zPo + 0.1);
i++;
}
xposition = xPo;
yposition = yPo;
zposition = zPo;
depth = instance;
}
function Frame(xspeed, yspeed, zspeed) {
i = 0;
while (i < xposit.length) {
xposit[i] = xposit[i] - xspeed;
yposit[i] = yposit[i] - yspeed;
zposit[i] = zposit[i] - zspeed;
i++;
}
xposition = xposition - xspeed;
yposition = yposition - yspeed;
zposition = zposition - zspeed;
}
}
Symbol 289 MovieClip [__Packages.FlyLevel] Frame 0
class FlyLevel
{
var i;
function FlyLevel (zspd) {
_root.zspeed = zspd;
_root.per = 10;
var _local3 = 0;
_root.Remove("Shape", 0);
_root.Shape0 = new PlayerForm(_root.sPlayer.concat(), _root.xPlayer.concat(), _root.yPlayer.concat(), _root.zPlayer.concat(), _local3, Height, -150, 11, 0, [C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C]);
_root.depth = 0;
_root.r = 400;
_root.seg = 30;
_root.Circle();
_root.depth++;
_root["Shape" + (_root.depth * 100)] = new FormThreeSortL(_root.sCir.concat(), _root.xCir.concat(), _root.yCir.concat(), _root.zCir.concat(), _local3, Height, 0, 40, _root.depth * 100, _root.colCirA, 60, true);
_root.r = 600;
_root.Circle();
_root.depth++;
i = 0;
while (i < _root.seg) {
_root.yCir[i] = _root.yCir[i] - ((20 * Math.cos(((i * 36) * Math.PI) / 180)) + 20);
i++;
}
_root["Shape" + (_root.depth * 100)] = new FormThreeSortL(_root.sCir.concat(), _root.xCir.concat(), _root.yCir.concat(), _root.zCir.concat(), _local3, Height, 0, 60, _root.depth * 100, _root.colCirB, 100, true);
_root.depth = 100;
i = 0;
while (i < _root.EnemyArray[_root.levelCounterB][0]) {
_root.depth++;
_local3 = _local3 + 30;
enemies++;
_root["Shape" + (_root.depth * 100)] = new EnemySpin(_root.sSpin.concat(), _root.xSpin.concat(), _root.ySpin.concat(), _root.zSpin.concat(), _local3 - 150, Height, 100, 11, _root.depth * 100, [E, E, E, E, E, E, E, E]);
i++;
}
_local3 = -200;
i = 0;
while (i < _root.EnemyArray[_root.levelCounterB][2]) {
_root.depth++;
_local3 = _local3 + 100;
enemies++;
_root["Shape" + (_root.depth * 100)] = new EnemyShoot(_root.sShoot.concat(), _root.xShoot.concat(), _root.yShoot.concat(), _root.zShoot.concat(), _local3, Height, 200, 11, _root.depth * 100, [B, B, B, B, B, B, B, B, B]);
i++;
}
_local3 = -210;
i = 0;
while (i < _root.EnemyArray[_root.levelCounterB][1]) {
_root.depth++;
_local3 = _local3 + 100;
enemies++;
_root["Shape" + (_root.depth * 100)] = new EnemyChase(_root.sChase.concat(), _root.xChase.concat(), _root.yChase.concat(), _root.zChase.concat(), _local3, Height, 150, 11, _root.depth * 100, [F, F, F, F, F, F, F, F, F]);
i++;
}
}
function Timer() {
if ((_root.per < 500) && (!zoomed)) {
_root.per = _root.per + 20;
} else if (_root.per > 500) {
if (_root.insta > 3) {
zoomed = true;
_root.per = 500;
}
}
if (_root.insta > 3) {
if (enemies == 0) {
Die();
}
if (death) {
_root.perTimera--;
if (_root.per > 20) {
_root.per = _root.per - 20;
} else {
_root.per = 10;
}
}
if (((_root.per <= 20) && (_root.perTimera < 0)) or (_root.perTimera < -20)) {
finalDeath = true;
Die();
}
} else {
_root.instTimer--;
if (_root.instTimer < 1) {
_root.Text(16 + _root.insta);
_root.insta++;
_root.instTimer = 50;
}
}
}
function Die() {
death = true;
if (finalDeath) {
if (_root.playerDead && (_root.Lives > 0)) {
i = 1;
while (i < (_root.depth + 1)) {
trace("depth : " + (i * 100));
_root["Shape" + (i * 100)].Die();
i++;
}
_root.Refreshb();
_root.playerDead = false;
_root.Lives--;
_root.levelCounterB--;
_root.CreateLevel(_root.zspeed);
if (!blueRing) {
_root.Text(8);
} else {
_root.Text(10);
}
} else if (_root.Lives > 0) {
i = 0;
while (i < (_root.depth + 1)) {
trace("depth : " + (i * 100));
_root["Shape" + (i * 100)].Die();
i++;
}
_root.Text(1);
_root.Score = _root.Score + (250 * _root.zspeed);
_root.Refreshb();
_root.levelCounter++;
_root.Shape0 = new PlayerSprite(_root.sPlayer.concat(), _root.xPlayer.concat(), _root.yPlayer.concat(), _root.zPlayer.concat(), 0, Height, 70, 11, 0, [C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C]);
_root.playerDead = false;
trace(_root.zspeed);
_root.CreateLevel(_root.zspeed + 1);
}
}
}
function Frame() {
Timer();
if (!finalDeath) {
_root.drawOrder = new Array();
if ((_root.per == 500) or death) {
_root.Shape0.Frame();
}
_root.zdep = _root.Shape0.zposition - 70;
_root.xdep = _root.Shape0.xposition;
_root.ydep = _root.Shape0.yposition - 15;
_root.Shape0.DepthSort();
i = 1;
while (i < (_root.depth + 1)) {
if ((_root.per == 500) or death) {
_root["Shape" + (i * 100)].Frame(0, 0, 0);
}
_root["Shape" + (i * 100)].DepthSort();
i++;
}
_root.drawOrder.sortOn(0, 16);
_root.drawOrder.reverse();
i = 0;
while (i < _root.drawOrder.length) {
_root["Shape" + _root.drawOrder[i][2]].Draw(_root.drawOrder[i][1]);
i++;
}
}
}
function Move(xspeed, yspeed, zspeed) {
i = 1;
while (i < (_root.depth + 1)) {
_root["Shape" + (i * 100)].Move(xspeed, yspeed, zspeed);
i++;
}
}
function RotateY(Rot) {
i = 1;
while (i < 4) {
_root["Shape" + (i * 100)].RotateY(-_root.Shape0.xposition, -_root.Shape0.zposition, Rot);
i++;
}
i = 4;
while (i < (_root.depth + 1)) {
_root["Shape" + (i * 100)].RotateYC(-_root.Shape0.xposition, -_root.Shape0.zposition, Rot);
_root["Shape" + (i * 100)].cyrotation = _root["Shape" + (i * 100)].cyrotation + Rot;
i++;
}
}
var blueRing = false;
var enemies = 0;
var Height = 15;
var Depth = 500;
var A = 16711833;
var B = 13421568;
var C = 16711782;
var D = 16737792;
var E = 3407616;
var F = 26367;
var death = false;
var finalDeath = false;
var NextLevel = 50;
var zoomed = false;
}
Symbol 290 MovieClip [__Packages.PlayerForm] Frame 0
class PlayerForm extends FormThreeSort
{
var shape, xposit, yposit, zposit, depth, xposition, yposition, zposition, color, wide, i, Move, xDistance, zDistance, holder, RotateY;
function PlayerForm (S, X, Y, Z, xPo, yPo, zPo, W, instance, col) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
depth = instance;
xposition = xPo;
yposition = yPo;
zposition = zPo;
color = col;
wide = W;
i = 0;
while (i < xposit.length) {
yposit[i] = yposit[i] + yPo;
xposit[i] = xposit[i] + xPo;
zposit[i] = zposit[i] + zPo;
i++;
}
}
function Shield() {
shield = 200;
_root.r = 15;
_root.seg = 10;
_root.Circle();
_root.depth++;
var _local3 = 0;
while (_local3 < _root.seg) {
_root.yCir[_local3] = _root.yCir[_local3] + 7;
_local3++;
}
_root.Shape9900 = new PlayerFormShield(_root.sCir.concat(), _root.xCir.concat(), _root.yCir.concat(), _root.zCir.concat(), 0, 0, 0, 11, 9900, [C, C, C, C, C, C, C, C, C, C]);
}
function RemoveShield() {
_root.Shape9900.Die();
}
function Update(Void) {
shield--;
if (shield < 1) {
RemoveShield();
} else if (shield == 50) {
_root.Text(7);
}
if (!_root.Level0.death) {
if (Key.isDown(38)) {
if (zspeed < 20) {
zspeed = zspeed + 2;
}
} else if (Key.isDown(40)) {
if (zspeed > -12) {
zspeed = zspeed - 2;
}
} else {
zspeed = zspeed * 0.95;
}
Move(0, 0, -zspeed);
if (Math.sqrt(Math.pow(_root.Shape100.zposition - zposition, 2) + Math.pow(_root.Shape100.xposition, 2)) > 580) {
Move(0, 0, zspeed);
xDistance = _root.Shape200.xposition - xposition;
zDistance = _root.Shape200.zposition - zposition;
holder = Math.sqrt(Math.pow(xDistance, 2) + Math.pow(zDistance, 2));
xDistance = xDistance / holder;
zDistance = zDistance / holder;
xDistance = xDistance * 580;
zDistance = zDistance * 580;
Move(-((_root.Shape200.xposition - xposition) - xDistance), 0, -((_root.Shape200.zposition - zposition) - zDistance));
}
lrotation = rotation;
if (Key.isDown(37)) {
if (rotation > -10) {
rotation = rotation - 2;
} else {
rotation = -10;
}
} else if (Key.isDown(39)) {
if (rotation < 10) {
rotation = rotation + 2;
} else {
rotation = 10;
}
} else {
rotation = rotation * 0.8;
}
_root.Level0.RotateY(-0.5 * rotation);
RotateY(-xposition, -zposition, rotation - lrotation);
}
}
function Jump(Void) {
if ((Key.isDown(65) && (yposition == 15)) && (!_root.Level0.death)) {
jumpTimer = jumpHeight;
}
if (yposition < 15) {
jumpTimer = jumpTimer + 0.25;
}
Move(0, -jumpTimer, 0);
}
function EndJump(Void) {
if (yposition == 15) {
jumpTimer = 0;
}
}
function Fire(Void) {
shootTimer--;
if ((Key.isDown(83) && (shootTimer < 0)) && (!_root.Level0.death)) {
_root.depth++;
if (Burst > 0) {
Burst--;
_root["Shape" + (100 * _root.depth)] = new PlayerBulletBurst(_root.sBull.concat(), _root.xBull.concat(), _root.yBull.concat(), _root.zBull.concat(), xposition, yposition, zposition, 2, 100 * _root.depth, [F, F, F, F, F], 0, -30);
} else if (Seek > 0) {
Seek--;
_root["Shape" + (100 * _root.depth)] = new PlayerBulletSeek(_root.sBull.concat(), _root.xBull.concat(), _root.yBull.concat(), _root.zBull.concat(), xposition, yposition, zposition, 2, 100 * _root.depth, [B, B, B, B, B], 0, -30);
} else {
_root["Shape" + (100 * _root.depth)] = new PlayerBullet(_root.sBull.concat(), _root.xBull.concat(), _root.yBull.concat(), _root.zBull.concat(), xposition, yposition, zposition, 2, 100 * _root.depth, [C, C, C, C, C], 0, -30);
}
shootTimer = 5;
}
}
function Frame(Void) {
Jump();
Update();
Fire();
EndJump();
}
var Score = 100;
var xspeed = 0;
var zspeed = 0;
var shootTimer = 0;
var C = 16711782;
var B = 16737792;
var F = 3355647;
var shield = 0;
var rotation = 0;
var lrotation = 0;
var jumpTimer = 0;
var jumpHeight = -2.5;
var Burst = 0;
var Seek = 0;
}
Symbol 291 MovieClip [__Packages.PlayerFormShield] Frame 0
class PlayerFormShield extends Enemy
{
var shape, xposit, yposit, zposit, color, wide, i, xposition, yposition, zposition, depth, Score, Move;
function PlayerFormShield (S, X, Y, Z, xPo, yPo, zPo, W, instance, col) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
color = col;
wide = W;
i = 0;
while (i < xposit.length) {
xposit[i] = xposit[i] + xPo;
yposit[i] = yposit[i] + yPo;
zposit[i] = zposit[i] + (zPo + 0.1);
i++;
}
xposition = xPo;
yposition = yPo;
zposition = zPo;
depth = instance;
Score = 100;
}
function Frame(Void) {
Move(xposition - _root.Shape0.xposition, yposition - _root.Shape0.yposition, zposition - _root.Shape0.zposition);
}
}
Symbol 292 MovieClip [__Packages.PlayerBullet] Frame 0
class PlayerBullet extends Enemy
{
var shape, xposit, yposit, zposit, color, wide, i, xposition, yposition, zposition, depth, xspeed, zspeed, Score, Die, ii, Move;
function PlayerBullet (S, X, Y, Z, xPo, yPo, zPo, W, instance, col, xSpd, zSpd) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
color = col;
wide = W;
i = 0;
while (i < xposit.length) {
xposit[i] = xposit[i] + xPo;
yposit[i] = yposit[i] + yPo;
zposit[i] = zposit[i] + zPo;
i++;
}
xposition = xPo;
yposition = yPo;
zposition = zPo;
depth = instance;
xspeed = xSpd;
zspeed = zSpd;
Score = 100;
}
function Colide(Void) {
lifeTimer--;
if ((lifeTimer == 0) or (Math.sqrt(Math.pow(_root.Shape100.zposition - zposition, 2) + Math.pow(_root.Shape100.xposition, 2)) > 600)) {
Die();
}
i = 1;
while (i < (_root.depth + 1)) {
if (!((i * 100) === depth)) {
if (Math.abs(zposition - _root["Shape" + (i * 100)].zposition) < (12 + wide)) {
if (Math.abs(yposition - _root["Shape" + (i * 100)].yposition) < wide) {
if (Math.abs(xposition - _root["Shape" + (i * 100)].xposition) < (12 + wide)) {
if ((!dead) && (!(_root["Shape" + (i * 100)].Score === 100))) {
_root.Score = _root.Score + _root["Shape" + (i * 100)].Score;
ii = 0;
while (ii < 3) {
_root["Shape" + (i * 100)].Explode();
ii++;
}
_root["Shape" + (i * 100)].PowerUp();
_root["Shape" + (i * 100)].Die();
_root.Level0.enemies--;
dead = true;
Die();
}
}
}
}
}
i++;
}
}
function Frame(Void) {
Move(xspeed, 0, zspeed);
Colide();
}
var lifeTimer = 50;
var dead = false;
}
Symbol 293 MovieClip [__Packages.PlayerBulletBurst] Frame 0
class PlayerBulletBurst extends PlayerBullet
{
var shape, xposit, yposit, zposit, color, wide, i, xposition, yposition, zposition, depth, xspeed, zspeed, Score, lifeTimer, Die, dead, ii, Move;
function PlayerBulletBurst (S, X, Y, Z, xPo, yPo, zPo, W, instance, col, xSpd, zSpd) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
color = col;
wide = W;
i = 0;
while (i < xposit.length) {
xposit[i] = xposit[i] + xPo;
yposit[i] = yposit[i] + yPo;
zposit[i] = zposit[i] + zPo;
i++;
}
xposition = xPo;
yposition = yPo;
zposition = zPo;
depth = instance;
xspeed = xSpd;
zspeed = zSpd;
Score = 100;
}
function Burst(Void) {
_root.depth++;
_root["Shape" + (100 * _root.depth)] = new PlayerBullet(_root.sBull.concat(), _root.xBull.concat(), _root.yBull.concat(), _root.zBull.concat(), xposition, yposition, zposition, 2, 100 * _root.depth, [C, C, C, C, C], xspeed, zspeed);
_root.depth++;
_root["Shape" + (100 * _root.depth)] = new PlayerBullet(_root.sBull.concat(), _root.xBull.concat(), _root.yBull.concat(), _root.zBull.concat(), xposition, yposition, zposition, 2, 100 * _root.depth, [C, C, C, C, C], -xspeed, -zspeed);
_root.depth++;
_root["Shape" + (100 * _root.depth)] = new PlayerBullet(_root.sBull.concat(), _root.xBull.concat(), _root.yBull.concat(), _root.zBull.concat(), xposition, yposition, zposition, 2, 100 * _root.depth, [C, C, C, C, C], zspeed, xspeed);
_root.depth++;
_root["Shape" + (100 * _root.depth)] = new PlayerBullet(_root.sBull.concat(), _root.xBull.concat(), _root.yBull.concat(), _root.zBull.concat(), xposition, yposition, zposition, 2, 100 * _root.depth, [C, C, C, C, C], -zspeed, -xspeed);
}
function Colide(Void) {
lifeTimer--;
if ((lifeTimer == 0) or (Math.sqrt(Math.pow(_root.Shape100.zposition - zposition, 2) + Math.pow(_root.Shape100.xposition, 2)) > 600)) {
Die();
}
i = 1;
while (i < (_root.depth + 1)) {
if (!((i * 100) === depth)) {
if (Math.abs(zposition - _root["Shape" + (i * 100)].zposition) < (12 + wide)) {
if (Math.abs(yposition - _root["Shape" + (i * 100)].yposition) < wide) {
if (Math.abs(xposition - _root["Shape" + (i * 100)].xposition) < (12 + wide)) {
if ((!dead) && (!(_root["Shape" + (i * 100)].Score === 100))) {
_root.Score = _root.Score + _root["Shape" + (i * 100)].Score;
ii = 0;
while (ii < 3) {
_root["Shape" + (i * 100)].Explode();
ii++;
}
_root["Shape" + (i * 100)].PowerUp();
_root["Shape" + (i * 100)].Die();
_root.Level0.enemies--;
dead = true;
Burst();
Die();
}
}
}
}
}
i++;
}
}
function Frame(Void) {
Move(xspeed, 0, zspeed);
Colide();
}
var C = 16711782;
}
Symbol 294 MovieClip [__Packages.PlayerBulletSeek] Frame 0
class PlayerBulletSeek extends PlayerBullet
{
var shape, xposit, yposit, zposit, color, wide, i, xposition, yposition, zposition, depth, xspeed, zspeed, speed, turnSpeed, Score, target, xDistance, zDistance, rad, dyrotation, holderc, cyrotation, RotateY, Move, Colide;
function PlayerBulletSeek (S, X, Y, Z, xPo, yPo, zPo, W, instance, col, xSpd, zSpd) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
color = col;
wide = W;
i = 0;
while (i < xposit.length) {
xposit[i] = xposit[i] + xPo;
yposit[i] = yposit[i] + yPo;
zposit[i] = zposit[i] + zPo;
i++;
}
xposition = xPo;
yposition = yPo;
zposition = zPo;
depth = instance;
xspeed = xSpd;
zspeed = zSpd;
speed = 30;
DetTarget();
turnSpeed = 10;
Score = 100;
}
function DetTarget(Void) {
i = 1;
while (i < (_root.depth + 1)) {
if (Math.sqrt(Math.pow(_root["Shape" + (i * 100)].xposition - xposition, 2) + Math.pow(_root["Shape" + (i * 100)].yposition - yposition, 2)) < distance) {
distance = Math.sqrt(Math.pow(_root["Shape" + (i * 100)].xposition - xposition, 2) + Math.pow(_root["Shape" + (i * 100)].yposition - yposition, 2));
target = _root["Shape" + (i * 100)];
}
i++;
}
}
function Update(Void) {
xDistance = target.xposition - xposition;
zDistance = target.zposition - zposition;
rad = Math.atan2(xDistance, zDistance);
dyrotation = (rad * 360) / (Math.PI*2);
holderc = dyrotation - cyrotation;
if (holderc > 180) {
holderc = holderc - 360;
} else if (holderc < -180) {
holderc = holderc + 360;
}
if (holderc > turnSpeed) {
holderc = turnSpeed;
} else if (holderc < (-turnSpeed)) {
holderc = -1 * turnSpeed;
}
RotateY(-xposition, -zposition, holderc);
cyrotation = cyrotation + holderc;
zspeed = Math.sin(((90 + cyrotation) * Math.PI) / 180) * (-speed);
xspeed = Math.cos(((90 + cyrotation) * Math.PI) / 180) * speed;
}
function Frame(Void) {
Update();
Move(xspeed, 0, zspeed);
Colide();
}
var distance = 1000;
}
Symbol 295 MovieClip [__Packages.FormThreeSortL] Frame 0
class FormThreeSortL extends FormThreeSort
{
var shape, xposit, yposit, zposit, color, wide, alpha, back, i, xposition, yposition, zposition, depth, zdep, xdep, ydep, holder, ii, holderc, colr, Cull, dot;
function FormThreeSortL (S, X, Y, Z, xPo, yPo, zPo, W, instance, col, A, B) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
color = col;
wide = W;
alpha = A;
back = B;
i = 0;
while (i < xposit.length) {
xposit[i] = xposit[i] + xPo;
yposit[i] = yposit[i] + yPo;
zposit[i] = zposit[i] + zPo;
i++;
}
xposition = xPo;
yposition = yPo;
zposition = zPo;
depth = instance;
}
function DepthSort(Void) {
zdep = _root.zdep;
xdep = _root.xdep;
ydep = _root.ydep;
i = 0;
while (i < shape.length) {
_root["cube" + (depth + i)].removeMovieClip();
i++;
}
i = 0;
while (i < shape.length) {
holder = -1000000;
ii = 0;
while (ii < (shape[i].length - 1)) {
if ((zposit[shape[i][ii]] - zdep) > holder) {
holder = zposit[shape[i][ii]] - zdep;
}
ii++;
}
_root.drawOrder.push([holder, i, depth]);
i++;
}
i = 0;
}
function Draw(num) {
holderc = num;
if (((zposit[shape[holderc][1]] - zdep) > 0) && ((zposit[shape[holderc][2]] - zdep) > 0)) {
if ((Math.abs((xposit[shape[holderc][1]] - xdep) * (_root.per / (zposit[shape[holderc][1]] - zdep))) < 300) or (Math.abs((xposit[shape[holderc][2]] - xdep) * (_root.per / (zposit[shape[holderc][2]] - zdep))) < 300)) {
holder = _root.per / (zposit[shape[holderc][0]] - zdep);
colr = Cull(color[holderc]);
trace(colr);
if (dot >= 0) {
_root.instance++;
_root.createEmptyMovieClip("cube" + (depth + i), _root.instance);
_root["cube" + (depth + i)].lineStyle(0, 0, 0);
_root["cube" + (depth + i)].beginFill(colr, alpha);
_root["cube" + (depth + i)].moveTo((xposit[shape[holderc][0]] - xdep) * holder, (yposit[shape[holderc][0]] - ydep) * holder);
ii = 0;
while (ii < shape[holderc].length) {
holder = _root.per / (zposit[shape[holderc][ii]] - zdep);
_root["cube" + (depth + i)].lineTo((xposit[shape[holderc][ii]] - xdep) * holder, (yposit[shape[holderc][ii]] - ydep) * holder);
ii++;
}
_root["cube" + (depth + i)].endFill();
}
i++;
}
}
}
}
Symbol 296 MovieClip [__Packages.EnemySpin] Frame 0
class EnemySpin extends Enemy
{
var shape, xposit, yposit, zposit, color, wide, holder, speed, A, zspeed, xspeed, i, xposition, yposition, zposition, depth, turnSpeed, Score, RotateY, Move, xDistance, zDistance, Colide;
function EnemySpin (S, X, Y, Z, xPo, yPo, zPo, W, instance, col) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
color = col;
wide = W;
holder = Math.random() * 360;
speed = 8;
A = color[0];
zspeed = Math.sin((holder * Math.PI) / 180) * speed;
xspeed = Math.cos((holder * Math.PI) / 180) * speed;
i = 0;
while (i < xposit.length) {
xposit[i] = xposit[i] + xPo;
yposit[i] = yposit[i] + yPo;
zposit[i] = zposit[i] + zPo;
i++;
}
xposition = xPo;
yposition = yPo;
zposition = zPo;
depth = instance;
turnSpeed = 10;
Score = 200;
}
function Update() {
RotateY(-xposition, -zposition, 5);
if (Math.sqrt(Math.pow(_root.Shape100.zposition - zposition, 2) + Math.pow(_root.Shape100.xposition - xposition, 2)) > 390) {
Move(-xspeed, 0, -zspeed);
xDistance = _root.Shape200.xposition - xposition;
zDistance = _root.Shape200.zposition - zposition;
holder = Math.sqrt(Math.pow(xDistance, 2) + Math.pow(zDistance, 2));
xDistance = xDistance / holder;
zDistance = zDistance / holder;
holder = Math.sqrt(Math.pow(xspeed, 2) + Math.pow(zspeed, 2));
xspeed = xspeed / holder;
zspeed = zspeed / holder;
holder = (xDistance * xspeed) + (zDistance * zspeed);
xspeed = xspeed - ((2 * holder) * xDistance);
zspeed = zspeed - ((2 * holder) * zDistance);
xspeed = xspeed * speed;
zspeed = zspeed * speed;
}
}
function Frame(xpo, ypo, zpo) {
Update();
Colide();
Move(xspeed, 0, zspeed);
}
}
Symbol 297 MovieClip [__Packages.EnemyShoot] Frame 0
class EnemyShoot extends Enemy
{
var shape, xposit, yposit, zposit, color, wide, holder, speed, A, zspeed, xspeed, i, xposition, yposition, zposition, depth, turnSpeed, Score, xDistance, zDistance, rad, dyrotation, holderc, cyrotation, RotateY, Colide, Move;
function EnemyShoot (S, X, Y, Z, xPo, yPo, zPo, W, instance, col) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
color = col;
wide = W;
holder = 0;
speed = 3 + (Math.random() * 5);
A = color[0];
holder = 0;
zspeed = Math.sin((holder * Math.PI) / 180) * speed;
xspeed = Math.cos((holder * Math.PI) / 180) * speed;
i = 0;
while (i < xposit.length) {
xposit[i] = xposit[i] + xPo;
yposit[i] = yposit[i] + yPo;
zposit[i] = zposit[i] + zPo;
i++;
}
xposition = xPo;
yposition = yPo;
zposition = zPo;
depth = instance;
turnSpeed = 3 + (Math.random() * 6);
Score = 800;
}
function Fire(Void) {
shootTimer = 15;
_root.depth++;
_root["Shape" + (100 * _root.depth)] = new EnemyBulletB(_root.sBull.concat(), _root.xBull.concat(), _root.yBull.concat(), _root.zBull.concat(), xposition, yposition, zposition, 2, 100 * _root.depth, [C, C, C, C, C], 2 * xspeed, 2 * zspeed);
}
function Update(Void) {
shootTimer--;
xDistance = _root.Shape0.xposition - xposition;
zDistance = _root.Shape0.zposition - zposition;
rad = Math.atan2(xDistance, zDistance);
dyrotation = (rad * 360) / (Math.PI*2);
holderc = dyrotation - cyrotation;
if (holderc > 180) {
holderc = holderc - 360;
} else if (holderc < -180) {
holderc = holderc + 360;
}
if (holderc > turnSpeed) {
holderc = turnSpeed;
} else if (holderc < (-turnSpeed)) {
holderc = -1 * turnSpeed;
}
RotateY(-xposition, -zposition, holderc);
cyrotation = cyrotation + holderc;
zspeed = Math.sin(((90 + cyrotation) * Math.PI) / 180) * (-speed);
xspeed = Math.cos(((90 + cyrotation) * Math.PI) / 180) * speed;
if (cyrotation == dyrotation) {
if (shootTimer < 0) {
Fire();
}
}
}
function Frame(xpo, ypo, zpo) {
Update();
Colide();
Move(xspeed, 0, zspeed);
}
var shootTimer = 0;
var C = 13421568;
}
Symbol 298 MovieClip [__Packages.EnemyBulletB] Frame 0
class EnemyBulletB extends PlayerBullet
{
var shape, xposit, yposit, zposit, color, wide, i, xposition, yposition, zposition, depth, xspeed, zspeed, Score, lifeTimer, Die;
function EnemyBulletB (S, X, Y, Z, xPo, yPo, zPo, W, instance, col, xSpd, zSpd) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
color = col;
wide = W;
i = 0;
while (i < xposit.length) {
xposit[i] = xposit[i] + xPo;
yposit[i] = yposit[i] + yPo;
zposit[i] = zposit[i] + zPo;
i++;
}
xposition = xPo;
yposition = yPo;
zposition = zPo;
depth = instance;
xspeed = xSpd;
zspeed = zSpd;
Score = 100;
}
function Colide() {
lifeTimer--;
if ((lifeTimer == 0) or (Math.sqrt(Math.pow(_root.Shape100.zposition - zposition, 2) + Math.pow(_root.Shape100.xposition, 2)) > 600)) {
Die();
}
if (Math.abs(zposition - _root.Shape0.zposition) < (6 + wide)) {
if (Math.abs(yposition - _root.Shape0.yposition) < wide) {
if (Math.abs(xposition - _root.Shape0.xposition) < (6 + wide)) {
if (_root.Shape0.shield < 1) {
_root.playerDead = true;
_root.Level0.Die();
Die();
}
}
}
}
}
}
Symbol 299 MovieClip [__Packages.EnemyChase] Frame 0
class EnemyChase extends Enemy
{
var shape, xposit, yposit, zposit, color, wide, holder, speed, A, zspeed, xspeed, i, xposition, yposition, zposition, depth, turnSpeed, Score, xDistance, zDistance, rad, dyrotation, holderc, cyrotation, RotateY, Colide, Move;
function EnemyChase (S, X, Y, Z, xPo, yPo, zPo, W, instance, col) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
color = col;
wide = W;
holder = 0;
speed = 10 + (Math.random() * 6);
A = color[0];
holder = 0;
zspeed = Math.sin((holder * Math.PI) / 180) * speed;
xspeed = Math.cos((holder * Math.PI) / 180) * speed;
i = 0;
while (i < xposit.length) {
xposit[i] = xposit[i] + xPo;
yposit[i] = yposit[i] + yPo;
zposit[i] = zposit[i] + zPo;
i++;
}
xposition = xPo;
yposition = yPo;
zposition = zPo;
depth = instance;
turnSpeed = 15 + (Math.random() * 15);
Score = 500;
}
function Update(Void) {
xDistance = _root.Shape0.xposition - xposition;
zDistance = _root.Shape0.zposition - zposition;
rad = Math.atan2(xDistance, zDistance);
dyrotation = (rad * 360) / (Math.PI*2);
holderc = dyrotation - cyrotation;
if (holderc > 180) {
holderc = holderc - 360;
} else if (holderc < -180) {
holderc = holderc + 360;
}
if (holderc > turnSpeed) {
holderc = turnSpeed;
} else if (holderc < (-turnSpeed)) {
holderc = -1 * turnSpeed;
}
RotateY(-xposition, -zposition, holderc);
cyrotation = cyrotation + holderc;
zspeed = Math.sin(((90 + cyrotation) * Math.PI) / 180) * (-speed);
xspeed = Math.cos(((90 + cyrotation) * Math.PI) / 180) * speed;
}
function Frame(xpo, ypo, zpo) {
Update();
Colide();
Move(xspeed, 0, zspeed);
}
}
Symbol 300 MovieClip [__Packages.DodgeLevel] Frame 0
class DodgeLevel
{
var i, speed;
function DodgeLevel (Z) {
_root.zspeed = Z;
if (_root.Level[_root.levelCounter + 1] == "E") {
blankLevel = 575;
blank = true;
}
}
function Create(Void) {
i = 0;
while (i < 4) {
_root.depth++;
_root["Shape" + (_root.depth * 100)] = new Shape(_root.sCube.concat(), _root.xCube.concat(), _root.yCube.concat(), _root.zCube.concat(), ((Math.round(Math.random() * 12) * 15) + (90 * i)) - 180, Height, Depth, 5, _root.depth * 100, [E, E, E, E]);
i++;
}
}
function Timer(Void) {
if (_root.insta > 3) {
if (!death) {
NextLevel--;
blankLevel--;
}
if ((NextLevel < 1) && (blankLevel < 1)) {
death = true;
finalDeath = true;
Die();
}
if ((blankLevel > 75) or (!blank)) {
_root.timer--;
}
if (_root.timer == 0) {
Create();
_root.timer = Math.round(700 / (_root.zspeed * 7));
}
} else {
_root.instTimer--;
if (_root.instTimer < 1) {
_root.Text(16 + _root.insta);
_root.insta++;
_root.instTimer = 50;
}
}
}
function Move(Void) {
if (death) {
_root.perTimera--;
if (_root.per > 20) {
_root.per = _root.per - 20;
} else {
_root.per = 10;
}
}
if ((_root.per <= 20) && (_root.perTimera == 0)) {
finalDeath = true;
Die();
}
if ((Key.isDown(37) && (_root.Shape0.xposition > -35)) && (_root.xspeed > -6)) {
_root.xspeed = _root.xspeed - 1;
} else if ((Key.isDown(39) && (_root.Shape0.xposition < 35)) && (_root.xspeed < 6)) {
_root.xspeed = _root.xspeed + 1;
} else {
_root.xspeed = _root.xspeed * 0.7;
}
_root.xposition = _root.xposition + _root.xspeed;
_root.xspeedB = 0;
}
function Frame(Void) {
Move();
Timer();
_root.drawOrder = new Array();
_root.Shape0.Frame(-_root.xspeed, 0, 0);
_root.Shape0.DepthSort();
i = _root.depth - 99;
while (i < (_root.depth + 1)) {
_root["Shape" + (i * 100)].Frame(0, 0, _root.zspeed);
_root["Shape" + (i * 100)].DepthSort();
i++;
}
_root.drawOrder.sortOn(0, 16);
_root.drawOrder.reverse();
i = 0;
while (i < _root.drawOrder.length) {
_root["Shape" + _root.drawOrder[i][2]].Draw(_root.drawOrder[i][1]);
i++;
}
_root.Scores();
_root.Power();
}
function Die(Void) {
death = true;
if (finalDeath) {
if (_root.playerDead) {
_root.Shape100.Die();
_root.Shape0 = new PlayerSprite(_root.sPlayer.concat(), _root.xPlayer.concat(), _root.yPlayer.concat(), _root.zPlayer.concat(), 0, Height, 70, 11, 0, [C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C]);
_root.playerDead = false;
}
if (NextLevel > 0) {
_root.Lives--;
i = 0;
while (i < (_root.depth + 1)) {
_root["Shape" + (i * 100)].Die();
i++;
}
_root.Refreshb();
_root.Shape100.Die();
_root.Shape0 = new PlayerSprite(_root.sPlayer.concat(), _root.xPlayer.concat(), _root.yPlayer.concat(), _root.zPlayer.concat(), 0, Height, 70, 11, 0, [C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C]);
_root.playerDead = false;
_root.Text(8);
_root.CreateLevel(_root.zspeed - speed);
} else {
_root.Text(1);
_root.Score = _root.Score + (250 * _root.zspeed);
_root.Refresh();
_root.levelCounter++;
_root.CreateLevel(_root.zspeed + 1);
}
}
}
var Height = 15;
var Depth = 500;
var A = 10092288;
var B = 16763904;
var C = 16711782;
var D = 16737792;
var E = 3407616;
var F = 3355647;
var death = false;
var finalDeath = false;
var blankLevel = 0;
var blank = false;
var NextLevel = 375;
}
Symbol 301 MovieClip [__Packages.DodgeLevelHigh] Frame 0
class DodgeLevelHigh extends DodgeLevel
{
var blankLevel, blank, high, Height, bCol, B, C, i, Depth;
function DodgeLevelHigh (Z) {
super();
_root.zspeed = Z;
if (_root.Level[_root.levelCounter + 1] == "E") {
blankLevel = 575;
blank = true;
}
}
function Create(Void) {
if ((Math.random() * 2) < 1) {
high = Height;
bCol = B;
} else {
bCol = C;
high = Height - 13;
}
i = 0;
while (i < 4) {
_root.depth++;
_root["Shape" + (_root.depth * 100)] = new Shape(_root.sCube.concat(), _root.xCube.concat(), _root.yCube.concat(), _root.zCube.concat(), ((Math.round(Math.random() * 12) * 15) + (90 * i)) - 180, high, Depth, 5, _root.depth * 100, [bCol, bCol, bCol, bCol]);
i++;
}
}
}
Symbol 302 MovieClip [__Packages.DodgeBLevel] Frame 0
class DodgeBLevel extends DodgeLevel
{
var NextLevel, blankLevel, blank, i, Height, Depth, D, offset, death, finalDeath, Die;
function DodgeBLevel (Z) {
super();
NextLevel = 275;
_root.zspeed = Z;
if (_root.Level[_root.levelCounter + 1] == "E") {
blankLevel = 575;
blank = true;
}
}
function Create(Void) {
if (firstRun) {
i = -5;
while (i < 6) {
if (Math.abs(i * 15) > 30) {
_root.depth++;
_root["Shape" + (_root.depth * 100)] = new Shape(_root.sCube.concat(), _root.xCube.concat(), _root.yCube.concat(), _root.zCube.concat(), 15 * i, Height, Depth, 5, _root.depth * 100, [D, D, D, D]);
}
i++;
}
firstRun = false;
}
offset = (4 * _root.zspeed) * Math.sin((spinner * Math.PI) / 180);
i = 0;
while (i < 2) {
_root.depth++;
_root["Shape" + (_root.depth * 100)] = new Shape(_root.sCube.concat(), _root.xCube.concat(), _root.yCube.concat(), _root.zCube.concat(), (30 - (60 * i)) + offset, Height, Depth, 5, _root.depth * 100, [D, D, D, D]);
i++;
}
spinner = spinner + (150 / _root.zspeed);
}
function Timer(Void) {
if (!death) {
NextLevel--;
blankLevel--;
trace(NextLevel);
}
if ((NextLevel < 1) && (blankLevel < 1)) {
death = true;
finalDeath = true;
Die();
}
if ((blankLevel > 75) or (!blank)) {
_root.timer--;
}
if (_root.timer == 0) {
Create();
_root.timer = Math.round(700 / (_root.zspeed * 14));
}
}
var spinner = 0;
var firstRun = true;
}
Symbol 303 MovieClip [__Packages.PowerUp] Frame 0
class PowerUp extends Shape
{
var shape, xposit, yposit, zposit, depth, xposition, yposition, zposition, color, wide, type, i, holder, RotateY, Die;
function PowerUp (S, X, Y, Z, xPo, yPo, zPo, W, instance, col, Type) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
depth = instance;
xposition = xPo;
yposition = yPo;
zposition = zPo;
color = col;
wide = W;
type = Type;
if (type == 4) {
type = Math.round(Math.random() * 2) + 2;
}
if (type == 2) {
type = Math.round(Math.random() * 2) + 1;
}
i = 0;
while (i < xposit.length) {
yposit[i] = yposit[i] + yPo;
xposit[i] = xposit[i] + xPo;
zposit[i] = zposit[i] + zPo;
i++;
}
switch (type) {
case 0 :
holder = _root.A;
break;
case 1 :
holder = _root.B;
break;
case 2 :
holder = _root.C;
break;
case 3 :
holder = _root.D;
break;
case 4 :
holder = _root.F;
}
i = 0;
while (i < color.length) {
color[i] = holder;
i++;
}
}
function Colide(Void) {
RotateY(-xposition, -zposition, 2);
if (Math.abs(yposition - _root.Shape0.yposition) < (10 + wide)) {
if (Math.abs(zposition - _root.Shape0.zposition) < (8 + wide)) {
if (Math.abs(xposition - _root.Shape0.xposition) < (8 + wide)) {
switch (type) {
case 0 :
_root.Shape0.jumpHeight = -3.5;
break;
case 1 :
_root.Score = _root.Score + (300 * _root.zspeed);
break;
case 2 :
_root.Shape0.Shields();
break;
case 3 :
_root.Score = _root.Score + (400 * _root.zspeed);
_root.Perspective();
break;
case 4 :
_root.Score = _root.Score + (400 * _root.zspeed);
_root.Lives++;
}
_root.Text(type + 2);
Die();
}
}
}
if (zposition < 10) {
Die();
}
}
}
Symbol 304 MovieClip [__Packages.ShapeLevel] Frame 0
class ShapeLevel extends DodgeBLevel
{
var blankLevel, blank, death, NextLevel, finalDeath, Die, spinner, Random, Height, Depth, B;
function ShapeLevel (Z) {
super();
Ran.push([Math.round(Math.random() * 1), Math.round(Math.random() * 1), Math.round(Math.random() * 1), 0, Math.round(Math.random() * 1), Math.round(Math.random() * 1), Math.round(Math.random() * 1), Math.round(Math.random() * 1), Math.round(Math.random() * 1)]);
_root.zspeed = Z;
if (_root.Level[_root.levelCounter + 1] == "E") {
blankLevel = 575;
blank = true;
}
}
function Timer(Void) {
if (!death) {
NextLevel--;
blankLevel--;
}
if ((NextLevel < 1) && (blankLevel < 1)) {
death = true;
finalDeath = true;
Die();
}
if ((blankLevel > 75) or (!blank)) {
_root.timer--;
}
if (_root.timer == 0) {
timerB--;
Arrange();
_root.timer = Math.round(700 / (_root.zspeed * 14));
}
if (timerB == -3) {
Create();
}
}
function Create(Void) {
spinner = Math.round(Math.random() * 10);
switch (spinner) {
case 0 :
Choice = O.concat();
break;
case 1 :
Choice = Square.concat();
break;
case 2 :
Choice = Diamond.concat();
break;
case 3 :
Choice = O.concat();
break;
case 4 :
Choice = U.concat();
break;
case 5 :
Choice = V.concat();
break;
case 6 :
Choice = Triangle.concat();
break;
default :
Ran = [[Math.round(Math.random() * 1), Math.round(Math.random() * 1), Math.round(Math.random() * 1), 0, Math.round(Math.random() * 1), Math.round(Math.random() * 1), Math.round(Math.random() * 1), Math.round(Math.random() * 1), Math.round(Math.random() * 1)]];
Choice = Ran.concat();
}
Random = Math.round((Math.random() * 100) - 50);
timerB = Choice.length;
}
function Arrange(Void) {
if (timerB >= 0) {
_root.i = 0;
while (_root.i < Choice[timerB].length) {
if (Choice[timerB][_root.i] == 1) {
_root.depth++;
_root["Shape" + (_root.depth * 100)] = new Shape(_root.sCube.concat(), _root.xCube.concat(), _root.yCube.concat(), _root.zCube.concat(), ((10 * _root.i) - 25) + Random, Height, Depth, 5, _root.depth * 100, [B, B, B, B]);
}
_root.i++;
}
}
}
var Heart = new Array([0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0], [0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0], [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0], [0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0], [0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]);
var Square = new Array([1, 1, 1, 1, 1], [1, 0, 0, 0, 1], [1, 0, 0, 0, 1], [1, 0, 0, 0, 1], [1, 1, 1, 1, 1]);
var Diamond = new Array([0, 0, 1, 0, 0], [0, 1, 0, 1, 0], [1, 0, 0, 0, 1], [0, 1, 0, 1, 0], [0, 0, 1, 0, 0]);
var O = new Array([0, 1, 1, 1, 1, 1, 0], [0, 1, 0, 0, 0, 1, 0], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [0, 1, 0, 0, 0, 1, 0], [0, 1, 1, 1, 1, 1, 0]);
var U = new Array([0, 1, 1, 1, 1, 1, 0], [0, 1, 0, 0, 0, 1, 0], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1]);
var V = new Array([0, 0, 0, 1, 0, 0, 0], [0, 0, 1, 0, 1, 0, 0], [0, 0, 1, 0, 1, 0, 0], [0, 1, 0, 0, 0, 1, 0], [0, 1, 0, 0, 0, 1, 0], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1]);
var Triangle = new Array([0, 0, 0, 1, 0, 0, 0], [0, 0, 1, 0, 1, 0, 0], [0, 0, 1, 0, 1, 0, 0], [0, 1, 0, 0, 0, 1, 0], [0, 1, 0, 0, 0, 1, 0], [1, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1]);
var Ran = new Array();
var Choice = new Array();
var timerB = 0;
}
Symbol 305 MovieClip [__Packages.InvaderLevel] Frame 0
class InvaderLevel extends ShapeLevel
{
var blankLevel, blank, death, NextLevel, finalDeath, Die, timerB, spinner, Choice, Random, Height, Depth, A, B, C;
function InvaderLevel (Z) {
super();
_root.zspeed = Z;
if (_root.Level[_root.levelCounter + 1] == "E") {
blankLevel = 575;
blank = true;
}
_root.Text(10);
}
function Timer(Void) {
if (!death) {
NextLevel--;
blankLevel--;
}
if ((NextLevel < 1) && (blankLevel < 1)) {
death = true;
finalDeath = true;
Die();
}
if ((blankLevel > 75) or (!blank)) {
_root.timer--;
}
if (_root.timer == 0) {
timerB--;
Arrange();
_root.timer = Math.round(700 / (_root.zspeed * 14));
}
if (timerB == -3) {
Create();
}
}
function Create(Void) {
spinner = Math.round(Math.random() * 13);
switch (spinner) {
case 0 :
Choice = Line.concat();
break;
case 1 :
Choice = DoubleLine.concat();
break;
case 2 :
Choice = V.concat();
break;
case 3 :
Choice = Parallel.concat();
break;
case 4 :
Choice = Vert.concat();
break;
case 5 :
Choice = Vb.concat();
break;
case 6 :
Choice = ShootLine.concat();
break;
case 7 :
Choice = ShootLineb.concat();
break;
case 8 :
Choice = ShootLineFinal.concat();
break;
case 9 :
Choice = Box.concat();
break;
case 10 :
Choice = Boxb.concat();
break;
case 11 :
Choice = Arrow.concat();
break;
default :
Choice = Tripple.concat();
}
Choice.reverse();
Random = Math.round((Math.random() * 100) - 50);
timerB = Choice.length;
}
function Arrange(Void) {
if (timerB >= 0) {
_root.i = 0;
while (_root.i < Choice[timerB].length) {
if (Choice[timerB][_root.i] == 1) {
_root.depth++;
_root["Shape" + (_root.depth * 100)] = new LineInvader(_root.sTri.concat(), _root.xTri.concat(), _root.yTri.concat(), _root.zTri.concat(), ((10 * _root.i) - 25) + Random, Height, Depth, 5, _root.depth * 100, [A, A]);
}
if (Choice[timerB][_root.i] == 2) {
_root.depth++;
_root["Shape" + (_root.depth * 100)] = new LineInvaderShoot(_root.sSPyr.concat(), _root.xSPyr.concat(), _root.ySPyr.concat(), _root.zSPyr.concat(), ((10 * _root.i) - 25) + Random, Height, Depth, 5, _root.depth * 100, [B, B, B, B, B, B]);
}
if (Choice[timerB][_root.i] == 3) {
_root.depth++;
_root["Shape" + (_root.depth * 100)] = new LineInvaderBurst(_root.sOct.concat(), _root.xOct.concat(), _root.yOct.concat(), _root.zOct.concat(), ((10 * _root.i) - 25) + Random, Height, Depth, 5, _root.depth * 100, [C, C, C, C, C, C]);
}
if (Choice[timerB][_root.i] == 4) {
_root.depth++;
_root["Shape" + (_root.depth * 100)] = new LineInvaderSide(_root.sTri.concat(), _root.xTri.concat(), _root.yTri.concat(), _root.zTri.concat(), ((10 * _root.i) - 25) + Random, Height, Depth, 5, _root.depth * 100, [A, A]);
}
_root.i++;
}
}
}
var Line = new Array([1, 2, 1, 2, 1]);
var DoubleLine = new Array([2, 2, 2, 2, 2], [1, 1, 1, 1, 1]);
var V = new Array([0, 0, 2, 0, 0], [0, 1, 0, 1, 0], [2, 0, 1, 0, 2]);
var Parallel = new Array([2, 0, 0, 0, 2], [1, 0, 0, 0, 1], [1, 0, 0, 0, 1], [1, 0, 0, 0, 1]);
var Vert = new Array([0, 0, 4, 0, 0], [0, 0, 4, 0, 0], [0, 0, 4, 0, 0], [0, 0, 4, 0, 0], [0, 0, 3, 0, 0]);
var Vb = new Array([0, 0, 3, 0, 0], [0, 1, 0, 1, 0], [2, 0, 0, 0, 2], [1, 0, 4, 0, 1]);
var ShootLine = new Array([1, 1, 3, 1, 1]);
var ShootLineb = new Array([1, 2, 3, 2, 1]);
var ShootLineFinal = new Array([3, 1, 2, 1, 3]);
var Box = new Array([1, 1, 1, 1, 1], [1, 0, 0, 0, 1], [1, 0, 0, 0, 1], [1, 1, 1, 1, 1]);
var Boxb = new Array([0, 1, 1, 1, 0], [0, 1, 1, 1, 0], [0, 1, 1, 1, 0]);
var Arrow = new Array([0, 0, 1, 0, 0], [0, 1, 1, 1, 0], [1, 1, 0, 1, 1], [1, 0, 0, 0, 1]);
var Tripple = new Array([1, 0, 1, 0, 1], [1, 0, 1, 0, 1], [1, 0, 1, 0, 1], [1, 0, 1, 0, 1], [1, 0, 1, 0, 1], [1, 0, 1, 0, 1]);
}
Symbol 306 MovieClip [__Packages.Invader] Frame 0
class Invader extends FormThreeSort
{
var shape, xposit, yposit, zposit, color, wide, i, xposition, yposition, zposition, depth, Die, Explode, Move;
function Invader (S, X, Y, Z, xPo, yPo, zPo, W, instance, col) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
color = col;
wide = W;
i = 0;
while (i < xposit.length) {
xposit[i] = xposit[i] + xPo;
yposit[i] = yposit[i] + yPo;
zposit[i] = zposit[i] + zPo;
i++;
}
xposition = xPo;
yposition = yPo;
zposition = zPo;
depth = instance;
}
function Colide(Void) {
if (Math.abs(zposition - _root.Shape0.zposition) < (8 + wide)) {
if (Math.abs(yposition - _root.Shape0.yposition) < wide) {
if (Math.abs(xposition - _root.Shape0.xposition) < (8 + wide)) {
if (_root.Shape0.shield < 1) {
_root.Shape0.Wings(xposition);
}
if (Math.abs(xposition - _root.Shape0.xposition) < (3 + wide)) {
if (_root.Shape0.shield < 1) {
_root.playerDead = true;
_root.Shape0.Die();
_root.Level0.Die();
}
Die();
}
Explode();
}
}
}
if (zposition < 10) {
Die();
}
}
function Frame(xspeed, yspeed, zspeed) {
Move(xspeed, yspeed, zspeed);
Colide();
}
}
Symbol 307 MovieClip [__Packages.LineInvader] Frame 0
class LineInvader extends Invader
{
var shape, xposit, yposit, zposit, color, A, wide, xspd, i, xposition, yposition, zposition, depth;
function LineInvader (S, X, Y, Z, xPo, yPo, zPo, W, instance, col) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
color = col;
A = color[0];
wide = W;
xspd = 0;
i = 0;
while (i < xposit.length) {
xposit[i] = xposit[i] + xPo;
yposit[i] = yposit[i] + yPo;
zposit[i] = zposit[i] + zPo;
i++;
}
xposition = xPo;
yposition = yPo;
zposition = zPo;
depth = instance;
}
}
Symbol 308 MovieClip [__Packages.LineInvaderShoot] Frame 0
class LineInvaderShoot extends Invader
{
var shape, xposit, yposit, zposit, color, wide, i, xposition, yposition, zposition, depth, Die, Explode;
function LineInvaderShoot (S, X, Y, Z, xPo, yPo, zPo, W, instance, col) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
color = col;
wide = W;
A = color[0];
i = 0;
while (i < xposit.length) {
xposit[i] = xposit[i] + xPo;
yposit[i] = yposit[i] + yPo;
zposit[i] = zposit[i] + zPo;
i++;
}
xposition = xPo;
yposition = yPo;
zposition = zPo;
depth = instance;
}
function Fire(Void) {
if (fire > 0) {
_root.depth++;
_root["Shape" + (_root.depth * 100)] = new EnemyBullet(xposition, yposition, zposition - 10, 1.5, _root.depth * 100, A, 3, 0);
fire--;
}
}
function Colide(Void) {
if (Math.abs(xposition - _root.Shape0.xposition) < (8 + wide)) {
if (Math.abs(zposition - _root.Shape0.zposition) < (8 + wide)) {
if (Math.abs(yposition - _root.Shape0.yposition) < wide) {
if (_root.Shape0.shield < 1) {
_root.Shape0.Wings(xposition);
}
if (Math.abs(xposition - _root.Shape0.xposition) < (3 + wide)) {
if (_root.Shape0.shield < 1) {
_root.playerDead = true;
_root.Shape0.Die();
_root.Level0.Die();
}
Die();
}
Explode();
}
}
Fire();
}
if (zposition < 10) {
Die();
}
}
var fire = 1;
var A = 16763904;
}
Symbol 309 MovieClip [__Packages.EnemyBullet] Frame 0
class EnemyBullet
{
var xposition, yposition, zposition, multi, depth, color, wide, xspd, holder;
function EnemyBullet (xPo, yPo, zPo, spd, instance, Col, W, X) {
xposition = xPo;
yposition = yPo;
zposition = zPo;
multi = spd;
depth = instance;
color = Col;
wide = W;
xspd = X;
}
function Frame(xspeed, yspeed, zspeed) {
xposition = xposition - ((xspeed + xspd) * multi);
yposition = yposition - (yspeed * multi);
zposition = zposition - (zspeed * multi);
Colide();
}
function Draw(Void) {
holder = _root.per / zposition;
_root["cube" + depth].removeMovieClip();
_root.instance++;
_root.createEmptyMovieClip("cube" + depth, _root.instance);
_root["cube" + depth].lineStyle(0, color, 0);
_root["cube" + depth].beginFill(color);
_root["cube" + depth].moveTo(xposition * holder, yposition * holder);
_root["cube" + depth].lineTo((xposition + 1) * holder, yposition * holder);
_root["cube" + depth].lineTo((xposition + 2) * holder, (yposition - 1) * holder);
_root["cube" + depth].lineTo((xposition + 2) * holder, (yposition - 2) * holder);
_root["cube" + depth].lineTo((xposition + 1) * holder, (yposition - 3) * holder);
_root["cube" + depth].lineTo((xposition - 1) * holder, (yposition - 3) * holder);
_root["cube" + depth].lineTo((xposition - 2) * holder, (yposition - 2) * holder);
_root["cube" + depth].lineTo((xposition - 2) * holder, (yposition - 1) * holder);
_root["cube" + depth].lineTo((xposition - 1) * holder, yposition * holder);
_root["cube" + depth].lineTo(xposition * holder, yposition * holder);
_root["cube" + depth].endFill();
}
function Colide(Void) {
if (Math.abs(zposition - _root.Shape0.zposition) < (8 + wide)) {
if (Math.abs(yposition - _root.Shape0.yposition) < wide) {
if (Math.abs(xposition - _root.Shape0.xposition) < (8 + wide)) {
if (_root.Shape0.shield < 1) {
_root.Shape0.Wings(xposition);
}
if (Math.abs(xposition - _root.Shape0.xposition) < (3 + wide)) {
if (_root.Shape0.shield < 1) {
_root.playerDead = true;
_root.Shape0.Die();
_root.Level0.Die();
}
Die();
}
}
}
}
if (zposition < 10) {
Die();
}
}
function DepthSort(Void) {
_root.drawOrder.push([Math.sqrt((Math.pow(zposition, 2) + Math.pow(xposition, 2)) + Math.pow(yposition, 2)), 0, depth]);
}
function Die(Void) {
_root["cube" + depth].removeMovieClip();
_root.Remove("Shape", depth);
}
}
Symbol 310 MovieClip [__Packages.LineInvaderBurst] Frame 0
class LineInvaderBurst extends LineInvaderShoot
{
var shape, xposit, yposit, zposit, color, wide, fire, i, xposition, yposition, zposition, depth;
function LineInvaderBurst (S, X, Y, Z, xPo, yPo, zPo, W, instance, col) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
color = col;
wide = W;
fire = 3;
A = color[0];
i = 0;
while (i < xposit.length) {
xposit[i] = xposit[i] + xPo;
yposit[i] = yposit[i] + yPo;
zposit[i] = zposit[i] + zPo;
i++;
}
xposition = xPo;
yposition = yPo;
zposition = zPo;
depth = instance;
}
function Fire(Void) {
if (fire > 0) {
i = 0;
while (i < fire) {
_root.depth++;
_root["Shape" + (_root.depth * 100)] = new EnemyBullet(xposition, yposition, zposition - 10, 1.5, _root.depth * 100, A, 3, (0.1 * i) - 0.1);
i++;
}
}
fire = 0;
}
var A = 13369412;
}
Symbol 311 MovieClip [__Packages.LineInvaderSide] Frame 0
class LineInvaderSide extends Invader
{
var shape, xposit, yposit, zposit, color, wide, A, i, xposition, yposition, zposition, depth, Move, Colide;
function LineInvaderSide (S, X, Y, Z, xPo, yPo, zPo, W, instance, col) {
super();
shape = S;
xposit = X;
yposit = Y;
zposit = Z;
color = col;
wide = W;
A = color[0];
i = 0;
while (i < xposit.length) {
xposit[i] = xposit[i] + xPo;
yposit[i] = yposit[i] + yPo;
zposit[i] = zposit[i] + zPo;
i++;
}
xposition = xPo;
yposition = yPo;
zposition = zPo;
depth = instance;
}
function Direction(Void) {
if (xspd > 1) {
up = false;
}
if (xspd < -1) {
up = true;
}
if (up) {
xspd = xspd + 0.1;
} else {
xspd = xspd - 0.1;
}
}
function Frame(xspeed, yspeed, zspeed) {
Direction();
Move(xspeed + xspd, yspeed, zspeed);
Colide();
}
var xspd = 0;
var up = true;
}
Symbol 269 MovieClip [__Packages.com.j3r.components.JFPS] Frame 0
class com.j3r.components.JFPS extends MovieClip
{
function JFPS () {
var _local1 = this;
super();
AsBroadcaster.initialize(_local1);
_local1.__arrMostRecentFrameRenderingTimes = new Array();
var _local2 = _local1.__numSecondsToAverage * 1000;
_local1.__numBroadcastOnAveragedID = setInterval(_local1, "__broadCastFPSCalculated", _local2);
}
function broadcastMessage(strMessage, objData) {
}
function addListener(refListener) {
}
function removeListener(refListener) {
}
function onFrameLag(numFrameLag) {
}
function onFPSCalculated(numFPS) {
}
function __updateMostRecentFrameRenderingTimes() {
var _local1 = this;
var _local2 = _local1.__numSecondsToAverage * _local1.__numFrameRate;
_local1.__arrMostRecentFrameRenderingTimes.push(getTimer());
if (_local1.__arrMostRecentFrameRenderingTimes.length > _local2) {
_local1.__arrMostRecentFrameRenderingTimes.shift();
}
}
function __getAverageMillisecondsPerFrame() {
var _local1 = this;
var _local3 = _local1.__arrMostRecentFrameRenderingTimes[_local1.__arrMostRecentFrameRenderingTimes.length - 1];
var _local2 = _local1.__arrMostRecentFrameRenderingTimes[0];
var numNumberOfFrameSpeeds = _local1.__arrMostRecentFrameRenderingTimes.length;
return((_local3 - _local2) / numNumberOfFrameSpeeds);
}
function __getFPS() {
var _local2 = 1000 / __getAverageMillisecondsPerFrame();
var _local1 = Math.round(_local2);
return(_local1);
}
function __broadCastFPSCalculated() {
var _local1 = this;
var _local2 = _local1.__getFPS();
_local1.broadcastMessage("onFPSCalculated", _local2);
_local1.onFPSCalculated(_local2);
clearInterval(_local1.__numBroadcastOnAveragedID);
}
function __broadcastFrameLag(numFPS) {
var _local2 = this;
var _local1 = _local2.__numFrameRate - numFPS;
if ((_local1 > 0) && (_local1 != Infinity)) {
_local2.broadcastMessage("onFrameLag", _local1);
_local2.onFrameLag(_local1);
}
}
function onEnterFrame() {
var _local1 = this;
_local1.__updateMostRecentFrameRenderingTimes();
var _local2 = _local1.__getFPS();
_local1.__txtCurrentFPS.text = _local1.__getFPS().toString();
_local1.__broadcastFrameLag(_local2);
}
}
Symbol 276 MovieClip Frame 1
stop();