Frame 1
mochi.as2.MochiAd.showPreGameAd({id:"dc3a8ced4251634b", res:"550x400"});
mochi.as2.MochiServices.connect("dc3a8ced4251634b");
Frame 2
function itemHandler0(obj, item) {
_root._quality = "AUTOHIGH";
}
function itemHandler1(obj, item) {
_root._quality = "HIGH";
}
function itemHandler2(obj, item) {
_root._quality = "MEDIUM";
}
function itemHandler3(obj, item) {
_root._quality = "LOW";
}
function dist(x1, y1, x2, y2) {
return(Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1))));
}
_root.finalName = "Muffin";
_quality = "MEDIUM";
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
myMenu.customItems.push(new ContextMenuItem("Auto-Quality", itemHandler0));
myMenu.customItems.push(new ContextMenuItem("High", itemHandler1));
myMenu.customItems.push(new ContextMenuItem("Medium", itemHandler2));
myMenu.customItems.push(new ContextMenuItem("Low", itemHandler3));
_root.menu = myMenu;
stop();
k = 0;
onEnterFrame = function () {
var _local2 = Math.floor(framesLoaded / 4) - 1;
afw._x = afw._x - (0.3 * ((afw._x - _root["b" + _local2]._x) / 2));
afw._y = afw._y - (0.3 * ((afw._y - _root["b" + _local2]._y) / 2));
cat.removeMovieClip();
createEmptyMovieClip("cat", k++);
cat.lineStyle(1, 16777215, 50);
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
framesLoaded = Math.ceil((loaded / total) * 100);
if ((framesLoaded >= 100) && (playMe.act == false)) {
playMe.act = true;
playMe.play();
}
perDisp = framesLoaded + "%";
i = 0;
while (i < 25) {
if (framesLoaded >= (i * 4)) {
_root["b" + i]._alpha = _root["b" + i]._alpha - (0.08 * ((_root["b" + i]._alpha - 100) / 2));
_root["b" + i]._x = _root["b" + i]._x - (0.3 * ((_root["b" + i]._x - _root["b" + i].mainX) / 2));
_root["b" + i]._y = _root["b" + i]._y - (0.3 * ((_root["b" + i]._y - _root["b" + i].mainY) / 2));
if (i != 0) {
cat.moveTo(_root["b" + i]._x, _root["b" + i]._y);
cat.lineTo(_root["b" + (i - 1)]._x, _root["b" + (i - 1)]._y);
}
}
base = 1.5;
if (_root["b" + i].hitTest(_xmouse, _ymouse)) {
if ((_xmouse - _root["b" + i]._x) > 0) {
t = 0;
while (t < 25) {
_root["b" + (i - t)]._x = _root["b" + (i - t)]._x - (base / (t + 1));
_root["b" + (i + t)]._x = _root["b" + (i + t)]._x - (base / (t + 1));
t++;
}
} else if ((_xmouse - _root["b" + i]._x) <= 0) {
t = 0;
while (t < 25) {
_root["b" + (i - t)]._x = _root["b" + (i - t)]._x + (base / (t + 1));
_root["b" + (i + t)]._x = _root["b" + (i + t)]._x + (base / (t + 1));
t++;
}
}
if ((_ymouse - _root["b" + i]._y) > 0) {
t = 0;
while (t < 25) {
_root["b" + (i - t)]._y = _root["b" + (i - t)]._y - (base / (t + 1));
_root["b" + (i + t)]._y = _root["b" + (i + t)]._y - (base / (t + 1));
t++;
}
} else if ((_ymouse - _root["b" + i]._y) <= 0) {
t = 0;
while (t < 25) {
_root["b" + (i - t)]._y = _root["b" + (i - t)]._y + (base / (t + 1));
_root["b" + (i + t)]._y = _root["b" + (i + t)]._y + (base / (t + 1));
t++;
}
}
}
i++;
}
};
i = 0;
while (i < 25) {
_root["b" + i].mainX = _root["b" + i]._x;
_root["b" + i].mainY = _root["b" + i]._y;
_root["b" + i]._x = random(Stage.width);
_root["b" + i]._y = random(Stage.height);
_root["b" + i]._alpha = 0;
_root["b" + i].act = true;
i++;
}
Frame 3
stop();
Frame 4
stop();
Frame 5
stopAllSounds();
nextFrame();
Frame 6
function defineLevel() {
level = _root["ll" + levelFocus];
}
function killSwitch() {
for (var _local2 in _root) {
if (typeof(_root[_local2]) == "movieclip") {
_root[_local2].removeMovieClip();
}
}
}
function timeOut() {
level._alpha = level._alpha - 3;
level.onEnterFrame = null;
if (level._alpha <= 0) {
level.blackAndWhite(true);
i = 0;
while (i < liveLevels.length) {
if (liveLevels[i] == levelFocus) {
liveLevels.splice(i, 1);
trace(liveLevels);
j = i;
while (j < liveLevels.length) {
trace(_root["ll" + liveLevels[j]]._name);
_root["ll" + liveLevels[j]]._name = String("ll" + (liveLevels[j] - 1));
trace("ll" + (liveLevels[j] - 1));
liveLevels[j]--;
j++;
}
trace(liveLevels);
break;
}
i++;
}
myStage = 3;
if (liveLevels.length < 1) {
gotoAndStop ("gameOver");
myStage = 7;
}
levelFocus = liveLevels[random(liveLevels.length)];
level.removeMovieClip();
}
}
function cameraStuff() {
speedA = Math.floor(speed / 5) - 1;
speedB = ((speed % 5) / 5) * 10;
speedDisp = (speedA + ".") + speedB;
}
function depths() {
camera.swapDepths(k++);
bar.swapDepths(k++);
}
function wait() {
waitCounter++;
if (waitCounter > Math.floor((1 / speed) * 100)) {
waitCounter = 0;
myStage = 1;
}
}
function zoomIn() {
elasticScale(camera, 100, zSpeed, 0.4);
elasticX(camera, level._x + 275, zSpeed, 0.4);
elasticY(camera, level._y + 200, zSpeed, 0.4);
easing("rotation", _root, 0, 0.7);
if (Math.round(camera._xscale) == 100) {
level.callEnter();
level.playNow = true;
myStage = 2;
pTotal = pTotal + level.p;
tTotal = tTotal + level.t;
rTotal = rTotal + level.r;
trace(pTotal);
trace(tTotal);
trace(rTotal);
}
}
function gameTime() {
gameCounter++;
if (gameCounter > Math.floor((1 / speed) * 1500)) {
gameCounter = 0;
level.onEnterFrame = null;
level.callExit();
lastLevelFocus = levelFocus;
var _local2 = new Sound(this);
_local2.attachSound("sine");
_local2.start(0, 1);
p = p + level.p;
t = t + level.t;
r = r + level.r;
combo++;
if (combo > topCombo) {
topCombo = combo;
}
trace("++++++++++++++");
if (liveLevels.length > 1) {
while (lastLevelFocus == levelFocus) {
levelFocus = liveLevels[random(liveLevels.length)];
}
}
trace("GO!");
myStage = 3;
}
}
function zoomOut() {
elasticH(camera, outH, zSpeed, 0.3);
elasticW(camera, outW, zSpeed, 0.3);
elasticX(camera, outX, zSpeed, 0.3);
elasticY(camera, outY, zSpeed, 0.3);
if ((Math.round(camera._width) + 1) >= outW) {
if (speedCounter > speedGoal) {
speedCounter = 0;
myStage = 6;
speed++;
speedGoal = (speed * 3) / 4;
} else {
speedCounter = speedCounter + 4;
trace((("speedC:" + speedCounter) + ", speedG:") + speedGoal);
myStage = 4;
}
}
}
function showSpeed() {
camera.speedThinger.play();
if (camera.speedThinger._currentframe == 85) {
myStage = 1;
camera.speedThinger.gotoAndStop(1);
}
}
function triggerLoss() {
combo = 0;
var _local2 = new Sound(this);
_local2.attachSound("sitar");
_local2.start(0, 1);
level.blackAndWhite(false);
level.callExit();
myStage = 5;
gameCounter = 0;
}
function elasticScale(mc, targt, accel, friction) {
if (mc.qxScale == undefined) {
mc.qxScale = 0;
}
mc.qxScale = mc.qxScale + ((targt - mc._xscale) * accel);
mc.qxScale = mc.qxScale * friction;
mc._xscale = (mc._yscale = mc._yscale + mc.qxScale);
}
function elasticX(mc, targt, accel, friction) {
if (mc.qxSpeed == undefined) {
mc.qxSpeed = 0;
}
mc.qxSpeed = mc.qxSpeed + ((targt - mc._x) * accel);
mc.qxSpeed = mc.qxSpeed * friction;
mc._x = mc._x + mc.qxSpeed;
}
function elasticY(mc, targt, accel, friction) {
if (mc.qySpeed == undefined) {
mc.qySpeed = 0;
}
mc.qySpeed = mc.qySpeed + ((targt - mc._y) * accel);
mc.qySpeed = mc.qySpeed * friction;
mc._y = mc._y + mc.qySpeed;
}
function elasticH(mc, targt, accel, friction) {
if (mc.qhSpeed == undefined) {
mc.qhSpeed = 0;
}
mc.qhSpeed = mc.qhSpeed + ((targt - mc._height) * accel);
mc.qhSpeed = mc.qhSpeed * friction;
mc._height = mc._height + mc.qhSpeed;
}
function elasticW(mc, targt, accel, friction) {
if (mc.qwSpeed == undefined) {
mc.qwSpeed = 0;
}
mc.qwSpeed = mc.qwSpeed + ((targt - mc._width) * accel);
mc.qwSpeed = mc.qwSpeed * friction;
mc._width = mc._width + mc.qwSpeed;
}
function easing(pro, mov1, mov2, drift) {
switch (pro) {
case "x" :
mov1._x = mov1._x - (drift * ((mov1._x - mov2) / 2));
break;
case "y" :
mov1._y = mov1._y - (drift * ((mov1._y - mov2) / 2));
break;
case "xscale" :
mov1._xscale = mov1._xscale - (drift * ((mov1._xscale - mov2) / 2));
break;
case "yscale" :
mov1._yscale = mov1._yscale - (drift * ((mov1._yscale - mov2) / 2));
break;
case "width" :
mov1._width = mov1._width - (drift * ((mov1._width - mov2) / 2));
break;
case "height" :
mov1._height = mov1._height - (drift * ((mov1._height - mov2) / 2));
break;
case "alpha" :
mov1._alpha = mov1._alpha - (drift * ((mov1._alpha - mov2) / 2));
break;
case "rotation" :
mov1._rotation = mov1._rotation - (drift * ((mov1._rotation - mov2) / 2));
}
}
function dist(x1, y1, x2, y2) {
return(Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1))));
}
function rot(circx, circy, prevx, prevy) {
if ((circx < prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
return(degrees + 90);
}
if ((circx < prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
return(90 - degrees);
}
if ((circx > prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circx - prevx) / Math.abs(circy - prevy));
degrees = (angle * 180) / Math.PI;
return(-(180 - degrees));
}
if ((circx > prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
return(-(90 - degrees));
}
}
var speed = 10;
var levelFocus = random(16);
var levelTotal = 16;
var k = 1;
var offSetY = 0;
var offSetX = 0;
var p = 0;
var pTotal = 0;
var t = 0;
var tTotal = 0;
var r = 0;
var rTotal = 0;
var frameCounter = 0;
var timeTotal = 0;
stop();
var combo = 0;
var topCombo = 0;
outW = 2200;
outH = 1600;
outX = 1100;
outY = 800;
camera._width = outW;
camera._height = outH;
camera._x = outX;
camera._y = outY;
var myStage = 8;
var speedCounter = 0;
var speedGoal = ((speed * 3) / 4);
var liveLevels = new Array();
i = 0;
while (i < levelTotal) {
offSetX = i % 4;
offSetY = Math.floor(i / 4);
shel = _root.attachMovie("level" + i, "ll" + i, k++);
shel._x = offSetX * 550;
shel._y = offSetY * 400;
liveLevels.push(i);
i++;
}
camera.swapDepths(k++);
var f1Timeout = 0;
var level = new MovieClip();
var tTime = "N/A";
var carabous = 0;
onEnterFrame = function () {
frameCounter++;
carabous = carabous + random(2);
timeTotal = Math.round(frameCounter / 40);
tTime = String(timeTotal);
depths();
defineLevel();
f1Timeout++;
if (f1Timeout >= 2) {
f1Timeout = 4;
}
zSpeed = 0.05 * speed;
switch (myStage) {
case 1 :
zoomIn();
break;
case 2 :
gameTime();
break;
case 3 :
zoomOut();
break;
case 4 :
wait();
break;
case 5 :
timeOut();
break;
case 6 :
showSpeed();
break;
case 7 :
killSwitch();
onEnterFrame = null;
break;
case 8 :
}
myC = 0;
i = 0;
while (i < liveLevels.length) {
offSetX = i % 4;
offSetY = Math.floor(i / 4);
elasticX(_root["ll" + liveLevels[i]], offSetX * 550, zSpeed, 0.4);
elasticY(_root["ll" + liveLevels[i]], offSetY * 400, zSpeed, 0.4);
i++;
}
cameraStuff();
};
var speedDisp = "E";
var waitCounter = 0;
var gameCounter = 0;
var lastLevelFocus = 4;
MovieClip.prototype.blackAndWhite = function (clear) {
myFilters = this.filters;
if (!clear) {
BWMatrix = [0.3086, 0.6094, 0.082, 0, 0, 0.3086, 0.6094, 0.082, 0, 0, 0.3086, 0.6094, 0.082, 0, 0, 0, 0, 0, 1, 0];
((this.BWFilterSpot == undefined) ? ((this.BWFilterSpot = myFilters.length)) : null);
myFilters[this.BWFilterSpot] = new flash.filters.ColorMatrixFilter(BWMatrix);
} else {
myFilters[this.BWFilterSpot] = undefined;
}
this.filters = myFilters;
};
Symbol 8 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 1
stop();
Symbol 19 MovieClip [level0] Frame 1
function callEnter() {
onEnterFrame = function () {
speed = _root.speed;
counter++;
a.play();
b.play();
bg.play();
if (counter >= bLoad) {
shel = loadHere.attachMovie("level1-bar", _root.k, _root.k++);
shel._x = random(500) + 20;
shel._y = 450;
currentBars.push(_root.k);
counter = 0;
bLoad = (goal = Math.floor((1 / speed) * 300));
}
if (loadHere.hitTest(ball._x, ball._y, true)) {
if (speed > 10) {
ball._y = ball._y - speed;
} else {
ball._y = ball._y - speed;
}
while (loadHere.hitTest(ball._x, ball._y, true)) {
ball._y = ball._y - 1;
}
} else {
ball._y = ball._y + (speed / 2);
}
i = 0;
while (i < currentBars.length) {
loadHere[currentBars[i]]._y = loadHere[currentBars[i]]._y - speed;
if (loadHere[currentBars[i]]._y < -20) {
loadHere[currentBars[i]].removeMovieClip();
currentBars.splice(i, 1);
}
i++;
}
if (Key.isDown(37)) {
ball._x = ball._x - (speed * 2);
}
if (Key.isDown(39)) {
ball._x = ball._x + (speed * 2);
}
if (ball._x < 20) {
ball._x = 20;
}
if (ball._x > 530) {
ball._x = 530;
}
if (ball._y > 400) {
ball._y = 400;
}
if (ball._y < 10) {
ball._y = 10;
_root.triggerLoss();
}
};
}
function callExit() {
bg.stop();
a.stop();
b.stop();
}
var counter = 0;
var bLoad = 20;
var currentBars = new Array();
p = 2;
t = 2;
r = 6;
Symbol 23 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 1
this._visible = false;
Symbol 39 MovieClip [level5] Frame 1
function callEnter() {
onEnterFrame = function () {
ping.play();
speed = _root.speed;
a.play();
b.play();
spinner._rotation = spinner._rotation + (speed / 4);
if (Key.isDown(38)) {
spinner.point._y = spinner.point._y + speed;
}
if (Key.isDown(40)) {
spinner.point._y = spinner.point._y - speed;
}
if (spinner.point._y > -25) {
spinner.point._y = -25;
}
if (spinner.point._y < -185) {
spinner.point._y = -185;
}
if (dir == "up") {
enemy._y = enemy._y - (speed / 2);
if (enemy._y < 235) {
enemy._y = 235;
dir = "down";
}
} else {
enemy._y = enemy._y + (speed / 2);
if (enemy._y > 380) {
enemy._y = 380;
dir = "up";
}
}
if (spinner.point.hitTest(enemy.hitA)) {
_root.triggerLoss();
}
};
}
function callExit() {
ping.stop();
a.stop();
b.stop();
}
var xVel = 0;
var yVel = 0;
var yMov = 0;
counter = 0;
var eCounter = 0;
var enemies = new Array();
var bullets = new Array();
bCounter = 0;
var goal = 1;
var bCount = 0;
var dir = "up";
p = 0;
t = 6;
r = 4;
Symbol 43 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 1
this._visible = false;
Symbol 55 MovieClip [level10] Frame 1
function callEnter() {
onEnterFrame = function () {
speed = _root.speed / 2;
a.play();
b.play();
if (Key.isDown(37)) {
player._rotation = player._rotation - (speed * 2.5);
}
if (Key.isDown(39)) {
player._rotation = player._rotation + (speed * 2.5);
}
counter++;
if (counter >= goal) {
goal = Math.floor((1 / (speed / 1.5)) * 100) * 2;
counter = 0;
eCounter++;
shel = loadArea.attachMovie("level10-enemy", "e" + eCounter, _root.k++);
enemies.push(eCounter);
switch (random(2)) {
case 0 :
shel._x = -20 + (random(2) * 590);
if (shel._x < 20) {
shel.xVel = 1;
shel._rotation = 90;
} else {
shel.xVel = -1;
shel._rotation = -90;
}
shel._y = 200;
shel.yVel = 0;
break;
case 1 :
shel._y = -20 + (random(2) * 440);
if (shel._y < 20) {
shel.yVel = 1;
} else {
shel.yVel = -1;
}
shel.xVel = 0;
shel._x = 275;
}
}
i = 0;
while (i < enemies.length) {
loadArea["e" + enemies[i]]._x = loadArea["e" + enemies[i]]._x + (loadArea["e" + enemies[i]].xVel * speed);
loadArea["e" + enemies[i]]._y = loadArea["e" + enemies[i]]._y + (loadArea["e" + enemies[i]].yVel * speed);
if (loadArea["e" + enemies[i]].hitTest(player.hitA)) {
loadArea["e" + enemies[i]].play();
enemies.splice(i, 1);
}
if (loadArea["e" + enemies[i]].hitTest(center.hitA)) {
_root.triggerLoss();
}
i++;
}
};
}
function callExit() {
a.stop();
b.stop();
}
var xVel = 0;
var yVel = 0;
var yMov = 0;
var gravity = 0.1;
counter = 0;
var eCounter = 0;
var enemies = new Array();
var bullets = new Array();
bCounter = 0;
var goal = 1;
var bCount = 0;
p = 1;
t = 4;
r = 5;
var jumping = false;
Symbol 61 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 1
stop();
Symbol 66 MovieClip [level9] Frame 1
function callEnter() {
onEnterFrame = function () {
speed = _root.speed;
a.play();
b.play();
if (Key.isDown(37)) {
player._x = player._x - (speed * 2);
}
if (Key.isDown(39)) {
player._x = player._x + (speed * 2);
}
if (player._x < 65) {
player._x = 65;
}
if (player._x > 485) {
player._x = 485;
}
counter++;
if (counter >= goal) {
goal = Math.floor((1 / (speed / 1.5)) * 100) * 2;
counter = 0;
eCounter++;
shel = loadArea.attachMovie("level9-enemy", "e" + eCounter, _root.k++);
enemies.push(eCounter);
shel.speed = speed;
shel._x = random(530) + 10;
shel.yVel = 0;
shel._y = -20;
}
i = 0;
while (i < enemies.length) {
loadArea["e" + enemies[i]].yVel = loadArea["e" + enemies[i]].yVel + gravity;
loadArea["e" + enemies[i]]._y = loadArea["e" + enemies[i]]._y + loadArea["e" + enemies[i]].yVel;
loadArea["e" + enemies[i]].rot._rotation = loadArea["e" + enemies[i]].rot._rotation + 5;
if (loadArea["e" + enemies[i]].hitA.hitTest(player)) {
loadArea["e" + enemies[i]].play();
enemies.splice(i, 1);
}
if (loadArea["e" + enemies[i]]._y > 400) {
_root.triggerLoss();
}
i++;
}
};
}
function callExit() {
a.stop();
b.stop();
}
var xVel = 0;
var yVel = 0;
var yMov = 0;
var gravity = 0.1;
counter = 0;
var eCounter = 0;
var enemies = new Array();
var bullets = new Array();
bCounter = 0;
var goal = 1;
var bCount = 0;
p = 7;
t = 3;
r = 0;
var jumping = false;
Symbol 70 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 1
stop();
Symbol 78 MovieClip [level8] Frame 1
function callEnter() {
onEnterFrame = function () {
a.play();
b.play();
speed = _root.speed / 2;
if ((!jumping) && (Key.isDown(38))) {
jumping = true;
yVel = yVel - 5;
}
yVel = yVel + gravity;
player._y = player._y + yVel;
if (player._y > line._y) {
jumping = false;
player._y = line._y;
yVel = 0;
}
if (Key.isDown(37)) {
player._x = player._x - speed;
}
if (Key.isDown(39)) {
player._x = player._x + speed;
}
if (player._x < 10) {
player._x = 10;
}
if (player._x > 540) {
player._x = 540;
}
counter++;
if (counter >= goal) {
goal = Math.floor((1 / speed) * 100) * (random(4) + 1);
counter = 0;
eCounter++;
shel = loadArea.attachMovie("level8-enemy", "e" + eCounter, _root.k++);
enemies.push(eCounter);
shel.speed = speed;
shel._x = -30;
shel._y = line._y - (shel._height / 2);
}
i = 0;
while (i < enemies.length) {
loadArea["e" + enemies[i]]._x = loadArea["e" + enemies[i]]._x + loadArea["e" + enemies[i]].speed;
loadArea["e" + enemies[i]].rot._rotation = loadArea["e" + enemies[i]].rot._rotation + 5;
if (loadArea["e" + enemies[i]].hitA.hitTest(player)) {
_root.triggerLoss();
}
if (loadArea["e" + enemies[i]]._x > 600) {
loadArea["e" + enemies[i]].removeMovieClip();
enemies.splice(i, 1);
}
i++;
}
};
}
function callExit() {
a.stop();
b.stop();
}
var xVel = 0;
var yVel = 0;
var yMov = 0;
var gravity = 0.3;
counter = 0;
var eCounter = 0;
var enemies = new Array();
var bullets = new Array();
bCounter = 0;
var goal = 1;
var bCount = 0;
p = 3;
t = 5;
r = 2;
var jumping = false;
Symbol 82 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 92 MovieClip [level15] Frame 1
function callEnter() {
onEnterFrame = function () {
speed = _root.speed / 3;
a.play();
b.play();
if (yVel > 0) {
yVel = speed;
} else {
yVel = -speed;
}
if (xVel > 0) {
xVel = speed;
} else {
xVel = -speed;
}
player._y = player._y + yVel;
player._x = player._x + xVel;
if (Key.isDown(37)) {
walls.gotoAndStop(4);
}
if (Key.isDown(39)) {
walls.gotoAndStop(2);
}
if (Key.isDown(38)) {
walls.gotoAndStop(1);
}
if (Key.isDown(40)) {
walls.gotoAndStop(3);
}
if (player.hitTest(walls.block)) {
if (walls._currentframe == 1) {
yVel = Math.abs(yVel);
}
if (walls._currentframe == 2) {
xVel = -Math.abs(xVel);
}
if (walls._currentframe == 3) {
yVel = -Math.abs(yVel);
}
if (walls._currentframe == 4) {
xVel = Math.abs(xVel);
}
}
if ((((player._x > 550) || (player._x < 0)) || (player._y > 400)) || (player._y < 0)) {
_root.triggerLoss();
}
speed = _root.speed;
};
}
function callExit() {
a.stop();
b.stop();
}
xVel = random(3) + 1;
yVel = random(3) + 1;
if (xVel == 0) {
xVel++;
}
if (yVel == 0) {
yVel++;
}
counter = 0;
var eCounter = 0;
var enemies = new Array();
var bullets = new Array();
bCounter = 0;
var goal = 1;
var bCount = 0;
p = 1;
t = 7;
r = 2;
Symbol 96 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 100 MovieClip [level14] Frame 1
function callEnter() {
onEnterFrame = function () {
bCount++;
if (bCount >= Math.floor((1 / speed) * 100)) {
bulletReady = true;
}
a.play();
b.play();
counter++;
speed = _root.speed;
if (counter >= goal) {
goal = Math.floor((1 / speed) * 300);
counter = 0;
eCounter++;
shel = loadArea.attachMovie("level14-enemy", "e" + eCounter, _root.k++);
enemies.push(eCounter);
shel._x = random(550);
shel._y = -50;
shel.lives = 2;
shel.xVel = random(6) - 3;
}
i = 0;
while (i < enemies.length) {
loadArea["e" + enemies[i]]._x = loadArea["e" + enemies[i]]._x + loadArea["e" + enemies[i]].xVel;
loadArea["e" + enemies[i]]._y = loadArea["e" + enemies[i]]._y + speed;
if (loadArea["e" + enemies[i]]._y > 550) {
loadArea["e" + enemies[i]].removeMovieClip();
enemies.splice(i, 1);
}
if (loadArea["e" + enemies[i]].hitTest(player)) {
_root.triggerLoss();
}
i++;
}
i = 0;
while (i < bullets.length) {
loadArea["b" + bullets[i]]._y = loadArea["b" + bullets[i]]._y + (-speed);
j = 0;
while (j < enemies.length) {
if (loadArea["b" + bullets[i]].hitTest(loadArea["e" + enemies[j]])) {
loadArea["e" + enemies[j]].gotoAndPlay(2);
loadArea["b" + bullets[i]].removeMovieClip();
bullets.splice(i, 1);
loadArea["e" + enemies[j]].lives--;
if (loadArea["e" + enemies[j]].lives <= 0) {
loadArea["e" + enemies[j]].gotoAndPlay(10);
loadArea["e" + enemies[j]].splice(i, 1);
}
}
j++;
}
if (loadArea["b" + bullets[i]]._y < -30) {
loadArea["b" + bullets[i]].removeMovieClip();
bullets.splice(i, 1);
}
i++;
}
if (player._y > 380) {
player._y = 380;
}
if (player._y < 20) {
player._y = 20;
}
if (player._x > 530) {
player._x = 530;
}
if (player._x < 20) {
player._x = 20;
}
if (Key.isDown(37)) {
player._x = player._x - speed;
}
if (Key.isDown(39)) {
player._x = player._x + speed;
}
if (Key.isDown(38)) {
player._y = player._y - speed;
}
if (Key.isDown(40)) {
player._y = player._y + speed;
}
if (bulletReady) {
bCount = 0;
bulletReady = false;
bCounter++;
shel = loadArea.attachMovie("level14-bullet", "b" + bCounter, _root.k++);
bullets.push(bCounter);
shel._x = player._x;
shel._y = player._y - (player._height / 2);
}
};
}
function callExit() {
a.stop();
b.stop();
}
var xVel = 0;
var yVel = 0;
var yMov = 0;
counter = 0;
var eCounter = 0;
var enemies = new Array();
var bullets = new Array();
bCounter = 0;
var goal = 1;
var bCount = 0;
p = 7;
t = 2;
r = 1;
Symbol 104 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 112 MovieClip [level4] Frame 1
function callEnter() {
onEnterFrame = function () {
bCount++;
a.play();
b.play();
if (bCount >= Math.floor((1 / speed) * 50)) {
bulletReady = true;
}
counter++;
speed = _root.speed;
if (counter >= goal) {
goal = Math.floor((1 / speed) * 1000);
counter = 0;
eCounter++;
shel = loadArea.attachMovie("level4-line", "e" + eCounter, _root.k++);
enemies.push(eCounter);
switch (random(2)) {
case 0 :
shel._x = 550;
shel.xVel = 1;
break;
case 1 :
shel._x = 0;
shel.xVel = -1;
shel._rotation = 180;
}
shel._y = 390 - random(370);
}
i = 0;
while (i < enemies.length) {
loadArea["e" + enemies[i]]._x = loadArea["e" + enemies[i]]._x + (loadArea["e" + enemies[i]].xVel * ((-speed) / 8));
if (loadArea["e" + enemies[i]].hitTest(centerLine)) {
_root.triggerLoss();
}
i++;
}
i = 0;
while (i < bullets.length) {
loadArea["b" + bullets[i]]._x = loadArea["b" + bullets[i]]._x - (loadArea["b" + bullets[i]].xVel * speed);
j = 0;
while (j < enemies.length) {
if (loadArea["b" + bullets[i]].hitTest(loadArea["e" + enemies[j]])) {
loadArea["e" + enemies[j]]._x = loadArea["e" + enemies[j]]._x + ((speed * 5) * loadArea["e" + enemies[j]].xVel);
loadArea["b" + bullets[i]].removeMovieClip();
bullets.splice(i, 1);
}
j++;
}
if (loadArea["b" + bullets[i]]._x > 600) {
loadArea["b" + bullets[i]].removeMovieClip();
bullets.splice(i, 1);
}
i++;
}
if (player._y > 380) {
player._y = 380;
}
if (player._y < 20) {
player._y = 20;
}
if (player._x > 530) {
player._x = 530;
}
if (player._x < 20) {
player._x = 20;
}
if (Key.isDown(37)) {
player._xscale = -100;
}
if (Key.isDown(39)) {
player._xscale = 100;
}
if (Key.isDown(38)) {
player._y = player._y - speed;
}
if (Key.isDown(40)) {
player._y = player._y + speed;
}
if (bulletReady) {
bCount = 0;
bulletReady = false;
bCounter++;
shel = loadArea.attachMovie("level4-bullet", "b" + bCounter, _root.k++);
bullets.push(bCounter);
if (player._xscale == 100) {
shel.xVel = -1;
} else {
shel.xVel = 1;
}
shel._x = player._x + ((xVel * player._width) / 2);
shel._y = player._y;
}
};
}
function callExit() {
a.stop();
b.stop();
}
var xVel = 0;
var yVel = 0;
var yMov = 0;
counter = 0;
var eCounter = 0;
var enemies = new Array();
var bullets = new Array();
bCounter = 0;
var goal = 1;
var bCount = 0;
p = 7;
t = 2;
r = 1;
Symbol 116 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 122 MovieClip [level13] Frame 1
function callEnter() {
onEnterFrame = function () {
counter++;
a.play();
b.play();
speed = _root.speed;
gravity = speed * 0.2;
if (counter >= goal) {
goal = Math.floor((1 / speed) * 500);
counter = 0;
eCounter++;
shel = loadArea.attachMovie("level13-wall", "e" + eCounter, _root.k++);
enemies.push(eCounter);
shel._x = 590;
shel._y = random(400);
}
i = 0;
while (i < enemies.length) {
loadArea["e" + enemies[i]]._x = loadArea["e" + enemies[i]]._x + (-speed);
if (loadArea["e" + enemies[i]]._x < -20) {
loadArea["e" + enemies[i]].removeMovieClip();
enemies.splice(i, 1);
}
if (loadArea["e" + enemies[i]].hitTest(player)) {
_root.triggerLoss();
}
i++;
}
if (player._x > 530) {
player._x = 530;
xVel = xVel * -1;
}
if (player._x < 20) {
player._x = 20;
xVel = xVel * -1;
}
if (player._y > 380) {
player._y = 380;
yVel = yVel * -1;
}
if (player._y < 20) {
player._y = 20;
yVel = yVel * -1;
}
if (Key.isDown(37)) {
xVel = xVel - (speed / 10);
} else if (Key.isDown(39)) {
xVel = xVel + (speed / 10);
}
if (Key.isDown(38)) {
yVel = yVel - (speed / 10);
} else if (Key.isDown(40)) {
yVel = yVel + (speed / 10);
}
player._x = player._x + xVel;
player._y = player._y + yVel;
yVel = yVel * 0.95;
xVel = xVel * 0.95;
};
}
function callExit() {
a.stop();
b.stop();
}
var xVel = 0;
var yVel = 0;
var yMov = 0;
counter = 0;
var eCounter = 0;
var enemies = new Array();
var goal = 1;
p = 2;
t = 4;
r = 4;
Symbol 126 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 134 MovieClip [level3] Frame 1
function callEnter() {
onEnterFrame = function () {
bg.play();
a.play();
b.play();
counter++;
speed = _root.speed;
if (counter >= goal) {
goal = Math.floor((1 / speed) * 250) + (Math.floor((1 / speed) * 50) * random(2));
counter = 0;
eCounter++;
shel = loadArea.attachMovie("level3-pillar", "e" + eCounter, _root.k++);
enemies.push(eCounter);
shel._x = 590;
shel._y = 390 - random(200);
}
i = 0;
while (i < enemies.length) {
loadArea["e" + enemies[i]]._x = loadArea["e" + enemies[i]]._x + (-speed);
if (loadArea["e" + enemies[i]].pillTop.hitTest(player)) {
yVel = -10;
}
if (loadArea["e" + enemies[i]]._x < -20) {
loadArea["e" + enemies[i]].removeMovieClip();
enemies.splice(i, 1);
}
i++;
}
if (Key.isDown(37)) {
player._x = player._x - speed;
}
if (Key.isDown(39)) {
player._x = player._x + speed;
}
yVel = yVel + (yMov + gravity);
player._x = player._x + xVel;
player._y = player._y + yVel;
if (player._y > 420) {
_root.triggerLoss();
}
};
}
function callExit() {
bg.stop();
a.stop();
b.stop();
}
var xVel = 0;
var yVel = 0;
var yMov = 0;
counter = 0;
var eCounter = 0;
var enemies = new Array();
var goal = 1;
var gravity = 0.3;
p = 5;
t = 5;
r = 0;
i = 0;
while (i < 6) {
eCounter++;
shel = loadArea.attachMovie("level3-pillar", "e" + eCounter, _root.k++);
enemies.push(eCounter);
shel._x = i * 91.6666666666667;
shel._y = 390 - random(200);
i++;
}
Symbol 138 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 1
this._visible = false;
Symbol 146 MovieClip [level6] Frame 1
function callEnter() {
onEnterFrame = function () {
a.play();
b.play();
dCounter++;
if (dCounter >= dGoal) {
dCounter = 0;
k = _root.k++;
shel = loadArea.attachMovie("level6-graphix", "d" + k, k);
decor.push(k);
shel._x = random(550);
shel._y = random(400);
shel._alpha = 25;
shel._rotation = random(360);
shel._xscale = (shel._yscale = random(25) + 25);
shel.gotoAndStop(2);
}
i = 0;
while (i < decor.length) {
loadArea["d" + decor[i]]._xscale = loadArea["d" + decor[i]]._xscale - 1;
loadArea["d" + decor[i]]._yscale = loadArea["d" + decor[i]]._yscale - 1;
loadArea["d" + decor[i]]._alpha = loadArea["d" + decor[i]]._alpha - 1;
loadArea["d" + decor[i]]._y = loadArea["d" + decor[i]]._y - 1;
if (loadArea["d" + decor[i]]._alpha <= 0) {
loadArea["d" + decor[i]].removeMovieClip();
decor.splice(i, 1);
}
i++;
}
speed = _root.speed / 2;
youMaxSpeed = speed;
youSpeed = Math.min(youMaxSpeed, youSpeed + youAcc);
player._rotation = player._rotation + (((Key.isDown(39) - Key.isDown(37)) * speed) * 1.5);
xC = Math.cos((player._rotation * Math.PI) / 180) * youSpeed;
yC = Math.sin((player._rotation * Math.PI) / 180) * youSpeed;
player._x = player._x + xC;
player._y = player._y + yC;
oldX = player._x;
oldY = player._y;
if (player._rotation >= 360) {
player._rotation = player._rotation - 360;
}
if (player._rotation < 0) {
player._rotation = player._rotation + 360;
}
if (player._x >= 550) {
if ((player._rotation >= 0) && (player._rotation < 90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
if ((player._rotation < 0) && (player._rotation > -90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
}
if (player._x <= 0) {
if ((player._rotation <= 180) && (player._rotation > 90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
if ((player._rotation > -180) && (player._rotation < -90)) {
player._rotation = 180 - player._rotation;
moveMe();
}
}
if (player._y <= 0) {
if ((player._rotation >= -180) && (player._rotation <= -90)) {
player._rotation = -player._rotation;
moveMe();
}
if ((player._rotation >= -90) && (player._rotation <= 0)) {
player._rotation = -player._rotation;
moveMe();
}
}
if (player._y >= 400) {
if ((player._rotation >= 90) && (player._rotation <= 180)) {
player._rotation = -player._rotation;
moveMe();
}
if ((player._rotation <= 90) && (player._rotation >= 0)) {
player._rotation = -player._rotation;
moveMe();
}
}
bCount++;
if (bCount >= Math.floor((1 / speed) * 50)) {
bulletReady = true;
}
counter++;
speed = _root.speed;
if (counter >= goal) {
goal = Math.floor((1 / speed) * 400);
counter = 0;
eCounter++;
shel = loadArea.attachMovie("level6-enemy", "e" + eCounter, _root.k++);
enemies.push(eCounter);
shel._x = random(550);
shel._y = -20;
}
i = 0;
while (i < enemies.length) {
_root.easing("x", loadArea["e" + enemies[i]], player._x, speed * 0.004);
_root.easing("y", loadArea["e" + enemies[i]], player._y, speed * 0.004);
if (loadArea["e" + enemies[i]].hitA.hitTest(player.hitA)) {
_root.triggerLoss();
}
i++;
}
};
}
function callExit() {
a.stop();
b.stop();
}
var xVel = 0;
var yVel = 0;
var yMov = 0;
counter = 0;
var eCounter = 0;
var enemies = new Array();
var bullets = new Array();
var decor = new Array();
bCounter = 0;
var goal = 1;
var bCount = 0;
var rot = 0;
p = 0;
t = 2;
r = 8;
youAcc = 4;
youDec = 0.2;
youSpeed = 0;
youMaxSpeed = random(5) + 5;
player._rotation = random(360);
life = life * 50;
dCounter = 19;
dGoal = 3;
Symbol 155 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 1
stop();
Symbol 159 MovieClip [level2] Frame 1
function callEnter() {
onEnterFrame = function () {
a.play();
b.play();
trep.sw.text = (Math.round(player._x) + ",") + Math.round(player._y);
speed = _root.speed;
counter++;
trep._x = player._x;
trep._y = player._y;
if (counter == goal) {
counter = 0;
goal = Math.floor((1 / speed) * 200);
eCounter++;
shel = loadArea.attachMovie("level2-thing", "e" + eCounter, _root.k++);
enemies.push(eCounter);
switch (random(2)) {
case 0 :
shel._x = -20 + (random(2) * 590);
if (shel._x < 20) {
shel.xVel = 1;
} else {
shel.xVel = -1;
}
shel._y = random(400);
shel.yVel = 0;
break;
case 1 :
shel._y = -20 + (random(2) * 440);
if (shel._y < 20) {
shel.yVel = 1;
} else {
shel.yVel = -1;
}
shel.xVel = 0;
shel._x = random(550);
}
}
i = 0;
while (i < enemies.length) {
loadArea["e" + enemies[i]]._x = loadArea["e" + enemies[i]]._x + (speed * loadArea["e" + enemies[i]].xVel);
loadArea["e" + enemies[i]]._y = loadArea["e" + enemies[i]]._y + (speed * loadArea["e" + enemies[i]].yVel);
if (loadArea["e" + enemies[i]].hitTest(player)) {
_root.triggerLoss();
}
if ((((loadArea["e" + enemies[i]]._x < -50) || (loadArea["e" + enemies[i]]._x > 600)) || (loadArea["e" + enemies[i]]._y < -50)) || (loadArea["e" + enemies[i]]._y > 450)) {
loadArea["e" + enemies[i]].removeMovieClip();
enemies.splice(i, 1);
}
i++;
}
speed = _root.speed;
if (player._x > 530) {
player._x = 530;
xVel = xVel * -1;
}
if (player._x < 20) {
player._x = 20;
xVel = xVel * -1;
}
if (player._y > 380) {
player._y = 380;
yVel = yVel * -1;
}
if (player._y < 20) {
player._y = 20;
yVel = yVel * -1;
}
if (Key.isDown(37)) {
xVel = xVel - (speed / 10);
} else if (Key.isDown(39)) {
xVel = xVel + (speed / 10);
}
if (Key.isDown(38)) {
yVel = yVel - (speed / 10);
} else if (Key.isDown(40)) {
yVel = yVel + (speed / 10);
}
player._x = player._x + xVel;
player._y = player._y + yVel;
yVel = yVel * 0.9;
xVel = xVel * 0.9;
};
}
function callExit() {
a.stop();
b.stop();
}
var xVel = 0;
var yVel = 0;
counter = 0;
p = 1;
t = 2;
r = 7;
var eCounter = 0;
var enemies = new Array();
var goal = 1;
trep.lineStyle(0, 16777215, 20);
trep.moveTo(0, 0);
trep.lineTo(550, 0);
trep.moveTo(0, 0);
trep.lineTo(0, 400);
trep.moveTo(0, 0);
trep.lineTo(0, -400);
trep.moveTo(0, 0);
trep.lineTo(-550, 0);
trep._x = player._x;
trep._y = player._y;
Symbol 163 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 169 MovieClip [level7] Frame 1
function callEnter() {
onEnterFrame = function () {
speed = _root.speed;
counter++;
a.play();
b.play();
if (counter == goal) {
counter = 0;
goal = Math.floor((1 / speed) * 400);
eCounter++;
shel = attachMovie("level7-goal", "e" + eCounter, _root.k++);
shel._x = 100 + random(350);
shel._y = 100 + random(200);
shel._xscale = 15;
shel._yscale = shel._xscale;
enemies.push(eCounter);
}
i = 0;
while (i < enemies.length) {
this["e" + enemies[i]]._xscale = this["e" + enemies[i]]._xscale + (speed / 10);
this["e" + enemies[i]]._yscale = this["e" + enemies[i]]._yscale + (speed / 10);
tra = Math.floor((100 - this["e" + enemies[i]]._xscale) / 10);
if (tra < 0) {
tra = 0;
}
this["e" + enemies[i]].tipTop.text = tra;
if (this["e" + enemies[i]]._xscale >= 100) {
if (this["e" + enemies[i]].inside.hitTest(player)) {
this["e" + enemies[i]].play();
enemies.splice(i, 1);
} else {
_root.triggerLoss();
}
}
i++;
}
speed = _root.speed;
if (player._x > 530) {
player._x = 530;
xVel = xVel * -1;
}
if (player._x < 20) {
player._x = 20;
xVel = xVel * -1;
}
if (player._y > 380) {
player._y = 380;
yVel = yVel * -1;
}
if (player._y < 20) {
player._y = 20;
yVel = yVel * -1;
}
if (Key.isDown(37)) {
xVel = xVel - (speed / 10);
} else if (Key.isDown(39)) {
xVel = xVel + (speed / 10);
}
if (Key.isDown(38)) {
yVel = yVel - (speed / 10);
} else if (Key.isDown(40)) {
yVel = yVel + (speed / 10);
}
player._x = player._x + xVel;
player._y = player._y + yVel;
yVel = yVel * 0.9;
xVel = xVel * 0.9;
};
}
function callExit() {
a.stop();
b.stop();
}
var xVel = 0;
var yVel = 0;
counter = 0;
var eCounter = 0;
var enemies = new Array();
var goal = 1;
p = 7;
t = 2;
r = 1;
Symbol 173 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 1
stop();
Symbol 184 MovieClip [level12] Frame 1
function callEnter() {
onEnterFrame = function () {
a.play();
b.play();
speed = _root.speed;
if (Key.isDown(37)) {
pass.gotoAndStop(4);
dir = 4;
}
if (Key.isDown(39)) {
pass.gotoAndStop(2);
dir = 2;
}
if (Key.isDown(38)) {
pass.gotoAndStop(1);
dir = 1;
}
if (Key.isDown(40)) {
pass.gotoAndStop(3);
dir = 3;
}
counter++;
speed = _root.speed;
if (counter >= goal) {
goal = Math.floor((1 / speed) * 500);
counter = 0;
eCounter++;
shel = loadArea.attachMovie("level12-boxx", "e" + eCounter, _root.k++);
shel.dir = random(4) + 1;
shel.gotoAndStop(shel.dir);
enemies.push(eCounter);
shel._x = -20;
shel._y = line._y;
shel.activ = false;
}
i = 0;
while (i < enemies.length) {
loadArea["e" + enemies[i]]._x = loadArea["e" + enemies[i]]._x + ((speed * 2) / 3);
if (loadArea["e" + enemies[i]]._x > 560) {
loadArea["e" + enemies[i]].removeMovieClip();
enemies.splice(i, 1);
}
if ((loadArea["e" + enemies[i]].activ == false) && (loadArea["e" + enemies[i]].hitTest(pass))) {
loadArea["e" + enemies[i]].activ = true;
if (loadArea["e" + enemies[i]].dir == dir) {
} else {
_root.triggerLoss();
}
}
i++;
}
};
}
function callExit() {
a.stop();
b.stop();
}
var leftLimit = 90;
var rightLimit = 460;
gravity = 0.3;
p = 0;
t = 2;
r = 8;
i = 0;
while (i < 4) {
this["ball" + i].xVel = random(6) - 3;
if (this["ball" + i].xVel == 0) {
this["ball" + i].xVel = 1;
}
this["ball" + i].yVel = 0;
i++;
}
var enemies = new Array();
var counter = 0;
var eCounter = 0;
var goal = 5;
dir = 1;
Symbol 188 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 1
stop();
Symbol 196 MovieClip [level11] Frame 1
function callEnter() {
onEnterFrame = function () {
speed = _root.speed;
a.play();
b.play();
i = 0;
while (i < 4) {
ball = this["ball" + i];
if (i == 3) {
if (Key.isDown(37)) {
ball3._x = ball3._x - (0.5 * speed);
}
if (Key.isDown(39)) {
ball3._x = ball3._x + (0.5 * speed);
}
}
if (ball._x > 530) {
ball._x = 530;
ball.xVel = ball.xVel * -1;
}
if (ball._x < 20) {
ball._x = 20;
ball.xVel = ball.xVel * -1;
}
if (ball._y > 380) {
ball._y = 380;
ball.yVel = -15;
}
if (i != 3) {
ball._x = ball._x + (ball.xVel * (speed / 4));
}
ball.yVel = ball.yVel + gravity;
ball._y = ball._y + ball.yVel;
if (i != 3) {
xDistance = ball3._x - ball._x;
yDistance = ball3._y - ball._y;
dist = Math.sqrt((xDistance * xDistance) + (yDistance * yDistance));
if (dist < ((ball3._width / 2) + (ball._width / 2))) {
_root.triggerLoss();
}
}
i++;
}
};
}
function callExit() {
a.stop();
b.stop();
}
var leftLimit = 90;
var rightLimit = 460;
gravity = 0.3;
p = 2;
t = 5;
r = 3;
i = 0;
while (i < 4) {
this["ball" + i].xVel = random(6) - 3;
if (this["ball" + i].xVel == 0) {
this["ball" + i].xVel = 1;
}
this["ball" + i].yVel = 0;
i++;
}
Symbol 203 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 1
stop();
Symbol 207 MovieClip [level1] Frame 1
function callEnter() {
onEnterFrame = function () {
speed = _root.speed * 1.5;
a.play();
b.play();
if (yVel > 0) {
yVel = speed;
} else {
yVel = -speed;
}
if (xVel > 0) {
xVel = speed;
} else {
xVel = -speed;
}
if (Key.isDown(37)) {
paddle._x = paddle._x - speed;
} else if (Key.isDown(39)) {
paddle._x = paddle._x + speed;
}
if (paddle._x > rightLimit) {
paddle._x = rightLimit;
}
if (paddle._x < leftLimit) {
paddle._x = leftLimit;
}
if (ball.hitTest(paddle)) {
yVel = -Math.abs(yVel);
}
if (ball._y < 0) {
yVel = yVel * -1;
}
if (ball._x > (550 - (ball._width / 2))) {
xVel = xVel * -1;
}
if (ball._x < (0 + (ball._width / 2))) {
xVel = xVel * -1;
}
if (ball._y > 400) {
_root.triggerLoss();
}
ball._x = ball._x + xVel;
ball._y = ball._y + yVel;
};
}
function callExit() {
a.stop();
b.stop();
}
var leftLimit = 90;
var rightLimit = 460;
var xVel;
var yVel;
p = 1;
t = 8;
r = 1;
xVel = _root.speed * 1.5;
yVel = _root.speed * 1.5;
Symbol 224 MovieClip [level6-bullet] Frame 1
stop();
Symbol 224 MovieClip [level6-bullet] Frame 20
spliceReady = true;
Symbol 234 MovieClip [level7-goal] Frame 1
stop();
Symbol 234 MovieClip [level7-goal] Frame 20
this.removeMovieClip();
Symbol 237 MovieClip [level9-enemy] Frame 1
stop();
Symbol 237 MovieClip [level9-enemy] Frame 2
onEnterFrame = function () {
yVel = yVel - 0.1;
this._y = this._y - yVel;
this._alpha = this._alpha - 4;
this._rotation = this._rotation + 5;
};
Symbol 237 MovieClip [level9-enemy] Frame 25
this.removeMovieClip();
Symbol 244 MovieClip [level10-enemy] Frame 1
stop();
Symbol 244 MovieClip [level10-enemy] Frame 10
this.removeMovieClip();
Symbol 251 MovieClip [level12-boxx] Frame 1
stop();
Symbol 256 MovieClip [level14-enemy] Frame 1
stop();
Symbol 256 MovieClip [level14-enemy] Frame 7
gotoAndStop (1);
Symbol 256 MovieClip [level14-enemy] Frame 17
this.removeMovieClip();
Symbol 259 MovieClip [level6-graphix] Frame 1
stop();
Symbol 406 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local23 = 11000;
var _local19 = options.ad_timeout;
if (options.skip) {
_local19 = 0;
}
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
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 _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local22 = options.color;
delete options.color;
var _local20 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local20);
_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 = _local6.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 _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local24, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local19;
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;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local2}, clip._mochiad._containerLCName);
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_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 showClickAwayAd(options) {
var _local10 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local10);
var clip = options.clip;
var _local9 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local3 = clip._mochiad;
_local3.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local11 = _local5[0];
var _local8 = _local5[1];
_local3._x = _local11 * 0.5;
_local3._y = _local8 * 0.5;
var chk = _local3.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local9;
chk.started = getTimer();
chk.showing = false;
_local3.lc.adLoaded = options.ad_loaded;
_local3.lc.adSkipped = options.ad_skipped;
_local3.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
_local3.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local21 = false;
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")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
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();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
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_failed();
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;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
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) {
options.ad_failed();
_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 showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(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 load(options) {
var _local12 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local12);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local6 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local6._mochiad_loaded) {
return(null);
}
var _local11 = options.depth;
delete options.depth;
var mc = _local6.createEmptyMovieClip("_mochiad", _local11);
var _local10 = _getRes(options);
options.res = (_local10[0] + "x") + _local10[1];
options.server = options.server + options.id;
delete options.id;
_local6._mochiad_loaded = true;
if (_local6._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local9 = _local4.server;
delete _local4.server;
var _local13 = _allowDomains(_local9);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new Object();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = mc;
_local5.name = _local8;
_local5.hostname = _local13;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
mc.lc = _local5;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
_local4.lc = _local8;
_local4.st = getTimer();
if (!options.skip) {
_local4.loadMovie(_local9 + ".swf", "POST");
}
return(mc);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
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++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 407 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
class mochi.as2.MochiSync
{
var _syncContainer;
function MochiSync () {
_syncContainer = {};
}
function getProp(name) {
return(_syncContainer[name]);
}
function setProp(name, value) {
if (_syncContainer[name] == value) {
return(undefined);
}
_syncContainer[name] = value;
mochi.as2.MochiServices.send("sync_propUpdate", {name:name, value:value});
}
function triggerEvent(eventType, args) {
switch (eventType) {
case SYNC_REQUEST :
mochi.as2.MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY :
_syncContainer[args.name] = args.value;
}
}
static var SYNC_REQUEST = "SyncRequest";
static var SYNC_PROPERTY = "UpdateProperty";
}
Symbol 408 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _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("3.8 as2");
}
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";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.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();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
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.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.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];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
break;
case "sync" :
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function updateCopy(args) {
send("coins_updateCopy", args, null, null);
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._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 ((args.options != null) && (args.options.onError != null)) {
args.options.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:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var servicesSync = new mochi.as2.MochiSync();
}
Symbol 409 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 410 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 411 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("coins_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("coins_hideLoginWidget");
}
static function requestLogin() {
mochi.as2.MochiServices.send("coins_requestLogin");
}
static function getUserInfo() {
mochi.as2.MochiServices.send("coins_getUserInfo");
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("coins_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 412 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.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 (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.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 413 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 273 Button
on (release) {
_root.play();
}
Symbol 274 MovieClip Frame 1
stop();
act = false;
Symbol 274 MovieClip Frame 10
stop();
Symbol 279 Button
on (release) {
getURL ("http://dissoluteproductions.com/index.php", "_blank");
}
Symbol 283 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 293 MovieClip Frame 126
_root.nextFrame();
Symbol 294 MovieClip Frame 1
stop();
Instance of Symbol 293 MovieClip in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Symbol 294 MovieClip Frame 2
_root.nextFrame();
Symbol 305 Button
on (release) {
play();
}
Symbol 308 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 311 Button
on (release) {
getURL ("http://rankz.armorbot.com/grid16/", "_blank");
}
Symbol 314 Button
on (release) {
getURL ("http://rankz.armorbot.com/grid16/", "_blank");
}
Symbol 315 Button
on (release) {
mochi.as2.MochiScores.showLeaderboard({boardID:"fa14d35df112c4d4", onClose:function () {
}});
}
Symbol 316 Button
on (release) {
getURL ("http://www.armorblog.com", "_blank");
}
Symbol 324 MovieClip Frame 50
stop();
Symbol 324 MovieClip Frame 95
_root.play();
Symbol 336 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 155
_root.myStage = 4;
this.swapDepths(_root.k++);
this.removeMovieClip();
Symbol 347 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
cameraFrame._visible = false;
Symbol 373 Button
on (release) {
_parent.play();
}
Symbol 377 MovieClip Frame 1
onEnterFrame = function () {
pBar.gotoAndStop(Math.round((_root.p / _root.pTotal) * 100));
tBar.gotoAndStop(Math.round((_root.t / _root.tTotal) * 100));
rBar.gotoAndStop(Math.round((_root.r / _root.rTotal) * 100));
point = {};
point.x = pBar.inPoint._x;
point.y = pBar.inPoint._y;
pBar.localToGlobal(point);
pX = point.x - _x;
pY = point.y - _y;
point = {};
point.x = tBar.inPoint._x;
point.y = tBar.inPoint._y;
tBar.localToGlobal(point);
tX = point.x - _x;
tY = point.y - _y;
point = {};
point.x = rBar.inPoint._x;
point.y = rBar.inPoint._y;
rBar.localToGlobal(point);
rX = point.x - _x;
rY = point.y - _y;
clear();
lineStyle(3, 5727707, 100);
beginFill(5727707, 20);
moveTo(rX, rY);
lineTo(tX, tY);
lineTo(pX, pY);
lineTo(rX, rY);
endFill();
multi = Math.floor(_root.speed / 5);
pPer = Math.round((_root.p / _root.pTotal) * 100) + "%";
tPer = Math.round((_root.t / _root.tTotal) * 100) + "%";
rPer = Math.round((_root.r / _root.rTotal) * 100) + "%";
};
Symbol 380 MovieClip Frame 1
stop();
Symbol 384 Button
on (release) {
trace(_root.timeTotal);
mochi.as2.MochiScores.showLeaderboard({boardID:"fa14d35df112c4d4", score:_root.timeTotal, onClose:function () {
posted.gotoAndStop(2);
sub._x = 40000;
}});
}
Symbol 388 Button
on (release) {
mochi.as2.MochiScores.showLeaderboard({boardID:"fa14d35df112c4d4", onClose:function () {
}});
}
Symbol 392 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 395 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("game");
}
Symbol 400 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 403 Button
on (release) {
getURL ("http://www.armorblog.com/", "_blank");
}
Symbol 405 MovieClip Frame 1
_root._x = 275;
_root._y = 200;
_root._xscale = 100;
_root._yscale = 100;
stopAllSounds();
Symbol 405 MovieClip Frame 126
stop();
Symbol 405 MovieClip Frame 170
stop();