Frame 1
stop();
var stepp = 0;
if ((_root.getBytesLoaded() / _root.getBytesTotal()) > (_root.stepp / 100)) {
_root.stepp = _root.stepp + (random(2) + 1);
_root.bar._xscale = _root.stepp;
if (_root.stepp >= 100) {
_root.stepp = 100;
_root.play();
}
}
System.security.allowDomain("*");
var scoreutils_mc = this.createEmptyMovieClip("scoreutils_mc", this.getNextHighestDepth());
SCORE_LIB_URL = "http://api.britetrade.com/highscore/ScoreUtilsAS2.swf";
var mvLoader = new MovieClipLoader();
if (System.security) {
var o = System.security;
if (o.sandboxType != "localWithFile") {
mvLoader.loadClip(SCORE_LIB_URL, scoreutils_mc);
}
}
mvLoader.onLoadComplete = function (targetMc) {
var _local1 = mvLoader.getProgress(targetMC);
trace(targetMC + " has finished loading.");
trace("Bytes loaded at end=" + _local1.bytesLoaded);
trace("Bytes total at end=" + _local1.bytesTotal);
};
mvLoader.onLoadProgress = function (targetMC, loadedBytes, totalBytes) {
trace("movie clip: " + targetMC);
trace("Bytes loaded at progress callback=" + loadedBytes);
trace("Bytes total at progress callback=" + totalBytes);
};
mvLoader.onLoadStart = function (targetMC) {
var _local1 = mvLoader.getProgress(targetMC);
trace(("The movieclip " + targetMC) + " has started loading");
trace("Bytes loaded at start=" + _local1.bytesLoaded);
trace("Total bytes loaded at start=" + _local1.bytesTotal);
};
mvLoader.onLoadInit = function (targetMC) {
trace(("Movie clip:" + targetMC) + " is now initialized");
targetMC._width = 170;
targetMC._height = 170;
};
mvLoader.onLoadError = function (targetMC, errorCode) {
trace("ERRORCODE:" + errorCode);
trace(targetMC + "Failed to load its content");
};
var showhighscore = 0;
try {
if (System.security) {
var o = System.security;
if (o.sandboxType != "localWithFile") {
var xmlLoad = new XML();
xmlLoad.load("http://www.britetrade.com/api/gameplay.php?key=4fd5285522e3cd43ef53c92e2ae04fc3&id=210");
}
}
} catch(e:Error) {
}
Instance of Symbol 242 MovieClip in Frame 1
onClipEvent (enterFrame) {
if ((_root.getBytesLoaded() / _root.getBytesTotal()) > (_root.stepp / 100)) {
_root.stepp = _root.stepp + (random(2) + 1);
_root.bar._xscale = _root.stepp;
if (_root.stepp >= 100) {
_root.stepp = 100;
_root.play();
}
}
}
Frame 2
stop();
Frame 3
gotoAndStop (7);
Frame 7
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() {
trace("marker rest----------------------------");
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 357 MovieClip "background" in Frame 7
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 364 MovieClip in Frame 7
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 366 MovieClip in Frame 7
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 375 MovieClip "ball1" in Frame 7
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) && (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 375 MovieClip "ball3" in Frame 7
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) && (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 375 MovieClip "ball2" in Frame 7
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) && (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 364 MovieClip in Frame 7
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 364 MovieClip in Frame 7
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 364 MovieClip in Frame 7
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 375 MovieClip "ball" in Frame 7
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) && (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) && (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 364 MovieClip in Frame 7
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 417 MovieClip "fade" in Frame 7
onClipEvent (load) {
playMode = "";
}
Instance of Symbol 366 MovieClip "codeClip" in Frame 7
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 8
ball.xSpeed = 0;
ball.ySpeed = 0;
ball.xMove = false;
floors = 3;
walls = 2;
ball._x = 520;
ball._y = 385;
Instance of Symbol 366 MovieClip in Frame 8
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 366 MovieClip in Frame 8
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 426 MovieClip in Frame 8
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 444 MovieClip in Frame 8
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 445 MovieClip in Frame 8
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 375 MovieClip "ball" in Frame 8
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) && (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) && (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 364 MovieClip in Frame 8
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 9
ball.xSpeed = 0;
ball.ySpeed = 0;
ball.xMove = false;
floors = 5;
walls = 2;
ball._x = 520;
ball._y = 385;
Instance of Symbol 366 MovieClip in Frame 9
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 375 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;
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) && (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) && (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 11
_root.gotoAndStop("menu");
Frame 12
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 510 MovieClip in Frame 12
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 518 MovieClip in Frame 12
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 524 MovieClip in Frame 12
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 533 MovieClip in Frame 12
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 542 MovieClip in Frame 12
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 548 MovieClip in Frame 12
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 556 MovieClip in Frame 12
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 566 MovieClip in Frame 12
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 578 MovieClip in Frame 12
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 586 MovieClip in Frame 12
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 595 MovieClip in Frame 12
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 601 MovieClip in Frame 12
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 610 MovieClip in Frame 12
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 618 MovieClip in Frame 12
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 624 MovieClip in Frame 12
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 634 MovieClip in Frame 12
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 645 MovieClip in Frame 12
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 653 MovieClip in Frame 12
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 659 MovieClip in Frame 12
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 666 MovieClip in Frame 12
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 13
stop();
_root.music.setVolume(_root.gameVolume);
gameMode = "single";
totalScore = 0;
paused = false;
floors = 1;
walls = 0;
hitAreaNum = 1;
scoreReset();
ball._x = 275;
ball._y = 300;
levelTransition._alpha = 0;
level = 1;
Instance of Symbol 366 MovieClip "popInMC" in Frame 13
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 670 MovieClip "overlay" in Frame 13
onClipEvent (enterFrame) {
if (_root.trainingMode == true) {
this.gotoAndStop("overlayLevel" + _root.level);
}
}
Instance of Symbol 364 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._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 352 MovieClip "levelTransition" in Frame 13
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) {
trace("current level" + _root.level);
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 375 MovieClip "ball" in Frame 13
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) && (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) && (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) && (distance > (maxDist - interval))) {
_root["marker" + clickNum].gotoAndStop(6);
_root.playSound("redSound");
} else if ((distance < (maxDist - interval)) && (distance > (maxDist - (2 * interval)))) {
_root["marker" + clickNum].gotoAndStop(5);
_root.playSound("orangeSound");
} else if ((distance < (maxDist - (2 * interval))) && (distance > (maxDist - (3 * interval)))) {
_root["marker" + clickNum].gotoAndStop(4);
_root.playSound("yellowSound");
} else if ((distance < (maxDist - (3 * interval))) && (distance > (maxDist - (4 * interval)))) {
_root["marker" + clickNum].gotoAndStop(3);
_root.playSound("magentaSound");
} else if ((distance < (maxDist - (4 * interval))) && (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 417 MovieClip in Frame 13
onClipEvent (load) {
this.gotoAndPlay(31);
}
Instance of Symbol 705 MovieClip "pauseScreen" in Frame 13
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 14
markerReset();
Frame 15
scoreReset();
floors = 1;
walls = 2;
hitAreaNum = 2;
ball.reset();
ball._x = 50;
ball._y = 200;
level = 2;
Instance of Symbol 366 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 364 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 = -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 16
markerReset();
Frame 17
scoreReset();
floors = 3;
walls = 2;
hitAreaNum = 3;
ball.reset();
ball._x = 500;
ball._y = 200;
level = 3;
Instance of Symbol 366 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 364 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 = -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 364 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 = 20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 18
markerReset();
Frame 19
scoreReset();
floors = 4;
walls = 4;
hitAreaNum = 4;
ball.reset();
ball._x = 500;
ball._y = 330;
level = 4;
Instance of Symbol 366 MovieClip in Frame 19
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 366 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 364 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 / 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 20
markerReset();
Frame 21
scoreReset();
floors = 3;
walls = 3;
hitAreaNum = 5;
ball.reset();
ball._x = 500;
ball._y = 350;
level = 5;
Instance of Symbol 366 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 = 12;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 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 364 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 = -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 364 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 = -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 364 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 = -19;
_root.ball.xMove = true;
_root.ball.xSpeed = -20;
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 = 100;
ball._y = 405;
ball.yMove = false;
ball.xMove = true;
ball.xSpeed = -10;
level = 6;
Instance of Symbol 366 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 364 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.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 364 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.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 24
markerReset();
Frame 25
scoreReset();
floors = 3;
walls = 3;
hitAreaNum = 6;
ball.reset();
ball._x = 60;
ball._y = 300;
level = 7;
Instance of Symbol 366 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 = 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 366 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 364 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 = -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 364 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 = -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 364 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 = -22;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 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;
}
}
}
Frame 26
markerReset();
Frame 27
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 364 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 = -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 366 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 = -5;
_root.ball.xMove = true;
_root.ball.xSpeed = -14;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 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 561 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 = -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 364 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 = -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 28
markerReset();
Frame 29
scoreReset();
floors = 3;
walls = 3;
hitAreaNum = 6;
ball.reset();
ball._x = 60;
ball._y = 250;
level = 9;
Instance of Symbol 366 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 = -10;
_root.ball.xMove = true;
_root.ball.xSpeed = -8;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 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 364 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 = -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 364 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 = 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 364 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 = 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 364 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 = -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 364 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 = 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 364 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 = -30;
_root.ball.xMove = true;
_root.ball.xSpeed = 30;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 30
markerReset();
Frame 31
scoreReset();
floors = 3;
walls = 3;
hitAreaNum = 6;
ball.reset();
ball._x = 325;
ball._y = 400;
level = 10;
Instance of Symbol 364 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.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 366 MovieClip in Frame 31
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 366 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 561 MovieClip "hammer" in Frame 31
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 364 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 = 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 364 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._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 32
ball.getNextHighestDepth();
ball.removeMovieClip();
markerReset();
Frame 33
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 366 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 = 10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 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 364 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 364 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 = -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 375 MovieClip "ball" in Frame 33
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) && (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) && (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) && (distance > (maxDist - interval))) {
_root["marker" + clickNum].gotoAndStop(6);
_root.playSound("redSound");
} else if ((distance < (maxDist - interval)) && (distance > (maxDist - (2 * interval)))) {
_root["marker" + clickNum].gotoAndStop(5);
_root.playSound("orangeSound");
} else if ((distance < (maxDist - (2 * interval))) && (distance > (maxDist - (3 * interval)))) {
_root["marker" + clickNum].gotoAndStop(4);
_root.playSound("yellowSound");
} else if ((distance < (maxDist - (3 * interval))) && (distance > (maxDist - (4 * interval)))) {
_root["marker" + clickNum].gotoAndStop(3);
_root.playSound("magentaSound");
} else if ((distance < (maxDist - (4 * interval))) && (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 34
markerReset();
Frame 35
scoreReset();
floors = 4;
walls = 3;
hitAreaNum = 6;
ball.reset();
ball._x = 142;
ball._y = 395;
level = 12;
Instance of Symbol 366 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 364 MovieClip in Frame 35
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 364 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 / 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 364 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 / 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 36
markerReset();
Frame 37
scoreReset();
floors = 5;
walls = 6;
hitAreaNum = 8;
ball.reset();
ball._x = 42;
ball._y = 110;
level = 13;
Instance of Symbol 366 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 = 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 366 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 = -2;
_root.ball.xMove = true;
_root.ball.xSpeed = 12;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 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 364 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;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 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 / 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 364 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 = -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 364 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 / 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 364 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 = -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 364 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 / 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 364 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 = 10;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 38
markerReset();
Frame 39
scoreReset();
floors = 2;
walls = 2;
hitAreaNum = 9;
ball.reset();
ball._x = 325;
ball._y = 240;
level = 14;
Instance of Symbol 366 MovieClip in Frame 39
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 366 MovieClip in Frame 39
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 366 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 364 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 = -13;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 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._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 561 MovieClip "hammer" in Frame 39
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 364 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._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 364 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 = 13;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 40
markerReset();
Frame 41
scoreReset();
floors = 3;
walls = 3;
hitAreaNum = 7;
ball.reset();
ball._x = 45;
ball._y = 400;
level = 15;
Instance of Symbol 366 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 366 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 = -15;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 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 = -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 364 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 = 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 741 MovieClip "suction" in Frame 41
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) && (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 741 MovieClip "suction" in Frame 41
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) && (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 42
markerReset();
suction1.getNextHighestDepth();
suction1.removeMovieClip();
suction2.getNextHighestDepth();
suction2.removeMovieClip();
Frame 43
scoreReset();
floors = 3;
walls = 2;
hitAreaNum = 9;
ball.reset();
ball._x = 45;
ball._y = 380;
level = 16;
Instance of Symbol 366 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 364 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 = -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 364 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;
_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 364 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;
_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 630 MovieClip "swing" in Frame 43
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 44
markerReset();
swing.getNextHighestDepth();
swing.removeMovieClip();
Frame 45
scoreReset();
floors = 3;
walls = 2;
hitAreaNum = 11;
ball.reset();
ball._x = 345;
ball._y = 150;
level = 17;
Instance of Symbol 366 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 = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 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 = 10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 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 = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 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 = 10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 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 = 5;
_root.ball.xMove = true;
_root.ball.xSpeed = -18;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 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 364 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 / 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 364 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 = -20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 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 = -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 364 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 = -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 364 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 / 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 741 MovieClip "suction1" in Frame 45
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) && (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 741 MovieClip "suction2" in Frame 45
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) && (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 46
markerReset();
suction1.getNextHighestDepth();
suction1.removeMovieClip();
suction2.getNextHighestDepth();
suction2.removeMovieClip();
Frame 47
scoreReset();
floors = 1;
walls = 2;
hitAreaNum = 13;
ball.reset();
ball._x = 45;
ball._y = 100;
level = 18;
Instance of Symbol 366 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 364 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 / 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 364 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 / 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 364 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 / 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 364 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 / 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 364 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 / 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 364 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 / 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 48
markerReset();
Frame 49
scoreReset();
floors = 3;
walls = 2;
hitAreaNum = 11;
ball.reset();
ball._x = 38;
ball._y = 380;
level = 19;
Instance of Symbol 366 MovieClip in Frame 49
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 366 MovieClip "popInMC" in Frame 49
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 364 MovieClip in Frame 49
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 364 MovieClip in Frame 49
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 364 MovieClip in Frame 49
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 630 MovieClip "swing2" in Frame 49
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 630 MovieClip "swing1" in Frame 49
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 50
markerReset();
swing1.getNextHighestDepth();
swing1.removeMovieClip();
swing2.getNextHighestDepth();
swing2.removeMovieClip();
Frame 51
scoreReset();
floors = 5;
walls = 2;
hitAreaNum = 12;
ball.reset();
ball._x = 180;
ball._y = 400;
level = 20;
Instance of Symbol 366 MovieClip "popInMC" in Frame 51
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 366 MovieClip in Frame 51
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 561 MovieClip "hammer" in Frame 51
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 364 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.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 630 MovieClip "swing" in Frame 51
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 364 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 = -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 364 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.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 52
_root.stop();
markerReset();
swing.getNextHighestDepth();
swing.removeMovieClip();
_root.ball.getNextHighestDepth();
_root.ball.removeMovieClip();
overlay.gotoAndPlay("overlayLevel20");
trace("the end of level 20");
Frame 53
trace("your final score!!!");
_root.scoreutils_mc.instance.setScores(_root.totalScore);
_root.scoreutils_mc.instance.setGameId(10642);
_root.scoreutils_mc.instance.show();
_root.scoreutils_mc.instance._visible = true;
_root.scoreutils_mc.instance.respMC._visible = false;
_root.scoreutils_mc.instance.submitMC._visible = true;
_root.scoreutils_mc.instance._x = 60;
_root.scoreutils_mc.instance._y = 50;
if (_root.showhighscore == 0) {
_root.scoreutils_mc._xscale = _root.scoreutils_mc._xscale * 2;
_root.scoreutils_mc._yscale = _root.scoreutils_mc._yscale * 2;
}
_root.showhighscore++;
Frame 54
stopAllSounds();
_root.gotoAndStop("menu");
Frame 55
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;
multiScoreReset();
_root.countDown.active = false;
levelTransition._alpha = 0;
paused = false;
ball._x = 275;
ball._y = 300;
level = 1;
floors = 1;
walls = 0;
hitAreaNum = 1;
Instance of Symbol 357 MovieClip "background" in Frame 55
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 366 MovieClip "popInMC" in Frame 55
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 364 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._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 797 MovieClip "levelTransition" in Frame 55
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 375 MovieClip "ball" in Frame 55
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) && (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) && (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) && (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) && (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) && (distance > (maxDist - interval))) {
_root["marker" + depth].gotoAndStop(6);
_root.p1Red++;
_root.playSound("redSound");
} else if ((distance < (maxDist - interval)) && (distance > (maxDist - (2 * interval)))) {
_root["marker" + depth].gotoAndStop(5);
_root.p1Orange++;
_root.playSound("orangeSound");
} else if ((distance < (maxDist - (2 * interval))) && (distance > (maxDist - (3 * interval)))) {
_root["marker" + depth].gotoAndStop(4);
_root.p1Yellow++;
_root.playSound("yellowSound");
} else if ((distance < (maxDist - (3 * interval))) && (distance > (maxDist - (4 * interval)))) {
_root["marker" + depth].gotoAndStop(3);
_root.p1Magenta++;
_root.playSound("magentaSound");
} else if ((distance < (maxDist - (4 * interval))) && (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) && (distance > (maxDist - interval))) {
_root["marker" + depth].gotoAndStop(6);
_root.p2Red++;
_root.playSound("redSound");
} else if ((distance < (maxDist - interval)) && (distance > (maxDist - (2 * interval)))) {
_root["marker" + depth].gotoAndStop(5);
_root.p2Orange++;
_root.playSound("orangeSound");
} else if ((distance < (maxDist - (2 * interval))) && (distance > (maxDist - (3 * interval)))) {
_root["marker" + depth].gotoAndStop(4);
_root.p2Yellow++;
_root.playSound("yellowSound");
} else if ((distance < (maxDist - (3 * interval))) && (distance > (maxDist - (4 * interval)))) {
_root["marker" + depth].gotoAndStop(3);
_root.p2Magenta++;
_root.playSound("magentaSound");
} else if ((distance < (maxDist - (4 * interval))) && (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 801 MovieClip "instruction" in Frame 55
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 417 MovieClip in Frame 55
onClipEvent (load) {
this.gotoAndPlay(31);
}
Instance of Symbol 705 MovieClip "pauseScreen" in Frame 55
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 811 MovieClip "countDown" in Frame 55
onClipEvent (load) {
active = false;
}
onClipEvent (enterFrame) {
if (active == true) {
if (_root.paused == true) {
this.stop();
} else {
this.nextFrame();
}
}
}
Frame 56
markerReset();
Frame 57
multiScoreReset();
floors = 1;
walls = 2;
hitAreaNum = 2;
ball.reset();
ball._x = 50;
ball._y = 200;
level = 2;
Instance of Symbol 366 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 364 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 = -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 58
markerReset();
Frame 59
multiScoreReset();
floors = 3;
walls = 2;
hitAreaNum = 3;
ball.reset();
ball._x = 500;
ball._y = 200;
level = 3;
Instance of Symbol 366 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 364 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 = -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 364 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 = 20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 60
markerReset();
Frame 61
multiScoreReset();
floors = 4;
walls = 4;
hitAreaNum = 4;
ball.reset();
ball._x = 500;
ball._y = 330;
level = 4;
Instance of Symbol 366 MovieClip in Frame 61
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 366 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 364 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 / 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 62
markerReset();
Frame 63
multiScoreReset();
floors = 3;
walls = 3;
hitAreaNum = 5;
ball.reset();
ball._x = 500;
ball._y = 350;
level = 5;
Instance of Symbol 366 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 = 12;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 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 364 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 = -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 364 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 = -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 364 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 = -19;
_root.ball.xMove = true;
_root.ball.xSpeed = -20;
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 = 100;
ball._y = 405;
ball.yMove = false;
ball.xMove = true;
ball.xSpeed = -10;
level = 6;
Instance of Symbol 366 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 364 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.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 364 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.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 66
markerReset();
Frame 67
multiScoreReset();
floors = 3;
walls = 3;
hitAreaNum = 6;
ball.reset();
ball._x = 60;
ball._y = 300;
level = 7;
Instance of Symbol 366 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 = 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 366 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 364 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 = -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 364 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 = -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 364 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 = -22;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 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;
}
}
}
Frame 68
markerReset();
Frame 69
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 366 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 = -5;
_root.ball.xMove = true;
_root.ball.xSpeed = -14;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 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 561 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 = -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 364 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 = -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 70
markerReset();
Frame 71
multiScoreReset();
floors = 3;
walls = 3;
hitAreaNum = 6;
ball.reset();
ball._x = 60;
ball._y = 250;
level = 9;
Instance of Symbol 366 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 = -10;
_root.ball.xMove = true;
_root.ball.xSpeed = -8;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 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 364 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 = -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 364 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 = 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 364 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 = 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 364 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 = -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 364 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 = 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 364 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 = -30;
_root.ball.xMove = true;
_root.ball.xSpeed = 30;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 72
markerReset();
Frame 73
multiScoreReset();
floors = 3;
walls = 3;
hitAreaNum = 6;
ball.reset();
ball._x = 325;
ball._y = 400;
level = 10;
Instance of Symbol 366 MovieClip in Frame 73
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 366 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 561 MovieClip "hammer" in Frame 73
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 364 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 = 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 364 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._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 74
ball.getNextHighestDepth();
ball.removeMovieClip();
markerReset();
Frame 75
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 366 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 = 10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 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 364 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 364 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 = -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 375 MovieClip "ball" in Frame 75
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) && (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) && (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) && (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) && (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) && (distance > (maxDist - interval))) {
_root["marker" + depth].gotoAndStop(6);
_root.p1Red++;
_root.playSound("redSound");
} else if ((distance < (maxDist - interval)) && (distance > (maxDist - (2 * interval)))) {
_root["marker" + depth].gotoAndStop(5);
_root.p1Orange++;
_root.playSound("orangeSound");
} else if ((distance < (maxDist - (2 * interval))) && (distance > (maxDist - (3 * interval)))) {
_root["marker" + depth].gotoAndStop(4);
_root.p1Yellow++;
_root.playSound("yellowSound");
} else if ((distance < (maxDist - (3 * interval))) && (distance > (maxDist - (4 * interval)))) {
_root["marker" + depth].gotoAndStop(3);
_root.p1Magenta++;
_root.playSound("magentaSound");
} else if ((distance < (maxDist - (4 * interval))) && (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) && (distance > (maxDist - interval))) {
_root["marker" + depth].gotoAndStop(6);
_root.p2Red++;
_root.playSound("redSound");
} else if ((distance < (maxDist - interval)) && (distance > (maxDist - (2 * interval)))) {
_root["marker" + depth].gotoAndStop(5);
_root.p2Orange++;
_root.playSound("orangeSound");
} else if ((distance < (maxDist - (2 * interval))) && (distance > (maxDist - (3 * interval)))) {
_root["marker" + depth].gotoAndStop(4);
_root.p2Yellow++;
_root.playSound("yellowSound");
} else if ((distance < (maxDist - (3 * interval))) && (distance > (maxDist - (4 * interval)))) {
_root["marker" + depth].gotoAndStop(3);
_root.p2Magenta++;
_root.playSound("magentaSound");
} else if ((distance < (maxDist - (4 * interval))) && (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 76
markerReset();
Frame 77
multiScoreReset();
floors = 4;
walls = 3;
hitAreaNum = 6;
ball.reset();
ball._x = 142;
ball._y = 395;
level = 12;
Instance of Symbol 366 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 364 MovieClip in Frame 77
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 364 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 / 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 364 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 / 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 78
markerReset();
Frame 79
multiScoreReset();
floors = 5;
walls = 6;
hitAreaNum = 8;
ball.reset();
ball._x = 42;
ball._y = 110;
level = 13;
Instance of Symbol 366 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 = 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 366 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 = -2;
_root.ball.xMove = true;
_root.ball.xSpeed = 12;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 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 364 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;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 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 / 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 364 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 = -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 364 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 / 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 364 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 = -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 364 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 / 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 364 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 = 10;
_root.ball.xMove = false;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 80
markerReset();
Frame 81
multiScoreReset();
floors = 2;
walls = 2;
hitAreaNum = 9;
ball.reset();
ball._x = 325;
ball._y = 240;
level = 14;
Instance of Symbol 366 MovieClip in Frame 81
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 366 MovieClip in Frame 81
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 366 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 364 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 = -13;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 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._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 561 MovieClip "hammer" in Frame 81
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 364 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._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 364 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 = 13;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Frame 82
markerReset();
Frame 83
multiScoreReset();
floors = 3;
walls = 3;
hitAreaNum = 7;
ball.reset();
ball._x = 45;
ball._y = 400;
level = 15;
Instance of Symbol 366 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 = -15;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 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 364 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 = -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 364 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 = 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 741 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) && (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 741 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) && (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 84
markerReset();
Frame 85
multiScoreReset();
floors = 3;
walls = 2;
hitAreaNum = 9;
ball.reset();
ball._x = 45;
ball._y = 380;
level = 16;
Instance of Symbol 366 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 364 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 = -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 364 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;
_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 364 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;
_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 630 MovieClip "swing" in Frame 85
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 86
markerReset();
Frame 87
multiScoreReset();
floors = 3;
walls = 2;
hitAreaNum = 11;
ball.reset();
ball._x = 345;
ball._y = 150;
swing.getNextHighestDepth();
swing.removeMovieClip();
level = 17;
Instance of Symbol 366 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 = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 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 = 10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 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 = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 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 = 10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 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 = 5;
_root.ball.xMove = true;
_root.ball.xSpeed = -18;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 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 364 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 / 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 364 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 = -20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 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 = -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 364 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 = -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 364 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 / 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 741 MovieClip "suction" in Frame 87
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) && (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 741 MovieClip "suction" in Frame 87
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) && (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 88
markerReset();
Frame 89
multiScoreReset();
floors = 1;
walls = 2;
hitAreaNum = 13;
ball.reset();
ball._x = 45;
ball._y = 100;
level = 18;
Instance of Symbol 366 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 364 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 / 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 364 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 / 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 364 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 / 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 364 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 / 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 364 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 / 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 364 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 / 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 90
markerReset();
Frame 91
multiScoreReset();
floors = 3;
walls = 2;
hitAreaNum = 11;
ball.reset();
ball._x = 38;
ball._y = 380;
level = 19;
Instance of Symbol 366 MovieClip "popInMC" in Frame 91
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 366 MovieClip in Frame 91
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 364 MovieClip in Frame 91
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 364 MovieClip in Frame 91
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 364 MovieClip in Frame 91
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 630 MovieClip "swing2" in Frame 91
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 630 MovieClip "swing1" in Frame 91
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 92
markerReset();
Frame 93
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 366 MovieClip "popInMC" in Frame 93
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 561 MovieClip "hammer" in Frame 93
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 364 MovieClip in Frame 93
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 630 MovieClip "swing" in Frame 93
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 366 MovieClip in Frame 93
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 364 MovieClip in Frame 93
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 364 MovieClip in Frame 93
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 94
swing.getNextHighestDepth();
swing.removeMovieClip();
markerReset();
ball.getNextHighestDepth();
ball.removeMovieClip();
gotoAndStop ("multiLevel21");
Frame 95
stop();
Instance of Symbol 357 MovieClip "background" in Frame 97
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 849 MovieClip in Frame 97
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("level21");
}
}
Instance of Symbol 853 MovieClip in Frame 97
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("level22");
}
}
Instance of Symbol 857 MovieClip in Frame 97
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("level23");
}
}
Instance of Symbol 861 MovieClip in Frame 97
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("level24");
}
}
Instance of Symbol 865 MovieClip in Frame 97
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("level28");
}
}
Instance of Symbol 869 MovieClip in Frame 97
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("level26");
}
}
Instance of Symbol 873 MovieClip in Frame 97
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("level29");
}
}
Instance of Symbol 877 MovieClip in Frame 97
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("level25");
}
}
Instance of Symbol 881 MovieClip in Frame 97
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("level27");
}
}
Instance of Symbol 887 MovieClip in Frame 97
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("level30");
}
}
Instance of Symbol 417 MovieClip "fade" in Frame 97
onClipEvent (load) {
playMode = "";
}
Instance of Symbol 366 MovieClip "codeClip" in Frame 97
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 99
scoreReset();
floors = 4;
walls = 4;
hitAreaNum = 11;
ball.reset();
ball._x = 40;
ball._y = 50;
ball._width = 50;
ball._height = 50;
ball.radius = 20;
level = 21;
Instance of Symbol 366 MovieClip in Frame 99
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 364 MovieClip in Frame 99
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 = true;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 99
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 = 8;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip "popInMC" in Frame 99
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 375 MovieClip "ball" in Frame 99
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) && (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) && (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) && (distance > (maxDist - interval))) {
_root["marker" + clickNum].gotoAndStop(6);
_root.playSound("redSound");
} else if ((distance < (maxDist - interval)) && (distance > (maxDist - (2 * interval)))) {
_root["marker" + clickNum].gotoAndStop(5);
_root.playSound("orangeSound");
} else if ((distance < (maxDist - (2 * interval))) && (distance > (maxDist - (3 * interval)))) {
_root["marker" + clickNum].gotoAndStop(4);
_root.playSound("yellowSound");
} else if ((distance < (maxDist - (3 * interval))) && (distance > (maxDist - (4 * interval)))) {
_root["marker" + clickNum].gotoAndStop(3);
_root.playSound("magentaSound");
} else if ((distance < (maxDist - (4 * interval))) && (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 705 MovieClip "pauseScreen" in Frame 99
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;
}
}
}
}
}
Instance of Symbol 352 MovieClip "levelTransition" in Frame 99
onClipEvent (load) {
active = false;
delayTimer = 10;
this.swapDepths(99);
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) {
trace("this is scene 2 level tran");
if (fadedIn == true) {
if (_root.trainingMode == false) {
fadedIn = false;
active = false;
this.gotoAndStop(1);
this._alpha = 0;
_root.nextFrame();
} else {
stopAllSounds();
_root.gotoAndStop("training");
_root.markerReset();
this._alpha = 0;
}
}
}
Frame 100
markerReset();
nextFrame();
trace("level 21 marker reset===========================================");
Frame 101
scoreReset();
floors = 4;
walls = 2;
hitAreaNum = 13;
ball.reset();
ball._x = 45;
ball._y = 100;
level = 22;
Instance of Symbol 364 MovieClip in Frame 101
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 = 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 364 MovieClip in Frame 101
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 = 10;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 101
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 = -33;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 101
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 = -21;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 101
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 = -5;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 101
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 = 28;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip "popInMC" in Frame 101
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;
}
}
Frame 102
markerReset();
nextFrame();
Frame 103
scoreReset();
floors = 3;
walls = 2;
hitAreaNum = 12;
ball.reset();
ball._x = 45;
ball._y = 100;
level = 23;
Instance of Symbol 366 MovieClip in Frame 103
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 = 8;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 103
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 = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 103
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 = 8;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 103
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 = 5;
active = false;
_root.ball.revolutions++;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 103
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 = 8;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 103
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 = 8;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 103
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 = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 103
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 = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 103
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 = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 103
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 = -7;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 103
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 364 MovieClip in Frame 103
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 364 MovieClip in Frame 103
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 364 MovieClip in Frame 103
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 364 MovieClip in Frame 103
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 364 MovieClip in Frame 103
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 364 MovieClip in Frame 103
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 364 MovieClip in Frame 103
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 364 MovieClip in Frame 103
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 366 MovieClip "popInMC" in Frame 103
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;
}
}
Frame 104
markerReset();
nextFrame();
Frame 105
scoreReset();
floors = 3;
walls = 2;
hitAreaNum = 10;
ball.reset();
ball._x = 45;
ball._y = 220;
level = 24;
Instance of Symbol 364 MovieClip in Frame 105
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 741 MovieClip "suction1" in Frame 105
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) && (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 741 MovieClip "suction2" in Frame 105
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) && (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 366 MovieClip in Frame 105
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 = -5;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 105
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 = -27;
_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 366 MovieClip in Frame 105
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 = 4;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 105
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;
_root.ball.revolutions++;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 630 MovieClip "swing1" in Frame 105
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 = -3;
_root.ball.ySpeed = -1;
_root.ball._visible = true;
trace("swing up");
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 = -6;
_root.ball.ySpeed = -1;
_root.ball._visible = true;
active = false;
fireBall = false;
}
}
}
}
Instance of Symbol 705 MovieClip "pauseScreen" in Frame 105
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;
}
}
}
}
}
Instance of Symbol 366 MovieClip "popInMC" in Frame 105
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;
}
}
Frame 106
markerReset();
nextFrame();
suction1.getNextHighestDepth();
suction1.removeMovieClip();
suction2.getNextHighestDepth();
suction2.removeMovieClip();
swing1.getNextHighestDepth();
swing1.removeMovieClip();
Frame 107
scoreReset();
floors = 5;
walls = 4;
hitAreaNum = 12;
ball.reset();
ball._x = 508;
ball._y = 248;
level = 25;
Instance of Symbol 361 MovieClip "floor3" in Frame 107
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
}
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;
_root.ball._y = this._y;
_root.ball.yMove = false;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -5;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 364 MovieClip in Frame 107
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 = -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 366 MovieClip in Frame 107
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 = false;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 10;
active = false;
_root.ball.revolutions++;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 107
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 = -12;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 107
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 = -37;
_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 366 MovieClip in Frame 107
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 = 2;
active = false;
_root.ball.revolutions++;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 107
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 = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 364 MovieClip in Frame 107
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 = -33;
_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 366 MovieClip in Frame 107
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 = 12;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 361 MovieClip "floor4" in Frame 107
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
}
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;
_root.ball._y = this._y;
_root.ball.yMove = false;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -5;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 366 MovieClip in Frame 107
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 = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 361 MovieClip "floor5" in Frame 107
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
}
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;
_root.ball._y = this._y;
_root.ball.yMove = false;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -5;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 366 MovieClip in Frame 107
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 = ture;
_root.ball.ySpeed = -10;
_root.ball.xMove = true;
_root.ball.xSpeed = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 364 MovieClip in Frame 107
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 = -33;
_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 366 MovieClip in Frame 107
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 = 12;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 366 MovieClip in Frame 107
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 = 12;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 705 MovieClip "pauseScreen" in Frame 107
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;
}
}
}
}
}
Instance of Symbol 366 MovieClip "popInMC" in Frame 107
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;
}
}
Frame 108
markerReset();
nextFrame();
Frame 109
scoreReset();
floors = 7;
walls = 6;
hitAreaNum = 11;
ball.reset();
ball._x = 208;
ball._y = 64;
level = 26;
Instance of Symbol 364 MovieClip in Frame 109
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 = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -7;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 109
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 = -15;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 109
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 = -35;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 109
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 = -14;
_root.ball.xMove = true;
_root.ball.xSpeed = 25;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 109
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 = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 10;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 109
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 = -20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 109
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 = -5;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 109
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 = -20;
_root.ball.xMove = true;
_root.ball.xSpeed = 2.5;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 109
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 = -30;
_root.ball.xMove = true;
_root.ball.xSpeed = -8;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 705 MovieClip "pauseScreen" in Frame 109
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;
}
}
}
}
}
Instance of Symbol 366 MovieClip "popInMC" in Frame 109
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;
}
}
Frame 110
ball.getNextHighestDepth();
ball.removeMovieClip();
markerReset();
nextFrame();
Frame 111
scoreReset();
floors = 4;
walls = 5;
hitAreaNum = 11;
ball.reset();
ball._x = 45;
ball._y = 350;
ball.yMove = false;
ball.xMove = true;
level = 27;
Instance of Symbol 364 MovieClip in Frame 111
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 364 MovieClip in Frame 111
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 364 MovieClip in Frame 111
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 = -22;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 111
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 364 MovieClip in Frame 111
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 = 5;
_root.ball.xMove = true;
_root.ball.xSpeed = -12;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 111
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 = -23;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 111
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 = 28;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 111
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 705 MovieClip "pauseScreen" in Frame 111
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;
}
}
}
}
}
Instance of Symbol 366 MovieClip "popInMC" in Frame 111
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 375 MovieClip "ball" in Frame 111
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 = 45;
this._height = 45;
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) && (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) && (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) && (distance > (maxDist - interval))) {
_root["marker" + clickNum].gotoAndStop(6);
_root.playSound("redSound");
} else if ((distance < (maxDist - interval)) && (distance > (maxDist - (2 * interval)))) {
_root["marker" + clickNum].gotoAndStop(5);
_root.playSound("orangeSound");
} else if ((distance < (maxDist - (2 * interval))) && (distance > (maxDist - (3 * interval)))) {
_root["marker" + clickNum].gotoAndStop(4);
_root.playSound("yellowSound");
} else if ((distance < (maxDist - (3 * interval))) && (distance > (maxDist - (4 * interval)))) {
_root["marker" + clickNum].gotoAndStop(3);
_root.playSound("magentaSound");
} else if ((distance < (maxDist - (4 * interval))) && (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 112
markerReset();
ball.getNextHighestDepth();
ball.removeMovieClip();
nextFrame();
Frame 113
scoreReset();
floors = 4;
walls = 5;
hitAreaNum = 12;
ball.reset();
ball._x = 45;
ball._y = 350;
ball.yMove = false;
ball.xMove = true;
level = 28;
Instance of Symbol 364 MovieClip in Frame 113
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 364 MovieClip in Frame 113
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 364 MovieClip in Frame 113
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 = -5;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 113
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 = -14;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 113
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 = true;
_root.ball.ySpeed = -12;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 113
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 = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -18;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 113
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 = -8;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 113
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 = -11;
_root.ball.xMove = true;
_root.ball.xSpeed = -18;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 113
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 = -10;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 113
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 = 10;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 113
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 = 15;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 705 MovieClip "pauseScreen" in Frame 113
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;
}
}
}
}
}
Instance of Symbol 366 MovieClip "popInMC" in Frame 113
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 375 MovieClip "ball" in Frame 113
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) && (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) && (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) && (distance > (maxDist - interval))) {
_root["marker" + clickNum].gotoAndStop(6);
_root.playSound("redSound");
} else if ((distance < (maxDist - interval)) && (distance > (maxDist - (2 * interval)))) {
_root["marker" + clickNum].gotoAndStop(5);
_root.playSound("orangeSound");
} else if ((distance < (maxDist - (2 * interval))) && (distance > (maxDist - (3 * interval)))) {
_root["marker" + clickNum].gotoAndStop(4);
_root.playSound("yellowSound");
} else if ((distance < (maxDist - (3 * interval))) && (distance > (maxDist - (4 * interval)))) {
_root["marker" + clickNum].gotoAndStop(3);
_root.playSound("magentaSound");
} else if ((distance < (maxDist - (4 * interval))) && (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 114
markerReset();
nextFrame();
Frame 115
scoreReset();
floors = 2;
walls = 5;
hitAreaNum = 12;
ball.reset();
ball._x = 45;
ball._y = 350;
ball.yMove = false;
ball.xMove = true;
level = 29;
Instance of Symbol 364 MovieClip in Frame 115
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 = -35;
_root.ball.xMove = true;
_root.ball.xSpeed = 30;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 115
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 = -31;
_root.ball.xMove = true;
_root.ball.xSpeed = 25;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 115
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 = -31;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 115
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 705 MovieClip "pauseScreen" in Frame 115
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;
}
}
}
}
}
Instance of Symbol 366 MovieClip "popInMC" in Frame 115
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;
}
}
Frame 116
markerReset();
nextFrame();
Frame 117
scoreReset();
floors = 7;
walls = 10;
hitAreaNum = 12;
ball.reset();
ball._x = 45;
ball._y = 350;
ball.yMove = false;
ball.xMove = true;
level = 30;
Instance of Symbol 364 MovieClip in Frame 117
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 = 10;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 117
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 = 10;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 117
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 = -31;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 117
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 = -33;
_root.ball.xMove = true;
_root.ball.xSpeed = -10;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 117
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 = -8;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 117
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 = 8;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 117
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 = -3;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 117
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 = -5;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 117
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 = -5;
_root.ball.xMove = true;
_root.ball.xSpeed = 4;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 705 MovieClip "pauseScreen" in Frame 117
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;
}
}
}
}
}
Instance of Symbol 366 MovieClip "popInMC" in Frame 117
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;
}
}
Frame 118
markerReset();
gotoAndStop (53);
Frame 135
multiScoreReset();
floors = 4;
walls = 4;
hitAreaNum = 11;
ball.reset();
ball._x = 40;
ball._y = 50;
level = 21;
Instance of Symbol 366 MovieClip in Frame 135
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 364 MovieClip in Frame 135
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 = true;
_root.ball.xSpeed = 0;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 135
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 = 8;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip "popInMC" in Frame 135
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 375 MovieClip "ball" in Frame 135
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) && (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) && (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) && (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) && (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) && (distance > (maxDist - interval))) {
_root["marker" + depth].gotoAndStop(6);
_root.p1Red++;
_root.playSound("redSound");
} else if ((distance < (maxDist - interval)) && (distance > (maxDist - (2 * interval)))) {
_root["marker" + depth].gotoAndStop(5);
_root.p1Orange++;
_root.playSound("orangeSound");
} else if ((distance < (maxDist - (2 * interval))) && (distance > (maxDist - (3 * interval)))) {
_root["marker" + depth].gotoAndStop(4);
_root.p1Yellow++;
_root.playSound("yellowSound");
} else if ((distance < (maxDist - (3 * interval))) && (distance > (maxDist - (4 * interval)))) {
_root["marker" + depth].gotoAndStop(3);
_root.p1Magenta++;
_root.playSound("magentaSound");
} else if ((distance < (maxDist - (4 * interval))) && (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) && (distance > (maxDist - interval))) {
_root["marker" + depth].gotoAndStop(6);
_root.p2Red++;
_root.playSound("redSound");
} else if ((distance < (maxDist - interval)) && (distance > (maxDist - (2 * interval)))) {
_root["marker" + depth].gotoAndStop(5);
_root.p2Orange++;
_root.playSound("orangeSound");
} else if ((distance < (maxDist - (2 * interval))) && (distance > (maxDist - (3 * interval)))) {
_root["marker" + depth].gotoAndStop(4);
_root.p2Yellow++;
_root.playSound("yellowSound");
} else if ((distance < (maxDist - (3 * interval))) && (distance > (maxDist - (4 * interval)))) {
_root["marker" + depth].gotoAndStop(3);
_root.p2Magenta++;
_root.playSound("magentaSound");
} else if ((distance < (maxDist - (4 * interval))) && (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 811 MovieClip "countDown" in Frame 135
onClipEvent (load) {
active = true;
}
onClipEvent (enterFrame) {
if (active == true) {
if (_root.paused == true) {
this.stop();
} else {
this.nextFrame();
}
}
}
Instance of Symbol 797 MovieClip "levelTransition" in Frame 135
onClipEvent (load) {
active = false;
delayTimer = 10;
this.swapDepths(52);
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 705 MovieClip "pauseScreen" in Frame 135
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 136
markerReset();
trace("level 21 marker reset===========================================");
nextFrame();
Frame 137
multiScoreReset();
floors = 4;
walls = 2;
hitAreaNum = 13;
ball.reset();
ball._x = 45;
ball._y = 100;
level = 22;
Instance of Symbol 364 MovieClip in Frame 137
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 = 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 364 MovieClip in Frame 137
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 = 10;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 137
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 = -33;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 137
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 = -21;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 137
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 = -5;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 137
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 = 28;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip "popInMC" in Frame 137
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");
}
}
}
Frame 138
markerReset();
nextFrame();
Frame 139
multiScoreReset();
floors = 3;
walls = 2;
hitAreaNum = 12;
ball.reset();
ball._x = 45;
ball._y = 100;
level = 23;
Instance of Symbol 366 MovieClip in Frame 139
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 = 8;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 139
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 = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 139
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 = 8;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 139
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 = 5;
active = false;
_root.ball.revolutions++;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 139
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 = 8;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 139
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 = 8;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 139
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 = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 139
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 = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 139
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 = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 139
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 = -7;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 139
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 364 MovieClip in Frame 139
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 364 MovieClip in Frame 139
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 364 MovieClip in Frame 139
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 364 MovieClip in Frame 139
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 364 MovieClip in Frame 139
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 364 MovieClip in Frame 139
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 364 MovieClip in Frame 139
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 364 MovieClip in Frame 139
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 366 MovieClip "popInMC" in Frame 139
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");
}
}
}
Frame 140
markerReset();
nextFrame();
Frame 141
multiScoreReset();
floors = 3;
walls = 2;
hitAreaNum = 10;
ball.reset();
ball._x = 45;
ball._y = 220;
level = 24;
Instance of Symbol 364 MovieClip in Frame 141
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 741 MovieClip "suction1" in Frame 141
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) && (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 741 MovieClip "suction2" in Frame 141
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) && (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 366 MovieClip in Frame 141
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 = -5;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 141
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 = -27;
_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 366 MovieClip in Frame 141
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 = 4;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 141
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;
_root.ball.revolutions++;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 630 MovieClip "swing1" in Frame 141
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 = -3;
_root.ball.ySpeed = -1;
_root.ball._visible = true;
trace("swing up");
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 = -6;
_root.ball.ySpeed = -1;
_root.ball._visible = true;
active = false;
fireBall = false;
}
}
}
}
Instance of Symbol 705 MovieClip "pauseScreen" in Frame 141
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;
}
}
}
}
}
Instance of Symbol 366 MovieClip "popInMC" in Frame 141
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");
}
}
}
Frame 142
markerReset();
suction1.removeMovieClip();
suction2.removeMovieClip();
swing1.getNextHighestDepth();
swing1.removeMovieClip();
nextFrame();
Frame 143
multiScoreReset();
floors = 5;
walls = 4;
hitAreaNum = 12;
ball.reset();
ball._x = 508;
ball._y = 248;
level = 25;
Instance of Symbol 361 MovieClip "floor3" in Frame 143
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
}
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;
_root.ball._y = this._y;
_root.ball.yMove = false;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -5;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 364 MovieClip in Frame 143
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 = -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 366 MovieClip in Frame 143
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 = false;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 10;
active = false;
_root.ball.revolutions++;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 143
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 = -12;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 143
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 = -37;
_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 366 MovieClip in Frame 143
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 = 2;
active = false;
_root.ball.revolutions++;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 143
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 = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 364 MovieClip in Frame 143
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 = -33;
_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 366 MovieClip in Frame 143
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 = 12;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 361 MovieClip "floor4" in Frame 143
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
}
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;
_root.ball._y = this._y;
_root.ball.yMove = false;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -5;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 366 MovieClip in Frame 143
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 = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 361 MovieClip "floor5" in Frame 143
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
}
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;
_root.ball._y = this._y;
_root.ball.yMove = false;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -5;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 366 MovieClip in Frame 143
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 = ture;
_root.ball.ySpeed = -10;
_root.ball.xMove = true;
_root.ball.xSpeed = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 364 MovieClip in Frame 143
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 = -33;
_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 366 MovieClip in Frame 143
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 = 12;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 366 MovieClip in Frame 143
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 = 12;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 705 MovieClip "pauseScreen" in Frame 143
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;
}
}
}
}
}
Instance of Symbol 366 MovieClip "popInMC" in Frame 143
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");
}
}
}
Frame 144
markerReset();
nextFrame();
Frame 145
multiScoreReset();
floors = 7;
walls = 6;
hitAreaNum = 11;
ball.reset();
ball._x = 208;
ball._y = 64;
level = 26;
Instance of Symbol 364 MovieClip in Frame 145
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 = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -7;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 145
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 = -15;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 145
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 = -35;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 145
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 = -14;
_root.ball.xMove = true;
_root.ball.xSpeed = 25;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 145
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 = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 10;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 145
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 = -20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 145
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 = -5;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 145
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 = -20;
_root.ball.xMove = true;
_root.ball.xSpeed = 2.5;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 145
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 = -30;
_root.ball.xMove = true;
_root.ball.xSpeed = -8;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 705 MovieClip "pauseScreen" in Frame 145
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;
}
}
}
}
}
Instance of Symbol 366 MovieClip "popInMC" in Frame 145
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");
}
}
}
Frame 146
ball.getNextHighestDepth();
ball.removeMovieClip();
markerReset();
nextFrame();
Frame 147
multiScoreReset();
floors = 4;
walls = 5;
hitAreaNum = 11;
ball.reset();
ball._x = 45;
ball._y = 350;
ball.yMove = false;
ball.xMove = true;
level = 27;
Instance of Symbol 364 MovieClip in Frame 147
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 364 MovieClip in Frame 147
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 364 MovieClip in Frame 147
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 = -22;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 147
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 364 MovieClip in Frame 147
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 = 5;
_root.ball.xMove = true;
_root.ball.xSpeed = -12;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 147
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 = -23;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 147
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 = 28;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 147
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 705 MovieClip "pauseScreen" in Frame 147
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;
}
}
}
}
}
Instance of Symbol 366 MovieClip "popInMC" in Frame 147
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 375 MovieClip "ball" in Frame 147
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 = 45;
this._height = 45;
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) && (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) && (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) && (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) && (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) && (distance > (maxDist - interval))) {
_root["marker" + depth].gotoAndStop(6);
_root.p1Red++;
_root.playSound("redSound");
} else if ((distance < (maxDist - interval)) && (distance > (maxDist - (2 * interval)))) {
_root["marker" + depth].gotoAndStop(5);
_root.p1Orange++;
_root.playSound("orangeSound");
} else if ((distance < (maxDist - (2 * interval))) && (distance > (maxDist - (3 * interval)))) {
_root["marker" + depth].gotoAndStop(4);
_root.p1Yellow++;
_root.playSound("yellowSound");
} else if ((distance < (maxDist - (3 * interval))) && (distance > (maxDist - (4 * interval)))) {
_root["marker" + depth].gotoAndStop(3);
_root.p1Magenta++;
_root.playSound("magentaSound");
} else if ((distance < (maxDist - (4 * interval))) && (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) && (distance > (maxDist - interval))) {
_root["marker" + depth].gotoAndStop(6);
_root.p2Red++;
_root.playSound("redSound");
} else if ((distance < (maxDist - interval)) && (distance > (maxDist - (2 * interval)))) {
_root["marker" + depth].gotoAndStop(5);
_root.p2Orange++;
_root.playSound("orangeSound");
} else if ((distance < (maxDist - (2 * interval))) && (distance > (maxDist - (3 * interval)))) {
_root["marker" + depth].gotoAndStop(4);
_root.p2Yellow++;
_root.playSound("yellowSound");
} else if ((distance < (maxDist - (3 * interval))) && (distance > (maxDist - (4 * interval)))) {
_root["marker" + depth].gotoAndStop(3);
_root.p2Magenta++;
_root.playSound("magentaSound");
} else if ((distance < (maxDist - (4 * interval))) && (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 148
markerReset();
ball.getNextHighestDepth();
ball.removeMovieClip();
nextFrame();
Frame 149
multiScoreReset();
floors = 4;
walls = 5;
hitAreaNum = 12;
ball.reset();
ball._x = 45;
ball._y = 350;
ball.yMove = false;
ball.xMove = true;
level = 28;
Instance of Symbol 364 MovieClip in Frame 149
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 364 MovieClip in Frame 149
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 364 MovieClip in Frame 149
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 = -5;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 149
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 = -14;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 149
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 = true;
_root.ball.ySpeed = -12;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 149
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 = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -18;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 149
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 = -8;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 149
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 = -11;
_root.ball.xMove = true;
_root.ball.xSpeed = -18;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 149
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 = -10;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 149
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 = 10;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 149
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 = 15;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 705 MovieClip "pauseScreen" in Frame 149
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;
}
}
}
}
}
Instance of Symbol 366 MovieClip "popInMC" in Frame 149
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 375 MovieClip "ball" in Frame 149
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) && (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) && (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) && (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) && (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) && (distance > (maxDist - interval))) {
_root["marker" + depth].gotoAndStop(6);
_root.p1Red++;
_root.playSound("redSound");
} else if ((distance < (maxDist - interval)) && (distance > (maxDist - (2 * interval)))) {
_root["marker" + depth].gotoAndStop(5);
_root.p1Orange++;
_root.playSound("orangeSound");
} else if ((distance < (maxDist - (2 * interval))) && (distance > (maxDist - (3 * interval)))) {
_root["marker" + depth].gotoAndStop(4);
_root.p1Yellow++;
_root.playSound("yellowSound");
} else if ((distance < (maxDist - (3 * interval))) && (distance > (maxDist - (4 * interval)))) {
_root["marker" + depth].gotoAndStop(3);
_root.p1Magenta++;
_root.playSound("magentaSound");
} else if ((distance < (maxDist - (4 * interval))) && (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) && (distance > (maxDist - interval))) {
_root["marker" + depth].gotoAndStop(6);
_root.p2Red++;
_root.playSound("redSound");
} else if ((distance < (maxDist - interval)) && (distance > (maxDist - (2 * interval)))) {
_root["marker" + depth].gotoAndStop(5);
_root.p2Orange++;
_root.playSound("orangeSound");
} else if ((distance < (maxDist - (2 * interval))) && (distance > (maxDist - (3 * interval)))) {
_root["marker" + depth].gotoAndStop(4);
_root.p2Yellow++;
_root.playSound("yellowSound");
} else if ((distance < (maxDist - (3 * interval))) && (distance > (maxDist - (4 * interval)))) {
_root["marker" + depth].gotoAndStop(3);
_root.p2Magenta++;
_root.playSound("magentaSound");
} else if ((distance < (maxDist - (4 * interval))) && (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 150
markerReset();
nextFrame();
Frame 151
multiScoreReset();
floors = 2;
walls = 5;
hitAreaNum = 12;
ball.reset();
ball._x = 45;
ball._y = 350;
ball.yMove = false;
ball.xMove = true;
level = 29;
Instance of Symbol 364 MovieClip in Frame 151
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 = -35;
_root.ball.xMove = true;
_root.ball.xSpeed = 30;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 151
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 = -31;
_root.ball.xMove = true;
_root.ball.xSpeed = 25;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 151
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 = -31;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Frame 151
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 705 MovieClip "pauseScreen" in Frame 151
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;
}
}
}
}
}
Instance of Symbol 366 MovieClip "popInMC" in Frame 151
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");
}
}
}
Frame 152
markerReset();
nextFrame();
Frame 153
multiScoreReset();
floors = 7;
walls = 10;
hitAreaNum = 12;
ball.reset();
ball._x = 45;
ball._y = 350;
ball.yMove = false;
ball.xMove = true;
level = 30;
Instance of Symbol 364 MovieClip in Frame 153
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 = 10;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 153
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 = 10;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 153
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 = -31;
_root.ball.xMove = true;
_root.ball.xSpeed = 20;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 153
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 = -33;
_root.ball.xMove = true;
_root.ball.xSpeed = -10;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 153
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 = -8;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 153
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 = 8;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 153
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 = -3;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 153
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 = -5;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 364 MovieClip in Frame 153
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 = -5;
_root.ball.xMove = true;
_root.ball.xSpeed = 4;
this.play();
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 705 MovieClip "pauseScreen" in Frame 153
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;
}
}
}
}
}
Instance of Symbol 366 MovieClip "popInMC" in Frame 153
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");
}
}
}
Frame 154
markerReset();
_root.ball.getNextHighestDepth();
_root.ball.removeMovieClip();
stopAllSounds();
gotoAndStop ("endOfMultiGame");
Symbol 47 Button
on (release) {
_root.nextFrame();
}
Symbol 48 MovieClip [[NGL]_LOADER] Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 48 MovieClip [[NGL]_LOADER] Frame 2
gotoAndPlay (1);
Symbol 50 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 12
stop();
this.removeMovieClip();
Symbol 52 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 245 Button
on (release) {
var gameTitle = "Onlyfungames - Devil On Target";
var localDomainLC = new LocalConnection();
var flashCurrentDomainName = localDomainLC.domain();
var btnUrl = ((("http://www.onlyfungames.com/?utm_source=" + flashCurrentDomainName) + "&utm_medium=game&utm_campaign=") + gameTitle);
getURL (btnUrl, "_blank");
}
Symbol 250 Button
on (release) {
var gameTitle = "Onlyfungames - Devil On Target";
var localDomainLC = new LocalConnection();
var flashCurrentDomainName = localDomainLC.domain();
var btnUrl = ((("http://www.onlyfungames.com/?utm_source=" + flashCurrentDomainName) + "&utm_medium=game&utm_campaign=") + gameTitle);
getURL (btnUrl, "_blank");
}
Symbol 261 MovieClip Frame 146
stop();
Symbol 276 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 277 Button
on (release) {
var gameTitle = "Onlyfungames - Devil On Target";
var localDomainLC = new LocalConnection();
var flashCurrentDomainName = localDomainLC.domain();
var btnUrl = ((("http://www.onlyfungames.com/?utm_source=" + flashCurrentDomainName) + "&utm_medium=game&utm_campaign=") + gameTitle);
getURL (btnUrl, "_blank");
}
Symbol 278 MovieClip Frame 303
stop();
Instance of Symbol 314 MovieClip "bonus1" in Symbol 348 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 317 MovieClip "bonus2" in Symbol 348 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 320 MovieClip "bonus3" in Symbol 348 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 323 MovieClip "bonus4" in Symbol 348 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (((((_root.greenNum >= 1) && (_root.magentaNum >= 1)) && (_root.yellowNum >= 1)) && (_root.orangeNum >= 1)) && (_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 326 MovieClip "bonus6" in Symbol 348 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 329 MovieClip "bonus7" in Symbol 348 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (((_root.greenNum >= 1) && (_root.yellowNum >= 1)) && (_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 332 MovieClip "bonus8" in Symbol 348 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 335 MovieClip "bonus10" in Symbol 348 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 338 MovieClip "bonus11" in Symbol 348 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 341 MovieClip "bonus12" in Symbol 348 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 344 MovieClip "bonus13" in Symbol 348 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 347 MovieClip "bonus14" in Symbol 348 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 348 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 352 MovieClip Frame 1
stop();
bonusScore = 0;
levelScore = 0;
baseScore = 0;
Symbol 352 MovieClip Frame 2
baseScore = ((((_root.greenNum * 50) + (_root.magentaNum * 40)) + (_root.yellowNum * 30)) + (_root.orangeNum * 20)) + (_root.redNum * 10);
this.green.text = _root.greenNum;
this.magenta.text = _root.magentaNum;
this.yellow.text = _root.yellowNum;
this.orange.text = _root.orangeNum;
this.red.text = _root.redNum;
this.green.text = _root.greenNum;
_root.playSound("levelCleared");
nextFrame();
Symbol 352 MovieClip Frame 3
levelScore = baseScore + bonusScore;
stop();
Symbol 353 Button
on (release) {
var gameTitle = "Onlyfungames - Devil On Target";
var localDomainLC = new LocalConnection();
var flashCurrentDomainName = localDomainLC.domain();
var btnUrl = ((("http://www.onlyfungames.com/?utm_source=" + flashCurrentDomainName) + "&utm_medium=game&utm_campaign=") + gameTitle);
getURL (btnUrl, "_blank");
}
Symbol 357 MovieClip Frame 1
stop();
Symbol 364 MovieClip Frame 1
stop();
Symbol 364 MovieClip Frame 23
gotoAndStop (1);
Symbol 371 MovieClip Frame 1
stop();
Symbol 371 MovieClip Frame 13
stop();
Symbol 374 MovieClip Frame 1
stop();
Symbol 380 MovieClip Frame 1
stop();
Symbol 385 Button
on (release) {
nextFrame();
}
Symbol 388 Button
on (release) {
var gameTitle = "Onlyfungames - Devil On Target";
var localDomainLC = new LocalConnection();
var flashCurrentDomainName = localDomainLC.domain();
var btnUrl = ((("http://www.onlyfungames.com/?utm_source=" + flashCurrentDomainName) + "&utm_medium=game&utm_campaign=") + gameTitle);
getURL (btnUrl, "_blank");
}
Symbol 391 Button
on (release) {
_root.nextFrame();
}
Symbol 392 Button
on (release) {
_root.gotoAndStop("credits");
}
Symbol 393 Button
on (release) {
_root.openAddToWebsiteLink();
}
Symbol 394 Button
on (release) {
_root.openHighscoresLink();
}
Symbol 397 Button
on (release) {
_root.fade.play();
_root.fade.playMode = "single";
_root.codeClip.soundFade = true;
}
Symbol 400 Button
on (release) {
_root.fade.play();
_root.fade.playMode = "multi";
_root.stopAllSounds();
_root.codeClip.soundFade = true;
}
Symbol 403 Button
on (release) {
prevFrame();
}
Symbol 410 Button
on (release) {
_root.gotoAndStop("training");
}
Symbol 411 MovieClip Frame 1
stop();
Symbol 415 Button
on (release) {
_root.openSignLink();
}
Symbol 417 MovieClip Frame 1
stop();
Symbol 417 MovieClip Frame 30
stopAllSounds();
_root.gotoAndStop(playMode);
Symbol 417 MovieClip Frame 31
play();
Symbol 417 MovieClip Frame 60
stop();
Instance of Symbol 425 MovieClip "slider" in Symbol 426 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 431 Button
on (release) {
_root._quality = "LOW";
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 434 Button
on (release) {
_root._quality = "MEDIUM";
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 437 Button
on (release) {
_root._quality = "HIGH";
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 444 MovieClip Frame 1
stop();
_root.musicMute = false;
Symbol 444 MovieClip Frame 2
_root.musicMute = true;
Symbol 445 MovieClip Frame 1
stop();
_root.soundMute = false;
Symbol 445 MovieClip Frame 2
_root.soundMute = true;
Symbol 446 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 463 Button
on (release) {
_root.gotoAndStop("trainingPage2");
}
Symbol 510 MovieClip Frame 1
stop();
Symbol 518 MovieClip Frame 1
stop();
Symbol 524 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 1
stop();
Symbol 542 MovieClip Frame 1
stop();
Symbol 548 MovieClip Frame 1
stop();
Symbol 556 MovieClip Frame 1
stop();
Instance of Symbol 561 MovieClip "swing" in Symbol 562 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 8) {
this._visible = false;
}
}
Symbol 566 MovieClip Frame 1
stop();
Symbol 578 MovieClip Frame 1
stop();
Instance of Symbol 561 MovieClip "swing" in Symbol 582 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 10) {
this._visible = false;
}
}
Symbol 586 MovieClip Frame 1
stop();
Symbol 595 MovieClip Frame 1
stop();
Symbol 601 MovieClip Frame 1
stop();
Symbol 610 MovieClip Frame 1
stop();
Instance of Symbol 561 MovieClip "swing" in Symbol 615 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 14) {
this._visible = false;
}
}
Symbol 618 MovieClip Frame 1
stop();
Symbol 624 MovieClip Frame 1
stop();
Symbol 630 MovieClip Frame 1
stop();
downPosition = true;
fireBall = true;
Symbol 630 MovieClip Frame 2
fireBall = false;
Symbol 630 MovieClip Frame 21
stop();
downPosition = false;
fireBall = true;
Symbol 630 MovieClip Frame 22
fireBall = false;
Symbol 630 MovieClip Frame 41
gotoAndStop (1);
Instance of Symbol 630 MovieClip "swing" in Symbol 631 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 16) {
this._visible = false;
}
}
Symbol 634 MovieClip Frame 1
stop();
Symbol 645 MovieClip Frame 1
stop();
Symbol 653 MovieClip Frame 1
stop();
Instance of Symbol 630 MovieClip "swing1" in Symbol 656 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 19) {
this._visible = false;
}
}
Instance of Symbol 630 MovieClip "swing2" in Symbol 656 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 19) {
this._visible = false;
}
}
Symbol 659 MovieClip Frame 1
stop();
Instance of Symbol 561 MovieClip "swing1" in Symbol 663 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 20) {
this._visible = false;
}
}
Instance of Symbol 630 MovieClip "swing2" in Symbol 663 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 20) {
this._visible = false;
}
}
Symbol 666 MovieClip Frame 1
stop();
Instance of Symbol 366 MovieClip in Symbol 669 MovieClip Frame 1
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 = 8;
_root.ball.xMove = true;
_root.ball.xSpeed = -15;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Symbol 670 MovieClip Frame 1
stop();
Symbol 670 MovieClip Frame 16
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 670 MovieClip Frame 33
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 670 MovieClip Frame 50
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 670 MovieClip Frame 67
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 670 MovieClip Frame 84
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 670 MovieClip Frame 101
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 670 MovieClip Frame 118
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 670 MovieClip Frame 137
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 670 MovieClip Frame 156
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 670 MovieClip Frame 173
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 670 MovieClip Frame 192
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 670 MovieClip Frame 211
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 670 MovieClip Frame 230
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 670 MovieClip Frame 249
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 670 MovieClip Frame 268
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 670 MovieClip Frame 287
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 670 MovieClip Frame 306
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 670 MovieClip Frame 327
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 670 MovieClip Frame 346
stop();
if (_root.trainingMode == false) {
_root.nextFrame();
}
Symbol 670 MovieClip Frame 365
stop();
_root.gotoAndStop("level21");
Symbol 679 MovieClip Frame 1
stop();
Symbol 679 MovieClip Frame 2
_root.greenNum++;
Instance of Symbol 52 MovieClip [firework] "sparkEffect" in Symbol 679 MovieClip Frame 2
onClipEvent (load) {
colorNum = 1;
sparkNum = 50;
}
Symbol 679 MovieClip Frame 3
_root.magentaNum++;
Instance of Symbol 52 MovieClip [firework] "sparkEffect" in Symbol 679 MovieClip Frame 3
onClipEvent (load) {
colorNum = 2;
sparkNum = 40;
}
Symbol 679 MovieClip Frame 4
_root.yellowNum++;
Instance of Symbol 52 MovieClip [firework] "sparkEffect" in Symbol 679 MovieClip Frame 4
onClipEvent (load) {
colorNum = 3;
sparkNum = 30;
}
Symbol 679 MovieClip Frame 5
_root.orangeNum++;
Instance of Symbol 52 MovieClip [firework] "sparkEffect" in Symbol 679 MovieClip Frame 5
onClipEvent (load) {
colorNum = 4;
sparkNum = 20;
}
Symbol 679 MovieClip Frame 6
_root.redNum++;
Instance of Symbol 52 MovieClip [firework] "sparkEffect" in Symbol 679 MovieClip Frame 6
onClipEvent (load) {
colorNum = 5;
sparkNum = 10;
}
Symbol 679 MovieClip Frame 7
_root.blackNum++;
_root.missNum++;
_root.misses.nextFrame();
Symbol 682 MovieClip Frame 1
stop();
Symbol 685 MovieClip Frame 1
stop();
Symbol 695 Button
on (release) {
if (_root.trainingMode == false) {
nextFrame();
} else {
stopAllSounds();
_root.gotoAndStop("training");
}
}
Symbol 701 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 704 Button
on (release) {
prevFrame();
}
on (rollOver) {
_root.playSound("rollOver");
}
Symbol 705 MovieClip Frame 1
stop();
Instance of Symbol 426 MovieClip in Symbol 705 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 444 MovieClip in Symbol 705 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 445 MovieClip in Symbol 705 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 709 MovieClip Frame 1
stop();
Symbol 737 MovieClip Frame 15
gotoAndPlay (1);
Symbol 740 MovieClip Frame 10
stop();
Symbol 741 MovieClip Frame 1
stop();
Symbol 750 Button
on (release) {
nextFrame();
_root.scoreutils_mc.instance._visible = false;
}
Symbol 751 Button
on (release) {
_root.submitScore(_root.totalScore);
nextFrame();
}
Instance of Symbol 314 MovieClip "bonus1" in Symbol 795 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 317 MovieClip "bonus2" in Symbol 795 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 320 MovieClip "bonus3" in Symbol 795 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 323 MovieClip "bonus4" in Symbol 795 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (((((_root.p1Green >= 1) && (_root.p1Magenta >= 1)) && (_root.p1Yellow >= 1)) && (_root.p1Orange >= 1)) && (_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 326 MovieClip "bonus6" in Symbol 795 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 329 MovieClip "bonus7" in Symbol 795 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (((_root.p1Green >= 1) && (_root.p1Yellow >= 1)) && (_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 332 MovieClip "bonus8" in Symbol 795 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 335 MovieClip "bonus10" in Symbol 795 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 338 MovieClip "bonus11" in Symbol 795 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 341 MovieClip "bonus12" in Symbol 795 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 344 MovieClip "bonus13" in Symbol 795 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 347 MovieClip "bonus14" in Symbol 795 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 795 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 314 MovieClip "bonus1" in Symbol 796 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 317 MovieClip "bonus2" in Symbol 796 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 320 MovieClip "bonus3" in Symbol 796 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 323 MovieClip "bonus4" in Symbol 796 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (((((_root.p2Green >= 1) && (_root.p2Magenta >= 1)) && (_root.p2Yellow >= 1)) && (_root.p2Orange >= 1)) && (_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 326 MovieClip "bonus6" in Symbol 796 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 329 MovieClip "bonus7" in Symbol 796 MovieClip Frame 1
onClipEvent (load) {
active = false;
if (((_root.p2Green >= 1) && (_root.p2Yellow >= 1)) && (_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 332 MovieClip "bonus8" in Symbol 796 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 335 MovieClip "bonus10" in Symbol 796 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 338 MovieClip "bonus11" in Symbol 796 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 341 MovieClip "bonus12" in Symbol 796 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 344 MovieClip "bonus13" in Symbol 796 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 347 MovieClip "bonus14" in Symbol 796 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 796 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 797 MovieClip Frame 1
stop();
p1BonusScore = 0;
p2BonusScore = 0;
p1BaseScore = 0;
p2BaseScore = 0;
p1LevelScore = 0;
p2LevelScore = 0;
Symbol 797 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 797 MovieClip Frame 3
p1LevelScore = p1BonusScore + p1BaseScore;
p2LevelScore = p2BonusScore + p2BaseScore;
_root.p1Score = _root.p1Score + p1LevelScore;
_root.p2Score = _root.p2Score + p2LevelScore;
stop();
Symbol 798 MovieClip Frame 1
stop();
Instance of Symbol 52 MovieClip [firework] "sparkEffect" in Symbol 798 MovieClip Frame 2
onClipEvent (load) {
colorNum = 1;
sparkNum = 50;
}
Instance of Symbol 52 MovieClip [firework] "sparkEffect" in Symbol 798 MovieClip Frame 3
onClipEvent (load) {
colorNum = 2;
sparkNum = 40;
}
Instance of Symbol 52 MovieClip [firework] "sparkEffect" in Symbol 798 MovieClip Frame 4
onClipEvent (load) {
colorNum = 3;
sparkNum = 30;
}
Instance of Symbol 52 MovieClip [firework] "sparkEffect" in Symbol 798 MovieClip Frame 5
onClipEvent (load) {
colorNum = 4;
sparkNum = 20;
}
Instance of Symbol 52 MovieClip [firework] "sparkEffect" in Symbol 798 MovieClip Frame 6
onClipEvent (load) {
colorNum = 5;
sparkNum = 10;
}
Symbol 811 MovieClip Frame 30
_root.playSound("count");
Symbol 811 MovieClip Frame 61
_root.playSound("count");
Symbol 811 MovieClip Frame 91
_root.playSound("count");
Symbol 811 MovieClip Frame 121
_root.ball.ballFreeze = false;
_root.playSound("start");
Symbol 811 MovieClip Frame 131
stop();
active = false;
Symbol 818 MovieClip Frame 6
stop();
Symbol 820 MovieClip Frame 6
stop();
Symbol 823 MovieClip Frame 6
stop();
Symbol 841 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 844 MovieClip Frame 49
_root.playSound("drumRoll");
Symbol 844 MovieClip Frame 139
_root.playSound("cymbal");
Instance of Symbol 818 MovieClip in Symbol 844 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 820 MovieClip in Symbol 844 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 823 MovieClip in Symbol 844 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 52 MovieClip [firework] in Symbol 844 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 52 MovieClip [firework] in Symbol 844 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 52 MovieClip [firework] in Symbol 844 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 52 MovieClip [firework] in Symbol 844 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 844 MovieClip Frame 217
stop();
Instance of Symbol 52 MovieClip [firework] "explosion" in Symbol 844 MovieClip Frame 217
onClipEvent (load) {
if (_root.p2Score > _root.p1Score) {
explosionColor = new Color(this);
explosionColor.setRGB(16711680);
}
}
Instance of Symbol 373 MovieClip "test" in Symbol 844 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++;
}
}
}
Symbol 849 MovieClip Frame 1
stop();
hitAreaNum = 11;
Symbol 853 MovieClip Frame 1
stop();
Instance of Symbol 366 MovieClip in Symbol 854 MovieClip Frame 1
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 = 5;
active = false;
_root.ball.revolutions++;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Symbol 854 MovieClip Frame 1
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 = 8;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Symbol 854 MovieClip Frame 1
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 = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Symbol 854 MovieClip Frame 1
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 = 8;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Symbol 854 MovieClip Frame 1
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 = 8;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Symbol 854 MovieClip Frame 1
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 = 8;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Symbol 854 MovieClip Frame 1
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 = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Symbol 854 MovieClip Frame 1
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 = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Symbol 854 MovieClip Frame 1
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 = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Symbol 854 MovieClip Frame 1
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 = -7;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Symbol 857 MovieClip Frame 1
stop();
Instance of Symbol 366 MovieClip in Symbol 858 MovieClip Frame 1
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 = -5;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Symbol 858 MovieClip Frame 1
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 = 4;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 741 MovieClip "suction1" in Symbol 858 MovieClip Frame 1
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) && (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 741 MovieClip "suction2" in Symbol 858 MovieClip Frame 1
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) && (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 366 MovieClip in Symbol 858 MovieClip Frame 1
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;
_root.ball.revolutions++;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 630 MovieClip "swing1" in Symbol 858 MovieClip Frame 1
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 = -3;
_root.ball.ySpeed = -1;
_root.ball._visible = true;
trace("swing up");
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 = -6;
_root.ball.ySpeed = -1;
_root.ball._visible = true;
active = false;
fireBall = false;
}
}
}
}
Symbol 861 MovieClip Frame 1
stop();
Symbol 865 MovieClip Frame 1
stop();
Symbol 869 MovieClip Frame 1
stop();
Instance of Symbol 366 MovieClip in Symbol 870 MovieClip Frame 1
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;
}
}
}
Symbol 873 MovieClip Frame 1
stop();
Instance of Symbol 361 MovieClip "floor3" in Symbol 874 MovieClip Frame 1
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
}
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;
_root.ball._y = this._y;
_root.ball.yMove = false;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -5;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 366 MovieClip in Symbol 874 MovieClip Frame 1
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 = 2;
active = false;
_root.ball.revolutions++;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Symbol 874 MovieClip Frame 1
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 = false;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = 10;
active = false;
_root.ball.revolutions++;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
}
Instance of Symbol 366 MovieClip in Symbol 874 MovieClip Frame 1
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 = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 366 MovieClip in Symbol 874 MovieClip Frame 1
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 = 12;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 361 MovieClip "floor4" in Symbol 874 MovieClip Frame 1
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
}
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;
_root.ball._y = this._y;
_root.ball.yMove = false;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -5;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 366 MovieClip in Symbol 874 MovieClip Frame 1
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 = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 361 MovieClip "floor5" in Symbol 874 MovieClip Frame 1
onClipEvent (load) {
xDist = 0;
yDist = 0;
distance = 0;
active = true;
}
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;
_root.ball._y = this._y;
_root.ball.yMove = false;
_root.ball.ySpeed = 0;
_root.ball.xMove = true;
_root.ball.xSpeed = -5;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 366 MovieClip in Symbol 874 MovieClip Frame 1
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 = ture;
_root.ball.ySpeed = -10;
_root.ball.xMove = true;
_root.ball.xSpeed = -10;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 366 MovieClip in Symbol 874 MovieClip Frame 1
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 = 12;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Instance of Symbol 366 MovieClip in Symbol 874 MovieClip Frame 1
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 = 12;
active = false;
}
} else {
timer--;
if (timer <= 0) {
active = true;
timer = 20;
}
}
if (_root.ball.ballFreeze == false) {
this._x = this._x - 2;
}
if (this._x < -125) {
this._x = 655;
}
}
Symbol 877 MovieClip Frame 1
stop();
Symbol 881 MovieClip Frame 1
stop();
Symbol 887 MovieClip Frame 1
stop();
Symbol 888 Button
on (release) {
_root.gotoAndStop("training");
}