Frame 1
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;
var pv;
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);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&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);
}
stop();
Stage.showMenu = false;
_root.kongregateServices.connect();
MochiAd.showPreGameAd({id:"b6b2fe863a796407", res:"550x500"});
mochi.MochiServices.connect("b6b2fe863a796407");
__com_mochibot__("ee5bb14d", this, 10301, true);
Frame 2
function frameBetweenLevels() {
if (_root.trainingMode == false) {
BG.play();
}
overlay.play();
overlay._visible = true;
_root.powerArrow._visible = false;
}
function levelReset(tryAgain) {
_root.powerArrow._visible = true;
clearObjects();
levelTransition = false;
_root.timerBar.active = false;
_root.timerBar._visible = false;
_root.timerBar2.active = false;
_root.timerBar2._visible = false;
i = 1;
while (i <= _root.objects) {
_root["object" + i].reset();
_root["button" + i].reset();
i++;
}
i = 1;
while (i <= 20) {
_root["object" + i].animation.gotoAndStop(1);
_root["button" + i].gotoAndStop(1);
i++;
}
i = 1;
while (i <= _root.lights) {
_root["light" + i].gotoAndStop(1);
i++;
}
_root.turret.ballFired = false;
_root.HUD.active = true;
_root.HUD.ballNum = 1;
_root.HUD.ballRemain.gotoAndStop(1);
_root.HUD.active = true;
if (tryAgain == false) {
_root.HUD.levelScore = 500;
if (_root.trainingMode == false) {
BG.gotoAndPlay(2);
}
overlay._visible = false;
retry = false;
} else {
_root.retry = true;
}
_root.HUD.button.gotoAndStop(1);
_root.codeClip.active = true;
}
function clearObjects() {
i = 1;
while (i <= 200) {
_root["spark" + i].removeMovieClip();
i++;
}
i = 1;
while (i <= 100) {
_root["bullet" + i].removeMovieClip();
i++;
}
i = 1;
while (i <= 10) {
_root["trackRing" + i].removeMovieClip();
i++;
}
i = 1;
while (i <= 3) {
_root["ball" + i].ballFreeze = true;
_root["ball" + i]._visible = false;
_root["ball" + i].bounces = 0;
_root["ball" + i].active = true;
_root["ball" + i]._x = -50;
i++;
}
}
function sparkExplosion(n) {
i = 1;
while (i <= particles) {
particleNum = (25 * n) + i;
_root.spark.duplicateMovieClip("spark" + particleNum, particleNum);
_root["spark" + particleNum]._x = _root["ball" + n]._x;
_root["spark" + particleNum]._y = _root["ball" + n]._y;
_root["spark" + particleNum].xSpeed = (_root["ball" + n].xSpeed / 4) + (random(10) - random(20));
_root["spark" + particleNum].ySpeed = (_root["ball" + n].ySpeed / 4) + (random(10) - random(20));
i++;
}
}
function fireBullet(direction, n) {
_root.bullet.duplicateMovieClip("bullet" + j, j + 300);
_root["bullet" + j]._x = _root["ball" + n]._x;
_root["bullet" + j]._y = _root["ball" + n]._y;
_root["bullet" + j].direction = direction;
j++;
}
function playSound(soundName) {
if (_root.soundMute == false) {
sound = new Sound();
sound.attachSound(soundName);
sound.setVolume(_root.gameVolume);
sound.start(0.05, 0);
}
}
function playMusic(musicName) {
if (_root.musicMute == false) {
music = new Sound();
music.attachSound(musicName);
music.setVolume(_root.gameVolume);
music.start(0, 100);
}
}
objects = 7;
lights = 3;
j = 1;
qualitySetting = "high";
particleEffects = "medium";
particles = 15;
stop();
totalScore = 0;
Mouse.hide();
levelTransition = false;
gamePaused = false;
retry = false;
if (_root.gameVolume == undefined) {
gameVolume = 100;
}
if (musicMute == undefined) {
musicMute = false;
}
if (soundMute == undefined) {
soundMute = false;
}
Instance of Symbol 31 MovieClip "turret" in Frame 2
onClipEvent (load) {
ballNum = 1;
}
Instance of Symbol 40 MovieClip "bullet" in Frame 2
onClipEvent (load) {
active = true;
}
onClipEvent (enterFrame) {
if (active == true) {
if (direction == "left") {
this._x = this._x - 10;
this._rotation = -90;
} else if (direction == "right") {
this._x = this._x + 10;
this._rotation = 90;
} else if (direction == "up") {
this._y = this._y - 10;
} else if (direction == "down") {
this._y = this._y + 10;
}
i = 1;
while (i <= _root.objects) {
if (this.hitTest(_root["object" + i])) {
if (_root["object" + i].invisible == undefined) {
this.nextFrame();
active = false;
}
}
i++;
}
i = 1;
while (i <= _root.lights) {
if (this.hitTest(_root["light" + i]) and (_root["light" + i].active == false)) {
_root["light" + i].nextFrame();
this.removeMovieClip();
}
i++;
}
if ((((this._x > 600) or (this._x < -50)) or (this._y > 550)) or (this._y < -50)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 261 MovieClip "buttons" in Frame 2
onClipEvent (load) {
if (_root.trainingMode == true) {
this.gotoAndStop(5);
} else {
_root.trainingMode = false;
}
}
Instance of Symbol 262 MovieClip "codeClip" in Frame 2
onClipEvent (load) {
active = true;
lightNum = 0;
bulletNum = 0;
if (_root.trainingMode == false) {
_root.playMusic("menuMusic");
}
i = _root.gameVolume;
}
onClipEvent (enterFrame) {
if (active == true) {
i = 1;
while (i <= 3) {
if (_root["ball" + i].ballFreeze == false) {
if (((_root["ball" + i]._x > 600) or (_root["ball" + i]._x < -50)) or (_root["ball" + i]._y > 550)) {
_root["ball" + i].ballFreeze = true;
_root["ball" + i]._visible = false;
_root["ball" + i].bounces = 0;
_root["ball" + i].active = false;
}
}
i++;
}
i = 1;
while (i <= _root.lights) {
if (_root["light" + i].active == true) {
lightNum++;
}
i++;
}
if (lightNum == _root.lights) {
_root.levelComplete.active = true;
_root.levelComplete.calculateScore();
_root.HUD.active = false;
lightNum = 0;
active = false;
} else {
lightNum = 0;
}
}
i = 1;
while (i <= 3) {
if (_root["ball" + i].bounces >= 5) {
_root["ball" + i].ballFreeze = true;
_root["ball" + i]._visible = false;
_root["ball" + i].bounces = 0;
_root["ball" + i].active = false;
_root.sparkExplosion(i);
}
if (_root["ball" + i].active == false) {
activeNum++;
}
i++;
}
}
Instance of Symbol 264 MovieClip "spark" in Frame 2
onClipEvent (load) {
gravity = 1.5;
yDamp = 0.75;
xDamp = 0.5;
bounced = false;
}
onClipEvent (enterFrame) {
if ((xSpeed < 0.5) and (xSpeed > -0.5)) {
xSpeed = 0;
}
xPrev = this._x;
this._x = this._x + xSpeed;
if (ySpeed > 0) {
falling = true;
} else if (ySpeed < 0) {
falling = false;
}
ySpeed = ySpeed + gravity;
yPrev = this._y;
this._y = this._y + ySpeed;
i = 1;
while (i <= _root.objects) {
if (this.hitTest(_root["object" + i])) {
wallTop = _root["object" + i]._y - (_root["object" + i]._height / 2);
wallBottom = _root["object" + i]._y + (_root["object" + i]._height / 2);
wallLeft = _root["object" + i]._x - (_root["object" + i]._width / 2);
wallRight = _root["object" + i]._x + (_root["object" + i]._width / 2);
if (bounced == false) {
if ((this._y >= wallTop) and (yPrev <= wallTop)) {
this._y = wallTop;
falling = false;
ySpeed = ySpeed * (-yDamp);
bounced = true;
}
}
if (bounced == false) {
if (((this._y - radius) <= wallBottom) and (yPrev >= wallBottom)) {
this._y = wallBottom;
falling = true;
ySpeed = ySpeed * (-yDamp);
bounced = true;
}
}
if (bounced == false) {
if (((this._x + radius) >= wallLeft) and (xPrev <= wallLeft)) {
this._x = wallLeft;
xSpeed = xSpeed * (-xDamp);
bounced = true;
}
}
if (bounced == false) {
if (((this._x - radius) <= wallRight) and (xPrev >= wallRight)) {
this._x = wallRight;
xSpeed = xSpeed * (-xDamp);
bounced = true;
}
}
if (bounced == true) {
if ((ySpeed > -3) and (ySpeed < 3)) {
this.removeMovieClip();
}
}
bounced = false;
}
i++;
}
}
Instance of Symbol 270 MovieClip "light3" in Frame 2
onClipEvent (load) {
active = false;
}
Instance of Symbol 277 MovieClip "ball2" in Frame 2
onClipEvent (load) {
function reset() {
bounces = 0;
ySpeed = 0;
xSpeed = 0;
yMove = false;
xMove = false;
ballFreeze = true;
this._visible = false;
}
ballNum = 2;
active = true;
radius = this._width / 2;
falling = true;
gravity = 1.5;
reset();
yDamp = 0.9;
xDamp = 0.85;
xDist = 0;
yDist = 0;
maxDist = 0;
xPrev = 0;
yPrev = 0;
bounced = false;
}
onClipEvent (enterFrame) {
if (ballFreeze == false) {
this.ballRotate._rotation = this.ballRotate._rotation + (1.5 * xSpeed);
if (xMove == true) {
if (hitFloor == true) {
xSpeed = xSpeed * friction;
if ((xSpeed < 0.5) and (xSpeed > -0.5)) {
xSpeed = 0;
xMove = false;
}
}
xPrev = this._x;
this._x = this._x + xSpeed;
if (ySpeed > 0) {
falling = true;
} else if (ySpeed < 0) {
falling = false;
}
ySpeed = ySpeed + gravity;
yPrev = this._y;
this._y = this._y + ySpeed;
i = 1;
while (i <= _root.objects) {
if (this.test.hitTest(_root["object" + i])) {
wallTop = _root["object" + i]._y - (_root["object" + i]._height / 2);
wallBottom = _root["object" + i]._y + (_root["object" + i]._height / 2);
wallLeft = _root["object" + i]._x - (_root["object" + i]._width / 2);
wallRight = _root["object" + i]._x + (_root["object" + i]._width / 2);
if (bounced == false) {
if (((this._y + radius) >= wallTop) and (yPrev <= wallTop)) {
this._y = wallTop - radius;
falling = false;
ySpeed = ySpeed * (-yDamp);
_root.fireBullet("up", ballNum);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
if (bounced == false) {
if (((this._y - radius) <= wallBottom) and (yPrev >= wallBottom)) {
this._y = wallBottom + radius;
falling = true;
ySpeed = ySpeed * (-yDamp);
_root.fireBullet("down", ballNum);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
if (bounced == false) {
if (((this._x + radius) >= wallLeft) and (xPrev <= wallLeft)) {
this._x = wallLeft - radius;
_root.fireBullet("left", ballNum);
xSpeed = xSpeed * (-xDamp);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
if (bounced == false) {
if (((this._x - radius) <= wallRight) and (xPrev >= wallRight)) {
this._x = wallRight + radius;
_root.fireBullet("right", ballNum);
xSpeed = xSpeed * (-xDamp);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
_root["object" + i].gotoAndPlay(2);
bounced = false;
}
i++;
}
}
}
}
Instance of Symbol 277 MovieClip "ball1" in Frame 2
onClipEvent (load) {
function reset() {
bounces = 0;
ySpeed = 0;
xSpeed = 0;
yMove = false;
xMove = false;
ballFreeze = true;
this._visible = false;
}
ballNum = 1;
active = true;
radius = this._width / 2;
falling = true;
gravity = 1.5;
reset();
yDamp = 0.9;
xDamp = 0.85;
xDist = 0;
yDist = 0;
maxDist = 0;
xPrev = 0;
yPrev = 0;
bounced = false;
}
onClipEvent (enterFrame) {
if (ballFreeze == false) {
this.ballRotate._rotation = this.ballRotate._rotation + (1.5 * xSpeed);
if (xMove == true) {
if (hitFloor == true) {
xSpeed = xSpeed * friction;
if ((xSpeed < 0.5) and (xSpeed > -0.5)) {
xSpeed = 0;
xMove = false;
}
}
xPrev = this._x;
this._x = this._x + xSpeed;
if (ySpeed > 0) {
falling = true;
} else if (ySpeed < 0) {
falling = false;
}
ySpeed = ySpeed + gravity;
yPrev = this._y;
this._y = this._y + ySpeed;
i = 1;
while (i <= _root.objects) {
if (this.test.hitTest(_root["object" + i])) {
wallTop = _root["object" + i]._y - (_root["object" + i]._height / 2);
wallBottom = _root["object" + i]._y + (_root["object" + i]._height / 2);
wallLeft = _root["object" + i]._x - (_root["object" + i]._width / 2);
wallRight = _root["object" + i]._x + (_root["object" + i]._width / 2);
if (bounced == false) {
if (((this._y + radius) >= wallTop) and (yPrev <= wallTop)) {
this._y = wallTop - radius;
falling = false;
ySpeed = ySpeed * (-yDamp);
_root.fireBullet("up", ballNum);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
if (bounced == false) {
if (((this._y - radius) <= wallBottom) and (yPrev >= wallBottom)) {
this._y = wallBottom + radius;
falling = true;
ySpeed = ySpeed * (-yDamp);
_root.fireBullet("down", ballNum);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
if (bounced == false) {
if (((this._x + radius) >= wallLeft) and (xPrev <= wallLeft)) {
this._x = wallLeft - radius;
_root.fireBullet("left", ballNum);
xSpeed = xSpeed * (-xDamp);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
if (bounced == false) {
if (((this._x - radius) <= wallRight) and (xPrev >= wallRight)) {
this._x = wallRight + radius;
_root.fireBullet("right", ballNum);
xSpeed = xSpeed * (-xDamp);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
_root["object" + i].gotoAndPlay(2);
bounced = false;
}
i++;
}
}
}
}
Instance of Symbol 277 MovieClip "ball3" in Frame 2
onClipEvent (load) {
function reset() {
bounces = 0;
ySpeed = 0;
xSpeed = 0;
yMove = false;
xMove = false;
ballFreeze = true;
this._visible = false;
}
ballNum = 3;
active = true;
radius = this._width / 2;
falling = true;
gravity = 1.5;
reset();
yDamp = 0.9;
xDamp = 0.85;
xDist = 0;
yDist = 0;
maxDist = 0;
xPrev = 0;
yPrev = 0;
bounced = false;
}
onClipEvent (enterFrame) {
if (ballFreeze == false) {
this.ballRotate._rotation = this.ballRotate._rotation + (1.5 * xSpeed);
if (xMove == true) {
if (hitFloor == true) {
xSpeed = xSpeed * friction;
if ((xSpeed < 0.5) and (xSpeed > -0.5)) {
xSpeed = 0;
xMove = false;
}
}
xPrev = this._x;
this._x = this._x + xSpeed;
if (ySpeed > 0) {
falling = true;
} else if (ySpeed < 0) {
falling = false;
}
ySpeed = ySpeed + gravity;
yPrev = this._y;
this._y = this._y + ySpeed;
i = 1;
while (i <= _root.objects) {
if (this.test.hitTest(_root["object" + i])) {
wallTop = _root["object" + i]._y - (_root["object" + i]._height / 2);
wallBottom = _root["object" + i]._y + (_root["object" + i]._height / 2);
wallLeft = _root["object" + i]._x - (_root["object" + i]._width / 2);
wallRight = _root["object" + i]._x + (_root["object" + i]._width / 2);
if (bounced == false) {
if (((this._y + radius) >= wallTop) and (yPrev <= wallTop)) {
this._y = wallTop - radius;
falling = false;
ySpeed = ySpeed * (-yDamp);
_root.fireBullet("up", ballNum);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
if (bounced == false) {
if (((this._y - radius) <= wallBottom) and (yPrev >= wallBottom)) {
this._y = wallBottom + radius;
falling = true;
ySpeed = ySpeed * (-yDamp);
_root.fireBullet("down", ballNum);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
if (bounced == false) {
if (((this._x + radius) >= wallLeft) and (xPrev <= wallLeft)) {
this._x = wallLeft - radius;
_root.fireBullet("left", ballNum);
xSpeed = xSpeed * (-xDamp);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
if (bounced == false) {
if (((this._x - radius) <= wallRight) and (xPrev >= wallRight)) {
this._x = wallRight + radius;
_root.fireBullet("right", ballNum);
xSpeed = xSpeed * (-xDamp);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
_root["object" + i].gotoAndPlay(2);
bounced = false;
}
i++;
}
}
}
}
Instance of Symbol 305 MovieClip "menuTransition" in Frame 2
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 307 MovieClip "cursor" in Frame 2
onClipEvent (load) {
this.swapDepths(550);
}
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Frame 3
clearObjects();
Frame 4
stop();
mochi.MochiScores.showLeaderboard({boardID:"911f2a8888597845"});
Mouse.show();
Frame 5
stopAllSounds();
gotoAndStop ("menu");
Frame 6
stop();
_root.HUD.active = false;
if (_root.trainingMode == true) {
overlay._visible = true;
}
Instance of Symbol 313 MovieClip "BG" in Frame 6
onClipEvent (load) {
if (_root.trainingMode == true) {
levelNum = _root.levelNum;
} else {
levelNum = 1;
}
}
Instance of Symbol 315 MovieClip "powerArrow" in Frame 6
onClipEvent (load) {
active = false;
this._alpha = 25;
distanceNum = 0;
this._rotation = -45;
spaceDown = false;
}
onClipEvent (enterFrame) {
if (active == true) {
distanceNum = distance - 100;
xDist = _root._xmouse - this._x;
yDist = _root._ymouse - this._y;
distance = Math.ceil(Math.sqrt((xDist * xDist) + (yDist * yDist)));
if (distance <= 100) {
distance = 100;
} else if (distance >= 200) {
distance = 200;
}
this._xscale = distance;
}
}
onClipEvent (keyDown) {
if (_root.gamePaused == false) {
if (_root.turret.ballFired == false) {
if (_root.levelTransition == false) {
if ((distanceNum <= 100) and (distanceNum >= 0)) {
if (Key.isDown(38)) {
this._alpha = 100;
distanceNum++;
this._xscale++;
} else if (Key.isDown(40)) {
this._alpha = 100;
distanceNum--;
this._xscale--;
}
}
if (distanceNum > 100) {
distanceNum = 100;
this._xscale = 200;
} else if (distanceNum < 0) {
distanceNum = 0;
this._xscale = 100;
}
if (Key.isDown(32)) {
if ((_root.tutorial.step > 0) or (_root.tutorial.active == undefined)) {
i = 1;
while (i <= 10) {
_root["trackRing" + i].removeMovieClip();
i++;
}
if (_root.tutorial.active == true) {
if (_root.tutorial.step == 2) {
_root.tutorial.nextFrame();
_root.tutorial.step = 3;
}
}
spaceDown = true;
this._alpha = 25;
_root.turret.animation.play();
_root.playSound("fire");
_root.tracker.trackNum = 0;
power = (distanceNum / 7) + 20;
rad = _root.turret.rad;
xSpeed = power * Math.cos(rad);
ySpeed = power * Math.sin(rad);
_root["ball" + _root.HUD.ballNum]._x = _root.turret._x + (80 * Math.cos(rad));
_root["ball" + _root.HUD.ballNum]._y = _root.turret._y - (80 * Math.sin(rad));
_root["ball" + _root.HUD.ballNum].xSpeed = xSpeed;
_root["ball" + _root.HUD.ballNum].ySpeed = -ySpeed;
_root["ball" + _root.HUD.ballNum].xMove = true;
_root["ball" + _root.HUD.ballNum].yMove = true;
_root["ball" + _root.HUD.ballNum]._visible = true;
_root["ball" + _root.HUD.ballNum].ballFreeze = false;
_root["ball" + _root.HUD.ballNum].ballRotate.gotoAndStop(1);
_root.HUD.ballNum++;
_root.HUD.ballRemain.nextFrame();
if (_root.HUD.ballNum > 3) {
_root.turret.ballFired = true;
_root.HUD.button.nextFrame();
}
}
}
}
}
}
}
Instance of Symbol 30 MovieClip "turret" in Frame 6
onClipEvent (load) {
buttonHover = false;
degNum = 45;
deg = -45;
this._rotation = -45;
rad = (Math.PI/4);
ballFired = false;
}
onClipEvent (enterFrame) {
if (_root.gamePaused == false) {
if (setAngle == true) {
x = _root._xmouse - this._x;
y = _root._ymouse - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (Math.PI / rad));
if (y < 0) {
deg = -deg;
}
if ((degNum <= 80) and (degNum >= 15)) {
this._rotation = deg;
_root.powerArrow._rotation = deg;
degNum = -deg;
}
if (degNum < 15) {
degNum = 15;
rad = 0.261799387799149;
deg = -15;
this._rotation = deg;
_root.powerArrow._rotation = deg;
}
if (degNum > 80) {
degNum = 80;
deg = -80;
rad = 1.39626340159546;
this._rotation = deg;
_root.powerArrow._rotation = deg;
}
}
}
}
onClipEvent (mouseDown) {
if (_root.gamePaused == false) {
if ((_root.tutorial.step > 0) or (_root.tutorial.active == undefined)) {
if (_root.levelTransition == false) {
if (ballFired == false) {
if (buttonHover == false) {
i = 1;
while (i <= 10) {
_root["trackRing" + i].removeMovieClip();
i++;
}
_root.powerArrow.active = true;
_root.powerArrow._alpha = 100;
_root.tracker.trackNum = 0;
setAngle = true;
}
}
}
}
}
}
onClipEvent (mouseUp) {
if ((_root.tutorial.step > 0) or (_root.tutorial.active == undefined)) {
if (buttonHover == false) {
if (ballFired == false) {
setAngle = false;
_root.powerArrow.active = false;
if (_root.levelTransition == false) {
_root.tracker.track();
}
}
}
}
}
onClipEvent (keyDown) {
if (_root.gamePaused == false) {
if (ballFired == false) {
if ((degNum <= 80) and (degNum >= 15)) {
if (Key.isDown(37)) {
_root.powerArrow._alpha = 100;
deg--;
degNum++;
} else if (Key.isDown(39)) {
_root.powerArrow._alpha = 100;
deg++;
degNum--;
}
}
if (degNum > 80) {
degNum = 80;
deg = -80;
} else if (degNum < 15) {
degNum = 15;
deg = -15;
}
rad = (-deg) * (Math.PI/180);
this._rotation = deg;
_root.powerArrow._rotation = deg;
degNum = -deg;
}
}
}
onClipEvent (keyUp) {
if (_root.gamePaused == false) {
if (_root.levelTransition == false) {
if (ballFired == false) {
if (_root.powerArrow.spaceDown == false) {
_root.tracker.track();
} else {
_root.powerArrow.spaceDown = false;
}
}
}
}
}
Instance of Symbol 321 MovieClip "overlay" in Frame 6
onClipEvent (load) {
function goToTrainingScreen() {
_root.gotoAndStop("menuTwo");
}
if (_root.trainingMode == true) {
_root.prevFrame();
this.gotoAndPlay("level" + _root.levelNum);
this._visible = true;
this.play();
}
}
Instance of Symbol 24 MovieClip [trackRing] "tracker" in Frame 6
onClipEvent (load) {
function track() {
if (_root.gameMode == "easy") {
active = true;
trackNum = 10;
trackAlpha = 100 / trackNum;
trackNumSkip = false;
power = (_root.powerArrow.distanceNum / 7) + 20;
rad = _root.turret.rad;
xSpeed = power * Math.cos(rad);
ySpeed = (-power) * Math.sin(rad);
this._x = _root.turret._x + (80 * Math.cos(rad));
this._y = _root.turret._y - (80 * Math.sin(rad));
xMove = true;
yMove = true;
this._visible = false;
}
}
active = true;
gravity = 1.5;
radius = 12.5;
falling = true;
yDamp = 0.9;
xDamp = 0.85;
}
onClipEvent (enterFrame) {
if (_root.gamePaused == false) {
if (active == true) {
if (xMove == true) {
if (hitFloor == true) {
xSpeed = xSpeed * friction;
if ((xSpeed < 0.5) and (xSpeed > -0.5)) {
xSpeed = 0;
xMove = false;
}
}
xPrev = this._x;
this._x = this._x + xSpeed;
if (ySpeed > 0) {
falling = true;
} else if (ySpeed < 0) {
falling = false;
}
ySpeed = ySpeed + gravity;
yPrev = this._y;
this._y = this._y + ySpeed;
i = 1;
while (i <= _root.objects) {
if (this.test.hitTest(_root["object" + i])) {
wallTop = _root["object" + i]._y - (_root["object" + i]._height / 2);
wallBottom = _root["object" + i]._y + (_root["object" + i]._height / 2);
wallLeft = _root["object" + i]._x - (_root["object" + i]._width / 2);
wallRight = _root["object" + i]._x + (_root["object" + i]._width / 2);
if (bounced == false) {
if (((this._y + radius) >= wallTop) and (yPrev <= wallTop)) {
this._y = wallTop - radius;
falling = false;
ySpeed = ySpeed * (-yDamp);
bounced = true;
}
}
if (bounced == false) {
if (((this._y - radius) <= wallBottom) and (yPrev >= wallBottom)) {
this._y = wallBottom + radius;
falling = true;
ySpeed = ySpeed * (-yDamp);
bounced = true;
}
}
if (bounced == false) {
if (((this._x + radius) >= wallLeft) and (xPrev <= wallLeft)) {
this._x = wallLeft - radius;
xSpeed = xSpeed * (-xDamp);
bounced = true;
}
}
if (bounced == false) {
if (((this._x - radius) <= wallRight) and (xPrev >= wallRight)) {
this._x = wallRight + radius;
xSpeed = xSpeed * (-xDamp);
bounced = true;
}
}
bounced = false;
}
i++;
}
}
if (trackNumSkip == false) {
if (trackNum > 0) {
_root.attachMovie("trackRing", "trackRing" + trackNum, trackNum);
_root["trackRing" + trackNum]._alpha = trackNum * trackAlpha;
_root["trackRing" + trackNum]._x = this._x;
_root["trackRing" + trackNum]._y = this._y;
trackNum--;
} else {
active = false;
}
trackNumSkip = true;
} else {
trackNumSkip = false;
}
}
}
}
Instance of Symbol 277 MovieClip "ball2" in Frame 6
onClipEvent (load) {
function reset() {
bounces = 0;
ySpeed = 0;
xSpeed = 0;
yMove = false;
xMove = false;
ballFreeze = true;
this._visible = false;
}
ballNum = 2;
active = true;
radius = this._width / 2;
falling = true;
gravity = 1.5;
reset();
yDamp = 0.9;
xDamp = 0.85;
xDist = 0;
yDist = 0;
maxDist = 0;
xPrev = 0;
yPrev = 0;
bounced = false;
}
onClipEvent (enterFrame) {
if (_root.gamePaused == false) {
if (ballFreeze == false) {
this.ballRotate._rotation = this.ballRotate._rotation + (1.5 * xSpeed);
if (xMove == true) {
if (hitFloor == true) {
xSpeed = xSpeed * friction;
if ((xSpeed < 0.5) and (xSpeed > -0.5)) {
xSpeed = 0;
xMove = false;
}
}
xPrev = this._x;
this._x = this._x + xSpeed;
if (ySpeed > 0) {
falling = true;
} else if (ySpeed < 0) {
falling = false;
}
ySpeed = ySpeed + gravity;
yPrev = this._y;
this._y = this._y + ySpeed;
i = 1;
while (i <= _root.objects) {
if (this.test.hitTest(_root["object" + i])) {
_root.playSound("bounce");
wallTop = _root["object" + i]._y - (_root["object" + i]._height / 2);
wallBottom = _root["object" + i]._y + (_root["object" + i]._height / 2);
wallLeft = _root["object" + i]._x - (_root["object" + i]._width / 2);
wallRight = _root["object" + i]._x + (_root["object" + i]._width / 2);
if (bounced == false) {
if (((this._y + radius) >= wallTop) and (yPrev <= wallTop)) {
this._y = wallTop - radius;
falling = false;
ySpeed = ySpeed * (-yDamp);
_root.fireBullet("up", ballNum);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
if (bounced == false) {
if (((this._y - radius) <= wallBottom) and (yPrev >= wallBottom)) {
this._y = wallBottom + radius;
falling = true;
ySpeed = ySpeed * (-yDamp);
_root.fireBullet("down", ballNum);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
if (bounced == false) {
if (((this._x + radius) >= wallLeft) and (xPrev <= wallLeft)) {
this._x = wallLeft - radius;
_root.fireBullet("left", ballNum);
xSpeed = xSpeed * (-xDamp);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
if (bounced == false) {
if (((this._x - radius) <= wallRight) and (xPrev >= wallRight)) {
this._x = wallRight + radius;
_root.fireBullet("right", ballNum);
xSpeed = xSpeed * (-xDamp);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
_root["object" + i].gotoAndPlay(2);
bounced = false;
}
i++;
}
}
}
}
}
Instance of Symbol 277 MovieClip "ball1" in Frame 6
onClipEvent (load) {
function reset() {
bounces = 0;
ySpeed = 0;
xSpeed = 0;
yMove = false;
xMove = false;
ballFreeze = true;
this._visible = false;
}
ballNum = 1;
active = true;
radius = this._width / 2;
falling = true;
gravity = 1.5;
reset();
yDamp = 0.9;
xDamp = 0.85;
xDist = 0;
yDist = 0;
maxDist = 0;
xPrev = 0;
yPrev = 0;
bounced = false;
}
onClipEvent (enterFrame) {
if (_root.gamePaused == false) {
if (ballFreeze == false) {
this.ballRotate._rotation = this.ballRotate._rotation + (1.5 * xSpeed);
if (xMove == true) {
if (hitFloor == true) {
xSpeed = xSpeed * friction;
if ((xSpeed < 0.5) and (xSpeed > -0.5)) {
xSpeed = 0;
xMove = false;
}
}
xPrev = this._x;
this._x = this._x + xSpeed;
if (ySpeed > 0) {
falling = true;
} else if (ySpeed < 0) {
falling = false;
}
ySpeed = ySpeed + gravity;
yPrev = this._y;
this._y = this._y + ySpeed;
i = 1;
while (i <= _root.objects) {
if (this.test.hitTest(_root["object" + i])) {
_root.playSound("bounce");
wallTop = _root["object" + i]._y - (_root["object" + i]._height / 2);
wallBottom = _root["object" + i]._y + (_root["object" + i]._height / 2);
wallLeft = _root["object" + i]._x - (_root["object" + i]._width / 2);
wallRight = _root["object" + i]._x + (_root["object" + i]._width / 2);
if (bounced == false) {
if (((this._y + radius) >= wallTop) and (yPrev <= wallTop)) {
this._y = wallTop - radius;
falling = false;
ySpeed = ySpeed * (-yDamp);
_root.fireBullet("up", ballNum);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
if (bounced == false) {
if (((this._y - radius) <= wallBottom) and (yPrev >= wallBottom)) {
this._y = wallBottom + radius;
falling = true;
ySpeed = ySpeed * (-yDamp);
_root.fireBullet("down", ballNum);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
if (bounced == false) {
if (((this._x + radius) >= wallLeft) and (xPrev <= wallLeft)) {
this._x = wallLeft - radius;
_root.fireBullet("left", ballNum);
xSpeed = xSpeed * (-xDamp);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
if (bounced == false) {
if (((this._x - radius) <= wallRight) and (xPrev >= wallRight)) {
this._x = wallRight + radius;
_root.fireBullet("right", ballNum);
xSpeed = xSpeed * (-xDamp);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
_root["object" + i].gotoAndPlay(2);
bounced = false;
}
i++;
}
}
}
}
}
Instance of Symbol 277 MovieClip "ball3" in Frame 6
onClipEvent (load) {
function reset() {
bounces = 0;
ySpeed = 0;
xSpeed = 0;
yMove = false;
xMove = false;
ballFreeze = true;
this._visible = false;
}
ballNum = 3;
active = true;
radius = this._width / 2;
falling = true;
gravity = 1.5;
reset();
yDamp = 0.9;
xDamp = 0.85;
xDist = 0;
yDist = 0;
maxDist = 0;
xPrev = 0;
yPrev = 0;
bounced = false;
}
onClipEvent (enterFrame) {
if (_root.gamePaused == false) {
if (ballFreeze == false) {
this.ballRotate._rotation = this.ballRotate._rotation + (1.5 * xSpeed);
if (xMove == true) {
if (hitFloor == true) {
xSpeed = xSpeed * friction;
if ((xSpeed < 0.5) and (xSpeed > -0.5)) {
xSpeed = 0;
xMove = false;
}
}
xPrev = this._x;
this._x = this._x + xSpeed;
if (ySpeed > 0) {
falling = true;
} else if (ySpeed < 0) {
falling = false;
}
ySpeed = ySpeed + gravity;
yPrev = this._y;
this._y = this._y + ySpeed;
i = 1;
while (i <= _root.objects) {
if (this.test.hitTest(_root["object" + i])) {
_root.playSound("bounce");
wallTop = _root["object" + i]._y - (_root["object" + i]._height / 2);
wallBottom = _root["object" + i]._y + (_root["object" + i]._height / 2);
wallLeft = _root["object" + i]._x - (_root["object" + i]._width / 2);
wallRight = _root["object" + i]._x + (_root["object" + i]._width / 2);
if (bounced == false) {
if (((this._y + radius) >= wallTop) and (yPrev <= wallTop)) {
this._y = wallTop - radius;
falling = false;
ySpeed = ySpeed * (-yDamp);
_root.fireBullet("up", ballNum);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
if (bounced == false) {
if (((this._y - radius) <= wallBottom) and (yPrev >= wallBottom)) {
this._y = wallBottom + radius;
falling = true;
ySpeed = ySpeed * (-yDamp);
_root.fireBullet("down", ballNum);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
if (bounced == false) {
if (((this._x + radius) >= wallLeft) and (xPrev <= wallLeft)) {
this._x = wallLeft - radius;
_root.fireBullet("left", ballNum);
xSpeed = xSpeed * (-xDamp);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
if (bounced == false) {
if (((this._x - radius) <= wallRight) and (xPrev >= wallRight)) {
this._x = wallRight + radius;
_root.fireBullet("right", ballNum);
xSpeed = xSpeed * (-xDamp);
bounces++;
this.ballRotate.nextFrame();
bounced = true;
}
}
_root["object" + i].gotoAndPlay(2);
bounced = false;
}
i++;
}
}
}
}
}
Instance of Symbol 40 MovieClip "bullet" in Frame 6
onClipEvent (load) {
active = true;
}
onClipEvent (enterFrame) {
if (active == true) {
if (direction == "left") {
this._x = this._x - 10;
this._rotation = -90;
} else if (direction == "right") {
this._x = this._x + 10;
this._rotation = 90;
} else if (direction == "up") {
this._y = this._y - 10;
} else if (direction == "down") {
this._y = this._y + 10;
}
i = 1;
while (i <= _root.objects) {
if (this.hitTest(_root["object" + i])) {
if (_root["object" + i].invisible == undefined) {
this.nextFrame();
active = false;
}
}
i++;
}
i = 1;
while (i <= _root.lights) {
if (this.hitTest(_root["light" + i]) and (_root["light" + i].active == false)) {
_root["light" + i].nextFrame();
_root.playSound("glow");
this.removeMovieClip();
}
i++;
}
if ((((this._x > 600) or (this._x < -50)) or (this._y > 550)) or (this._y < -50)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 264 MovieClip "spark" in Frame 6
onClipEvent (load) {
gravity = 1.5;
yDamp = 0.75;
xDamp = 0.5;
bounced = false;
}
onClipEvent (enterFrame) {
if (_root.gamePaused == false) {
if ((xSpeed < 0.5) and (xSpeed > -0.5)) {
xSpeed = 0;
}
xPrev = this._x;
this._x = this._x + xSpeed;
if (ySpeed > 0) {
falling = true;
} else if (ySpeed < 0) {
falling = false;
}
ySpeed = ySpeed + gravity;
yPrev = this._y;
this._y = this._y + ySpeed;
i = 1;
while (i <= _root.objects) {
if (this.hitTest(_root["object" + i])) {
wallTop = _root["object" + i]._y - (_root["object" + i]._height / 2);
wallBottom = _root["object" + i]._y + (_root["object" + i]._height / 2);
wallLeft = _root["object" + i]._x - (_root["object" + i]._width / 2);
wallRight = _root["object" + i]._x + (_root["object" + i]._width / 2);
if (bounced == false) {
if ((this._y >= wallTop) and (yPrev <= wallTop)) {
this._y = wallTop;
falling = false;
ySpeed = ySpeed * (-yDamp);
bounced = true;
}
}
if (bounced == false) {
if (((this._y - radius) <= wallBottom) and (yPrev >= wallBottom)) {
this._y = wallBottom;
falling = true;
ySpeed = ySpeed * (-yDamp);
bounced = true;
}
}
if (bounced == false) {
if (((this._x + radius) >= wallLeft) and (xPrev <= wallLeft)) {
this._x = wallLeft;
xSpeed = xSpeed * (-xDamp);
bounced = true;
}
}
if (bounced == false) {
if (((this._x - radius) <= wallRight) and (xPrev >= wallRight)) {
this._x = wallRight;
xSpeed = xSpeed * (-xDamp);
bounced = true;
}
}
if (bounced == true) {
if ((ySpeed > -3) and (ySpeed < 3)) {
this.removeMovieClip();
}
}
bounced = false;
}
i++;
}
}
}
Instance of Symbol 302 MovieClip "HUD" in Frame 6
onClipEvent (load) {
active = false;
ballNum = 1;
levelScore = 500;
scoreTimer = 5;
}
onClipEvent (enterFrame) {
if (_root.gamePaused == false) {
if (active == true) {
if (levelScore > 0) {
if (scoreTimer <= 0) {
levelScore--;
scoreTimer = 5;
} else {
scoreTimer--;
}
}
}
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.turret.buttonHover = true;
} else {
_root.turret.buttonHover = false;
}
}
Instance of Symbol 262 MovieClip "codeClip" in Frame 6
onClipEvent (load) {
active = true;
lightNum = 0;
bulletNum = 0;
if (_root.trainingMode == false) {
_root.playMusic("gameMusic");
}
}
onClipEvent (enterFrame) {
if (_root.gamePaused == false) {
if (active == true) {
i = 1;
while (i <= 3) {
if (_root["ball" + i].ballFreeze == false) {
if (((_root["ball" + i]._x > 600) or (_root["ball" + i]._x < -50)) or (_root["ball" + i]._y > 550)) {
_root["ball" + i].ballFreeze = true;
_root["ball" + i]._visible = false;
_root["ball" + i].bounces = 0;
_root["ball" + i].active = false;
}
}
i++;
}
i = 1;
while (i <= _root.lights) {
if (_root["light" + i].active == true) {
lightNum++;
}
i++;
}
if (lightNum == _root.lights) {
_root.levelComplete.active = true;
i = 1;
while (i <= 10) {
_root["trackRing" + i].removeMovieClip();
i++;
}
_root.levelComplete.calculateScore();
_root.tutorial.nextFrame();
_root.HUD.active = false;
lightNum = 0;
active = false;
} else {
lightNum = 0;
}
}
i = 1;
while (i <= 3) {
if (_root["ball" + i].bounces >= 5) {
_root["ball" + i].ballFreeze = true;
_root["ball" + i]._visible = false;
_root["ball" + i].bounces = 0;
_root["ball" + i].active = false;
_root.sparkExplosion(i);
_root.playSound("break");
}
if (_root["ball" + i].active == false) {
activeNum++;
}
i++;
}
i = 1;
while (i <= 100) {
if (_root["bullet" + i].active == true) {
bulletNum++;
}
i++;
}
if (_root.levelComplete.active == false) {
if (activeNum == 3) {
if (bulletNum == 0) {
_root.tryAgain.play();
activeNum = 0;
} else {
bulletNum = 0;
}
} else {
activeNum = 0;
bulletNum = 0;
}
}
}
}
Instance of Symbol 335 MovieClip "levelComplete" in Frame 6
onClipEvent (load) {
function calculateScore() {
_root.totalScore = _root.totalScore + _root.HUD.levelScore;
if ((_root.HUD.ballNum == 2) and (_root.retry == false)) {
_root.totalScore = _root.totalScore + 200;
this.bonus._visible = true;
} else {
this.bonus._visible = false;
}
}
active = false;
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.gamePaused == false) {
if (active == true) {
_root.tryAgain.gotoAndStop(1);
_root.HUD.button.nextFrame();
if (this._alpha < 100) {
this._alpha = this._alpha + 3;
}
}
}
}
onClipEvent (mouseDown) {
if (_root.gamePaused == false) {
if (active == true) {
this._alpha = 0;
active = false;
_root.clearObjects();
_root.nextFrame();
_root.levelTransition = true;
if (_root.trainingMode == true) {
_root.BG.play();
}
}
}
}
onClipEvent (keyDown) {
if (_root.gamePaused == false) {
if (active == true) {
this._alpha = 0;
active = false;
_root.clearObjects();
_root.nextFrame();
_root.levelTransition = true;
if (_root.trainingMode == true) {
_root.BG.play();
}
}
}
}
Instance of Symbol 349 MovieClip "pauseScreen" in Frame 6
onClipEvent (load) {
function gamePause() {
this.getNextHighestDepth();
this.swapDepths(100);
if (_root.gamePaused == false) {
this.nextFrame();
_root.gamePaused = true;
gamePaused = true;
_root.playSound("pause");
this._visible = true;
} else {
this.gotoAndStop(1);
_root.gamePaused = false;
_root.playSound("unpause");
this._visible = false;
}
}
this._visible = false;
}
onClipEvent (keyDown) {
if (Key.getCode() == 80) {
gamePause();
}
}
Frame 7
objects = 4;
lights = 1;
j = 1;
levelReset(false);
Instance of Symbol 394 MovieClip "tutorial" in Frame 7
onClipEvent (load) {
step = 0;
active = true;
this.swapDepths(100);
if (_root.trainingMode == true) {
this.removeMovieClip();
}
}
onClipEvent (mouseUp) {
if (step == 1) {
if (((_root.turret.degNum >= 53) and (_root.turret.degNum <= 57)) and ((_root.powerArrow.distanceNum >= 78) and (_root.powerArrow.distanceNum <= 82))) {
step = 2;
this.gotoAndStop(54);
}
}
}
onClipEvent (keyUp) {
if (step == 1) {
if (((_root.turret.degNum >= 53) and (_root.turret.degNum <= 57)) and ((_root.powerArrow.distanceNum >= 78) and (_root.powerArrow.distanceNum <= 82))) {
step = 2;
this.gotoAndStop(54);
}
}
}
Frame 8
frameBetweenLevels();
_root.tutorial.getNextHighestDepth();
_root.tutorial.swapDepths(300);
_root.tutorial.removeMovieClip();
Frame 9
objects = 4;
lights = 2;
j = 1;
levelReset(false);
Frame 10
frameBetweenLevels();
Frame 11
objects = 5;
lights = 1;
j = 1;
levelReset(false);
Frame 12
frameBetweenLevels();
Frame 13
objects = 1;
lights = 1;
j = 1;
levelReset(false);
Instance of Symbol 34 MovieClip "object1" in Frame 13
onClipEvent (load) {
moveSpeed = 5;
}
onClipEvent (enterFrame) {
this._x = this._x + moveSpeed;
if ((this._x >= 500) or (this._x <= 50)) {
moveSpeed = moveSpeed * -1;
}
}
Frame 14
frameBetweenLevels();
Frame 15
objects = 6;
lights = 2;
j = 1;
levelReset(false);
Instance of Symbol 34 MovieClip "object5" in Frame 15
onClipEvent (load) {
moveSpeed = -5;
}
onClipEvent (enterFrame) {
this._y = this._y + moveSpeed;
if (this._y <= 270) {
this._y = 270;
moveSpeed = moveSpeed * -1;
} else if (this._y >= 400) {
this._y = 400;
moveSpeed = moveSpeed * -1;
}
}
Frame 16
frameBetweenLevels();
Frame 17
objects = 8;
lights = 3;
j = 1;
levelReset(false);
Instance of Symbol 34 MovieClip "object8" in Frame 17
onClipEvent (load) {
invisible = true;
}
Frame 18
frameBetweenLevels();
Frame 19
objects = 9;
lights = 3;
j = 1;
levelReset(false);
Instance of Symbol 316 MovieClip "button1" in Frame 19
onClipEvent (load) {
function reset() {
active = true;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (active == true) {
i = 1;
while (i <= 3) {
if (this.hitTest(_root["ball" + i])) {
this.play();
_root.object7.animation.play();
_root.object8.animation.play();
active = false;
}
i++;
}
}
}
Frame 20
frameBetweenLevels();
Frame 21
objects = 6;
lights = 2;
j = 1;
levelReset(false);
Instance of Symbol 34 MovieClip "object4" in Frame 21
onClipEvent (load) {
moveSpeed = 5;
}
onClipEvent (enterFrame) {
this._y = this._y + moveSpeed;
if (this.hitTest(_root.object1) or this.hitTest(_root.object3)) {
moveSpeed = moveSpeed * -1;
}
}
Frame 22
frameBetweenLevels();
Frame 23
objects = 5;
lights = 3;
j = 1;
levelReset(false);
Frame 24
frameBetweenLevels();
Frame 25
objects = 6;
lights = 3;
j = 1;
levelReset(false);
Instance of Symbol 316 MovieClip "button1" in Frame 25
onClipEvent (load) {
function reset() {
active = true;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (active == true) {
i = 1;
while (i <= 3) {
if (this.hitTest(_root["ball" + i])) {
this.play();
_root.object5.animation.play();
active = false;
}
i++;
}
}
}
Frame 26
frameBetweenLevels();
Frame 27
objects = 7;
lights = 2;
j = 1;
levelReset(false);
Frame 28
frameBetweenLevels();
Frame 29
objects = 8;
lights = 4;
j = 1;
levelReset(false);
Instance of Symbol 34 MovieClip "object8" in Frame 29
onClipEvent (load) {
invisible = true;
}
Instance of Symbol 34 MovieClip "object6" in Frame 29
onClipEvent (load) {
invisible = true;
}
Instance of Symbol 34 MovieClip "object7" in Frame 29
onClipEvent (load) {
invisible = true;
}
Instance of Symbol 34 MovieClip "object5" in Frame 29
onClipEvent (load) {
invisible = true;
}
Frame 30
frameBetweenLevels();
Frame 31
objects = 2;
lights = 2;
j = 1;
levelReset(false);
Instance of Symbol 34 MovieClip "object2" in Frame 31
onClipEvent (load) {
function reset() {
this._x = xPos;
this._y = yPos;
active = false;
}
xPos = this._x;
yPos = this._y;
reset();
}
onClipEvent (enterFrame) {
if (active == true) {
if (this._x < 400) {
this._x = this._x + 5;
} else {
active = false;
}
}
}
Instance of Symbol 316 MovieClip "button1" in Frame 31
onClipEvent (load) {
function reset() {
active = true;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (active == true) {
i = 1;
while (i <= 3) {
if (this.hitTest(_root["ball" + i])) {
this.play();
_root.object2.active = true;
active = false;
}
i++;
}
}
}
Frame 32
frameBetweenLevels();
Frame 33
objects = 7;
lights = 1;
j = 1;
levelReset(false);
Instance of Symbol 316 MovieClip "button1" in Frame 33
onClipEvent (load) {
function reset() {
active = true;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (active == true) {
i = 1;
while (i <= 3) {
if (this.hitTest(_root["ball" + i])) {
this.play();
_root.timerBar.startTimer();
active = false;
}
i++;
}
}
}
Instance of Symbol 320 MovieClip "timerBar" in Frame 33
onClipEvent (load) {
function startTimer() {
this._visible = true;
active = true;
_root.object4.animation.play();
}
function stopTimer() {
this._visible = false;
active = false;
_root.button1.reset();
_root.object4.animation.play();
}
time = 3;
scaleSpeed = 100 / (time * 30);
this._visible = false;
}
Frame 34
frameBetweenLevels();
Frame 35
objects = 5;
lights = 2;
j = 1;
levelReset(false);
Instance of Symbol 34 MovieClip "object3" in Frame 35
onClipEvent (enterFrame) {
if (up == true) {
this._y = this._y - 20;
i = 1;
while (i <= 3) {
if (this.hitTest(_root["ball" + i])) {
_root["ball" + i].ySpeed = -25;
}
i++;
}
} else {
this._y = this._y + 5;
}
if (this._y <= 190) {
up = false;
}
if (this._y >= 440) {
up = true;
}
}
Frame 36
frameBetweenLevels();
Frame 37
objects = 6;
lights = 3;
j = 1;
levelReset(false);
Frame 38
frameBetweenLevels();
Frame 39
objects = 5;
lights = 3;
j = 1;
levelReset(false);
Instance of Symbol 34 MovieClip "object5" in Frame 39
onClipEvent (load) {
invisible = true;
}
Frame 40
frameBetweenLevels();
Frame 41
objects = 5;
lights = 3;
j = 1;
levelReset(false);
Instance of Symbol 34 MovieClip "object5" in Frame 41
onClipEvent (load) {
moveSpeed = 8;
}
onClipEvent (enterFrame) {
this._x = this._x + moveSpeed;
if (this.hitTest(_root.object4)) {
moveSpeed = moveSpeed * -1;
} else if (this._x <= 140) {
moveSpeed = moveSpeed * -1;
}
}
Frame 42
frameBetweenLevels();
Frame 43
objects = 10;
lights = 1;
j = 1;
levelReset(false);
Instance of Symbol 34 MovieClip "object2" in Frame 43
onClipEvent (load) {
moveSpeed = 15;
}
onClipEvent (enterFrame) {
this._y = this._y + moveSpeed;
if (this._y <= 50) {
this._y = 50;
moveSpeed = moveSpeed * -1;
} else if (this._y >= 400) {
this._y = 400;
moveSpeed = moveSpeed * -1;
}
}
Instance of Symbol 34 MovieClip "object1" in Frame 43
onClipEvent (load) {
moveSpeed = 15;
}
onClipEvent (enterFrame) {
this._y = this._y + moveSpeed;
if (this._y <= 50) {
this._y = 50;
moveSpeed = moveSpeed * -1;
} else if (this._y >= 400) {
this._y = 400;
moveSpeed = moveSpeed * -1;
}
}
Instance of Symbol 34 MovieClip "object3" in Frame 43
onClipEvent (load) {
moveSpeed = 15;
}
onClipEvent (enterFrame) {
this._y = this._y + moveSpeed;
if (this._y <= 50) {
this._y = 50;
moveSpeed = moveSpeed * -1;
} else if (this._y >= 400) {
this._y = 400;
moveSpeed = moveSpeed * -1;
}
}
Instance of Symbol 34 MovieClip "object4" in Frame 43
onClipEvent (load) {
moveSpeed = 15;
}
onClipEvent (enterFrame) {
this._y = this._y + moveSpeed;
if (this._y <= 50) {
this._y = 50;
moveSpeed = moveSpeed * -1;
} else if (this._y >= 400) {
this._y = 400;
moveSpeed = moveSpeed * -1;
}
}
Instance of Symbol 34 MovieClip "object5" in Frame 43
onClipEvent (load) {
moveSpeed = -15;
}
onClipEvent (enterFrame) {
this._y = this._y + moveSpeed;
if (this._y <= 50) {
this._y = 50;
moveSpeed = moveSpeed * -1;
} else if (this._y >= 400) {
this._y = 400;
moveSpeed = moveSpeed * -1;
}
}
Instance of Symbol 34 MovieClip "object7" in Frame 43
onClipEvent (load) {
moveSpeed = -15;
}
onClipEvent (enterFrame) {
this._y = this._y + moveSpeed;
if (this._y <= 50) {
this._y = 50;
moveSpeed = moveSpeed * -1;
} else if (this._y >= 400) {
this._y = 400;
moveSpeed = moveSpeed * -1;
}
}
Instance of Symbol 34 MovieClip "object6" in Frame 43
onClipEvent (load) {
moveSpeed = -15;
}
onClipEvent (enterFrame) {
this._y = this._y + moveSpeed;
if (this._y <= 50) {
this._y = 50;
moveSpeed = moveSpeed * -1;
} else if (this._y >= 400) {
this._y = 400;
moveSpeed = moveSpeed * -1;
}
}
Instance of Symbol 34 MovieClip "object8" in Frame 43
onClipEvent (load) {
moveSpeed = -15;
}
onClipEvent (enterFrame) {
this._y = this._y + moveSpeed;
if (this._y <= 50) {
this._y = 50;
moveSpeed = moveSpeed * -1;
} else if (this._y >= 400) {
this._y = 400;
moveSpeed = moveSpeed * -1;
}
}
Instance of Symbol 34 MovieClip "object9" in Frame 43
onClipEvent (load) {
moveSpeed = -15;
}
onClipEvent (enterFrame) {
this._y = this._y + moveSpeed;
if (this._y <= 50) {
this._y = 50;
moveSpeed = moveSpeed * -1;
} else if (this._y >= 400) {
this._y = 400;
moveSpeed = moveSpeed * -1;
}
}
Frame 44
frameBetweenLevels();
Frame 45
objects = 3;
lights = 5;
j = 1;
levelReset(false);
Instance of Symbol 34 MovieClip "object3" in Frame 45
onClipEvent (load) {
invisible = true;
}
Instance of Symbol 34 MovieClip "object2" in Frame 45
onClipEvent (load) {
invisible = true;
}
Frame 46
frameBetweenLevels();
Frame 47
objects = 1;
lights = 3;
j = 1;
levelReset(false);
Instance of Symbol 266 MovieClip "light1" in Frame 47
onClipEvent (load) {
moveSpeed = 5;
}
onClipEvent (enterFrame) {
this._y = this._y + moveSpeed;
if ((this._y <= 25) or (this._y >= 425)) {
moveSpeed = moveSpeed * -1;
}
}
Instance of Symbol 266 MovieClip "light2" in Frame 47
onClipEvent (load) {
moveSpeed = -5;
}
onClipEvent (enterFrame) {
this._y = this._y + moveSpeed;
if ((this._y <= 25) or (this._y >= 425)) {
moveSpeed = moveSpeed * -1;
}
}
Instance of Symbol 266 MovieClip "light3" in Frame 47
onClipEvent (load) {
moveSpeed = 5;
}
onClipEvent (enterFrame) {
this._y = this._y + moveSpeed;
if ((this._y <= 25) or (this._y >= 425)) {
moveSpeed = moveSpeed * -1;
}
}
Frame 48
frameBetweenLevels();
Frame 49
objects = 10;
lights = 1;
j = 1;
levelReset(false);
Instance of Symbol 316 MovieClip "button1" in Frame 49
onClipEvent (load) {
function reset() {
active = true;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (active == true) {
i = 1;
while (i <= 3) {
if (this.hitTest(_root["ball" + i])) {
this.play();
_root.timerBar.startTimer();
active = false;
}
i++;
}
}
}
Instance of Symbol 320 MovieClip "timerBar" in Frame 49
onClipEvent (load) {
function startTimer() {
this._visible = true;
active = true;
_root.object9.animation.play();
}
function stopTimer() {
this._visible = false;
active = false;
_root.button1.reset();
_root.object9.animation.play();
}
time = 3;
scaleSpeed = 100 / (time * 30);
this._visible = false;
}
Instance of Symbol 316 MovieClip "button2" in Frame 49
onClipEvent (load) {
function reset() {
active = true;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (active == true) {
i = 1;
while (i <= 3) {
if (this.hitTest(_root["ball" + i])) {
this.play();
_root.timerBar2.startTimer();
active = false;
}
i++;
}
}
}
Instance of Symbol 320 MovieClip "timerBar2" in Frame 49
onClipEvent (load) {
function startTimer() {
this._visible = true;
active = true;
_root.object10.animation.play();
}
function stopTimer() {
this._visible = false;
active = false;
_root.button2.reset();
_root.object10.animation.play();
}
time = 3;
scaleSpeed = 100 / (time * 30);
this._visible = false;
}
Instance of Symbol 34 MovieClip "object5" in Frame 49
onClipEvent (enterFrame) {
if (up == true) {
this._y = this._y - 20;
i = 1;
while (i <= 3) {
if (this.hitTest(_root["ball" + i])) {
_root["ball" + i].ySpeed = -25;
}
i++;
}
} else {
this._y = this._y + 5;
}
if (this._y <= 190) {
up = false;
}
if (this._y >= 440) {
up = true;
}
}
Frame 50
frameBetweenLevels();
Frame 51
objects = 6;
lights = 2;
j = 1;
levelReset(false);
Instance of Symbol 34 MovieClip "object6" in Frame 51
onClipEvent (load) {
moveSpeed = 5;
}
onClipEvent (enterFrame) {
this._x = this._x + moveSpeed;
if (this._x >= 600) {
this._x = 600;
moveSpeed = moveSpeed * -1;
_root.object5.moveSpeed = _root.object5.moveSpeed * -1;
} else if (this._x <= 400) {
this._x = 400;
moveSpeed = moveSpeed * -1;
_root.object5.moveSpeed = _root.object5.moveSpeed * -1;
}
}
Instance of Symbol 34 MovieClip "object5" in Frame 51
onClipEvent (load) {
moveSpeed = 5;
}
onClipEvent (enterFrame) {
this._x = this._x + moveSpeed;
}
Frame 52
frameBetweenLevels();
Frame 53
objects = 2;
lights = 3;
j = 1;
levelReset(false);
Instance of Symbol 34 MovieClip "object2" in Frame 53
onClipEvent (load) {
function reset() {
this._y = yPos;
}
active = false;
yPos = this._y;
}
onClipEvent (enterFrame) {
if (active == true) {
if (this._y > 200) {
this._y = this._y - 20;
} else {
this._y = 200;
active = false;
}
}
}
Instance of Symbol 316 MovieClip "button1" in Frame 53
onClipEvent (load) {
function reset() {
active = true;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (active == true) {
i = 1;
while (i <= 3) {
if (this.hitTest(_root["ball" + i])) {
this.play();
_root.object2.active = true;
active = false;
}
i++;
}
}
}
Frame 54
frameBetweenLevels();
Frame 55
objects = 1;
lights = 2;
j = 1;
levelReset(false);
Instance of Symbol 34 MovieClip "object1" in Frame 55
onClipEvent (load) {
moveSpeed = 5;
}
onClipEvent (enterFrame) {
this._x = this._x + moveSpeed;
if ((this._x >= 500) or (this._x <= 50)) {
moveSpeed = moveSpeed * -1;
}
}
Instance of Symbol 266 MovieClip "light1" in Frame 55
onClipEvent (load) {
moveSpeed = -5;
}
onClipEvent (enterFrame) {
this._x = this._x + moveSpeed;
if ((this._x >= 500) or (this._x <= 50)) {
moveSpeed = moveSpeed * -1;
}
}
Instance of Symbol 266 MovieClip "light2" in Frame 55
onClipEvent (load) {
moveSpeed = -5;
}
onClipEvent (enterFrame) {
this._x = this._x + moveSpeed;
if ((this._x >= 500) or (this._x <= 50)) {
moveSpeed = moveSpeed * -1;
}
}
Frame 56
frameBetweenLevels();
Frame 57
play();
Frame 75
stop();
Mouse.show();
Frame 76
stopAllSounds();
_root.gotoAndStop("menu");
Symbol 17 Button
on (release) {
_root.nextFrame();
}
Symbol 18 MovieClip [[NGL]_LOADER] Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 18 MovieClip [[NGL]_LOADER] Frame 2
gotoAndPlay (1);
Symbol 22 MovieClip Frame 1
stop();
Symbol 22 MovieClip Frame 13
stop();
Symbol 409 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.35");
}
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 ((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:_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 function addLinkEvent(url, burl, btn, onClick) {
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]);
}
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 () {
var _local3;
var _local2 = new LoadVars();
var timeout = 1500;
var t0 = getTimer();
var ping = this.createEmptyMovieClip("ping", 777);
this.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
delete this.ping;
getURL (url + s, "_blank");
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
delete this.ping;
getURL (burl, "_blank");
}
};
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
if (onClick != undefined) {
onClick();
}
};
}
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 410 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.7");
}
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 _local22 = 11000;
var _local25 = 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 _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 _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.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 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_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, _local23, 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 = _local22;
chk.ad_timeout = _local25;
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.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
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) {
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) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
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 _local9 = {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, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
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 _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
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;
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) {
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 _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);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
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);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
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);
}
}
Symbol 411 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 () {
mochi.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.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 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 8
gotoAndStop (1);
Symbol 31 MovieClip Frame 1
play();
Symbol 31 MovieClip Frame 53
power = 30;
deg = 52;
rad = (deg * Math.PI) / 180;
xSpeed = power * Math.cos(rad);
ySpeed = power * Math.sin(rad);
_root.ball1._x = _root.turret._x + (80 * Math.cos(rad));
_root.ball1._y = _root.turret._y - (80 * Math.sin(rad));
_root.ball1.xSpeed = xSpeed;
_root.ball1.ySpeed = -ySpeed;
_root.ball1.xMove = true;
_root.ball1.yMove = true;
_root.ball1._visible = true;
_root.ball1.ballFreeze = false;
_root.ball1.ballRotate.gotoAndStop(1);
_parent.ballNum++;
Symbol 31 MovieClip Frame 125
power = 32;
deg = 17;
rad = (deg * Math.PI) / 180;
xSpeed = power * Math.cos(rad);
ySpeed = power * Math.sin(rad);
_root.ball2._x = _root.turret._x + (80 * Math.cos(rad));
_root.ball2._y = _root.turret._y - (80 * Math.sin(rad));
_root.ball2.xSpeed = xSpeed;
_root.ball2.ySpeed = -ySpeed;
_root.ball2.xMove = true;
_root.ball2.yMove = true;
_root.ball2._visible = true;
_root.ball2.ballFreeze = false;
_root.ball2.ballRotate.gotoAndStop(1);
_parent.ballNum++;
Symbol 31 MovieClip Frame 212
stop();
power = 30;
deg = 75;
rad = (deg * Math.PI) / 180;
xSpeed = power * Math.cos(rad);
ySpeed = power * Math.sin(rad);
_root.ball3._x = _root.turret._x + (80 * Math.cos(rad));
_root.ball3._y = _root.turret._y - (80 * Math.sin(rad));
_root.ball3.xSpeed = xSpeed;
_root.ball3.ySpeed = -ySpeed;
_root.ball3.xMove = true;
_root.ball3.yMove = true;
_root.ball3._visible = true;
_root.ball3.ballFreeze = false;
_root.ball3.ballRotate.gotoAndStop(1);
_parent.ballNum++;
Symbol 34 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 20
gotoAndStop (1);
Symbol 39 MovieClip Frame 5
_parent.removeMovieClip();
Symbol 40 MovieClip Frame 1
stop();
Symbol 47 Button
on (release) {
nextFrame();
}
Symbol 52 Button
on (release) {
_parent.nextFrame();
gotoAndStop (3);
}
Symbol 57 Button
on (release) {
_parent.nextFrame();
gotoAndStop (4);
}
Symbol 63 Button
on (release) {
_parent.nextFrame();
gotoAndStop (5);
}
Symbol 66 Button
on (release) {
_root.trainingMode = false;
_root.gameMode = "normal";
_root.menuTransition._visible = true;
_root.menuTransition.play();
_root.menuTransition.buttons.nextFrame();
_root.clearObjects();
_root.buttons._visible = false;
_root.nextFrame();
}
Symbol 70 Button
on (release) {
prevFrame();
}
Symbol 72 Button
on (release) {
_root.prevFrame();
gotoAndStop (1);
}
Symbol 80 Button
on (release) {
getURL ("http://www.doubleedgegames.com", "_blank");
}
Symbol 88 MovieClip Frame 1
stop();
_root.musicMute = false;
Symbol 88 MovieClip Frame 2
_root.musicMute = true;
Symbol 89 MovieClip Frame 1
stop();
_root.soundMute = false;
Symbol 89 MovieClip Frame 2
_root.soundMute = true;
Instance of Symbol 96 MovieClip in Symbol 97 MovieClip Frame 1
onClipEvent (load) {
if (_root.particleEffects == "high") {
this._x = 125;
} else if (_root.particleEffects == "low") {
this._x = -125;
} else if (_root.particleEffects == "medium") {
this._x = 0;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.startDrag(false, -125, 0, 125, 0);
}
}
onClipEvent (mouseUp) {
this.stopDrag();
if (this._x < -50) {
this._x = -125;
_root.particleEffects = "low";
_root.particles = 5;
} else if (this._x > 50) {
this._x = 125;
_root.particleEffects = "high";
_root.particles = 25;
} else {
this._x = 0;
_root.particleEffects = "medium";
_root.particles = 15;
}
}
Instance of Symbol 96 MovieClip in Symbol 98 MovieClip Frame 1
onClipEvent (load) {
if (_root.qualitySetting == "high") {
this._x = 125;
} else if (_root.qualitySetting == "low") {
this._x = -125;
} else if (_root.qualitySetting == "medium") {
this._x = 0;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.startDrag(false, -125, 0, 125, 0);
}
}
onClipEvent (mouseUp) {
this.stopDrag();
if (this._x < -50) {
this._x = -125;
_root._quality = "low";
_root.qualitySetting = "low";
} else if (this._x > 50) {
this._x = 125;
_root._quality = "high";
_root.qualitySetting = "high";
} else {
this._x = 0;
_root._quality = "medium";
_root.qualitySetting = "medium";
}
}
Symbol 101 Button
on (release) {
_root.prevFrame();
gotoAndStop (1);
}
Instance of Symbol 96 MovieClip "slider" in Symbol 103 MovieClip Frame 1
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.startDrag(false, 0, 0, 200, 0);
}
}
onClipEvent (mouseUp) {
this.stopDrag();
}
Symbol 106 Button
on (release) {
_root.gameMode = "easy";
nextFrame();
}
Symbol 112 Button
on (release) {
_root.gameMode = "normal";
prevFrame();
}
Symbol 113 MovieClip Frame 1
stop();
Symbol 120 Button
on (release) {
_root.levelNum = 1;
play();
}
Symbol 124 Button
on (release) {
_root.levelNum = 2;
play();
}
Symbol 128 Button
on (release) {
_root.levelNum = 3;
play();
}
Symbol 133 Button
on (release) {
_root.levelNum = 4;
play();
}
Symbol 137 Button
on (release) {
_root.levelNum = 5;
play();
}
Symbol 141 Button
on (release) {
_root.levelNum = 6;
play();
}
Symbol 147 Button
on (release) {
_root.levelNum = 7;
play();
}
Symbol 152 Button
on (release) {
_root.levelNum = 8;
play();
}
Symbol 157 Button
on (release) {
_root.levelNum = 9;
play();
}
Symbol 161 Button
on (release) {
_root.levelNum = 10;
play();
}
Symbol 165 Button
on (release) {
_root.levelNum = 11;
play();
}
Symbol 169 Button
on (release) {
_root.levelNum = 12;
play();
}
Symbol 174 Button
on (release) {
_root.levelNum = 13;
play();
}
Symbol 181 Button
on (release) {
_root.levelNum = 14;
play();
}
Symbol 186 Button
on (release) {
_root.levelNum = 15;
play();
}
Symbol 190 Button
on (release) {
_root.levelNum = 16;
play();
}
Symbol 194 Button
on (release) {
_root.levelNum = 17;
play();
}
Symbol 198 Button
on (release) {
_root.levelNum = 18;
play();
}
Symbol 203 Button
on (release) {
_root.levelNum = 19;
play();
}
Symbol 208 Button
on (release) {
_root.levelNum = 20;
play();
}
Symbol 212 Button
on (release) {
_root.levelNum = 21;
play();
}
Symbol 217 Button
on (release) {
_root.levelNum = 22;
play();
}
Symbol 222 Button
on (release) {
_root.levelNum = 23;
play();
}
Symbol 227 Button
on (release) {
_root.levelNum = 24;
play();
}
Symbol 231 Button
on (release) {
_root.levelNum = 25;
play();
}
Symbol 233 Button
on (release) {
_root.prevFrame();
_parent.gotoAndStop(1);
}
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 21
_root.gotoAndStop("level" + _root.levelNum);
Symbol 261 MovieClip Frame 1
stop();
Instance of Symbol 88 MovieClip in Symbol 261 MovieClip Frame 4
onClipEvent (load) {
if (_root.musicMute == true) {
this.gotoAndStop(2);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_root.musicMute == false) {
this.nextFrame();
stopAllSounds();
} else {
this.prevFrame();
_root.musicMute = false;
_root.playMusic("menuMusic");
}
}
}
Instance of Symbol 89 MovieClip in Symbol 261 MovieClip Frame 4
onClipEvent (load) {
if (_root.soundMute == true) {
this.gotoAndStop(2);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_root.soundMute == false) {
this.nextFrame();
} else {
this.prevFrame();
}
}
}
Instance of Symbol 103 MovieClip in Symbol 261 MovieClip Frame 4
onClipEvent (load) {
if (_root.gameVolume >= 0) {
this.slider._x = _root.gameVolume * 2;
}
}
onClipEvent (enterFrame) {
_root.gameVolume = Math.ceil(this.slider._x / 2);
_root.sound.setVolume(_root.gameVolume);
}
Symbol 261 MovieClip Frame 5
_root.trainingMode = true;
_root.totalScore = 0;
Instance of Symbol 113 MovieClip in Symbol 261 MovieClip Frame 5
onClipEvent (load) {
if (_root.gameMode == "easy") {
this.gotoAndStop(2);
}
}
Symbol 266 MovieClip Frame 1
stop();
active = false;
Symbol 266 MovieClip Frame 2
active = true;
Symbol 270 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 2
stop();
Symbol 276 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 291 Button
on (release) {
if (_root.gamePaused == false) {
if ((_root.tutorial.step > 0) or (_root.tutorial.active == undefined)) {
i = 1;
while (i <= 10) {
_root["trackRing" + i].removeMovieClip();
i++;
}
if (_root.tutorial.active == true) {
if (_root.tutorial.step == 2) {
_root.tutorial.nextFrame();
_root.tutorial.step = 3;
}
}
_root.powerArrow._alpha = 25;
_root.turret.animation.play();
_root.playSound("fire");
_root.tracker.trackNum = 0;
power = (_root.powerArrow.distanceNum / 7) + 20;
rad = _root.turret.rad;
xSpeed = power * Math.cos(rad);
ySpeed = power * Math.sin(rad);
_root["ball" + _parent.ballNum]._x = _root.turret._x + (80 * Math.cos(rad));
_root["ball" + _parent.ballNum]._y = _root.turret._y - (80 * Math.sin(rad));
_root["ball" + _parent.ballNum].xSpeed = xSpeed;
_root["ball" + _parent.ballNum].ySpeed = -ySpeed;
_root["ball" + _parent.ballNum].xMove = true;
_root["ball" + _parent.ballNum].yMove = true;
_root["ball" + _parent.ballNum]._visible = true;
_root["ball" + _parent.ballNum].ballFreeze = false;
_root["ball" + _parent.ballNum].ballRotate.gotoAndStop(1);
_parent.ballNum++;
_parent.ballRemain.nextFrame();
if (_parent.ballNum > 3) {
_root.turret.ballFired = true;
nextFrame();
}
}
}
}
Symbol 294 MovieClip Frame 1
stop();
Symbol 299 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 1
stop();
Instance of Symbol 270 MovieClip "light3" in Symbol 305 MovieClip Frame 1
onClipEvent (load) {
active = false;
}
Symbol 305 MovieClip Frame 20
stopAllSounds();
Instance of Symbol 302 MovieClip "HUD" in Symbol 305 MovieClip Frame 30
onClipEvent (load) {
active = true;
ballNum = 1;
levelScore = 500;
scoreTimer = 5;
}
onClipEvent (enterFrame) {
if (active == true) {
if (levelScore > 0) {
if (scoreTimer <= 0) {
levelScore--;
scoreTimer = 5;
} else {
scoreTimer--;
}
}
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.turret.buttonHover = true;
} else {
_root.turret.buttonHover = false;
}
}
Symbol 305 MovieClip Frame 50
_root.gotoAndStop("game");
Symbol 308 Button
on (release) {
gotoAndStop (4);
}
Symbol 313 MovieClip Frame 1
stop();
Symbol 313 MovieClip Frame 19
stop();
Symbol 313 MovieClip Frame 29
levelNum++;
stop();
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 5
stop();
Symbol 317 MovieClip Frame 1
stop();
Symbol 317 MovieClip Frame 20
stop();
Symbol 317 MovieClip Frame 40
gotoAndStop (1);
Symbol 318 MovieClip Frame 1
stop();
Symbol 318 MovieClip Frame 20
gotoAndStop (1);
Instance of Symbol 319 MovieClip "bar" in Symbol 320 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.active == true) {
this._xscale = this._xscale - _parent.scaleSpeed;
if (this._xscale <= 0) {
_parent.stopTimer();
this._xscale = 100;
}
} else {
this._xscale = 100;
}
}
Symbol 321 MovieClip Frame 20
stop();
_root.nextFrame();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 39
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Symbol 321 MovieClip Frame 60
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 79
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Symbol 321 MovieClip Frame 100
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 119
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Symbol 321 MovieClip Frame 140
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 159
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Instance of Symbol 34 MovieClip "wall3" in Symbol 321 MovieClip Frame 160
onClipEvent (load) {
moveSpeed = -5;
}
onClipEvent (enterFrame) {
this._y = this._y + moveSpeed;
if (this._y <= 270) {
this._y = 270;
moveSpeed = moveSpeed * -1;
} else if (this._y >= 400) {
this._y = 400;
moveSpeed = moveSpeed * -1;
}
}
Symbol 321 MovieClip Frame 179
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 198
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Instance of Symbol 34 MovieClip "floor3" in Symbol 321 MovieClip Frame 199
onClipEvent (load) {
invisible = true;
}
Symbol 321 MovieClip Frame 219
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 238
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Instance of Symbol 316 MovieClip "button1" in Symbol 321 MovieClip Frame 239
onClipEvent (load) {
function reset() {
active = true;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (active == true) {
i = 1;
while (i <= 3) {
if (this.hitTest(_root["ball" + i])) {
this.play();
_root.wall4.animation.play();
_root.floor4.animation.play();
active = false;
}
i++;
}
}
}
Symbol 321 MovieClip Frame 259
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 278
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Symbol 321 MovieClip Frame 299
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 318
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Symbol 321 MovieClip Frame 340
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 359
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Instance of Symbol 316 MovieClip "button1" in Symbol 321 MovieClip Frame 360
onClipEvent (load) {
function reset() {
active = true;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (active == true) {
i = 1;
while (i <= 3) {
if (this.hitTest(_root["ball" + i])) {
this.play();
_root.wall3.animation.play();
active = false;
}
i++;
}
}
}
Symbol 321 MovieClip Frame 380
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 399
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Symbol 321 MovieClip Frame 420
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 439
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Instance of Symbol 34 MovieClip "wall4" in Symbol 321 MovieClip Frame 440
onClipEvent (load) {
invisible = true;
}
Instance of Symbol 34 MovieClip "wall3" in Symbol 321 MovieClip Frame 440
onClipEvent (load) {
invisible = true;
}
Instance of Symbol 34 MovieClip "floor4" in Symbol 321 MovieClip Frame 440
onClipEvent (load) {
invisible = true;
}
Instance of Symbol 34 MovieClip "floor3" in Symbol 321 MovieClip Frame 440
onClipEvent (load) {
invisible = true;
}
Symbol 321 MovieClip Frame 460
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 479
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Instance of Symbol 316 MovieClip "button1" in Symbol 321 MovieClip Frame 480
onClipEvent (load) {
function reset() {
active = true;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (active == true) {
i = 1;
while (i <= 3) {
if (this.hitTest(_root["ball" + i])) {
this.play();
_root.wall1.active = true;
active = false;
}
i++;
}
}
}
Symbol 321 MovieClip Frame 500
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 519
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Instance of Symbol 316 MovieClip "button1" in Symbol 321 MovieClip Frame 520
onClipEvent (load) {
function reset() {
active = true;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (active == true) {
i = 1;
while (i <= 3) {
if (this.hitTest(_root["ball" + i])) {
this.play();
_root.timerBar.startTimer();
active = false;
}
i++;
}
}
}
Instance of Symbol 320 MovieClip "timerBar" in Symbol 321 MovieClip Frame 520
onClipEvent (load) {
function startTimer() {
this._visible = true;
active = true;
_root.wall4.animation.play();
}
function stopTimer() {
this._visible = false;
active = false;
_root.button1.reset();
_root.wall4.animation.play();
}
time = 3;
scaleSpeed = 100 / (time * 30);
this._visible = false;
}
Symbol 321 MovieClip Frame 540
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 559
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Symbol 321 MovieClip Frame 580
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 599
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Symbol 321 MovieClip Frame 620
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 639
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Instance of Symbol 34 MovieClip "wall3" in Symbol 321 MovieClip Frame 640
onClipEvent (load) {
invisible = true;
}
Symbol 321 MovieClip Frame 660
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 679
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Symbol 321 MovieClip Frame 700
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 719
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Symbol 321 MovieClip Frame 740
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 759
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Instance of Symbol 34 MovieClip "floor2" in Symbol 321 MovieClip Frame 760
onClipEvent (load) {
invisible = true;
}
Instance of Symbol 34 MovieClip "floor1" in Symbol 321 MovieClip Frame 760
onClipEvent (load) {
invisible = true;
}
Symbol 321 MovieClip Frame 780
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 799
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Symbol 321 MovieClip Frame 820
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 839
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Instance of Symbol 316 MovieClip "button1" in Symbol 321 MovieClip Frame 840
onClipEvent (load) {
function reset() {
active = true;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (active == true) {
i = 1;
while (i <= 3) {
if (this.hitTest(_root["ball" + i])) {
this.play();
_root.timerBar.startTimer();
active = false;
}
i++;
}
}
}
Instance of Symbol 320 MovieClip "timerBar" in Symbol 321 MovieClip Frame 840
onClipEvent (load) {
function startTimer() {
this._visible = true;
active = true;
_root.wall4.animation.play();
}
function stopTimer() {
this._visible = false;
active = false;
_root.button1.reset();
_root.wall4.animation.play();
}
time = 3;
scaleSpeed = 100 / (time * 30);
this._visible = false;
}
Instance of Symbol 316 MovieClip "button2" in Symbol 321 MovieClip Frame 840
onClipEvent (load) {
function reset() {
active = true;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (active == true) {
i = 1;
while (i <= 3) {
if (this.hitTest(_root["ball" + i])) {
this.play();
_root.timerBar2.startTimer();
active = false;
}
i++;
}
}
}
Instance of Symbol 320 MovieClip "timerBar2" in Symbol 321 MovieClip Frame 840
onClipEvent (load) {
function startTimer() {
this._visible = true;
active = true;
_root.wall5.animation.play();
}
function stopTimer() {
this._visible = false;
active = false;
_root.button2.reset();
_root.wall5.animation.play();
}
time = 3;
scaleSpeed = 100 / (time * 30);
this._visible = false;
}
Instance of Symbol 34 MovieClip "floor5" in Symbol 321 MovieClip Frame 840
onClipEvent (enterFrame) {
if (up == true) {
this._y = this._y - 20;
i = 1;
while (i <= 3) {
if (this.hitTest(_root["ball" + i])) {
_root["ball" + i].ySpeed = -25;
}
i++;
}
} else {
this._y = this._y + 5;
}
if (this._y <= 190) {
up = false;
}
if (this._y >= 440) {
up = true;
}
}
Symbol 321 MovieClip Frame 860
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 879
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Symbol 321 MovieClip Frame 900
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 919
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Instance of Symbol 316 MovieClip "button1" in Symbol 321 MovieClip Frame 920
onClipEvent (load) {
function reset() {
active = true;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (active == true) {
i = 1;
while (i <= 3) {
if (this.hitTest(_root["ball" + i])) {
this.play();
_root.wall1.active = true;
active = false;
}
i++;
}
}
}
Symbol 321 MovieClip Frame 940
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 959
if (_root.trainingMode == true) {
goToTrainingScreen();
}
Symbol 321 MovieClip Frame 980
_root.nextFrame();
stop();
if (_root.trainingMode == true) {
_root.BG.play();
}
Symbol 321 MovieClip Frame 1000
if (_root.trainingMode == true) {
goToTrainingScreen();
} else {
_root.nextFrame();
}
Symbol 323 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 39
_root.levelReset(true);
gotoAndStop (1);
Symbol 339 Button
on (release) {
if (_root.trainingMode == true) {
_root.gotoAndStop("menuTwo");
_root.clearObjects();
_root.tutorial.getNextHighestDepth();
_root.tutorial.removeMovieClip();
_root.gamePaused = false;
_root.pauseScreen.getNextHighestDepth();
_root.pauseScreen.removeMovieClip();
} else {
nextFrame();
}
}
Symbol 342 Button
on (release) {
_root.pauseScreen.gamePause();
}
Symbol 346 Button
on (release) {
_root.clearObjects();
_root.gotoAndStop("menu");
stopAllSounds();
_root.tutorial.getNextHighestDepth();
_root.tutorial.removeMovieClip();
_root.gamePaused = false;
_root.pauseScreen.getNextHighestDepth();
_root.pauseScreen.removeMovieClip();
}
Symbol 348 Button
on (release) {
prevFrame();
}
Symbol 349 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 2
stop();
Instance of Symbol 88 MovieClip in Symbol 349 MovieClip Frame 2
onClipEvent (load) {
if (_root.musicMute == true) {
this.gotoAndStop(2);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_root.musicMute == false) {
this.nextFrame();
stopAllSounds();
} else {
this.prevFrame();
_root.musicMute = false;
_root.playMusic("gameMusic");
}
}
}
Instance of Symbol 89 MovieClip in Symbol 349 MovieClip Frame 2
onClipEvent (load) {
if (_root.soundMute == true) {
this.gotoAndStop(2);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
if (_root.soundMute == false) {
this.nextFrame();
} else {
this.prevFrame();
}
}
}
Instance of Symbol 103 MovieClip in Symbol 349 MovieClip Frame 2
onClipEvent (load) {
if (_root.gameVolume >= 0) {
this.slider._x = _root.gameVolume * 2;
}
}
onClipEvent (enterFrame) {
_root.gameVolume = Math.ceil(this.slider._x / 2);
_root.sound.setVolume(_root.gameVolume);
}
Symbol 352 Button
on (release) {
_root.pauseScreen.gamePause();
}
Symbol 357 Button
on (release) {
_parent.nextFrame();
}
Symbol 366 Button
on (release) {
_root.HUD.active = true;
_root.turret.buttonHover = false;
_root.tutorial.getNextHighestDepth();
_root.tutorial.swapDepths(300);
_root.tutorial.removeMovieClip();
}
Symbol 380 MovieClip Frame 1
stop();
Symbol 380 MovieClip Frame 15
gotoAndStop (1);
Symbol 394 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 4
play();
_root.HUD.active = true;
step = 1;
_root.turret.buttonHover = false;
Instance of Symbol 380 MovieClip in Symbol 394 MovieClip Frame 4
onClipEvent (enterFrame) {
this.play();
}
Symbol 394 MovieClip Frame 53
gotoAndPlay (4);
Symbol 402 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("menu");
}
Symbol 405 Button
on (release) {
gotoAndStop (71);
}
Symbol 408 MovieClip Frame 70
stop();
_root.HPScoreService.postScore(_root.totalScore, "");
_root.kongregateScores.submit(_root.totalScore);
Symbol 408 MovieClip Frame 71
stop();
mochi.MochiScores.showLeaderboard({boardID:"911f2a8888597845", score:_root.totalScore});