Frame 1
function makecursor() {
xspeed = 0;
yspeed = 0;
spx = 0;
spy = 0;
speedx = 0;
speedy = 0;
ease = 2;
reload = 0;
rspeed = 3;
rotspeed = 0;
spinspeed = 0;
free = true;
locked = false;
pressed = false;
cscale = 100;
opac = 100;
paused = false;
}
function makesavedata() {
if (savedata.data.reversed == undefined) {
savedata.data.reversed = 1;
}
reversed = savedata.data.reversed;
if (savedata.data.level == undefined) {
savedata.data.level = 1;
}
level = savedata.data.level;
if (savedata.data.stage == undefined) {
savedata.data.stage = 1;
}
stage = savedata.data.stage;
if (savedata.data.maxlevel == undefined) {
savedata.data.maxlevel = 10;
}
maxlevel = savedata.data.maxlevel;
if (savedata.data.complevels == undefined) {
savedata.data.complevels = 0;
}
complevels = savedata.data.complevels;
if (savedata.data.orbarray == undefined) {
orbps = new Array();
i = 0;
while (i < levelcount) {
orbps.push(0);
i++;
}
savedata.data.orbarray = orbps;
} else {
orbps = savedata.data.orbarray;
}
if (savedata.data.timearray == undefined) {
ltimes = new Array();
i = 0;
while (i < levelcount) {
ltimes.push(999);
i++;
}
savedata.data.timearray = ltimes;
} else {
ltimes = savedata.data.timearray;
}
if (savedata.data.pointsarray == undefined) {
lpoints = new Array();
i = 0;
while (i < levelcount) {
lpoints.push((orbps[i] / ltimes[i]) * 100);
i++;
}
savedata.data.pointsarray = lpoints;
} else {
lpoints = savedata.data.pointsarray;
}
if (savedata.data.curbg == undefined) {
savedata.data.curbg = 1;
}
curbg = savedata.data.curbg;
if (savedata.data.autobac == undefined) {
savedata.data.autobac = true;
}
autobac = savedata.data.autobac;
if (savedata.data.sentscore == undefined) {
savedata.data.sentscore = false;
}
sentscore = savedata.data.sentscore;
}
function doSomething() {
}
function changequal1() {
_root._quality = "low";
}
function changequal2() {
_root._quality = "medium";
}
function changequal3() {
_root._quality = "high";
}
movecursor = function () {
if (!(_root._currentframe === 6)) {
Mouse.hide();
}
spx = cursor._x;
spy = cursor._y;
xspeed = (_xmouse - cursor._x) / ease;
yspeed = (_ymouse - cursor._y) / ease;
cursor._x = cursor._x + xspeed;
cursor._y = cursor._y + yspeed;
speedx = cursor._x - spx;
speedy = cursor._y - spy;
cursor._rotation = cursor._rotation + rotspeed;
cursor._xscale = cursor._xscale + ((cscale - cursor._xscale) / 10);
cursor._yscale = cursor._yscale + ((cscale - cursor._yscale) / 10);
cursor._alpha = cursor._alpha + ((opac - cursor._alpha) / 10);
if (locked) {
cursor.xdif = ldown._x - cursor._x;
cursor.ydif = ldown._y - cursor._y;
cursor._rotation = (57.2957795130823 * Math.atan2(cursor.ydif, cursor.xdif)) + 90;
} else if (spinspeed == 0) {
if (reversed == 1) {
if (Key.isDown(37) || (Key.isDown(65))) {
if (rotspeed > -15) {
rotspeed = rotspeed - 3;
}
} else if (Key.isDown(39) || (Key.isDown(68))) {
if (rotspeed < 15) {
rotspeed = rotspeed + 3;
}
} else {
rotspeed = rotspeed * 0.5;
}
} else if (Key.isDown(39) || (Key.isDown(68))) {
if (rotspeed > -15) {
rotspeed = rotspeed - 3;
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
if (rotspeed < 15) {
rotspeed = rotspeed + 3;
}
} else {
rotspeed = rotspeed * 0.5;
}
} else {
cursor._rotation = cursor._rotation + spinspeed;
}
reload++;
if (reload >= rspeed) {
if (pressed) {
if (!dead) {
if (shootable) {
shoot(cursor._x, cursor._y, cursor._rotation, 1);
}
reload = 0;
if (_currentframe == 56) {
vtime--;
}
}
}
}
};
levelcount = 55;
sfxon = true;
soundon = true;
compgame = false;
savedata = SharedObject.getLocal("ca3_savegame");
makesavedata();
makecursor();
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("Paul Hogg 2008 \u00A9", doSomething);
lowqual = new ContextMenuItem("Low Quality", changequal1);
medqual = new ContextMenuItem("Medium Quality", changequal2);
highqual = new ContextMenuItem("High Quality", changequal3);
MENU.customItems.push(Functioned);
MENU.customItems.push(lowqual);
MENU.customItems.push(medqual);
MENU.customItems.push(highqual);
_root.menu = MENU;
backgrounds.bgwall._x = ((curbg - 1) * -600) - backgrounds.bgwall._x;
cursor.onEnterFrame = function () {
movecursor();
backgrounds.bgwall._x = backgrounds.bgwall._x + ((((curbg - 1) * -600) - backgrounds.bgwall._x) / 5);
};
function __com_mochibot__(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);
}
function makearrays() {
bullets = new Array();
greys = new Array();
shooters = new Array();
orbs = new Array();
meteors = new Array();
greens = new Array();
ghosts = new Array();
crystals = new Array();
confuses = new Array();
clouds = new Array();
bombs = new Array();
blades = new Array();
bits = new Array();
barscale = 0;
bar._xscale = 0;
totorbs = 0;
corbs = 0;
endtimer = 0;
deathtimer = 0;
leveltimer = 0;
temp1 = 0;
temp2 = 0;
temp3 = 0;
newrec = false;
if (!(ldown._x === undefined)) {
locked = true;
} else {
locked = false;
}
downsize = 10;
ltext = "level " + (_root._currentframe - 7);
shoveorbs = true;
shootable = true;
smashed = false;
}
function removearray(a) {
i = 0;
while (i < a.length) {
o = a[i];
removeMovieClip(o);
a.splice[i];
i++;
}
}
function removestuff() {
removearray(bullets);
removearray(greys);
removearray(shooters);
removearray(orbs);
removearray(meteors);
removearray(greens);
removearray(ghosts);
removearray(crystals);
removearray(confuses);
removearray(clouds);
removearray(bombs);
removearray(blades);
removearray(bits);
opac = 100;
cscale = 100;
spinspeed = 0;
dead = false;
locked = false;
cursor.gotoAndStop(1);
}
function endgame() {
bar._xscale = bar._xscale + ((barscale - bar._xscale) / 5);
if (bar._xscale < 0) {
bar._visible = false;
}
if (cursor._y < 0) {
cursor._y = 0;
}
if (cursor._y > 450) {
cursor._y = 450;
}
if (cursor._x > 600) {
cursor._x = 600;
}
if (cursor._x < 0) {
cursor._x = 0;
}
if (!dead) {
if (Key.isDown(2)) {
dead = true;
p = 0;
while (p < 20) {
makebit(cursor._x, cursor._y, 1);
p++;
}
}
}
if (corbs == totorbs) {
if ((endtimer++) > 20) {
if (orbps[level - 1] == 0) {
complevels++;
savedata.data.complevels = complevels;
}
if (complevels >= (maxlevel - (stage * 2))) {
stage++;
savedata.data.stage = stage;
}
maxlevel = stage * 10;
savedata.data.maxlevel = maxlevel;
temp1 = Math.round(barscale);
temp2 = Math.round((leveltimer / 30) * 100) / 100;
temp3 = Math.round(temp1 / temp2) * level;
if (temp3 > lpoints[level - 1]) {
orbps[level - 1] = temp1;
ltimes[level - 1] = temp2;
lpoints[level - 1] = temp3;
savedata.data.orbarray[level - 1] = temp1;
savedata.data.timearray[level - 1] = temp2;
savedata.data.pointsarray[level - 1] = temp3;
newrec = true;
}
removestuff();
if (_currentframe == 62) {
compgame = true;
}
gotoAndStop (7);
}
}
if (barscale < 0) {
dead = true;
}
if (dead) {
cursor.gotoAndStop(2);
if (endtimer == 0) {
if ((deathtimer++) > 20) {
gust.stop("gust");
cursor.gotoAndStop(1);
removestuff();
gotoAndStop (7);
}
}
}
if (!dead) {
if (endtimer == 0) {
if (walls.hitTest(cursor._x, cursor._y, true)) {
dead = true;
p = 0;
while (p < 20) {
makebit(cursor._x, cursor._y, 1);
p++;
}
}
}
}
if (cursor._currentframe == 2) {
if (sfxon) {
smashsound();
}
}
leveltimer++;
}
function checkpress() {
onMouseDown = function () {
pressed = true;
};
onMouseUp = function () {
pressed = false;
};
}
function shoot(x, y, rot, who) {
if (_currentframe >= 8) {
if (!paused) {
if (who == 1) {
if (sfxon) {
shot.start();
}
}
d = _root.getNextHighestDepth();
b = attachMovie("bullet", "bullet" + d, d);
b._x = x;
b._y = y;
b._rotation = rot;
b.who = who;
b.gotoAndStop(who);
b.xspeed = Math.sin(0.01745 * rot) * 10;
b.yspeed = Math.cos(0.01745 * rot) * 10;
bullets.push(b);
}
}
}
function movebullets() {
i = 0;
while (i <= bullets.length) {
b = bullets[i];
b._x = b._x + b.xspeed;
b._y = b._y - b.yspeed;
if (b._currentframe == 1) {
if (walls.hitTest(b._x, b._y, true)) {
removeMovieClip(b);
bullets.splice(i, 1);
}
}
if ((b._currentframe == 2) || (b._currentframe == 3)) {
if (cursor.hitTest(b._x, b._y, false)) {
removeMovieClip(b);
bullets.splice(i, 1);
if (endtimer == 0) {
barscale = barscale - (100 / totorbs);
if (sfxon) {
loseorb.start();
}
if (barscale > 0) {
makebit(bar._x + (5.784 * barscale), 15, 2);
}
}
if (!dead) {
if (barscale < 0) {
p = 0;
while (p < 20) {
makebit(cursor._x, cursor._y, 1);
p++;
}
}
}
}
}
i++;
}
}
function removebullets() {
i = 0;
while (i <= bullets.length) {
b = bullets[i];
if ((((b._x > 610) || (b._x < -10)) || (b._y > 460)) || (b._y < -10)) {
removeMovieClip(b);
bullets.splice(i, 1);
}
i++;
}
}
function moveorbs() {
i = 0;
while (i < orbs.length) {
o = orbs[i];
o._x = o._x + ((o.endx - o._x) / 4);
o._y = o._y + ((o.endy - o._y) / 4);
if (o.endx > 600) {
o.endx = 590;
}
if (o.endx < 0) {
o.endx = 10;
}
if (o.endy > 450) {
o.endy = 440;
}
if (o.endy < 0) {
o.endy = 10;
}
if (o.active) {
if (shoveorbs) {
if (walls.hitTest(o._x, o._y, true)) {
o.endx = o.endx + 5;
o.endy = o.endy + 5;
}
}
}
if (!o.active) {
if (o._y < 18) {
removeMovieClip(o);
orbs.splice(i, 1);
}
}
if (cursor.hitTest(o)) {
if (deathtimer == 0) {
if (o.active) {
o.active = false;
corbs++;
barscale = barscale + (100 / totorbs);
o.endx = bar._x + (5.784 * barscale);
o.endy = bar._y;
if (sfxon) {
getorb.start();
}
}
}
}
i++;
}
}
function moveshooters() {
i = 0;
while (i < shooters.length) {
s = shooters[i];
s.xdif = cursor._x - s._x;
s.ydif = cursor._y - s._y;
s.rot = Math.atan2(s.ydif, s.xdif) + (Math.PI/2);
s._rotation = 57.2957795130823 * s.rot;
if (random(s.count) == 0) {
shoot(s._x + (Math.sin(s.rot) * 20), s._y - (Math.cos(s.rot) * 20), s._rotation, 2);
}
i++;
}
}
function makeblade(x, y, scale, speed, orbs) {
totorbs = totorbs + orbs;
d = _root.getNextHighestDepth();
b = attachMovie("blade", "blade" + d, d);
b._x = x;
b._y = y;
b._xscale = (b._yscale = scale);
b.xdif = 0;
b.ydif = 0;
b.xdif2 = 0;
b.ydif2 = 0;
b.speed = speed;
b.orbs = orbs;
blades.push(b);
}
function makecrystal(x, y, speed, size, orbs) {
totorbs = totorbs + orbs;
d = _root.getNextHighestDepth();
c = attachMovie("crystal", "crystal" + d, d);
c._x = x;
c._y = y;
c.orbs = orbs;
c.xspeed = (Math.random() * (speed * 2)) - speed;
c.yspeed = (Math.random() * (speed * 2)) - speed;
c.rotspeed = (Math.random() * 6) - 3;
c.size = size;
crystals.push(c);
}
function movecrystals() {
i = 0;
while (i < crystals.length) {
c = crystals[i];
movesphere(c, false);
c._rotation = c._rotation + c.rotspeed;
if (c._currentframe == 21) {
if (c.orbs > 0) {
p = 0;
while (p < c.orbs) {
makeorb(c._x, c._y, c._x + ((Math.random() * 60) - 30), c._y + ((Math.random() * 60) - 30), false);
p++;
}
}
removeMovieClip(c);
crystals.splice(i, 1);
}
if (c._currentframe == 1) {
j = 0;
while (j < bullets.length) {
b = bullets[j];
if ((b._currentframe == 1) || (b._currentframe == 3)) {
if (c.hitTest(b._x, b._y, false)) {
removeMovieClip(b);
bullets.splice(j, 1);
c.gotoAndPlay(2);
cscale = c.size;
}
}
j++;
}
}
i++;
}
}
function makeghost(x, y, speed, opac, orbs) {
totorbs = totorbs + orbs;
d = _root.getNextHighestDepth();
g = attachMovie("ghost", "ghost" + d, d);
g._x = x;
g._y = y;
g.opac = opac;
g.orbs = orbs;
g.xspeed = (Math.random() * (speed * 2)) - speed;
g.yspeed = (Math.random() * (speed * 2)) - speed;
g.rotspeed = (Math.random() * 6) - 3;
ghosts.push(g);
}
function moveghosts() {
i = 0;
while (i < ghosts.length) {
g = ghosts[i];
movesphere(g, false);
g._rotation = g._rotation + g.rotspeed;
if (g._currentframe == 21) {
p = 0;
while (p < g.orbs) {
makeorb(g._x, g._y, g._x + ((Math.random() * 60) - 30), g._y + ((Math.random() * 60) - 30), false);
p++;
}
removeMovieClip(g);
ghosts.splice(i, 1);
}
j = 0;
while (j < bullets.length) {
b = bullets[j];
if (g._currentframe == 1) {
if ((b._currentframe == 1) || (b._currentframe == 3)) {
if (g.hitTest(b._x, b._y, true)) {
opac = g.opac;
removeMovieClip(b);
bullets.splice(j, 1);
g.gotoAndPlay(2);
}
}
}
j++;
}
i++;
}
}
function makeconfuse(x, y, speed, spinspeed, orbs) {
totorbs = totorbs + orbs;
d = _root.getNextHighestDepth();
c = attachMovie("confuse", "confuse" + d, d);
c._x = x;
c._y = y;
c.orbs = orbs;
c.xspeed = (Math.random() * (speed * 2)) - speed;
c.yspeed = (Math.random() * (speed * 2)) - speed;
c.rotspeed = (Math.random() * 8) - 4;
c.spinspeed = spinspeed;
confuses.push(c);
}
function moveconfuses() {
i = 0;
while (i < confuses.length) {
c = confuses[i];
movesphere(c, false);
c._rotation = c._rotation + c.rotspeed;
if (c._currentframe == 21) {
spinspeed = c.spinspeed;
p = 0;
while (p < c.orbs) {
makeorb(c._x, c._y, c._x + ((Math.random() * 60) - 30), c._y + ((Math.random() * 60) - 30), false);
p++;
}
removeMovieClip(c);
confuses.splice(i, 1);
}
j = 0;
while (j < bullets.length) {
b = bullets[j];
if (c._currentframe == 1) {
if ((b._currentframe == 1) || (b._currentframe == 3)) {
if (c.hitTest(b._x, b._y, false)) {
removeMovieClip(b);
bullets.splice(j, 1);
c.gotoAndPlay(2);
}
}
}
j++;
}
i++;
}
}
function makebutton(ob) {
ob.scale = 100;
ob.scale1 = 0;
ob.scale2 = 0;
}
function movebutton(ob, frame, go) {
if (go == undefined) {
go = true;
}
ob.scale1 = (ob.scale - ob._xscale) / 5;
ob.scale2 = ob.scale2 + ob.scale1;
ob._xscale = ob._xscale + ob.scale2;
ob._yscale = ob._yscale + ob.scale2;
ob.scale2 = ob.scale2 * 0.7;
if (ob.hitTest(cursor._x, cursor._y, true)) {
ob.scale = 150;
} else {
ob.scale = 100;
}
ob.onPress = function () {
ob.scale = 100;
};
if (go) {
ob.onRelease = function () {
if (sfxon) {
click.start();
}
gotoAndStop(frame);
};
}
}
function makebutton2(ob) {
ob.scale = 100;
ob.scale1 = 0;
ob.scale2 = 0;
}
function movebutton2(ob, d) {
ob.scale1 = (ob.scale - ob._xscale) / 5;
ob.scale2 = ob.scale2 + ob.scale1;
ob._xscale = ob._xscale + ob.scale2;
ob._yscale = ob._yscale + ob.scale2;
ob.scale2 = ob.scale2 * 0.7;
if (ob.hitTest(cursor._x, cursor._y, true)) {
ob.scale = 150;
} else {
ob.scale = 100;
}
ob.onRelease = function () {
newrecord.gotoAndStop(1);
ob.scale = 100;
if (d == 1) {
if (level > 1) {
level--;
if (sfxon) {
click.start();
}
}
}
if (d == 2) {
if ((level < levelcount) && (level < maxlevel)) {
level++;
if (sfxon) {
click.start();
}
}
}
savedata.data.level = level;
};
}
function makebit(x, y, type) {
d = _root.getNextHighestDepth();
b = attachMovie("bit", "bit" + d, d);
b.gotoAndStop(type);
b._x = x;
b._y = y;
b.xspeed = (Math.random() * 10) - 5;
b.yspeed = (-Math.random()) * 5;
if (type == 1) {
b.xspeed = ((Math.random() * 10) - 5) + (speedx / 5);
b.yspeed = ((-Math.random()) * 5) + (speedy / 5);
b.b2.gotoAndStop(random(4) + 1);
b._xscale = (b._yscale = cscale);
b._rotation = random(360);
}
bits.push(b);
}
function movebits() {
i = 0;
while (i < bits.length) {
b = bits[i];
b._x = b._x + b.xspeed;
b.xspeed = b.xspeed * 0.98;
b._y = b._y + b.yspeed;
b.yspeed++;
i++;
}
}
function pausegame() {
if (Key.isDown(32)) {
if (!paused) {
if (!dead) {
dead = true;
p = 0;
while (p < 20) {
makebit(cursor._x, cursor._y, 1);
p++;
}
}
}
}
if (porb._x == undefined) {
} else if (porb._currentframe == 1) {
paused = true;
if (porb.hitTest(cursor._x, cursor._y, true)) {
paused = false;
porb.gotoAndPlay(2);
}
}
}
function movestuff() {
pausegame();
if (!paused) {
movebullets();
removebullets();
checkpress();
movegreys();
moveorbs();
movemeteors();
moveshooters();
moveclouds();
movebombs();
movegreens();
moveblades();
movecrystals();
moveghosts();
moveconfuses();
movebits();
endgame();
}
}
MochiAd.showPreGameAd({id:"27a3db1c5581f8c5", res:"600x450"});
mochi.MochiServices.connect("27a3db1c5581f8c5");
onEnterFrame = function () {
Mouse.show();
};
__com_mochibot__("ce234e67", this, 10301, true);
smashsound = function () {
if (!smashed) {
nsound = random(5);
nname = _root["smash" + nsound];
nname.start();
smashed = true;
}
};
makegrey = function (x, y, scale, speed, orbs) {
totorbs = totorbs + orbs;
d = _root.getNextHighestDepth();
g = attachMovie("grey", "grey" + d, d);
g._x = x;
g._y = y;
g._xscale = (g._yscale = scale);
g.xspeed = (Math.random() * (speed * 2)) - speed;
g.yspeed = (Math.random() * (speed * 2)) - speed;
g.orbs = orbs;
greys.push(g);
};
movesphere = function (ob, shoot) {
ob._x = ob._x + ob.xspeed;
ob._y = ob._y + ob.yspeed;
ob.left = ob._x;
ob.right = ob._x;
ob.top = ob._y;
ob.bottom = ob._y;
if (ob.right > 600) {
ob._x = 600;
ob.xspeed = ob.xspeed * -1;
}
if (ob.left < 0) {
ob._x = 0;
ob.xspeed = ob.xspeed * -1;
}
if (ob.top < 0) {
ob._y = 0;
ob.yspeed = ob.yspeed * -1;
}
if (ob.bottom > 450) {
ob._y = 450;
ob.yspeed = ob.yspeed * -1;
}
if (shoot) {
shootsphere(ob, true);
}
};
shootsphere = function (ob, moves) {
b = 0;
while (b <= bullets.length) {
bullet = bullets[b];
if (ob.hitTest(bullet._x, bullet._y, true)) {
if ((bullet._currentframe == 1) || (bullet._currentframe == 3)) {
ob._xscale = ob._xscale - downsize;
ob._yscale = ob._yscale - downsize;
if (moves) {
ob.xspeed = ob.xspeed + (bullet.xspeed / 10);
ob.yspeed = ob.yspeed - (bullet.yspeed / 10);
}
removeMovieClip(bullet);
bullets.splice(b, 1);
}
}
b++;
}
};
movegreys = function () {
i = 0;
while (i < greys.length) {
g = greys[i];
movesphere(g, true);
if (g._currentframe == 1) {
if (g._xscale <= 55) {
g.gotoAndPlay(2);
}
} else if (g._currentframe == 20) {
j = 0;
while (j < g.orbs) {
makeorb(g._x, g._y, g._x + ((Math.random() * 60) - 30), g._y + ((Math.random() * 60) - 30), false);
j++;
}
removeMovieClip(g);
greys.splice(i, 1);
}
i++;
}
};
makeorb = function (x, y, ex, ey, single) {
if (single) {
totorbs++;
}
d = _root.getNextHighestDepth();
o = attachMovie("orb", "orb" + d, d);
o._x = x;
o._y = y;
o._rotation = random(360);
o.endx = ex;
o.endy = ey;
o.active = true;
orbs.push(o);
};
makemeteor = function (dir, scale, speed) {
d = _root.getNextHighestDepth();
m = attachMovie("meteor", "meteor" + d, d);
m.speed = speed;
m._xscale = (m._yscale = scale);
if (dir == 1) {
m._x = random(600);
m._y = (-m._width) / 2;
}
if (dir == 2) {
m._y = random(400);
m._x = 600 + (m._width / 2);
}
if (dir == 3) {
m._x = random(600);
m._y = 450 + (m._width / 2);
}
if (dir == 4) {
m._y = random(400);
m._x = (-m._width) / 2;
}
m.xdif = cursor._x - m._x;
m.ydif = cursor._y - m._y;
m.rot = Math.atan2(m.ydif, m.xdif) + (Math.PI/2);
m._rotation = random(360);
m.xspeed = Math.sin(m.rot) * speed;
m.yspeed = Math.cos(m.rot) * speed;
m.bounds = 0;
meteors.push(m);
};
movemeteors = function () {
i = 0;
while (i < meteors.length) {
m = meteors[i];
m._x = m._x + m.xspeed;
m._y = m._y - m.yspeed;
m.bounds = m.getBounds(_root);
if (m._x > (600 + m._width)) {
removeMovieClip(m);
meteors.splice(i, 1);
}
if (m._x < (-m._width)) {
removeMovieClip(m);
meteors.splice(i, 1);
}
if (m._y > (450 + m._height)) {
removeMovieClip(m);
meteors.splice(i, 1);
}
if (m._y < (-m._height)) {
removeMovieClip(m);
meteors.splice(i, 1);
}
m.xdif = cursor._x - m._x;
m.ydif = cursor._y - m._y;
m.dis = Math.sqrt((m.xdif * m.xdif) + (m.ydif * m.ydif));
if (endtimer == 0) {
if (m.dis < (20 + cursor._width)) {
if (!dead) {
dead = true;
p = 0;
while (p < 20) {
makebit(cursor._x, cursor._y, 1);
p++;
}
}
}
}
i++;
}
};
makeshooter = function (x, y, count) {
d = _root.getNextHighestDepth();
s = attachMovie("shooter", "shooter" + d, d);
s._x = x;
s._y = y;
s.count = count;
s.xdif = 0;
s.ydif = 0;
s.rot = 0;
s.xdif = cursor._x - s._x;
s.ydif = cursor._y - s._y;
s.rot = Math.atan2(s.ydif, s.xdif) + (Math.PI/2);
s._rotation = 57.2957795130823 * s.rot;
shooters.push(s);
};
makecloud = function (x, y, speed) {
d = _root.getNextHighestDepth();
c = attachMovie("cloud", "cloud" + d, d);
c._x = x;
c._y = y;
c.rotspeed = (Math.random() * 4) - 2;
c.xspeed = (Math.random() * (speed * 2)) - speed;
c.yspeed = (Math.random() * (speed * 2)) - speed;
clouds.push(c);
};
moveclouds = function () {
i = 0;
while (i < clouds.length) {
c = clouds[i];
j = 0;
while (j < bullets.length) {
b = bullets[j];
if ((b._currentframe == 1) || (b._currentframe == 3)) {
if (c._currentframe == 1) {
if (c.hitTest(b._x, b._y, true)) {
c.gotoAndPlay(2);
gust.start();
removeMovieClip(b);
bullets.splice(j, 1);
}
}
}
j++;
}
if (c._currentframe == 300) {
gust.start();
}
if (c._currentframe == 1) {
movesphere(c, false);
c._rotation = c._rotation + c.rotspeed;
} else {
c.swapDepths(_root.getNextHighestDepth());
}
i++;
}
};
makegreen = function (x, y, scale, speed) {
d = _root.getNextHighestDepth();
g = attachMovie("green", "green" + d, d);
g._x = x;
g._y = y;
g._xscale = (g._yscale = scale);
g.xspeed = (Math.random() * (speed * 2)) - speed;
g.yspeed = (Math.random() * (speed * 2)) - speed;
greens.push(g);
};
movegreens = function () {
i = 0;
while (i < greens.length) {
g = greens[i];
movesphere(g, false);
j = 0;
while (j < bullets.length) {
b = bullets[j];
if (g.hitTest(b._x, b._y, true)) {
g.xspeed = g.xspeed + (b.xspeed / 10);
g.yspeed = g.yspeed - (b.yspeed / 10);
removeMovieClip(b);
bullets.splice(j, 1);
g._xscale = g._xscale - downsize;
g._yscale = g._yscale - downsize;
if (endtimer == 0) {
barscale = barscale - (100 / totorbs);
if (barscale > 0) {
makebit(bar._x + (5.784 * barscale), 15, 2);
}
}
if (!dead) {
if (barscale < 0) {
p = 0;
while (p < 20) {
makebit(cursor._x, cursor._y, 1);
p++;
}
}
}
}
j++;
}
if (g._xscale <= 55) {
if (!dead) {
dead = true;
j = 0;
while (j < 20) {
makebit(cursor._x, cursor._y, 1);
j++;
}
}
if (g._currentframe == 1) {
g.gotoAndPlay(2);
}
}
i++;
}
};
makebomb = function (x, y, speed, orbs) {
totorbs = totorbs + orbs;
d = _root.getNextHighestDepth();
b = attachMovie("bomb", "bomb" + d, d);
b._x = x;
b._y = y;
if (b.hitTest(cursor)) {
b._x = random(600);
b._y = random(400);
}
if (b.hitTest(cursor)) {
b._x = random(600);
b._y = random(400);
}
if (b.hitTest(cursor)) {
b._x = random(600);
b._y = random(400);
}
if (b.hitTest(cursor)) {
b._x = random(600);
b._y = random(400);
}
b.orbs = orbs;
b.rotspeed = (Math.random() * 4) - 2;
b.xspeed = (Math.random() * (speed * 2)) - speed;
b.yspeed = (Math.random() * (speed * 2)) - speed;
b._rotation = random(360);
bombs.push(b);
};
movebombs = function () {
i = 0;
while (i < bombs.length) {
b = bombs[i];
movesphere(b, false);
b._rotation = b._rotation + b.rotspeed;
if (b._currentframe == 13) {
if (b.orbs > 0) {
p = 0;
while (p < b.orbs) {
makeorb(b._x, b._y, b._x + ((Math.random() * 60) - 30), b._y + ((Math.random() * 60) - 30), false);
p++;
}
}
removeMovieClip(b);
bombs.splice(i, 1);
}
if (b.hitTest(cursor)) {
if (b._currentframe == 1) {
b.gotoAndPlay(2);
if (sfxon) {
explode.start();
}
s = 0;
while (s < 360) {
shoot(b._x, b._y, s, 3);
s = s + 20;
}
}
}
j = 0;
while (j < bullets.length) {
bu = bullets[j];
if (b._currentframe == 1) {
if ((bu._currentframe == 1) || (bu._currentframe == 3)) {
if (b.hitTest(bu._x, bu._y, true)) {
if (sfxon) {
explode.start();
}
removeMovieClip(bu);
bullets.splice(j, 1);
b.gotoAndPlay(2);
s = 0;
while (s < 360) {
shoot(b._x, b._y, s, 3);
s = s + 20;
}
}
}
}
j++;
}
i++;
}
};
moveblades = function () {
i = 0;
while (i < blades.length) {
b = blades[i];
b.xdif = cursor._x - b._x;
b.ydif = cursor._y - b._y;
b._x = b._x + b.xdif2;
b._y = b._y + b.ydif2;
b._rotation = b._rotation + (b.xdif2 - b.ydif2);
b.xdif2 = b.xdif2 + (b.xdif / b.speed);
b.ydif2 = b.ydif2 + (b.ydif / b.speed);
b.xdif2 = b.xdif2 * 0.95;
b.ydif2 = b.ydif2 * 0.95;
if (b._currentframe == 1) {
if (b.hitTest(cursor._x, cursor._y, false)) {
if (!dead) {
j = 0;
while (j < 20) {
makebit(cursor._x, cursor._y, 1);
j++;
}
dead = true;
}
}
}
if (b._currentframe == 21) {
p = 0;
while (p < b.orbs) {
makeorb(b._x, b._y, b._x + ((Math.random() * 60) - 30), b._y + ((Math.random() * 60) - 30), false);
p++;
}
removeMovieClip(b);
blades.splice(i, 1);
}
if (b.orbs > 0) {
if (b._currentframe == 1) {
if (b._xscale <= 50) {
b.gotoAndPlay(2);
}
j = 0;
while (j < bullets.length) {
bu = bullets[j];
if ((bu._currentframe == 1) || (bu._currentframe == 3)) {
if (b.hitTest(bu._x, bu._y, false)) {
removeMovieClip(bu);
bullets.splice(j, 1);
b._xscale = b._xscale - downsize;
b._yscale = b._yscale - downsize;
}
}
j++;
}
}
}
i++;
}
};
Frame 2
stop();
makebutton(startbutton);
makebutton(options);
makebutton(inst);
makebutton(creds);
makebutton(scores);
scores.onRelease = function () {
mochi.MochiScores.showLeaderboard({boardID:"b9e777dffab37249", hideDoneButton:true, res:"600x490", numScores:12});
gotoAndStop (6);
if (sfxon) {
click.start();
}
};
onEnterFrame = function () {
movebutton(startbutton, 7);
movebutton(options, 3);
movebutton(inst, 4);
movebutton(creds, 5);
movebutton(scores, 6, false);
};
Frame 3
makebutton(backb);
makebutton(remouse);
makebutton(low);
makebutton(med);
makebutton(high);
makebutton(clearsaved);
makebutton(bgnext);
makebutton(bgprev);
makebutton(bgchooser);
makebutton(smusic);
makebutton(sfx);
bgchooser.onRelease = function () {
autobac = true;
savedata.data.autobac = autobac;
curbg = Math.ceil(level / 5);
if (sfxon) {
snap.start();
}
};
remouse.onRelease = function () {
reversed = reversed * -1;
savedata.data.reversed = reversed;
if (sfxon) {
snap.start();
}
};
low.onRelease = function () {
_root._quality = "low";
if (sfxon) {
snap.start();
}
};
med.onRelease = function () {
_root._quality = "medium";
if (sfxon) {
snap.start();
}
};
high.onRelease = function () {
_root._quality = "high";
if (sfxon) {
snap.start();
}
};
clearsaved.onRelease = function () {
savedata.clear();
makesavedata();
if (sfxon) {
forget.start();
}
};
bgnext.onRelease = function () {
if (curbg < 11) {
curbg++;
if (sfxon) {
snap.start();
}
}
savedata.data.curbg = curbg;
autobac = false;
savedata.data.autobac = autobac;
};
bgprev.onRelease = function () {
if (curbg > 1) {
curbg--;
if (sfxon) {
snap.start();
}
}
savedata.data.curbg = curbg;
autobac = false;
savedata.data.autobac = autobac;
};
smusic.onRelease = function () {
if (soundon) {
soundon = false;
music.stop("music");
} else {
if (sfxon) {
snap.start();
}
soundon = true;
music.start(0, 1000);
}
};
sfx.onRelease = function () {
if (sfxon) {
sfxon = false;
} else {
sfxon = true;
if (sfxon) {
snap.start();
}
}
};
onEnterFrame = function () {
movebutton(backb, 2);
movebutton(remouse, 3, false);
movebutton(low, 3, false);
movebutton(med, 3, false);
movebutton(high, 3, false);
movebutton(clearsaved, 3, false);
movebutton(bgnext, 3, false);
movebutton(bgprev, 3, false);
movebutton(bgchooser, 3, false);
movebutton(smusic, 3, false);
movebutton(sfx, 3, false);
if (soundon) {
smusic.gotoAndStop(2);
} else {
smusic.gotoAndStop(1);
}
if (sfxon) {
sfx.gotoAndStop(2);
} else {
sfx.gotoAndStop(1);
}
if (autobac) {
bgchooser.gotoAndStop(2);
} else {
bgchooser.gotoAndStop(1);
}
};
Frame 4
makebutton(backb);
makebutton(prev);
makebutton(nex);
prev.onRelease = function () {
if (!(screen._currentframe === 1)) {
snap.start();
}
screen.prevFrame();
};
nex.onRelease = function () {
if (!(screen._currentframe === 18)) {
snap.start();
}
screen.nextFrame();
};
onEnterFrame = function () {
movebutton(backb, 2);
movebutton(prev, 2, false);
movebutton(nex, 2, false);
};
Frame 5
makebutton(backb);
makebutton(jpn);
makebutton(paul);
paul.onRelease = function () {
if (sfxon) {
click.start();
}
getURL ("http://studiopaul.newgrounds.com/", "_blank");
};
jpn.onRelease = function () {
if (sfxon) {
click.start();
}
getURL ("http://www.rigaudio.com/", "_blank");
};
onEnterFrame = function () {
movebutton(backb, 2);
movebutton(jpn, 5, false);
movebutton(paul, 5, false);
};
Frame 6
makebutton(backb);
backb.onRelease = function () {
mochi.MochiScores.closeLeaderboard();
gotoAndStop (2);
cursor.gotoAndStop(1);
if (sfxon) {
click.start();
}
};
onEnterFrame = function () {
Mouse.show();
cursor.gotoAndStop(2);
movebutton(backb, 2, false);
};
Frame 7
totscore = 0;
if (!sentscore) {
if (compgame) {
sends._visible = true;
} else {
sends._visible = false;
}
} else {
sends.gotoAndStop(2);
}
i = 0;
while (i < 50) {
totscore = totscore + lpoints[i];
i++;
}
tscore = "total score: " + totscore;
makebutton(backb);
makebutton(startbutton);
makebutton2(barrow);
makebutton2(farrow);
makebutton(sends);
cltime = ltimes[level - 1] + " seconds";
clorb = orbps[level - 1] + " %";
clpoint = lpoints[level - 1];
movebutton(backb, 2);
movebutton(startbutton, 7 + level);
movebutton2(farrow, 2);
movebutton2(barrow, 1);
leveltext = "level " + level;
if (newrec) {
newrecord.gotoAndPlay(2);
newrec = false;
} else {
newrecord.gotoAndStop(1);
}
sends.onRelease = function () {
if (!sentscore) {
if (sfxon) {
click.start();
}
mochi.MochiScores.showLeaderboard({boardID:"b9e777dffab37249", hideDoneButton:true, score:totscore, previewScores:true, res:"600x490", numScores:12});
sentscore = true;
savedata.data.sentscore = sentscore;
gotoAndStop (6);
} else {
if (sfxon) {
snap.start();
}
sends.gotoAndStop(2);
}
};
onEnterFrame = function () {
if (autobac) {
curbg = Math.ceil(level / 5);
}
savedata.data.curbg = curbg;
cltime = ltimes[level - 1] + " seconds";
clorb = orbps[level - 1] + " %";
clpoint = lpoints[level - 1];
movebutton(backb, 2);
movebutton(startbutton, 7 + level);
movebutton2(farrow, 2);
movebutton2(barrow, 1);
movebutton(sends, 7, false);
leveltext = "level " + level;
};
Frame 8
makearrays();
i = 0;
while (i < 5) {
makegrey(random(600), random(450), random(20) + 90, 5, 5);
i++;
}
onEnterFrame = function () {
movestuff();
};
Frame 9
makearrays();
i = 0;
while (i < 3) {
makegreen(random(600), random(450), random(50) + 100, 5);
i++;
}
i = 0;
while (i < 2) {
makegrey(random(600), random(450), random(50) + 90, 6, 5);
i++;
}
onEnterFrame = function () {
movestuff();
};
Frame 10
makearrays();
i = 0;
while (i < 3) {
makegrey(random(600), random(450), random(60) + 90, 5, 10);
i++;
}
onEnterFrame = function () {
if (random(30) == 0) {
makemeteor(random(4) + 1, 90, 5);
}
movestuff();
};
Frame 11
makearrays();
i = 0;
while (i < 6) {
makegrey(random(600), random(450), 90, 5, 2);
i++;
}
i = 0;
while (i < 6) {
makecloud(random(600), random(400), 4);
i++;
}
onEnterFrame = function () {
movestuff();
};
Frame 12
makearrays();
makeshooter(300, 225, 25);
i = 0;
while (i < 6) {
makegrey(random(600), random(450), 100, 7, 10);
i++;
}
onEnterFrame = function () {
movestuff();
};
Frame 13
makearrays();
i = 0;
while (i < 5) {
makegrey(random(600), random(450), 60, 0, 3);
makebomb(random(600), random(450), 3, 0);
i++;
}
onEnterFrame = function () {
movestuff();
};
Frame 14
makearrays();
makeblade(300, 225, 100, 90, 10);
makeblade(300, 225, 100, 95, 10);
makeblade(300, 225, 100, 85, 10);
onEnterFrame = function () {
movestuff();
};
Frame 15
makearrays();
makeshooter(50, 50, 10);
makeshooter(550, 400, 10);
makecrystal(random(600), random(450), 5, 250, 10);
makecrystal(random(600), random(450), 5, 250, 10);
onEnterFrame = function () {
movestuff();
};
Frame 16
makearrays();
i = 0;
while (i < 10) {
makeconfuse(random(600), random(450), 7, random(30) + 10, 5);
i++;
}
onEnterFrame = function () {
movestuff();
};
Frame 17
makearrays();
i = 0;
while (i < 5) {
makeghost(random(600), random(450), 5, Math.random() * 3, 4);
i++;
}
onEnterFrame = function () {
movestuff();
};
Frame 18
makearrays();
i = 0;
while (i < 5) {
makegrey(300, 225, 150, 12, 5);
i++;
}
onEnterFrame = function () {
movestuff();
};
Frame 19
makearrays();
makeorb(297, 70, 297, 70, true);
makeorb(575, 228, 575, 228, true);
makeorb(41, 228, 41, 228, true);
makeorb(297, 412, 297, 412, true);
onEnterFrame = function () {
movestuff();
};
Frame 20
makearrays();
i = 0;
while (i < 5) {
makeghost(random(600), random(450), 5, 1, 5);
i++;
}
onEnterFrame = function () {
if (random(20) == 0) {
makemeteor(random(5) + 1, 100, 6);
}
movestuff();
};
Frame 21
makearrays();
i = 0;
while (i < 6) {
makebomb(random(600), random(450), 6, 3);
i++;
}
onEnterFrame = function () {
movestuff();
};
Frame 22
makearrays();
makeshooter(300, 225, 10);
i = 0;
while (i < 50) {
tx = random(600);
ty = random(450);
makeorb(tx, ty, tx, ty, true);
i++;
}
onEnterFrame = function () {
movestuff();
};
Frame 23
makearrays();
i = 0;
while (i < 6) {
makegrey(random(600), random(450), random(40) + 60, 6, 5);
i++;
}
onEnterFrame = function () {
if (random(27) == 0) {
makemeteor(random(5) + 1, random(50) + 100, (Math.random() * 6) + 2);
}
movestuff();
};
Frame 24
makearrays();
i = 0;
while (i < 5) {
makeconfuse(random(600), random(450), 6, (Math.random() * 8) + 1, 4);
i++;
}
i = 0;
while (i < 10) {
makegreen(random(600), random(450), 150, 5);
i++;
}
onEnterFrame = function () {
movestuff();
};
Frame 25
makearrays();
shoveorbs = false;
i = 0;
while (i < 6) {
makegrey(random(600), random(450), 110, 7, 5);
i++;
}
onEnterFrame = function () {
movestuff();
walls._rotation = walls._rotation + 1;
};
Frame 26
makearrays();
makecloud(random(600), random(450), 5);
makecloud(random(600), random(450), 5);
makecloud(random(600), random(450), 5);
makeblade(100, 225, 200, random(40) + 70, 3);
makeblade(100, 225, 200, random(40) + 70, 3);
makeblade(500, 225, 200, random(40) + 70, 3);
makeblade(500, 225, 200, random(40) + 70, 3);
onEnterFrame = function () {
movestuff();
};
Frame 27
makearrays();
i = 0;
while (i < 8) {
makecloud(random(600), random(450), 5);
i++;
}
makeshooter(30, 225, 20);
i = 0;
while (i < 5) {
makegrey(random(600), random(450), 90, 8, 5);
i++;
}
onEnterFrame = function () {
movestuff();
};
Frame 28
makearrays();
makeshooter(300, 225, 0);
i = 0;
while (i < 50) {
tx = random(600);
ty = random(450);
makeorb(tx, ty, tx, ty, true);
i++;
}
onEnterFrame = function () {
movestuff();
};
Frame 29
makearrays();
onEnterFrame = function () {
movestuff();
};
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 29
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Frame 30
makearrays();
i = 0;
while (i < 5) {
makegrey(random(600), random(450), 80, 6, 5);
makegreen(random(600), random(450), 100, 0);
i++;
}
ldown._visible = false;
onEnterFrame = function () {
movestuff();
if ((((speedx > 1) || (speedy > 1)) || (speedx < -1)) || (speedy < -1)) {
ldown._x = cursor._x + (speedx * 5);
ldown._y = cursor._y + (speedy * 5);
}
};
Frame 31
makearrays();
makegrey(random(600), random(450), 500, 5, 10);
makegrey(random(600), random(450), 500, 5, 10);
makegreen(300, 225, 1000, 6);
onEnterFrame = function () {
movestuff();
};
Frame 32
makearrays();
makeshooter(225, 100, 30);
makeshooter(225, 500, 30);
i = 0;
while (i < 6) {
makegrey(random(600), random(450), 100, 7, 1);
i++;
}
onEnterFrame = function () {
cursor._x = cursor._x + (random(20) - 10);
cursor._y = cursor._y + (random(20) - 10);
movestuff();
};
Frame 33
makearrays();
makeshooter(300, 225, 20);
onEnterFrame = function () {
movestuff();
};
Instance of Symbol 264 MovieClip in Frame 33
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 33
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 33
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 33
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 33
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 33
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 33
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Frame 34
makearrays();
totorbs = 10;
shootable = false;
opac = 0;
vtime = 15;
made = false;
onEnterFrame = function () {
if (random(20) == 0) {
if (!made) {
makemeteor(random(4) + 1, 100, 6);
}
}
vtime = vtime - 0.0333333333333333;
if (vtime > 0) {
vtime2 = Math.round(vtime * 100) / 100;
} else {
vtime2 = 0;
if (!made) {
made = true;
opac = 100;
i = 0;
while (i < 10) {
x = random(600);
y = random(450);
makeorb(x, y, x, y, false);
i++;
}
}
}
movestuff();
};
Frame 35
makearrays();
i = 0;
while (i < 4) {
makegrey(random(600), random(450), random(200) + 100, 5, 10);
i++;
}
shootable = false;
onEnterFrame = function () {
xdif = cursor._x - 300;
ydif = cursor._y - 225;
ang = Math.atan2(ydif, xdif) + (Math.PI/2);
shooter._rotation = 57.2957795130823 * ang;
shoot(300 + (Math.sin(ang) * 15), 225 - (Math.cos(ang) * 15), 57.2957795130823 * ang, 3);
movestuff();
};
Frame 36
makearrays();
shoveorbs = false;
i = 0;
while (i < 3) {
makegrey(random(600), random(450), 100, 4, 10);
i++;
}
onEnterFrame = function () {
if (!paused) {
walls._rotation = walls._rotation + 0.3;
}
movestuff();
};
Frame 37
makearrays();
i = 0;
while (i < 10) {
makegrey(random(600), random(450), random(40) + 80, 8, 3);
i++;
}
i = 0;
while (i < 5) {
makebomb(random(600), random(450), 5, 0);
i++;
}
rot = 0;
onEnterFrame = function () {
rot = rot + 5;
ldown._x = 300 + (Math.sin((Math.PI/180) * rot) * 150);
ldown._y = 225 - (Math.cos((Math.PI/180) * rot) * 150);
movestuff();
};
Frame 38
makearrays();
time = 0;
makegrey(random(600), random(450), random(100) + 200, 8, 10);
makegrey(random(600), random(450), random(100) + 200, 8, 10);
onEnterFrame = function () {
time++;
if (time > 50) {
i = 1;
while (i < 5) {
makemeteor(i, 100, 10);
i++;
}
time = 0;
}
movestuff();
};
Frame 39
makearrays();
i = 0;
while (i < 3) {
makegrey(random(600), random(450), random(100) + 150, 5, 10);
i++;
}
shoveorbs = false;
onEnterFrame = function () {
movestuff();
};
Frame 40
makearrays();
i = 0;
while (i < 5) {
makeghost(random(600), random(450), 1, Math.random() * 10, 0);
makeconfuse(random(600), random(450), 1, random(10) + 5, 0);
makegreen(random(600), random(450), random(50) + 60, 1);
i++;
}
i = 0;
while (i < 3) {
makeghost(random(600), random(450), 10, Math.random() * 30, 3);
makeconfuse(random(600), random(450), 10, random(10) + 5, 3);
i++;
}
onEnterFrame = function () {
movestuff();
};
Frame 41
makearrays();
i = 0;
while (i < 6) {
makecloud(random(600), random(450), (Math.random() * 5) + 2);
makebomb(random(600), random(450), 4, 1);
i++;
}
makeshooter(300, 225, 20);
onEnterFrame = function () {
movestuff();
};
Frame 42
makearrays();
totorbs++;
time = 10;
made = false;
i = 0;
while (i < 10) {
makeshooter(random(300) + 300, random(450), 20);
i++;
}
onEnterFrame = function () {
if (time > 0) {
time = time - 0.0333333333333333;
vtime = Math.round(time * 100) / 100;
} else {
vtime = "";
time = 0;
}
if (vtime == 0) {
if (!made) {
makeorb(150, 225, 150, 225, false);
made = true;
}
}
movestuff();
};
Frame 43
makearrays();
makeblade(50, 225, random(30) + 90, random(40) + 60, 0);
makeblade(550, 225, random(30) + 90, random(40) + 60, 0);
makeblade(300, 50, random(30) + 90, random(40) + 60, 0);
makeblade(300, 400, random(30) + 90, random(40) + 60, 0);
onEnterFrame = function () {
movestuff();
};
Instance of Symbol 264 MovieClip in Frame 43
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 43
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 43
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 43
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 43
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 43
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 43
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 43
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 43
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 43
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 43
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 43
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 43
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 43
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Frame 44
makearrays();
totorbs = totorbs + 20;
rx = 178;
ry = 151;
made = false;
i = 0;
while (i < 20) {
makecrystal(random(600), random(450), 7, random(100) + 100, 0);
i++;
}
makecrystal(random(600), random(450), 7, 500, 0);
onEnterFrame = function () {
if (cscale == 500) {
if (((rx - 10) < cursor._x) && (cursor._x < (rx + 10))) {
if (((ry - 10) < cursor._y) && (cursor._y < (ry + 10))) {
if ((117 < cursor._rotation) && (cursor._rotation < 127)) {
if (!made) {
i = 0;
while (i < 20) {
makeorb(rx, ry, (468 + random(40)) - 20, (310 + random(40)) - 20, false);
i++;
}
made = true;
}
}
}
}
}
movestuff();
};
Frame 45
makearrays();
shoveorbs = false;
i = 0;
while (i < 5) {
makegrey(random(600), random(450), 100, 2, 5);
i++;
}
onEnterFrame = function () {
movestuff();
};
Frame 46
makearrays();
time = 17;
vtime = 0;
i = 0;
while (i < 5) {
makegrey(random(600), random(450), 200, 2, 1);
i++;
}
onEnterFrame = function () {
if (time > 0) {
time = time - 0.0333333333333333;
vtime = Math.round(time * 100) / 100;
} else {
vtime = 0;
if (cursor._currentframe == 1) {
p = 0;
while (p < 20) {
makebit(cursor._x, cursor._y, 1);
p++;
}
dead = true;
}
}
movestuff();
};
Frame 47
makearrays();
vtime = 100;
totorbs = 10;
made = false;
trot = Math.random() * 360;
target.xspeed = Math.sin((Math.PI/180) * trot) * 12;
target.yspeed = Math.cos((Math.PI/180) * trot) * 12;
onEnterFrame = function () {
if (vtime <= 0) {
if (!made) {
i = 0;
while (i < 10) {
makeorb(target._x, target._y, ((target._x + target.xspeed) + random(100)) - 50, ((target._y + target.yspeed) + random(100)) - 50, false);
i++;
}
made = true;
}
target._alpha = target._alpha - 5;
} else {
target._x = target._x + target.xspeed;
target._y = target._y + target.yspeed;
if ((target._x > 600) || (target._x < 0)) {
target.xspeed = target.xspeed * -1;
}
if ((target._y > 450) || (target._y < 0)) {
target.yspeed = target.yspeed * -1;
}
if (target.hitTest(cursor._x, cursor._y, true)) {
vtime = vtime - 1;
target.gotoAndStop(2);
} else {
target.gotoAndStop(1);
if (vtime < 100) {
vtime++;
}
}
}
movestuff();
};
Frame 48
makearrays();
timer = 9;
vtime = 9;
race = false;
pad._visible = false;
onEnterFrame = function () {
if (!race) {
if (pad.hitTest(cursor._x, cursor._y, true)) {
if (!paused) {
race = true;
}
}
} else if (timer > 0) {
timer = timer - 0.0333333333333333;
vtime = Math.round(timer * 100) / 100;
} else {
vtime = 0;
if (cursor._currentframe == 1) {
if (endtimer == 0) {
p = 0;
while (p < 20) {
makebit(cursor._x, cursor._y, 1);
p++;
}
dead = true;
}
}
}
movestuff();
};
Instance of Symbol 264 MovieClip in Frame 48
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Frame 49
makearrays();
totorbs = 50;
bxspeed = Math.random() * -10;
byspeed = (Math.random() * 10) - 5;
created = 0;
onEnterFrame = function () {
i = 0;
while (i <= bullets.length) {
b = bullets[i];
if (ball.hitTest(b._x, b._y, true)) {
if (b._x < 250) {
bxspeed = bxspeed + (b.xspeed / 20);
byspeed = byspeed - (b.yspeed / 20);
removeMovieClip(b);
bullets.splice(i, 1);
}
}
i++;
}
i = 0;
while (i <= bullets.length) {
b = bullets[i];
if (b._x > 250) {
removeMovieClip(b);
bullets.splice(i, 1);
}
i++;
}
ball._x = ball._x + bxspeed;
ball._y = ball._y + byspeed;
if (ball._x > 300) {
p2._y = p2._y + (((ball._y - p2._y) / 10) - created);
}
if (ball._y > 450) {
ball._y = 450;
byspeed = byspeed * -1;
}
if (ball._y < 0) {
ball._y = 0;
byspeed = byspeed * -1;
}
if (ball._x < -15) {
bxspeed = Math.random() * 10;
byspeed = (Math.random() * 10) - 5;
ball._x = 300;
ball._y = 225;
makebomb(random(600), random(450), 5, 0);
}
if (ball._x > 615) {
bxspeed = (-Math.random()) * 6;
byspeed = (Math.random() * 10) - 5;
ball._x = 300;
ball._y = 225;
if (created < 5) {
i = 0;
while (i < 10) {
px = random(350) + 250;
py = random(450);
makeorb(px, py, px, py, false);
i++;
}
created++;
}
}
if (p2.hitTest(ball._x + 15, ball._y, true)) {
bxspeed = bxspeed * -1.05;
byspeed = byspeed + ((ball._y - p2._y) / 10);
}
movestuff();
};
Frame 50
makearrays();
shoveorbs = false;
i = 0;
while (i < 4) {
makebomb(random(600), random(450), 5, 10);
i++;
}
onEnterFrame = function () {
movestuff();
};
Frame 51
makearrays();
shoveorbs = false;
i = 0;
while (i < 5) {
makegrey(random(600), random(450), random(50) + 100, (Math.random() * 6) + 1, 4);
i++;
}
makeshooter(20, 225, 30);
makeshooter(580, 225, 30);
onEnterFrame = function () {
movestuff();
};
Frame 52
makearrays();
i = 0;
while (i < 6) {
makegrey(random(600), random(450), 100, (Math.random() * 5) + 2, 4);
makecloud(random(600), random(450), Math.random() * 10);
i++;
}
onEnterFrame = function () {
if (random(20) == 0) {
makemeteor(random(4) + 1, (Math.random() * 20) + 80, 6);
}
movestuff();
};
Frame 53
makearrays();
makeshooter(570, 20, 40);
makeshooter(30, 20, 40);
shoveorbs = false;
i = 0;
while (i < 8) {
makeghost(random(600), random(450), 6, Math.random() * 2, 5);
i++;
}
onEnterFrame = function () {
movestuff();
};
Frame 54
makearrays();
vtime = 0;
i = 0;
while (i < 100) {
dx = random(600);
dy = random(450);
makeorb(dx, dy, dx, dy, true);
i++;
}
onEnterFrame = function () {
vtime = vtime + 0.0166666666666667;
timer = Math.round(vtime * 100) / 100;
i = 1;
while (i <= 5) {
if (timer == i) {
makeblade(600 - cursor._x, 450 - cursor._y, 100, 150 + random(100), 0);
}
i++;
}
movestuff();
};
Frame 55
makearrays();
shoveorbs = false;
makeghost(300, 225, 0, 5, 5);
onEnterFrame = function () {
movestuff();
};
Instance of Symbol 264 MovieClip in Frame 55
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 55
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 55
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 55
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 55
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 55
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 55
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 55
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 55
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 55
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 55
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 55
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 55
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 55
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 55
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 55
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 55
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 55
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 55
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 55
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Frame 56
makearrays();
i = 0;
while (i < 20) {
makegrey(random(600), random(450), 56, 5, 3);
i++;
}
i = 0;
while (i < 5) {
makebomb(random(600), random(450), 5, 0);
i++;
}
vtime = 5;
onEnterFrame = function () {
if (endtimer == 0) {
if (vtime < 0) {
vtime = 0;
if (cursor._currentframe == 1) {
p = 0;
while (p < 20) {
makebit(cursor._x, cursor._y, 1);
p++;
}
dead = true;
}
}
}
movestuff();
};
Frame 57
makearrays();
shoveorbs = false;
ex = 300;
ey = 200;
timer = 0;
i = 0;
while (i < 8) {
makeconfuse(random(600), random(450), 7, (Math.random() * 10) + 20, 5);
i++;
}
onEnterFrame = function () {
timer++;
if (timer > 60) {
timer = 0;
ex = cursor._x;
ey = cursor._y;
}
if (random(50) == 0) {
}
walls._x = walls._x + ((ex - walls._x) / 5);
walls._y = walls._y + ((ey - walls._y) / 5);
movestuff();
};
Frame 58
makearrays();
totorbs = 12;
shoveorbs = false;
onEnterFrame = function () {
if (porb.hitTest(cursor._x, cursor._y, true)) {
walls.play();
}
movestuff();
};
Frame 59
makearrays();
totorbs = 10;
makeshooter(300, 10, 40);
makeshooter(300, 440, 40);
makeshooter(10, 225, 40);
makeshooter(590, 225, 40);
vtime = 20;
timer = 20;
made = false;
onEnterFrame = function () {
if (random(30) == 0) {
makemeteor(3, random(50) + 50, (Math.random() * 3) + 7);
}
if (vtime == 0) {
vtime = 0;
if (!made) {
made = true;
i = 0;
while (i < 10) {
tx = random(450) + 50;
ty = random(300) + 50;
makeorb(tx, ty, tx, ty, false);
i++;
}
}
} else {
timer = timer - 0.0333333333333333;
vtime = Math.round(timer * 100) / 100;
}
movestuff();
};
Frame 60
makearrays();
totorbs = 10;
order = new Array(1, 2, 3, 4, 5, 6);
made = false;
i = 1;
while (i < 7) {
b = _root["b" + i];
b._x = random(600);
b._y = random(450);
b.xspeed = (Math.random() * 10) - 5;
b.yspeed = (Math.random() * 10) - 5;
b.col = i;
b.got = false;
i++;
}
i = 0;
while (i < 10) {
makegreen(random(600), random(450), 70, 6);
i++;
}
i = 0;
while (i < 5) {
makecloud(random(600), random(450), 6);
i++;
}
onEnterFrame = function () {
if (order.length == 0) {
if (!made) {
made = true;
totorbs = 0;
i = 0;
while (i < 10) {
makegrey(random(600), random(450), 100, 7, 1);
i++;
}
}
}
i = 1;
while (i < 7) {
b = _root["b" + i];
b._x = b._x + b.xspeed;
b._y = b._y + b.yspeed;
if ((b._x > 600) || (b._x < 0)) {
b.xspeed = b.xspeed * -1;
}
if ((b._y > 450) || (b._y < 0)) {
b.yspeed = b.yspeed * -1;
}
if (b.got) {
b._alpha = b._alpha - 5;
}
j = 0;
while (j <= bullets.length) {
bu = bullets[j];
if (bu._currentframe == 1) {
if (b.hitTest(bu._x, bu._y, true)) {
if (!b.got) {
if (order[0] == b.col) {
b.got = true;
order.splice(0, 1);
} else if (cursor._currentframe == 1) {
p = 0;
while (p < 20) {
makebit(cursor._x, cursor._y, 1);
p++;
}
dead = true;
}
}
}
}
j++;
}
i++;
}
movestuff();
};
Frame 61
makearrays();
shootable = false;
schance = 300;
onEnterFrame = function () {
if (porb.hitTest(cursor._x, cursor._y, true)) {
opac = 3;
}
movestuff();
};
Instance of Symbol 264 MovieClip in Frame 61
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 61
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 61
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 61
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 61
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 61
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 61
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 61
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 61
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 61
onClipEvent (load) {
this._visible = false;
_root.makeorb(this._x, this._y, this._x, this._y, true);
}
Instance of Symbol 264 MovieClip in Frame 61
onClipEvent (load) {
this._visible = false;
_root.makeshooter(this._x, this._y, _root.schance);
}
Instance of Symbol 264 MovieClip in Frame 61
onClipEvent (load) {
this._visible = false;
_root.makeshooter(this._x, this._y, _root.schance);
}
Instance of Symbol 264 MovieClip in Frame 61
onClipEvent (load) {
this._visible = false;
_root.makeshooter(this._x, this._y, _root.schance);
}
Instance of Symbol 264 MovieClip in Frame 61
onClipEvent (load) {
this._visible = false;
_root.makeshooter(this._x, this._y, _root.schance);
}
Instance of Symbol 264 MovieClip in Frame 61
onClipEvent (load) {
this._visible = false;
_root.makeshooter(this._x, this._y, _root.schance);
}
Instance of Symbol 264 MovieClip in Frame 61
onClipEvent (load) {
this._visible = false;
_root.makeshooter(this._x, this._y, _root.schance);
}
Instance of Symbol 264 MovieClip in Frame 61
onClipEvent (load) {
this._visible = false;
_root.makeshooter(this._x, this._y, _root.schance);
}
Instance of Symbol 264 MovieClip in Frame 61
onClipEvent (load) {
this._visible = false;
_root.makeshooter(this._x, this._y, _root.schance);
}
Instance of Symbol 264 MovieClip in Frame 61
onClipEvent (load) {
this._visible = false;
_root.makeshooter(this._x, this._y, _root.schance);
}
Instance of Symbol 264 MovieClip in Frame 61
onClipEvent (load) {
this._visible = false;
_root.makeshooter(this._x, this._y, _root.schance);
}
Frame 62
makearrays();
totorbs = 90;
angle = 0;
boss.xspeed = -3;
boss.yspeed = 3;
timer = 0;
boss.active = false;
boss.dead = false;
boss.orbs = 0;
boss.timer = 0;
boss.vun = false;
phaser = 0;
i = 1;
while (i < 7) {
b = _root["b" + i];
b.dead = false;
i++;
}
onEnterFrame = function () {
if (!boss.dead) {
if (!boss.vun) {
boss._x = boss._x + boss.xspeed;
boss._y = boss._y + boss.yspeed;
}
}
timer++;
angle = angle + 3;
if ((boss._x > 600) || (boss._x < 0)) {
boss.xspeed = boss.xspeed * -1;
}
if ((boss._y > 450) || (boss._y < 0)) {
boss.yspeed = boss.yspeed * -1;
}
if (!boss.dead) {
if (boss.hitTest(cursor._x, cursor._y, true)) {
if (cursor._currentframe == 1) {
p = 0;
while (p < 20) {
makebit(cursor._x, cursor._y, 1);
p++;
}
dead = true;
}
}
}
if (timer > 60) {
timer = 0;
}
if (boss.active) {
if (boss.vun) {
b = 0;
while (b <= bullets.length) {
bullet = bullets[b];
if (boss.hitTest(bullet._x, bullet._y, true)) {
if ((bullet._currentframe == 1) || (bullet._currentframe == 3)) {
boss._xscale = boss._xscale - 0.5;
boss._yscale = boss._yscale - 0.5;
removeMovieClip(bullet);
bullets.splice(b, 1);
}
}
b++;
}
}
i = 0;
while (i < shooters.length) {
s = shooters[i];
removeMovieClip(s);
shooters.splice(i, 1);
i++;
}
}
if (!boss.active) {
if (boss.orbs == 6) {
if (corbs == 60) {
boss.active = true;
}
}
} else if (!boss.dead) {
if (boss._xscale < 40) {
boss.dead = true;
boss.gotoAndPlay(4);
if (sfxon) {
explode2.start();
}
i = 0;
while (i < 30) {
makeorb(boss._x, boss._y, random(600), random(450), false);
i++;
}
}
phaser++;
boss.radius = boss._width / 2;
if (phaser < 120) {
randang = random(360);
shoot(boss._x + (Math.sin(0.0174 * randang) * boss.radius), boss._y - (Math.cos(0.0174 * randang) * boss.radius), randang, 2);
}
if (phaser > 120) {
boss.vun = true;
}
if (phaser > 240) {
boss.vun = false;
phaser = 0;
}
}
if (!boss.dead) {
if (boss.vun) {
boss.gotoAndStop(3);
} else {
boss.gotoAndStop(1);
}
}
i = 1;
while (i < 7) {
b = _root["b" + i];
b.rad = (boss._width / 2) + (b._width / 2);
b._x = boss._x + (Math.sin((Math.PI/180) * (angle + (60 * i))) * b.rad);
b._y = boss._y - (Math.cos((Math.PI/180) * (angle + (60 * i))) * b.rad);
if (timer == (i * 10)) {
if (!b.dead) {
if (!boss.active) {
shoot(b._x, b._y, (57.2957795130823 * Math.atan2(b._y - boss._y, b._x - boss._x)) + 90, 2);
}
}
}
if (b._currentframe == 3) {
boss.orbs++;
o = 0;
while (o < 2) {
totorbs = totorbs - 5;
makegrey(random(600), random(450), random(100) + 100, 5, 5);
o++;
}
makeshooter(b._x, b._y, 100);
}
if (b.hitTest(cursor._x, cursor._y, true)) {
if (cursor._currentframe == 1) {
p = 0;
while (p < 20) {
makebit(cursor._x, cursor._y, 1);
p++;
}
dead = true;
}
}
if (!b.dead) {
if (b._xscale < 40) {
b.gotoAndPlay(2);
b.dead = true;
}
}
j = 0;
while (j <= bullets.length) {
bu = bullets[j];
if (bu._currentframe == 1) {
if (b.hitTest(bu._x, bu._y, true)) {
removeMovieClip(bu);
bullets.splice(j, 1);
b._xscale = b._xscale - 5;
b._yscale = b._yscale - 5;
}
}
j++;
}
i++;
}
movestuff();
};
Frame 63
stopAllSounds();
Frame 64
stopAllSounds();
Frame 65
stopAllSounds();
Frame 66
stopAllSounds();
Frame 67
stopAllSounds();
Frame 68
stopAllSounds();
Frame 69
stopAllSounds();
Frame 70
stopAllSounds();
Frame 71
stopAllSounds();
Frame 72
stopAllSounds();
Frame 73
stopAllSounds();
Frame 74
stopAllSounds();
Frame 75
stopAllSounds();
Frame 76
stopAllSounds();
Frame 77
stopAllSounds();
Frame 78
stopAllSounds();
Frame 79
function makesounds() {
getorb = new Sound();
getorb.attachSound("getorb");
shot = new Sound();
shot.attachSound("shot");
loseorb = new Sound();
loseorb.attachSound("loseorb");
smash0 = new Sound();
smash0.attachSound("smash0");
smash1 = new Sound();
smash1.attachSound("smash1");
smash2 = new Sound();
smash2.attachSound("smash2");
smash3 = new Sound();
smash3.attachSound("smash3");
smash4 = new Sound();
smash4.attachSound("smash4");
click = new Sound();
click.attachSound("click");
forget = new Sound();
forget.attachSound("forget");
snap = new Sound();
snap.attachSound("snap");
gust = new Sound();
gust.attachSound("gust");
music = new Sound();
music.attachSound("music");
explode = new Sound();
explode.attachSound("explode");
explode2 = new Sound();
explode2.attachSound("explode2");
}
gotoAndStop (2);
makesounds();
music.start(0, 99999);
Symbol 9 MovieClip [bit] Frame 1
stop();
Symbol 12 MovieClip [confuse] Frame 1
stop();
Symbol 12 MovieClip [confuse] Frame 21
stop();
Symbol 15 MovieClip [ghost] Frame 1
stop();
Symbol 15 MovieClip [ghost] Frame 21
stop();
Symbol 18 MovieClip [crystal] Frame 1
stop();
Symbol 18 MovieClip [crystal] Frame 21
stop();
Symbol 21 MovieClip [blade] Frame 1
stop();
Symbol 21 MovieClip [blade] Frame 21
stop();
Symbol 26 MovieClip [bomb] Frame 1
stop();
Symbol 26 MovieClip [bomb] Frame 13
stop();
Symbol 29 MovieClip [cloud] Frame 1
stop();
Symbol 29 MovieClip [cloud] Frame 400
gotoAndStop (1);
Symbol 35 MovieClip [meteor] Frame 1
stop();
Symbol 35 MovieClip [meteor] Frame 20
stop();
Symbol 38 MovieClip [green] Frame 1
stop();
Symbol 38 MovieClip [green] Frame 21
stop();
Symbol 41 MovieClip [grey] Frame 1
stop();
Symbol 41 MovieClip [grey] Frame 20
stop();
Symbol 44 MovieClip [bullet] Frame 1
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 397 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.31");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 398 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
gotoAndPlay (63);
eval (undefined)();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 399 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 89 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 21
stop();
Instance of Symbol 5 MovieClip in Symbol 154 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(4) + 1);
}
Instance of Symbol 5 MovieClip in Symbol 154 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(4) + 1);
}
Instance of Symbol 5 MovieClip in Symbol 154 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(4) + 1);
}
Instance of Symbol 5 MovieClip in Symbol 154 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(4) + 1);
}
Instance of Symbol 5 MovieClip in Symbol 154 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(4) + 1);
}
Symbol 154 MovieClip Frame 19
stop();
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 21
stop();
Symbol 166 MovieClip Frame 10
stop();
Instance of Symbol 44 MovieClip [bullet] in Symbol 177 MovieClip Frame 83
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 44 MovieClip [bullet] in Symbol 177 MovieClip Frame 132
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 44 MovieClip [bullet] in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
Symbol 183 MovieClip Frame 21
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 25
stop();
Symbol 231 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 1
i = 0;
while (i < 21) {
s = this["s" + i];
s._x = 600 + random(600);
s._y = random(450);
s.speed = (Math.random() * 5) + 2;
i++;
}
onEnterFrame = function () {
i = 0;
while (i < 21) {
s = this["s" + i];
s._x = s._x - s.speed;
if (s._x < -50) {
s._x = 660;
s._y = random(450);
}
i++;
}
};
Symbol 290 MovieClip Frame 1
i = 0;
while (i < 21) {
s = this["s" + i];
s._x = random(600);
s._y = random(450);
i++;
}
Symbol 295 MovieClip Frame 1
i = 1;
while (i < 6) {
w = this["w" + i];
if (!(i === 3)) {
w._x = random(600);
}
i++;
}
onEnterFrame = function () {
i = 1;
while (i < 6) {
w = this["w" + i];
w._y = w._y + 3;
if (w._y > 475) {
w._y = -25;
w._x = random(600);
}
i++;
}
};
Symbol 302 MovieClip Frame 1
stop();
Symbol 317 MovieClip Frame 1
i = 0;
while (i < 15) {
s = this["s" + i];
s._x = random(600);
s._y = (-random(450)) + 50;
s.speed = (Math.random() * 3) + 2;
i++;
}
onEnterFrame = function () {
i = 0;
while (i < 15) {
s = this["s" + i];
s._y = s._y + s.speed;
s.speed = s.speed + 0.1;
if (s._y > 500) {
s._y = -(random(450) + 50);
s._x = random(600);
s.speed = (Math.random() * 3) + 2;
}
i++;
}
};
Symbol 320 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.paused) {
w2._rotation = w2._rotation + 1;
}
};
Symbol 325 MovieClip Frame 120
gotoAndPlay (1);
Symbol 336 MovieClip Frame 1
w1._rotation = (180 + random(40)) - 20;
w2._rotation = random(360);
w3._rotation = random(360);
onEnterFrame = function () {
if (!_root.paused) {
w1._rotation = w1._rotation + 1;
w2._rotation = w2._rotation - 2;
w3._rotation = w3._rotation + 3;
}
};
Symbol 366 MovieClip Frame 1
stop();
Symbol 366 MovieClip Frame 786
stop();
Instance of Symbol 264 MovieClip in Symbol 366 MovieClip Frame 786
onClipEvent (load) {
this._visible = false;
_root.makeorb(300 + this._x, 225 + this._y, 300 + this._x, 225 + this._y, false);
}
Instance of Symbol 264 MovieClip in Symbol 366 MovieClip Frame 786
onClipEvent (load) {
this._visible = false;
_root.makeorb(300 + this._x, 225 + this._y, 300 + this._x, 225 + this._y, false);
}
Instance of Symbol 264 MovieClip in Symbol 366 MovieClip Frame 786
onClipEvent (load) {
this._visible = false;
_root.makeorb(300 + this._x, 225 + this._y, 300 + this._x, 225 + this._y, false);
}
Instance of Symbol 264 MovieClip in Symbol 366 MovieClip Frame 786
onClipEvent (load) {
this._visible = false;
_root.makeorb(300 + this._x, 225 + this._y, 300 + this._x, 225 + this._y, false);
}
Instance of Symbol 264 MovieClip in Symbol 366 MovieClip Frame 786
onClipEvent (load) {
this._visible = false;
_root.makeorb(300 + this._x, 225 + this._y, 300 + this._x, 225 + this._y, false);
}
Instance of Symbol 264 MovieClip in Symbol 366 MovieClip Frame 786
onClipEvent (load) {
this._visible = false;
_root.makeorb(300 + this._x, 225 + this._y, 300 + this._x, 225 + this._y, false);
}
Instance of Symbol 264 MovieClip in Symbol 366 MovieClip Frame 786
onClipEvent (load) {
this._visible = false;
_root.makeorb(300 + this._x, 225 + this._y, 300 + this._x, 225 + this._y, false);
}
Instance of Symbol 264 MovieClip in Symbol 366 MovieClip Frame 786
onClipEvent (load) {
this._visible = false;
_root.makeorb(300 + this._x, 225 + this._y, 300 + this._x, 225 + this._y, false);
}
Instance of Symbol 264 MovieClip in Symbol 366 MovieClip Frame 786
onClipEvent (load) {
this._visible = false;
_root.makeorb(300 + this._x, 225 + this._y, 300 + this._x, 225 + this._y, false);
}
Instance of Symbol 264 MovieClip in Symbol 366 MovieClip Frame 786
onClipEvent (load) {
this._visible = false;
_root.makeorb(300 + this._x, 225 + this._y, 300 + this._x, 225 + this._y, false);
}
Instance of Symbol 264 MovieClip in Symbol 366 MovieClip Frame 786
onClipEvent (load) {
this._visible = false;
_root.makeorb(300 + this._x, 225 + this._y, 300 + this._x, 225 + this._y, false);
}
Instance of Symbol 264 MovieClip in Symbol 366 MovieClip Frame 786
onClipEvent (load) {
this._visible = false;
_root.makeorb(300 + this._x, 225 + this._y, 300 + this._x, 225 + this._y, false);
}
Symbol 371 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 16
stop();
Symbol 382 MovieClip Frame 1
stop();
Symbol 382 MovieClip Frame 35
stop();