Frame 1
gravity = 20;
thrust = 0;
timeleft = 0;
best = 0;
gamedir = "";
Instance of Symbol 10 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root.increasethrust == true) {
if (_root.thrust < 20) {
_root.thrust = _root.thrust + 0.5;
}
} else if (_root.thrust > 0) {
_root.thrust = _root.thrust - 0.5;
}
}
Instance of Symbol 10 MovieClip "thrustball" in Frame 1
onClipEvent (load) {
base = 520;
lw = 30;
rw = 520;
ball = random(6);
this.gotoAndPlay(ball);
yspeed = 0;
xspeed = random(10);
cd = random(2);
if (cd == 1) {
xspeed = -xspeed;
}
}
onClipEvent (enterFrame) {
if ((this._x < _root._xmouse) && ((_root._xmouse - this._x) < 70)) {
xmove = true;
}
if ((this._x > _root._xmouse) && ((_root._xmouse - this._x) > -70)) {
xmove = true;
}
if ((this._y - _root._ymouse) > -100) {
ymove = true;
}
if ((yspeed < _root.gravity) && (this._y <= base)) {
yspeed = yspeed + 0.5;
_root.uptime = _root.uptime + 1;
}
if ((this._y + yspeed) <= base) {
this._y = this._y + yspeed;
} else {
this._y = base;
yspeed = -(yspeed / 1.05);
_root.uptime = 0;
}
if (_root.increasethrust == true) {
if ((xmove == true) && (ymove == true)) {
xspeed = xspeed - ((_root._xmouse - this._x) / 100);
yspeed = yspeed - ((100 - (this._y - _root._ymouse)) / 50);
}
}
if (this._y > base) {
this._y = base;
}
if ((this._x + xspeed) < rw) {
this._x = this._x + xspeed;
} else {
this._x = rw;
xspeed = -(xspeed * 1);
_root.uptime = 0;
}
if ((this._x + xspeed) > lw) {
this._x = this._x + xspeed;
} else {
this._x = lw;
xspeed = -(xspeed * 1);
_root.uptime = 0;
}
this._rotation = this._rotation + (xspeed * 3);
_root.ypos = this._y;
_root.yspeed = yspeed;
_root.xspeed = xspeed;
if (xmove == false) {
if (xspeed < 0) {
xspeed = xspeed + 0.007;
}
if (xspeed > 0) {
xspeed = xspeed - 0.007;
}
if (_root.increasethrust == false) {
if ((xspeed > -0.4) and (xspeed < 0.4)) {
xspeed = 0;
}
}
}
xmove = false;
ymove = false;
}
Instance of Symbol 10 MovieClip "thrustball" in Frame 1
onClipEvent (load) {
base = 520;
lw = 30;
rw = 520;
ball = random(6);
this.gotoAndPlay(ball);
yspeed = 0;
xspeed = random(10);
cd = random(2);
if (cd == 1) {
xspeed = -xspeed;
}
}
onClipEvent (enterFrame) {
if ((this._x < _root._xmouse) && ((_root._xmouse - this._x) < 70)) {
xmove = true;
}
if ((this._x > _root._xmouse) && ((_root._xmouse - this._x) > -70)) {
xmove = true;
}
if ((this._y - _root._ymouse) > -100) {
ymove = true;
}
if ((yspeed < _root.gravity) && (this._y <= base)) {
yspeed = yspeed + 0.5;
_root.uptime = _root.uptime + 1;
}
if ((this._y + yspeed) <= base) {
this._y = this._y + yspeed;
} else {
this._y = base;
yspeed = -(yspeed / 1.05);
_root.uptime = 0;
}
if (_root.increasethrust == true) {
if ((xmove == true) && (ymove == true)) {
xspeed = xspeed - ((_root._xmouse - this._x) / 100);
yspeed = yspeed - ((100 - (this._y - _root._ymouse)) / 50);
}
}
if (this._y > base) {
this._y = base;
}
if ((this._x + xspeed) < rw) {
this._x = this._x + xspeed;
} else {
this._x = rw;
xspeed = -(xspeed * 1);
}
if ((this._x + xspeed) > lw) {
this._x = this._x + xspeed;
} else {
this._x = lw;
xspeed = -(xspeed * 1);
}
this._rotation = this._rotation + (xspeed * 3);
_root.ypos = this._y;
_root.yspeed = yspeed;
_root.xspeed = xspeed;
if (xmove == false) {
if (xspeed < 0) {
xspeed = xspeed + 0.007;
}
if (xspeed > 0) {
xspeed = xspeed - 0.007;
}
if (_root.increasethrust == false) {
if ((xspeed > -0.4) and (xspeed < 0.4)) {
xspeed = 0;
}
}
}
xmove = false;
ymove = false;
}
Instance of Symbol 10 MovieClip "thrustball" in Frame 1
onClipEvent (load) {
base = 520;
lw = 30;
rw = 520;
ball = random(6);
this.gotoAndPlay(ball);
yspeed = 0;
xspeed = random(10);
cd = random(2);
if (cd == 1) {
xspeed = -xspeed;
}
}
onClipEvent (enterFrame) {
if ((this._x < _root._xmouse) && ((_root._xmouse - this._x) < 70)) {
xmove = true;
}
if ((this._x > _root._xmouse) && ((_root._xmouse - this._x) > -70)) {
xmove = true;
}
if ((this._y - _root._ymouse) > 100) {
ymove = true;
}
if ((yspeed < _root.gravity) && (this._y <= base)) {
yspeed = yspeed + 0.5;
_root.uptime = _root.uptime + 1;
}
if ((this._y + yspeed) <= base) {
this._y = this._y + yspeed;
} else {
this._y = base;
yspeed = -(yspeed / 1.05);
_root.uptime = 0;
}
if (_root.increasethrust == true) {
if ((xmove == true) && (ymove == true)) {
xspeed = xspeed - ((_root._xmouse - this._x) / 100);
yspeed = yspeed - ((100 - (this._y - _root._ymouse)) / 50);
}
}
if (this._y > base) {
this._y = base;
}
if ((this._x + xspeed) < rw) {
this._x = this._x + xspeed;
} else {
this._x = rw;
xspeed = -(xspeed * 1);
}
if ((this._x + xspeed) > lw) {
this._x = this._x + xspeed;
} else {
this._x = lw;
xspeed = -(xspeed * 1);
}
this._rotation = this._rotation + (xspeed * 3);
_root.ypos = this._y;
_root.yspeed = yspeed;
_root.xspeed = xspeed;
if (xmove == false) {
if (xspeed < 0) {
xspeed = xspeed + 0.007;
}
if (xspeed > 0) {
xspeed = xspeed - 0.007;
}
if (_root.increasethrust == false) {
if ((xspeed > -0.4) and (xspeed < 0.4)) {
xspeed = 0;
}
}
}
xmove = false;
ymove = false;
}
Frame 4
gotoAndPlay (2);
Frame 5
gravity = 20;
thrust = 0;
if (score > best) {
best = score;
}
Instance of Symbol 10 MovieClip in Frame 5
onClipEvent (mouseDown) {
_root.increasethrust = true;
}
onClipEvent (mouseUp) {
_root.increasethrust = false;
}
Instance of Symbol 10 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.increasethrust == true) {
if (_root.thrust < 20) {
_root.thrust = _root.thrust + 0.5;
}
} else if (_root.thrust > 0) {
_root.thrust = _root.thrust - 0.5;
}
}
Instance of Symbol 10 MovieClip "thrustball" in Frame 5
onClipEvent (load) {
bounce = 1.5;
weight = 75;
base = 520;
lw = 30;
rw = 520;
ball = random(6);
this.gotoAndPlay(ball);
yspeed = 0;
xspeed = 0;
}
onClipEvent (enterFrame) {
if ((this._x < _root._xmouse) && ((_root._xmouse - this._x) < 70)) {
xmove = true;
}
if ((this._x > _root._xmouse) && ((_root._xmouse - this._x) > -70)) {
xmove = true;
}
if (((this._y - _root._ymouse) > -100) && ((this._y - _root._ymouse) < 0)) {
ymove = true;
}
if ((yspeed < _root.gravity) && (this._y <= base)) {
yspeed = yspeed + 0.5;
_root.score = _root.score + 1;
}
if ((this._y + yspeed) <= base) {
this._y = this._y + yspeed;
} else {
this._y = base;
yspeed = -(yspeed / bounce);
_root.score = 0;
}
if (_root.increasethrust == true) {
if ((xmove == true) && (ymove == true)) {
xspeed = xspeed - ((_root._xmouse - this._x) / weight);
yspeed = yspeed - ((100 - (this._y - _root._ymouse)) / weight);
}
}
if (this._y > base) {
this._y = base;
}
if ((this._x + xspeed) < rw) {
this._x = this._x + xspeed;
} else {
this._x = rw;
xspeed = -(xspeed / bounce);
_root.score = 0;
}
if ((this._x + xspeed) > lw) {
this._x = this._x + xspeed;
} else {
this._x = lw;
xspeed = -(xspeed / bounce);
_root.score = 0;
}
this._rotation = this._rotation + (xspeed * 3);
_root.ypos = this._y;
_root.yspeed = yspeed;
_root.xspeed = xspeed;
if (xmove == false) {
if (xspeed < 0) {
xspeed = xspeed + 0.025;
}
if (xspeed > 0) {
xspeed = xspeed - 0.025;
}
if (_root.increasethrust == false) {
if ((xspeed > -0.25) and (xspeed < 0.25)) {
xspeed = 0;
}
}
}
xmove = false;
ymove = false;
}
Instance of Symbol 10 MovieClip "thrustball" in Frame 5
onClipEvent (load) {
bounce = 1.5;
weight = 75;
base = 520;
lw = 30;
rw = 520;
ball = random(6);
this.gotoAndPlay(ball);
yspeed = 0;
xspeed = 0;
}
onClipEvent (enterFrame) {
if ((this._x < _root._xmouse) && ((_root._xmouse - this._x) < 70)) {
xmove = true;
}
if ((this._x > _root._xmouse) && ((_root._xmouse - this._x) > -70)) {
xmove = true;
}
if (((this._y - _root._ymouse) > -100) && ((this._y - _root._ymouse) < 0)) {
ymove = true;
}
if ((yspeed < _root.gravity) && (this._y <= base)) {
yspeed = yspeed + 0.5;
_root.score = _root.score + 1;
}
if ((this._y + yspeed) <= base) {
this._y = this._y + yspeed;
} else {
this._y = base;
yspeed = -(yspeed / bounce);
_root.score = 0;
}
if (_root.increasethrust == true) {
if ((xmove == true) && (ymove == true)) {
xspeed = xspeed - ((_root._xmouse - this._x) / weight);
yspeed = yspeed - ((100 - (this._y - _root._ymouse)) / weight);
}
}
if (this._y > base) {
this._y = base;
}
if ((this._x + xspeed) < rw) {
this._x = this._x + xspeed;
} else {
this._x = rw;
xspeed = -(xspeed / bounce);
_root.score = 0;
}
if ((this._x + xspeed) > lw) {
this._x = this._x + xspeed;
} else {
this._x = lw;
xspeed = -(xspeed / bounce);
_root.score = 0;
}
this._rotation = this._rotation + (xspeed * 3);
_root.ypos = this._y;
_root.yspeed = yspeed;
_root.xspeed = xspeed;
if (xmove == false) {
if (xspeed < 0) {
xspeed = xspeed + 0.025;
}
if (xspeed > 0) {
xspeed = xspeed - 0.025;
}
if (_root.increasethrust == false) {
if ((xspeed > -0.25) and (xspeed < 0.25)) {
xspeed = 0;
}
}
}
xmove = false;
ymove = false;
}
Frame 6
timeleft = timeleft - 1;
timerframe = timeleft / 50;
_root.timer.gotoAndPlay(21 - timerframe);
if (timeleft > 0) {
gotoAndPlay (5);
} else {
score = best;
gotoAndPlay (27);
}
Frame 10
gravity = 20;
thrust = 0;
Instance of Symbol 68 MovieClip "target2" in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball._x, _root.ball._y, true)) {
_root.score = _root.score + 2;
this._rotation = this._rotation + 1;
}
}
Instance of Symbol 68 MovieClip "target3" in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball._x, _root.ball._y, true)) {
_root.score = _root.score + 1;
this._rotation = this._rotation + 1;
}
}
Instance of Symbol 68 MovieClip "target1" in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball._x, _root.ball._y, true)) {
_root.score = _root.score + 3;
this._rotation = this._rotation + 1;
}
}
Instance of Symbol 10 MovieClip "ball" in Frame 10
onClipEvent (load) {
bounce = 1.5;
weight = 75;
base = 520;
lw = 30;
rw = 520;
ball = random(6);
this.gotoAndPlay(ball);
yspeed = 0;
xspeed = 0;
}
onClipEvent (enterFrame) {
if ((this._x < _root._xmouse) && ((_root._xmouse - this._x) < 70)) {
xmove = true;
}
if ((this._x > _root._xmouse) && ((_root._xmouse - this._x) > -70)) {
xmove = true;
}
if (((this._y - _root._ymouse) > -100) && ((this._y - _root._ymouse) < 0)) {
ymove = true;
}
if ((yspeed < _root.gravity) && (this._y <= base)) {
yspeed = yspeed + 0.5;
}
if ((this._y + yspeed) <= base) {
this._y = this._y + yspeed;
} else {
this._y = base;
yspeed = -(yspeed / bounce);
}
if (_root.increasethrust == true) {
if ((xmove == true) && (ymove == true)) {
xspeed = xspeed - ((_root._xmouse - this._x) / weight);
yspeed = yspeed - ((100 - (this._y - _root._ymouse)) / weight);
}
}
if (this._y > base) {
this._y = base;
}
if ((this._x + xspeed) < rw) {
this._x = this._x + xspeed;
} else {
this._x = rw;
xspeed = -(xspeed / bounce);
}
if ((this._x + xspeed) > lw) {
this._x = this._x + xspeed;
} else {
this._x = lw;
xspeed = -(xspeed / bounce);
}
this._rotation = this._rotation + (xspeed * 3);
_root.ypos = this._y;
_root.yspeed = yspeed;
_root.xspeed = xspeed;
if (xmove == false) {
if (xspeed < 0) {
xspeed = xspeed + 0.025;
}
if (xspeed > 0) {
xspeed = xspeed - 0.025;
}
if (_root.increasethrust == false) {
if ((xspeed > -0.25) and (xspeed < 0.25)) {
xspeed = 0;
}
}
}
xmove = false;
ymove = false;
}
Frame 11
timeleft = timeleft - 1;
timerframe = timeleft / 50;
_root.timer.gotoAndPlay(21 - timerframe);
if (timeleft > 0) {
gotoAndPlay (10);
} else {
score = score;
gotoAndPlay (27);
}
Frame 17
gravity = 20;
thrust = 0;
if ((_root.scored == 1) && (_root.ball.scoredistance > 450)) {
_root.scored = 0;
score = score + 100;
_root.inbasket = 0;
}
if (((_root.scored == 1) && (_root.ball.scoredistance <= 450)) && (_root.ball.scoredistance > 250)) {
_root.scored = 0;
score = score + 25;
_root.inbasket = 0;
}
if ((_root.scored == 1) && (_root.ball.scoredistance <= 400)) {
_root.scored = 0;
_root.inbasket = 0;
}
Instance of Symbol 76 MovieClip "rim" in Frame 17
onClipEvent (enterFrame) {
hit = hit - 1;
if (_root.ball.hitTest(this._x, this._y, true) && (hit < 0)) {
hit = 20;
if (_root.ball._x > this._x) {
_root.ball.xspeed = -(_root.ball.xspeed / _root.ball.bounce);
}
_root.ball.yspeed = -(_root.ball.yspeed / _root.ball.bounce);
}
}
Instance of Symbol 76 MovieClip "rim" in Frame 17
onClipEvent (enterFrame) {
if (_root.ball.hitTest(this._x, this._y, true)) {
_root.inbasket = 2;
}
}
Instance of Symbol 76 MovieClip "rim" in Frame 17
onClipEvent (enterFrame) {
if (_root.ball.hitTest(this._x, this._y, true) && (_root.inbasket == 2)) {
_root.scored = 1;
}
}
Instance of Symbol 10 MovieClip in Frame 17
onClipEvent (mouseDown) {
_root.increasethrust = true;
}
onClipEvent (mouseUp) {
_root.increasethrust = false;
}
Instance of Symbol 10 MovieClip "ball" in Frame 17
onClipEvent (load) {
bounce = 1.5;
weight = 75;
base = 520;
lw = 30;
rw = 520;
ball = 4;
this.gotoAndPlay(ball);
yspeed = 0;
xspeed = 0;
}
onClipEvent (enterFrame) {
if ((this._x < _root._xmouse) && ((_root._xmouse - this._x) < 70)) {
xmove = true;
}
if ((this._x > _root._xmouse) && ((_root._xmouse - this._x) > -70)) {
xmove = true;
}
if (((this._y - _root._ymouse) > -100) && ((this._y - _root._ymouse) < 0)) {
ymove = true;
}
if ((yspeed < _root.gravity) && (this._y <= base)) {
yspeed = yspeed + 0.5;
}
if ((this._y + yspeed) <= base) {
this._y = this._y + yspeed;
} else {
this._y = base;
yspeed = -(yspeed / bounce);
}
if (_root.increasethrust == true) {
if ((xmove == true) && (ymove == true)) {
xspeed = xspeed - ((_root._xmouse - this._x) / weight);
yspeed = yspeed - ((100 - (this._y - _root._ymouse)) / weight);
scoredistance = _root._xmouse;
}
}
if (this._y > base) {
this._y = base;
}
if ((this._x + xspeed) < rw) {
this._x = this._x + xspeed;
} else {
this._x = rw;
xspeed = -(xspeed / bounce);
}
if ((this._x + xspeed) > lw) {
this._x = this._x + xspeed;
} else {
this._x = lw;
xspeed = -(xspeed / bounce);
}
this._rotation = this._rotation + (xspeed * 3);
_root.ypos = this._y;
_root.yspeed = yspeed;
_root.xspeed = xspeed;
if (xmove == false) {
if (xspeed < 0) {
xspeed = xspeed + 0.005;
}
if (xspeed > 0) {
xspeed = xspeed - 0.005;
}
if (_root.increasethrust == false) {
if ((xspeed > -0.25) and (xspeed < 0.25)) {
xspeed = 0;
}
}
}
xmove = false;
ymove = false;
}
Frame 18
timeleft = timeleft - 1;
timerframe = timeleft / 100;
_root.timer.gotoAndPlay(21 - timerframe);
if (timeleft > 0) {
gotoAndPlay (17);
} else {
score = score;
gotoAndPlay (27);
}
Frame 27
_root.mst.filename = _root.scoredir;
_root.mst.scoresize = 10;
_root.mst.action = "INSERT";
_root.mst.viewtype = "FLASH";
_root.mst.winname = name;
_root.mst.winscore = score;
_root.mst.loadVariables("http://www.hairybullet.com/scores.php", "GET");
tempname = name;
_root.vars.email = "ryaareet@hairybullet.com";
_root.vars.name = "Player: " + name;
_root.vars.message = "Score: " + score;
_root.vars.reply = "JUGGLER@hairybullet.com";
_root.vars.loadVariables("http://www.hairybullet.com/php/emailer.php", "get");
name = tempname;
Instance of Symbol 10 MovieClip "thrustball" in Frame 27
onClipEvent (load) {
bounce = 1.5;
weight = 75;
base = 520;
lw = 30;
rw = 520;
ball = random(6);
this.gotoAndPlay(ball);
yspeed = 0;
xspeed = 0;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 10 MovieClip "thrustball" in Frame 27
onClipEvent (load) {
bounce = 1.5;
weight = 75;
base = 520;
lw = 30;
rw = 520;
ball = random(6);
this.gotoAndPlay(ball);
yspeed = 0;
xspeed = 0;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 10 MovieClip "thrustball" in Frame 27
onClipEvent (load) {
bounce = 1.5;
weight = 75;
base = 520;
lw = 30;
rw = 520;
ball = random(6);
this.gotoAndPlay(ball);
yspeed = 0;
xspeed = 0;
}
onClipEvent (enterFrame) {
}
Frame 36
stop();
Symbol 10 MovieClip Frame 1
stop();
Symbol 10 MovieClip Frame 2
stop();
Symbol 10 MovieClip Frame 3
stop();
Symbol 10 MovieClip Frame 4
stop();
Symbol 15 Button
on (release) {
if (_root.name != "NAME") {
timeleft = 1000;
score = 0;
scoredir = "scores/thejuggler/juggler.sco";
gotoAndPlay (5);
}
}
Symbol 47 Button
on (release) {
getURL ("http://www.hairybullet.com");
}
Symbol 48 Button
on (release) {
if (_root.name != "NAME") {
timeleft = 1000;
score = 0;
scoredir = "scores/thejuggler/goldenshot.sco";
gotoAndPlay (10);
}
}
Symbol 51 Button
on (release) {
if (_root.name != "NAME") {
timeleft = 2000;
score = 0;
scoredir = "scores/thejuggler/basketball.sco";
gotoAndPlay (17);
}
}
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 2
stop();
Symbol 66 MovieClip Frame 3
stop();
Symbol 66 MovieClip Frame 4
stop();
Symbol 66 MovieClip Frame 5
stop();
Symbol 66 MovieClip Frame 6
stop();
Symbol 66 MovieClip Frame 7
stop();
Symbol 66 MovieClip Frame 8
stop();
Symbol 66 MovieClip Frame 9
stop();
Symbol 66 MovieClip Frame 10
stop();
Symbol 66 MovieClip Frame 11
stop();
Symbol 66 MovieClip Frame 12
stop();
Symbol 66 MovieClip Frame 13
stop();
Symbol 66 MovieClip Frame 14
stop();
Symbol 66 MovieClip Frame 15
stop();
Symbol 66 MovieClip Frame 16
stop();
Symbol 66 MovieClip Frame 17
stop();
Symbol 66 MovieClip Frame 18
stop();
Symbol 66 MovieClip Frame 19
stop();
Symbol 66 MovieClip Frame 20
stop();
Symbol 66 MovieClip Frame 21
stop();
Symbol 88 Button
on (release) {
gotoAndPlay (1);
}