Frame 1
function goto() {
gotoAndStop (52);
}
stop();
MENU = new ContextMenu();
MENU.hideBuiltInItems();
_root.menu = MENU;
Instance of Symbol 109 MovieClip in Frame 1
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
framesLoaded = Math.ceil((loaded / total) * 100);
gotoAndStop(framesLoaded);
status.text = framesLoaded + " % completed";
if (framesLoaded >= 100) {
_root.gotoAndStop(2);
}
}
Instance of Symbol 121 MovieClip in Frame 1
onClipEvent (load) {
k = 0;
}
onClipEvent (enterFrame) {
gwg = this.attachMovie("star", "star" + k, k++);
gwg._alpha = 20;
gwg._rotation = random(360);
}
Frame 2
stop();
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
Instance of Symbol 121 MovieClip in Frame 20
onClipEvent (load) {
k = 0;
i = 0;
while (i < 50) {
gwg = this.attachMovie("star", "star" + k, k++);
gwg._alpha = 100;
gwg._xscale = random(200) + 100;
gwg._yscale = gwg._xscale;
gwg._rotation = random(360);
i++;
}
}
onClipEvent (enterFrame) {
gwg = this.attachMovie("star", "star" + k, k++);
gwg._alpha = 20;
gwg._rotation = random(360);
}
Frame 50
stop();
Frame 51
stop();
Frame 52
function levels() {
wereReady = true;
r = 0;
while (r < maxNum) {
if (spinnerList[r] == true) {
wereReady = false;
}
r++;
}
if (wereReady == true) {
trace("it looks: " + spinnerList);
spawnMore();
}
}
function spawnMore() {
if (level > 25) {
choiceMove = random(7);
_root["rt" + choiceMove] = _root["rt" + choiceMove] + 4;
_root["lev" + level] = [rt1, rt2, rt3, rt4, rt5, rt6, rt0];
}
j = 0;
while (j < _root["lev" + level].length) {
r = 0;
while (r < _root["lev" + level][j]) {
loadSpin(j);
r++;
}
j++;
}
trace("loaded level " + level);
trace(_root["lev" + level]);
level++;
blubup3.start();
cctap = Math.round(Math.random() * 16777215);
var _local2 = new Color(grid.grid2);
_local2.setRGB(cctap);
}
function loadSpin(tap2) {
taken = false;
if (tap2 == 0) {
tap = "red";
} else if (tap2 == 1) {
tap = "blue";
} else if (tap2 == 2) {
tap = "green";
} else if (tap2 == 3) {
tap = "purple";
} else if (tap2 == 4) {
tap = "yellow";
} else if (tap2 == 5) {
tap = "orange";
} else if (tap2 == 6) {
tap = "black";
}
trace("load " + tap);
i = 0;
while (i < maxNum) {
if ((spinnerList[i] == false) && (taken == false)) {
spinnerList[i] = true;
taken = true;
t = attachMovie("spin", "spin" + i, _root.getNextHighestDepth());
t._x = random(450) + 50;
t._y = random(450) + 50;
t.tap = tap;
t.tappy = tap2;
t.travel = intTravel;
t.total = 0;
t.angst = random(4) + 1;
t._xscale = 125;
t._yscale = 125;
t.travelRounded = 0;
t.drawSpeed = 0;
t.totSize = 100;
t.activated = false;
trace((((((("#" + i) + ", x:") + t._x) + ", y:") + t._y) + ", color:") + t.tap);
t.xTrav = (random(20) - 10) / 10;
t.yTrav = (random(20) - 10) / 10;
if (tap == "orange") {
t._xscale = 250;
t._yscale = 250;
}
if (tap == "yellow") {
t.xTrav = (random(40) - 20) / 5;
t.yTrav = (random(40) - 20) / 5;
}
if (tap == "black") {
t.xTrav = (random(80) - 40) / 5;
t.yTrav = (random(80) - 40) / 5;
t._xscale = 20;
t._yscale = 20;
}
t.active = false;
t.onEnterFrame = function () {
if (cstatus == 1) {
if (this.tap == "blue") {
this.spikes.wings.gotoAndStop(1);
this.bgc.gotoAndStop(1);
this.colorType = "blue";
}
if (this.tap == "red") {
this.spikes.wings.gotoAndStop(2);
this.bgc.gotoAndStop(2);
this.colorType = "red";
}
if (this.tap == "green") {
this.spikes.wings.gotoAndStop(3);
this.bgc.gotoAndStop(3);
this.colorType = "green";
}
if (this.tap == "purple") {
this.spikes.wings.gotoAndStop(4);
this.bgc.gotoAndStop(4);
this.colorType = "purple";
}
if (this.tap == "yellow") {
this.spikes.wings.gotoAndStop(5);
this.bgc.gotoAndStop(5);
this.colorType = "yellow";
}
if (this.tap == "orange") {
this.spikes.wings.gotoAndStop(6);
this.bgc.gotoAndStop(6);
this.colorType = "orange";
}
if (this.tap == "black") {
this.spikes.wings.gotoAndStop(7);
this.bgc.gotoAndStop(7);
this.colorType = "black";
}
if (this.active == true) {
if ((((this.colorType == "red") || (this.colorType == "blue")) || (this.colorType == "orange")) || (this.colorType == "black")) {
while (this._x > right._x) {
this._x--;
this.xTrav = Math.abs(this.xTrav) * -1;
}
while (this._x < left._x) {
this._x++;
this.xTrav = Math.abs(this.xTrav);
}
while (this._y < top._y) {
this._y++;
this.yTrav = Math.abs(this.yTrav);
}
while (this._y > bottom._y) {
this._y--;
this.yTrav = Math.abs(this.yTrav) * -1;
}
}
if (this.colorType == "green") {
this._x = this._x - ((this.angst * 0.01) * ((this._x - ship._x) / 2));
this._y = this._y - ((this.angst * 0.01) * ((this._y - ship._y) / 2));
while (this._x > right._x) {
this._x--;
}
while (this._x < left._x) {
this._x++;
}
while (this._y < top._y) {
this._y++;
}
while (this._y > bottom._y) {
this._y--;
}
}
if (this.colorType == "purple") {
if (getDistance(this._x, this._y, ship._x, ship._y) < 200) {
this._x = this._x + (0.04 * ((this._x - ship._x) / 2));
this._y = this._y + (0.04 * ((this._y - ship._y) / 2));
while (this._x > right._x) {
this._x--;
}
while (this._x < left._x) {
this._x++;
}
while (this._y < top._y) {
this._y++;
}
while (this._y > bottom._y) {
this._y--;
}
} else {
while (this._x > right._x) {
this._x--;
this.xTrav = Math.abs(this.xTrav) * -1;
}
while (this._x < left._x) {
this._x++;
this.xTrav = Math.abs(this.xTrav);
}
while (this._y < top._y) {
this._y++;
this.yTrav = Math.abs(this.yTrav);
}
while (this._y > bottom._y) {
this._y--;
this.yTrav = Math.abs(this.yTrav) * -1;
}
}
}
if (this.colorType == "yellow") {
while (this._x > right._x) {
this._x--;
this.xTrav = Math.abs(this.xTrav) * -1;
}
while (this._x < left._x) {
this._x++;
this.xTrav = Math.abs(this.xTrav);
}
while (this._y < top._y) {
this._y++;
this.yTrav = Math.abs(this.yTrav);
}
while (this._y > bottom._y) {
this._y--;
this.yTrav = Math.abs(this.yTrav) * -1;
}
}
this._rotation = this._rotation + (this.travel / 4);
this.points._rotation = this.points._rotation - (this.travel / 4);
this.travel = this.travel - decel;
this._x = this._x + this.xTrav;
this._y = this._y + this.yTrav;
if (this.travel <= 10) {
this.travel = 10;
}
if (this.travel <= 20) {
}
if (this.travel > 60) {
if (this.total >= (particleLaunch * 2)) {
l = 0;
while (l < 2) {
spawnStar(this._x, this._y);
spawnRing(this._x, this._y);
this.total = 0;
l++;
}
} else if (this.total >= particleLaunch) {
spawnStar(this._x, this._y);
spawnRing(this._x, this._y);
this.total = 0;
}
}
if (this.travel > 100) {
this.radius.inside.play();
}
if (this.travel >= travelTops) {
this.travel = travelTops;
}
if (this.travel > 10) {
this.drawSpeed = this.travel / 10000;
}
i = 0;
while (i < maxNum) {
if (((((this.travel >= 60) && (_root["spin" + i].travel >= 60)) && (_root["spin" + i]._name != this._name)) && (this.colorType == _root["spin" + i].colorType)) && (_root["spin" + i].activated == false)) {
this.finalCount = 0;
_root["spin" + i].activated = true;
doopy.start();
g = _root.createEmptyMovieClip(i, _root.getNextHighestDepth());
this.num = i;
this.num2 = "spin" + i;
g.lineStyle(10, 16777215, 50);
g.moveTo(this._x, this._y);
g.lineTo(_root["spin" + i]._x, _root["spin" + i]._y);
g.countdown = 30;
g.counter = 0;
g.onEnterFrame = function () {
if (_root.cstatus == 1) {
this.counter++;
if (this.counter > this.countdown) {
this.removeMovieClip();
}
}
};
this.onEnterFrame = function () {
if (_root.cstatus == 1) {
this.finalCount++;
this._xscale = this._xscale + 1;
this._yscale = this._yscale + 1;
this.radius.inside.play();
this._rotation = this._rotation + this.finalCount;
if (this.colorType == "blue") {
loader.lineStyle(random(5) + 2, 255, 50);
loader.moveTo(this._x, this._y);
loader.curveTo(this._x + random(100), this._y + random(100), _root[this.num2]._x, _root[this.num2]._y);
} else if (this.colorType == "red") {
loader.lineStyle(random(5) + 2, 16711680, 50);
loader.moveTo(this._x, this._y);
loader.curveTo(this._x + random(100), this._y + random(100), _root[this.num2]._x, _root[this.num2]._y);
} else if (this.colorType == "green") {
loader.lineStyle(random(5) + 2, 26112, 50);
loader.moveTo(this._x, this._y);
loader.curveTo(this._x + random(100), this._y + random(100), _root[this.num2]._x, _root[this.num2]._y);
} else if (this.colorType == "purple") {
loader.lineStyle(random(5) + 2, 26265, 50);
loader.moveTo(this._x, this._y);
loader.curveTo(this._x + random(100), this._y + random(100), _root[this.num2]._x, _root[this.num2]._y);
} else if (this.colorType == "yellow") {
loader.lineStyle(random(5) + 2, 16776960, 50);
loader.moveTo(this._x, this._y);
loader.curveTo(this._x + random(100), this._y + random(100), _root[this.num2]._x, _root[this.num2]._y);
} else if (this.colorType == "orange") {
loader.lineStyle(random(5) + 2, 16750848, 50);
loader.moveTo(this._x, this._y);
loader.curveTo(this._x + random(100), this._y + random(100), _root[this.num2]._x, _root[this.num2]._y);
} else if (this.colorType == "black") {
loader.lineStyle(random(5) + 2, 0, 50);
loader.moveTo(this._x, this._y);
loader.curveTo(this._x + random(100), this._y + random(100), _root[this.num2]._x, _root[this.num2]._y);
}
loader.lineStyle(random(5) + 2, 16777215, 50);
loader.moveTo(this._x, this._y);
loader.curveTo(this._x - random(100), this._y - random(100), _root[this.num2]._x, _root[this.num2]._y);
if (this.finalCount == 40) {
l = 0;
while (l < 10) {
spawnStar(this._x, this._y);
spawnStar2(this._x, this._y);
l++;
}
w = attachMovie("spin2", "s" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
w._x = this._x;
w._y = this._y;
w._xscale = this._xscale;
w._yscale = this._yscale;
loader.removeMovieClip();
_root[this.num].removeMovieClip();
spinnerList[this.num] = false;
if (this.colorType == "blue") {
score = score + 25;
}
if (this.colorType == "red") {
score = score + 25;
}
if (this.colorType == "green") {
score = score + 50;
}
if (this.colorType == "purple") {
score = score + 75;
}
if (this.colorType == "yellow") {
score = score + 100;
}
if (this.colorType == "orange") {
score = score + 150;
}
if (this.colorType == "black") {
score = score + 250;
}
_root.kills++;
this.removeMovieClip();
}
}
};
}
i++;
}
if (this._xscale < this.totSize) {
this._xscale = this._xscale - (0.07 * ((this._xscale - this.totSize) / 2));
this._yscale = this._yscale - (0.07 * ((this._yscale - this.totSize) / 2));
}
this.radius._xscale = (this.travel / travelTops) * 100;
this.radius._yscale = this.radius._xscale;
this.travelRounded = Math.floor(this.travel);
this.total = this.total + this.travel;
this.star._xscale = this.travel + 100;
this.star._yscale = this.travel + 100;
this.spikes.wings._alpha = (this.travel / travelTops) * 100;
}
}
};
}
i++;
}
}
function spawnStar(g1, g2) {
g = attachMovie("star", "star" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
g._x = g1;
g._y = g2;
g._xscale = random(80);
g._yscale = g._xscale;
g._rotation = random(360);
}
function spawnStar2(g1, g2) {
g = attachMovie("star2", "star" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
g._x = g1;
g._y = g2;
g._xscale = random(150);
g._yscale = g._xscale;
g._rotation = random(360);
g.shape = random(2);
g.onEnterFrame = function () {
if (_root.cstatus == 1) {
this._rotation = this._rotation + this.shape;
}
};
}
function spawnRing(r1, r2) {
f = attachMovie("ring", "ring" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
f._x = r1;
f._y = r2;
f._xscale = random(50) + 100;
f._yscale = random(150) + 30;
f._rotation = random(360);
f = attachMovie("ring2", "ring" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
f._x = r1;
f._y = r2;
f._xscale = random(50) + 100;
f._yscale = random(150) + 30;
f._rotation = random(360);
f = attachMovie("ring3", "ring" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
f._x = r1;
f._y = r2;
f._xscale = random(50) + 100;
f._yscale = random(150) + 30;
f._rotation = random(360);
}
function bumpScreen() {
bottomLimit = -5;
topLimit = 5;
_root._x = _root._x + (1 - random(3));
_root._y = _root._y + (1 - random(3));
if (_root._x <= bottomLimit) {
_root._x = bottomLimit;
}
if (_root._x >= topLimit) {
_root._x = topLimit;
}
if (_root._y <= bottomLimit) {
_root._y = bottomLimit;
}
if (_root._y >= topLimit) {
_root._y = topLimit;
}
}
function shipControl() {
if ((ship._x >= left._x) && (ship._x <= right._x)) {
dirValX = 0.05 * ((ship._x - _xmouse) / 2);
ship._x = ship._x - dirValX;
}
if ((ship._y >= top._y) && (ship._y <= bottom._y)) {
dirValY = 0.05 * ((ship._y - _ymouse) / 2);
ship._y = ship._y - dirValY;
}
if (!ship.hitTest(_xmouse, _ymouse)) {
thrustParticle();
}
while (ship._x < left._x) {
ship._x++;
}
while (ship._x > right._x) {
ship._x--;
}
while (ship._y < top._y) {
ship._y++;
}
while (ship._y > bottom._y) {
ship._y--;
}
circx = ship._x;
circy = ship._y;
pointx = _xmouse;
pointy = _ymouse;
if ((circx < pointx) && (circy < pointy)) {
angle = Math.atan(Math.abs(circy - pointy) / Math.abs(circx - pointx));
degrees = (angle * 180) / Math.PI;
ship._rotation = degrees + 90;
}
if ((circx < pointx) && (circy > pointy)) {
angle = Math.atan(Math.abs(circy - pointy) / Math.abs(circx - pointx));
degrees = (angle * 180) / Math.PI;
ship._rotation = 90 - degrees;
}
if ((circx > pointx) && (circy < pointy)) {
angle = Math.atan(Math.abs(circx - pointx) / Math.abs(circy - pointy));
degrees = (angle * 180) / Math.PI;
ship._rotation = -(180 - degrees);
}
if ((circx > pointx) && (circy > pointy)) {
angle = Math.atan(Math.abs(circy - pointy) / Math.abs(circx - pointx));
degrees = (angle * 180) / Math.PI;
ship._rotation = -(90 - degrees);
}
}
function shootClosest() {
shortestTotal = 100000000 /* 0x5F5E100 */;
shortest = -5;
q = 0;
while (q < maxNum) {
if (_root["spin" + q].active == true) {
xpos1 = _root["spin" + q]._x;
xpos2 = ship._x;
ypos1 = _root["spin" + q]._y;
ypos2 = ship._y;
calcShortest = getDistance(xpos1, ypos1, xpos2, ypos2);
if (calcShortest < shortestTotal) {
shortest = q;
globalShortest = q;
shortestTotal = calcShortest;
}
}
q++;
}
if (shipStatus == "alive") {
loader2.lineStyle(1, 13421823, 100);
loader2.moveTo(ship._x, ship._y);
if (shortestTotal < 1000) {
loader2.lineTo(_root["spin" + shortest]._x, _root["spin" + shortest]._y);
}
}
}
function getDistance(x1, y1, x2, y2) {
return(Math.abs(Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2))));
}
function thrustParticle() {
if (shipStatus == "alive") {
camper = random(3);
if (camper == 0) {
tg = _root.attachMovie("yellowBlock", "yellowBlock" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
} else if (camper == 1) {
tg = _root.attachMovie("redBlock", "redBlock" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
} else if (camper == 2) {
tg = _root.attachMovie("orangeBlock", "orangeBlock" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
tg._x = (ship._x + random(8)) - 4;
tg._y = (ship._y + random(8)) - 4;
tg._rotation = ship._rotation;
}
}
function hitEnemy() {
if (shipStatus == "alive") {
i = 0;
while (i < maxNum) {
if (ship.hitTest(_root["spin" + i].area)) {
trace("hit!");
lives--;
dead3.start();
if (lives == 0) {
death();
} else {
ww = _root.createEmptyMovieClip("kata", _root.getNextHighestDepth());
ww._x = ship._x;
ww._y = ship._y;
shipStatus = "dead";
ship._visible = false;
ww.counter = 0;
ww.goal = 50;
ww.setX = ship._x;
ww.setY = ship._y;
ww.onEnterFrame = function () {
if (_root.cstatus == 1) {
this.counter++;
vcam._xscale = 100 * (50 - this.goal);
vcam._yscale = 100 * (50 - this.goal);
if (this.counter >= this.goal) {
respawnShip();
this.removeMovieClip();
}
if (this.counter < 20) {
u = 0;
while (u < 20) {
gs = _root.attachMovie("shipExplode", "ship" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
gs._rotation = random(360);
gs._xscale = random(200) + 50;
gs._yscale = random(200) + 50;
gs._x = this.setX;
gs._y = this.setY;
ctap = Math.round(Math.random() * 16777215);
var _local3 = new Color(gs);
_local3.setRGB(ctap);
u++;
}
}
if (this.counter <= (this.goal / 2)) {
this.cctap = Math.round(Math.random() * 16777215);
var _local3 = new Color(_root.grid.grid2);
_local3.setRGB(this.cctap);
}
}
};
}
}
i++;
}
}
}
function respawnShip() {
ship._visible = true;
ship.onEnterFrame = function () {
if (_root.cstatus == 1) {
vcam._x = ship._x;
vcam._y = ship._y;
vcam._xscale = (this.counter / 70) * 100;
vcam._yscale = (this.counter / 70) * 100;
this.counter++;
this._alpha = 100 * (this.counter % 4);
if (this.counter >= 70) {
_root.shipStatus = "alive";
ship._visible = true;
ship._alpha = 100;
ship.counter = 0;
this.onEnterFrame = null;
}
}
};
}
function attackEnemy() {
if (_root.cstatus == 1) {
if (((!_root["spin" + globalShortest]._x) == 0) && (shipStatus == "alive")) {
loader2.lineStyle(6, 13421823, 100);
loader2.moveTo(ship._x, ship._y);
loader2.lineTo(_root["spin" + globalShortest]._x, _root["spin" + globalShortest]._y);
loader2.lineStyle(3, Math.round(Math.random() * 16777215), 100);
loader2.moveTo(ship._x, ship._y);
loader2.lineTo(_root["spin" + globalShortest]._x, _root["spin" + globalShortest]._y);
loader3.lineStyle(6, 13421823, 100);
loader3.moveTo(ship._x, ship._y);
loader3.lineTo(_root["spin" + globalShortest]._x, _root["spin" + globalShortest]._y);
loader3.lineStyle(3, Math.round(Math.random() * 16777215), 100);
loader3.moveTo(ship._x, ship._y);
loader3.lineTo(_root["spin" + globalShortest]._x, _root["spin" + globalShortest]._y);
if (_root["spin" + globalShortest].active == true) {
_root["spin" + globalShortest].travel = _root["spin" + globalShortest].travel + accel;
}
}
}
}
function onMouseDown() {
attackEnemy();
clicks++;
}
function detectShoot() {
if (Key.isDown(32)) {
clicks++;
if (!keysDown) {
keysDown = true;
attackEnemy();
}
} else {
keysDown = false;
}
}
function drawAreas() {
counter++;
if (counter == 0) {
}
if (counter == 1) {
_root.loader2.removeMovieClip();
_root.createEmptyMovieClip("loader2", _root.getNextHighestDepth());
}
if (counter == 2) {
counter = 0;
_root.loader.removeMovieClip();
_root.createEmptyMovieClip("loader", _root.getNextHighestDepth());
_root.loader3.removeMovieClip();
_root.createEmptyMovieClip("loader3", _root.getNextHighestDepth());
}
}
function pauseScreen() {
if ((keyDownP == false) && (Key.isDown(80))) {
trace("pause");
keyDownP = true;
if (cstatus == 1) {
cstatus = 2;
} else if (cstatus == 2) {
cstatus = 1;
}
}
if (cstatus == 2) {
pauseWindow._x = Stage.width / 2;
pauseWindow._y = Stage.width / 2;
pauseWindow.swapDepths(_root.getNextHighestDepth());
} else {
pauseWindow._x = 50000;
}
if (!Key.isDown(80)) {
keyDownP = false;
}
}
function death() {
stopAllSounds();
dead3.start();
_root.cstatus = 0;
ship._visible = false;
ship.onEnterFrame = function () {
this.deathCounter++;
if (this.deathCounter < 20) {
e = 0;
while (e < 20) {
gs = _root.attachMovie("shipExplode", "ship" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
gs._rotation = random(360);
gs._xscale = random(200) + 50;
gs._yscale = random(200) + 50;
gs._x = this._x;
gs._y = this._y;
ctap = Math.round(Math.random() * 16777215);
var _local3 = new Color(gs);
_local3.setRGB(ctap);
e++;
}
}
if (this.deathCounter > 50) {
this.deathCounter = 0;
trace("hslist");
_root.gotoAndStop(2);
lose = _root.attachMovie("losery", "g" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
lose._x = Stage.width / 2;
lose._y = Stage.height / 2;
onEnterFrame = null;
onMouseDown = null;
ship.onEnterFrame = null;
}
};
}
function onEnterFrame() {
if (cstatus == 1) {
hitEnemy();
shipControl();
shootClosest();
levels();
detectShoot();
drawAreas();
}
pauseScreen();
}
for (var mc in _root) {
_root[mc].removeMovieClip();
}
var dead3 = new Sound();
dead3.attachSound("hard");
var doopy = new Sound();
doopy.attachSound("smalls");
var blubup3 = new Sound();
blubup3.attachSound("blubup");
ship._visible = true;
ship._alpha = 100;
var decel = 0.2;
var accel = 10;
var intTravel = 10;
var particleLaunch = 300;
var travelTops = 120;
var maxNum = 60;
var spinnerList = new Array();
var driftSpeed = 0;
var level = 0;
var score = 0;
var clicks = 0;
var finalName = "Type Name Here";
var lives = 3;
var kills = 0;
var shipStatus = "alive";
_quality = "MEDIUM";
_root.cstatus = 1;
youAcc = 0.2;
youDec = 0.2;
youSpeed = 0;
youMaxSpeed = 2;
var counter = 0;
_root.createEmptyMovieClip("loader", _root.getNextHighestDepth());
_root.createEmptyMovieClip("loader2", _root.getNextHighestDepth());
i = 0;
while (i < maxNum) {
spinnerList.push(false);
i++;
}
trace(spinnerList);
var spinColors = new Array(0, 0, 0, 0, 0, 0, 0);
var spinColors2 = new Array(true, true, true, true, true, true, true);
var lev0 = [2, 0, 0, 0, 0, 0, 0];
var lev1 = [4, 0, 0, 0, 0, 0, 0];
var lev2 = [0, 4, 0, 0, 0, 0, 0];
var lev3 = [2, 2, 0, 0, 0, 0, 0];
var lev4 = [6, 6, 0, 0, 0, 0, 0];
var lev5 = [0, 0, 4, 0, 0, 0, 0];
var lev6 = [2, 0, 4, 0, 0, 0, 0];
var lev7 = [0, 0, 0, 4, 0, 0, 0];
var lev8 = [2, 2, 2, 2, 0, 0, 0];
var lev9 = [2, 2, 6, 4, 0, 0, 0];
var lev10 = [0, 0, 0, 0, 4, 0, 0];
var lev11 = [0, 2, 2, 2, 4, 0, 0];
var lev12 = [10, 0, 0, 0, 0, 0, 0];
var lev13 = [2, 2, 2, 2, 2, 0, 0];
var lev14 = [0, 0, 0, 0, 0, 4, 0];
var lev15 = [0, 6, 0, 0, 6, 6, 0];
var lev16 = [0, 2, 4, 0, 4, 2, 0];
var lev17 = [4, 0, 4, 0, 0, 2, 0];
var lev18 = [0, 0, 0, 0, 0, 0, 4];
var lev19 = [6, 0, 0, 0, 0, 0, 4];
var lev20 = [6, 0, 0, 2, 0, 0, 2];
var lev21 = [2, 2, 2, 0, 2, 0, 0];
var lev22 = [2, 0, 2, 0, 2, 0, 2];
var lev23 = [2, 2, 2, 0, 2, 0, 0];
var lev24 = [2, 4, 2, 4, 0, 0, 0];
var lev25 = [2, 2, 2, 2, 2, 2, 2];
rt0 = 2;
rt1 = 2;
rt2 = 2;
rt3 = 2;
rt4 = 2;
rt5 = 2;
rt6 = 2;
var tap;
var dirValX = 0;
var dirValY = 0;
var xpos1;
var xpos2;
var ypos1;
var ypos2;
var calcShortest;
var camper;
ship.counter = 0;
var keysDown = false;
var keyDownP = false;
ship.deathCounter = 0;
stop();
Symbol 13 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 1
stop();
Symbol 45 MovieClip [spin2] Frame 30
this.removeMovieClip();
Symbol 46 MovieClip Frame 1
function onEnterFrame() {
counter++;
if (cat == counter) {
onEnterFrame = null;
play();
}
}
cat = random(30) + 2;
stop();
counter = 0;
Symbol 46 MovieClip Frame 35
_parent.active = true;
_parent.nextFrame();
Symbol 47 MovieClip [spin] Frame 1
stop();
Symbol 47 MovieClip [spin] Frame 2
stop();
Symbol 50 MovieClip [star2] Frame 50
this.removeMovieClip();
Symbol 51 MovieClip [star] Frame 20
this.removeMovieClip();
Symbol 54 MovieClip [ring3] Frame 22
this.removeMovieClip();
Symbol 55 MovieClip [ring2] Frame 14
this.removeMovieClip();
Symbol 56 MovieClip [ring] Frame 9
this.removeMovieClip();
Symbol 59 MovieClip [redBlock] Frame 15
this.removeMovieClip();
Symbol 60 MovieClip [yellowBlock] Frame 15
this.removeMovieClip();
Symbol 61 MovieClip [orangeBlock] Frame 15
this.removeMovieClip();
Symbol 64 MovieClip [shipExplode] Frame 30
this.removeMovieClip();
Symbol 72 Button
on (release) {
ab20_09 = new LoadVars();
ab20_09.z = _root.finalName;
ab20_09.x = ab20.encodeNum(_root.score);
ab20_09.c = 619;
ab20_09.v = "NWOFWV";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
getURL ("http://www.armorbot.com/mytable/?id=619", "_blank");
submitButton._x = submitButton._x + 493495345;
}
Symbol 75 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=619", "_blank");
}
Symbol 79 Button
on (release) {
_root.goto();
this.removeMovieClip();
}
Symbol 83 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 87 Button
on (release) {
_root.gotoAndStop(1);
this.removeMovieClip();
}
Symbol 104 MovieClip [losery] Frame 1
stopAllSounds();
Symbol 109 MovieClip Frame 100
stop();
Symbol 115 MovieClip Frame 1
stop();
Instance of Symbol 115 MovieClip in Symbol 120 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 5;
}
Symbol 236 MovieClip [__Packages.ab20] Frame 0
class ab20
{
function ab20 () {
}
static function fr(str, find, replace, limit) {
var _local2 = str;
var _local3;
var _local4;
var _local9;
if (!(typeof(find) === "string")) {
if (replace === undefined) {
replace = [""];
} else if (typeof(replace) === "string") {
replace = [replace];
}
} else {
find = [find];
replace = [replace];
}
_local9 = find.length;
var _local1 = 0;
var _local5 = 0;
while (_local1 < _local9) {
while (_local4 = _local2.indexOf(find[_local1]) , !(_local4 === -1)) {
if ((!(limit === undefined)) && (_local5 >= limit)) {
break;
}
_local3 = new Array(_local2.substring(0, _local4), _local2.substr(_local4, find[_local1].length), _local2.substr(_local4 + find[_local1].length));
_local3[1] = ((replace[_local1] === undefined) ? "" : (replace[_local1]));
_local2 = (_local3[0] + _local3[1]) + _local3[2];
_local5++;
}
_local1++;
_local5 = 0;
}
return(_local2);
}
static function encodeNum(num) {
var _local11 = getTimer();
var _local6 = ["aZ", "Zy", "Zx"];
var _local7 = ["zH", "jY", "uH"];
var _local4 = ["Ah", "Xh", "hO"];
var _local5 = ["Ub", "Bu", "Cb"];
var _local8 = ["Qc", "Pc", "Pe"];
var _local9 = ["Ei", "Ie", "Ef"];
var _local3 = ["Fk", "kG", "Kg"];
var _local13 = ["Jl", "Lm", "Mn"];
var _local12 = ["No", "Np", "Qp"];
var _local2 = ["Rs", "St", "Sw"];
var _local14 = random(3);
num = String(num);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
if (_local14 == 1) {
num = fr(num, "5", _local8[0]);
} else {
num = fr(num, "5", _local8[random(3)]);
}
num = fr(num, "4", _local9[random(3)]);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "2", _local13[random(3)]);
num = fr(num, "1", _local12[random(3)]);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
var _local10 = getTimer() - _local11;
num = (num + "Dd") + _local10;
return(num);
}
static function encodeStr8bytes(str) {
var _local1 = 0;
var _local4 = str.length;
var _local3 = "%";
var _local2 = ["%", "$", "#", "@"];
while (_local1 < _local4) {
_local3 = _local3 + (str.charCodeAt(_local1) + _local2[random(_local2.length)]);
_local1++;
}
return(_local3);
}
static function decodeStr8bytes(str) {
str = ("PIE" + str) + "PIE";
str = fr(str, "%", "D");
str = fr(str, "$", "D");
str = fr(str, "#", "D");
str = fr(str, "@", "D");
str = fr(str, "PIED", "");
str = fr(str, "DPIE", "");
var _local3 = str.split("D");
var _local4 = "";
var _local1 = 0;
var _local5 = _local3.length;
while (_local1 < _local5) {
_local4 = _local4 + String(String.fromCharCode(_local3[_local1]));
_local1++;
}
return(_local4);
}
static function decodeNum(str) {
var _local2 = ["aZ", "Zy", "Zx", "zH", "jY", "uH", "Ah", "Xh", "hO", "Ub", "Bu", "Cb", "Qc", "Pc", "Pe", "Ei", "Ie", "Ef", "Fk", "kG", "Kg", "Jl", "Lm", "Mn", "No", "Np", "Qp", "Rs", "St", "Sw"];
str = String(str);
str = str.split("Dd");
str = str[0];
str = fr(str, _local2[0], "9");
str = fr(str, _local2[1], "9");
str = fr(str, _local2[2], "9");
str = fr(str, _local2[3], "8");
str = fr(str, _local2[4], "8");
str = fr(str, _local2[5], "8");
str = fr(str, _local2[6], "7");
str = fr(str, _local2[7], "7");
str = fr(str, _local2[8], "7");
str = fr(str, _local2[9], "6");
str = fr(str, _local2[10], "6");
str = fr(str, _local2[11], "6");
str = fr(str, _local2[12], "5");
str = fr(str, _local2[13], "5");
str = fr(str, _local2[14], "5");
str = fr(str, _local2[15], "4");
str = fr(str, _local2[16], "4");
str = fr(str, _local2[17], "4");
str = fr(str, _local2[18], "3");
str = fr(str, _local2[19], "3");
str = fr(str, _local2[20], "3");
str = fr(str, _local2[21], "2");
str = fr(str, _local2[22], "2");
str = fr(str, _local2[23], "2");
str = fr(str, _local2[24], "1");
str = fr(str, _local2[25], "1");
str = fr(str, _local2[26], "1");
str = fr(str, _local2[27], "0");
str = fr(str, _local2[28], "0");
str = fr(str, _local2[29], "0");
var _local3 = Number(str);
return(_local3);
}
}
Symbol 125 Button
on (release) {
play();
}
Symbol 136 MovieClip Frame 1
var wd1 = new Sound();
wd1.attachSound("Anaconda");
wd1.start(0, 99);
Symbol 136 MovieClip Frame 151
_root.nextFrame();
Symbol 146 MovieClip Frame 64
_root.play();
Symbol 153 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 160 MovieClip Frame 139
_root.play();
_root.play();
Instance of Symbol 115 MovieClip in Symbol 162 MovieClip Frame 1
onClipEvent (load) {
rotManager = 1;
}
onClipEvent (enterFrame) {
this._rotation = this._rotation + rotManager;
rotManager = rotManager + 1;
}
Symbol 166 Button
on (release) {
play();
}
Symbol 169 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 172 Button
on (release) {
getURL ("http://www.jmtb02.com/", "_blank");
}
Symbol 175 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 176 Button
on (release) {
play();
}
Symbol 181 Button
on (release) {
stopAllSounds();
play();
}
Symbol 225 Button
on (release) {
if (_root.cstatus == 1) {
_root.cstatus = 2;
} else if (_root.cstatus == 2) {
_root.cstatus = 1;
}
}
Symbol 229 Button
on (release, keyPress "q") {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
}