Combined Code
frame 1 {
ifFrameLoaded (18) {
gotoAndPlay(16);
}
}
movieClip 3 {
}
movieClip 14 {
}
frame 15 {
gotoAndPlay(1);
}
button 17 {
on (release) {
gotoAndPlay(1);
}
}
frame 16 {
stop();
}
button 20 {
on (press, release) {
gotoAndPlay(18);
}
}
frame 18 {
function updatePoints() {
if (xSpeed >= 0 && ySpeed >= 0) {
x = Ball._x + t * xSpeed;
y = Ball._y - t * ySpeed;
} else {
if (0 >= xSpeed && ySpeed >= 0) {
x = Ball._x - t * xSpeed;
y = Ball._y - t * ySpeed;
} else {
if (xSpeed >= 0 && 0 >= ySpeed) {
x = Ball._x + t * xSpeed;
y = Ball._y - t * ySpeed;
} else {
x = Ball._x - t * xSpeed;
y = Ball._y + t * ySpeed;
}
}
}
}
if (!initialized) {
plunged = false;
locked = false;
backDown = false;
ballDown = false;
questionLock = false;
answering = false;
ballCount = 3;
correctCount = 0;
ballsLeft = ballCount;
theWords = new Array();
theAnswers = new Array();
theWords[0] = '1+1';
theWords[1] = '1+2';
theWords[2] = '1+3';
theWords[3] = '1+4';
theWords[4] = '1+5';
theWords[5] = '1+6';
theWords[6] = '1+7';
theWords[7] = '1+8';
theWords[8] = '0+9';
theWords[9] = '2+2';
theWords[10] = '2+3';
theWords[11] = '2+4';
theWords[12] = '2+5';
theWords[13] = '2+6';
theWords[14] = '2+7';
theWords[15] = '0+3';
theWords[16] = '3+3';
theWords[17] = '3+4';
theWords[18] = '3+5';
theWords[19] = '3+6';
theWords[20] = '4+4';
theWords[21] = '4+5';
theWords[22] = '0+0';
theWords[23] = '0+2';
theWords[24] = '0+8';
theAnswers[0] = '2';
theAnswers[1] = '3';
theAnswers[2] = '4';
theAnswers[3] = '5';
theAnswers[4] = '6';
theAnswers[5] = '7';
theAnswers[6] = '8';
theAnswers[7] = '9';
theAnswers[8] = '9';
theAnswers[9] = '4';
theAnswers[10] = '5';
theAnswers[11] = '6';
theAnswers[12] = '7';
theAnswers[13] = '8';
theAnswers[14] = '9';
theAnswers[15] = '3';
theAnswers[16] = '6';
theAnswers[17] = '7';
theAnswers[18] = '8';
theAnswers[19] = '9';
theAnswers[20] = '8';
theAnswers[21] = '9';
theAnswers[22] = '0';
theAnswers[23] = '2';
theAnswers[24] = '8';
numWords = theWords.length;
mainUsed = new Array(theWords.length);
var p = 0;
while (p < mainUsed.length) {
mainUsed[p] = false;
++p;
}
_root.currentWord = random(_root.numWords);
while (_root.mainUsed[_root.currentWord] == true) {
_root.currentWord = random(_root.numWords);
}
word = theWords[currentWord];
wordCount = theWords.length;
wc = wordCount;
letterCount = 0;
rrr = 1;
while (9 >= rrr) {
var ts = eval('l' + rrr);
ts.tf = ' ';
ts.hit = false;
++rrr;
}
rrr = 1;
while (word.length >= rrr) {
var ts = eval('l' + rrr);
ts.tf = word.charAt(rrr - 1);
++rrr;
}
_root.active = false;
Ball._visible = false;
Ball2._visible = true;
Ball2.gotoAndPlay(1);
xSpeed = 0;
xDir = 1;
height = 0;
tScore = 0;
cnt = 0;
cnt2 = 0;
hit = false;
ySpeed = 0;
initialized = true;
_root.stopped = false;
}
score.theScore = tScore;
if (_root.active) {
if (r1.hitTest(Ball)) {
var s = 1;
while (s < 16) {
y = eval('Ball.m' + s + '._y') + Ball._y;
x = eval('Ball.m' + s + '._x') + Ball._x;
if (b1.hitTest(x, y, true)) {
b1.gotoAndPlay(2);
if (b1._x < Ball._x && b1._y < Ball.y) {
xSpeed += random(17);
ySPeed += random(17);
Ball._x += 10;
Ball._y += 10;
}
if (b1._x < Ball._x && Ball.y < b1._y) {
xSpeed += random(17);
ySPeed -= random(17);
Ball._x += 7;
Ball._y -= 7;
}
if (Ball._x < b1._x && b1._x < Ball.y) {
xSpeed -= random(17);
ySPeed += random(17);
Ball._x -= 7;
Ball._y += 7;
}
if (Ball._x < b1._x && Ball.y < b1._x) {
xSpeed -= random(17);
ySPeed -= random(17);
Ball._x -= 7;
Ball._y -= 7;
}
tScore = int(score.theScore) + 500;
break;
} else {
if (cBumper.hitTest(x, y, true)) {
cBumper.gotoAndPlay(2);
if (ySpeed < 0) {
ySpeed *= -1;
ySpeed += 15;
Ball._y -= 15;
} else {
if (x < cBumper._x) {
Ball._x -= 15;
Ball._y += 15;
ySpeed = -(5 + random(5));
xSpeed = -(5 + random(5));
} else {
Ball._x += 15;
Ball._y += 15;
xSpeed = 10 + random(5);
ySpeed = -(10 + random(5));
}
}
break;
} else {
if (l5.hitTest(x, y, true)) {
l5.gotoAndPlay(2);
mU.a5.tf = word.charAt(4);
if (!l5.hit && word.length >= 5) {
++letterCount;
}
l5.hit = true;
l5.tf = ' ';
} else {
if (l6.hitTest(x, y, true)) {
l6.gotoAndPlay(2);
mU.a6.tf = word.charAt(5);
if (!l6.hit && word.length >= 6) {
++letterCount;
}
l6.hit = true;
l6.tf = ' ';
}
}
}
}
if (outerBorder.hitTest(x, y, true)) {
if (y < toprCorner._height) {
if (0 < ySpeed) {
ySpeed *= -1;
ySpeed -= 5;
}
} else {
if (x < leftWall._width + outerBorder._x) {
if (xSpeed < 0) {
xSpeed *= -1;
}
xSpeed += 1;
} else {
if (0 < xSpeed) {
xSpeed *= -1;
}
xSpeed -= 1;
}
}
break;
}
++s;
}
} else {
if (r2.hitTest(Ball)) {
var s = 1;
while (s < 16) {
y = eval('Ball.m' + s + '._y') + Ball._y;
x = eval('Ball.m' + s + '._x') + Ball._x;
if (rvertWall._x < x && bMark._y < y && ySpeed < 0) {
Ball._visible = false;
backDown = true;
active = false;
Ball2._visible = true;
Ball2.gotoAndPlay(10);
} else {
if (l1.hitTest(x, y, true)) {
l1.gotoAndPlay(2);
mU.a1.tf = word.charAt(0);
if (!l1.hit && word.length >= 1) {
++letterCount;
}
l1.hit = true;
l1.tf = ' ';
} else {
if (l3.hitTest(x, y, true)) {
l3.gotoAndPlay(2);
mU.a3.tf = word.charAt(2);
if (!l3.hit && word.length >= 3) {
++letterCount;
}
l3.hit = true;
l3.tf = ' ';
} else {
if (l4.hitTest(x, y, true)) {
l4.gotoAndPlay(2);
mU.a4.tf = word.charAt(3);
if (!l4.hit && word.length >= 4) {
++letterCount;
}
l4.hit = true;
l4.tf = ' ';
} else {
if (rvertWall.hitTest(x, y, false)) {
if (x < rvertWall._x) {
if (0 < xSpeed) {
xSpeed *= -1;
}
xSpeed -= 10;
if (xSpeed < -15) {
xSpeed = -15;
}
if (15 < xSpeed) {
xSpeed = 15;
}
} else {
if (xSpeed < 0) {
xSpeed *= -1;
}
if (15 < xSpeed) {
15 < xSpeed;
}
if (xSpeed < -15) {
xSpeed = -15;
}
}
rvertWall.gotoAndPlay(2);
break;
} else {
if (rightWall.hitTest(x, y, true)) {
if (ySpeed < 0) {
ySpeed *= -0.4;
}
if (0 < xSpeed) {
xSpeed *= -0.2;
}
xSpeed -= 1;
rightWall.gotoAndPlay(2);
hit = true;
if (rightWall._x + rightWall._width * 0.7 < x) {
Ball2.gotoAndPlay(2);
Ball._visible = false;
}
break;
}
}
}
}
}
}
if (outerBorder.hitTest(x, y, true)) {
if (y < toprCorner._height) {
if (0 < ySpeed) {
ySpeed *= -1;
ySpeed -= 5;
}
} else {
if (x < leftWall._width + outerBorder._x) {
if (xSpeed < 0) {
xSpeed *= -1;
}
xSpeed += 1;
} else {
if (0 < xSpeed) {
xSpeed *= -1;
}
xSpeed -= 1;
}
}
break;
}
++s;
}
} else {
if (r3.hitTest(Ball)) {
var s = 1;
while (s < 16) {
y = eval('Ball.m' + s + '._y') + Ball._y;
x = eval('Ball.m' + s + '._x') + Ball._x;
if (b2.hitTest(x, y, true)) {
b2.gotoAndPlay(2);
if (b2._x < Ball._x && b2._y < Ball.y) {
xSpeed += 7;
ySPeed += 7;
Ball._x += 7;
Ball._y += 7;
}
if (b2._x < Ball._x && Ball.y < b2._y) {
xSpeed += 7;
ySPeed -= 7;
Ball._x += 7;
Ball._y -= 7;
}
if (Ball._x < b2._x && b2._x < Ball.y) {
xSpeed -= 7;
ySPeed += 7;
Ball._x -= 7;
Ball._y += 7;
}
if (Ball._x < b2._x && Ball.y < b2._x) {
xSpeed -= 7;
ySPeed -= 7;
Ball._x -= 7;
Ball._y -= 7;
}
break;
} else {
if (b3.hitTest(x, y, true)) {
b3.gotoAndPlay(2);
if (b3._x < Ball._x && b3._y < Ball.y) {
xSpeed += 7;
ySPeed += 7;
Ball._x += 7;
Ball._y += 7;
}
if (b3._x < Ball._x && Ball.y < b3._y) {
xSpeed += 7;
ySPeed -= 7;
Ball._x += 7;
Ball._y -= 7;
}
if (Ball._x < b3._x && b3._x < Ball.y) {
xSpeed -= 12;
ySPeed += 7;
Ball._x -= 7;
Ball._y += 7;
}
if (Ball._x < b3._x && Ball.y < b3._x) {
xSpeed -= 12;
ySPeed -= 7;
Ball._x -= 7;
Ball._y -= 7;
}
break;
} else {
if (l7.hitTest(x, y, true)) {
l7.gotoAndPlay(2);
mU.a7.tf = word.charAt(6);
if (!l7.hit && word.length >= 7) {
++letterCount;
}
l7.hit = true;
l7.tf = ' ';
} else {
if (toprCorner.hitTest(x, y, true)) {
toprCorner.gotoAndPlay(2);
if (0 < xSpeed) {
xSpeed *= -1;
}
if (Math.abs(xSpeed) < 3) {
xSpeed -= 3;
}
xSpeed -= 13;
ySpeed *= -1;
break;
}
}
}
}
if (outerBorder.hitTest(x, y, true)) {
if (y < toprCorner._height) {
if (0 < ySpeed) {
ySpeed *= -1;
ySpeed -= 5;
}
} else {
if (x < leftWall._width + outerBorder._x) {
if (xSpeed < 0) {
xSpeed *= -1;
}
xSpeed += 1;
} else {
if (0 < xSpeed) {
xSpeed *= -1;
}
xSpeed -= 1;
}
}
break;
}
++s;
}
} else {
if (r4.hitTest(Ball)) {
var s = 1;
while (s < 16) {
y = eval('Ball.m' + s + '._y') + Ball._y;
x = eval('Ball.m' + s + '._x') + Ball._x;
if (toplCorner.hitTest(x, y, true)) {
toplCorner.gotoAndPlay(2);
if (xSpeed < 0) {
xSpeed *= -1;
}
ySpeed -= 10 + random(5);
break;
} else {
if (l2.hitTest(x, y, true)) {
l2.gotoAndPlay(2);
mU.a2.tf = word.charAt(1);
if (!l2.hit && word.length >= 2) {
++letterCount;
}
l2.hit = true;
l2.tf = ' ';
} else {
if (lvertWall.hitTest(x, y, false)) {
if (x < lvertWall._x) {
if (0 < xSpeed) {
xSpeed *= -1;
}
if (xSpeed < -15) {
xSpeed = -15;
}
if (15 < xSpeed) {
xSpeed = 15;
}
} else {
if (xSpeed < 0) {
xSpeed *= -1;
}
xSpeed += 5 + random(5);
if (15 < xSpeed) {
15 < xSpeed;
}
if (xSpeed < -15) {
xSpeed = -15;
}
}
lvertWall.gotoAndPlay(2);
break;
}
}
}
if (outerBorder.hitTest(x, y, true)) {
if (y < toprCorner._height) {
if (0 < ySpeed) {
ySpeed *= -1;
ySpeed -= 5;
}
} else {
if (x < leftWall._width + outerBorder._x) {
if (xSpeed < 0) {
xSpeed *= -1;
}
xSpeed += 1;
} else {
if (0 < xSpeed) {
xSpeed *= -1;
}
xSpeed -= 1;
}
}
break;
}
++s;
}
} else {
if (r5.hitTest(Ball)) {
var s = 1;
while (s < 16) {
y = eval('Ball.m' + s + '._y') + Ball._y;
x = eval('Ball.m' + s + '._x') + Ball._x;
if (t1.hitTest(x, y, true)) {
if (xSpeed < 0) {
xSpeed *= -1;
}
if (Math.abs(xSpeed) < 3) {
xSpeed += 3;
}
xSpeed += 5;
if (t1._y < y) {
ySpeed -= 3 + random(3);
} else {
ySpeed += 3 + random(3);
}
t1.gotoAndPlay(2);
break;
} else {
if (lvertWall.hitTest(x, y, false)) {
if (x < lvertWall._x) {
if (0 < xSpeed) {
xSpeed *= -1;
}
if (xSpeed < -15) {
xSpeed = -15;
}
if (15 < xSpeed) {
xSpeed = 15;
}
} else {
if (xSpeed < 0) {
xSpeed *= -1;
}
xSpeed += 5 + random(5);
if (15 < xSpeed) {
15 < xSpeed;
}
if (xSpeed < -15) {
xSpeed = -15;
}
}
lvertWall.gotoAndPlay(2);
break;
}
}
if (outerBorder.hitTest(x, y, true)) {
if (y < toprCorner._height) {
if (0 < ySpeed) {
ySpeed *= -1;
ySpeed -= 5;
}
} else {
if (x < leftWall._width + outerBorder._x) {
if (xSpeed < 0) {
xSpeed *= -1;
}
xSpeed += 1;
} else {
if (0 < xSpeed) {
xSpeed *= -1;
}
xSpeed -= 1;
}
}
break;
}
++s;
}
} else {
if (r6.hitTest(Ball)) {
var s = 1;
while (s < 16) {
y = eval('Ball.m' + s + '._y') + Ball._y;
x = eval('Ball.m' + s + '._x') + Ball._x;
tiii = 0.15;
if (leftWall.hitTest(x, y + tii * Ball._height, true)) {
if (ySpeed < 0) {
ySpeed *= -0.2;
}
if (Ball._x < leftWall._x - leftWall._width * 0.4) {
if (0 < xSpeed) {
xSpeed *= -0.1;
}
} else {
if (xSpeed < 0) {
xSpeed *= -0.1;
}
xSpeed += 0.6;
Ball._y -= 5;
hit = true;
}
break;
s = 15;
t = -2;
}
if (lFlip.hitTest(x, y, true)) {
if (1 < lFlip._currentFrame && lFlip._currentFrame < 8) {
if (ySpeed < 0) {
ySpeed *= -0.2;
}
Ball._y -= Ball._height * 0.1;
if (Math.abs(ySpeed) < 2) {
ySpeed = 0;
}
ySpeed += 15 + lFlip._currentFrame * 0.8 + Math.abs(xSpeed);
Ball._y -= 15;
xSpeed = xSpeed + 3 - rFlip._currentFrame * 0.4;
} else {
if (ySpeed < 0) {
ySpeed *= -0.2;
}
if (xSpeed < 0) {
xSpeed *= -0.1;
}
xSpeed += 0.6;
hit = true;
}
break;
}
if (outerBorder.hitTest(x, y, true)) {
if (y < toprCorner._height) {
if (0 < ySpeed) {
ySpeed *= -1;
ySpeed -= 5;
}
} else {
if (x < leftWall._width + outerBorder._x) {
if (xSpeed < 0) {
xSpeed *= -1;
}
xSpeed += 1;
} else {
if (0 < xSpeed) {
xSpeed *= -1;
}
xSpeed -= 1;
}
}
break;
}
tiii = 0;
++s;
}
} else {
if (r7.hitTest(Ball)) {
var s = 1;
while (s < 16) {
y = eval('Ball.m' + s + '._y') + Ball._y;
x = eval('Ball.m' + s + '._x') + Ball._x;
tiii = 0.15;
if (rightWall.hitTest(x, y + tiii * Ball._width, true)) {
if (ySpeed < 0) {
ySpeed *= -0.2;
}
if (0 < xSpeed) {
xSpeed *= -0.1;
}
Ball._y -= 5;
xSpeed -= 0.6;
hit = true;
if (rightWall._x + rightWall._width * 0.7 < x) {
Ball2.gotoAndPlay(2);
Ball._visible = false;
}
break;
}
if (rFlip.hitTest(x, y, true)) {
if (1 < rFlip._currentFrame && rFlip._currentFrame < 8) {
if (ySpeed < 0) {
ySpeed *= -0.2;
}
if (Math.abs(ySpeed) < 2) {
ySpeed = 0;
}
ySpeed += 15 + rFlip._currentFrame * 0.8 + Math.abs(xSpeed);
Ball._y -= 15;
xSpeed = xSpeed - 3 + rFlip._currentFrame * 0.4;
} else {
if (ySpeed < 0) {
ySpeed *= -0.2;
}
if (0 < xSpeed) {
xSpeed *= -0.1;
}
xSpeed -= 0.6;
hit = true;
}
break;
}
if (rvertWall.hitTest(x, y, false)) {
if (x < rvertWall._x) {
if (0 < xSpeed) {
xSpeed *= -1;
}
xSpeed -= 10;
if (xSpeed < -15) {
xSpeed = -15;
}
if (15 < xSpeed) {
xSpeed = 15;
}
} else {
if (xSpeed < 0) {
xSpeed *= -1;
}
if (15 < xSpeed) {
15 < xSpeed;
}
if (xSpeed < -15) {
xSpeed = -15;
}
}
rvertWall.gotoAndPlay(2);
break;
}
if (outerBorder.hitTest(x, y, true)) {
if (y < toprCorner._height) {
if (0 < ySpeed) {
ySpeed *= -1;
ySpeed -= 5;
}
} else {
if (x < leftWall._width + outerBorder._x) {
if (xSpeed < 0) {
xSpeed *= -1;
}
xSpeed += 1;
} else {
if (0 < xSpeed) {
xSpeed *= -1;
}
xSpeed -= 1;
}
}
break;
}
tiii = 0;
++s;
}
} else {
var s = 1;
while (s < 16) {
y = eval('Ball.m' + s + '._y') + Ball._y;
x = eval('Ball.m' + s + '._x') + Ball._x;
if (outerBorder.hitTest(x, y, true)) {
if (y < toprCorner._height) {
if (0 < ySpeed) {
ySpeed *= -1;
ySpeed -= 5;
}
} else {
if (x < leftWall._width + outerBorder._x) {
if (xSpeed < 0) {
xSpeed *= -1;
}
xSpeed += 1;
} else {
if (0 < xSpeed) {
xSpeed *= -1;
}
xSpeed -= 1;
}
}
break;
}
if (plunger.hitTest(x, y, true)) {
xSpeed = 0;
ySpeed = 0;
Ball._visible = false;
Ball2._visible = true;
Ball._x = plunger._x;
Ball._y = plunger._y;
Ball2.gotoAndPlay(10);
_root.stopped = true;
break;
hit = true;
}
++s;
}
}
}
}
}
}
}
}
if (mark._y < Ball._y && _root.active) {
_root.active = false;
_root.ballDown = false;
if (0 >= ballCount) {
_root.score = _root.numCorrect;
gotoAndPlay(20);
}
Ball.gotoAndPlay(2);
}
if (letterCount >= word.length) {
_root.stop();
_root.questionLock = true;
drop.gotoAndPlay(2);
}
hit = false;
if (!_root.stopped) {
ySpeed -= 0.6;
}
if (xSpeed < -12) {
xSpeed = -12 - random(2);
}
if (12 < xSpeed) {
xSpeed = 12;
}
if (ySpeed < -12) {
ySpeed = -12 - random(2);
}
if (25 < ySpeed) {
ySpeed = 25;
}
Ball._y -= ySpeed;
Ball._x += xSpeed;
}
}
movieClip 24 {
}
movieClip 26 {
}
movieClip 28 {
}
movieClip 30 {
}
movieClip 32 {
}
movieClip 34 {
}
movieClip 36 {
}
movieClip 37 {
}
movieClip 48 {
frame 1 {
stop();
}
}
movieClip 50 {
}
movieClip 52 {
frame 1 {
stop();
}
}
movieClip 55 {
}
movieClip 56 {
frame 1 {
stop();
}
}
movieClip 58 {
}
movieClip 63 {
frame 1 {
stop();
}
frame 1 {
stop();
}
frame 88 {
_root.Ball2._visible = true;
_root.Ball2.gotoAndPlay(1);
gotoAndPlay(1);
this._visible = false;
}
}
movieClip 65 {
}
movieClip 67 {
frame 1 {
_root.locked = false;
_root.waitS._visible = true;
}
frame 10 {
_root.waitS._visible = true;
}
frame 15 {
_root.waitS._visible = true;
}
frame 20 {
_root.waitS._visible = true;
}
frame 25 {
_root.waitS._visible = true;
}
frame 30 {
_root.waitS._visible = true;
}
frame 45 {
_root.ballDown = true;
if (!_root.active && !_root.backDown) {
--_root.ballCount;
}
_root.active = false;
_root.backDown = false;
_root.ballsLeft = _root.ballCount;
_root.waitS._visible = false;
stop();
}
}
movieClip 74 {
frame 1 {
stop();
}
}
movieClip 80 {
frame 1 {
stop();
}
frame 6 {
gotoAndPlay(1);
}
}
movieClip 82 {
}
button 84 {
on (press) {
if (_root.questionLock) {
_root.play();
_root.drop.gotoAndStop(1);
_root.questionLock = false;
_root.answering = false;
if (_root.active == false) {
_root.Ball2._visible = true;
_root.Ball2.gotoAndPlay(1);
}
}
if (!_root.locked) {
lFlip.gotoAndPlay(2);
rFlip.gotoAndPlay(2);
}
}
}
button 85 {
on (press) {
if (!_root.locked) {
lFlip.gotoAndPlay(2);
rFlip.gotoAndPlay(2);
}
}
}
movieClip 91 {
frame 1 {
stop();
}
frame 6 {
gotoAndPlay(1);
}
}
movieClip 97 {
frame 1 {
stop();
}
frame 6 {
gotoAndPlay(1);
}
}
movieClip 102 {
frame 1 {
stop();
}
frame 6 {
gotoAndPlay(1);
}
}
movieClip 108 {
frame 1 {
stop();
}
frame 6 {
gotoAndPlay(1);
}
}
movieClip 114 {
}
movieClip 116 {
frame 1 {
stop();
}
frame 5 {
_root.power = 5;
}
frame 11 {
_root.power = 15;
}
frame 17 {
_root.power = 20;
}
frame 22 {
_root.power = 25;
}
frame 28 {
_root.power = 30;
}
frame 30 {
_root.power = 40;
}
frame 31 {
stop();
}
frame 81 {
if (!_root.active && _root.ballDown && !_root.backDown) {
_root.Ball._x = this._x;
_root.Ball._y = this._y;
_root.Ball._visible = true;
_root.Ball2._visible = false;
_root.ySpeed = _root.power + Math.random(4);
_root.xSpeed = 1;
_root.stopped = false;
_root.active = true;
}
}
}
movieClip 119 {
}
button 121 {
on (press) {
if (_root.Ball2._currentFrame == 45 && ball2._visible) {
_root.plunged = true;
_root.plunger.gotoAndPlay(2);
}
}
on (release) {
if (_root.Ball2._currentFrame == 45 && _root.plunged && ball2._visible) {
_root.plunged = false;
_root.plunger.gotoAndPlay(80);
}
}
on (releaseOutside) {
_root.plunger.gotoAndStop(1);
}
}
movieClip 125 {
frame 1 {
stop();
}
frame 1 {
stop();
}
frame 88 {
_root.Ball2._visible = true;
_root.Ball2.gotoAndPlay(1);
gotoAndPlay(1);
this._visible = false;
}
}
movieClip 137 {
}
movieClip 148 {
frame 1 {
stop();
}
frame 20 {
_root.drop.gotoAndStop(22);
}
frame 40 {
_root.Ball._x = _root.cBumper._x;
_root.Ball._y = _root.cBumper._y + _root.cBumper._height * 4;
_root.xSpeed = 0;
_root.ySpeed = 5;
_root.currentWord = random(_root.numWords);
while (_root.mainUsed[_root.currentWord] == true) {
_root.currentWord = random(_root.numWords);
}
_root.mainUsed[_root.currentWord] = false;
_root.word = _root.theWords[_root.currentWord];
_root.letterCount = 0;
_root.rrr = 1;
while (_root.rrr < 8) {
var ts = eval('_root.l' + _root.rrr);
ts.tf = ' ';
ts.hit = false;
(eval('_root.mU.a' + _root.rrr)).tf = ' ';
++_root.rrr;
}
_root.rrr = 1;
while (_root.word.length >= _root.rrr) {
var ts = eval('_root.l' + _root.rrr);
ts.tf = _root.word.charAt(_root.rrr - 1);
++_root.rrr;
}
_root.play();
_root.answering = false;
_root.questionLock = false;
_root.drop.gotoAndPlay(1);
}
frame 60 {
_root.drop.gotoAndStop(22);
}
frame 80 {
_root.ballCount += 2;
_root.ballsLeft = _root.ballCount;
++_root.correctCount;
_root.numCorrect = _root.correctCount;
--_root.wordCount;
if (_root.wordCount < 1) {
var t = 0;
while (t < _root.mainUsed.length) {
_root.mainUsed = false;
++t;
}
_root.wordCount = _root.theWords.length;
}
_root.wc = _root.wordCount;
_root.active = false;
_root.ballDown = false;
_root.Ball._visible = false;
}
frame 81 {
_root.mainUsed[_root.currentWord] = true;
_root.currentWord = random(_root.numWords);
while (_root.mainUsed[_root.currentWord] == true) {
_root.currentWord = random(_root.numWords);
}
_root.word = _root.theWords[_root.currentWord];
_root.letterCount = 0;
_root.rrr = 1;
while (_root.rrr < 8) {
var ts = eval('_root.l' + _root.rrr);
ts.tf = ' ';
ts.hit = false;
(eval('_root.mU.a' + _root.rrr)).tf = ' ';
++_root.rrr;
}
_root.rrr = 1;
while (_root.word.length >= _root.rrr) {
var ts = eval('_root.l' + _root.rrr);
ts.tf = _root.word.charAt(_root.rrr - 1);
++_root.rrr;
}
_root.play();
_root.questionLock = false;
_root.answering = false;
_root.Ball2._visible = true;
_root.Ball2.gotoAndPlay(1);
_root.drop.gotoAndStop(1);
}
}
movieClip 149 {
frame 1 {
stop();
}
frame 20 {
_root.drop.gotoAndStop(22);
}
frame 40 {
_root.Ball._x = _root.cBumper._x;
_root.Ball._y = _root.cBumper._y + _root.cBumper._height * 4;
_root.xSpeed = 0;
_root.ySpeed = 5;
_root.currentWord = random(_root.numWords);
while (_root.mainUsed[_root.currentWord] == true) {
_root.currentWord = random(_root.numWords);
}
_root.mainUsed[_root.currentWord] = false;
_root.word = _root.theWords[_root.currentWord];
_root.letterCount = 0;
_root.rrr = 1;
while (_root.rrr < 8) {
var ts = eval('_root.l' + _root.rrr);
ts.tf = ' ';
ts.hit = false;
(eval('_root.mU.a' + _root.rrr)).tf = ' ';
++_root.rrr;
}
_root.rrr = 1;
while (_root.word.length >= _root.rrr) {
var ts = eval('_root.l' + _root.rrr);
ts.tf = _root.word.charAt(_root.rrr - 1);
++_root.rrr;
}
_root.play();
_root.answering = false;
_root.questionLock = false;
_root.drop.gotoAndPlay(1);
}
frame 60 {
_root.drop.gotoAndStop(22);
}
frame 80 {
_root.ballCount += 2;
_root.ballsLeft = _root.ballCount;
++_root.correctCount;
_root.numCorrect = _root.correctCount;
--_root.wordCount;
if (_root.wordCount < 1) {
var t = 0;
while (t < _root.mainUsed.length) {
_root.mainUsed = false;
++t;
}
_root.wordCount = _root.theWords.length;
}
_root.wc = _root.wordCount;
_root.active = false;
_root.ballDown = false;
_root.Ball._visible = false;
}
frame 81 {
_root.mainUsed[_root.currentWord] = true;
_root.currentWord = random(_root.numWords);
while (_root.mainUsed[_root.currentWord] == true) {
_root.currentWord = random(_root.numWords);
}
_root.word = _root.theWords[_root.currentWord];
_root.letterCount = 0;
_root.rrr = 1;
while (_root.rrr < 8) {
var ts = eval('_root.l' + _root.rrr);
ts.tf = ' ';
ts.hit = false;
(eval('_root.mU.a' + _root.rrr)).tf = ' ';
++_root.rrr;
}
_root.rrr = 1;
while (_root.word.length >= _root.rrr) {
var ts = eval('_root.l' + _root.rrr);
ts.tf = _root.word.charAt(_root.rrr - 1);
++_root.rrr;
}
_root.play();
_root.questionLock = false;
_root.answering = false;
_root.Ball2._visible = true;
_root.Ball2.gotoAndPlay(1);
_root.drop.gotoAndStop(1);
}
}
movieClip 150 {
frame 1 {
stop();
}
frame 20 {
_root.drop.gotoAndStop(22);
}
frame 40 {
_root.Ball._x = _root.cBumper._x;
_root.Ball._y = _root.cBumper._y + _root.cBumper._height * 4;
_root.xSpeed = 0;
_root.ySpeed = 5;
_root.currentWord = random(_root.numWords);
while (_root.mainUsed[_root.currentWord] == true) {
_root.currentWord = random(_root.numWords);
}
_root.mainUsed[_root.currentWord] = false;
_root.word = _root.theWords[_root.currentWord];
_root.letterCount = 0;
_root.rrr = 1;
while (_root.rrr < 8) {
var ts = eval('_root.l' + _root.rrr);
ts.tf = ' ';
ts.hit = false;
(eval('_root.mU.a' + _root.rrr)).tf = ' ';
++_root.rrr;
}
_root.rrr = 1;
while (_root.word.length >= _root.rrr) {
var ts = eval('_root.l' + _root.rrr);
ts.tf = _root.word.charAt(_root.rrr - 1);
++_root.rrr;
}
_root.play();
_root.answering = false;
_root.questionLock = false;
_root.drop.gotoAndPlay(1);
}
frame 60 {
_root.drop.gotoAndStop(22);
}
frame 80 {
_root.ballCount += 2;
_root.ballsLeft = _root.ballCount;
++_root.correctCount;
_root.numCorrect = _root.correctCount;
--_root.wordCount;
if (_root.wordCount < 1) {
var t = 0;
while (t < _root.mainUsed.length) {
_root.mainUsed = false;
++t;
}
_root.wordCount = _root.theWords.length;
}
_root.wc = _root.wordCount;
_root.active = false;
_root.ballDown = false;
_root.Ball._visible = false;
}
frame 81 {
_root.mainUsed[_root.currentWord] = true;
_root.currentWord = random(_root.numWords);
while (_root.mainUsed[_root.currentWord] == true) {
_root.currentWord = random(_root.numWords);
}
_root.word = _root.theWords[_root.currentWord];
_root.letterCount = 0;
_root.rrr = 1;
while (_root.rrr < 8) {
var ts = eval('_root.l' + _root.rrr);
ts.tf = ' ';
ts.hit = false;
(eval('_root.mU.a' + _root.rrr)).tf = ' ';
++_root.rrr;
}
_root.rrr = 1;
while (_root.word.length >= _root.rrr) {
var ts = eval('_root.l' + _root.rrr);
ts.tf = _root.word.charAt(_root.rrr - 1);
++_root.rrr;
}
_root.play();
_root.questionLock = false;
_root.answering = false;
_root.Ball2._visible = true;
_root.Ball2.gotoAndPlay(1);
_root.drop.gotoAndStop(1);
}
}
movieClip 151 {
frame 1 {
stop();
}
frame 20 {
_root.drop.gotoAndStop(22);
}
frame 40 {
_root.Ball._x = _root.cBumper._x;
_root.Ball._y = _root.cBumper._y + _root.cBumper._height * 4;
_root.xSpeed = 0;
_root.ySpeed = 5;
_root.currentWord = random(_root.numWords);
while (_root.mainUsed[_root.currentWord] == true) {
_root.currentWord = random(_root.numWords);
}
_root.mainUsed[_root.currentWord] = false;
_root.word = _root.theWords[_root.currentWord];
_root.letterCount = 0;
_root.rrr = 1;
while (_root.rrr < 8) {
var ts = eval('_root.l' + _root.rrr);
ts.tf = ' ';
ts.hit = false;
(eval('_root.mU.a' + _root.rrr)).tf = ' ';
++_root.rrr;
}
_root.rrr = 1;
while (_root.word.length >= _root.rrr) {
var ts = eval('_root.l' + _root.rrr);
ts.tf = _root.word.charAt(_root.rrr - 1);
++_root.rrr;
}
_root.play();
_root.answering = false;
_root.questionLock = false;
_root.drop.gotoAndPlay(1);
}
frame 60 {
_root.drop.gotoAndStop(22);
}
frame 80 {
_root.ballCount += 2;
_root.ballsLeft = _root.ballCount;
++_root.correctCount;
_root.numCorrect = _root.correctCount;
--_root.wordCount;
if (_root.wordCount < 1) {
var t = 0;
while (t < _root.mainUsed.length) {
_root.mainUsed = false;
++t;
}
_root.wordCount = _root.theWords.length;
}
_root.wc = _root.wordCount;
_root.active = false;
_root.ballDown = false;
_root.Ball._visible = false;
}
frame 81 {
_root.mainUsed[_root.currentWord] = true;
_root.currentWord = random(_root.numWords);
while (_root.mainUsed[_root.currentWord] == true) {
_root.currentWord = random(_root.numWords);
}
_root.word = _root.theWords[_root.currentWord];
_root.letterCount = 0;
_root.rrr = 1;
while (_root.rrr < 8) {
var ts = eval('_root.l' + _root.rrr);
ts.tf = ' ';
ts.hit = false;
(eval('_root.mU.a' + _root.rrr)).tf = ' ';
++_root.rrr;
}
_root.rrr = 1;
while (_root.word.length >= _root.rrr) {
var ts = eval('_root.l' + _root.rrr);
ts.tf = _root.word.charAt(_root.rrr - 1);
++_root.rrr;
}
_root.play();
_root.questionLock = false;
_root.answering = false;
_root.Ball2._visible = true;
_root.Ball2.gotoAndPlay(1);
_root.drop.gotoAndStop(1);
}
}
movieClip 157 {
frame 1 {
stop();
}
frame 20 {
_root.tWords = new Array();
var used = new Array(100);
var i = 0;
while (i < 4) {
_root.tWords[i] = 99;
++i;
}
i = 0;
while (i < 100) {
used[i] = false;
++i;
}
_root.correct = random(4);
_root.tWords[_root.correct] = _root.currentWord;
trace(_root.correct + ', ' + _root.tWords[_root.correct]);
used[_root.theAnswers[_root.currentWord]] = true;
var i = 0;
while (i < 4) {
if (_root.tWords[i] == 99) {
var temp = random(_root.theWords.length);
while (used[_root.theAnswers[temp]]) {
temp = random(_root.theWords.length);
}
used[_root.theAnswers[temp]] = true;
_root.tWords[i] = temp;
}
++i;
}
a1._visible = true;
a2._visible = true;
a3._visible = true;
a4._visible = true;
theWord = _root.theWords[_root.currentWord];
def1.ans = _root.theAnswers[_root.tWords[0]];
def2.ans = _root.theAnswers[_root.tWords[1]];
def3.ans = _root.theAnswers[_root.tWords[2]];
def4.ans = _root.theAnswers[_root.tWords[3]];
}
frame 20 {
stop();
}
instance a1 of movieClip 148 {
onClipEvent (mouseDown) {
if (this.hitTest(_root._xMouse, _root._yMouse, true) && !_root.answering) {
_root.answering = true;
if (_root.tWords[0] == _root.currentWord) {
this.gotoAndPlay(41);
} else {
_root.locked = true;
this.gotoAndPlay(2);
}
_root.drop.a2._visible = false;
_root.drop.a3._visible = false;
_root.drop.a4._visible = false;
}
}
}
instance a2 of movieClip 149 {
onClipEvent (mouseDown) {
if (this.hitTest(_root._xMouse, _root._yMouse, true) && !_root.answering) {
_root.answering = true;
if (_root.tWords[1] == _root.currentWord) {
this.gotoAndPlay(41);
} else {
_root.locked = true;
this.gotoAndPlay(2);
}
_root.drop.a1._visible = false;
_root.drop.a3._visible = false;
_root.drop.a4._visible = false;
}
}
}
instance a3 of movieClip 150 {
onClipEvent (mouseUp) {
if (this.hitTest(_root._xMouse, _root._yMouse, true) && !_root.answering) {
_root.answering = true;
if (_root.tWords[2] == _root.currentWord) {
_root.drop.a3.gotoAndPlay(41);
} else {
_root.locked = true;
_root.drop.a3.gotoAndPlay(2);
}
_root.drop.a1._visible = false;
_root.drop.a2._visible = false;
_root.drop.a4._visible = false;
}
}
}
instance a4 of movieClip 151 {
onClipEvent (mouseUp) {
if (this.hitTest(_root._xMouse, _root._yMouse, true) && !_root.answering) {
_root.answering = true;
if (_root.tWords[3] == _root.currentWord) {
_root.drop.a4.gotoAndPlay(41);
} else {
_root.locked = true;
_root.drop.a4.gotoAndPlay(2);
}
_root.drop.a1._visible = false;
_root.drop.a2._visible = false;
_root.drop.a3._visible = false;
}
}
}
frame 21 {
stop();
}
}
movieClip 160 {
}
frame 19 {
gotoAndPlay(18);
}
frame 20 {
stop();
}
button 166 {
on (release) {
_root.initialized = false;
gotoAndPlay(1);
}
}
frame 22 {
stop();
}