Frame 1
function initLoader() {
var _local2 = ((result_lv.b == undefined) ? "false" : (result_lv.b));
trace(("b ::" + _local2) + "::");
trace(("result_lv.h ::" + result_lv.h) + "::");
if (result_lv.h == "true") {
isHome = true;
}
if (_local2 == "true") {
bannedSign._alpha = 100;
} else {
this.onEnterFrame = function () {
createNewParticle();
mcLoadLogoBg.bar._xscale = 100 * (1 - (getBytesLoaded() / getBytesTotal()));
emitter._x = (mcLoadLogoBg._x + (96 - mcLoadLogoBg.bar._width)) + 15;
emitter._y = mcLoadLogoBg._y + 44;
if (getBytesLoaded() == getBytesTotal()) {
kill();
this.onEnterFrame = undefined;
if (!isHome) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
}
};
bannedSign.onRelease = function () {
if (!isHome) {
openKingPage(LINK_TYPE_LOADER_PROGRESS);
}
};
}
}
function openKingPage(type, page) {
trace(type);
var _local4 = _root._url;
var _local3 = (((((("game=" + GAME_NAME) + "&from=") + _local4) + "&type=") + type) + "&session=") + sessionID;
if (page != undefined) {
_local3 = _local3 + ("&redirect=" + page);
}
var _local2 = "_blank";
if (isHome) {
_local2 = "_top";
}
getURL ((bounceURL + "?") + _local3, _local2);
}
function openOtherGamesLink() {
openKingPage(LINK_TYPE_OTHER_GAMES);
}
function openHighscoresLink() {
openKingPage(LINK_TYPE_HIGHSCORES, ("game/" + GAME_NAME) + "/highscores");
}
function openSignLink() {
openKingPage(LINK_TYPE_SIGN);
}
function openAddToWebsiteLink() {
openKingPage(LINK_TYPE_ADD_GAME, "website_content.jsp");
}
function openLoaderMovieLink() {
openKingPage(LINK_TYPE_LOADER_MOVIE);
}
function openRightClickLink() {
openKingPage(LINK_TYPE_RIGHT_CLICK);
}
function openOfflineProtectionLink() {
openKingPage(LINK_TYPE_PROTECT);
}
function addScore(points) {
checkScore();
var _local1 = (iscore - 123) / 2;
_local1 = _local1 + points;
iscore = (_local1 * 2) + 123;
var _local2 = new md5();
checkStr = _local2.hash((((iscore + ":") + GAME_NAME) + ":") + SK);
return(_local1);
}
function resetScore() {
iscore = 123;
checkStr = null;
}
function submitInternalScore() {
checkScore();
var _local1 = (iscore - 123) / 2;
submitScore(_local1);
}
function checkScore() {
if (checkStr != null) {
var _local1 = new md5();
if (checkStr != _local1.hash((((iscore + ":") + GAME_NAME) + ":") + SK)) {
SSK = "ng41ui54hy35tdsnd6f54rews";
}
}
}
function submitScore(score) {
var _local2 = new md5();
var _local1 = _local2.hash((((score + ":") + GAME_NAME) + ":") + SSK);
try {
if (isHome) {
flash.external.ExternalInterface.call("submitScore", score, _local1);
} else {
openKingPage(LINK_TYPE_HIGHSCORES, (((("game/" + GAME_NAME) + "/submit/") + score) + ":") + _local1);
}
} catch(e:Error) {
trace(e);
}
}
function submitAchievement(achievement) {
var _local1 = new md5();
var _local2 = _local1.hash((((achievement + ":") + GAME_NAME) + ":") + SAK);
try {
if (isHome) {
flash.external.ExternalInterface.call("submitAchievement", achievement, _local2);
}
} catch(e:Error) {
trace(e);
}
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
function createNewParticle() {
var _local4 = emitter.attachMovie("libGlow", "newLibGlow", emitter.getNextHighestDepth());
var _local3 = new Particle(_local4, -10, -7, _root._width, _root._height);
_local3.setVel(randRange(minXVel, maxXVel), randRange(minYVel, maxYVel));
_local3.setSize(randRange(minSize, maxSize));
particles.push(_local3);
while (particles.length > numParticles) {
_local3 = particles.shift();
_local3.destroy();
}
var _local2 = 0;
while (_local2 < particles.length) {
particles[_local2].update();
_local2++;
}
}
function kill() {
var _local1 = 0;
while (_local1 < particles.length) {
particles[_local1].destroy();
_local1++;
}
}
function randRange(min, max) {
var _local1 = (Math.random() * (max - min)) + min;
return(_local1);
}
stop();
Stage.showMenu = false;
var GAME_NAME = "ball-reflexion";
var MOCHI_SIGNATURE = "70bbbe01";
var loadCountURL = "http://www.mygame.com/king/loadcount.jsp";
var bounceURL = "http://www.mygame.com/king/bounce.jsp";
var loadHomeParametersURL = "http://www.king.com/servlet/FreeGameServlet?action=load";
var LINK_TYPE_LOADER_MOVIE = "loader_movie";
var LINK_TYPE_LOADER_PROGRESS = "loader_progress";
var LINK_TYPE_PROTECT = "protect";
var LINK_TYPE_OTHER_GAMES = "other_games";
var LINK_TYPE_HIGHSCORES = "highscores";
var LINK_TYPE_SIGN = "sign";
var LINK_TYPE_ADD_GAME = "add_game";
var LINK_TYPE_RIGHT_CLICK = "rightclick";
var LINK_TYPE_RIGHT_CLICK = "rightclick";
var SSK = "ng43ui54hy35tdsnd6f54rews";
var SAK = "ggfd7sday923mdsfd8csfds34";
var SK = "vf78hxcsjak77cxzhjkwad87s";
var iscore = 123;
var checkStr = null;
var USER_TYPE_UNREGISTERED = 0;
var USER_TYPE_REGISTERED = 1;
var USER_TYPE_GOLD = 2;
var USER_TYPE_SUBSCRIPTION = 3;
var SessionID = "";
var gameWidth = Stage.width;
var gameHeight = Stage.height;
var isHome = false;
bannedSign._alpha = 0;
bannedSign._x = (bannedSign._y = 0);
bannedSign.bg._width = gameWidth;
bannedSign.bg._height = gameHeight;
mcLoadLogoBg._x = (gameWidth / 2) - (mcLoadLogoBg._width / 2);
mcLoadLogoBg._y = (gameHeight / 2) - (mcLoadLogoBg._height / 2);
var result_lv = new LoadVars();
result_lv.onLoad = function (success) {
_root.initLoader();
};
var my_lv = new LoadVars();
my_lv.game = GAME_NAME;
my_lv.from = _root._url;
var so = SharedObject.getLocal("session");
if (so.data.sessionID == null) {
var rnd1 = Math.floor(Math.random() * 4294967295);
var rnd2 = Math.floor(Math.random() * 4294967295);
so.data.sessionID = rnd1.toString(16) + rnd2.toString(16);
so.flush();
}
sessionID = so.data.sessionID;
my_lv.session = sessionID;
my_lv.sendAndLoad(loadCountURL, result_lv, "GET");
if (MOCHI_SIGNATURE != "") {
__com_mochibot__(MOCHI_SIGNATURE, this, 10301, true);
}
var numParticles = 20;
var minXVel = -1;
var maxXVel = 1;
var minYVel = -1;
var maxYVel = 1;
var minSize = 12;
var maxSize = 29;
var minAlpha = 10;
var maxAlpha = 20;
var particles = new Array();
var emitter = _root.createEmptyMovieClip("p_holder", _root.getNextHighestDepth());
Frame 2
function fireFire() {
new mx.transitions.Tween(mcKingLoader.fireLogoHolder, "_x", mx.transitions.easing.Regular.easeOut, mcKingLoader.fireLogoHolder._x, ((gameWidth / 2) - (mcKingLoader.dragonHolder._width / 2)) - 51, 1, true);
mcKingLoader.fireLogoHolder.play();
}
function showPlayBtn() {
mcKingLoader.mcPlay._x = (gameWidth / 2) - (mcKingLoader.mcPlay._width / 2);
mcKingLoader.mcPlay._y = mcKingLoader.fireLogoHolder._y + 210;
new mx.transitions.Tween(mcKingLoader.mcPlay, "_alpha", mx.transitions.easing.None.easeNone, 0, 100, 0.5, true);
mcKingLoader.mcPlay.onPress = btnOnPress;
mcKingLoader.mcPlay.onRollOver = btnOnOver;
mcKingLoader.mcPlay.onRollOut = (mcKingLoader.mcPlay.onDragOut = btnOnOut);
mcKingLoader.mcPlay.onRelease = mx.utils.Delegate.create(this, launchGame);
Delay.oneShot(this, showGlimmer, 1000);
}
function showGlimmer() {
bell.start();
mcKingLoader.mcGlim._x = mcKingLoader.fireLogoHolder_.x - mcKingLoader.mcGlim._width;
mcKingLoader.mcGlim._y = mcKingLoader.fireLogoHolder._y + 112;
var _local2 = mcKingLoader.fireLogoHolder._x - mcKingLoader.mcGlim._width;
var _local3 = (mcKingLoader.fireLogoHolder._x + mcKingLoader.fireLogoHolder._width) - 80;
var _local1 = new mx.transitions.Tween(mcKingLoader.mcGlim, "_x", mx.transitions.easing.None.easeNone, _local2, _local3, 0.5, true);
_local1.onMotionFinished = glimmerDone;
}
function glimmerDone() {
mcKingLoader.mcGlim._visible = false;
}
function btnOnOver() {
var _local2 = this;
_local2.gotoAndStop("over");
}
function btnOnOut() {
var _local2 = this;
_local2.gotoAndStop("idle");
}
function btnOnPress() {
var _local2 = this;
_local2.gotoAndStop("down");
}
function launchGame() {
gotoAndStop (3);
}
stop();
mcKingLoader.fireLogoHolder.stop();
mcKingLoader.dragonHolder.stop();
mcKingLoader._x = (mcKingLoader._y = 0);
mcKingLoader.bg._width = gameWidth;
mcKingLoader.bg._height = gameHeight;
mcKingLoader.bg.onRelease = function () {
if (!isHome) {
openKingPage(LINK_TYPE_LOADER_MOVIE);
}
};
mcKingLoader.fireLogoHolder._x = (gameWidth - mcKingLoader.fireLogoHolder._width) - 90;
mcKingLoader.fireLogoHolder._y = ((gameHeight / 2) - (mcKingLoader.fireLogoHolder._height / 2)) - 60;
mcKingLoader.dragonHolder._x = gameWidth - mcKingLoader.dragonHolder._width;
mcKingLoader.dragonHolder._y = (gameHeight / 2) - (mcKingLoader.dragonHolder._height / 2);
mcKingLoader.mcPlay._alpha = 0;
mcKingLoader.mcPlay.useHandCursor = true;
var bell = new Sound();
bell.attachSound("sfxBell");
mcKingLoader.initAnimDriver(30, false);
trace("StartAnim");
mcKingLoader.dragonHolder.play();
Frame 3
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);
}
}
function scoreReset() {
greenNum = 0;
magentaNum = 0;
yellowNum = 0;
orangeNum = 0;
redNum = 0;
blackNum = 0;
missNum = 0;
revolutions = 0;
_root.misses.gotoAndStop(1);
clickToStart.prevFrame();
startButton.gotoAndStop(1);
i = 1;
while (i <= 20) {
_root["marker" + i].removeMovieClip();
i++;
}
}
function markerReset() {
i = 1;
while (i <= 40) {
_root["marker" + i].removeMovieClip();
i++;
}
}
stop();
floors = 6;
walls = 7;
ball._x = 515;
ball._y = 230;
if (_root.gameVolume == undefined) {
gameVolume = 100;
}
if (musicMute == undefined) {
musicMute = false;
}
if (soundMute == undefined) {
soundMute = false;
}
_root.pauseScreen.getNextHighestDepth();
_root.pauseScreen.removeMovieClip();
_root.levelTransition.getNextHighestDepth();
_root.levelTransition.removeMovieClip();
trainingMode = false;
paused = false;
Instance of Symbol 97 MovieClip "background" in Frame 3
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 60 MovieClip in Frame 3
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -26;
_root.ball.xMove = true;
_root.ball.xSpeed = -8;
this.play();
active = false;
_root.ball.revolutions++;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -7;
_root.ball.xMove = true;
_root.ball.xSpeed = 12;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 69 MovieClip "ball1" in Frame 3
onClipEvent (load) {
function reset() {
ySpeed = 0;
xSpeed = 0;
yMove = true;
xMove = false;
hitFloorNum = 0;
hitFloor = false;
clickNum = 1;
ballFreeze = true;
this._visible = true;
revolutions = -1;
comboActive = false;
comboCounter = 0;
comboCheck = false;
}
this._width = 30;
this._height = 30;
radius = this._width / 2;
falling = true;
gravity = 1.5;
reset();
yDamp = 0.85;
xDamp = 0.8;
friction = 0.98;
xDist = 0;
yDist = 0;
maxDist = 0;
interval = 0;
floorName = "";
}
onClipEvent (enterFrame) {
this.ballRotate._rotation = this.ballRotate._rotation + (2 * xSpeed);
if (xMove == true) {
if (hitFloor == true) {
xSpeed = xSpeed * friction;
if ((xSpeed < 0.5) and (xSpeed > -0.5)) {
xSpeed = 0;
xMove = false;
}
}
this._x = this._x + xSpeed;
i = 1;
while (i <= _root.walls) {
if (this.test.hitTest(_root["wall" + i])) {
if (xSpeed > 0) {
this._x = (_root["wall" + i]._x - (_root["wall" + i]._width / 2)) - radius;
} else {
this._x = (_root["wall" + i]._x + (_root["wall" + i]._width / 2)) + radius;
}
xSpeed = xSpeed * (-xDamp);
}
i++;
}
}
if (yMove == true) {
if (ySpeed > 0) {
falling = true;
} else if (ySpeed < 0) {
falling = false;
}
ySpeed = ySpeed + gravity;
this._y = this._y + ySpeed;
}
}
Instance of Symbol 69 MovieClip "ball3" in Frame 3
onClipEvent (load) {
function reset() {
ySpeed = 0;
xSpeed = 0;
yMove = true;
xMove = false;
hitFloorNum = 0;
hitFloor = false;
clickNum = 1;
ballFreeze = true;
this._visible = true;
revolutions = -1;
comboActive = false;
comboCounter = 0;
comboCheck = false;
}
this._width = 30;
this._height = 30;
radius = this._width / 2;
falling = true;
gravity = 1.5;
reset();
yDamp = 0.85;
xDamp = 0.8;
friction = 0.98;
xDist = 0;
yDist = 0;
maxDist = 0;
interval = 0;
floorName = "";
}
onClipEvent (enterFrame) {
this.ballRotate._rotation = this.ballRotate._rotation + (2 * xSpeed);
if (xMove == true) {
if (hitFloor == true) {
xSpeed = xSpeed * friction;
if ((xSpeed < 0.5) and (xSpeed > -0.5)) {
xSpeed = 0;
xMove = false;
}
}
this._x = this._x + xSpeed;
i = 1;
while (i <= _root.walls) {
if (this.test.hitTest(_root["wall" + i])) {
if (xSpeed > 0) {
this._x = (_root["wall" + i]._x - (_root["wall" + i]._width / 2)) - radius;
} else {
this._x = (_root["wall" + i]._x + (_root["wall" + i]._width / 2)) + radius;
}
xSpeed = xSpeed * (-xDamp);
}
i++;
}
}
if (yMove == true) {
if (ySpeed > 0) {
falling = true;
} else if (ySpeed < 0) {
falling = false;
}
ySpeed = ySpeed + gravity;
this._y = this._y + ySpeed;
}
}
Instance of Symbol 69 MovieClip "ball2" in Frame 3
onClipEvent (load) {
function reset() {
ySpeed = 0;
xSpeed = 0;
yMove = true;
xMove = false;
hitFloorNum = 0;
hitFloor = false;
clickNum = 1;
ballFreeze = true;
this._visible = true;
revolutions = -1;
comboActive = false;
comboCounter = 0;
comboCheck = false;
}
this._width = 30;
this._height = 30;
radius = this._width / 2;
falling = true;
gravity = 1.5;
reset();
yDamp = 0.85;
xDamp = 0.8;
friction = 0.98;
xDist = 0;
yDist = 0;
maxDist = 0;
interval = 0;
floorName = "";
}
onClipEvent (enterFrame) {
this.ballRotate._rotation = this.ballRotate._rotation + (2 * xSpeed);
if (xMove == true) {
if (hitFloor == true) {
xSpeed = xSpeed * friction;
if ((xSpeed < 0.5) and (xSpeed > -0.5)) {
xSpeed = 0;
xMove = false;
}
}
this._x = this._x + xSpeed;
i = 1;
while (i <= _root.walls) {
if (this.test.hitTest(_root["wall" + i])) {
if (xSpeed > 0) {
this._x = (_root["wall" + i]._x - (_root["wall" + i]._width / 2)) - radius;
} else {
this._x = (_root["wall" + i]._x + (_root["wall" + i]._width / 2)) + radius;
}
xSpeed = xSpeed * (-xDamp);
}
i++;
}
}
if (yMove == true) {
if (ySpeed > 0) {
falling = true;
} else if (ySpeed < 0) {
falling = false;
}
ySpeed = ySpeed + gravity;
this._y = this._y + ySpeed;
}
}
Instance of Symbol 60 MovieClip in Frame 3
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
if (this.hitTest(_root.ball1)) {
_root.ball1._x = this._x;
_root.ball1._y = this._y - _root.ball1.radius;
_root.ball1.yMove = true;
_root.ball1.ySpeed = -25;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 3
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
if (this.hitTest(_root.ball3)) {
_root.ball3._x = this._x;
_root.ball3._y = this._y - _root.ball3.radius;
_root.ball3.yMove = true;
_root.ball3.ySpeed = -25;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 3
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
if (this.hitTest(_root.ball2)) {
_root.ball2._x = this._x;
_root.ball2._y = this._y - _root.ball2.radius;
_root.ball2.yMove = true;
_root.ball2.ySpeed = -25;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 69 MovieClip "ball" in Frame 3
onClipEvent (load) {
function reset() {
ySpeed = 0;
xSpeed = 0;
yMove = true;
xMove = false;
hitFloorNum = 0;
hitFloor = false;
clickNum = 1;
ballFreeze = true;
this._visible = true;
revolutions = -1;
comboActive = false;
comboCounter = 0;
comboCheck = false;
}
this._width = 40;
this._height = 40;
radius = this._width / 2;
falling = true;
gravity = 1.5;
reset();
yDamp = 0.85;
xDamp = 0.8;
friction = 0.98;
xDist = 0;
yDist = 0;
maxDist = 0;
interval = 0;
floorName = "";
}
onClipEvent (enterFrame) {
this.ballRotate._rotation = this.ballRotate._rotation + (2 * xSpeed);
if (xMove == true) {
if (hitFloor == true) {
xSpeed = xSpeed * friction;
if ((xSpeed < 0.5) and (xSpeed > -0.5)) {
xSpeed = 0;
xMove = false;
}
}
this._x = this._x + xSpeed;
i = 1;
while (i <= _root.walls) {
if (this.test.hitTest(_root["wall" + i])) {
if (xSpeed > 0) {
this._x = (_root["wall" + i]._x - (_root["wall" + i]._width / 2)) - radius;
} else {
this._x = (_root["wall" + i]._x + (_root["wall" + i]._width / 2)) + radius;
}
xSpeed = xSpeed * (-xDamp);
}
i++;
}
}
if (yMove == true) {
if (ySpeed > 0) {
falling = true;
} else if (ySpeed < 0) {
falling = false;
}
ySpeed = ySpeed + gravity;
this._y = this._y + ySpeed;
i = 1;
while (i <= _root.floors) {
if (this.test.hitTest(_root["floor" + i])) {
if (falling == true) {
this._y = (_root["floor" + i]._y - (_root["floor" + i]._height / 2)) - radius;
falling = false;
ySpeed = ySpeed * (-yDamp);
hitFloorNum++;
if ((ySpeed > -3) and (ySpeed < 3)) {
ySpeed = 0;
yMove = false;
floorName = _root["floor" + i]._name;
}
} else {
this._y = (_root["floor" + i]._y + (_root["floor" + i]._height / 2)) + radius;
falling = true;
ySpeed = ySpeed * (-yDamp);
}
}
i++;
}
} else if (_root[floorName].hitTest(_root.ball._x, _root.ball._y + radius)) {
hitFloorNum = 1;
hitFloor = true;
} else {
yMove = true;
ySpeed = 0;
falling = true;
hitFloor = false;
}
if (hitFloorNum == 1) {
hitFloor = true;
hitFloorNum = 0;
} else {
hitFloorNum = 0;
hitFloor = false;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gotoAndStop("secret");
}
}
Instance of Symbol 60 MovieClip in Frame 3
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -23;
_root.ball.xSpeed = -5;
this.play();
active = false;
_root.ball.revolutions++;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 162 MovieClip "fade" in Frame 3
onClipEvent (load) {
playMode = "";
}
Instance of Symbol 101 MovieClip "codeClip" in Frame 3
onClipEvent (load) {
_root.playMusic("menuMusic");
soundFade = false;
i = _root.gameVolume;
}
onClipEvent (enterFrame) {
if (soundFade == true) {
if (i > 0) {
_root.music.setVolume(i);
i = i - 5;
}
}
}
Frame 4
ball.xSpeed = 0;
ball.ySpeed = 0;
ball.xMove = false;
floors = 3;
walls = 2;
ball._x = 520;
ball._y = 385;
Instance of Symbol 101 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -5;
_root.ball.xMove = true;
_root.ball.xSpeed = -9;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -10;
_root.ball.xMove = true;
_root.ball.xSpeed = 15;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 169 MovieClip in 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);
}
Instance of Symbol 184 MovieClip in 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 {
menuMusic = new Sound();
menuMusic.attachSound("menuMusic");
menuMusic.setVolume(_root.gameVolume);
menuMusic.start(0, 100);
this.prevFrame();
}
}
}
Instance of Symbol 185 MovieClip in 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 69 MovieClip "ball" in Frame 4
onClipEvent (load) {
function reset() {
ySpeed = 0;
xSpeed = 0;
yMove = true;
xMove = false;
hitFloorNum = 0;
hitFloor = false;
clickNum = 1;
ballFreeze = true;
this._visible = true;
revolutions = -1;
comboActive = false;
comboCounter = 0;
comboCheck = false;
}
this._width = 40;
this._height = 40;
radius = this._width / 2;
falling = true;
gravity = 1.5;
reset();
yDamp = 0.85;
xDamp = 0.8;
friction = 0.98;
xDist = 0;
yDist = 0;
maxDist = 0;
interval = 0;
floorName = "";
}
onClipEvent (enterFrame) {
this.ballRotate._rotation = this.ballRotate._rotation + (2 * xSpeed);
if (xMove == true) {
if (hitFloor == true) {
xSpeed = xSpeed * friction;
if ((xSpeed < 0.5) and (xSpeed > -0.5)) {
xSpeed = 0;
xMove = false;
}
}
this._x = this._x + xSpeed;
i = 1;
while (i <= _root.walls) {
if (this.test.hitTest(_root["wall" + i])) {
if (xSpeed > 0) {
this._x = (_root["wall" + i]._x - (_root["wall" + i]._width / 2)) - radius;
} else {
this._x = (_root["wall" + i]._x + (_root["wall" + i]._width / 2)) + radius;
}
xSpeed = xSpeed * (-xDamp);
}
i++;
}
}
if (yMove == true) {
if (ySpeed > 0) {
falling = true;
} else if (ySpeed < 0) {
falling = false;
}
ySpeed = ySpeed + gravity;
this._y = this._y + ySpeed;
i = 1;
while (i <= _root.floors) {
if (this.test.hitTest(_root["floor" + i])) {
if (falling == true) {
this._y = (_root["floor" + i]._y - (_root["floor" + i]._height / 2)) - radius;
falling = false;
ySpeed = ySpeed * (-yDamp);
hitFloorNum++;
if ((ySpeed > -3) and (ySpeed < 3)) {
ySpeed = 0;
yMove = false;
floorName = _root["floor" + i]._name;
}
} else {
this._y = (_root["floor" + i]._y + (_root["floor" + i]._height / 2)) + radius;
falling = true;
ySpeed = ySpeed * (-yDamp);
}
}
i++;
}
} else if (_root[floorName].hitTest(_root.ball._x, _root.ball._y + radius)) {
hitFloorNum = 1;
hitFloor = true;
} else {
yMove = true;
ySpeed = 0;
falling = true;
hitFloor = false;
}
if (hitFloorNum == 1) {
hitFloor = true;
hitFloorNum = 0;
} else {
hitFloorNum = 0;
hitFloor = false;
}
}
Instance of Symbol 60 MovieClip in Frame 4
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -37;
_root.ball.xSpeed = 0;
_root.ball.xMove = false;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 5
ball.xSpeed = 0;
ball.ySpeed = 0;
ball.xMove = false;
floors = 5;
walls = 2;
ball._x = 520;
ball._y = 385;
Instance of Symbol 101 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -5;
_root.ball.xMove = true;
_root.ball.xSpeed = -9;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 69 MovieClip "ball" in Frame 5
onClipEvent (load) {
function reset() {
ySpeed = 0;
xSpeed = 0;
yMove = true;
xMove = false;
hitFloorNum = 0;
hitFloor = false;
clickNum = 1;
ballFreeze = true;
this._visible = true;
revolutions = -1;
comboActive = false;
comboCounter = 0;
comboCheck = false;
}
this._width = 40;
this._height = 40;
radius = this._width / 2;
falling = true;
gravity = 1.5;
reset();
yDamp = 0.85;
xDamp = 0.8;
friction = 0.98;
xDist = 0;
yDist = 0;
maxDist = 0;
interval = 0;
floorName = "";
}
onClipEvent (enterFrame) {
this.ballRotate._rotation = this.ballRotate._rotation + (2 * xSpeed);
if (xMove == true) {
if (hitFloor == true) {
xSpeed = xSpeed * friction;
if ((xSpeed < 0.5) and (xSpeed > -0.5)) {
xSpeed = 0;
xMove = false;
}
}
this._x = this._x + xSpeed;
i = 1;
while (i <= _root.walls) {
if (this.test.hitTest(_root["wall" + i])) {
if (xSpeed > 0) {
this._x = (_root["wall" + i]._x - (_root["wall" + i]._width / 2)) - radius;
} else {
this._x = (_root["wall" + i]._x + (_root["wall" + i]._width / 2)) + radius;
}
xSpeed = xSpeed * (-xDamp);
}
i++;
}
}
if (yMove == true) {
if (ySpeed > 0) {
falling = true;
} else if (ySpeed < 0) {
falling = false;
}
ySpeed = ySpeed + gravity;
this._y = this._y + ySpeed;
i = 1;
while (i <= _root.floors) {
if (this.test.hitTest(_root["floor" + i])) {
if (falling == true) {
this._y = (_root["floor" + i]._y - (_root["floor" + i]._height / 2)) - radius;
falling = false;
ySpeed = ySpeed * (-yDamp);
hitFloorNum++;
if ((ySpeed > -3) and (ySpeed < 3)) {
ySpeed = 0;
yMove = false;
floorName = _root["floor" + i]._name;
}
} else {
this._y = (_root["floor" + i]._y + (_root["floor" + i]._height / 2)) + radius;
falling = true;
ySpeed = ySpeed * (-yDamp);
}
}
i++;
}
} else if (_root[floorName].hitTest(_root.ball._x, _root.ball._y + radius)) {
hitFloorNum = 1;
hitFloor = true;
} else {
yMove = true;
ySpeed = 0;
falling = true;
hitFloor = false;
}
if (hitFloorNum == 1) {
hitFloor = true;
hitFloorNum = 0;
} else {
hitFloorNum = 0;
hitFloor = false;
}
}
Frame 7
_root.gotoAndStop("menu");
Frame 8
trainingMode = true;
_root.pauseScreen.getNextHighestDepth();
_root.pauseScreen.removeMovieClip();
_root.levelTransition.getNextHighestDepth();
_root.levelTransition.removeMovieClip();
_root.ball.getNextHighestDepth();
_root.ball.removeMovieClip();
suction1.getNextHighestDepth();
suction1.removeMovieClip();
suction2.getNextHighestDepth();
suction2.removeMovieClip();
swing1.getNextHighestDepth();
swing1.removeMovieClip();
swing2.getNextHighestDepth();
swing2.removeMovieClip();
swing.getNextHighestDepth();
swing.removeMovieClip();
paused = false;
Instance of Symbol 208 MovieClip in Frame 8
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.totalScore = 0;
_root.gotoAndStop("level1");
}
}
Instance of Symbol 213 MovieClip in Frame 8
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.totalScore = 0;
_root.gotoAndStop("level2");
}
}
Instance of Symbol 218 MovieClip in Frame 8
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.totalScore = 0;
_root.gotoAndStop("level3");
}
}
Instance of Symbol 223 MovieClip in Frame 8
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.totalScore = 0;
_root.gotoAndStop("level4");
}
}
Instance of Symbol 228 MovieClip in Frame 8
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.totalScore = 0;
_root.gotoAndStop("level5");
}
}
Instance of Symbol 233 MovieClip in Frame 8
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.totalScore = 0;
_root.gotoAndStop("level6");
}
}
Instance of Symbol 238 MovieClip in Frame 8
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.totalScore = 0;
_root.gotoAndStop("level7");
}
}
Instance of Symbol 247 MovieClip in Frame 8
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.totalScore = 0;
_root.gotoAndStop("level8");
}
}
Instance of Symbol 252 MovieClip in Frame 8
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.totalScore = 0;
_root.gotoAndStop("level9");
}
}
Instance of Symbol 257 MovieClip in Frame 8
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.totalScore = 0;
_root.gotoAndStop("level10");
}
}
Instance of Symbol 262 MovieClip in Frame 8
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.totalScore = 0;
_root.gotoAndStop("level11");
}
}
Instance of Symbol 267 MovieClip in Frame 8
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.totalScore = 0;
_root.gotoAndStop("level12");
}
}
Instance of Symbol 272 MovieClip in Frame 8
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.totalScore = 0;
_root.gotoAndStop("level13");
}
}
Instance of Symbol 277 MovieClip in Frame 8
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.totalScore = 0;
_root.gotoAndStop("level14");
}
}
Instance of Symbol 282 MovieClip in Frame 8
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.totalScore = 0;
_root.gotoAndStop("level15");
}
}
Instance of Symbol 309 MovieClip in Frame 8
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.totalScore = 0;
_root.gotoAndStop("level16");
}
}
Instance of Symbol 314 MovieClip in Frame 8
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.totalScore = 0;
_root.gotoAndStop("level17");
}
}
Instance of Symbol 319 MovieClip in Frame 8
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.totalScore = 0;
_root.gotoAndStop("level18");
}
}
Instance of Symbol 324 MovieClip in Frame 8
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.totalScore = 0;
_root.gotoAndStop("level19");
}
}
Instance of Symbol 329 MovieClip in Frame 8
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.totalScore = 0;
_root.gotoAndStop("level20");
}
}
Frame 9
stop();
_root.music.setVolume(_root.gameVolume);
gameMode = "single";
totalScore = 0;
floors = 1;
walls = 0;
hitAreaNum = 1;
scoreReset();
ball._x = 275;
ball._y = 300;
levelTransition._alpha = 0;
level = 1;
paused = false;
Instance of Symbol 101 MovieClip "popInMC" in Frame 9
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
if (_root.trainingMode == false) {
_root.playMusic("singleMusic");
}
}
onClipEvent (enterFrame) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
}
}
Instance of Symbol 331 MovieClip "overlay" in Frame 9
onClipEvent (enterFrame) {
if (_root.trainingMode == true) {
this.gotoAndStop("overlayLevel" + _root.level);
}
}
Instance of Symbol 60 MovieClip in Frame 9
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -25;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 381 MovieClip "levelTransition" in Frame 9
onClipEvent (load) {
active = false;
delayTimer = 10;
this.swapDepths(80);
this._alpha = 0;
fadedIn = false;
}
onClipEvent (enterFrame) {
if (active == true) {
delayTimer--;
if (delayTimer <= 0) {
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
this.nextFrame();
} else {
fadedIn = true;
}
}
}
}
onClipEvent (mouseDown) {
if (fadedIn == true) {
if (_root.trainingMode == false) {
fadedIn = false;
active = false;
this.gotoAndStop(1);
_root.overlay.play();
this._alpha = 0;
_root.nextFrame();
} else {
stopAllSounds();
_root.gotoAndStop("training");
_root.markerReset();
this._alpha = 0;
}
}
}
Instance of Symbol 69 MovieClip "ball" in Frame 9
onClipEvent (load) {
function reset() {
ySpeed = 0;
xSpeed = 0;
yMove = true;
xMove = false;
hitFloorNum = 0;
hitFloor = false;
clickNum = 1;
ballFreeze = true;
this._visible = true;
revolutions = -1;
clickToStart = true;
}
this._width = 50;
this._height = 50;
radius = this._width / 2;
falling = true;
gravity = 1.5;
reset();
yDamp = 0.85;
xDamp = 0.8;
friction = 0.98;
xDist = 0;
yDist = 0;
maxDist = 0;
interval = 0;
floorName = "";
}
onClipEvent (enterFrame) {
if (_root.popInMC.popping == false) {
_root["hitArea" + clickNum].gotoAndStop(2);
}
if (ballFreeze == false) {
this.ballRotate._rotation = this.ballRotate._rotation + (2 * xSpeed);
if (xMove == true) {
if (hitFloor == true) {
xSpeed = xSpeed * friction;
if ((xSpeed < 0.5) and (xSpeed > -0.5)) {
xSpeed = 0;
xMove = false;
}
}
this._x = this._x + xSpeed;
i = 1;
while (i <= _root.walls) {
if (this.test.hitTest(_root["wall" + i])) {
if (xSpeed > 0) {
this._x = (_root["wall" + i]._x - (_root["wall" + i]._width / 2)) - radius;
} else {
this._x = (_root["wall" + i]._x + (_root["wall" + i]._width / 2)) + radius;
}
xSpeed = xSpeed * (-xDamp);
}
i++;
}
}
if (yMove == true) {
if (ySpeed > 0) {
falling = true;
} else if (ySpeed < 0) {
falling = false;
}
ySpeed = ySpeed + gravity;
this._y = this._y + ySpeed;
i = 1;
while (i <= _root.floors) {
if (this.test.hitTest(_root["floor" + i])) {
if (falling == true) {
this._y = (_root["floor" + i]._y - (_root["floor" + i]._height / 2)) - radius;
falling = false;
ySpeed = ySpeed * (-yDamp);
hitFloorNum++;
if ((ySpeed > -3) and (ySpeed < 3)) {
ySpeed = 0;
yMove = false;
floorName = _root["floor" + i]._name;
}
} else {
this._y = (_root["floor" + i]._y + (_root["floor" + i]._height / 2)) + radius;
falling = true;
ySpeed = ySpeed * (-yDamp);
}
}
i++;
}
} else if (_root[floorName].hitTest(_root.ball._x, _root.ball._y + radius)) {
hitFloorNum = 1;
hitFloor = true;
} else {
yMove = true;
ySpeed = 0;
falling = true;
hitFloor = false;
}
if (hitFloorNum == 1) {
hitFloor = true;
hitFloorNum = 0;
} else {
hitFloorNum = 0;
hitFloor = false;
}
}
}
onClipEvent (mouseDown) {
if (ballFreeze == false) {
if (clickNum <= _root.hitAreaNum) {
_root.marker.duplicateMovieClip("marker" + clickNum, clickNum);
_root["marker" + clickNum]._x = this._x;
_root["marker" + clickNum]._y = this._y;
_root["marker" + clickNum]._width = 2 * radius;
_root["marker" + clickNum]._height = 2 * radius;
xDist = _root["marker" + clickNum]._x - _root["hitArea" + clickNum]._x;
yDist = _root["marker" + clickNum]._y - _root["hitArea" + clickNum]._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
maxDist = 2 * radius;
interval = maxDist / 5;
if (distance > maxDist) {
_root["marker" + clickNum].gotoAndStop(7);
_root.playSound("blackSound");
} else if ((distance < maxDist) and (distance > (maxDist - interval))) {
_root["marker" + clickNum].gotoAndStop(6);
_root.playSound("redSound");
} else if ((distance < (maxDist - interval)) and (distance > (maxDist - (2 * interval)))) {
_root["marker" + clickNum].gotoAndStop(5);
_root.playSound("orangeSound");
} else if ((distance < (maxDist - (2 * interval))) and (distance > (maxDist - (3 * interval)))) {
_root["marker" + clickNum].gotoAndStop(4);
_root.playSound("yellowSound");
} else if ((distance < (maxDist - (3 * interval))) and (distance > (maxDist - (4 * interval)))) {
_root["marker" + clickNum].gotoAndStop(3);
_root.playSound("magentaSound");
} else if ((distance < (maxDist - (4 * interval))) and (distance > 0)) {
_root["marker" + clickNum].gotoAndStop(2);
_root.playSound("greenSound");
}
_root["hitArea" + clickNum].prevFrame();
clickNum++;
if (clickNum > _root.hitAreaNum) {
ballFreeze = true;
this._visible = false;
_root.levelTransition.active = true;
} else {
this.swapDepths(clickNum + 1);
}
}
} else if (_root.paused == false) {
if (_root.levelTransition.active == false) {
ballFreeze = false;
clickToStart = false;
_root.clickToStart.nextFrame();
_root.instruction.nextFrame();
}
}
}
Instance of Symbol 162 MovieClip in Frame 9
onClipEvent (load) {
this.gotoAndPlay(31);
}
Instance of Symbol 410 MovieClip "pauseScreen" in Frame 9
onClipEvent (load) {
gamePaused = false;
}
onClipEvent (keyDown) {
if (Key.getCode() == 80) {
this.getNextHighestDepth();
this.swapDepths(100);
if (gamePaused == false) {
_root.paused = true;
gamePaused = true;
this.gotoAndStop(2);
_root.playSound("pause");
_root.ball.ballFreeze = true;
} else {
this.gotoAndStop(1);
_root.paused = false;
gamePaused = false;
_root.playSound("unpause");
if (_root.ball.clickToStart == false) {
if (_root.levelTransition.active == false) {
_root.ball.ballFreeze = false;
}
}
}
}
}
Frame 10
markerReset();
Frame 11
scoreReset();
floors = 1;
walls = 2;
hitAreaNum = 2;
ball.reset();
ball._x = 50;
ball._y = 200;
level = 2;
Instance of Symbol 101 MovieClip "popInMC" in Frame 11
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
}
}
Instance of Symbol 60 MovieClip in Frame 11
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -20;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 12
markerReset();
Frame 13
scoreReset();
floors = 3;
walls = 2;
hitAreaNum = 3;
ball.reset();
ball._x = 500;
ball._y = 200;
level = 3;
Instance of Symbol 101 MovieClip "popInMC" in Frame 13
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
}
}
Instance of Symbol 60 MovieClip in Frame 13
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -25;
_root.ball.xMove = true;
_root.ball.xSpeed = -20;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 13
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -20;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 14
markerReset();
Frame 15
scoreReset();
floors = 4;
walls = 4;
hitAreaNum = 4;
ball.reset();
ball._x = 500;
ball._y = 330;
level = 4;
Instance of Symbol 101 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 15;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 15
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
}
}
Instance of Symbol 60 MovieClip in Frame 15
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -30;
_root.ball.xMove = true;
_root.ball.xSpeed = -12;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 16
markerReset();
Frame 17
scoreReset();
floors = 3;
walls = 3;
hitAreaNum = 5;
ball.reset();
ball._x = 500;
ball._y = 350;
level = 5;
Instance of Symbol 101 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 12;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 17
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
}
}
Instance of Symbol 60 MovieClip in Frame 17
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -21;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 17
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -20;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 17
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -19;
_root.ball.xMove = true;
_root.ball.xSpeed = -20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 18
markerReset();
Frame 19
scoreReset();
floors = 3;
walls = 3;
hitAreaNum = 5;
ball.reset();
ball._x = 100;
ball._y = 405;
ball.yMove = false;
ball.xMove = true;
ball.xSpeed = -10;
level = 6;
Instance of Symbol 101 MovieClip "popInMC" in Frame 19
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
}
}
Instance of Symbol 60 MovieClip in Frame 19
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + _root.ball.radius;
_root.ball.yMove = false;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 19
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - _root.ball.radius;
_root.ball.yMove = false;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 20
markerReset();
Frame 21
scoreReset();
floors = 3;
walls = 3;
hitAreaNum = 6;
ball.reset();
ball._x = 60;
ball._y = 300;
level = 7;
Instance of Symbol 101 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 15;
active = false;
_root.ball.revolutions++;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 21
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
}
}
Instance of Symbol 60 MovieClip in Frame 21
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -35;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 21
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -24;
_root.ball.xMove = true;
_root.ball.xSpeed = -21;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 21
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 8;
_root.ball.xMove = true;
_root.ball.xSpeed = -22;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 21
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y + _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = 15;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 22
markerReset();
Frame 23
scoreReset();
floors = 3;
walls = 3;
hitAreaNum = 5;
ball.reset();
ball._x = 185;
ball._y = 380;
overlay.level8.swing._visible = false;
level = 8;
Instance of Symbol 60 MovieClip in Frame 23
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -30;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
_root.ball.revolutions++;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -5;
_root.ball.xMove = true;
_root.ball.xSpeed = -14;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 23
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
}
}
Instance of Symbol 243 MovieClip "hammer" in Frame 23
onClipEvent (load) {
hammerWidth = this._height;
hammerHeight = this._width;
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 20;
}
onClipEvent (enterFrame) {
if (_root.ball.ballFreeze == true) {
this.stop();
} else {
this.play();
}
if (active == true) {
if (_root.ball.hitTest(this.hitTest1)) {
_root.ball._x = this._x + (hammerWidth / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -15;
_root.ball.xMove = true;
_root.ball.xSpeed = 25;
active = false;
} else if (_root.ball.hitTest(this.hitTest2)) {
_root.ball._x = this._x - (hammerWidth / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -15;
_root.ball.xMove = true;
_root.ball.xSpeed = -25;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 23
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -30;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 24
markerReset();
Frame 25
scoreReset();
floors = 3;
walls = 3;
hitAreaNum = 6;
ball.reset();
ball._x = 60;
ball._y = 250;
level = 9;
Instance of Symbol 101 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -10;
_root.ball.xMove = true;
_root.ball.xSpeed = -8;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 25
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
}
}
Instance of Symbol 60 MovieClip in Frame 25
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -22;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 25
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 8;
_root.ball.xMove = true;
_root.ball.xSpeed = 15;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 25
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y + _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = 15;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 25
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -22;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 25
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y + _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = 15;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 25
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -30;
_root.ball.xMove = true;
_root.ball.xSpeed = 30;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 26
markerReset();
Frame 27
scoreReset();
floors = 3;
walls = 3;
hitAreaNum = 6;
ball.reset();
ball._x = 325;
ball._y = 400;
level = 10;
Instance of Symbol 60 MovieClip in Frame 27
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -35;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 27
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
}
}
Instance of Symbol 243 MovieClip "hammer" in Frame 27
onClipEvent (load) {
hammerWidth = this._height;
hammerHeight = this._width;
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 20;
}
onClipEvent (enterFrame) {
if (_root.ball.ballFreeze == true) {
this.stop();
} else {
this.play();
}
if (active == true) {
if (_root.ball.hitTest(this.hitTest1)) {
_root.ball._x = this._x + (hammerWidth / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 1;
_root.ball.xMove = true;
_root.ball.xSpeed = 25;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
active = false;
} else if (_root.ball.hitTest(this.hitTest2)) {
_root.ball.yMove = true;
_root.ball.ySpeed = -30;
_root.ball.xMove = true;
_root.ball.xSpeed = -2.5;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 27
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 15;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 27
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -35;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 28
ball.getNextHighestDepth();
ball.removeMovieClip();
markerReset();
Frame 29
scoreReset();
stop();
floors = 4;
walls = 3;
hitAreaNum = 7;
ball.reset();
ball._x = 110;
ball._y = 75;
ball._width = 50;
ball._height = 50;
ball.radius = 20;
level = 11;
Instance of Symbol 101 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 29
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
}
}
Instance of Symbol 60 MovieClip in Frame 29
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -35;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 29
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -15;
_root.ball.xMove = true;
_root.ball.xSpeed = 21;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 69 MovieClip "ball" in Frame 29
onClipEvent (load) {
function reset() {
ySpeed = 0;
xSpeed = 0;
yMove = true;
xMove = false;
hitFloorNum = 0;
hitFloor = false;
clickNum = 1;
ballFreeze = true;
this._visible = true;
revolutions = -1;
clickToStart = true;
}
this._width = 40;
this._height = 40;
radius = this._width / 2;
falling = true;
gravity = 1.5;
reset();
yDamp = 0.85;
xDamp = 0.8;
friction = 0.98;
xDist = 0;
yDist = 0;
maxDist = 0;
interval = 0;
floorName = "";
areaXDist = 0;
areaYDist = 0;
areaTotalDist = 0;
}
onClipEvent (enterFrame) {
if (_root.popInMC.popping == false) {
_root["hitArea" + clickNum].gotoAndStop(2);
}
if (ballFreeze == false) {
this.ballRotate._rotation = this.ballRotate._rotation + (2 * xSpeed);
if (xMove == true) {
if (hitFloor == true) {
xSpeed = xSpeed * friction;
if ((xSpeed < 0.5) and (xSpeed > -0.5)) {
xSpeed = 0;
xMove = false;
}
}
this._x = this._x + xSpeed;
i = 1;
while (i <= _root.walls) {
if (this.test.hitTest(_root["wall" + i])) {
if (xSpeed > 0) {
this._x = (_root["wall" + i]._x - (_root["wall" + i]._width / 2)) - radius;
} else {
this._x = (_root["wall" + i]._x + (_root["wall" + i]._width / 2)) + radius;
}
xSpeed = xSpeed * (-xDamp);
}
i++;
}
}
if (yMove == true) {
if (ySpeed > 0) {
falling = true;
} else if (ySpeed < 0) {
falling = false;
}
ySpeed = ySpeed + gravity;
this._y = this._y + ySpeed;
i = 1;
while (i <= _root.floors) {
if (this.test.hitTest(_root["floor" + i])) {
if (falling == true) {
this._y = (_root["floor" + i]._y - (_root["floor" + i]._height / 2)) - radius;
falling = false;
ySpeed = ySpeed * (-yDamp);
hitFloorNum++;
if ((ySpeed > -3) and (ySpeed < 3)) {
ySpeed = 0;
yMove = false;
floorName = _root["floor" + i]._name;
}
} else {
this._y = (_root["floor" + i]._y + (_root["floor" + i]._height / 2)) + radius;
falling = true;
ySpeed = ySpeed * (-yDamp);
}
}
i++;
}
} else if (_root[floorName].hitTest(_root.ball._x, _root.ball._y + radius)) {
hitFloorNum = 1;
hitFloor = true;
} else {
yMove = true;
ySpeed = 0;
falling = true;
hitFloor = false;
}
if (hitFloorNum == 1) {
hitFloor = true;
hitFloorNum = 0;
} else {
hitFloorNum = 0;
hitFloor = false;
}
}
}
onClipEvent (mouseDown) {
if (ballFreeze == false) {
if (clickNum <= _root.hitAreaNum) {
_root.marker.duplicateMovieClip("marker" + clickNum, clickNum);
_root["marker" + clickNum]._x = this._x;
_root["marker" + clickNum]._y = this._y;
_root["marker" + clickNum]._width = 2 * radius;
_root["marker" + clickNum]._height = 2 * radius;
xDist = _root["marker" + clickNum]._x - _root["hitArea" + clickNum]._x;
yDist = _root["marker" + clickNum]._y - _root["hitArea" + clickNum]._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
maxDist = 2 * radius;
interval = maxDist / 5;
if (distance > maxDist) {
_root["marker" + clickNum].gotoAndStop(7);
_root.playSound("blackSound");
} else if ((distance < maxDist) and (distance > (maxDist - interval))) {
_root["marker" + clickNum].gotoAndStop(6);
_root.playSound("redSound");
} else if ((distance < (maxDist - interval)) and (distance > (maxDist - (2 * interval)))) {
_root["marker" + clickNum].gotoAndStop(5);
_root.playSound("orangeSound");
} else if ((distance < (maxDist - (2 * interval))) and (distance > (maxDist - (3 * interval)))) {
_root["marker" + clickNum].gotoAndStop(4);
_root.playSound("yellowSound");
} else if ((distance < (maxDist - (3 * interval))) and (distance > (maxDist - (4 * interval)))) {
_root["marker" + clickNum].gotoAndStop(3);
_root.playSound("magentaSound");
} else if ((distance < (maxDist - (4 * interval))) and (distance > 0)) {
_root["marker" + clickNum].gotoAndStop(2);
_root.playSound("greenSound");
}
_root["hitArea" + clickNum].prevFrame();
clickNum++;
if (clickNum > _root.hitAreaNum) {
ballFreeze = true;
this._visible = false;
_root.levelTransition.active = true;
} else {
this.swapDepths(clickNum + 1);
}
}
} else if (_root.paused == false) {
if (_root.levelTransition.active == false) {
ballFreeze = false;
clickToStart = false;
_root.clickToStart.nextFrame();
_root.instruction.nextFrame();
}
}
}
Frame 30
markerReset();
Frame 31
scoreReset();
floors = 4;
walls = 3;
hitAreaNum = 6;
ball.reset();
ball._x = 142;
ball._y = 395;
level = 12;
Instance of Symbol 101 MovieClip "popInMC" in Frame 31
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
}
}
Instance of Symbol 60 MovieClip in Frame 31
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
if (this.hitTest(_root.ball)) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -35;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 31
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 21;
_root.ball.xMove = true;
_root.ball.xSpeed = -30;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 31
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 21;
_root.ball.xMove = true;
_root.ball.xSpeed = 30;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 32
markerReset();
Frame 33
scoreReset();
floors = 5;
walls = 6;
hitAreaNum = 8;
ball.reset();
ball._x = 42;
ball._y = 110;
level = 13;
Instance of Symbol 101 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 15;
active = false;
_root.ball.revolutions++;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -2;
_root.ball.xMove = true;
_root.ball.xSpeed = 12;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 33
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
}
}
Instance of Symbol 60 MovieClip in Frame 33
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -35;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 33
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 10;
_root.ball.xMove = true;
_root.ball.xSpeed = -9;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 33
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -30;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 33
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 10;
_root.ball.xMove = true;
_root.ball.xSpeed = -30;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 33
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -30;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 33
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 10;
_root.ball.xMove = true;
_root.ball.xSpeed = -20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 33
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y + _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = 10;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 34
markerReset();
Frame 35
scoreReset();
floors = 2;
walls = 2;
hitAreaNum = 9;
ball.reset();
ball._x = 325;
ball._y = 240;
level = 14;
Instance of Symbol 101 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 15;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 35
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
}
}
Instance of Symbol 60 MovieClip in Frame 35
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - _root.ball.radius;
_root.ball._y = this._y;
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -13;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 35
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -30;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 243 MovieClip "hammer" in Frame 35
onClipEvent (load) {
hammerWidth = this._height;
hammerHeight = this._width;
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 20;
}
onClipEvent (enterFrame) {
if (_root.ball.ballFreeze == true) {
this.stop();
} else {
this.play();
}
if (active == true) {
if (_root.ball.hitTest(this.hitTest1)) {
_root.ball._x = this._x + (hammerWidth / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -3;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
_root.ball.revolutions++;
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
} else if (_root.ball.hitTest(this.hitTest2)) {
_root.ball._x = this._x - (hammerWidth / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -3;
_root.ball.xMove = true;
_root.ball.xSpeed = -20;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 35
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -30;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 35
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + _root.ball.radius;
_root.ball._y = this._y;
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 13;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 36
markerReset();
Frame 37
scoreReset();
floors = 3;
walls = 3;
hitAreaNum = 7;
ball.reset();
ball._x = 45;
ball._y = 400;
level = 15;
Instance of Symbol 101 MovieClip in Frame 37
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 5;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 37
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
}
}
Instance of Symbol 60 MovieClip in Frame 37
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -35;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 37
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - _root.ball.radius;
_root.ball._y = this._y;
_root.ball.yMove = true;
_root.ball.ySpeed = 3;
_root.ball.xMove = true;
_root.ball.xSpeed = -13;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 444 MovieClip "suction1" in Frame 37
onClipEvent (load) {
ballGet = false;
timer = 0;
this.swapDepths(50);
}
onClipEvent (enterFrame) {
if (_root.ball.ballFreeze == false) {
this._x = this._x + 5;
}
if (timer <= 0) {
if (this._x > 575) {
this._x = -25;
this.prevFrame();
}
if (ballGet == false) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
this.wind._visible = false;
ballGet = true;
}
}
if ((this._x > 500) and (this._x < 506)) {
if (ballGet == true) {
ballGet = false;
this.nextFrame();
_root.ball.yMove = true;
_root.ball.ySpeed = 10;
timer = 20;
} else {
this.nextFrame();
timer = 20;
}
}
if (ballGet == true) {
_root.ball._x = this._x;
_root.ball._y = this._y;
_root.ball.yMove = false;
_root.ball.xMove = false;
}
} else {
timer--;
}
}
Instance of Symbol 444 MovieClip "suction2" in Frame 37
onClipEvent (load) {
ballGet = false;
timer = 0;
this.swapDepths(51);
}
onClipEvent (enterFrame) {
if (_root.ball.ballFreeze == false) {
this._x = this._x + 5;
}
if (timer <= 0) {
if (this._x > 575) {
this._x = -25;
this.prevFrame();
}
if (ballGet == false) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
this.wind._visible = false;
ballGet = true;
}
}
if ((this._x > 500) and (this._x < 506)) {
if (ballGet == true) {
ballGet = false;
this.nextFrame();
_root.ball.yMove = true;
_root.ball.ySpeed = 10;
timer = 20;
} else {
this.nextFrame();
timer = 20;
}
}
if (ballGet == true) {
_root.ball._x = this._x;
_root.ball._y = this._y;
_root.ball.yMove = false;
_root.ball.xMove = false;
}
} else {
timer--;
}
}
Frame 38
markerReset();
suction1.getNextHighestDepth();
suction1.removeMovieClip();
suction2.getNextHighestDepth();
suction2.removeMovieClip();
Frame 39
scoreReset();
floors = 3;
walls = 2;
hitAreaNum = 9;
ball.reset();
ball._x = 45;
ball._y = 380;
level = 16;
Instance of Symbol 101 MovieClip "popInMC" in Frame 39
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
}
}
Instance of Symbol 60 MovieClip in Frame 39
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -18;
_root.ball.xMove = true;
_root.ball.xSpeed = 12;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 39
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + _root.ball.radius;
_root.ball._y = this._y;
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 39
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - _root.ball.radius;
_root.ball._y = this._y;
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 305 MovieClip "swing" in Frame 39
onClipEvent (load) {
active = false;
fireBall = false;
this.swapDepths(25);
}
onClipEvent (enterFrame) {
if (active == false) {
if (this.test.hitTest(_root.ball._x, _root.ball._y)) {
this.play();
_root.playSound("whoosh");
_root.ball._visible = false;
active = true;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
_root.ball.ySpeed = 0;
_root.ball._x = 600;
_root.ball._y = -100;
fireBall = false;
}
}
if (active == true) {
if (fireBall == true) {
if (downPosition == false) {
_root.ball._x = this._x - (this._width / 2);
_root.ball._y = (this._y - this._height) + 25;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
_root.ball.ySpeed = -1;
_root.ball._visible = true;
active = false;
fireBall = false;
} else if (downPosition == true) {
_root.ball._x = this._x - (this._width / 2);
_root.ball._y = (this._y + this._height) - 30;
_root.ball.xMove = true;
_root.ball.xSpeed = -23;
_root.ball.ySpeed = -1;
_root.ball._visible = true;
active = false;
fireBall = false;
}
}
}
}
Frame 40
markerReset();
swing.getNextHighestDepth();
swing.removeMovieClip();
Frame 41
scoreReset();
floors = 3;
walls = 2;
hitAreaNum = 11;
ball.reset();
ball._x = 345;
ball._y = 150;
level = 17;
Instance of Symbol 101 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -2;
_root.ball.xMove = true;
_root.ball.xSpeed = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -2;
_root.ball.xMove = true;
_root.ball.xSpeed = 10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -2;
_root.ball.xMove = true;
_root.ball.xSpeed = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -2;
_root.ball.xMove = true;
_root.ball.xSpeed = 10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 5;
_root.ball.xMove = true;
_root.ball.xSpeed = -18;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 41
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
}
}
Instance of Symbol 60 MovieClip in Frame 41
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -16;
_root.ball.xMove = true;
_root.ball.xSpeed = 12;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 41
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - _root.ball.radius;
_root.ball._y = this._y;
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 41
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -22;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 41
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -25;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 41
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -18;
_root.ball.xMove = true;
_root.ball.xSpeed = -14;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 444 MovieClip "suction1" in Frame 41
onClipEvent (load) {
ballGet = false;
timer = 0;
this.swapDepths(50);
}
onClipEvent (enterFrame) {
if (_root.ball.ballFreeze == false) {
this._x = this._x + 5;
}
if (timer <= 0) {
if (this._x > 575) {
this._x = -25;
this.prevFrame();
}
if (ballGet == false) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
this.wind._visible = false;
ballGet = true;
}
}
if ((this._x > 500) and (this._x < 506)) {
if (ballGet == true) {
ballGet = false;
this.nextFrame();
_root.ball.yMove = true;
_root.ball.ySpeed = 10;
timer = 20;
} else {
this.nextFrame();
timer = 20;
}
}
if (ballGet == true) {
_root.ball._x = this._x;
_root.ball._y = this._y;
_root.ball.yMove = false;
_root.ball.xMove = false;
}
} else {
timer--;
}
}
Instance of Symbol 444 MovieClip "suction2" in Frame 41
onClipEvent (load) {
ballGet = false;
timer = 0;
this.swapDepths(51);
}
onClipEvent (enterFrame) {
if (_root.ball.ballFreeze == false) {
this._x = this._x + 5;
}
if (timer <= 0) {
if (this._x > 575) {
this._x = -25;
this.prevFrame();
}
if (ballGet == false) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
this.wind._visible = false;
ballGet = true;
}
}
if ((this._x > 500) and (this._x < 506)) {
if (ballGet == true) {
ballGet = false;
this.nextFrame();
_root.ball.yMove = true;
_root.ball.ySpeed = 5;
timer = 20;
} else {
this.nextFrame();
timer = 20;
}
}
if (ballGet == true) {
_root.ball._x = this._x;
_root.ball._y = this._y;
_root.ball.yMove = false;
_root.ball.xMove = false;
}
} else {
timer--;
}
}
Frame 42
markerReset();
suction1.getNextHighestDepth();
suction1.removeMovieClip();
suction2.getNextHighestDepth();
suction2.removeMovieClip();
Frame 43
scoreReset();
floors = 1;
walls = 2;
hitAreaNum = 13;
ball.reset();
ball._x = 45;
ball._y = 100;
level = 18;
Instance of Symbol 101 MovieClip "popInMC" in Frame 43
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -15;
_root.ball.xMove = true;
_root.ball.xSpeed = 21;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -15;
_root.ball.xMove = true;
_root.ball.xSpeed = 21;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -15;
_root.ball.xMove = true;
_root.ball.xSpeed = 21;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -15;
_root.ball.xMove = true;
_root.ball.xSpeed = -21;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -15;
_root.ball.xMove = true;
_root.ball.xSpeed = -21;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 43
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -28;
_root.ball.xMove = true;
_root.ball.xSpeed = -20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 44
markerReset();
Frame 45
scoreReset();
floors = 3;
walls = 2;
hitAreaNum = 11;
ball.reset();
ball._x = 38;
ball._y = 380;
level = 19;
Instance of Symbol 101 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 2;
_root.ball.xMove = true;
_root.ball.xSpeed = -18;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 45
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
}
}
Instance of Symbol 60 MovieClip in Frame 45
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - _root.ball.radius;
_root.ball._y = this._y;
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -22;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 45
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -40;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 45
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + _root.ball.radius;
_root.ball._y = this._y;
_root.ball.yMove = true;
_root.ball.ySpeed = -1;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 305 MovieClip "swing2" in Frame 45
onClipEvent (load) {
active = false;
fireBall = false;
this.swapDepths(30);
}
onClipEvent (enterFrame) {
if (active == false) {
if (this.test.hitTest(_root.ball._x, _root.ball._y)) {
this.play();
_root.playSound("whoosh");
_root.ball._visible = false;
active = true;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
_root.ball.ySpeed = 0;
_root.ball._x = 600;
_root.ball._y = -100;
fireBall = false;
}
}
if (active == true) {
if (fireBall == true) {
if (downPosition == false) {
_root.ball._x = this._x - (this._width / 2);
_root.ball._y = (this._y - this._height) + 25;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
_root.ball.ySpeed = -1;
_root.ball._visible = true;
active = false;
fireBall = false;
} else if (downPosition == true) {
_root.ball._x = this._x - (this._width / 2);
_root.ball._y = (this._y + this._height) - 30;
_root.ball.xMove = true;
_root.ball.xSpeed = -20;
_root.ball.ySpeed = -1;
_root.ball._visible = true;
active = false;
fireBall = false;
}
}
}
}
Instance of Symbol 305 MovieClip "swing1" in Frame 45
onClipEvent (load) {
active = false;
fireBall = false;
this.swapDepths(30);
}
onClipEvent (enterFrame) {
if (active == false) {
if (this.test.hitTest(_root.ball._x, _root.ball._y)) {
this.play();
_root.playSound("whoosh");
_root.ball._visible = false;
active = true;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
_root.ball.ySpeed = 0;
_root.ball._x = 600;
_root.ball._y = -100;
fireBall = false;
}
}
if (active == true) {
if (fireBall == true) {
if (downPosition == false) {
_root.ball._x = this._x + (this._width / 2);
_root.ball._y = (this._y - this._height) + 25;
_root.ball.xMove = true;
_root.ball.xSpeed = 15;
_root.ball.ySpeed = -1;
_root.ball._visible = true;
active = false;
fireBall = false;
} else if (downPosition == true) {
_root.ball._x = this._x + (this._width / 2);
_root.ball._y = (this._y + this._height) - 30;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
_root.ball.ySpeed = -1;
_root.ball._visible = true;
active = false;
fireBall = false;
}
}
}
}
Frame 46
markerReset();
swing1.getNextHighestDepth();
swing1.removeMovieClip();
swing2.getNextHighestDepth();
swing2.removeMovieClip();
Frame 47
scoreReset();
floors = 5;
walls = 2;
hitAreaNum = 12;
ball.reset();
ball._x = 180;
ball._y = 400;
level = 20;
Instance of Symbol 101 MovieClip "popInMC" in Frame 47
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
}
}
Instance of Symbol 101 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 15;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 243 MovieClip "hammer" in Frame 47
onClipEvent (load) {
hammerWidth = this._height;
hammerHeight = this._width;
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 20;
}
onClipEvent (enterFrame) {
if (_root.ball.ballFreeze == true) {
this.stop();
} else {
this.play();
}
if (active == true) {
if (_root.ball.hitTest(this.hitTest1)) {
_root.ball._x = (this._x + (hammerWidth / 2)) + 10;
_root.ball.yMove = true;
_root.ball.ySpeed = -5;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
} else if (_root.ball.hitTest(this.hitTest2)) {
_root.ball.yMove = true;
_root.ball.ySpeed = -30;
_root.ball.xMove = true;
_root.ball.xSpeed = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 47
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - _root.ball.radius;
_root.ball._y = this._y;
_root.ball.yMove = true;
_root.ball.ySpeed = -1;
_root.ball.xMove = true;
_root.ball.xSpeed = -25;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 305 MovieClip "swing" in Frame 47
onClipEvent (load) {
active = false;
fireBall = false;
this.swapDepths(25);
}
onClipEvent (enterFrame) {
if (active == false) {
if (this.test.hitTest(_root.ball._x, _root.ball._y)) {
this.play();
_root.playSound("whoosh");
_root.ball._visible = false;
active = true;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
_root.ball.ySpeed = 0;
_root.ball._x = 600;
_root.ball._y = -100;
fireBall = false;
}
}
if (active == true) {
if (fireBall == true) {
if (downPosition == false) {
_root.ball._x = this._x - (this._width / 2);
_root.ball._y = (this._y - this._height) + 25;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
_root.ball.ySpeed = -1;
_root.ball._visible = true;
active = false;
fireBall = false;
} else if (downPosition == true) {
_root.ball._x = this._x - (this._width / 2);
_root.ball._y = (this._y + this._height) - 30;
_root.ball.xMove = true;
_root.ball.xSpeed = -20;
_root.ball.ySpeed = -1;
_root.ball._visible = true;
active = false;
fireBall = false;
}
}
}
}
Instance of Symbol 60 MovieClip in Frame 47
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -30;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 47
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - _root.ball.radius;
_root.ball._y = this._y;
_root.ball.yMove = true;
_root.ball.ySpeed = -1;
_root.ball.xMove = true;
_root.ball.xSpeed = -25;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 48
markerReset();
swing.getNextHighestDepth();
swing.removeMovieClip();
_root.ball.getNextHighestDepth();
_root.ball.removeMovieClip();
nextFrame();
Frame 49
ScoreAPI = new LocalConnection();
ScoreAPI.send(_root.com_mindjolt_api, "submitScore", _root.totalScore);
_root.HPScoreService.postScore(_root.totalScore, "");
_root.kongregateScores.submit(_root.totalScore);
Frame 50
stopAllSounds();
_root.gotoAndStop("menu");
Frame 51
function multiScoreReset() {
p1Green = 0;
p1Magenta = 0;
p1Yellow = 0;
p1Orange = 0;
p1Red = 0;
p1Black = 0;
p1Miss = 0;
p1Revs = 0;
p2Green = 0;
p2Magenta = 0;
p2Yellow = 0;
p2Orange = 0;
p2Red = 0;
p2Black = 0;
p2Miss = 0;
p2Revs = 0;
clickToStart.prevFrame();
startButton.gotoAndStop(1);
_root.countDown.gotoAndStop(1);
_root.countDown.active = true;
}
function markerReset() {
i = 1;
while (i <= 40) {
_root["marker" + i].removeMovieClip();
i++;
}
}
stop();
_root.music.setVolume(_root.gameVolume);
gameMode = "multi";
p1Score = 0;
p2Score = 0;
floors = 1;
walls = 0;
hitAreaNum = 1;
multiScoreReset();
_root.countDown.active = false;
ball._x = 275;
ball._y = 300;
levelTransition._alpha = 0;
level = 1;
paused = false;
Instance of Symbol 97 MovieClip "background" in Frame 51
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 51
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
_root.playMusic("multiMusic");
}
onClipEvent (enterFrame) {
if (popping == true) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
_root.hitArea1.gotoAndStop("both");
}
}
}
Instance of Symbol 60 MovieClip in Frame 51
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -25;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 491 MovieClip "levelTransition" in Frame 51
onClipEvent (load) {
active = false;
delayTimer = 10;
this.swapDepths(40);
this._alpha = 0;
fadedIn = false;
}
onClipEvent (enterFrame) {
if (active == true) {
delayTimer--;
if (delayTimer <= 0) {
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
this.nextFrame();
} else {
fadedIn = true;
}
}
}
}
onClipEvent (mouseDown) {
if (fadedIn == true) {
fadedIn = false;
active = false;
this.gotoAndStop(1);
_root.overlay.play();
this._alpha = 0;
_root.nextFrame();
}
}
onClipEvent (keyDown) {
if (Key.getCode() == 32) {
if (fadedIn == true) {
fadedIn = false;
active = false;
this.gotoAndStop(1);
_root.overlay.play();
this._alpha = 0;
_root.nextFrame();
}
}
}
Instance of Symbol 69 MovieClip "ball" in Frame 51
onClipEvent (load) {
function reset() {
ySpeed = 0;
xSpeed = 0;
yMove = true;
xMove = false;
hitFloorNum = 0;
hitFloor = false;
p1ClickNum = 1;
p2ClickNum = 1;
p1Finish = false;
p2Finish = false;
p1Rev = -1;
p2Rev = -1;
ballFreeze = true;
this._visible = true;
comboActive = false;
comboCounter = 0;
comboCheck = false;
depth = 1;
}
this._width = 50;
this._height = 50;
radius = this._width / 2;
falling = true;
gravity = 1.5;
reset();
yDamp = 0.85;
xDamp = 0.8;
friction = 0.98;
xDist = 0;
yDist = 0;
maxDist = 0;
interval = 0;
floorName = "";
tempVar = 0;
prevAreaNum = 0;
}
onClipEvent (enterFrame) {
if (ballFreeze == false) {
this.ballRotate._rotation = this.ballRotate._rotation + (2 * xSpeed);
if (xMove == true) {
if (hitFloor == true) {
xSpeed = xSpeed * friction;
if ((xSpeed < 0.5) and (xSpeed > -0.5)) {
xSpeed = 0;
xMove = false;
}
}
this._x = this._x + xSpeed;
i = 1;
while (i <= _root.walls) {
if (this.test.hitTest(_root["wall" + i])) {
if (xSpeed > 0) {
this._x = (_root["wall" + i]._x - (_root["wall" + i]._width / 2)) - radius;
} else {
this._x = (_root["wall" + i]._x + (_root["wall" + i]._width / 2)) + radius;
}
xSpeed = xSpeed * (-xDamp);
}
i++;
}
}
if (yMove == true) {
if (ySpeed > 0) {
falling = true;
} else if (ySpeed < 0) {
falling = false;
}
ySpeed = ySpeed + gravity;
this._y = this._y + ySpeed;
i = 1;
while (i <= _root.floors) {
if (this.test.hitTest(_root["floor" + i])) {
if (falling == true) {
this._y = (_root["floor" + i]._y - (_root["floor" + i]._height / 2)) - radius;
falling = false;
ySpeed = ySpeed * (-yDamp);
hitFloorNum++;
if ((ySpeed > -3) and (ySpeed < 3)) {
ySpeed = 0;
yMove = false;
floorName = _root["floor" + i]._name;
}
} else {
this._y = (_root["floor" + i]._y + (_root["floor" + i]._height / 2)) + radius;
falling = true;
ySpeed = ySpeed * (-yDamp);
}
}
i++;
}
} else if (_root[floorName].hitTest(_root.ball._x, _root.ball._y + radius)) {
hitFloorNum = 1;
hitFloor = true;
} else {
yMove = true;
ySpeed = 0;
falling = true;
hitFloor = false;
}
if (hitFloorNum == 1) {
hitFloor = true;
hitFloorNum = 0;
} else {
hitFloorNum = 0;
hitFloor = false;
}
if ((p1Finish == true) and (p2Finish == true)) {
ballFreeze = true;
this._visible = false;
_root.levelTransition.active = true;
}
if (p1ClickNum == p2ClickNum) {
_root["hitArea" + p1ClickNum].gotoAndStop("both");
} else {
_root["hitArea" + p1ClickNum].gotoAndStop("blue");
_root["hitArea" + p2ClickNum].gotoAndStop("red");
}
i = 1;
while (i <= _root.hitAreaNum) {
if ((i != p1ClickNum) and (i != p2ClickNum)) {
_root["hitArea" + i].gotoAndStop(1);
}
i++;
}
}
}
onClipEvent (mouseDown) {
if (_root.paused == false) {
if (ballFreeze == false) {
if (p1ClickNum <= _root.hitAreaNum) {
_root.marker.duplicateMovieClip("marker" + depth, depth);
_root["marker" + depth]._x = this._x;
_root["marker" + depth]._y = this._y;
_root["marker" + depth]._width = 2 * radius;
_root["marker" + depth]._height = 2 * radius;
_root["marker" + depth]._alpha = 50;
xDist = _root["marker" + depth]._x - _root["hitArea" + p1ClickNum]._x;
yDist = _root["marker" + depth]._y - _root["hitArea" + p1ClickNum]._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
maxDist = 2 * radius;
interval = maxDist / 5;
if (distance > maxDist) {
_root["marker" + depth].gotoAndStop(7);
_root.p1Black++;
_root.p1Miss++;
_root.playSound("blackSound");
} else if ((distance < maxDist) and (distance > (maxDist - interval))) {
_root["marker" + depth].gotoAndStop(6);
_root.p1Red++;
_root.playSound("redSound");
} else if ((distance < (maxDist - interval)) and (distance > (maxDist - (2 * interval)))) {
_root["marker" + depth].gotoAndStop(5);
_root.p1Orange++;
_root.playSound("orangeSound");
} else if ((distance < (maxDist - (2 * interval))) and (distance > (maxDist - (3 * interval)))) {
_root["marker" + depth].gotoAndStop(4);
_root.p1Yellow++;
_root.playSound("yellowSound");
} else if ((distance < (maxDist - (3 * interval))) and (distance > (maxDist - (4 * interval)))) {
_root["marker" + depth].gotoAndStop(3);
_root.p1Magenta++;
_root.playSound("magentaSound");
} else if ((distance < (maxDist - (4 * interval))) and (distance > 0)) {
_root["marker" + depth].gotoAndStop(2);
_root.p1Green++;
_root.playSound("greenSound");
}
depth++;
p1ClickNum++;
_root.ball.swapDepths(depth + 1);
if (p1ClickNum > _root.hitAreaNum) {
p1Finish = true;
} else {
this.swapDepths(depth + 1);
}
}
}
}
}
onClipEvent (keyDown) {
if (Key.getCode() == 32) {
if (_root.paused == false) {
if (ballFreeze == false) {
if (p2ClickNum <= _root.hitAreaNum) {
_root.marker.duplicateMovieClip("marker" + depth, depth);
_root["marker" + depth]._x = this._x;
_root["marker" + depth]._y = this._y;
_root["marker" + depth]._width = 2 * radius;
_root["marker" + depth]._height = 2 * radius;
_root["marker" + depth]._alpha = 50;
xDist = _root["marker" + depth]._x - _root["hitArea" + p2ClickNum]._x;
yDist = _root["marker" + depth]._y - _root["hitArea" + p2ClickNum]._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
maxDist = 2 * radius;
interval = maxDist / 5;
if (distance > maxDist) {
_root["marker" + depth].gotoAndStop(7);
_root.p2Black++;
_root.p2Miss++;
_root.playSound("blackSound");
} else if ((distance < maxDist) and (distance > (maxDist - interval))) {
_root["marker" + depth].gotoAndStop(6);
_root.p2Red++;
_root.playSound("redSound");
} else if ((distance < (maxDist - interval)) and (distance > (maxDist - (2 * interval)))) {
_root["marker" + depth].gotoAndStop(5);
_root.p2Orange++;
_root.playSound("orangeSound");
} else if ((distance < (maxDist - (2 * interval))) and (distance > (maxDist - (3 * interval)))) {
_root["marker" + depth].gotoAndStop(4);
_root.p2Yellow++;
_root.playSound("yellowSound");
} else if ((distance < (maxDist - (3 * interval))) and (distance > (maxDist - (4 * interval)))) {
_root["marker" + depth].gotoAndStop(3);
_root.p2Magenta++;
_root.playSound("magentaSound");
} else if ((distance < (maxDist - (4 * interval))) and (distance > 0)) {
_root["marker" + depth].gotoAndStop(2);
_root.p2Green++;
_root.playSound("greenSound");
}
depth++;
p2ClickNum++;
_root.ball.swapDepths(depth + 1);
if (p2ClickNum > _root.hitAreaNum) {
p2Finish = true;
} else {
this.swapDepths(depth + 1);
}
}
}
}
}
}
Instance of Symbol 494 MovieClip "instruction" in Frame 51
onClipEvent (load) {
active = true;
}
onClipEvent (mouseDown) {
if (active == true) {
if (_root.paused == false) {
this._visible = false;
_root.countDown.active = true;
active = false;
}
}
}
onClipEvent (keyDown) {
if (active == true) {
if (_root.paused == false) {
if (Key.getCode() == 32) {
this._visible = false;
_root.countDown.active = true;
active = false;
}
}
}
}
Instance of Symbol 162 MovieClip in Frame 51
onClipEvent (load) {
this.gotoAndPlay(31);
}
Instance of Symbol 410 MovieClip "pauseScreen" in Frame 51
onClipEvent (load) {
gamePaused = false;
}
onClipEvent (keyDown) {
if (Key.getCode() == 80) {
this.getNextHighestDepth();
this.swapDepths(100);
if (gamePaused == false) {
_root.paused = true;
gamePaused = true;
this.gotoAndStop(2);
_root.playSound("pause");
_root.ball.ballFreeze = true;
} else {
this.gotoAndStop(1);
_root.paused = false;
gamePaused = false;
_root.playSound("unpause");
if (_root.countDown.active == false) {
if (_root.levelTransition.active == false) {
_root.ball.ballFreeze = false;
}
}
}
}
}
Instance of Symbol 504 MovieClip "countDown" in Frame 51
onClipEvent (load) {
active = false;
}
onClipEvent (enterFrame) {
if (active == true) {
if (_root.paused == true) {
this.stop();
} else {
this.nextFrame();
}
}
}
Frame 52
markerReset();
Frame 53
multiScoreReset();
floors = 1;
walls = 2;
hitAreaNum = 2;
ball.reset();
ball._x = 50;
ball._y = 200;
level = 2;
Instance of Symbol 101 MovieClip "popInMC" in Frame 53
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (popping == true) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
_root.hitArea1.gotoAndStop("both");
}
}
}
Instance of Symbol 60 MovieClip in Frame 53
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -20;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 54
markerReset();
Frame 55
multiScoreReset();
floors = 3;
walls = 2;
hitAreaNum = 3;
ball.reset();
ball._x = 500;
ball._y = 200;
level = 3;
Instance of Symbol 101 MovieClip "popInMC" in Frame 55
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (popping == true) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
_root.hitArea1.gotoAndStop("both");
}
}
}
Instance of Symbol 60 MovieClip in Frame 55
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -25;
_root.ball.xMove = true;
_root.ball.xSpeed = -20;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 55
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -20;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 56
markerReset();
Frame 57
multiScoreReset();
floors = 4;
walls = 4;
hitAreaNum = 4;
ball.reset();
ball._x = 500;
ball._y = 330;
level = 4;
Instance of Symbol 101 MovieClip in Frame 57
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 15;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 57
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (popping == true) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
_root.hitArea1.gotoAndStop("both");
}
}
}
Instance of Symbol 60 MovieClip in Frame 57
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -30;
_root.ball.xMove = true;
_root.ball.xSpeed = -12;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 58
markerReset();
Frame 59
multiScoreReset();
floors = 3;
walls = 3;
hitAreaNum = 5;
ball.reset();
ball._x = 500;
ball._y = 350;
level = 5;
Instance of Symbol 101 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 12;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 59
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (popping == true) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
_root.hitArea1.gotoAndStop("both");
}
}
}
Instance of Symbol 60 MovieClip in Frame 59
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -21;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 59
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -20;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 59
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -19;
_root.ball.xMove = true;
_root.ball.xSpeed = -20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 60
markerReset();
Frame 61
multiScoreReset();
floors = 3;
walls = 3;
hitAreaNum = 5;
ball.reset();
ball._x = 100;
ball._y = 405;
ball.yMove = false;
ball.xMove = true;
ball.xSpeed = -10;
level = 6;
Instance of Symbol 101 MovieClip "popInMC" in Frame 61
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (popping == true) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
_root.hitArea1.gotoAndStop("both");
}
}
}
Instance of Symbol 60 MovieClip in Frame 61
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + _root.ball.radius;
_root.ball.yMove = false;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 61
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - _root.ball.radius;
_root.ball.yMove = false;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 62
markerReset();
Frame 63
multiScoreReset();
floors = 3;
walls = 3;
hitAreaNum = 6;
ball.reset();
ball._x = 60;
ball._y = 300;
level = 7;
Instance of Symbol 101 MovieClip in Frame 63
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 15;
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 63
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (popping == true) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
_root.hitArea1.gotoAndStop("both");
}
}
}
Instance of Symbol 60 MovieClip in Frame 63
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -35;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 63
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -24;
_root.ball.xMove = true;
_root.ball.xSpeed = -21;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 63
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 8;
_root.ball.xMove = true;
_root.ball.xSpeed = -22;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 63
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y + _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = 15;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 64
markerReset();
Frame 65
multiScoreReset();
floors = 3;
walls = 3;
hitAreaNum = 5;
ball.reset();
ball._x = 185;
ball._y = 380;
overlay.level8.swing._visible = false;
level = 8;
Instance of Symbol 101 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -5;
_root.ball.xMove = true;
_root.ball.xSpeed = -14;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 65
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (popping == true) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
_root.hitArea1.gotoAndStop("both");
}
}
}
Instance of Symbol 243 MovieClip "hammer" in Frame 65
onClipEvent (load) {
hammerWidth = this._height;
hammerHeight = this._width;
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 20;
}
onClipEvent (enterFrame) {
if (_root.ball.ballFreeze == true) {
this.stop();
} else {
this.play();
}
if (active == true) {
if (_root.ball.hitTest(this.hitTest1)) {
_root.ball._x = this._x + (hammerWidth / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -15;
_root.ball.xMove = true;
_root.ball.xSpeed = 25;
active = false;
} else if (_root.ball.hitTest(this.hitTest2)) {
_root.ball._x = this._x - (hammerWidth / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -15;
_root.ball.xMove = true;
_root.ball.xSpeed = -25;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 65
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -30;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 66
markerReset();
Frame 67
multiScoreReset();
floors = 3;
walls = 3;
hitAreaNum = 6;
ball.reset();
ball._x = 60;
ball._y = 250;
level = 9;
Instance of Symbol 101 MovieClip in Frame 67
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -10;
_root.ball.xMove = true;
_root.ball.xSpeed = -8;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 67
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (popping == true) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
_root.hitArea1.gotoAndStop("both");
}
}
}
Instance of Symbol 60 MovieClip in Frame 67
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -22;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 67
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 8;
_root.ball.xMove = true;
_root.ball.xSpeed = 15;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 67
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y + _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = 15;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 67
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -22;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 67
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y + _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = 15;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 67
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -30;
_root.ball.xMove = true;
_root.ball.xSpeed = 30;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 68
markerReset();
Frame 69
multiScoreReset();
floors = 3;
walls = 3;
hitAreaNum = 6;
ball.reset();
ball._x = 325;
ball._y = 400;
level = 10;
Instance of Symbol 101 MovieClip in Frame 69
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 69
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (popping == true) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
_root.hitArea1.gotoAndStop("both");
}
}
}
Instance of Symbol 243 MovieClip "hammer" in Frame 69
onClipEvent (load) {
hammerWidth = this._height;
hammerHeight = this._width;
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 20;
}
onClipEvent (enterFrame) {
if (_root.ball.ballFreeze == true) {
this.stop();
} else {
this.play();
}
if (active == true) {
if (_root.ball.hitTest(this.hitTest1)) {
_root.ball._x = this._x + (hammerWidth / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 1;
_root.ball.xMove = true;
_root.ball.xSpeed = 25;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
active = false;
} else if (_root.ball.hitTest(this.hitTest2)) {
_root.ball.yMove = true;
_root.ball.ySpeed = -30;
_root.ball.xMove = true;
_root.ball.xSpeed = -2.5;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 69
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 15;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 69
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -35;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 70
ball.getNextHighestDepth();
ball.removeMovieClip();
markerReset();
Frame 71
multiScoreReset();
stop();
floors = 4;
walls = 3;
hitAreaNum = 7;
ball.reset();
ball._x = 110;
ball._y = 75;
ball._width = 50;
ball._height = 50;
ball.radius = 20;
level = 11;
Instance of Symbol 101 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 71
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (popping == true) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
_root.hitArea1.gotoAndStop("both");
}
}
}
Instance of Symbol 60 MovieClip in Frame 71
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -35;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 71
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -15;
_root.ball.xMove = true;
_root.ball.xSpeed = 21;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 69 MovieClip "ball" in Frame 71
onClipEvent (load) {
function reset() {
ySpeed = 0;
xSpeed = 0;
yMove = true;
xMove = false;
hitFloorNum = 0;
hitFloor = false;
p1ClickNum = 1;
p2ClickNum = 1;
p1Finish = false;
p2Finish = false;
p1Rev = -1;
p2Rev = -1;
ballFreeze = true;
this._visible = true;
comboActive = false;
comboCounter = 0;
comboCheck = false;
depth = 1;
}
this._width = 40;
this._height = 40;
radius = this._width / 2;
falling = true;
gravity = 1.5;
reset();
yDamp = 0.85;
xDamp = 0.8;
friction = 0.98;
xDist = 0;
yDist = 0;
maxDist = 0;
interval = 0;
floorName = "";
tempVar = 0;
prevAreaNum = 0;
}
onClipEvent (enterFrame) {
if (ballFreeze == false) {
this.ballRotate._rotation = this.ballRotate._rotation + (2 * xSpeed);
if (xMove == true) {
if (hitFloor == true) {
xSpeed = xSpeed * friction;
if ((xSpeed < 0.5) and (xSpeed > -0.5)) {
xSpeed = 0;
xMove = false;
}
}
this._x = this._x + xSpeed;
i = 1;
while (i <= _root.walls) {
if (this.test.hitTest(_root["wall" + i])) {
if (xSpeed > 0) {
this._x = (_root["wall" + i]._x - (_root["wall" + i]._width / 2)) - radius;
} else {
this._x = (_root["wall" + i]._x + (_root["wall" + i]._width / 2)) + radius;
}
xSpeed = xSpeed * (-xDamp);
}
i++;
}
}
if (yMove == true) {
if (ySpeed > 0) {
falling = true;
} else if (ySpeed < 0) {
falling = false;
}
ySpeed = ySpeed + gravity;
this._y = this._y + ySpeed;
i = 1;
while (i <= _root.floors) {
if (this.test.hitTest(_root["floor" + i])) {
if (falling == true) {
this._y = (_root["floor" + i]._y - (_root["floor" + i]._height / 2)) - radius;
falling = false;
ySpeed = ySpeed * (-yDamp);
hitFloorNum++;
if ((ySpeed > -3) and (ySpeed < 3)) {
ySpeed = 0;
yMove = false;
floorName = _root["floor" + i]._name;
}
} else {
this._y = (_root["floor" + i]._y + (_root["floor" + i]._height / 2)) + radius;
falling = true;
ySpeed = ySpeed * (-yDamp);
}
}
i++;
}
} else if (_root[floorName].hitTest(_root.ball._x, _root.ball._y + radius)) {
hitFloorNum = 1;
hitFloor = true;
} else {
yMove = true;
ySpeed = 0;
falling = true;
hitFloor = false;
}
if (hitFloorNum == 1) {
hitFloor = true;
hitFloorNum = 0;
} else {
hitFloorNum = 0;
hitFloor = false;
}
if ((p1Finish == true) and (p2Finish == true)) {
ballFreeze = true;
this._visible = false;
_root.levelTransition.active = true;
}
if (p1ClickNum == p2ClickNum) {
_root["hitArea" + p1ClickNum].gotoAndStop("both");
} else {
_root["hitArea" + p1ClickNum].gotoAndStop("blue");
_root["hitArea" + p2ClickNum].gotoAndStop("red");
}
i = 1;
while (i <= _root.hitAreaNum) {
if ((i != p1ClickNum) and (i != p2ClickNum)) {
_root["hitArea" + i].gotoAndStop(1);
}
i++;
}
}
}
onClipEvent (mouseDown) {
if (_root.paused == false) {
if (ballFreeze == false) {
if (p1ClickNum <= _root.hitAreaNum) {
_root.marker.duplicateMovieClip("marker" + depth, depth);
_root["marker" + depth]._x = this._x;
_root["marker" + depth]._y = this._y;
_root["marker" + depth]._width = 2 * radius;
_root["marker" + depth]._height = 2 * radius;
_root["marker" + depth]._alpha = 50;
xDist = _root["marker" + depth]._x - _root["hitArea" + p1ClickNum]._x;
yDist = _root["marker" + depth]._y - _root["hitArea" + p1ClickNum]._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
maxDist = 2 * radius;
interval = maxDist / 5;
if (distance > maxDist) {
_root["marker" + depth].gotoAndStop(7);
_root.p1Black++;
_root.p1Miss++;
_root.playSound("blackSound");
} else if ((distance < maxDist) and (distance > (maxDist - interval))) {
_root["marker" + depth].gotoAndStop(6);
_root.p1Red++;
_root.playSound("redSound");
} else if ((distance < (maxDist - interval)) and (distance > (maxDist - (2 * interval)))) {
_root["marker" + depth].gotoAndStop(5);
_root.p1Orange++;
_root.playSound("orangeSound");
} else if ((distance < (maxDist - (2 * interval))) and (distance > (maxDist - (3 * interval)))) {
_root["marker" + depth].gotoAndStop(4);
_root.p1Yellow++;
_root.playSound("yellowSound");
} else if ((distance < (maxDist - (3 * interval))) and (distance > (maxDist - (4 * interval)))) {
_root["marker" + depth].gotoAndStop(3);
_root.p1Magenta++;
_root.playSound("magentaSound");
} else if ((distance < (maxDist - (4 * interval))) and (distance > 0)) {
_root["marker" + depth].gotoAndStop(2);
_root.p1Green++;
_root.playSound("greenSound");
}
depth++;
p1ClickNum++;
_root.ball.swapDepths(depth + 1);
if (p1ClickNum > _root.hitAreaNum) {
p1Finish = true;
} else {
this.swapDepths(depth + 1);
}
}
}
}
}
onClipEvent (keyDown) {
if (Key.getCode() == 32) {
if (_root.paused == false) {
if (ballFreeze == false) {
if (p2ClickNum <= _root.hitAreaNum) {
_root.marker.duplicateMovieClip("marker" + depth, depth);
_root["marker" + depth]._x = this._x;
_root["marker" + depth]._y = this._y;
_root["marker" + depth]._width = 2 * radius;
_root["marker" + depth]._height = 2 * radius;
_root["marker" + depth]._alpha = 50;
xDist = _root["marker" + depth]._x - _root["hitArea" + p2ClickNum]._x;
yDist = _root["marker" + depth]._y - _root["hitArea" + p2ClickNum]._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
maxDist = 2 * radius;
interval = maxDist / 5;
if (distance > maxDist) {
_root["marker" + depth].gotoAndStop(7);
_root.p2Black++;
_root.p2Miss++;
_root.playSound("blackSound");
} else if ((distance < maxDist) and (distance > (maxDist - interval))) {
_root["marker" + depth].gotoAndStop(6);
_root.p2Red++;
_root.playSound("redSound");
} else if ((distance < (maxDist - interval)) and (distance > (maxDist - (2 * interval)))) {
_root["marker" + depth].gotoAndStop(5);
_root.p2Orange++;
_root.playSound("orangeSound");
} else if ((distance < (maxDist - (2 * interval))) and (distance > (maxDist - (3 * interval)))) {
_root["marker" + depth].gotoAndStop(4);
_root.p2Yellow++;
_root.playSound("yellowSound");
} else if ((distance < (maxDist - (3 * interval))) and (distance > (maxDist - (4 * interval)))) {
_root["marker" + depth].gotoAndStop(3);
_root.p2Magenta++;
_root.playSound("magentaSound");
} else if ((distance < (maxDist - (4 * interval))) and (distance > 0)) {
_root["marker" + depth].gotoAndStop(2);
_root.p2Green++;
_root.playSound("greenSound");
}
depth++;
p2ClickNum++;
_root.ball.swapDepths(depth + 1);
if (p2ClickNum > _root.hitAreaNum) {
p2Finish = true;
} else {
this.swapDepths(depth + 1);
}
}
}
}
}
}
Frame 72
markerReset();
Frame 73
multiScoreReset();
floors = 4;
walls = 3;
hitAreaNum = 6;
ball.reset();
ball._x = 142;
ball._y = 395;
level = 12;
Instance of Symbol 101 MovieClip "popInMC" in Frame 73
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (popping == true) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
_root.hitArea1.gotoAndStop("both");
}
}
}
Instance of Symbol 60 MovieClip in Frame 73
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
if (this.hitTest(_root.ball)) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -35;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 73
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 21;
_root.ball.xMove = true;
_root.ball.xSpeed = -30;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 73
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 21;
_root.ball.xMove = true;
_root.ball.xSpeed = 30;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 74
markerReset();
Frame 75
multiScoreReset();
floors = 5;
walls = 6;
hitAreaNum = 8;
ball.reset();
ball._x = 42;
ball._y = 110;
level = 13;
Instance of Symbol 101 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 15;
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -2;
_root.ball.xMove = true;
_root.ball.xSpeed = 12;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 75
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (popping == true) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
_root.hitArea1.gotoAndStop("both");
}
}
}
Instance of Symbol 60 MovieClip in Frame 75
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -35;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 75
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 10;
_root.ball.xMove = true;
_root.ball.xSpeed = -9;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 75
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -30;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 75
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 10;
_root.ball.xMove = true;
_root.ball.xSpeed = -30;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 75
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -30;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 75
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 10;
_root.ball.xMove = true;
_root.ball.xSpeed = -20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 75
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y + _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = 10;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 76
markerReset();
Frame 77
multiScoreReset();
floors = 2;
walls = 2;
hitAreaNum = 9;
ball.reset();
ball._x = 325;
ball._y = 240;
level = 14;
Instance of Symbol 101 MovieClip in Frame 77
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 15;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip in Frame 77
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 77
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (popping == true) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
_root.hitArea1.gotoAndStop("both");
}
}
}
Instance of Symbol 60 MovieClip in Frame 77
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - _root.ball.radius;
_root.ball._y = this._y;
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -13;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 77
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -30;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 243 MovieClip "hammer" in Frame 77
onClipEvent (load) {
hammerWidth = this._height;
hammerHeight = this._width;
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 20;
}
onClipEvent (enterFrame) {
if (_root.ball.ballFreeze == true) {
this.stop();
} else {
this.play();
}
if (active == true) {
if (_root.ball.hitTest(this.hitTest1)) {
_root.ball._x = this._x + (hammerWidth / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -3;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
} else if (_root.ball.hitTest(this.hitTest2)) {
_root.ball._x = this._x - (hammerWidth / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -3;
_root.ball.xMove = true;
_root.ball.xSpeed = -20;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 77
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -30;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 77
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + _root.ball.radius;
_root.ball._y = this._y;
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 13;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 78
markerReset();
Frame 79
multiScoreReset();
floors = 3;
walls = 3;
hitAreaNum = 7;
ball.reset();
ball._x = 45;
ball._y = 400;
level = 15;
Instance of Symbol 101 MovieClip in Frame 79
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 5;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 79
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (popping == true) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
_root.hitArea1.gotoAndStop("both");
}
}
}
Instance of Symbol 60 MovieClip in Frame 79
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -35;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 79
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - _root.ball.radius;
_root.ball._y = this._y;
_root.ball.yMove = true;
_root.ball.ySpeed = 3;
_root.ball.xMove = true;
_root.ball.xSpeed = -13;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 444 MovieClip "suction" in Frame 79
onClipEvent (load) {
ballGet = false;
timer = 0;
}
onClipEvent (enterFrame) {
if (_root.ball.ballFreeze == false) {
this._x = this._x + 5;
}
if (timer <= 0) {
if (this._x > 575) {
this._x = -25;
this.prevFrame();
}
if (ballGet == false) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
this.wind._visible = false;
ballGet = true;
}
}
if ((this._x > 500) and (this._x < 506)) {
if (ballGet == true) {
ballGet = false;
this.nextFrame();
_root.ball.yMove = true;
_root.ball.ySpeed = 10;
timer = 20;
} else {
this.nextFrame();
timer = 20;
}
}
if (ballGet == true) {
_root.ball._x = this._x;
_root.ball._y = this._y;
_root.ball.yMove = false;
_root.ball.xMove = false;
}
} else {
timer--;
}
}
Instance of Symbol 444 MovieClip "suction" in Frame 79
onClipEvent (load) {
ballGet = false;
timer = 0;
}
onClipEvent (enterFrame) {
if (_root.ball.ballFreeze == false) {
this._x = this._x + 5;
}
if (timer <= 0) {
if (this._x > 575) {
this._x = -25;
this.prevFrame();
}
if (ballGet == false) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
this.wind._visible = false;
ballGet = true;
}
}
if ((this._x > 500) and (this._x < 506)) {
if (ballGet == true) {
ballGet = false;
this.nextFrame();
_root.ball.yMove = true;
_root.ball.ySpeed = 10;
timer = 20;
} else {
this.nextFrame();
timer = 20;
}
}
if (ballGet == true) {
_root.ball._x = this._x;
_root.ball._y = this._y;
_root.ball.yMove = false;
_root.ball.xMove = false;
}
} else {
timer--;
}
}
Frame 80
markerReset();
Frame 81
multiScoreReset();
floors = 3;
walls = 2;
hitAreaNum = 9;
ball.reset();
ball._x = 45;
ball._y = 380;
level = 16;
Instance of Symbol 101 MovieClip "popInMC" in Frame 81
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (popping == true) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
_root.hitArea1.gotoAndStop("both");
}
}
}
Instance of Symbol 60 MovieClip in Frame 81
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -18;
_root.ball.xMove = true;
_root.ball.xSpeed = 12;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 81
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + _root.ball.radius;
_root.ball._y = this._y;
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 81
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - _root.ball.radius;
_root.ball._y = this._y;
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 305 MovieClip "swing" in Frame 81
onClipEvent (load) {
active = false;
fireBall = false;
this.swapDepths(25);
}
onClipEvent (enterFrame) {
if (active == false) {
if (this.test.hitTest(_root.ball._x, _root.ball._y)) {
this.play();
_root.playSound("whoosh");
_root.ball._visible = false;
active = true;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
_root.ball.ySpeed = 0;
_root.ball._x = 600;
_root.ball._y = -100;
fireBall = false;
}
}
if (active == true) {
if (fireBall == true) {
if (downPosition == false) {
_root.ball._x = this._x - (this._width / 2);
_root.ball._y = (this._y - this._height) + 25;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
_root.ball.ySpeed = -1;
_root.ball._visible = true;
active = false;
fireBall = false;
} else if (downPosition == true) {
_root.ball._x = this._x - (this._width / 2);
_root.ball._y = (this._y + this._height) - 30;
_root.ball.xMove = true;
_root.ball.xSpeed = -23;
_root.ball.ySpeed = -1;
_root.ball._visible = true;
active = false;
fireBall = false;
}
}
}
}
Frame 82
markerReset();
Frame 83
multiScoreReset();
floors = 3;
walls = 2;
hitAreaNum = 11;
ball.reset();
ball._x = 345;
ball._y = 150;
swing.getNextHighestDepth();
swing.removeMovieClip();
level = 17;
Instance of Symbol 101 MovieClip in Frame 83
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -2;
_root.ball.xMove = true;
_root.ball.xSpeed = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip in Frame 83
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -2;
_root.ball.xMove = true;
_root.ball.xSpeed = 10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip in Frame 83
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -2;
_root.ball.xMove = true;
_root.ball.xSpeed = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip in Frame 83
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -2;
_root.ball.xMove = true;
_root.ball.xSpeed = 10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip in Frame 83
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 5;
_root.ball.xMove = true;
_root.ball.xSpeed = -18;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 83
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (popping == true) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
_root.hitArea1.gotoAndStop("both");
}
}
}
Instance of Symbol 60 MovieClip in Frame 83
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -16;
_root.ball.xMove = true;
_root.ball.xSpeed = 12;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 83
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - _root.ball.radius;
_root.ball._y = this._y;
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 83
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -22;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 83
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -25;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 83
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -18;
_root.ball.xMove = true;
_root.ball.xSpeed = -14;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 444 MovieClip "suction" in Frame 83
onClipEvent (load) {
ballGet = false;
timer = 0;
}
onClipEvent (enterFrame) {
if (_root.ball.ballFreeze == false) {
this._x = this._x + 5;
}
if (timer <= 0) {
if (this._x > 575) {
this._x = -25;
this.prevFrame();
}
if (ballGet == false) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
this.wind._visible = false;
ballGet = true;
}
}
if ((this._x > 500) and (this._x < 506)) {
if (ballGet == true) {
ballGet = false;
this.nextFrame();
_root.ball.yMove = true;
_root.ball.ySpeed = 10;
timer = 20;
} else {
this.nextFrame();
timer = 20;
}
}
if (ballGet == true) {
_root.ball._x = this._x;
_root.ball._y = this._y;
_root.ball.yMove = false;
_root.ball.xMove = false;
}
} else {
timer--;
}
}
Instance of Symbol 444 MovieClip "suction" in Frame 83
onClipEvent (load) {
ballGet = false;
timer = 0;
}
onClipEvent (enterFrame) {
if (_root.ball.ballFreeze == false) {
this._x = this._x + 5;
}
if (timer <= 0) {
if (this._x > 575) {
this._x = -25;
this.prevFrame();
}
if (ballGet == false) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
this.wind._visible = false;
ballGet = true;
}
}
if ((this._x > 500) and (this._x < 506)) {
if (ballGet == true) {
ballGet = false;
this.nextFrame();
_root.ball.yMove = true;
_root.ball.ySpeed = 5;
timer = 20;
} else {
this.nextFrame();
timer = 20;
}
}
if (ballGet == true) {
_root.ball._x = this._x;
_root.ball._y = this._y;
_root.ball.yMove = false;
_root.ball.xMove = false;
}
} else {
timer--;
}
}
Frame 84
markerReset();
Frame 85
multiScoreReset();
floors = 1;
walls = 2;
hitAreaNum = 13;
ball.reset();
ball._x = 45;
ball._y = 100;
level = 18;
Instance of Symbol 101 MovieClip "popInMC" in Frame 85
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (popping == true) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
_root.hitArea1.gotoAndStop("both");
}
}
}
Instance of Symbol 60 MovieClip in Frame 85
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -15;
_root.ball.xMove = true;
_root.ball.xSpeed = 21;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 85
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -15;
_root.ball.xMove = true;
_root.ball.xSpeed = 21;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 85
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -15;
_root.ball.xMove = true;
_root.ball.xSpeed = 21;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 85
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -15;
_root.ball.xMove = true;
_root.ball.xSpeed = -21;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 85
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -15;
_root.ball.xMove = true;
_root.ball.xSpeed = -21;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 85
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y - (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = -28;
_root.ball.xMove = true;
_root.ball.xSpeed = -20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 86
markerReset();
Frame 87
multiScoreReset();
floors = 3;
walls = 2;
hitAreaNum = 11;
ball.reset();
ball._x = 38;
ball._y = 380;
level = 19;
Instance of Symbol 101 MovieClip in Frame 87
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x - (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 2;
_root.ball.xMove = true;
_root.ball.xSpeed = -18;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 101 MovieClip "popInMC" in Frame 87
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (popping == true) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
_root.hitArea1.gotoAndStop("both");
}
}
}
Instance of Symbol 60 MovieClip in Frame 87
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - _root.ball.radius;
_root.ball._y = this._y;
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -22;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 87
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -40;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 87
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x + _root.ball.radius;
_root.ball._y = this._y;
_root.ball.yMove = true;
_root.ball.ySpeed = -1;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
this.play();
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 305 MovieClip "swing2" in Frame 87
onClipEvent (load) {
active = false;
fireBall = false;
this.swapDepths(25);
}
onClipEvent (enterFrame) {
if (active == false) {
if (this.test.hitTest(_root.ball._x, _root.ball._y)) {
this.play();
_root.playSound("whoosh");
_root.ball._visible = false;
active = true;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
_root.ball.ySpeed = 0;
_root.ball._x = 600;
_root.ball._y = -100;
fireBall = false;
}
}
if (active == true) {
if (fireBall == true) {
if (downPosition == false) {
_root.ball._x = this._x - (this._width / 2);
_root.ball._y = (this._y - this._height) + 25;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
_root.ball.ySpeed = -1;
_root.ball._visible = true;
active = false;
fireBall = false;
} else if (downPosition == true) {
_root.ball._x = this._x - (this._width / 2);
_root.ball._y = (this._y + this._height) - 30;
_root.ball.xMove = true;
_root.ball.xSpeed = -20;
_root.ball.ySpeed = -1;
_root.ball._visible = true;
active = false;
fireBall = false;
}
}
}
}
Instance of Symbol 305 MovieClip "swing1" in Frame 87
onClipEvent (load) {
active = false;
fireBall = false;
this.swapDepths(25);
}
onClipEvent (enterFrame) {
if (active == false) {
if (this.test.hitTest(_root.ball._x, _root.ball._y)) {
this.play();
_root.playSound("whoosh");
_root.ball._visible = false;
active = true;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
_root.ball.ySpeed = 0;
_root.ball._x = 600;
_root.ball._y = -100;
fireBall = false;
}
}
if (active == true) {
if (fireBall == true) {
if (downPosition == false) {
_root.ball._x = this._x + (this._width / 2);
_root.ball._y = (this._y - this._height) + 25;
_root.ball.xMove = true;
_root.ball.xSpeed = 15;
_root.ball.ySpeed = -1;
_root.ball._visible = true;
active = false;
fireBall = false;
} else if (downPosition == true) {
_root.ball._x = this._x + (this._width / 2);
_root.ball._y = (this._y + this._height) - 30;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
_root.ball.ySpeed = -1;
_root.ball._visible = true;
active = false;
fireBall = false;
}
}
}
}
Frame 88
markerReset();
Frame 89
multiScoreReset();
floors = 5;
walls = 2;
hitAreaNum = 12;
ball.reset();
ball._x = 180;
ball._y = 400;
swing1.getNextHighestDepth();
swing1.removeMovieClip();
swing2.getNextHighestDepth();
swing2.removeMovieClip();
level = 20;
Instance of Symbol 101 MovieClip "popInMC" in Frame 89
onClipEvent (load) {
timer = 3;
i = 1;
popping = true;
}
onClipEvent (enterFrame) {
if (popping == true) {
if (i <= _root.hitAreaNum) {
timer--;
if (timer <= 0) {
_root["hitArea" + i].popIn.play();
_root.playSound("pop" + i);
i++;
timer = 3;
}
} else {
popping = false;
_root.hitArea1.gotoAndStop("both");
}
}
}
Instance of Symbol 243 MovieClip "hammer" in Frame 89
onClipEvent (load) {
hammerWidth = this._height;
hammerHeight = this._width;
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 20;
}
onClipEvent (enterFrame) {
if (_root.ball.ballFreeze == true) {
this.stop();
} else {
this.play();
}
if (active == true) {
if (_root.ball.hitTest(this.hitTest1)) {
_root.ball._x = (this._x + (hammerWidth / 2)) + 10;
_root.ball.yMove = true;
_root.ball.ySpeed = -5;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
active = false;
if (_root.ball.p1Finish == false) {
_root.ball.p1Rev++;
}
if (_root.ball.p2Finish == false) {
_root.ball.p2Rev++;
}
} else if (_root.ball.hitTest(this.hitTest2)) {
_root.ball.yMove = true;
_root.ball.ySpeed = -30;
_root.ball.xMove = true;
_root.ball.xSpeed = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 89
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - _root.ball.radius;
_root.ball._y = this._y;
_root.ball.yMove = true;
_root.ball.ySpeed = -1;
_root.ball.xMove = true;
_root.ball.xSpeed = -25;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 305 MovieClip "swing" in Frame 89
onClipEvent (load) {
active = false;
fireBall = false;
this.swapDepths(25);
}
onClipEvent (enterFrame) {
if (active == false) {
if (this.test.hitTest(_root.ball._x, _root.ball._y)) {
this.play();
_root.playSound("whoosh");
_root.ball._visible = false;
active = true;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
_root.ball.ySpeed = 0;
_root.ball._x = 600;
_root.ball._y = -100;
fireBall = false;
}
}
if (active == true) {
if (fireBall == true) {
if (downPosition == false) {
_root.ball._x = this._x - (this._width / 2);
_root.ball._y = (this._y - this._height) + 25;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
_root.ball.ySpeed = -1;
_root.ball._visible = true;
active = false;
fireBall = false;
} else if (downPosition == true) {
_root.ball._x = this._x - (this._width / 2);
_root.ball._y = (this._y + this._height) - 30;
_root.ball.xMove = true;
_root.ball.xSpeed = -20;
_root.ball.ySpeed = -1;
_root.ball._visible = true;
active = false;
fireBall = false;
}
}
}
}
Instance of Symbol 101 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.ball._x = this._x + (_root.ball.radius / 2);
_root.ball._y = this._y + (_root.ball.radius / 2);
_root.ball.yMove = true;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 15;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 89
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x;
_root.ball._y = this._y - _root.ball.radius;
_root.ball.yMove = true;
_root.ball.ySpeed = -30;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 60 MovieClip in Frame 89
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
timer = 0;
}
onClipEvent (enterFrame) {
if (active == true) {
xDist = this._x - _root.ball._x;
yDist = this._y - _root.ball._y;
distance = Math.sqrt((xDist * xDist) + (yDist * yDist));
if (distance <= _root.ball.radius) {
_root.playSound("spring");
_root.ball._x = this._x - _root.ball.radius;
_root.ball._y = this._y;
_root.ball.yMove = true;
_root.ball.ySpeed = -1;
_root.ball.xMove = true;
_root.ball.xSpeed = -25;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 90
swing.getNextHighestDepth();
swing.removeMovieClip();
markerReset();
_root.ball.getNextHighestDepth();
_root.ball.removeMovieClip();
stopAllSounds();
nextFrame();
Frame 91
stop();
Symbol 46 Button
on (release) {
_root.nextFrame();
}
Symbol 47 MovieClip [[NGL]_LOADER] Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 47 MovieClip [[NGL]_LOADER] Frame 2
gotoAndPlay (1);
Symbol 49 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 1
Symbol 50 MovieClip Frame 11
Symbol 50 MovieClip Frame 12
stop();
this.removeMovieClip();
Symbol 51 MovieClip [firework] Frame 1
sparkNum = 30;
n = 1;
while (n <= sparkNum) {
spark1.duplicateMovieClip("spark" + n, n);
setProperty("spark" + n, _xscale , random(75) + 25);
setProperty("spark" + n, _yscale , random(75) + 25);
setProperty("spark" + n, _rotation , random(360) + 1);
_parent.sparkEffect["spark" + n].sparkColor.gotoAndStop(colorNum);
n++;
}
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 23
gotoAndStop (1);
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 13
stop();
Symbol 68 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 20
gotoAndPlay (1);
Symbol 74 Button
on (release) {
_root.openOfflineProtectionLink();
}
Symbol 519 MovieClip [__Packages.md5] Frame 0
class md5
{
function md5 (b64pad, chrsz) {
if (b64pad != undefined) {
this.b64pad = b64pad;
}
if (((chrsz != undefined) && (chrsz == 8)) || (chrsz == 16)) {
this.chrsz = chrsz;
}
}
function hash(s) {
return(hex_md5(s));
}
function hex_md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * chrsz)));
}
function b64_md5(s) {
return(binl2b64(core_md5(str2binl(s), s.length * chrsz)));
}
function str_md5(s) {
return(binl2str(core_md5(str2binl(s), s.length * chrsz)));
}
function hex_hmac_md5(key, data) {
return(binl2hex(core_hmac_md5(key, data)));
}
function b64_hmac_md5(key, data) {
return(binl2b64(core_hmac_md5(key, data)));
}
function str_hmac_md5(key, data) {
return(binl2str(core_hmac_md5(key, data)));
}
function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local5 = 1732584193 /* 0x67452301 */;
var _local4 = -271733879;
var _local3 = -1732584194;
var _local2 = 271733878 /* 0x10325476 */;
var _local6 = 0;
while (_local6 < x.length) {
var _local11 = _local5;
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 0], 7, -680876936);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 1], 12, -389564586);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 2], 17, 606105819);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 3], 22, -1044525330);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 4], 7, -176418897);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 5], 12, 1200080426);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 6], 17, -1473231341);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 7], 22, -45705983);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 8], 7, 1770035416);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 9], 12, -1958414417);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 10], 17, -42063);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 11], 22, -1990404162);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 12], 7, 1804603682);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 13], 12, -40341101);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 14], 17, -1502002290);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 15], 22, 1236535329);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 1], 5, -165796510);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 6], 9, -1069501632);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 11], 14, 643717713);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 0], 20, -373897302);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 5], 5, -701558691);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 10], 9, 38016083);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 15], 14, -660478335);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 4], 20, -405537848);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 9], 5, 568446438);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 14], 9, -1019803690);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 3], 14, -187363961);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 8], 20, 1163531501);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 13], 5, -1444681467);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 2], 9, -51403784);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 7], 14, 1735328473);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 12], 20, -1926607734);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 5], 4, -378558);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 8], 11, -2022574463);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 11], 16, 1839030562);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 14], 23, -35309556);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 1], 4, -1530992060);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 4], 11, 1272893353);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 7], 16, -155497632);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 10], 23, -1094730640);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 13], 4, 681279174);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 0], 11, -358537222);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 3], 16, -722521979);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 6], 23, 76029189);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 9], 4, -640364487);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 12], 11, -421815835);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 15], 16, 530742520);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 2], 23, -995338651);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 0], 6, -198630844);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 7], 10, 1126891415);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 14], 15, -1416354905);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 5], 21, -57434055);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 12], 6, 1700485571);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 3], 10, -1894986606);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 10], 15, -1051523);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 1], 21, -2054922799);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 8], 6, 1873313359);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 15], 10, -30611744);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 6], 15, -1560198380);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 13], 21, 1309151649);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 4], 6, -145523070);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 11], 10, -1120210379);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 2], 15, 718787259);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 9], 21, -343485551);
_local5 = safe_add(_local5, _local11);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local6 = _local6 + 16;
}
return(Array(_local5, _local4, _local3, _local2));
}
function core_hmac_md5(key, data) {
var _local3 = new Array(str2binl(key));
if (_local3.length > 16) {
_local3 = core_md5(_local3, key.length * chrsz);
}
var _local4 = new Array(16);
var _local5 = new Array(16);
var _local2 = 0;
while (_local2 < 16) {
_local4[_local2] = _local3[_local2] ^ 909522486;
_local5[_local2] = _local3[_local2] ^ 1549556828;
_local2++;
}
var _local6 = new Array(core_md5(_local4.concat(str2binl(data)), 512 + (data.length * chrsz)));
return(core_md5(_local5.concat(_local6), 640));
}
function safe_add(x, y) {
var _local1 = new Number((x & 65535) + (y & 65535));
var _local2 = new Number(((x >> 16) + (y >> 16)) + (_local1 >> 16));
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local4 = new Array();
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (str.length * chrsz)) {
_local4[_local2 >> 5] = _local4[_local2 >> 5] | ((str.charCodeAt(_local2 / chrsz) & _local5) << (_local2 % 32));
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2str(bin) {
var _local4 = new String("");
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (bin.length * 32)) {
_local4 = _local4 + String.fromCharCode((bin[_local2 >> 5] >>> (_local2 % 32)) & _local5);
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2hex(binarray) {
var _local3 = "0123456789abcdef";
var _local4 = new String("");
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
function binl2b64(binarray) {
var _local7 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local5 = new String("");
var _local3 = 0;
while (_local3 < (binarray.length * 4)) {
var _local6 = ((((binarray[_local3 >> 2] >> (8 * (_local3 % 4))) & 255) << 16) | (((binarray[(_local3 + 1) >> 2] >> (8 * ((_local3 + 1) % 4))) & 255) << 8)) | ((binarray[(_local3 + 2) >> 2] >> (8 * ((_local3 + 2) % 4))) & 255);
var _local2 = 0;
while (_local2 < 4) {
if (((_local3 * 8) + (_local2 * 6)) > (binarray.length * 32)) {
_local5 = _local5 + b64pad;
} else {
_local5 = _local5 + _local7.charAt((_local6 >> (6 * (3 - _local2))) & 63);
}
_local2++;
}
_local3 = _local3 + 3;
}
return(_local5);
}
var b64pad = new String("");
var chrsz = new Number(8);
}
Symbol 520 MovieClip [__Packages.Particle] Frame 0
class Particle
{
var _stageWidth, _stageHeight, clip, _xVel, _yVel;
function Particle (libParticle, xpos, ypos, stageWidth, stageHeight) {
_stageWidth = stageWidth;
_stageHeight = stageHeight;
clip = libParticle;
clip._x = xpos;
clip._y = ypos;
}
function setVel(xvel, yvel) {
_xVel = xvel;
_yVel = yvel;
}
function setSize(size) {
clip._width = size;
clip._height = size;
}
function setAlphaDecr(val) {
_alphaDecr = val;
}
function update() {
clip._x = clip._x + _xVel;
clip._y = clip._y + _yVel;
clip._alpha = clip._alpha - _alphaDecr;
}
function destroy() {
removeMovieClip(clip);
}
var _alphaDecr = 0;
}
Symbol 521 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 522 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 523 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 524 MovieClip [__Packages.Delay] Frame 0
class Delay
{
var m_fn, m_param, m_context, m_delay, m_started, m_timerId;
function Delay (context, fn, delay) {
m_fn = fn;
m_param = new Array();
var _local3 = 3;
while (_local3 < arguments.length) {
m_param.push(arguments[_local3]);
_local3++;
}
m_context = context;
m_delay = delay;
m_started = getTimer();
m_timerId = setInterval(mx.utils.Delegate.create(this, onEvent), delay);
}
function onEvent() {
if (getTimer() >= (m_delay + m_started)) {
clearInterval(m_timerId);
m_fn.apply(m_context, m_param);
m_fn = undefined;
m_param = undefined;
}
}
static function oneShot(context, fn, delay) {
var _local3 = new Delay(context, fn, delay);
_local3.m_param = new Array();
var _local2 = 3;
while (_local2 < arguments.length) {
_local3.m_param.push(arguments[_local2]);
_local2++;
}
}
}
Symbol 525 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 526 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 527 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}
Symbol 528 MovieClip [__Packages.AnimDriver] Frame 0
class AnimDriver extends MovieClip
{
var fps, pauseOffset, gotoAndStop, loop, startTime, onEnterFrame, _totalframes;
function AnimDriver () {
super();
}
function initAnimDriver(p_fps) {
fps = p_fps;
pauseOffset = 0;
}
function playAnim(p_frame, p_loop) {
gotoAndStop(p_frame);
loop = p_loop;
startTime = getTimer();
onEnterFrame = mx.utils.Delegate.create(this, updateAnim);
}
function disableAnim() {
onEnterFrame = undefined;
}
function jumpTo(p_frame) {
stopAnim();
playAnim(p_frame);
}
function pauseAnim() {
pauseOffset = getTimer();
onEnterFrame = undefined;
}
function stopAnim() {
startTime = 1;
onEnterFrame = undefined;
}
function updateAnim() {
var _local3 = getTimer();
var _local4 = (1 / fps) * 1000;
var _local2 = Math.round(((_local3 - startTime) / _local4) + 1);
if (_local2 >= _totalframes) {
startTime = _local3;
_local2 = _totalframes;
if (!loop) {
stopAnim();
}
}
gotoAndStop(_local2);
}
}
Symbol 78 MovieClip Frame 80
_root.fireFire();
Symbol 78 MovieClip Frame 119
stop();
Symbol 80 MovieClip Frame 73
stop();
_root.showPlayBtn();
Symbol 92 MovieClip Frame 1
stop();
Symbol 93 MovieClip [KingLoader] Frame 1
#initclip 11
Object.registerClass("KingLoader", AnimDriver);
#endinitclip
Symbol 97 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 109 Button
on (release) {
nextFrame();
}
Symbol 114 Button
on (release) {
_root.nextFrame();
}
Symbol 119 Button
on (release) {
_root.gotoAndStop("credits");
}
Symbol 124 Button
on (release) {
_root.openOtherGamesLink();
}
Symbol 128 Button
on (release) {
_root.openAddToWebsiteLink();
}
Symbol 133 Button
on (release) {
_root.openHighscoresLink();
}
Symbol 136 Button
on (release) {
_root.fade.play();
_root.fade.playMode = "single";
_root.codeClip.soundFade = true;
}
Symbol 139 Button
on (release) {
_root.fade.play();
_root.fade.playMode = "multi";
_root.stopAllSounds();
_root.codeClip.soundFade = true;
}
Symbol 142 Button
on (release) {
prevFrame();
}
Symbol 151 Button
on (release) {
_root.gotoAndStop("training");
}
Symbol 152 MovieClip Frame 1
stop();
Symbol 160 Button
on (release) {
_root.openSignLink();
}
Symbol 162 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 30
stopAllSounds();
_root.gotoAndStop(playMode);
Symbol 162 MovieClip Frame 31
play();
Symbol 162 MovieClip Frame 60
stop();
Instance of Symbol 168 MovieClip "slider" in Symbol 169 MovieClip Frame 1
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.startDrag(false, 0, -13.3, 200, -13.3);
}
}
onClipEvent (mouseUp) {
this.stopDrag();
}
Symbol 173 Button
on (release) {
_root._quality = "LOW";
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 176 Button
on (release) {
_root._quality = "MEDIUM";
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 179 Button
on (release) {
_root._quality = "HIGH";
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 184 MovieClip Frame 1
stop();
_root.musicMute = false;
Symbol 184 MovieClip Frame 2
_root.musicMute = true;
Symbol 185 MovieClip Frame 1
stop();
_root.soundMute = false;
Symbol 185 MovieClip Frame 2
_root.soundMute = true;
Symbol 186 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 208 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 1
stop();
Instance of Symbol 243 MovieClip "swing" in Symbol 244 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 8) {
this._visible = false;
}
}
Symbol 247 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 1
stop();
Instance of Symbol 243 MovieClip "swing" in Symbol 254 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 10) {
this._visible = false;
}
}
Symbol 257 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 1
stop();
Instance of Symbol 243 MovieClip "swing" in Symbol 274 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 14) {
this._visible = false;
}
}
Symbol 277 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 1
stop();
downPosition = true;
fireBall = true;
Symbol 305 MovieClip Frame 2
fireBall = false;
Symbol 305 MovieClip Frame 21
stop();
downPosition = false;
fireBall = true;
Symbol 305 MovieClip Frame 22
fireBall = false;
Symbol 305 MovieClip Frame 41
gotoAndStop (1);
Instance of Symbol 305 MovieClip "swing" in Symbol 306 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 16) {
this._visible = false;
}
}
Symbol 309 MovieClip Frame 1
stop();
Symbol 314 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 1
stop();
Instance of Symbol 305 MovieClip "swing1" in Symbol 321 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 19) {
this._visible = false;
}
}
Instance of Symbol 305 MovieClip "swing2" in Symbol 321 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 19) {
this._visible = false;
}
}
Symbol 324 MovieClip Frame 1
stop();
Instance of Symbol 243 MovieClip "swing1" in Symbol 326 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 20) {
this._visible = false;
}
}
Instance of Symbol 305 MovieClip "swing2" in Symbol 326 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 20) {
this._visible = false;
}
}
Symbol 329 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 16
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 331 MovieClip Frame 33
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 331 MovieClip Frame 50
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 331 MovieClip Frame 67
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 331 MovieClip Frame 84
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 331 MovieClip Frame 101
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 331 MovieClip Frame 118
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 331 MovieClip Frame 137
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 331 MovieClip Frame 156
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 331 MovieClip Frame 173
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 331 MovieClip Frame 192
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 331 MovieClip Frame 211
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 331 MovieClip Frame 230
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 331 MovieClip Frame 249
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 331 MovieClip Frame 268
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 331 MovieClip Frame 287
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 331 MovieClip Frame 306
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 331 MovieClip Frame 327
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 331 MovieClip Frame 346
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Instance of Symbol 355 MovieClip "bonus1" in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.missNum == 0) {
active = true;
_root.levelTransition.levelScore = _root.levelTransition.levelScore + 20;
_root.levelTransition.bonusScore = _root.levelTransition.bonusScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 357 MovieClip "bonus2" in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.greenNum >= (_root.hitAreaNum - Math.floor(_root.hitAreaNum / 3))) {
active = true;
_root.levelTransition.levelScore = _root.levelTransition.levelScore + 20;
_root.levelTransition.bonusScore = _root.levelTransition.bonusScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 359 MovieClip "bonus3" in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.ball.revolutions < 2) {
active = true;
_root.levelTransition.levelScore = _root.levelTransition.levelScore + 20;
_root.levelTransition.bonusScore = _root.levelTransition.bonusScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 361 MovieClip "bonus4" in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (((((_root.greenNum >= 1) and (_root.magentaNum >= 1)) and (_root.yellowNum >= 1)) and (_root.orangeNum >= 1)) and (_root.redNum >= 1)) {
active = true;
_root.levelTransition.levelScore = _root.levelTransition.levelScore + 30;
_root.levelTransition.bonusScore = _root.levelTransition.bonusScore + 30;
} else {
this._visible = false;
}
}
Instance of Symbol 363 MovieClip "bonus6" in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
active = false;
if ((((((_root.greenNum * 50) + (_root.magentaNum * 40)) + (_root.yellowNum * 30)) + (_root.orangeNum * 20)) + (_root.redNum * 10)) == 210) {
active = true;
_root.levelTransition.levelScore = _root.levelTransition.levelScore + 20;
_root.levelTransition.bonusScore = _root.levelTransition.bonusScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 365 MovieClip "bonus7" in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (((_root.greenNum >= 1) and (_root.yellowNum >= 1)) and (_root.redNum >= 1)) {
active = true;
_root.levelTransition.levelScore = _root.levelTransition.levelScore + 20;
_root.levelTransition.bonusScore = _root.levelTransition.bonusScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 367 MovieClip "bonus8" in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.yellowNum >= (_root.hitAreaNum - Math.floor(_root.hitAreaNum / 3))) {
active = true;
_root.levelTransition.levelScore = _root.levelTransition.levelScore + 20;
_root.levelTransition.bonusScore = _root.levelTransition.bonusScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 369 MovieClip "bonus10" in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
active = false;
if ((((((_root.greenNum * 50) + (_root.magentaNum * 40)) + (_root.yellowNum * 30)) + (_root.orangeNum * 20)) + (_root.redNum * 10)) == 300) {
active = true;
_root.levelTransition.levelScore = _root.levelTransition.levelScore + 20;
_root.levelTransition.bonusScore = _root.levelTransition.bonusScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 371 MovieClip "bonus11" in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.magentaNum >= (_root.hitAreaNum - Math.floor(_root.hitAreaNum / 3))) {
active = true;
_root.levelTransition.levelScore = _root.levelTransition.levelScore + 20;
_root.levelTransition.bonusScore = _root.levelTransition.bonusScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 373 MovieClip "bonus12" in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.orangeNum >= (_root.hitAreaNum - Math.floor(_root.hitAreaNum / 3))) {
active = true;
_root.levelTransition.levelScore = _root.levelTransition.levelScore + 20;
_root.levelTransition.bonusScore = _root.levelTransition.bonusScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 375 MovieClip "bonus13" in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.redNum >= (_root.hitAreaNum - Math.floor(_root.hitAreaNum / 3))) {
active = true;
_root.levelTransition.levelScore = _root.levelTransition.levelScore + 20;
_root.levelTransition.bonusScore = _root.levelTransition.bonusScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 377 MovieClip "bonus14" in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.missNum >= (_root.hitAreaNum - Math.floor(_root.hitAreaNum / 3))) {
active = true;
_root.levelTransition.levelScore = _root.levelTransition.levelScore + 10;
_root.levelTransition.bonusScore = _root.levelTransition.bonusScore + 10;
} else {
this._visible = false;
}
}
Symbol 378 MovieClip Frame 2
stop();
timer = 0;
posx1 = 0;
posy1 = 0;
posx2 = 0;
posy2 = 17;
posx3 = 0;
posy3 = 34;
posx4 = 0;
posy4 = 51;
posx5 = 130;
posy5 = 0;
posx6 = 130;
posy6 = 17;
posx7 = 130;
posy7 = 34;
posx8 = 130;
posy8 = 51;
n = 1;
bonusNum = 14;
i = 1;
while (i <= bonusNum) {
if (_root.levelTransition.bonuses["bonus" + i].active == true) {
_root.levelTransition.bonuses["bonus" + i]._x = _root.levelTransition.bonuses["posx" + n];
_root.levelTransition.bonuses["bonus" + i]._y = _root.levelTransition.bonuses["posy" + n];
n++;
}
i++;
}
_root.totalScore = _root.totalScore + _parent.levelScore;
Symbol 381 MovieClip Frame 1
stop();
bonusScore = 0;
levelScore = 0;
baseScore = 0;
Symbol 381 MovieClip Frame 2
baseScore = ((((_root.greenNum * 50) + (_root.magentaNum * 40)) + (_root.yellowNum * 30)) + (_root.orangeNum * 20)) + (_root.redNum * 10);
_root.playSound("levelCleared");
nextFrame();
Symbol 381 MovieClip Frame 3
levelScore = baseScore + bonusScore;
stop();
Symbol 389 MovieClip Frame 1
stop();
Symbol 389 MovieClip Frame 2
_root.greenNum++;
Instance of Symbol 51 MovieClip [firework] "sparkEffect" in Symbol 389 MovieClip Frame 2
onClipEvent (load) {
colorNum = 1;
sparkNum = 50;
}
Symbol 389 MovieClip Frame 3
_root.magentaNum++;
Instance of Symbol 51 MovieClip [firework] "sparkEffect" in Symbol 389 MovieClip Frame 3
onClipEvent (load) {
colorNum = 2;
sparkNum = 40;
}
Symbol 389 MovieClip Frame 4
_root.yellowNum++;
Instance of Symbol 51 MovieClip [firework] "sparkEffect" in Symbol 389 MovieClip Frame 4
onClipEvent (load) {
colorNum = 3;
sparkNum = 30;
}
Symbol 389 MovieClip Frame 5
_root.orangeNum++;
Instance of Symbol 51 MovieClip [firework] "sparkEffect" in Symbol 389 MovieClip Frame 5
onClipEvent (load) {
colorNum = 4;
sparkNum = 20;
}
Symbol 389 MovieClip Frame 6
_root.redNum++;
Instance of Symbol 51 MovieClip [firework] "sparkEffect" in Symbol 389 MovieClip Frame 6
onClipEvent (load) {
colorNum = 5;
sparkNum = 10;
}
Symbol 389 MovieClip Frame 7
_root.blackNum++;
_root.missNum++;
_root.misses.nextFrame();
Symbol 391 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 1
stop();
Symbol 403 Button
on (release) {
if (_root.trainingMode == false) {
nextFrame();
} else {
stopAllSounds();
_root.gotoAndStop("training");
}
}
Symbol 407 Button
on (release) {
_root.ball.getNextHighestDepth();
_root.ball.removeMovieClip();
suction1.getNextHighestDepth();
suction1.removeMovieClip();
suction2.getNextHighestDepth();
suction2.removeMovieClip();
swing1.getNextHighestDepth();
swing1.removeMovieClip();
swing2.getNextHighestDepth();
swing2.removeMovieClip();
swing.getNextHighestDepth();
swing.removeMovieClip();
stopAllSounds();
i = 1;
while (i <= 40) {
_root["marker" + i].removeMovieClip();
i++;
}
_root.gotoAndStop("menu");
_root.pauseScreen.getNextHighestDepth();
_root.pauseScreen.removeMovieClip();
}
Symbol 409 Button
on (release) {
prevFrame();
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 410 MovieClip Frame 1
stop();
Instance of Symbol 169 MovieClip in Symbol 410 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);
}
Instance of Symbol 184 MovieClip in Symbol 410 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 {
menuMusic = new Sound();
if (_root.gameMode == "single") {
menuMusic.attachSound("singleMusic");
} else if (_root.gameMode == "multi") {
menuMusic.attachSound("multiMusic");
}
menuMusic.setVolume(_root.gameVolume);
menuMusic.start(0, 100);
this.prevFrame();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 410 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();
}
}
}
Symbol 413 MovieClip Frame 1
stop();
Symbol 440 MovieClip Frame 15
gotoAndPlay (1);
Symbol 443 MovieClip Frame 10
stop();
Symbol 444 MovieClip Frame 1
stop();
Symbol 459 Button
on (release) {
nextFrame();
}
Symbol 462 Button
on (release) {
_root.submitScore(_root.totalScore);
nextFrame();
}
Instance of Symbol 355 MovieClip "bonus1" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.p1Miss == 0) {
active = true;
_root.levelTransition.p1BonusScore = _root.levelTransition.p1BonusScore + 20;
_root.levelTransition.p1LevelScore = _root.levelTransition.p1LevelScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 357 MovieClip "bonus2" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.p1Green >= (_root.hitAreaNum - Math.floor(_root.hitAreaNum / 3))) {
active = true;
_root.levelTransition.p1BonusScore = _root.levelTransition.p1BonusScore + 20;
_root.levelTransition.p1LevelScore = _root.levelTransition.p1LevelScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 359 MovieClip "bonus3" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.ball.p1Rev < 2) {
active = true;
_root.levelTransition.p1BonusScore = _root.levelTransition.p1BonusScore + 20;
_root.levelTransition.p1LevelScore = _root.levelTransition.p1LevelScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 361 MovieClip "bonus4" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (((((_root.p1Green >= 1) and (_root.p1Magenta >= 1)) and (_root.p1Yellow >= 1)) and (_root.p1Orange >= 1)) and (_root.p1Red >= 1)) {
active = true;
_root.levelTransition.p1BonusScore = _root.levelTransition.p1BonusScore + 30;
_root.levelTransition.p1LevelScore = _root.levelTransition.p1LevelScore + 30;
} else {
this._visible = false;
}
}
Instance of Symbol 363 MovieClip "bonus6" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
active = false;
if ((((((_root.p1Green * 50) + (_root.p1Magenta * 40)) + (_root.p1Yellow * 30)) + (_root.p1Orange * 20)) + (_root.p1Red * 10)) == 210) {
active = true;
_root.levelTransition.p1BonusScore = _root.levelTransition.p1BonusScore + 20;
_root.levelTransition.p1LevelScore = _root.levelTransition.p1LevelScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 365 MovieClip "bonus7" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (((_root.p1Green >= 1) and (_root.p1Yellow >= 1)) and (_root.p1Red >= 1)) {
active = true;
_root.levelTransition.p1BonusScore = _root.levelTransition.p1BonusScore + 20;
_root.levelTransition.p1LevelScore = _root.levelTransition.p1LevelScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 367 MovieClip "bonus8" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.p1Yellow >= (_root.hitAreaNum - Math.floor(_root.hitAreaNum / 3))) {
active = true;
_root.levelTransition.p1BonusScore = _root.levelTransition.p1BonusScore + 20;
_root.levelTransition.p1LevelScore = _root.levelTransition.p1LevelScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 369 MovieClip "bonus10" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
active = false;
if ((((((_root.p1Green * 50) + (_root.p1Magenta * 40)) + (_root.p1Yellow * 30)) + (_root.p1Orange * 20)) + (_root.p1Red * 10)) == 300) {
active = true;
_root.levelTransition.p1BonusScore = _root.levelTransition.p1BonusScore + 20;
_root.levelTransition.p1LevelScore = _root.levelTransition.p1LevelScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 371 MovieClip "bonus11" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.p1Magenta >= (_root.hitAreaNum - Math.floor(_root.hitAreaNum / 3))) {
active = true;
_root.levelTransition.p1BonusScore = _root.levelTransition.p1BonusScore + 20;
_root.levelTransition.p1LevelScore = _root.levelTransition.p1LevelScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 373 MovieClip "bonus12" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.p1Orange >= (_root.hitAreaNum - Math.floor(_root.hitAreaNum / 3))) {
active = true;
_root.levelTransition.p1BonusScore = _root.levelTransition.p1BonusScore + 20;
_root.levelTransition.p1LevelScore = _root.levelTransition.p1LevelScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 375 MovieClip "bonus13" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.p1Red >= (_root.hitAreaNum - Math.floor(_root.hitAreaNum / 3))) {
active = true;
_root.levelTransition.p1BonusScore = _root.levelTransition.p1BonusScore + 20;
_root.levelTransition.p1LevelScore = _root.levelTransition.p1LevelScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 377 MovieClip "bonus14" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.p1Miss >= (_root.hitAreaNum - Math.floor(_root.hitAreaNum / 3))) {
active = true;
_root.levelTransition.p1BonusScore = _root.levelTransition.p1BonusScore + 10;
_root.levelTransition.p1LevelScore = _root.levelTransition.p1LevelScore + 10;
} else {
this._visible = false;
}
}
Symbol 489 MovieClip Frame 2
stop();
timer = 0;
posx1 = 0;
posy1 = 0;
posx2 = 0;
posy2 = 17;
posx3 = 0;
posy3 = 34;
posx4 = 0;
posy4 = 51;
posx5 = 130;
posy5 = 0;
posx6 = 130;
posy6 = 17;
posx7 = 130;
posy7 = 34;
posx8 = 130;
posy8 = 51;
n = 1;
bonusNum = 14;
i = 1;
while (i <= bonusNum) {
if (_root.levelTransition.p1Bonuses["bonus" + i].active == true) {
_root.levelTransition.p1Bonuses["bonus" + i]._x = _root.levelTransition.p1Bonuses["posx" + n];
_root.levelTransition.p1Bonuses["bonus" + i]._y = _root.levelTransition.p1Bonuses["posy" + n];
n++;
}
i++;
}
Instance of Symbol 355 MovieClip "bonus1" in Symbol 490 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.p2Miss == 0) {
active = true;
_root.levelTransition.p2BonusScore = _root.levelTransition.p2BonusScore + 20;
_root.levelTransition.p2LevelScore = _root.levelTransition.p2LevelScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 357 MovieClip "bonus2" in Symbol 490 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.p2Green >= (_root.hitAreaNum - Math.floor(_root.hitAreaNum / 3))) {
active = true;
_root.levelTransition.p2BonusScore = _root.levelTransition.p2BonusScore + 20;
_root.levelTransition.p2LevelScore = _root.levelTransition.p2LevelScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 359 MovieClip "bonus3" in Symbol 490 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.ball.p2Rev < 2) {
active = true;
_root.levelTransition.p2BonusScore = _root.levelTransition.p2BonusScore + 20;
_root.levelTransition.p2LevelScore = _root.levelTransition.p2LevelScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 361 MovieClip "bonus4" in Symbol 490 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (((((_root.p2Green >= 1) and (_root.p2Magenta >= 1)) and (_root.p2Yellow >= 1)) and (_root.p2Orange >= 1)) and (_root.p2Red >= 1)) {
active = true;
_root.levelTransition.p2BonusScore = _root.levelTransition.p2BonusScore + 30;
_root.levelTransition.p2LevelScore = _root.levelTransition.p2LevelScore + 30;
} else {
this._visible = false;
}
}
Instance of Symbol 363 MovieClip "bonus6" in Symbol 490 MovieClip Frame 1
onClipEvent (load) {
active = false;
if ((((((_root.p2Green * 50) + (_root.p2Magenta * 40)) + (_root.p2Yellow * 30)) + (_root.p2Orange * 20)) + (_root.p2Red * 10)) == 210) {
active = true;
_root.levelTransition.p2BonusScore = _root.levelTransition.p2BonusScore + 20;
_root.levelTransition.p2LevelScore = _root.levelTransition.p2LevelScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 365 MovieClip "bonus7" in Symbol 490 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (((_root.p2Green >= 1) and (_root.p2Yellow >= 1)) and (_root.p2Red >= 1)) {
active = true;
_root.levelTransition.p2BonusScore = _root.levelTransition.p2BonusScore + 20;
_root.levelTransition.p2LevelScore = _root.levelTransition.p2LevelScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 367 MovieClip "bonus8" in Symbol 490 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.p2Yellow >= (_root.hitAreaNum - Math.floor(_root.hitAreaNum / 3))) {
active = true;
_root.levelTransition.p2BonusScore = _root.levelTransition.p2BonusScore + 20;
_root.levelTransition.p2LevelScore = _root.levelTransition.p2LevelScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 369 MovieClip "bonus10" in Symbol 490 MovieClip Frame 1
onClipEvent (load) {
active = false;
if ((((((_root.p2Green * 50) + (_root.p2Magenta * 40)) + (_root.p2Yellow * 30)) + (_root.p2Orange * 20)) + (_root.p2Red * 10)) == 300) {
active = true;
_root.levelTransition.p2BonusScore = _root.levelTransition.p2BonusScore + 20;
_root.levelTransition.p2LevelScore = _root.levelTransition.p2LevelScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 371 MovieClip "bonus11" in Symbol 490 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.p2Magenta >= (_root.hitAreaNum - Math.floor(_root.hitAreaNum / 3))) {
active = true;
_root.levelTransition.p2BonusScore = _root.levelTransition.p2BonusScore + 20;
_root.levelTransition.p2LevelScore = _root.levelTransition.p2LevelScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 373 MovieClip "bonus12" in Symbol 490 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.p2Orange >= (_root.hitAreaNum - Math.floor(_root.hitAreaNum / 3))) {
active = true;
_root.levelTransition.p2BonusScore = _root.levelTransition.p2BonusScore + 20;
_root.levelTransition.p2LevelScore = _root.levelTransition.p2LevelScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 375 MovieClip "bonus13" in Symbol 490 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.p2Red >= (_root.hitAreaNum - Math.floor(_root.hitAreaNum / 3))) {
active = true;
_root.levelTransition.p2BonusScore = _root.levelTransition.p2BonusScore + 20;
_root.levelTransition.p2LevelScore = _root.levelTransition.p2LevelScore + 20;
} else {
this._visible = false;
}
}
Instance of Symbol 377 MovieClip "bonus14" in Symbol 490 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (_root.p2Miss >= (_root.hitAreaNum - Math.floor(_root.hitAreaNum / 3))) {
active = true;
_root.levelTransition.p2BonusScore = _root.levelTransition.p2BonusScore + 10;
_root.levelTransition.p2LevelScore = _root.levelTransition.p2LevelScore + 10;
} else {
this._visible = false;
}
}
Symbol 490 MovieClip Frame 2
stop();
timer = 0;
posx1 = 0;
posy1 = 0;
posx2 = 0;
posy2 = 17;
posx3 = 0;
posy3 = 34;
posx4 = 0;
posy4 = 51;
posx5 = 130;
posy5 = 0;
posx6 = 130;
posy6 = 17;
posx7 = 130;
posy7 = 34;
posx8 = 130;
posy8 = 51;
n = 1;
bonusNum = 14;
i = 1;
while (i <= bonusNum) {
if (_root.levelTransition.p2Bonuses["bonus" + i].active == true) {
_root.levelTransition.p2Bonuses["bonus" + i]._x = _root.levelTransition.p2Bonuses["posx" + n];
_root.levelTransition.p2Bonuses["bonus" + i]._y = _root.levelTransition.p2Bonuses["posy" + n];
n++;
}
i++;
}
Symbol 491 MovieClip Frame 1
stop();
p1BonusScore = 0;
p2BonusScore = 0;
p1BaseScore = 0;
p2BaseScore = 0;
p1LevelScore = 0;
p2LevelScore = 0;
Symbol 491 MovieClip Frame 2
p1BaseScore = ((((_root.p1Green * 50) + (_root.p1Magenta * 40)) + (_root.p1Yellow * 30)) + (_root.p1Orange * 20)) + (_root.p1Red * 10);
p2BaseScore = ((((_root.p2Green * 50) + (_root.p2Magenta * 40)) + (_root.p2Yellow * 30)) + (_root.p2Orange * 20)) + (_root.p2Red * 10);
_root.playSound("levelCleared");
nextFrame();
Symbol 491 MovieClip Frame 3
p1LevelScore = p1BonusScore + p1BaseScore;
p2LevelScore = p2BonusScore + p2BaseScore;
_root.p1Score = _root.p1Score + p1LevelScore;
_root.p2Score = _root.p2Score + p2LevelScore;
stop();
Symbol 492 MovieClip Frame 1
stop();
Symbol 492 MovieClip Frame 2
Instance of Symbol 51 MovieClip [firework] "sparkEffect" in Symbol 492 MovieClip Frame 2
onClipEvent (load) {
colorNum = 1;
sparkNum = 50;
}
Instance of Symbol 51 MovieClip [firework] "sparkEffect" in Symbol 492 MovieClip Frame 3
onClipEvent (load) {
colorNum = 2;
sparkNum = 40;
}
Instance of Symbol 51 MovieClip [firework] "sparkEffect" in Symbol 492 MovieClip Frame 4
onClipEvent (load) {
colorNum = 3;
sparkNum = 30;
}
Instance of Symbol 51 MovieClip [firework] "sparkEffect" in Symbol 492 MovieClip Frame 5
onClipEvent (load) {
colorNum = 4;
sparkNum = 20;
}
Instance of Symbol 51 MovieClip [firework] "sparkEffect" in Symbol 492 MovieClip Frame 6
onClipEvent (load) {
colorNum = 5;
sparkNum = 10;
}
Symbol 504 MovieClip Frame 30
_root.playSound("count");
Symbol 504 MovieClip Frame 61
_root.playSound("count");
Symbol 504 MovieClip Frame 91
_root.playSound("count");
Symbol 504 MovieClip Frame 121
_root.ball.ballFreeze = false;
_root.playSound("start");
Symbol 504 MovieClip Frame 131
stop();
active = false;
Symbol 509 MovieClip Frame 6
stop();
Symbol 511 MovieClip Frame 6
stop();
Symbol 513 MovieClip Frame 6
stop();
Symbol 516 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 517 MovieClip Frame 49
_root.playSound("drumRoll");
Symbol 517 MovieClip Frame 139
_root.playSound("cymbal");
Instance of Symbol 509 MovieClip in Symbol 517 MovieClip Frame 139
onClipEvent (load) {
if (_root.p2Score > _root.p1Score) {
this._visible = false;
} else if (_root.p2Score == _root.p1Score) {
this._visible = false;
}
}
Instance of Symbol 511 MovieClip in Symbol 517 MovieClip Frame 139
onClipEvent (load) {
if (_root.p1Score > _root.p2Score) {
this._visible = false;
} else if (_root.p2Score == _root.p1Score) {
this._visible = false;
}
}
Instance of Symbol 513 MovieClip in Symbol 517 MovieClip Frame 139
onClipEvent (load) {
if (_root.p1Score > _root.p2Score) {
this._visible = false;
} else if (_root.p2Score > _root.p1Score) {
this._visible = false;
}
}
Instance of Symbol 51 MovieClip [firework] in Symbol 517 MovieClip Frame 143
onClipEvent (load) {
if (_root.p2Score > _root.p1Score) {
explosionColor = new Color(this);
explosionColor.setRGB(16711680);
} else if (_root.p2Score == _root.p1Score) {
this._visible = false;
}
}
Instance of Symbol 51 MovieClip [firework] in Symbol 517 MovieClip Frame 143
onClipEvent (load) {
if (_root.p2Score > _root.p1Score) {
explosionColor = new Color(this);
explosionColor.setRGB(16711680);
} else if (_root.p2Score == _root.p1Score) {
this._visible = false;
}
}
Instance of Symbol 51 MovieClip [firework] in Symbol 517 MovieClip Frame 143
onClipEvent (load) {
if (_root.p2Score > _root.p1Score) {
explosionColor = new Color(this);
explosionColor.setRGB(16711680);
} else if (_root.p2Score == _root.p1Score) {
this._visible = false;
}
}
Instance of Symbol 51 MovieClip [firework] in Symbol 517 MovieClip Frame 143
onClipEvent (load) {
if (_root.p2Score > _root.p1Score) {
explosionColor = new Color(this);
explosionColor.setRGB(16711680);
} else if (_root.p2Score == _root.p1Score) {
this._visible = false;
}
}
Symbol 517 MovieClip Frame 217
stop();
Instance of Symbol 51 MovieClip [firework] "explosion" in Symbol 517 MovieClip Frame 217
onClipEvent (load) {
if (_root.p2Score > _root.p1Score) {
explosionColor = new Color(this);
explosionColor.setRGB(16711680);
}
}
Instance of Symbol 67 MovieClip "test" in Symbol 517 MovieClip Frame 217
onClipEvent (load) {
timer = 15;
i = 1;
}
onClipEvent (enterFrame) {
if (_root.p2Score != _root.p1Score) {
timer--;
if (timer <= 0) {
_root.resultsMulti.explosion.duplicateMovieClip("explosion" + i, i);
_root.resultsMulti["explosion" + i]._x = random(550) - random(275);
_root.resultsMulti["explosion" + i]._y = random(200) + 150;
_root.playSound("fireworkPop");
timer = 15;
i++;
}
}
}