Frame 1
function dropTimer() {
if (started == true) {
_root.ballWaiter = getTimer();
if (ballDropped[1] == false) {
ballReady[1] = true;
ballDropped[1] = true;
scoreCountStart = getTimer();
_root.ball1Time = getTimer();
}
}
if ((_root.ballWaiter - _root.ball1Time) >= ((timeToHang * 2) / ballsAmount)) {
if (ball2Ran != true) {
ballReady[2] = true;
ball2Ran = true;
}
}
if ((_root.ballWaiter - _root.ball1Time) >= ((2 * (timeToHang * 2)) / ballsAmount)) {
if (ball3Ran != true) {
ballReady[3] = true;
ball3Ran = true;
}
}
if ((_root.ballWaiter - _root.ball1Time) >= ((3 * (timeToHang * 2)) / ballsAmount)) {
if (ball4Ran != true) {
ballReady[4] = true;
ball4Ran = true;
}
}
if ((_root.ballWaiter - _root.ball1Time) >= ((4 * (timeToHang * 2)) / ballsAmount)) {
if (ball5Ran != true) {
ballReady[5] = true;
ball5Ran = true;
}
}
if ((_root.ballWaiter - _root.ball1Time) >= ((5 * (timeToHang * 2)) / ballsAmount)) {
if (ball6Ran != true) {
ballReady[6] = true;
ball6Ran = true;
}
}
if ((_root.ballWaiter - _root.ball1Time) >= ((6 * (timeToHang * 2)) / ballsAmount)) {
if (ball7Ran != true) {
ballReady[7] = true;
ball7Ran = true;
}
}
if ((_root.ballWaiter - _root.ball1Time) >= ((7 * (timeToHang * 2)) / ballsAmount)) {
if (ball8Ran != true) {
ballReady[8] = true;
ball8Ran = true;
}
}
scoreCountNow = getTimer();
if (((((scoreCountNow - scoreCountStart) / 1000) > 1) && (started == true)) && (Playable == true)) {
score = score + (3 * level);
scoreCountStart = getTimer();
}
if (((_root.ballWaiter - _root.ball1Time) / 1000) > 10) {
gravity = 0.845;
randomX = true;
upSpeed = 16.9;
gameMode = "SPEED";
gameModeShow = gameMode + " Mode";
}
if (((_root.ballWaiter - _root.ball1Time) / 1000) > 30) {
if (level <= 5) {
if (winShowRan != true) {
started = false;
i = 1;
while (i <= ballsAmount) {
_root["ball" + i]._y = -20;
i++;
}
levelWinShow = ("Level " + level) + " complete!";
bonus = 0;
winnings._visible = true;
winShowRan = true;
bonusShow = "30 Seconds x " + ballBonus;
ballBonusShow = "Ball Bonus: " + ballBonus;
bonus = ballbonus * 30;
bonusShow2 = "Bonus: " + bonus;
Playable = false;
if (level == 1) {
buttons.gotoAndStop(3);
} else if (level == 2) {
buttons.gotoAndStop(5);
} else if (level == 3) {
buttons.gotoAndStop(7);
} else if (level == 4) {
buttons.gotoAndStop(9);
} else if (level == 5) {
buttons.gotoAndStop(11);
} else if (level == 25) {
gotoAndPlay (10);
}
}
}
}
}
function gravBall() {
if (Playable == true) {
i = 1;
while (i <= _root.ballsAmount) {
if (ballReady[i] == true) {
if (_root["ball" + i].thrown != true) {
if (rightThrown == false) {
hand.handR["ball" + i]._visible = false;
hand.handR.play();
_root["ball" + i]._y = _root.hand._y - 30;
_root["ball" + i]._x = _root.hand._x + 40;
rightThrown = true;
playingR[i] = true;
sideMov[i] = -horizSpeed;
} else {
hand.handL["ball" + i]._visible = false;
hand.handL.play();
_root["ball" + i]._y = hand._y - 30;
_root["ball" + i]._x = hand._x - 40;
rightThrown = false;
playingL[i] = true;
sideMov[i] = horizSpeed;
}
ymov[i] = -upSpeed;
_root["ball" + i].thrown = true;
} else {
ymov[i] = ymov[i] + gravity;
_root["ball" + i]._y = _root["ball" + i]._y + ymov[i];
_root["ball" + i]._x = _root["ball" + i]._x + sideMov[i];
if (_root["ball" + i].hitTest(hand.handR.hitArea) == true) {
_root["ball" + i]._y = hand._y - 30;
hand.handR.play();
ymov[i] = upSpeed;
ymov[i] = -ymov[i];
if (randomX == true) {
randomXSpeed[i] = (Math.random() * 2) - 1;
sideMov[i] = (-sideMov[i]) + randomXSpeed[i];
} else {
sideMov[i] = -sideMov[i];
}
if (_root["ball" + i]._x <= 150) {
sideMov[i] = 2;
}
if (_root["ball" + i]._x >= 400) {
sideMov[i] = -2;
}
}
if (_root["ball" + i].hitTest(hand.handL.hitArea) == true) {
_root["ball" + i]._y = hand._y - 30;
hand.handL.play();
ymov[i] = -upSpeed;
if (randomX == true) {
randomXSpeed[i] = (Math.random() * 2) - 1;
sideMov[i] = (-sideMov[i]) + randomXSpeed[i];
} else {
sideMov[i] = -sideMov[i];
}
if (_root["ball" + i]._x <= 150) {
sideMov[i] = 2;
}
if (_root["ball" + i]._x >= 400) {
sideMov[i] = -2;
}
}
updateAfterEvent();
if ((_root["ball" + i]._y > 550) && (lostBall[i] == false)) {
lostBall[i] = true;
lostBallShow._x = _root["ball" + i]._x;
lostBallShow.play();
if (lives > 0) {
lives--;
ballBonus--;
if (lives == 2) {
_root.life3._visible = false;
} else if (lives == 1) {
_root.life2._visible = false;
} else {
_root.life1._visible = false;
endGame = true;
gotoAndPlay (10);
}
}
_root["ball" + i]._y = -30;
ballReady[i] = false;
}
scoreShow = "score: " + score;
}
}
i++;
}
}
}
stop();
_root.onMouseMove = function () {
if (endGame == false) {
setProperty(hand, _x , _xmouse);
updateAfterEvent();
} else {
hand._visible = false;
}
};
level = 1;
Playable = true;
levelShow = "Level: " + level;
levelWinShow = ("Level " + level) + " complete!";
upSpeed = 13;
lives = 3;
ballBonus = ballsAmount;
livesShow = "Lives: " + lives;
score = 0;
scoreShow = "score: " + score;
horizSpeed = 3;
timeToHang = 850;
youSuck._visible = false;
ymov = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
sideMov = new Array();
sideMov2 = new Array();
lostBall = new Array(false, false, false, false, false, false, false);
ballReady = new Array(false, false, false, false, false, false, false, false);
ballsAmount = 0;
started = false;
randomX = false;
rightThrown = false;
ballDropped = new Array(false, false, false, false, false, false, false, false);
ball1Time = 8;
animatedR = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
animatedL = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
playingR = new Array(false, false, false, false, false, false);
playingL = new Array(false, false, false, false, false, false);
randomXSpeed = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
handMoveDown = 2;
handMoveUp = 10;
endGame = false;
winnings._visible = false;
gameMode = "NORMAL";
gameModeShow = gameMode + " Mode";
startY = hand.handL._y;
setInterval(dropTimer, 10);
gravity = 0.5;
sideMov[1] = 0;
i = 2;
while (i <= 16) {
sideMov[i] = sideMov[i - 1];
sideMov[i] = -sideMov[i];
i++;
}
if (endGame == false) {
setInterval(gravBall, 25);
} else {
gotoAndStop (10);
}
land = new Sound();
land.attachSound("landID");
landFunction = function () {
land.setVolume(90);
land.start(0, 1);
};
rightHandy = false;
ballsHide = 6 - ballsAmount;
i = 0;
while (i <= 6) {
if (rightHandy == false) {
hand.handR["ball" + i]._visible = false;
rightHandy = true;
} else {
hand.handL["ball" + i]._visible = false;
rightHandy = false;
}
i++;
}
hand.handL.ball4._visible = false;
hand.handL.ball5._visible = false;
hand.handR.ball5._visible = false;
Instance of Symbol 73 MovieClip "hand" in Frame 1
/* no clip actions */
Frame 2
stop();
Frame 13
gotoAndStop (14);
Frame 14
stop();
score = _level0.score;
gcode = _level0.gcode;
getURL ("game.cfm", "_self", "POST");
Symbol 9 MovieClip Frame 1
stop();
Symbol 9 MovieClip Frame 17
gotoAndStop (1);
Symbol 9 MovieClip Frame 36
gotoAndStop (1);
Symbol 32 MovieClip Frame 1
Symbol 41 Button
on (release) {
_root.started = true;
_root.ballsAmount = 3;
_root.ballBonus = _root.ballsAmount;
nextFrame();
}
Symbol 44 Button
on (release) {
_root.level = 2;
_root.levelShow = "Level: " + _root.level;
_root.Playable = true;
_root.winShowRan = false;
_root.started = true;
_root.ballsAmount = 4;
_root.ballBonus = _root.ballsAmount;
_root.gravity = 0.5;
_root.upSpeed = 13;
_root.handMoveDown = 2;
_root.handMoveUp = 10;
_root.gameMode = "NORMAL";
_root.gameModeShow = "GAME MODE: " + gameMode;
_root.winnings._visible = false;
_root.ball2Ran = false;
_root.ball3Ran = false;
_root.ball4Ran = false;
_root.ballReady[1] = false;
_root.ballReady[2] = false;
_root.ballReady[3] = false;
_root.ballReady[4] = false;
_root.ball1.thrown = false;
_root.ball2.thrown = false;
_root.ball3.thrown = false;
_root.ball4.thrown = false;
_root.ballDropped[1] = false;
_root.randomX = false;
rightHandy = false;
i = 0;
while (i <= _root.ballsAmount) {
_root.lostBall[i] = false;
if (rightHandy == false) {
_root.hand.handR["ball" + i]._visible = true;
rightHandy = true;
} else {
_root.hand.handL["ball" + i]._visible = true;
rightHandy = false;
}
i++;
}
_root.score = _root.score + _root.bonus;
nextFrame();
}
Symbol 46 Button
on (release) {
_root.score = _root.score + _root.bonus;
_root.level = 3;
_root.levelShow = "Level: " + _root.level;
_root.Playable = true;
_root.winShowRan = false;
_root.started = true;
_root.ballsAmount = 5;
_root.ballBonus = _root.ballsAmount;
_root.gravity = 0.5;
_root.upSpeed = 13;
_root.handMoveDown = 2;
_root.handMoveUp = 10;
_root.gameMode = "NORMAL";
_root.gameModeShow = "GAME MODE: " + gameMode;
_root.winnings._visible = false;
_root.ball2Ran = false;
_root.ball3Ran = false;
_root.ball4Ran = false;
_root.ball5Ran = false;
_root.ball6Ran = false;
_root.ballReady[1] = false;
_root.ballReady[2] = false;
_root.ballReady[3] = false;
_root.ballReady[4] = false;
_root.ballReady[5] = false;
_root.ballReady[6] = false;
_root.ball1.thrown = false;
_root.ball2.thrown = false;
_root.ball3.thrown = false;
_root.ball4.thrown = false;
_root.ball5.thrown = false;
_root.ball6.thrown = false;
_root.ballDropped[1] = false;
_root.randomX = false;
rightHandy = false;
i = 0;
while (i <= _root.ballsAmount) {
_root.lostBall[i] = false;
if (rightHandy == false) {
_root.hand.handR["ball" + i]._visible = true;
rightHandy = true;
} else {
_root.hand.handL["ball" + i]._visible = true;
rightHandy = false;
}
i++;
}
nextFrame();
}
Symbol 48 Button
on (release) {
_root.score = _root.score + _root.bonus;
_root.level = 4;
_root.levelShow = "Level: " + _root.level;
_root.Playable = true;
_root.winShowRan = false;
_root.started = true;
_root.ballsAmount = 6;
_root.ballBonus = _root.ballsAmount;
_root.gravity = 0.5;
_root.upSpeed = 13;
_root.handMoveDown = 2;
_root.handMoveUp = 10;
_root.gameMode = "NORMAL";
_root.gameModeShow = "GAME MODE: " + gameMode;
_root.winnings._visible = false;
_root.ball2Ran = false;
_root.ball3Ran = false;
_root.ball4Ran = false;
_root.ball5Ran = false;
_root.ball6Ran = false;
_root.ballReady[1] = false;
_root.ballReady[2] = false;
_root.ballReady[3] = false;
_root.ballReady[4] = false;
_root.ballReady[5] = false;
_root.ballReady[6] = false;
_root.ball1.thrown = false;
_root.ball2.thrown = false;
_root.ball3.thrown = false;
_root.ball4.thrown = false;
_root.ball5.thrown = false;
_root.ball6.thrown = false;
_root.ballDropped[1] = false;
_root.randomX = false;
rightHandy = false;
i = 1;
while (i <= _root.ballsAmount) {
_root.lostBall[i] = false;
if (rightHandy == false) {
_root.hand.handR["ball" + i]._visible = true;
rightHandy = true;
} else {
_root.hand.handL["ball" + i]._visible = true;
rightHandy = false;
}
i++;
}
nextFrame();
}
Symbol 50 Button
on (release) {
_root.score = _root.score + _root.bonus;
_root.level = 5;
_root.levelShow = "Level: " + _root.level;
_root.Playable = true;
_root.winShowRan = false;
_root.started = true;
_root.ballsAmount = 7;
_root.ballBonus = _root.ballsAmount;
_root.gravity = 0.5;
_root.upSpeed = 13;
_root.handMoveDown = 2;
_root.handMoveUp = 10;
_root.gameMode = "NORMAL";
_root.gameModeShow = "GAME MODE: " + gameMode;
_root.winnings._visible = false;
_root.ball2Ran = false;
_root.ball3Ran = false;
_root.ball4Ran = false;
_root.ball5Ran = false;
_root.ball6Ran = false;
_root.ball7Ran = false;
_root.ballReady[1] = false;
_root.ballReady[2] = false;
_root.ballReady[3] = false;
_root.ballReady[4] = false;
_root.ballReady[5] = false;
_root.ballReady[6] = false;
_root.ballReady[7] = false;
_root.ball1.thrown = false;
_root.ball2.thrown = false;
_root.ball3.thrown = false;
_root.ball4.thrown = false;
_root.ball5.thrown = false;
_root.ball6.thrown = false;
_root.ball7.thrown = false;
_root.ballDropped[1] = false;
_root.randomX = false;
rightHandy = false;
i = 1;
while (i <= _root.ballsAmount) {
_root.lostBall[i] = false;
if (rightHandy == false) {
_root.hand.handR["ball" + i]._visible = true;
rightHandy = true;
} else {
_root.hand.handL["ball" + i]._visible = true;
rightHandy = false;
}
i++;
}
nextFrame();
}
Symbol 52 Button
on (release) {
_root.score = _root.score + _root.bonus;
_root.level = 6;
_root.levelShow = "Level: " + _root.level;
_root.Playable = true;
_root.winShowRan = false;
_root.started = true;
_root.ballsAmount = 8;
_root.ballBonus = _root.ballsAmount;
_root.gravity = 0.5;
_root.upSpeed = 13;
_root.handMoveDown = 2;
_root.handMoveUp = 10;
_root.gameMode = "NORMAL";
_root.gameModeShow = "GAME MODE: " + gameMode;
_root.winnings._visible = false;
_root.ball2Ran = false;
_root.ball3Ran = false;
_root.ball4Ran = false;
_root.ball5Ran = false;
_root.ball6Ran = false;
_root.ball7Ran = false;
_root.ball8Ran = false;
_root.ballReady[1] = false;
_root.ballReady[2] = false;
_root.ballReady[3] = false;
_root.ballReady[4] = false;
_root.ballReady[5] = false;
_root.ballReady[6] = false;
_root.ballReady[7] = false;
_root.ballReady[8] = false;
_root.ball1.thrown = false;
_root.ball2.thrown = false;
_root.ball3.thrown = false;
_root.ball4.thrown = false;
_root.ball5.thrown = false;
_root.ball6.thrown = false;
_root.ball7.thrown = false;
_root.ball8.thrown = false;
_root.ballDropped[1] = false;
_root.randomX = false;
rightHandy = false;
i = 1;
while (i <= _root.ballsAmount) {
_root.lostBall[i] = false;
if (rightHandy == false) {
_root.hand.handR["ball" + i]._visible = true;
rightHandy = true;
} else {
_root.hand.handL["ball" + i]._visible = true;
rightHandy = false;
}
i++;
}
nextFrame();
}
Symbol 54 Button
on (release) {
_root.score = _root.score + _root.bonus;
_root.level = 7;
_root.levelShow = "Level: " + _root.level;
_root.Playable = true;
_root.winShowRan = false;
_root.started = true;
_root.ballsAmount = 8;
_root.ballBonus = _root.ballsAmount;
_root.gravity = 0.5;
_root.upSpeed = 13;
_root.handMoveDown = 2;
_root.handMoveUp = 10;
_root.gameMode = "NORMAL";
_root.gameModeShow = "GAME MODE: " + gameMode;
_root.winnings._visible = false;
_root.ball2Ran = false;
_root.ball3Ran = false;
_root.ball4Ran = false;
_root.ball5Ran = false;
_root.ball6Ran = false;
_root.ballReady[1] = false;
_root.ballReady[2] = false;
_root.ballReady[3] = false;
_root.ballReady[4] = false;
_root.ballReady[5] = false;
_root.ballReady[6] = false;
_root.ball1.thrown = false;
_root.ball2.thrown = false;
_root.ball3.thrown = false;
_root.ball4.thrown = false;
_root.ball5.thrown = false;
_root.ball6.thrown = false;
_root.ballDropped[1] = false;
_root.randomX = false;
rightHandy = false;
i = 1;
while (i <= _root.ballsAmount) {
_root.lostBall[i] = false;
if (rightHandy == false) {
_root.hand.handR["ball" + i]._visible = true;
rightHandy = true;
} else {
_root.hand.handL["ball" + i]._visible = true;
rightHandy = false;
}
i++;
}
nextFrame();
}
Symbol 56 Button
on (release) {
_root.score = _root.score + _root.bonus;
_root.level = 8;
_root.levelShow = "Level: " + _root.level;
_root.Playable = true;
_root.winShowRan = false;
_root.started = true;
_root.ballsAmount = 8;
_root.ballBonus = _root.ballsAmount;
_root.gravity = 0.5;
_root.upSpeed = 13;
_root.handMoveDown = 2;
_root.handMoveUp = 10;
_root.gameMode = "NORMAL";
_root.gameModeShow = "GAME MODE: " + gameMode;
_root.winnings._visible = false;
_root.ball2Ran = false;
_root.ball3Ran = false;
_root.ball4Ran = false;
_root.ball5Ran = false;
_root.ball6Ran = false;
_root.ballReady[1] = false;
_root.ballReady[2] = false;
_root.ballReady[3] = false;
_root.ballReady[4] = false;
_root.ballReady[5] = false;
_root.ballReady[6] = false;
_root.ball1.thrown = false;
_root.ball2.thrown = false;
_root.ball3.thrown = false;
_root.ball4.thrown = false;
_root.ball5.thrown = false;
_root.ball6.thrown = false;
_root.ballDropped[1] = false;
_root.randomX = false;
rightHandy = false;
i = 0;
while (i <= _root.ballsAmount) {
_root.lostBall[i] = false;
if (rightHandy == false) {
_root.hand.handL["ball" + i]._visible = true;
rightHandy = true;
} else {
_root.hand.handR["ball" + i]._visible = true;
rightHandy = false;
}
i++;
}
nextFrame();
}
Symbol 58 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 2
ball1._y = ball1._y - 10;
ball2._y = ball2._y - 10;
ball3._y = ball3._y - 10;
ball4._y = ball4._y - 10;
Symbol 72 MovieClip Frame 3
ball1._y = ball1._y + 5;
ball2._y = ball2._y + 5;
ball3._y = ball3._y + 5;
ball4._y = ball4._y + 5;
Symbol 72 MovieClip Frame 4
ball1._y = ball1._y + 5;
ball2._y = ball2._y + 5;
ball3._y = ball3._y + 5;
ball4._y = ball4._y + 5;
gotoAndStop (1);
Symbol 73 MovieClip Frame 1
stop();