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);
}
Stage.scaleMode = "noScale";
_quality = "HIGH";
_global.myRoot = this;
globalSound = new Sound();
sound = true;
sportsGod = false;
gold = false;
silver = false;
bronze = false;
survivor = false;
goes = 0;
var rightClick = new ContextMenu();
rightClick.hideBuiltInItems();
_global.myRoot.menu = rightClick;
__com_mochibot__("2e491d75", this, 10301, true);
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
_root.loadBar._width = getPercent * 100;
_root.loadText = Math.round(getPercent * 100) + "%";
if (bytes_loaded == bytes_total) {
_root.gotoAndStop(3);
}
Frame 2
gotoAndPlay (1);
Frame 4
stop();
buttonMousebreaker.onRelease = function () {
getURL ("http://www.mousebreaker.com/", "_blank");
};
moveOn = false;
help = false;
scores = false;
credits = false;
buttonPlay.onPress = function () {
stopAllSounds();
moveOn = true;
help = false;
awards = false;
credits = false;
fg.play();
};
buttonHelp.onPress = function () {
moveOn = false;
help = true;
awards = false;
credits = false;
fg.play();
};
buttonAwards.onPress = function () {
moveOn = false;
help = false;
awards = true;
credits = false;
fg.play();
};
buttonCredits.onPress = function () {
moveOn = false;
help = false;
awards = false;
credits = true;
fg.play();
};
fg.speaker.onRelease = function () {
if (sound) {
sound = false;
_global.myRoot.globalSound.setVolume(0);
} else {
sound = true;
_global.myRoot.globalSound.setVolume(100);
}
};
fg.q.onRelease = function () {
trace(_quality);
if (_quality == "HIGH") {
prev = "HIGH";
_quality = "MEDIUM";
} else if ((_quality == "MEDIUM") && (prev == "HIGH")) {
_quality = "LOW";
} else if ((_quality == "MEDIUM") && (prev == "LOW")) {
_quality = "HIGH";
} else if (_quality == "LOW") {
_quality = "MEDIUM";
prev = "LOW";
}
};
onEnterFrame = function () {
if (sound) {
fg.speaker.gotoAndStop(1);
} else {
fg.speaker.gotoAndStop(2);
}
if (_quality == "HIGH") {
fg.q.gotoAndStop(1);
} else if (_quality == "MEDIUM") {
fg.q.gotoAndStop(2);
} else if (_quality == "LOW") {
fg.q.gotoAndStop(3);
}
if (fg._currentframe == fg._totalframes) {
if (moveOn) {
play();
}
if (help) {
gotoAndStop ("help");
}
if (awards) {
gotoAndStop ("awards");
}
if (credits) {
gotoAndStop ("credits");
}
}
};
time = 0;
lives = 7;
countdown = 60;
minigameCount = 30;
highestDepth = 10000;
onMouseDown = function () {
pressed = true;
};
onMouseUp = function () {
pressed = false;
};
setup = function () {
levelPassed = false;
levelFailed = false;
gamePaused = false;
shaking = false;
quit = false;
fg.q.onRelease = function () {
trace(_quality);
if (_quality == "HIGH") {
prev = "HIGH";
_quality = "MEDIUM";
} else if ((_quality == "MEDIUM") && (prev == "HIGH")) {
_quality = "LOW";
} else if ((_quality == "MEDIUM") && (prev == "LOW")) {
_quality = "HIGH";
} else if (_quality == "LOW") {
_quality = "MEDIUM";
prev = "LOW";
}
};
fg.speaker.onRelease = function () {
if ((!levelPassed) and (!gamePaused)) {
if (sound) {
sound = false;
_global.myRoot.globalSound.setVolume(0);
fg.speaker.gotoAndStop(2);
} else {
sound = true;
_global.myRoot.globalSound.setVolume(100);
fg.speaker.gotoAndStop(1);
}
}
};
fg.pauseGame.gotoAndStop(1);
fg.pauseGame.onRelease = function () {
if (fg.pauseGame._currentframe == 1) {
fg.pauseGame.play();
fg.pausedMenu.play();
gamePaused = true;
}
};
onMouseDown = function () {
pressed = true;
clicks = clicks + 1;
};
onMouseUp = function () {
pressed = false;
};
};
game = function () {
shake();
count();
fg.livesText = lives + "x";
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
fg.timer.play();
if (countdown > 0) {
countdown--;
} else {
time++;
countdown = 60;
}
}
if (sound) {
fg.speaker.gotoAndStop(1);
} else {
fg.speaker.gotoAndStop(2);
}
if (_quality == "HIGH") {
fg.q.gotoAndStop(1);
} else if (_quality == "MEDIUM") {
fg.q.gotoAndStop(2);
} else if (_quality == "LOW") {
fg.q.gotoAndStop(3);
}
if (highestDepth == 0) {
highestDepth = 10000;
}
if (pressed) {
pressCounter++;
} else {
pressCounter = 0;
}
if (fg.timer._currentframe == fg.timer._totalframes) {
failed();
}
};
explode = function () {
shaking = true;
shakeCount = 20;
j = 0;
while (j < 25) {
p = attachMovie("explosion", "explosion" + (j++), highestDepth--);
p._x = (explodeX - 40) + random(80);
p._y = (explodeY - 40) + random(80);
p._xscale = (p._yscale = (Math.random() * 100) + 20);
p._rotation = random(360);
j++;
}
};
shake = function () {
if (shaking) {
_global.myRoot._x = random(20) - 5;
_global.myRoot._y = random(20) - 5;
shakeCount--;
if (shakeCount == 0) {
shaking = false;
_global.myRoot._x = 0;
_global.myRoot._y = 0;
}
}
};
failed = function () {
if (!levelFailed) {
fg.sounds.fail.play();
levelFailed = true;
fg.timer.stop();
fg.fail.play();
lives--;
time = time + 30;
minigameCount = minigameCount - 1;
}
};
passed = function () {
if (!levelPassed) {
fg.sounds.pass.play();
levelPassed = true;
fg.timer.stop();
fg.pass.play();
minigameCount = minigameCount - 1;
}
};
rockOn = function () {
if (levelPassed) {
fg.pauseGame.gotoAndStop(2);
if (fg.pass._currentframe == fg.pass._totalframes) {
if (fg._currentframe != fg._totalframes) {
fg.play();
}
}
if (fg._currentframe == fg._totalframes) {
play();
}
}
if (levelFailed) {
fg.pauseGame.gotoAndStop(2);
if (fg.fail._currentframe == fg.fail._totalframes) {
if (fg._currentframe != fg._totalframes) {
fg.play();
}
}
if (fg._currentframe == fg._totalframes) {
if (lives > 0) {
play();
} else {
_global.myRoot.gotoAndStop("gameOver");
}
}
}
if (gamePaused) {
fg.timer.stop();
if (quit) {
if (fg._currentframe != fg._totalframes) {
fg.play();
}
if (fg._currentframe == fg._totalframes) {
gotoAndPlay ("menu");
}
}
}
};
Frame 5
stop();
setup();
fg.levelName = "CLICK TO GOAL!";
parNum = 3;
par = parNum;
speed = 8;
returning = false;
starter._x = tee._x;
starter._y = tee._y;
endX = starter._x;
endY = starter._y;
onEnterFrame = function () {
game();
sign.signHolder.parText = "Par " + par;
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (par > 0) {
if (pressed and clickmap.hitTest(_xmouse, _ymouse, true)) {
if (pressCounter == 1) {
if ((golfball._currentframe == 1) and (!returning)) {
endX = _xmouse;
endY = _ymouse;
starter._x = endX;
starter._y = endY;
if (par > 0) {
par--;
} else {
par = 0;
}
}
}
}
} else if (starter.hitTest(golfball._x, golfball._y, true)) {
fg.sounds.buzzer.play();
returning = true;
endX = tee._x;
endY = tee._y;
starter._x = endX;
starter._y = endY;
par = parNum;
}
golfball._x = golfball._x + ((endX - golfball._x) / speed);
golfball._y = golfball._y + ((endY - golfball._y) / speed);
if (!course.hitTest(golfball._x, golfball._y, true)) {
if (!returning) {
fg.sounds.buzzer.play();
}
returning = true;
endX = tee._x;
endY = tee._y;
starter._x = endX;
starter._y = endY;
par = parNum;
}
i = 0;
while (i < 3) {
if (_global.myRoot["trapdoor" + i].hitmap.hitTest(golfball._x, golfball._y, true)) {
if (!returning) {
fg.sounds.buzzer.play();
}
returning = true;
endX = tee._x;
endY = tee._y;
starter._x = endX;
starter._y = endY;
par = parNum;
}
i++;
}
if (hole.hitTest(golfball._x, golfball._y, true)) {
if ((golfball._currentframe == 1) and (!returning)) {
fg.sounds.sink.play();
endX = hole._x;
endY = hole._y;
golfBall._x = endX;
golfBall._y = endY;
golfball.play();
}
}
if (golfball._currentframe == golfball._totalframes) {
passed();
}
if (starter.hitTest(golfball._x, golfball._y, true)) {
if (returning) {
golfball._x = starter._x;
golfball._y = starter._y;
returning = false;
}
}
} else {
rockOn();
}
};
Frame 6
stop();
setup();
fg.levelName = "KICK-UPS!";
gravity = 0.4;
restitution = 0.7;
friction = 0.9;
rot = 0;
vel = {x:0, y:0};
pos = {x:320, y:260};
old = {x:ball._x, y:ball._y};
radius = ball._width / 2;
bouncing = false;
target = 3;
kickups = target;
onEnterFrame = function () {
game();
kickupsText = kickups + "x";
kickupsText._alpha = 15;
ballShadow._x = ball._x;
ballShadow._xscale = ((0 + ball._y) / 4) + 20;
ballShadow._yscale = ballShadow._xscale;
ballShadow._alpha = (0 + ball._y) / 4;
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (kickups == 0) {
fg.sounds.crowd.play();
passed();
}
if (pressed) {
if (pressCounter == 1) {
if (ball.hitTest(_xmouse, _ymouse, true)) {
kickups--;
fg.sounds.jump.play();
xClick = ball._x - _xmouse;
yClick = ball._y - _ymouse;
rot = xClick / 2;
vel = {x:xClick / 2, y:-10};
}
}
}
vel.y = vel.y + gravity;
rot = rot * 0.98;
pos.x = pos.x + vel.x;
pos.y = pos.y + vel.y;
ball._rotation = ball._rotation + rot;
ball._x = pos.x;
ball._y = pos.y;
if ((pos.y + radius) > 400) {
kickups = target;
pos.y = 400 - radius;
vel.y = vel.y * (-restitution);
vel.x = vel.x * friction;
}
if ((pos.y - radius) < 60) {
pos.y = 60 + radius;
vel.y = vel.y * (-restitution);
vel.x = vel.x * friction;
}
if ((pos.x + radius) > 640) {
pos.x = 640 - radius;
vel.x = vel.x * (-restitution);
rot = rot * -1;
}
if (pos.x < (0 + radius)) {
pos.x = 0 + radius;
vel.x = vel.x * (-restitution);
rot = rot * -1;
}
if ((ball._y + radius) > 400) {
ball._y = 400 - radius;
}
if ((ball._y - radius) < 60) {
ball._y = 60 + radius;
}
if ((ball._x + radius) > 640) {
ball._x = 640 - radius;
}
if (ball._x < (0 + radius)) {
ball._x = 0 + radius;
}
} else {
vel.y = vel.y + gravity;
pos.x = pos.x + vel.x;
pos.y = pos.y + vel.y;
ball._x = pos.x;
ball._y = pos.y;
if ((pos.y + radius) > 400) {
pos.y = 400 - radius;
vel.y = vel.y * (-restitution);
vel.x = vel.x * friction;
}
if ((pos.y - radius) < 0) {
pos.y = 0 + radius;
vel.y = vel.y * (-restitution);
vel.x = vel.x * friction;
}
if ((pos.x + radius) > 640) {
pos.x = 640 - radius;
vel.x = vel.x * (-restitution);
}
if (pos.x < (0 + radius)) {
pos.x = 0 + radius;
vel.x = vel.x * (-restitution);
}
if ((ball._y + radius) > 400) {
ball._y = 400 - radius;
}
if ((ball._y - radius) < 0) {
ball._y = 0 + radius;
}
if ((ball._x + radius) > 640) {
ball._x = 640 - radius;
}
if (ball._x < (0 + radius)) {
ball._x = 0 + radius;
}
rockOn();
}
};
Frame 7
stop();
setup();
fg.levelName = "CHIN-UPS!";
draggingDude = false;
pumped = true;
chins = 5;
onEnterFrame = function () {
game();
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
chinsText = chins + "x";
if (chins == 0) {
passed();
}
if (pressed) {
if (pressCounter == 1) {
if (dude.hitTest(_xmouse, _ymouse, true)) {
if (!draggingDude) {
draggingDude = true;
grabPoint = dude._y - _ymouse;
}
}
}
} else {
draggingDude = false;
}
if (draggingDude) {
dude._y = _ymouse + grabPoint;
}
if (dude._y <= 200) {
dude._y = 200;
}
if ((dude._y >= 200) and (dude._y < 210)) {
if (!pumped) {
fg.sounds.huh.play();
fg.sounds.creak.play();
pumped = true;
chins = chins - 1;
}
}
if (dude._y >= 240) {
dude._y = 240;
}
if ((dude._y <= 240) and (dude._y > 230)) {
if (pumped) {
pumped = false;
}
}
dudeHead._y = -300 + (dude._y * 2);
} else {
rockOn();
}
};
Frame 8
stop();
setup();
fg.levelName = "COLLECT ALL!";
clicked = false;
stars = 6;
collected = new Array();
i = 0;
while (i < stars) {
collected[i] = false;
i++;
}
xspeed = 0;
yspeed = 0;
delay = 10;
playerX = 320;
playerY = 340;
playerDir = -90;
player._x = playerX;
player._y = playerY;
player._rotation = playerDir;
onEnterFrame = function () {
game();
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (!track.hitTest(player._x, player._y, true)) {
clicked = false;
xspeed = 0;
yspeed = 0;
delay = 10;
player._x = playerX;
player._y = playerY;
player._rotation = playerDir;
arrowAnim.gotoAndStop("on");
}
arrowAnim._x = player._x;
arrowAnim._y = player._y - 30;
if (clicked) {
dist_x = _xmouse - player._x;
dist_y = _ymouse - player._y;
distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
angle = Math.atan2(dist_y, dist_x);
speed = distance / delay;
xspeed = speed * Math.cos(angle);
yspeed = speed * Math.sin(angle);
player._rotation = (angle * 180) / Math.PI;
} else if (pressed and (pressCounter == 1)) {
if (player.hitTest(_xmouse, _ymouse, true) or arrowAnim.hitTest(_xmouse, _ymouse, true)) {
fg.sounds.engine.play();
pressed = false;
clicked = true;
arrowAnim.gotoAndStop("off");
}
}
player._x = player._x + xspeed;
player._y = player._y + yspeed;
i = 0;
while (i < stars) {
if (player.hitTest(_global.myRoot["star" + i])) {
if (_global.myRoot["star" + i]._currentframe == 1) {
fg.sounds.pickup.play();
_global.myRoot["star" + i].play();
collected[i] = true;
}
}
i++;
}
i = 0;
while (i < stars) {
if (collected[i]) {
totalCollected++;
} else {
totalCollected = 0;
break;
}
i++;
}
trace(totalCollected);
if (totalCollected == stars) {
passed();
}
} else {
rockOn();
}
};
Frame 9
stop();
setup();
fg.levelName = "WALK THE ROPE!";
walking = false;
onEnterFrame = function () {
game();
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (!walking) {
if (pressed and (pressCounter == 1)) {
if (tightrope.startpoint.hitTest(_xmouse, _ymouse)) {
fg.sounds.rope.play();
walking = true;
tightrope.startpoint.play();
tightrope.checkpoint.play();
}
}
} else {
if (!tightrope.hitTest(_xmouse, _ymouse, true)) {
walking = false;
tightrope.startpoint.play();
tightrope.checkpoint.play();
}
if (tightrope.checkpoint.hitTest(_xmouse, _ymouse, true)) {
if (pressed and (pressCounter == 1)) {
tightrope.checkpoint.play();
fg.sounds.crowd.play();
passed();
}
}
}
} else {
rockOn();
}
};
Frame 10
stop();
setup();
fg.levelName = "GUIDE 2 CHECKPOINTS!";
clicked = false;
started = false;
target = 1;
xspeed = 0;
yspeed = 0;
delay = 12;
playerX = 140;
playerY = 240;
playerDir = 0;
player._x = playerX;
player._y = playerY;
player._rotation = playerDir;
player.gotoAndStop("start");
ball.gotoAndStop("yellow");
ball._x = ballX;
ball._y = ballY;
xspeedBall = 0;
yspeedBall = 0;
onEnterFrame = function () {
game();
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
goalie._y = ball._y + yspeedBall;
arrowAnim._x = player._x;
arrowAnim._y = player._y - 30;
if (clicked) {
dist_x = _xmouse - player._x;
dist_y = _ymouse - player._y;
distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
angle = Math.atan2(dist_y, dist_x);
speed = distance / delay;
xspeed = speed * Math.cos(angle);
yspeed = speed * Math.sin(angle);
player._rotation = (angle * 180) / Math.PI;
} else {
xspeed = xspeed * 0.95;
yspeed = yspeed * 0.95;
if (pressed and (pressCounter == 1)) {
if (player.hitTest(_xmouse, _ymouse, true) or arrowAnim.hitTest(_xmouse, _ymouse, true)) {
pressed = false;
clicked = true;
arrowAnim.gotoAndStop("off");
}
}
}
player._x = player._x + xspeed;
player._y = player._y + yspeed;
if (player.hitTest(ball._x + xspeed, ball._y + yspeed, true)) {
xspeedBall = xspeed * 2;
yspeedBall = yspeed * 2;
}
ball._x = ball._x + xspeedBall;
ball._y = ball._y + yspeedBall;
xspeedBall = xspeedBall * 0.9;
yspeedBall = yspeedBall * 0.9;
if (!hitmap.hitTest(ball._x, ball._y, true)) {
ball._x = 320;
ball._y = 240;
xspeed = 0;
yspeed = 0;
xspeedBall = 0;
yspeedBall = 0;
}
if (starYellow.hitTest(ball._x, ball._y)) {
if (ball._currentframe == 1) {
fg.sounds.pickup.play();
starYellow.play();
if (target == 1) {
passed();
} else {
ball.play();
}
}
}
if (starBlue.hitTest(ball._x, ball._y)) {
if (ball._currentframe == 2) {
fg.sounds.pickup.play();
starBlue.play();
if (target == 2) {
passed();
} else {
ball.play();
}
}
}
if (starRed.hitTest(ball._x, ball._y)) {
if (ball._currentframe == 3) {
fg.sounds.pickup.play();
starRed.play();
passed();
}
}
} else {
rockOn();
}
};
Frame 11
stop();
setup();
fg.levelName = "SHOOT IN ORDER!";
speed = new Array();
speed[0] = {x:3, y:3};
speed[1] = {x:-3, y:3};
speed[2] = {x:3, y:-3};
i = 0;
while (i < 3) {
_global.myRoot["ball" + i].ballNum = i + 1;
i++;
}
balls = 0;
target = 3;
gravity = 0.2;
velocity = 0;
noneClicked = true;
onEnterFrame = function () {
game();
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (balls == target) {
passed();
}
i = 0;
while (i < 10) {
_global.myRoot["ball" + i]._x = _global.myRoot["ball" + i]._x + speed[i].x;
_global.myRoot["ball" + i]._y = _global.myRoot["ball" + i]._y + speed[i].y;
if (_global.myRoot["ball" + i]._x > 600) {
_global.myRoot["ball" + i]._x = 600;
speed[i].x = speed[i].x * -1;
}
if (_global.myRoot["ball" + i]._y > 360) {
_global.myRoot["ball" + i]._y = 360;
speed[i].y = speed[i].y * -1;
}
if (_global.myRoot["ball" + i]._x < 40) {
_global.myRoot["ball" + i]._x = 40;
speed[i].x = speed[i].x * -1;
}
if (_global.myRoot["ball" + i]._y < 120) {
_global.myRoot["ball" + i]._y = 120;
speed[i].y = speed[i].y * -1;
}
i++;
}
if (pressed and (pressCounter == 1)) {
i = 0;
while (i < 10) {
if (_global.myRoot["ball" + i].hitTest(_xmouse, _ymouse)) {
if (noneClicked and (i == 0)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 1) and (i == 1)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 2) and (i == 2)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 3) and (i == 3)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 4) and (i == 4)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 5) and (i == 5)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
}
i++;
}
}
} else {
rockOn();
}
};
Frame 12
stop();
setup();
fg.levelName = "CLICK FAST 2 DRAG!";
vel = 0;
acc = 1;
onEnterFrame = function () {
game();
enemyCar.play();
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (car.hitTest(finishLine)) {
passed();
}
if (pressed and (pressCounter == 1)) {
vel = vel + acc;
}
vel = vel * 0.95;
car._x = car._x + vel;
} else {
enemyCar.stop();
rockOn();
}
};
Frame 13
stop();
setup();
fg.levelName = "ARROWS TO CHEER!";
left = false;
right = false;
down = false;
up = false;
space = false;
step = 0;
onEnterFrame = function () {
game();
if (step == 3) {
fg.timer.stop();
if (cheerleader._currentframe == 1) {
passed();
}
}
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (!left) {
if (step == 0) {
if (Key.isDown(37)) {
left = true;
}
}
} else {
if (cheerleader._currentframe == 1) {
if (step == 0) {
fg.sounds.hey.play();
cheerleader.gotoAndPlay("left");
step++;
}
}
if (keyL._alpha > 0) {
keyL._alpha = keyL._alpha - 10;
} else {
keyL._alpha == 0;
}
}
if (!right) {
if (step == 1) {
if (Key.isDown(39)) {
right = true;
}
}
} else {
if (cheerleader._currentframe == 1) {
if (step == 1) {
fg.sounds.hey.play();
cheerleader.gotoAndPlay("right");
step++;
}
}
if (keyR._alpha > 0) {
keyR._alpha = keyR._alpha - 10;
} else {
keyR._alpha == 0;
}
}
if (!down) {
if (step == 2) {
if (Key.isDown(40)) {
down = true;
}
}
} else {
if (cheerleader._currentframe == 1) {
if (step == 2) {
fg.sounds.hey.play();
cheerleader.gotoAndPlay("down");
fg.sounds.crowd.play();
step++;
}
}
if (keyD._alpha > 0) {
keyD._alpha = keyD._alpha - 10;
} else {
keyD._alpha == 0;
}
}
} else {
rockOn();
}
};
Frame 14
stop();
setup();
fg.levelName = "CLIMB THE ROCK!";
gravity = 0.5;
acceleration = 1.05;
draggingCliff = false;
onEnterFrame = function () {
game();
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (cliffScene._y > 1200) {
passed();
}
if (pressed) {
if (pressCounter == 1) {
if (cliffScene.hitTest(_xmouse, _ymouse, true)) {
draggingCliff = true;
grabPoint = cliffScene._y - _ymouse;
gravity = 0.5;
}
}
} else {
draggingCliff = false;
}
if (draggingCliff) {
if (cliffScene._y >= 400) {
cliffScene._y = _ymouse + grabPoint;
gravity = 0.5;
}
} else if (cliffScene._y > 400) {
cliffScene._y = cliffScene._y - gravity;
gravity = gravity * acceleration;
}
if (cliffScene._y < 400) {
cliffScene._y = 400;
}
bushes._y = 350 + (cliffScene._y / 4);
clouds._y = 100 + (cliffScene._y / 16);
} else {
rockOn();
}
};
Frame 15
stop();
setup();
fg.levelName = "CLICK TO GOAL!";
parNum = 4;
par = parNum;
speed = 8;
returning = false;
starter._x = tee._x;
starter._y = tee._y;
endX = starter._x;
endY = starter._y;
onEnterFrame = function () {
game();
sign.signHolder.parText = "Par " + par;
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (par > 0) {
if (pressed and clickmap.hitTest(_xmouse, _ymouse, true)) {
if (pressCounter == 1) {
if ((golfball._currentframe == 1) and (!returning)) {
endX = _xmouse;
endY = _ymouse;
starter._x = endX;
starter._y = endY;
if (par > 0) {
par--;
} else {
par = 0;
}
}
}
}
} else if (starter.hitTest(golfball._x, golfball._y, true)) {
fg.sounds.buzzer.play();
returning = true;
endX = tee._x;
endY = tee._y;
starter._x = endX;
starter._y = endY;
par = parNum;
}
golfball._x = golfball._x + ((endX - golfball._x) / speed);
golfball._y = golfball._y + ((endY - golfball._y) / speed);
if (!course.hitTest(golfball._x, golfball._y, true)) {
if (!returning) {
fg.sounds.buzzer.play();
}
returning = true;
endX = tee._x;
endY = tee._y;
starter._x = endX;
starter._y = endY;
par = parNum;
}
i = 0;
while (i < 3) {
if (_global.myRoot["trapdoor" + i].hitmap.hitTest(golfball._x, golfball._y, true)) {
if (!returning) {
fg.sounds.buzzer.play();
}
returning = true;
endX = tee._x;
endY = tee._y;
starter._x = endX;
starter._y = endY;
par = parNum;
}
i++;
}
if (hole.hitTest(golfball._x, golfball._y, true)) {
if ((golfball._currentframe == 1) and (!returning)) {
fg.sounds.sink.play();
endX = hole._x;
endY = hole._y;
golfBall._x = endX;
golfBall._y = endY;
golfball.play();
}
}
if (golfball._currentframe == golfball._totalframes) {
passed();
}
if (starter.hitTest(golfball._x, golfball._y, true)) {
if (returning) {
golfball._x = starter._x;
golfball._y = starter._y;
returning = false;
}
}
} else {
rockOn();
}
};
Frame 16
stop();
setup();
fg.levelName = "KICK-UPS!";
gravity = 0.4;
restitution = 0.7;
friction = 0.9;
rot = 0;
vel = {x:0, y:0};
pos = {x:320, y:260};
old = {x:ball._x, y:ball._y};
radius = ball._width / 2;
bouncing = false;
target = 4;
kickups = target;
onEnterFrame = function () {
game();
kickupsText = kickups + "x";
kickupsText._alpha = 15;
ballShadow._x = ball._x;
ballShadow._xscale = ((0 + ball._y) / 4) + 20;
ballShadow._yscale = ballShadow._xscale;
ballShadow._alpha = (0 + ball._y) / 4;
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (kickups == 0) {
fg.sounds.crowd.play();
passed();
}
if (pressed) {
if (pressCounter == 1) {
if (ball.hitTest(_xmouse, _ymouse, true)) {
kickups--;
fg.sounds.jump.play();
xClick = ball._x - _xmouse;
yClick = ball._y - _ymouse;
rot = xClick / 2;
vel = {x:xClick / 2, y:-10};
}
}
}
vel.y = vel.y + gravity;
rot = rot * 0.98;
pos.x = pos.x + vel.x;
pos.y = pos.y + vel.y;
ball._rotation = ball._rotation + rot;
ball._x = pos.x;
ball._y = pos.y;
if ((pos.y + radius) > 400) {
kickups = target;
pos.y = 400 - radius;
vel.y = vel.y * (-restitution);
vel.x = vel.x * friction;
}
if ((pos.y - radius) < 60) {
pos.y = 60 + radius;
vel.y = vel.y * (-restitution);
vel.x = vel.x * friction;
}
if ((pos.x + radius) > 640) {
pos.x = 640 - radius;
vel.x = vel.x * (-restitution);
rot = rot * -1;
}
if (pos.x < (0 + radius)) {
pos.x = 0 + radius;
vel.x = vel.x * (-restitution);
rot = rot * -1;
}
if ((ball._y + radius) > 400) {
ball._y = 400 - radius;
}
if ((ball._y - radius) < 60) {
ball._y = 60 + radius;
}
if ((ball._x + radius) > 640) {
ball._x = 640 - radius;
}
if (ball._x < (0 + radius)) {
ball._x = 0 + radius;
}
} else {
vel.y = vel.y + gravity;
pos.x = pos.x + vel.x;
pos.y = pos.y + vel.y;
ball._x = pos.x;
ball._y = pos.y;
if ((pos.y + radius) > 400) {
pos.y = 400 - radius;
vel.y = vel.y * (-restitution);
vel.x = vel.x * friction;
}
if ((pos.y - radius) < 0) {
pos.y = 0 + radius;
vel.y = vel.y * (-restitution);
vel.x = vel.x * friction;
}
if ((pos.x + radius) > 640) {
pos.x = 640 - radius;
vel.x = vel.x * (-restitution);
}
if (pos.x < (0 + radius)) {
pos.x = 0 + radius;
vel.x = vel.x * (-restitution);
}
if ((ball._y + radius) > 400) {
ball._y = 400 - radius;
}
if ((ball._y - radius) < 0) {
ball._y = 0 + radius;
}
if ((ball._x + radius) > 640) {
ball._x = 640 - radius;
}
if (ball._x < (0 + radius)) {
ball._x = 0 + radius;
}
rockOn();
}
};
Frame 17
stop();
setup();
fg.levelName = "CHIN-UPS!";
draggingDude = false;
pumped = true;
chins = 10;
onEnterFrame = function () {
game();
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
chinsText = chins + "x";
if (chins == 0) {
passed();
}
if (pressed) {
if (pressCounter == 1) {
if (dude.hitTest(_xmouse, _ymouse, true)) {
if (!draggingDude) {
draggingDude = true;
grabPoint = dude._y - _ymouse;
}
}
}
} else {
draggingDude = false;
}
if (draggingDude) {
dude._y = _ymouse + grabPoint;
}
if (dude._y <= 200) {
dude._y = 200;
}
if ((dude._y >= 200) and (dude._y < 210)) {
if (!pumped) {
fg.sounds.huh.play();
fg.sounds.creak.play();
pumped = true;
chins = chins - 1;
}
}
if (dude._y >= 240) {
dude._y = 240;
}
if ((dude._y <= 240) and (dude._y > 230)) {
if (pumped) {
pumped = false;
}
}
dudeHead._y = -300 + (dude._y * 2);
} else {
rockOn();
}
};
Frame 18
stop();
setup();
fg.levelName = "COLLECT ALL!";
clicked = false;
stars = 12;
collected = new Array();
i = 0;
while (i < stars) {
collected[i] = false;
i++;
}
xspeed = 0;
yspeed = 0;
delay = 10;
playerX = 320;
playerY = 270;
playerDir = -90;
player._x = playerX;
player._y = playerY;
player._rotation = playerDir;
onEnterFrame = function () {
game();
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (!track.hitTest(player._x, player._y, true)) {
clicked = false;
xspeed = 0;
yspeed = 0;
delay = 10;
player._x = playerX;
player._y = playerY;
player._rotation = playerDir;
arrowAnim.gotoAndStop("on");
}
arrowAnim._x = player._x;
arrowAnim._y = player._y - 30;
if (clicked) {
dist_x = _xmouse - player._x;
dist_y = _ymouse - player._y;
distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
angle = Math.atan2(dist_y, dist_x);
speed = distance / delay;
xspeed = speed * Math.cos(angle);
yspeed = speed * Math.sin(angle);
player._rotation = (angle * 180) / Math.PI;
} else if (pressed and (pressCounter == 1)) {
if (player.hitTest(_xmouse, _ymouse, true) or arrowAnim.hitTest(_xmouse, _ymouse, true)) {
fg.sounds.engine.play();
pressed = false;
clicked = true;
arrowAnim.gotoAndStop("off");
}
}
player._x = player._x + xspeed;
player._y = player._y + yspeed;
i = 0;
while (i < stars) {
if (player.hitTest(_global.myRoot["star" + i])) {
if (_global.myRoot["star" + i]._currentframe == 1) {
fg.sounds.pickup.play();
_global.myRoot["star" + i].play();
collected[i] = true;
}
}
i++;
}
i = 0;
while (i < stars) {
if (collected[i]) {
totalCollected++;
} else {
totalCollected = 0;
break;
}
i++;
}
trace(totalCollected);
if (totalCollected == stars) {
passed();
}
} else {
rockOn();
}
};
Frame 19
stop();
setup();
fg.levelName = "WALK THE ROPE!";
walking = false;
onEnterFrame = function () {
game();
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (!walking) {
if (pressed and (pressCounter == 1)) {
if (tightrope.startpoint.hitTest(_xmouse, _ymouse)) {
fg.sounds.rope.play();
walking = true;
tightrope.startpoint.play();
tightrope.checkpointA.play();
}
}
} else {
if (!tightrope.hitTest(_xmouse, _ymouse, true)) {
walking = false;
tightrope.startpoint.play();
tightrope.checkpointA.gotoAndStop(1);
tightrope.checkpointB.gotoAndStop(1);
}
if (pressed and (pressCounter == 1)) {
if (tightrope.checkpointA.hitTest(_xmouse, _ymouse)) {
tightrope.checkpointA.gotoAndStop(1);
tightrope.checkpointB.play();
}
if (tightrope.checkpointB.hitTest(_xmouse, _ymouse)) {
tightrope.checkpointB.play();
fg.sounds.crowd.play();
passed();
}
}
}
} else {
rockOn();
}
};
Frame 20
stop();
setup();
fg.levelName = "GUIDE 2 CHECKPOINTS!";
clicked = false;
started = false;
target = 2;
xspeed = 0;
yspeed = 0;
delay = 10;
playerX = 500;
playerY = 240;
playerDir = 180;
player._x = playerX;
player._y = playerY;
player._rotation = playerDir;
player.gotoAndStop("start");
ball.gotoAndStop("yellow");
ball._x = ballX;
ball._y = ballY;
xspeedBall = 0;
yspeedBall = 0;
onEnterFrame = function () {
game();
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
goalie._y = ball._y + yspeedBall;
arrowAnim._x = player._x;
arrowAnim._y = player._y - 30;
if (clicked) {
dist_x = _xmouse - player._x;
dist_y = _ymouse - player._y;
distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
angle = Math.atan2(dist_y, dist_x);
speed = distance / delay;
xspeed = speed * Math.cos(angle);
yspeed = speed * Math.sin(angle);
player._rotation = (angle * 180) / Math.PI;
} else {
xspeed = xspeed * 0.95;
yspeed = yspeed * 0.95;
if (pressed and (pressCounter == 1)) {
if (player.hitTest(_xmouse, _ymouse, true) or arrowAnim.hitTest(_xmouse, _ymouse, true)) {
pressed = false;
clicked = true;
arrowAnim.gotoAndStop("off");
}
}
}
player._x = player._x + xspeed;
player._y = player._y + yspeed;
if (player.hitTest(ball._x + xspeed, ball._y + yspeed, true)) {
xspeedBall = xspeed * 2;
yspeedBall = yspeed * 2;
}
ball._x = ball._x + xspeedBall;
ball._y = ball._y + yspeedBall;
xspeedBall = xspeedBall * 0.9;
yspeedBall = yspeedBall * 0.9;
if (!hitmap.hitTest(ball._x, ball._y, true)) {
ball._x = 320;
ball._y = 240;
xspeed = 0;
yspeed = 0;
xspeedBall = 0;
yspeedBall = 0;
}
if (starYellow.hitTest(ball._x, ball._y)) {
if (ball._currentframe == 1) {
fg.sounds.pickup.play();
starYellow.play();
if (target == 1) {
passed();
} else {
ball.play();
}
}
}
if (starBlue.hitTest(ball._x, ball._y)) {
if (ball._currentframe == 2) {
fg.sounds.pickup.play();
starBlue.play();
if (target == 2) {
passed();
} else {
ball.play();
}
}
}
if (starRed.hitTest(ball._x, ball._y)) {
if (ball._currentframe == 3) {
fg.sounds.pickup.play();
starRed.play();
passed();
}
}
} else {
rockOn();
}
};
Frame 21
stop();
setup();
fg.levelName = "SHOOT IN ORDER!";
speed = new Array();
speed[0] = {x:4, y:4};
speed[1] = {x:-4, y:4};
speed[2] = {x:4, y:-4};
speed[3] = {x:-4, y:-4};
i = 0;
while (i < 4) {
_global.myRoot["ball" + i].ballNum = i + 1;
i++;
}
balls = 0;
target = 4;
gravity = 0.2;
velocity = 0;
noneClicked = true;
onEnterFrame = function () {
game();
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (balls == target) {
passed();
}
i = 0;
while (i < 10) {
_global.myRoot["ball" + i]._x = _global.myRoot["ball" + i]._x + speed[i].x;
_global.myRoot["ball" + i]._y = _global.myRoot["ball" + i]._y + speed[i].y;
if (_global.myRoot["ball" + i]._x > 600) {
_global.myRoot["ball" + i]._x = 600;
speed[i].x = speed[i].x * -1;
}
if (_global.myRoot["ball" + i]._y > 360) {
_global.myRoot["ball" + i]._y = 360;
speed[i].y = speed[i].y * -1;
}
if (_global.myRoot["ball" + i]._x < 40) {
_global.myRoot["ball" + i]._x = 40;
speed[i].x = speed[i].x * -1;
}
if (_global.myRoot["ball" + i]._y < 120) {
_global.myRoot["ball" + i]._y = 120;
speed[i].y = speed[i].y * -1;
}
i++;
}
if (pressed and (pressCounter == 1)) {
i = 0;
while (i < 10) {
if (_global.myRoot["ball" + i].hitTest(_xmouse, _ymouse)) {
if (noneClicked and (i == 0)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 1) and (i == 1)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 2) and (i == 2)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 3) and (i == 3)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 4) and (i == 4)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 5) and (i == 5)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
}
i++;
}
}
} else {
rockOn();
}
};
Frame 22
stop();
setup();
fg.levelName = "CLICK FAST 2 DRAG!";
vel = 0;
acc = 0.9;
onEnterFrame = function () {
game();
enemyCar.play();
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (car.hitTest(finishLine)) {
passed();
}
if (pressed and (pressCounter == 1)) {
vel = vel + acc;
}
vel = vel * 0.95;
car._x = car._x + vel;
} else {
enemyCar.stop();
rockOn();
}
};
Frame 23
stop();
setup();
fg.levelName = "ARROWS TO CHEER!";
left = false;
right = false;
down = false;
up = false;
space = false;
step = 0;
onEnterFrame = function () {
game();
if (step == 4) {
fg.timer.stop();
if (cheerleader._currentframe == 1) {
passed();
}
}
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (!down) {
if (step == 0) {
if (Key.isDown(40)) {
down = true;
}
}
} else {
if (cheerleader._currentframe == 1) {
if (step == 0) {
fg.sounds.hey.play();
cheerleader.gotoAndPlay("down");
step++;
}
}
if (keyD._alpha > 0) {
keyD._alpha = keyD._alpha - 10;
} else {
keyD._alpha == 0;
}
}
if (!right) {
if (step == 1) {
if (Key.isDown(39)) {
right = true;
}
}
} else {
if (cheerleader._currentframe == 1) {
if (step == 1) {
fg.sounds.hey.play();
cheerleader.gotoAndPlay("right");
step++;
}
}
if (keyR._alpha > 0) {
keyR._alpha = keyR._alpha - 10;
} else {
keyR._alpha == 0;
}
}
if (!left) {
if (step == 2) {
if (Key.isDown(37)) {
left = true;
}
}
} else {
if (cheerleader._currentframe == 1) {
if (step == 2) {
fg.sounds.hey.play();
cheerleader.gotoAndPlay("left");
step++;
}
}
if (keyL._alpha > 0) {
keyL._alpha = keyL._alpha - 10;
} else {
keyL._alpha == 0;
}
}
if (!up) {
if (step == 3) {
if (Key.isDown(38)) {
up = true;
}
}
} else {
if (cheerleader._currentframe == 1) {
if (step == 3) {
fg.sounds.hey.play();
cheerleader.gotoAndPlay("up");
fg.sounds.crowd.play();
step++;
}
}
if (keyU._alpha > 0) {
keyU._alpha = keyU._alpha - 10;
} else {
keyU._alpha == 0;
}
}
} else {
rockOn();
}
};
Frame 24
stop();
setup();
fg.levelName = "CLIMB THE PEGS!";
gravity = 0.5;
acceleration = 1.05;
draggingPegs = false;
onEnterFrame = function () {
game();
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (cliffScene._y > 1600) {
passed();
}
if (pressed) {
if (pressCounter == 1) {
if (cliffScene.hitTest(_xmouse, _ymouse, true)) {
draggingCliff = true;
grabPoint = cliffScene._y - _ymouse;
gravity = 0.5;
}
}
} else {
draggingCliff = false;
}
if (draggingCliff) {
if (cliffScene._y >= 400) {
cliffScene._y = _ymouse + grabPoint;
gravity = 0.5;
}
} else if (cliffScene._y > 400) {
cliffScene._y = cliffScene._y - gravity;
gravity = gravity * acceleration;
}
if (cliffScene._y < 400) {
cliffScene._y = 400;
}
bushes._y = 350 + (cliffScene._y / 4);
clouds._y = 100 + (cliffScene._y / 16);
} else {
rockOn();
}
};
Frame 25
stop();
setup();
fg.levelName = "CLICK TO GOAL!";
parNum = 5;
par = parNum;
speed = 8;
returning = false;
starter._x = tee._x;
starter._y = tee._y;
endX = starter._x;
endY = starter._y;
onEnterFrame = function () {
game();
sign.signHolder.parText = "Par " + par;
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (par > 0) {
if (pressed and clickmap.hitTest(_xmouse, _ymouse, true)) {
if (pressCounter == 1) {
if ((golfball._currentframe == 1) and (!returning)) {
endX = _xmouse;
endY = _ymouse;
starter._x = endX;
starter._y = endY;
if (par > 0) {
par--;
} else {
par = 0;
}
}
}
}
} else if (starter.hitTest(golfball._x, golfball._y, true)) {
fg.sounds.buzzer.play();
returning = true;
endX = tee._x;
endY = tee._y;
starter._x = endX;
starter._y = endY;
par = parNum;
}
golfball._x = golfball._x + ((endX - golfball._x) / speed);
golfball._y = golfball._y + ((endY - golfball._y) / speed);
if (!course.hitTest(golfball._x, golfball._y, true)) {
if (!returning) {
fg.sounds.buzzer.play();
}
returning = true;
endX = tee._x;
endY = tee._y;
starter._x = endX;
starter._y = endY;
par = parNum;
}
i = 0;
while (i < 3) {
if (_global.myRoot["trapdoor" + i].hitmap.hitTest(golfball._x, golfball._y, true)) {
if (!returning) {
fg.sounds.buzzer.play();
}
returning = true;
endX = tee._x;
endY = tee._y;
starter._x = endX;
starter._y = endY;
par = parNum;
}
i++;
}
if (hole.hitTest(golfball._x, golfball._y, true)) {
if ((golfball._currentframe == 1) and (!returning)) {
fg.sounds.sink.play();
endX = hole._x;
endY = hole._y;
golfBall._x = endX;
golfBall._y = endY;
golfball.play();
}
}
if (golfball._currentframe == golfball._totalframes) {
passed();
}
if (starter.hitTest(golfball._x, golfball._y, true)) {
if (returning) {
golfball._x = starter._x;
golfball._y = starter._y;
returning = false;
}
}
} else {
rockOn();
}
};
Frame 26
stop();
setup();
fg.levelName = "KICK-UPS!";
gravity = 0.4;
restitution = 0.7;
friction = 0.9;
rot = 0;
vel = {x:0, y:0};
pos = {x:320, y:260};
old = {x:ball._x, y:ball._y};
radius = ball._width / 2;
bouncing = false;
target = 5;
kickups = target;
onEnterFrame = function () {
game();
kickupsText = kickups + "x";
kickupsText._alpha = 15;
ballShadow._x = ball._x;
ballShadow._xscale = ((0 + ball._y) / 4) + 20;
ballShadow._yscale = ballShadow._xscale;
ballShadow._alpha = (0 + ball._y) / 4;
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (kickups == 0) {
fg.sounds.crowd.play();
passed();
}
if (pressed) {
if (pressCounter == 1) {
if (ball.hitTest(_xmouse, _ymouse, true)) {
kickups--;
fg.sounds.jump.play();
xClick = ball._x - _xmouse;
yClick = ball._y - _ymouse;
rot = xClick / 2;
vel = {x:xClick / 2, y:-10};
}
}
}
vel.y = vel.y + gravity;
rot = rot * 0.98;
pos.x = pos.x + vel.x;
pos.y = pos.y + vel.y;
ball._rotation = ball._rotation + rot;
ball._x = pos.x;
ball._y = pos.y;
if ((pos.y + radius) > 400) {
kickups = target;
pos.y = 400 - radius;
vel.y = vel.y * (-restitution);
vel.x = vel.x * friction;
}
if ((pos.y - radius) < 60) {
pos.y = 60 + radius;
vel.y = vel.y * (-restitution);
vel.x = vel.x * friction;
}
if ((pos.x + radius) > 640) {
pos.x = 640 - radius;
vel.x = vel.x * (-restitution);
rot = rot * -1;
}
if (pos.x < (0 + radius)) {
pos.x = 0 + radius;
vel.x = vel.x * (-restitution);
rot = rot * -1;
}
if ((ball._y + radius) > 400) {
ball._y = 400 - radius;
}
if ((ball._y - radius) < 60) {
ball._y = 60 + radius;
}
if ((ball._x + radius) > 640) {
ball._x = 640 - radius;
}
if (ball._x < (0 + radius)) {
ball._x = 0 + radius;
}
} else {
vel.y = vel.y + gravity;
pos.x = pos.x + vel.x;
pos.y = pos.y + vel.y;
ball._x = pos.x;
ball._y = pos.y;
if ((pos.y + radius) > 400) {
pos.y = 400 - radius;
vel.y = vel.y * (-restitution);
vel.x = vel.x * friction;
}
if ((pos.y - radius) < 0) {
pos.y = 0 + radius;
vel.y = vel.y * (-restitution);
vel.x = vel.x * friction;
}
if ((pos.x + radius) > 640) {
pos.x = 640 - radius;
vel.x = vel.x * (-restitution);
}
if (pos.x < (0 + radius)) {
pos.x = 0 + radius;
vel.x = vel.x * (-restitution);
}
if ((ball._y + radius) > 400) {
ball._y = 400 - radius;
}
if ((ball._y - radius) < 0) {
ball._y = 0 + radius;
}
if ((ball._x + radius) > 640) {
ball._x = 640 - radius;
}
if (ball._x < (0 + radius)) {
ball._x = 0 + radius;
}
rockOn();
}
};
Frame 27
stop();
setup();
fg.levelName = "CHIN-UPS!";
draggingDude = false;
pumped = true;
chins = 15;
onEnterFrame = function () {
game();
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
chinsText = chins + "x";
if (chins == 0) {
passed();
}
if (pressed) {
if (pressCounter == 1) {
if (dude.hitTest(_xmouse, _ymouse, true)) {
if (!draggingDude) {
draggingDude = true;
grabPoint = dude._y - _ymouse;
}
}
}
} else {
draggingDude = false;
}
if (draggingDude) {
dude._y = _ymouse + grabPoint;
}
if (dude._y <= 200) {
dude._y = 200;
}
if ((dude._y >= 200) and (dude._y < 210)) {
if (!pumped) {
fg.sounds.huh.play();
fg.sounds.creak.play();
pumped = true;
chins = chins - 1;
}
}
if (dude._y >= 240) {
dude._y = 240;
}
if ((dude._y <= 240) and (dude._y > 230)) {
if (pumped) {
pumped = false;
}
}
dudeHead._y = -300 + (dude._y * 2);
} else {
rockOn();
}
};
Frame 28
stop();
setup();
fg.levelName = "COLLECT ALL!";
clicked = false;
stars = 16;
collected = new Array();
i = 0;
while (i < stars) {
collected[i] = false;
i++;
}
xspeed = 0;
yspeed = 0;
delay = 10;
playerX = 320;
playerY = 270;
playerDir = -90;
player._x = playerX;
player._y = playerY;
player._rotation = playerDir;
onEnterFrame = function () {
game();
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (!track.hitTest(player._x, player._y, true)) {
clicked = false;
xspeed = 0;
yspeed = 0;
delay = 10;
player._x = playerX;
player._y = playerY;
player._rotation = playerDir;
arrowAnim.gotoAndStop("on");
}
arrowAnim._x = player._x;
arrowAnim._y = player._y - 30;
if (clicked) {
dist_x = _xmouse - player._x;
dist_y = _ymouse - player._y;
distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
angle = Math.atan2(dist_y, dist_x);
speed = distance / delay;
xspeed = speed * Math.cos(angle);
yspeed = speed * Math.sin(angle);
player._rotation = (angle * 180) / Math.PI;
} else if (pressed and (pressCounter == 1)) {
if (player.hitTest(_xmouse, _ymouse, true) or arrowAnim.hitTest(_xmouse, _ymouse, true)) {
fg.sounds.engine.play();
pressed = false;
clicked = true;
arrowAnim.gotoAndStop("off");
}
}
player._x = player._x + xspeed;
player._y = player._y + yspeed;
i = 0;
while (i < stars) {
if (player.hitTest(_global.myRoot["star" + i])) {
if (_global.myRoot["star" + i]._currentframe == 1) {
fg.sounds.pickup.play();
_global.myRoot["star" + i].play();
collected[i] = true;
}
}
i++;
}
i = 0;
while (i < stars) {
if (collected[i]) {
totalCollected++;
} else {
totalCollected = 0;
break;
}
i++;
}
trace(totalCollected);
if (totalCollected == stars) {
passed();
}
} else {
rockOn();
}
};
Frame 29
stop();
setup();
fg.levelName = "WALK THE ROPE!";
walking = false;
onEnterFrame = function () {
game();
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (!walking) {
if (pressed and (pressCounter == 1)) {
if (tightrope.startpoint.hitTest(_xmouse, _ymouse)) {
fg.sounds.rope.play();
walking = true;
tightrope.startpoint.play();
tightrope.checkpointA.play();
}
}
} else {
if (!tightrope.hitTest(_xmouse, _ymouse, true)) {
walking = false;
tightrope.startpoint.gotoAndStop(1);
tightrope.checkpointA.gotoAndStop(1);
tightrope.checkpointB.gotoAndStop(1);
tightrope.checkpointC.gotoAndStop(1);
}
if (pressed and (pressCounter == 1)) {
if (tightrope.checkpointA.hitTest(_xmouse, _ymouse)) {
tightrope.checkpointA.play();
tightrope.checkpointB.play();
}
if (tightrope.checkpointB.hitTest(_xmouse, _ymouse)) {
tightrope.checkpointB.play();
tightrope.checkpointC.play();
}
if (tightrope.checkpointC.hitTest(_xmouse, _ymouse)) {
tightrope.checkpointC.play();
fg.sounds.crowd.play();
passed();
}
}
}
} else {
rockOn();
}
};
Frame 30
stop();
setup();
fg.levelName = "GUIDE 2 CHECKPOINTS!";
clicked = false;
started = false;
target = 3;
xspeed = 0;
yspeed = 0;
delay = 10;
playerX = 320;
playerY = 160;
playerDir = 90;
player._x = playerX;
player._y = playerY;
player._rotation = playerDir;
player.gotoAndStop("start");
ball.gotoAndStop("yellow");
ball._x = ballX;
ball._y = ballY;
xspeedBall = 0;
yspeedBall = 0;
onEnterFrame = function () {
game();
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
goalie._y = ball._y + yspeedBall;
arrowAnim._x = player._x;
arrowAnim._y = player._y - 30;
if (clicked) {
dist_x = _xmouse - player._x;
dist_y = _ymouse - player._y;
distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
angle = Math.atan2(dist_y, dist_x);
speed = distance / delay;
xspeed = speed * Math.cos(angle);
yspeed = speed * Math.sin(angle);
player._rotation = (angle * 180) / Math.PI;
} else {
xspeed = xspeed * 0.95;
yspeed = yspeed * 0.95;
if (pressed and (pressCounter == 1)) {
if (player.hitTest(_xmouse, _ymouse, true) or arrowAnim.hitTest(_xmouse, _ymouse, true)) {
pressed = false;
clicked = true;
arrowAnim.gotoAndStop("off");
}
}
}
player._x = player._x + xspeed;
player._y = player._y + yspeed;
if (player.hitTest(ball._x + xspeed, ball._y + yspeed, true)) {
xspeedBall = xspeed * 2;
yspeedBall = yspeed * 2;
}
ball._x = ball._x + xspeedBall;
ball._y = ball._y + yspeedBall;
xspeedBall = xspeedBall * 0.9;
yspeedBall = yspeedBall * 0.9;
if (!hitmap.hitTest(ball._x, ball._y, true)) {
ball._x = 320;
ball._y = 240;
xspeed = 0;
yspeed = 0;
xspeedBall = 0;
yspeedBall = 0;
}
if (starYellow.hitTest(ball._x, ball._y)) {
if (ball._currentframe == 1) {
fg.sounds.pickup.play();
starYellow.play();
if (target == 1) {
passed();
} else {
ball.play();
}
}
}
if (starBlue.hitTest(ball._x, ball._y)) {
if (ball._currentframe == 2) {
fg.sounds.pickup.play();
starBlue.play();
if (target == 2) {
passed();
} else {
ball.play();
}
}
}
if (starRed.hitTest(ball._x, ball._y)) {
if (ball._currentframe == 3) {
fg.sounds.pickup.play();
starRed.play();
passed();
}
}
} else {
rockOn();
}
};
Frame 31
stop();
setup();
fg.levelName = "SHOOT IN ORDER!";
speed = new Array();
speed[0] = {x:5, y:5};
speed[1] = {x:-5, y:5};
speed[2] = {x:5, y:-5};
speed[3] = {x:-5, y:-5};
speed[4] = {x:5, y:5};
i = 0;
while (i < 5) {
_global.myRoot["ball" + i].ballNum = i + 1;
i++;
}
balls = 0;
target = 5;
gravity = 0.2;
velocity = 0;
noneClicked = true;
onEnterFrame = function () {
game();
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (balls == target) {
passed();
}
i = 0;
while (i < 10) {
_global.myRoot["ball" + i]._x = _global.myRoot["ball" + i]._x + speed[i].x;
_global.myRoot["ball" + i]._y = _global.myRoot["ball" + i]._y + speed[i].y;
if (_global.myRoot["ball" + i]._x > 600) {
_global.myRoot["ball" + i]._x = 600;
speed[i].x = speed[i].x * -1;
}
if (_global.myRoot["ball" + i]._y > 360) {
_global.myRoot["ball" + i]._y = 360;
speed[i].y = speed[i].y * -1;
}
if (_global.myRoot["ball" + i]._x < 40) {
_global.myRoot["ball" + i]._x = 40;
speed[i].x = speed[i].x * -1;
}
if (_global.myRoot["ball" + i]._y < 120) {
_global.myRoot["ball" + i]._y = 120;
speed[i].y = speed[i].y * -1;
}
i++;
}
if (pressed and (pressCounter == 1)) {
i = 0;
while (i < 10) {
if (_global.myRoot["ball" + i].hitTest(_xmouse, _ymouse)) {
if (noneClicked and (i == 0)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 1) and (i == 1)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 2) and (i == 2)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 3) and (i == 3)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 4) and (i == 4)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
if ((balls == 5) and (i == 5)) {
balls++;
_global.myRoot["ball" + i].play();
explodeX = _global.myRoot["ball" + i]._x;
explodeY = _global.myRoot["ball" + i]._y;
explode();
}
}
i++;
}
}
} else {
rockOn();
}
};
Frame 32
stop();
setup();
fg.levelName = "CLICK FAST 2 DRAG!";
vel = 0;
acc = 0.8;
onEnterFrame = function () {
game();
enemyCar.play();
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (car.hitTest(finishLine)) {
passed();
}
if (pressed and (pressCounter == 1)) {
vel = vel + acc;
}
vel = vel * 0.95;
car._x = car._x + vel;
} else {
enemyCar.stop();
rockOn();
}
};
Frame 33
stop();
setup();
fg.levelName = "ARROWS TO CHEER!";
reset = function () {
fg.sounds.buzzer.play();
left = false;
right = false;
down = false;
up = false;
space = false;
step = 0;
};
left = false;
right = false;
down = false;
up = false;
space = false;
step = 0;
onEnterFrame = function () {
game();
if (step == 5) {
fg.timer.stop();
if (cheerleader._currentframe == 1) {
passed();
}
}
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (!up) {
if (Key.isDown(38)) {
up = true;
}
} else {
if (cheerleader._currentframe == 1) {
if (step == 0) {
fg.sounds.hey.play();
cheerleader.gotoAndPlay("up");
step++;
}
}
if (keyU._alpha > 0) {
keyU._alpha = keyU._alpha - 10;
} else {
keyU._alpha == 0;
}
}
if (!down) {
if (step == 1) {
if (Key.isDown(40)) {
down = true;
}
}
} else {
if (cheerleader._currentframe == 1) {
if (step == 1) {
fg.sounds.hey.play();
cheerleader.gotoAndPlay("down");
step++;
}
}
if (keyD._alpha > 0) {
keyD._alpha = keyD._alpha - 10;
} else {
keyD._alpha == 0;
}
}
if (!left) {
if (step == 2) {
if (Key.isDown(37)) {
left = true;
}
}
} else {
if (cheerleader._currentframe == 1) {
if (step == 2) {
fg.sounds.hey.play();
cheerleader.gotoAndPlay("left");
step++;
}
}
if (keyL._alpha > 0) {
keyL._alpha = keyL._alpha - 10;
} else {
keyL._alpha == 0;
}
}
if (!right) {
if (step == 3) {
if (Key.isDown(39)) {
right = true;
}
}
} else {
if (cheerleader._currentframe == 1) {
if (step == 3) {
fg.sounds.hey.play();
cheerleader.gotoAndPlay("right");
step++;
}
}
if (keyR._alpha > 0) {
keyR._alpha = keyR._alpha - 10;
} else {
keyR._alpha == 0;
}
}
if (!space) {
if (step == 4) {
if (Key.isDown(32)) {
space = true;
}
}
} else {
if (cheerleader._currentframe == 1) {
if (step == 4) {
fg.sounds.hey.play();
cheerleader.gotoAndPlay("space");
fg.sounds.crowd.play();
step++;
}
}
if (keyS._alpha > 0) {
keyS._alpha = keyS._alpha - 10;
} else {
keyS._alpha == 0;
}
}
} else {
rockOn();
}
};
Frame 34
stop();
setup();
fg.levelName = "CLIMB THE PEGS!";
gravity = 0.5;
acceleration = 1.05;
draggingPegs = false;
onEnterFrame = function () {
game();
if ((((!levelPassed) and (!levelFailed)) and (!gamePaused)) and (!gameOver)) {
if (cliffScene._y > 2000) {
passed();
}
if (pressed) {
if (pressCounter == 1) {
if (cliffScene.hitTest(_xmouse, _ymouse, true)) {
draggingCliff = true;
grabPoint = cliffScene._y - _ymouse;
gravity = 0.5;
}
}
} else {
draggingCliff = false;
}
if (draggingCliff) {
if (cliffScene._y >= 400) {
cliffScene._y = _ymouse + grabPoint;
gravity = 0.5;
}
} else if (cliffScene._y > 400) {
cliffScene._y = cliffScene._y - gravity;
gravity = gravity * acceleration;
}
if (cliffScene._y < 400) {
cliffScene._y = 400;
}
bushes._y = 350 + (cliffScene._y / 4);
clouds._y = 100 + (cliffScene._y / 16);
} else {
rockOn();
}
};
Frame 35
stop();
goes++;
playerTime = time - (lives * 10);
scoreText = playerTime + " seconds";
if ((playerTime < 100) and (lives == 7)) {
sportsGod = true;
gold = true;
silver = true;
bronze = true;
survivor = true;
achievements.gotoAndStop("sportsgod");
} else if ((playerTime < 100) and (lives < 7)) {
gold = true;
silver = true;
bronze = true;
survivor = true;
achievements.gotoAndStop("gold");
} else if (playerTime < 200) {
silver = true;
bronze = true;
survivor = true;
achievements.gotoAndStop("silver");
} else if (playerTime < 300) {
bronze = true;
survivor = true;
achievements.gotoAndStop("bronze");
} else {
survivor = true;
achievements.gotoAndStop("survivor");
}
menu = false;
buttonMenu.onPress = function () {
menu = true;
submit = false;
fg.play();
};
buttonSubmit.onPress = function () {
menu = false;
submit = true;
fg.play();
};
buttonMousebreaker.onRelease = function () {
getURL ("http://www.mousebreaker.com/", "_blank");
};
fg.speaker.onRelease = function () {
if (sound) {
sound = false;
_global.myRoot.globalSound.setVolume(0);
} else {
sound = true;
_global.myRoot.globalSound.setVolume(100);
}
};
fg.cog.onRelease = function () {
if (_quality == "HIGH") {
prev = "HIGH";
_quality = "MEDIUM";
} else if ((_quality == "MEDIUM") && (prev == "HIGH")) {
_quality = "LOW";
} else if ((_quality == "MEDIUM") && (prev == "LOW")) {
_quality = "HIGH";
} else if (_quality == "LOW") {
_quality = "MEDIUM";
prev = "LOW";
}
};
onEnterFrame = function () {
if (sound) {
fg.speaker.gotoAndStop("on");
} else {
fg.speaker.gotoAndStop("off");
}
if (fg._currentframe == fg._totalframes) {
if (menu) {
gotoAndPlay ("menu");
}
if (submit) {
gotoAndPlay ("highscores");
}
}
};
Frame 36
stop();
goes++;
playerTime = time + (minigameCount * 30);
scoreText = playerTime + " seconds";
menu = false;
buttonMenu.onPress = function () {
menu = true;
submit = false;
fg.play();
};
buttonSubmit.onPress = function () {
menu = false;
submit = true;
fg.play();
};
buttonMousebreaker.onRelease = function () {
getURL ("http://www.mousebreaker.com/", "_blank");
};
fg.speaker.onRelease = function () {
if (sound) {
sound = false;
_global.myRoot.globalSound.setVolume(0);
} else {
sound = true;
_global.myRoot.globalSound.setVolume(100);
}
};
fg.cog.onRelease = function () {
if (_quality == "HIGH") {
prev = "HIGH";
_quality = "MEDIUM";
} else if ((_quality == "MEDIUM") && (prev == "HIGH")) {
_quality = "LOW";
} else if ((_quality == "MEDIUM") && (prev == "LOW")) {
_quality = "HIGH";
} else if (_quality == "LOW") {
_quality = "MEDIUM";
prev = "LOW";
}
};
onEnterFrame = function () {
if (sound) {
fg.speaker.gotoAndStop("on");
} else {
fg.speaker.gotoAndStop("off");
}
if (fg._currentframe == fg._totalframes) {
if (menu) {
gotoAndPlay ("menu");
}
if (submit) {
gotoAndPlay ("highscores");
}
}
};
Frame 37
stop();
menu = false;
buttonMenu.onPress = function () {
menu = true;
fg.play();
};
buttonLink.onRelease = function () {
getURL ("http://www.ninjadoodle.com/", "_blank");
};
fg.speaker.onRelease = function () {
if (sound) {
sound = false;
_global.myRoot.globalSound.setVolume(0);
} else {
sound = true;
_global.myRoot.globalSound.setVolume(100);
}
};
fg.cog.onRelease = function () {
if (_quality == "HIGH") {
prev = "HIGH";
_quality = "MEDIUM";
} else if ((_quality == "MEDIUM") && (prev == "HIGH")) {
_quality = "LOW";
} else if ((_quality == "MEDIUM") && (prev == "LOW")) {
_quality = "HIGH";
} else if (_quality == "LOW") {
_quality = "MEDIUM";
prev = "LOW";
}
};
onEnterFrame = function () {
if (sound) {
fg.speaker.gotoAndStop("on");
} else {
fg.speaker.gotoAndStop("off");
}
if (fg._currentframe == fg._totalframes) {
if (menu) {
gotoAndPlay ("menu");
}
}
};
Frame 38
stop();
menu = false;
buttonMenu.onPress = function () {
menu = true;
fg.play();
};
buttonLink.onRelease = function () {
getURL ("http://www.ninjadoodle.com/", "_blank");
};
fg.speaker.onRelease = function () {
if (sound) {
sound = false;
_global.myRoot.globalSound.setVolume(0);
} else {
sound = true;
_global.myRoot.globalSound.setVolume(100);
}
};
fg.cog.onRelease = function () {
if (_quality == "HIGH") {
prev = "HIGH";
_quality = "MEDIUM";
} else if ((_quality == "MEDIUM") && (prev == "HIGH")) {
_quality = "LOW";
} else if ((_quality == "MEDIUM") && (prev == "LOW")) {
_quality = "HIGH";
} else if (_quality == "LOW") {
_quality = "MEDIUM";
prev = "LOW";
}
};
onEnterFrame = function () {
if (sound) {
fg.speaker.gotoAndStop("on");
} else {
fg.speaker.gotoAndStop("off");
}
if (fg._currentframe == fg._totalframes) {
if (menu) {
gotoAndPlay ("menu");
}
}
};
Frame 39
stop();
if (sportsGod == true) {
sportsGodTick.gotoAndStop("on");
} else {
sportsGodTick.gotoAndStop("off");
}
if (gold == true) {
goldTick.gotoAndStop("on");
} else {
goldTick.gotoAndStop("off");
}
if (silver == true) {
silverTick.gotoAndStop("on");
} else {
silverTick.gotoAndStop("off");
}
if (bronze == true) {
bronzeTick.gotoAndStop("on");
} else {
bronzeTick.gotoAndStop("off");
}
if (survivor == true) {
survivorTick.gotoAndStop("on");
} else {
survivorTick.gotoAndStop("off");
}
menu = false;
buttonMenu.onPress = function () {
menu = true;
fg.play();
};
buttonLink.onRelease = function () {
getURL ("http://www.ninjadoodle.com/", "_blank");
};
fg.speaker.onRelease = function () {
if (sound) {
sound = false;
_global.myRoot.globalSound.setVolume(0);
} else {
sound = true;
_global.myRoot.globalSound.setVolume(100);
}
};
fg.cog.onRelease = function () {
if (_quality == "HIGH") {
prev = "HIGH";
_quality = "MEDIUM";
} else if ((_quality == "MEDIUM") && (prev == "HIGH")) {
_quality = "LOW";
} else if ((_quality == "MEDIUM") && (prev == "LOW")) {
_quality = "HIGH";
} else if (_quality == "LOW") {
_quality = "MEDIUM";
prev = "LOW";
}
};
onEnterFrame = function () {
if (sound) {
fg.speaker.gotoAndStop("on");
} else {
fg.speaker.gotoAndStop("off");
}
if (fg._currentframe == fg._totalframes) {
if (menu) {
gotoAndPlay ("menu");
}
}
};
Symbol 5 MovieClip [explosion] Frame 51
stop();
this.removeMovieClip();
Symbol 17 MovieClip Frame 7
gotoAndPlay (1);
Symbol 20 MovieClip Frame 32
gotoAndPlay (1);
Symbol 26 MovieClip Frame 1
Symbol 26 MovieClip Frame 19
stop();
Symbol 40 MovieClip Frame 36
gotoAndPlay (1);
Symbol 45 MovieClip Frame 208
_global.myRoot.play();
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 2
play();
Symbol 77 MovieClip Frame 33
gotoAndStop (1);
Symbol 77 MovieClip Frame 40
play();
Symbol 77 MovieClip Frame 57
gotoAndStop (1);
Symbol 77 MovieClip Frame 71
play();
Symbol 77 MovieClip Frame 88
gotoAndStop (1);
Symbol 77 MovieClip Frame 102
play();
Symbol 77 MovieClip Frame 130
gotoAndStop (1);
Symbol 77 MovieClip Frame 140
play();
Symbol 77 MovieClip Frame 174
gotoAndStop (1);
Symbol 96 MovieClip Frame 1
stop();
Instance of Symbol 94 MovieClip in Symbol 96 MovieClip Frame 1
on (press) {
}
Symbol 96 MovieClip Frame 2
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 2
play();
Symbol 103 MovieClip Frame 19
_global.myRoot.score = _global.myRoot.score + 10;
_global.myRoot.starsCollected++;
Symbol 103 MovieClip Frame 20
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 2
play();
Symbol 107 MovieClip Frame 19
_global.myRoot.score = _global.myRoot.score + 10;
_global.myRoot.starsCollected++;
Symbol 107 MovieClip Frame 20
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 2
play();
Symbol 111 MovieClip Frame 19
_global.myRoot.score = _global.myRoot.score + 10;
_global.myRoot.starsCollected++;
Symbol 111 MovieClip Frame 20
stop();
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 2
stop();
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 2
stop();
Symbol 144 MovieClip Frame 3
stop();
Symbol 150 Button
on (press) {
_global.myRoot.gamePaused = false;
_global.myRoot.fg.pauseGame.play();
_global.myRoot.fg.pausedMenu.play();
}
Symbol 153 Button
on (press) {
_global.myRoot.quit = true;
}
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 2
play();
Symbol 155 MovieClip Frame 10
stop();
Symbol 155 MovieClip Frame 11
play();
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 2
play();
Symbol 159 MovieClip Frame 50
stop();
Symbol 162 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 2
play();
Symbol 162 MovieClip Frame 50
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 2
play();
Symbol 166 MovieClip Frame 11
gotoAndStop (1);
Symbol 169 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 2
play();
Symbol 169 MovieClip Frame 11
gotoAndStop (1);
Symbol 172 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 2
play();
Symbol 172 MovieClip Frame 11
gotoAndStop (1);
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 2
play();
Symbol 175 MovieClip Frame 11
gotoAndStop (1);
Symbol 178 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 2
play();
Symbol 178 MovieClip Frame 11
gotoAndStop (1);
Symbol 181 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 2
play();
Symbol 181 MovieClip Frame 11
gotoAndStop (1);
Symbol 184 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 2
play();
Symbol 187 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 2
play();
Symbol 187 MovieClip Frame 11
gotoAndStop (1);
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 2
play();
Symbol 190 MovieClip Frame 11
gotoAndStop (1);
Symbol 193 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 2
play();
Symbol 196 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 2
play();
Symbol 199 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 2
play();
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 2
play();
Symbol 205 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 2
play();
Symbol 208 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 2
play();
Symbol 211 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 2
play();
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 2
play();
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 2
play();
Symbol 220 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 2
play();
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 2
play();
Symbol 226 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 2
play();
Symbol 229 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 2
play();
Symbol 232 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 2
stop();
Symbol 235 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 2
play();
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 2
play();
Symbol 241 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 2
play();
Symbol 241 MovieClip Frame 11
gotoAndStop (1);
Symbol 244 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 2
play();
Symbol 246 MovieClip Frame 1
play();
Symbol 246 MovieClip Frame 11
stop();
Symbol 246 MovieClip Frame 12
play();
Symbol 272 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 2
play();
Symbol 272 MovieClip Frame 6
stop();
Symbol 280 MovieClip Frame 1
stop();
Instance of Symbol 278 MovieClip in Symbol 280 MovieClip Frame 1
on (press) {
}
Symbol 280 MovieClip Frame 2
stop();
Symbol 287 MovieClip Frame 1
play();
Symbol 287 MovieClip Frame 360
stop();
Symbol 289 MovieClip Frame 1
play();
Symbol 289 MovieClip Frame 11
stop();
Symbol 289 MovieClip Frame 12
play();
Symbol 333 MovieClip Frame 1
play();
Symbol 333 MovieClip Frame 19
gotoAndPlay (1);
Symbol 333 MovieClip Frame 20
stop();
Symbol 346 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 2
stop();
Symbol 347 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 2
stop();
Symbol 357 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 2
stop();
Symbol 357 MovieClip Frame 3
stop();
Symbol 365 MovieClip Frame 1
stop();
Instance of Symbol 94 MovieClip in Symbol 365 MovieClip Frame 1
on (press) {
}
Symbol 365 MovieClip Frame 2
stop();
Symbol 377 MovieClip Frame 1
play();
Symbol 377 MovieClip Frame 360
stop();
Symbol 408 MovieClip Frame 1
play();
Symbol 408 MovieClip Frame 300
stop();
Symbol 411 MovieClip Frame 1
play();
Symbol 411 MovieClip Frame 11
stop();
Symbol 411 MovieClip Frame 12
play();
Symbol 422 MovieClip Frame 1
play();
Symbol 422 MovieClip Frame 300
stop();
Symbol 429 MovieClip Frame 1
play();
Symbol 429 MovieClip Frame 240
stop();
Symbol 432 MovieClip Frame 1
play();
Symbol 432 MovieClip Frame 11
stop();
Symbol 432 MovieClip Frame 12
play();
Symbol 443 MovieClip Frame 1
play();
Symbol 443 MovieClip Frame 240
stop();
Symbol 471 MovieClip Frame 1
stop();
Symbol 471 MovieClip Frame 2
stop();
Symbol 471 MovieClip Frame 3
stop();
Symbol 471 MovieClip Frame 4
stop();
Symbol 471 MovieClip Frame 5
stop();
Symbol 471 MovieClip Frame 6
stop();
Symbol 495 MovieClip Frame 1
stop();
Symbol 495 MovieClip Frame 2
stop();