Frame 16
ifFrameLoaded (365) {
gotoAndPlay (49);
}
Frame 38
stop();
Frame 39
ifFrameLoaded (365) {
gotoAndPlay (49);
}
Frame 43
gotoAndPlay (39);
Frame 44
pscore = "0";
cscore = "0";
Frame 46
ifFrameLoaded (365) {
gotoAndPlay (49);
}
horz = -"1";
vert = random("2");
if (vert == "0") {
vert = -"1";
}
speed = "20";
Set("/trig:angle", random("70"));
cspeed = "0";
call("/trig:cos");
call("/trig:sin");
xspeed = speed * /trig:cos;
yspeed = speed * /trig:sin;
ballx = "275";
bally = "166";
setProperty("/ball", _x , ballx);
setProperty("/ball", _y , bally);
setProperty("/computer", _x , "40");
setProperty("/computer", _y , "166");
setProperty("/player", _x , "510");
setProperty("/player", _y , "166");
startDrag ("/player", true, "476", "55", "476", "290");
stop();
Frame 49
otherteam = random("10") + "5";
play();
Frame 50
stop();
Frame 51
stop();
Set("/:a", "0");
Set("/:b", "0");
strike = "";
if (base3 == "1") {
setProperty("3", _x , "28");
setProperty("3", _y , "59");
}
if (base2 == "1") {
setProperty("2", _x , "76");
setProperty("2", _y , "18");
}
if (base1 == "1") {
setProperty("1", _x , "124");
setProperty("1", _y , "59");
}
Frame 52
a1 = random("9") + "1";
b1 = random("9") + "1";
if (base3 == "1") {
setProperty("3", _x , "28");
setProperty("3", _y , "59");
}
if (base2 == "1") {
setProperty("2", _x , "76");
setProperty("2", _y , "18");
}
if (base1 == "1") {
setProperty("1", _x , "124");
setProperty("1", _y , "59");
}
Frame 53
stop();
if (base3 == "1") {
setProperty("3", _x , "28");
setProperty("3", _y , "59");
}
if (base2 == "1") {
setProperty("2", _x , "76");
setProperty("2", _y , "18");
}
if (base1 == "1") {
setProperty("1", _x , "124");
setProperty("1", _y , "59");
}
tellTarget ("/time") {
gotoAndPlay (2);
}
Frame 54
gotoAndPlay (67);
Frame 55
tellTarget ("/time") {
gotoAndStop (1);
}
Frame 56
if (/:outs == "3") {
gotoAndStop (364);
} else {
gotoAndStop (51);
}
Frame 57
a2 = random("90") + "10";
b2 = random("9");
if (base3 == "1") {
setProperty("3", _x , "28");
setProperty("3", _y , "59");
}
if (base2 == "1") {
setProperty("2", _x , "76");
setProperty("2", _y , "18");
}
if (base1 == "1") {
setProperty("1", _x , "124");
setProperty("1", _y , "59");
}
Frame 58
stop();
if (base3 == "1") {
setProperty("3", _x , "28");
setProperty("3", _y , "59");
}
if (base2 == "1") {
setProperty("2", _x , "76");
setProperty("2", _y , "18");
}
if (base1 == "1") {
setProperty("1", _x , "124");
setProperty("1", _y , "59");
}
tellTarget ("/time") {
gotoAndPlay (2);
}
Frame 59
gotoAndPlay (67);
Frame 60
tellTarget ("/time") {
gotoAndStop (1);
}
Frame 61
if (/:outs == "3") {
gotoAndStop (364);
} else {
gotoAndStop (51);
}
Frame 62
a3 = random("90") + "10";
b3 = random("90") + "10";
if (base3 == "1") {
setProperty("3", _x , "28");
setProperty("3", _y , "59");
}
if (base2 == "1") {
setProperty("2", _x , "76");
setProperty("2", _y , "18");
}
if (base1 == "1") {
setProperty("1", _x , "124");
setProperty("1", _y , "59");
}
Frame 63
stop();
if (base3 == "1") {
setProperty("3", _x , "28");
setProperty("3", _y , "59");
}
if (base2 == "1") {
setProperty("2", _x , "76");
setProperty("2", _y , "18");
}
if (base1 == "1") {
setProperty("1", _x , "124");
setProperty("1", _y , "59");
}
tellTarget ("/time") {
gotoAndPlay (2);
}
Frame 64
gotoAndPlay (150);
Frame 65
tellTarget ("/time") {
gotoAndStop (1);
}
Frame 66
if (/:outs == "3") {
gotoAndStop (364);
} else if (/:strike == "3") {
gotoAndStop (51);
}
Frame 125
tellTarget ("/scot") {
gotoAndStop (1);
stop();
}
Frame 149
gotoAndStop (51);
Frame 150
Set("/:bases", (/:base1 + /:base2) + /:base3);
Set("/:runs", (/:runs + /:bases) + "1");
if (((base1 == "1") and (base2 == "1")) and (base3 == "1")) {
gotoAndPlay (172);
fback = "GrandSlam!!!!!";
} else {
gotoAndPlay (245);
fback = "It's a Homerun!!";
}
Frame 171
gotoAndStop (51);
Set("/:base1", "0");
Set("/:base2", "0");
Set("/:base3", "0");
Set("/:single", "0");
Set("/:double", "0");
Frame 172
frame = random("2") + "1";
Frame 209
if (frame == "1") {
tellTarget ("/grandslamrun") {
gotoAndPlay ("11");
};
} else if (frame == "2") {
tellTarget ("/grandslamrun") {
gotoAndPlay ("22");
};
}
Frame 244
gotoAndStop (51);
Set("/:base1", "0");
Set("/:base2", "0");
Set("/:base3", "0");
Set("/:single", "0");
Set("/:double", "0");
frame = "0";
Frame 245
frame = random("2") + "1";
Frame 266
if (frame == "1") {
tellTarget ("/hrsounds") {
gotoAndStop ("33");
};
} else if (frame == "2") {
tellTarget ("/hrsounds") {
gotoAndStop ("44");
};
}
Frame 363
gotoAndStop (51);
Set("/:base1", "0");
Set("/:base2", "0");
Set("/:base3", "0");
Set("/:single", "0");
Set("/:double", "0");
frame = "0";
Frame 364
if (/:otherteam < /:runs) {
fback = "You won!! Would you like to play again?";
} else if (/:runs < /:otherteam) {
fback = "Not bad but the other team had more runs. You should do a rematch! Play again?";
}
Symbol 36 Button
on (release) {
gotoAndPlay (39);
}
Symbol 39 Button
on (release) {
gotoAndPlay (44);
}
Symbol 46 MovieClip Frame 1
stop();
sin0 = "0";
cos0 = "1";
sin1 = "0.0175";
cos1 = "0.9998";
sin2 = "0.0349";
cos2 = "0.9994";
sin3 = "0.0523";
cos3 = "0.9986";
sin4 = "0.0698";
cos4 = "0.9976";
sin5 = "0.0872";
cos5 = "0.9962";
sin6 = "0.1045";
cos6 = "0.9945";
sin7 = "0.1219";
cos7 = "0.9925";
sin8 = "0.1392";
cos8 = "0.9903";
sin9 = "0.1564";
cos9 = "0.9877";
sin10 = "0.1736";
cos10 = "0.9848";
sin11 = "0.1908";
cos11 = "0.9816";
sin12 = "0.2079";
cos12 = "0.9781";
sin13 = "0.225";
cos13 = "0.9744";
sin14 = "0.2419";
cos14 = "0.9703";
sin15 = "0.2588";
cos15 = "0.9659";
sin16 = "0.2756";
cos16 = "0.9613";
sin17 = "0.2924";
cos17 = "0.9563";
sin18 = "0.309";
cos18 = "0.9511";
sin19 = "0.3256";
cos19 = "0.9455";
sin20 = "0.342";
cos20 = "0.9397";
sin21 = "0.3584";
cos21 = "0.9336";
sin22 = "0.3746";
cos22 = "0.9272";
sin23 = "0.3907";
cos23 = "0.9205";
sin24 = "0.4067";
cos24 = "0.9135";
sin25 = "0.4226";
cos25 = "0.9063";
sin26 = "0.4384";
cos26 = "0.8988";
sin27 = "0.454";
cos27 = "0.891";
sin28 = "0.4695";
cos28 = "0.8829";
sin29 = "0.4848";
cos29 = "0.8746";
sin30 = "0.5";
cos30 = "0.866";
sin31 = "0.515";
cos31 = "0.8572";
sin32 = "0.5299";
cos32 = "0.848";
sin33 = "0.5446";
cos33 = "0.8387";
sin34 = "0.5592";
cos34 = "0.829";
sin35 = "0.5736";
cos35 = "0.8192";
sin36 = "0.5878";
cos36 = "0.809";
sin37 = "0.6018";
cos37 = "0.7986";
sin38 = "0.6157";
cos38 = "0.788";
sin39 = "0.6293";
cos39 = "0.7771";
sin40 = "0.6428";
cos40 = "0.766";
sin41 = "0.6561";
cos41 = "0.7547";
sin42 = "0.6691";
cos42 = "0.7431";
sin43 = "0.682";
cos43 = "0.7314";
sin44 = "0.6947";
cos44 = "0.7193";
sin45 = "0.7071";
cos45 = "0.7071";
sin46 = "0.7193";
cos46 = "0.6947";
sin47 = "0.7314";
cos47 = "0.682";
sin48 = "0.7431";
cos48 = "0.6691";
sin49 = "0.7547";
cos49 = "0.6561";
sin50 = "0.766";
cos50 = "0.6428";
sin51 = "0.7771";
cos51 = "0.6293";
sin52 = "0.788";
cos52 = "0.6157";
sin53 = "0.7986";
cos53 = "0.6018";
sin54 = "0.809";
cos54 = "0.5878";
sin55 = "0.8192";
cos55 = "0.5736";
sin56 = "0.829";
cos56 = "0.5592";
sin57 = "0.8387";
cos57 = "0.5446";
sin58 = "0.848";
cos58 = "0.5299";
sin59 = "0.8572";
cos59 = "0.515";
sin60 = "0.866";
cos60 = "0.5";
sin61 = "0.8746";
cos61 = "0.4848";
sin62 = "0.8829";
cos62 = "0.4695";
sin63 = "0.891";
cos63 = "0.454";
sin64 = "0.8988";
cos64 = "0.4384";
sin65 = "0.9063";
cos65 = "0.4226";
sin66 = "0.9135";
cos66 = "0.4067";
sin67 = "0.4067";
cos67 = "0.4067";
sin68 = "0.9272";
cos68 = "0.3746";
sin69 = "0.9336";
cos69 = "0.3584";
sin70 = "0.9397";
cos70 = "0.342";
sin71 = "0.9455";
cos71 = "0.3256";
sin72 = "0.9511";
cos72 = "0.309";
sin73 = "0.9563";
cos73 = "0.2924";
sin74 = "0.9613";
cos74 = "0.2756";
sin75 = "0.9659";
cos75 = "0.2588";
sin76 = "0.9703";
cos76 = "0.2419";
sin77 = "0.9744";
cos77 = "0.225";
sin78 = "0.9781";
cos78 = "0.2079";
sin79 = "0.9816";
cos79 = "0.1908";
sin80 = "0.9848";
cos80 = "0.1736";
sin81 = "0.9877";
cos81 = "0.1564";
sin82 = "0.9903";
cos82 = "0.1392";
sin83 = "0.9925";
cos83 = "0.1219";
sin84 = "0.9945";
cos84 = "0.1045";
sin85 = "0.9962";
cos85 = "0.0872";
sin86 = "0.9976";
cos86 = "0.0698";
sin87 = "0.9986";
cos87 = "0.0523";
sin88 = "0.9994";
cos88 = "0.0349";
sin89 = "0.9998";
cos89 = "0.0175";
sin90 = "1";
cos90 = "0";
Symbol 46 MovieClip Frame 2
theta = int(angle);
if ("360" < theta) {
theta = theta - (int(theta / "360") * "360");
}
if (("360" >= theta) and (theta >= "270")) {
sin = eval ("sin" add ("90" - (theta - "270"))) * (-"1");
} else if ((theta < "270") and (theta >= "180")) {
sin = eval ("sin" add (theta - "180")) * (-"1");
} else if ((theta < "180") and ("90" < theta)) {
sin = eval ("sin" add ("180" - theta));
} else {
sin = eval ("sin" add theta);
}
Symbol 46 MovieClip Frame 3
theta = int(angle);
if ("360" < theta) {
theta = theta - (int(theta / "360") * "360");
}
if (("360" >= theta) and (theta >= "270")) {
cos = eval ("cos" add ("90" - (theta - "270")));
} else if ((theta < "270") and (theta >= "180")) {
cos = eval ("cos" add (theta - "180")) * (-"1");
} else if ((theta < "180") and ("90" < theta)) {
cos = eval ("cos" add ("180" - theta)) * (-"1");
} else {
cos = eval ("cos" add theta);
}
Symbol 47 MovieClip Frame 1
if ((/:bally < "30") and (/:vert == (-"1"))) {
Set("/:vert", "1");
}
if (("315" < /:bally) and (/:vert == "1")) {
Set("/:vert", -"1");
}
if (((/:ballx >= (getProperty("/player", _x) - /:speed)) and ((getProperty("/player", _x) + /:speed) >= /:ballx)) and (/:horz == "1")) {
paddle = getProperty("/player", _y);
if (("25" >= (paddle - /:bally)) and ((paddle - /:bally) >= (-"25"))) {
if ((paddle - /:bally) >= "0") {
Set("/:vert", -"1");
} else {
Set("/:vert", "1");
}
Set("/trig:angle", ((((-"1") * /:vert) * (paddle - /:bally)) / "25") * "75");
call("/trig:sin");
call("/trig:cos");
Set("/:xspeed", /trig:cos * /:speed);
Set("/:yspeed", /trig:sin * /:speed);
Set("/:horz", -"1");
}
}
if (((/:ballx >= (getProperty("/computer", _x) - /:speed)) and ((getProperty("/computer", _x) + /:speed) >= /:ballx)) and (/:horz == (-"1"))) {
paddle = getProperty("/computer", _y);
if (("25" >= (paddle - /:bally)) and ((paddle - /:bally) >= (-"25"))) {
if ((paddle - /:bally) >= "0") {
Set("/:vert", -"1");
} else {
Set("/:vert", "1");
}
Set("/trig:angle", ((((-"1") * /:vert) * (paddle - /:bally)) / "25") * "75");
call("/trig:sin");
call("/trig:cos");
Set("/:xspeed", /trig:cos * /:speed);
Set("/:yspeed", /trig:sin * /:speed);
Set("/:horz", "1");
}
}
if (/:ballx < "20") {
Set("/:pscore", /:pscore + "1");
if (/:pscore == "10") {
tellTarget ("/") {
gotoAndStop ("win");
};
} else {
tellTarget ("/") {
gotoAndPlay ("round");
};
}
}
if ("530" < /:ballx) {
Set("/:cscore", /:cscore + "1");
if (/:cscore == "10") {
tellTarget ("/") {
gotoAndStop ("lose");
};
} else {
tellTarget ("/") {
gotoAndPlay ("round");
};
}
}
Set("/:ballx", /:ballx + (/:xspeed * /:horz));
Set("/:bally", /:bally + (/:yspeed * /:vert));
setProperty("/ball", _x , /:ballx);
setProperty("/ball", _y , /:bally);
Symbol 47 MovieClip Frame 2
if ((/:bally < "30") and (/:vert == (-"1"))) {
Set("/:vert", "1");
}
if (("315" < /:bally) and (/:vert == "1")) {
Set("/:vert", -"1");
}
if (((/:ballx >= (getProperty("/player", _x) - /:speed)) and ((getProperty("/player", _x) + /:speed) >= /:ballx)) and (/:horz == "1")) {
paddle = getProperty("/player", _y);
if (("25" >= (paddle - /:bally)) and ((paddle - /:bally) >= (-"25"))) {
if ((paddle - /:bally) >= "0") {
Set("/:vert", -"1");
} else {
Set("/:vert", "1");
}
Set("/trig:angle", ((((-"1") * /:vert) * (paddle - /:bally)) / "25") * "75");
call("/trig:sin");
call("/trig:cos");
Set("/:xspeed", /trig:cos * /:speed);
Set("/:yspeed", /trig:sin * /:speed);
Set("/:horz", -"1");
}
}
if (((/:ballx >= (getProperty("/computer", _x) - /:speed)) and ((getProperty("/computer", _x) + /:speed) >= /:ballx)) and (/:horz == (-"1"))) {
paddle = getProperty("/computer", _y);
if (("25" >= (paddle - /:bally)) and ((paddle - /:bally) >= (-"25"))) {
if ((paddle - /:bally) >= "0") {
Set("/:vert", -"1");
} else {
Set("/:vert", "1");
}
Set("/trig:angle", ((((-"1") * /:vert) * (paddle - /:bally)) / "25") * "75");
call("/trig:sin");
call("/trig:cos");
Set("/:xspeed", /trig:cos * /:speed);
Set("/:yspeed", /trig:sin * /:speed);
Set("/:horz", "1");
}
}
if (/:ballx < "20") {
Set("/:pscore", /:pscore + "1");
if (/:pscore == "10") {
tellTarget ("/") {
gotoAndStop ("win");
};
} else {
tellTarget ("/") {
gotoAndPlay ("round");
};
}
}
if ("530" < /:ballx) {
Set("/:cscore", /:cscore + "1");
if (/:cscore == "10") {
tellTarget ("/") {
gotoAndStop ("lose");
};
} else {
tellTarget ("/") {
gotoAndPlay ("round");
};
}
}
Set("/:ballx", /:ballx + (/:xspeed * /:horz));
Set("/:bally", /:bally + (/:yspeed * /:vert));
setProperty("/ball", _x , /:ballx);
setProperty("/ball", _y , /:bally);
Symbol 48 MovieClip Frame 1
if (/:horz == (-"1")) {
Set("/:cspeed", random("13") + "18");
if ((/:bally < getProperty("/computer", _y)) and (/:cspeed >= "0")) {
Set("/:cspeed", /:cspeed * (-"1"));
}
if (/:cspeed < "0") {
sign = "1";
} else {
sign = -"1";
}
if (((getProperty("/computer", _y) - /:bally) < "60") or ((-"60") < (getProperty("/computer", _y) - /:bally))) {
dspeed = /:cspeed * (((getProperty("/computer", _y) - /:bally) * sign) / "60");
} else {
dspeed = /:cspeed;
}
setProperty("/computer", _y , getProperty("/computer", _y) + dspeed);
if (getProperty("/computer", _y) < "55") {
setProperty("/computer", _y , "55");
}
if ("290" < getProperty("/computer", _y)) {
setProperty("/computer", _y , "290");
}
}
Symbol 48 MovieClip Frame 2
if (/:horz == (-"1")) {
Set("/:cspeed", random("15") + "20");
if ((/:bally < getProperty("/computer", _y)) and (/:cspeed >= "0")) {
Set("/:cspeed", /:cspeed * (-"1"));
}
if (/:cspeed < "0") {
sign = "1";
} else {
sign = -"1";
}
if (((getProperty("/computer", _y) - /:bally) < "60") or ((-"60") < (getProperty("/computer", _y) - /:bally))) {
dspeed = /:cspeed * (((getProperty("/computer", _y) - /:bally) * sign) / "60");
} else {
dspeed = /:cspeed;
}
setProperty("/computer", _y , getProperty("/computer", _y) + dspeed);
if (getProperty("/computer", _y) < "55") {
setProperty("/computer", _y , "55");
}
if ("290" < getProperty("/computer", _y)) {
setProperty("/computer", _y , "290");
}
}
Symbol 68 Button
on (release) {
gotoAndPlay (51);
}
Symbol 88 Button
on (press) {
gotoAndPlay (57);
double = "1";
EggCounter = "0";
while (EggCounter < "9") {
EggCounter = EggCounter + "1";
Set("Egg" add EggCounter, "0");
}
EggCounter = "0";
Row = "0";
Column = "0";
while (EggCounter < "9") {
EggCounter = EggCounter + "1";
if ((EggCounter >= "1") and ("3" >= EggCounter)) {
Row = "1";
Column = EggCounter;
} else if ((EggCounter >= "4") and ("6" >= EggCounter)) {
Row = "2";
Column = EggCounter - "3";
} else if ((EggCounter >= "7") and ("9" >= EggCounter)) {
Row = "3";
Column = EggCounter - "6";
}
Done = "0";
while (Done == "0") {
CurrentEgg = random("9") + "1";
if (eval ("Egg" add CurrentEgg) == "0") {
setProperty("Egg" add CurrentEgg, _x , ((Column - "1") * "46") + "200");
setProperty("Egg" add CurrentEgg, _y , ((Row - "1") * "46") + "190");
Done = "1";
Set("Egg" add CurrentEgg, "1");
} else {
Done = "0";
}
}
}
}
Symbol 100 Button
on (press) {
gotoAndPlay (62);
EggCounter = "0";
while (EggCounter < "9") {
EggCounter = EggCounter + "1";
Set("Egg" add EggCounter, "0");
}
EggCounter = "0";
Row = "0";
Column = "0";
while (EggCounter < "9") {
EggCounter = EggCounter + "1";
if ((EggCounter >= "1") and ("3" >= EggCounter)) {
Row = "1";
Column = EggCounter;
} else if ((EggCounter >= "4") and ("6" >= EggCounter)) {
Row = "2";
Column = EggCounter - "3";
} else if ((EggCounter >= "7") and ("9" >= EggCounter)) {
Row = "3";
Column = EggCounter - "6";
}
Done = "0";
while (Done == "0") {
CurrentEgg = random("9") + "1";
if (eval ("Egg" add CurrentEgg) == "0") {
setProperty("Egg" add CurrentEgg, _x , ((Column - "1") * "48") + "207");
setProperty("Egg" add CurrentEgg, _y , ((Row - "1") * "47") + "190");
Done = "1";
Set("Egg" add CurrentEgg, "1");
} else {
Done = "0";
}
}
}
}
Symbol 105 Button
on (press) {
gotoAndPlay (52);
single = "1";
EggCounter = "0";
while (EggCounter < "9") {
EggCounter = EggCounter + "1";
Set("Egg" add EggCounter, "0");
}
EggCounter = "0";
Row = "0";
Column = "0";
while (EggCounter < "9") {
EggCounter = EggCounter + "1";
if ((EggCounter >= "1") and ("3" >= EggCounter)) {
Row = "1";
Column = EggCounter;
} else if ((EggCounter >= "4") and ("6" >= EggCounter)) {
Row = "2";
Column = EggCounter - "3";
} else if ((EggCounter >= "7") and ("9" >= EggCounter)) {
Row = "3";
Column = EggCounter - "6";
}
Done = "0";
while (Done == "0") {
CurrentEgg = random("9") + "1";
if (eval ("Egg" add CurrentEgg) == "0") {
setProperty("Egg" add CurrentEgg, _x , ((Column - "1") * "46") + "200");
setProperty("Egg" add CurrentEgg, _y , ((Row - "1") * "46") + "190");
Done = "1";
Set("Egg" add CurrentEgg, "1");
} else {
Done = "0";
}
}
}
}
Symbol 115 Button
on (release) {
if ((((/:base1 == "1") and (/:base2 == "1")) and (/:base3 == "1")) and (/:double == "1")) {
Set("/:base1", "1");
Set("/:base3", "1");
Set("/:base2", "1");
Set("/:runs", /:runs + "1");
}
if ((((/:base1 == "1") and (/:base2 == "1")) and (/:base3 == "0")) and (/:double == "1")) {
Set("/:base1", "1");
Set("/:base3", "1");
Set("/:base2", "1");
}
if ((((/:base1 == "1") and (/:base2 == "0")) and (/:base3 == "1")) and (/:double == "1")) {
setProperty("/3", _visible , "false");
Set("/:base1", "1");
Set("/:base3", "0");
Set("/:base2", "1");
Set("/:runs", /:runs + "1");
}
if ((((/:base1 == "0") and (/:base2 == "1")) and (/:base3 == "1")) and (/:double == "1")) {
Set("/:base1", "1");
Set("/:base3", "1");
Set("/:base2", "0");
Set("/:runs", runs + "1");
setProperty("/2", _visible , "0");
}
if ((((/:base1 == "0") and (/:base2 == "1")) and (/:base3 == "0")) and (/:double == "1")) {
Set("/:base1", "1");
Set("/:base3", "1");
Set("/:base2", "0");
setProperty("/2", _visible , "0");
}
if ((((/:base1 == "1") and (/:base2 == "0")) and (/:base3 == "0")) and (/:double == "1")) {
Set("/:base1", "1");
Set("/:base3", "0");
Set("/:base2", "1");
}
if ((((/:base1 == "1") and (/:base2 == "1")) and (/:base3 == "1")) and (/:double == "0")) {
Set("/:base1", "1");
Set("/:base2", "1");
Set("/:base3", "1");
Set("/:runs", /:runs + "1");
}
if ((((/:base1 == "1") and (/:base2 == "1")) and (/:base3 == "0")) and (/:double == "0")) {
Set("/:base1", "1");
Set("/:base2", "1");
Set("/:base3", "1");
}
if ((((/:base1 == "1") and (/:base2 == "0")) and (/:base3 == "0")) and (/:double == "0")) {
Set("/:base1", "1");
Set("/:base2", "1");
Set("/:base3", "0");
}
if ((((/:base1 == "0") and (/:base2 == "0")) and (/:base3 == "0")) and (/:double == "0")) {
Set("/:base1", "1");
Set("/:base2", "0");
Set("/:base3", "0");
}
if ((((/:base1 == "0") and (/:base2 == "0")) and (/:base3 == "0")) and (/:double == "1")) {
Set("/:base1", "1");
Set("/:base2", "0");
Set("/:base3", "0");
}
}
on (release) {
tellTarget ("/") {
gotoAndPlay ("hit");
}
}
Symbol 116 MovieClip Frame 1
stop();
var1 = /:a1 * /:b1;
Symbol 118 Button
on (release) {
if (var3 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike");
};
} else if (var3 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 119 MovieClip Frame 1
if (/egg1:var1 < "4") {
var3 = /egg1:var1 + "6";
} else {
var3 = /egg1:var1 - "3";
}
Symbol 121 Button
on (release) {
if (var7 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike");
};
} else if (var7 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 122 MovieClip Frame 1
var7 = /egg1:var1 + "2";
Symbol 124 Button
on (release) {
if (var4 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike");
};
} else if (var4 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 125 MovieClip Frame 1
if (/egg1:var1 < "4") {
var4 = /egg1:var1 + "7";
} else {
var4 = /egg1:var1 - "2";
}
Symbol 127 Button
on (release) {
if (var6 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike");
};
} else if (var6 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 128 MovieClip Frame 1
var6 = /egg1:var1 + "1";
Symbol 130 Button
on (release) {
if (var8 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike");
};
} else if (var8 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 131 MovieClip Frame 1
var8 = /egg1:var1 + "3";
Symbol 133 Button
on (release) {
if (var5 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike");
};
} else if (var5 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 134 MovieClip Frame 1
stop();
if (/egg1:var1 < "4") {
var5 = /egg1:var1 + "8";
} else {
var5 = /egg1:var1 - "1";
}
Symbol 136 Button
on (release) {
if (var9 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike");
};
} else if (var9 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 137 MovieClip Frame 1
var9 = /egg1:var1 + "4";
Symbol 139 Button
on (release) {
if (var2 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike");
};
} else if (var2 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 140 MovieClip Frame 1
if (/egg1:var1 < "5") {
var2 = /egg1:var1 + "5";
} else {
var2 = /egg1:var1 - "4";
}
Symbol 147 MovieClip Frame 1
stop();
timer = "45";
play();
Symbol 147 MovieClip Frame 3
play();
if (seconds == "9") {
seconds = "0";
}
seconds = seconds + "1";
if (timer == "0") {
tellTarget ("/time") {
gotoAndStop (1);
};
Set("/:strike", /:strike + "1");
tellTarget ("/") {
gotoAndStop ("strike");
};
gotoAndStop (1);
} else {
play();
}
Symbol 147 MovieClip Frame 4
play();
if (seconds == "9") {
timer = timer - "1";
}
gotoAndPlay (2);
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 17
stop();
gotoAndStop (1);
Symbol 160 MovieClip Frame 35
stop();
Symbol 160 MovieClip Frame 55
stop();
Symbol 161 MovieClip Frame 1
status = /:runs;
status1 = /:time;
status2 = /:strike;
status3 = /:outs;
status4 = /:strike;
if (/:strike == "3") {
fback = "Awww! You struck out! The correct answer was";
fback1 = /:a1 * /:b1;
Set("/:outs", /:outs + "1");
}
Symbol 161 MovieClip Frame 10
if (/:strike == "1") {
tellTarget ("strikesounds") {
gotoAndPlay (2);
};
} else if (/:strike == "2") {
tellTarget ("strikesounds") {
gotoAndPlay (18);
};
} else if (/:strike == "3") {
tellTarget ("strikesounds") {
gotoAndPlay (36);
};
}
Symbol 161 MovieClip Frame 40
stop();
if (/:strike == "3") {
tellTarget ("/") {
gotoAndStop ("goback");
};
} else if (/:strike <> "3") {
tellTarget ("/") {
gotoAndStop ("game");
};
}
tellTarget ("/time") {
gotoAndStop (1);
}
Symbol 165 Button
on (release) {
if ((((/:single == "1") and (/:base1 == "0")) and (/:base2 == "1")) and (/:base3 == "0")) {
setProperty("/3", _visible , "0");
setProperty("/1", _visible , "0");
Set("/:base1", "0");
Set("/:base2", "1");
Set("/:base3", "0");
Set("/:runs", /:runs + "1");
}
if ((((/:single == "1") and (/:base1 == "0")) and (/:base2 == "1")) and (/:base3 == "1")) {
setProperty("/3", _visible , "0");
setProperty("/1", _visible , "0");
Set("/:base1", "0");
Set("/:base2", "1");
Set("/:base3", "0");
Set("/:runs", /:runs + "2");
}
if ((((/:single == "1") and (/:base1 == "1")) and (/:base2 == "0")) and (/:base3 == "1")) {
Set("/:base1", "0");
Set("/:base2", "1");
Set("/:base3", "1");
setProperty("/2", _visible , "0");
Set("/:runs", /:runs + "1");
}
if ((((/:single == "1") and (/:base1 == "1")) and (/:base2 == "1")) and (/:base3 == "1")) {
Set("/:base1", "0");
Set("/:base2", "1");
Set("/:base3", "1");
setProperty("/1", _visible , "0");
Set("/:runs", /:runs + "2");
}
if ((((/:single == "1") and (/:base1 == "1")) and (/:base2 == "1")) and (/:base3 == "0")) {
Set("/:base1", "0");
Set("/:base2", "1");
Set("/:base3", "1");
setProperty("/1", _visible , "0");
Set("/:runs", /:runs + "1");
}
if ((((/:single == "1") and (/:base1 == "1")) and (/:base2 == "0")) and (/:base3 == "0")) {
Set("/:base1", "0");
Set("/:base2", "1");
Set("/:base3", "1");
setProperty("/1", _visible , "0");
}
if ((((/:base1 == "0") and (/:base2 == "1")) and (/:base3 == "0")) and (/:single == "0")) {
Set("/:base1", "0");
Set("/:base2", "1");
Set("/:base3", "0");
Set("/:runs", /:runs + "1");
}
if ((((/:base1 == "0") and (/:base2 == "0")) and (/:base3 == "0")) and (/:single == "0")) {
Set("/:base1", "0");
Set("/:base2", "1");
Set("/:base3", "0");
}
if ((((/:base1 == "0") and (/:base2 == "0")) and (/:base3 == "0")) and (/:single == "1")) {
Set("/:base1", "0");
Set("/:base2", "1");
Set("/:base3", "0");
}
}
on (release) {
tellTarget ("/") {
gotoAndPlay ("hit1");
}
}
Symbol 166 MovieClip Frame 1
stop();
var1 = /:a2 * /:b2;
Symbol 168 Button
on (release) {
if (var3 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike1");
};
} else if (var3 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 169 MovieClip Frame 1
if (/egg1:var1 < "4") {
var3 = /egg1:var1 + "20";
} else {
var3 = /egg1:var1 - "20";
}
Symbol 171 Button
on (release) {
if (var7 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike1");
};
} else if (var7 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 172 MovieClip Frame 1
var7 = /egg1:var1 + "2";
Symbol 174 Button
on (release) {
if (var4 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike1");
};
} else if (var4 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 175 MovieClip Frame 1
if (/egg1:var1 < "4") {
var4 = /egg1:var1 + "30";
} else {
var4 = /egg1:var1 - "30";
}
Symbol 177 Button
on (release) {
if (var6 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike1");
};
} else if (var6 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 178 MovieClip Frame 1
var6 = /egg1:var1 + "1";
Symbol 180 Button
on (release) {
if (var8 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike1");
};
} else if (var8 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 181 MovieClip Frame 1
var8 = /egg1:var1 + "3";
Symbol 183 Button
on (release) {
if (var5 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike1");
};
} else if (var5 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 184 MovieClip Frame 1
if (/egg1:var1 < "4") {
var5 = /egg1:var1 + "8";
} else {
var5 = /egg1:var1 - "1";
}
Symbol 186 Button
on (release) {
if (var9 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike1");
};
} else if (var9 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 187 MovieClip Frame 1
var9 = /egg1:var1 + "4";
Symbol 189 Button
on (release) {
if (var2 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike1");
};
} else if (var2 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 190 MovieClip Frame 1
if (/egg1:var1 < "4") {
var2 = /egg1:var1 + "10";
} else {
var2 = /egg1:var1 - "10";
}
Symbol 197 MovieClip Frame 1
stop();
timer = "45";
play();
Symbol 197 MovieClip Frame 3
play();
if (seconds == "9") {
seconds = "0";
}
seconds = seconds + "1";
if (timer == "0") {
tellTarget ("/time") {
gotoAndStop (1);
};
Set("/:strike", /:strike + "1");
tellTarget ("/") {
gotoAndStop ("strike1");
};
gotoAndStop (1);
} else {
play();
}
Symbol 197 MovieClip Frame 4
play();
if (seconds == "9") {
timer = timer - "1";
}
gotoAndPlay (2);
Symbol 204 MovieClip Frame 1
status = /:runs;
status1 = /:time;
status2 = /:strike;
status3 = /:outs;
status4 = /:strike;
if (/:strike == "3") {
fback = "Awww! You struck out! The correct answer was";
fback1 = /:a2 * /:b2;
Set("/:outs", /:outs + "1");
}
Symbol 204 MovieClip Frame 9
if (/:strike == "1") {
tellTarget ("strikesounds") {
gotoAndPlay (2);
};
} else if (/:strike == "2") {
tellTarget ("strikesounds") {
gotoAndPlay (18);
};
} else if (/:strike == "3") {
tellTarget ("strikesounds") {
gotoAndPlay (36);
};
}
Symbol 204 MovieClip Frame 40
stop();
if (/:strike == "3") {
tellTarget ("/") {
gotoAndStop ("goback1");
};
} else {
tellTarget ("/") {
gotoAndStop ("1");
};
}
tellTarget ("/time") {
gotoAndStop (1);
}
Symbol 209 Button
on (release) {
tellTarget ("/") {
gotoAndPlay ("hit2");
}
}
Symbol 210 MovieClip Frame 1
stop();
var1 = /:a3 * /:b3;
Symbol 212 Button
on (release) {
if (var3 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike2");
};
} else if (var3 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 213 MovieClip Frame 1
if (/egg1:var1 < "4") {
var3 = /egg1:var1 + "20";
} else {
var3 = /egg1:var1 - "20";
}
Symbol 215 Button
on (release) {
if (var7 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike2");
};
} else if (var7 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 216 MovieClip Frame 1
var7 = /egg1:var1 + "2";
Symbol 218 Button
on (release) {
if (var4 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike2");
};
} else if (var4 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 219 MovieClip Frame 1
if (/egg1:var1 < "4") {
var4 = /egg1:var1 + "30";
} else {
var4 = /egg1:var1 - "30";
}
Symbol 221 Button
on (release) {
if (var6 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike2");
};
} else if (var6 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 222 MovieClip Frame 1
var6 = /egg1:var1 + "1";
Symbol 224 Button
on (release) {
if (var8 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike2");
};
} else if (var8 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 225 MovieClip Frame 1
var8 = /egg1:var1 + "3";
Symbol 227 Button
on (release) {
if (var5 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike2");
};
} else if (var5 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 228 MovieClip Frame 1
if (/egg1:var1 < "4") {
var5 = /egg1:var1 + "8";
} else {
var5 = /egg1:var1 - "1";
}
Symbol 230 Button
on (release) {
if (var9 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike2");
};
} else if (var9 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 231 MovieClip Frame 1
var9 = /egg1:var1 + "4";
Symbol 233 Button
on (release) {
if (var2 <> (/:a * /:b)) {
Set("/:strike", /:strike + "1");
tellTarget ("/time") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndStop ("strike2");
};
} else if (var2 == (/:a * /:b)) {
gotoAndPlay (1);
}
}
Symbol 234 MovieClip Frame 1
if (/egg1:var1 < "4") {
var2 = /egg1:var1 + "10";
} else {
var2 = /egg1:var1 - "10";
}
Symbol 247 MovieClip Frame 1
stop();
timer = "45";
play();
Symbol 247 MovieClip Frame 3
play();
if (seconds == "9") {
seconds = "0";
}
seconds = seconds + "1";
if (timer == "0") {
tellTarget ("/time") {
gotoAndStop (1);
};
Set("/:strike", /:strike + "1");
tellTarget ("/") {
gotoAndStop ("strike2");
};
gotoAndStop (1);
} else {
play();
}
Symbol 247 MovieClip Frame 4
play();
if (seconds == "9") {
timer = timer - "1";
}
gotoAndPlay (2);
Symbol 255 MovieClip Frame 1
status = /:runs;
status1 = /:time;
status2 = /:strike;
status3 = /:outs;
status4 = /:strike;
if (/:strike == "3") {
fback = "Awww! You struck out! The correct answer was";
fback1 = /:a3 * /:b3;
Set("/:outs", /:outs + "1");
}
Symbol 255 MovieClip Frame 9
if (/:strike == "1") {
tellTarget ("strikesounds") {
gotoAndPlay (2);
};
} else if (/:strike == "2") {
tellTarget ("strikesounds") {
gotoAndPlay (18);
};
} else if (/:strike == "3") {
tellTarget ("strikesounds") {
gotoAndPlay (36);
};
}
Symbol 255 MovieClip Frame 40
stop();
if (/:strike == "3") {
tellTarget ("/") {
gotoAndStop ("goback2");
};
} else {
tellTarget ("/") {
gotoAndStop ("2");
};
}
tellTarget ("/time") {
gotoAndStop (1);
}
Symbol 267 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 42
gotoAndStop (1);
Symbol 269 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 2
stop();
Symbol 269 MovieClip Frame 35
gotoAndStop (1);
Symbol 270 MovieClip Frame 4
stop();
tellTarget ("gs1") {
gotoAndPlay (2);
}
Symbol 270 MovieClip Frame 101
gotoAndStop (1);
Symbol 270 MovieClip Frame 102
stop();
tellTarget ("gs2") {
gotoAndPlay (2);
}
Symbol 270 MovieClip Frame 198
gotoAndStop (1);
Symbol 272 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 2
play();
Symbol 272 MovieClip Frame 76
gotoAndStop (1);
Symbol 274 MovieClip Frame 1
stop();
Symbol 274 MovieClip Frame 2
play();
Symbol 274 MovieClip Frame 80
gotoAndStop (1);
Symbol 275 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 2
tellTarget ("hr1") {
gotoAndPlay (2);
}
Symbol 275 MovieClip Frame 3
tellTarget ("hr2") {
gotoAndPlay (2);
}
Symbol 281 Button
on (release) {
getURL ("http://www.prongo.com/math/multiplication.html");
}
Symbol 282 Button
on (release) {
getURL ("http://www.prongo.com/games/");
}