Frame 1
perc = (100 * getBytesLoaded()) / getBytesTotal();
red._xscale = perc;
if (perc >= 99) {
gotoAndStop (4);
}
Frame 2
gotoAndPlay (1);
Frame 4
hiscoresurl = "http://www.coldtomatoes.com/games/juggler/highscores.php";
counturl = "http://www.coldtomatoes.com/games/juggler/count.php";
level = 1;
lives = 5;
score = 0;
gameid = 101;
tows = new Array();
tows[1] = "WITH THE THREE BALLS AVERAGE";
tows[2] = "WHERE SIZE SEEMS TO MATTER";
tows[3] = "WITH THE FOURSOME";
tows[4] = "WITH THE THING TOO SMALL TO JUGGLE FOUR BALLS WITH";
tows[5] = "WITH THE NEW BALLS PLEASE";
tows[6] = "WITH THE REMARKABLE LEVEL OF CONCENTRATION NEEDED";
tows[7] = "WITH THE INCREASED DIFFICULTY";
tows[8] = "WITH THE MISSION IMPOSSIBLE";
tows[9] = "WITH MISTER MIYAGI TRYING TO CATCH THE FLY";
tows[10] = "WITH COLUMBUS TO BALANCE THE EGG";
tows[11] = "WITH THE TAGLINE NO EVER GETS TO READ";
stop();
Instance of Symbol 21 MovieClip "playtxt" in Frame 4
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 24 MovieClip "highscorestxt" in Frame 4
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 27 MovieClip "instructionstxt" in Frame 4
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 30 MovieClip "creditstxt" in Frame 4
onClipEvent (load) {
gotoAndStop (1);
}
Frame 9
stop();
Instance of Symbol 36 MovieClip "backtxt" in Frame 9
onClipEvent (load) {
gotoAndStop (1);
}
Frame 14
stop();
Frame 20
stop();
Instance of Symbol 48 MovieClip "hiscores" in Frame 20
onClipEvent (load) {
this.y0 = this._y;
speed = 5;
}
onClipEvent (enterFrame) {
this._y = Math.max(Math.min(y0, _y - (dir * speed)), ymax);
}
Instance of Symbol 53 MovieClip "p1" in Frame 20
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 53 MovieClip "p2" in Frame 20
onClipEvent (load) {
gotoAndStop (1);
}
Frame 25
score = 0;
Frame 26
scoreclip._visible = false;
wit._visible = false;
stop();
Instance of Symbol 55 MovieClip "hiscores" in Frame 26
onClipEvent (load) {
this.y0 = this._y;
speed = 5;
}
onClipEvent (enterFrame) {
this._y = Math.max(Math.min(y0, _y - (dir * speed)), ymax);
}
Frame 33
i = 1;
while (i <= 100) {
nn = "bal" + i;
removeMovieClip(nn);
i++;
}
removeMovieClip("bat");
welcome = "LEVEL " + level;
tow = ("\"THE ONE " + tows[Math.min(11, level)]) + "\"";
play();
Instance of Symbol 59 MovieClip "wit" in Frame 33
onClipEvent (load) {
this.swapDepths(1001);
}
Instance of Symbol 68 MovieClip "scoreclip" in Frame 33
onClipEvent (load) {
this.swapDepths(1002);
}
Frame 34
aantal = Math.floor((1 + level) / 2) + 2;
bat.gotoAndStop(((1 + level) % 2) + 1);
i = 1;
while (i <= aantal) {
nn = "bal" + i;
if (i > 1) {
duplicateMovieClip ("bal1", nn, i);
}
eval (nn).t = Math.floor((i * 40) / aantal);
eval (nn).dt = 0;
eval (nn).gotoAndStop(i);
eval (nn).alive = false;
eval (nn).y0 = 280;
eval (nn).death = 20 + Math.floor((i * 40) / aantal);
eval (nn).points = 10;
eval (nn)._y = 305;
eval (nn)._x = (150 - ((i - (aantal / 2)) * 15)) + 7.5;
i++;
}
stop();
Instance of Symbol 76 MovieClip "bat" in Frame 34
onClipEvent (load) {
this.swapDepths(1000);
}
onClipEvent (enterFrame) {
_x = Math.max(bar._width / 2, Math.min(300 - (bar._width / 2), _parent._xmouse));
}
Instance of Symbol 15 MovieClip "bal1" in Frame 34
onClipEvent (load) {
xs = 0;
scale0 = _xscale;
}
onClipEvent (enterFrame) {
if (this.alive && (dt > 0)) {
_y = (y0 + ((-411 + ((10 - t) * (10 - t))) / 2));
if ((_x + xs) < (_width / 2)) {
xs = Math.abs(xs);
}
if ((_x + xs) > (300 - (_width / 2))) {
xs = -Math.abs(xs);
}
_x = (_x + xs);
_rotation = (_rotation + (xs * 4));
c = Math.atan2((_y - yo) / (xo - _x)) * 360;
_yscale = scale0;
_xscale = scale0;
t++;
if (t > 30) {
dx = _x - _parent.bat._x;
if (Math.abs(dx) > ((_parent.bat._width + _width) / 2)) {
alive = false;
death = 40;
_parent.lives = Math.max(0, _parent.lives - 1);
if (_parent.lives < 1) {
_parent.gotoAndStop("gameover");
}
_y = 305;
} else {
xs = Math.min(10, Math.max(-10, Math.random() + (dx / 8)));
_parent.score = (1 * _parent.score) + (1 * points);
if (_parent.score == (1000 * _parent.level)) {
_parent.level++;
_parent.gotoAndStop("game");
}
t = -9;
}
}
} else {
if (death < 1) {
alive = true;
xs = Math.random() - 0.5;
t = -9;
} else if (death < 20) {
_visible = (death % 2);
}
death = death - dt;
}
}
Frame 35
i = 1;
while (i <= aantal) {
nn = "bal" + i;
eval (nn).dt = 1;
i++;
}
stop();
Frame 40
score = 0;
Frame 41
i = 1;
while (i <= 100) {
nn = "bal" + i;
removeMovieClip(nn);
i++;
}
removeMovieClip("bat");
welcome = "LEVEL " + level;
stop();
Instance of Symbol 89 MovieClip "hiscoretxt" in Frame 41
onClipEvent (load) {
gotoAndStop (1);
}
Symbol 5 Button
on (rollOver) {
playtxt.play();
}
on (rollOut, dragOut, releaseOutside) {
playtxt.gotoAndStop(1);
}
on (release) {
this.loadVariables((((counturl + "?gameid=") + gameid) + "&decache=") + Math.floor(Math.random() * 1000));
gotoAndStop (33);
}
Symbol 6 Button
on (rollOver) {
highscorestxt.play();
}
on (rollOut, dragOut, releaseOutside) {
highscorestxt.gotoAndStop(1);
}
on (release) {
gotoAndStop (20);
}
Symbol 7 Button
on (rollOver) {
creditstxt.play();
}
on (rollOut, dragOut, releaseOutside) {
creditstxt.gotoAndStop(1);
}
on (release) {
gotoAndStop (9);
}
Symbol 8 Button
on (rollOver) {
instructionstxt.play();
}
on (rollOut, dragOut, releaseOutside) {
instructionstxt.gotoAndStop(1);
}
on (release) {
gotoAndStop (14);
}
Symbol 15 MovieClip Frame 1
stop();
Symbol 32 Button
on (rollOver) {
backtxt.play();
}
on (rollOut, dragOut, releaseOutside) {
backtxt.gotoAndStop(1);
}
on (release) {
gotoAndStop (4);
}
Symbol 45 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 1
this.gameid = _parent.gameid;
this.decache = Math.floor(Math.random() * 1000);
this.loadVariables(_parent.hiscoresurl, "GET");
error = "";
this.onData = function () {
gotoAndStop (2);
};
ymax = y0;
stop();
Symbol 48 MovieClip Frame 2
if (error.length > 0) {
gotoAndStop (3);
} else {
i = 1;
while (i <= aantal) {
nn = "line" + i;
if (i > 1) {
duplicateMovieClip ("line1", nn, i);
}
eval (nn)._y = line1._y + (22 * (i - 1));
eval (nn).nr = i + ".";
eval (nn).name = eval ("name" + i).toUpperCase();
eval (nn).score = eval ("score" + i);
i++;
}
ymax = (y0 - (Math.max(4, aantal) * 22)) + 89;
if ((yourplace * 1) <= aantal) {
eval ("line" + yourplace).gotoAndStop(2);
_y = Math.max(ymax, y0 - ((yourplace - 2) * 22));
}
stop();
}
Symbol 48 MovieClip Frame 3
stop();
Symbol 49 Button
on (rollOver) {
p1.play();
}
on (rollOut, dragOut, releaseOutside) {
p1.gotoAndStop(1);
}
on (press) {
hiscores.dir = -1;
p1.play();
}
on (release, releaseOutside) {
hiscores.dir = 0;
p1.gotoAndStop(1);
}
Symbol 50 Button
on (rollOver) {
p2.play();
}
on (rollOut, dragOut, releaseOutside) {
p2.gotoAndStop(1);
}
on (press) {
hiscores.dir = 1;
p2.play();
}
on (release, releaseOutside) {
hiscores.dir = 0;
p2.gotoAndStop(1);
}
Symbol 55 MovieClip Frame 1
this.score = _parent.score;
this.name = _parent.name;
this.gameid = _parent.gameid;
this.decache = Math.floor(Math.random() * 1000);
this.loadVariables(_parent.hiscoresurl, "GET");
error = "";
this.onData = function () {
gotoAndStop (2);
};
ymax = y0;
stop();
Symbol 55 MovieClip Frame 2
if (error.length > 0) {
gotoAndStop (3);
} else {
i = 1;
while (i <= aantal) {
nn = "line" + i;
if (i > 1) {
duplicateMovieClip ("line1", nn, i);
}
eval (nn)._y = line1._y + (22 * (i - 1));
eval (nn).nr = i + ".";
eval (nn).name = eval ("name" + i).toUpperCase();
eval (nn).score = eval ("score" + i);
i++;
}
ymax = (y0 - (Math.max(4, aantal) * 22)) + 89;
if ((yourplace * 1) <= aantal) {
eval ("line" + yourplace).gotoAndStop(2);
_y = Math.max(ymax, y0 - ((yourplace - 2) * 22));
}
stop();
}
Symbol 55 MovieClip Frame 3
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 77 Button
on (release) {
play();
}
Symbol 82 Button
on (rollOver) {
hiscoretxt.play();
}
on (rollOut, dragOut, releaseOutside) {
hiscoretxt.gotoAndStop(1);
}
on (release) {
gotoAndStop (26);
}