Frame 1
fscommand ("allowscale", false);
fscommand ("showmenu", false);
Stage.scaleMode = "noScale";
perc = (100 * getBytesLoaded()) / getBytesTotal();
loader._xscale = perc;
loading._x = (loader._x - loader._width) - 30;
if (perc > 99) {
gotoAndPlay ("intro");
}
Instance of Symbol 8 MovieClip "rodeo" in Frame 1
onClipEvent (load) {
y0 = _y;
ytar = _y;
}
onClipEvent (enterFrame) {
if (Math.abs(_y - ytar) > 0.5) {
_y = (_y + ((ytar - _y) * _parent.smooth));
}
}
Frame 2
gotoAndPlay (1);
Frame 4
function play_fc() {
gotoAndPlay ("game");
}
function instructions_fc() {
ct.ytar = 60;
rodeo.ytar = (60 + rodeo.y0) - ct.y0;
ins.ytar = (60 + ins.y0) - ct.y0;
creds.ytar = creds.y0;
hi_mc.ytar = hi_mc.y0;
ins_text.atar = 80;
cred_text.atar = 0;
hi_text.atar = 0;
}
function credits_fc() {
ct.ytar = 60;
rodeo.ytar = (60 + rodeo.y0) - ct.y0;
ins.ytar = (60 + ins.y0) - ct.y0;
creds.ytar = (60 + creds.y0) - ct.y0;
hi_mc.ytar = hi_mc.y0;
ins_text.atar = 0;
cred_text.atar = 80;
hi_text.atar = 0;
}
function highscores_fc() {
ct.ytar = 60;
rodeo.ytar = (60 + rodeo.y0) - ct.y0;
ins.ytar = (60 + ins.y0) - ct.y0;
creds.ytar = (60 + creds.y0) - ct.y0;
hi_mc.ytar = (60 + hi_mc.y0) - ct.y0;
ins_text.atar = 0;
cred_text.atar = 0;
hi_text.atar = 80;
hi_text.hiscores.gotoAndPlay(2);
}
counturl = "http://www.coldtomatoes.com/games/juggler/count.php";
gameid = 102;
loadVariables (counturl, this, "POST");
hiscoresurl = "http://www.coldtomatoes.com/games/juggler/highscores.php";
user_so = SharedObject.getLocal("coldtomatoes_rodeo_player");
user_name = user_so.data.username;
smooth = 0.4;
Instance of Symbol 18 MovieClip "pl" in Frame 14
onClipEvent (load) {
y0 = _y;
ytar = _y;
}
onClipEvent (enterFrame) {
if (Math.abs(_y - ytar) > 0.5) {
_y = (_y + ((ytar - _y) * _parent.smooth));
}
}
Instance of Symbol 22 MovieClip "hi_mc" in Frame 14
onClipEvent (load) {
y0 = _y;
ytar = _y;
}
onClipEvent (enterFrame) {
if (Math.abs(_y - ytar) > 0.5) {
_y = (_y + ((ytar - _y) * _parent.smooth));
}
}
Instance of Symbol 26 MovieClip "creds" in Frame 14
onClipEvent (load) {
y0 = _y;
ytar = _y;
}
onClipEvent (enterFrame) {
if (Math.abs(_y - ytar) > 0.5) {
_y = (_y + ((ytar - _y) * _parent.smooth));
}
}
Instance of Symbol 30 MovieClip "ins" in Frame 14
onClipEvent (load) {
y0 = _y;
ytar = _y;
}
onClipEvent (enterFrame) {
if (Math.abs(_y - ytar) > 0.5) {
_y = (_y + ((ytar - _y) * _parent.smooth));
}
}
Instance of Symbol 33 MovieClip "ins_text" in Frame 14
onClipEvent (load) {
_alpha = 0;
atar = 0;
}
onClipEvent (enterFrame) {
if (Math.abs(_alpha - atar) > 0.5) {
_alpha = (_alpha + ((atar - _alpha) * _parent.smooth));
}
}
Instance of Symbol 35 MovieClip "cred_text" in Frame 14
onClipEvent (load) {
_alpha = 0;
atar = 0;
}
onClipEvent (enterFrame) {
if (Math.abs(_alpha - atar) > 0.5) {
_alpha = (_alpha + ((atar - _alpha) * _parent.smooth));
}
}
Instance of Symbol 54 MovieClip "hi_text" in Frame 14
onClipEvent (load) {
_alpha = 0;
atar = 0;
}
onClipEvent (enterFrame) {
if (Math.abs(_alpha - atar) > 0.5) {
_alpha = (_alpha + ((atar - _alpha) * _parent.smooth));
}
}
Instance of Symbol 56 MovieClip "ct" in Frame 14
onClipEvent (load) {
y0 = _y;
ytar = _y;
}
onClipEvent (enterFrame) {
if (Math.abs(_y - ytar) > 0.5) {
_y = (_y + ((ytar - _y) * _parent.smooth));
}
}
Frame 18
score = 0;
Frame 19
level = 1;
if (sendNow) {
user_so.data.username = (user_name = name2send);
highscores_fc();
}
stop();
Frame 20
score = 0;
Frame 25
function showTap() {
taphat.da = 10;
clearInterval(hatTimeout);
}
function hideTap() {
clearInterval(hatTimeout);
taphat.da = -20;
}
speeds = new Array(4, 5, 5, 6, 6, 6, 7);
level = 1;
lives = 4;
score = (time = 0);
stier.dr = 0.5 + (level / 2);
stier.rotspeed = (2 * level) + 3;
level_mc.txt.txt = "LEVEL: " + level;
taphat._alpha = 0;
hatTimeout = setInterval(showTap, 2000);
firstSound = new Sound(firstSoundMc);
firstSound.attachSound("startsound");
kataklop = new Sound(secondSoundMc);
kataklop.attachSound("bullsnd");
firstSound.setVolume(50);
kataklop.setVolume(50);
firstSound.start();
firstSound.onSoundComplete = function () {
var _local1 = this;
_local1.attachSound("bgsound");
_local1.start(0, 9999);
_local1.onSoundComplete = null;
};
stop();
Instance of Symbol 65 MovieClip in Frame 25
onClipEvent (load) {
function setScore(s) {
s_str = s + "";
if (s_str == "") {
s_str = "0";
}
i = 1;
while (i < 8) {
Set("time" + i, s_str.substring(s_str.length - i, s_str.length - (i - 1)));
i++;
}
}
}
onClipEvent (enterFrame) {
setScore(_parent.time);
}
Instance of Symbol 65 MovieClip in Frame 25
onClipEvent (load) {
function setScore(s) {
s_str = s + "";
if (s_str == "") {
s_str = "0";
}
i = 1;
while (i < 8) {
Set("time" + i, s_str.substring(s_str.length - i, s_str.length - (i - 1)));
i++;
}
}
}
onClipEvent (enterFrame) {
setScore(_parent.level);
}
Instance of Symbol 65 MovieClip in Frame 25
onClipEvent (load) {
function setScore(s) {
s_str = s + "";
if (s_str == "") {
s_str = "0";
}
i = 1;
while (i < 8) {
Set("time" + i, s_str.substring(s_str.length - i, s_str.length - (i - 1)));
i++;
}
}
}
onClipEvent (enterFrame) {
setScore(_parent.lives);
}
Instance of Symbol 91 MovieClip "stier" in Frame 25
onClipEvent (load) {
rs = (rot = 0);
_rotation = ((rot0 = 180));
speed = 0;
rad = (Math.PI/180);
t = 0;
x0 = _x;
y0 = _y;
randx = 45;
randy = 45;
wolk._visible = false;
}
onClipEvent (enterFrame) {
if (man.started || (!man.justgo)) {
if (Math.random() > 0.5) {
rs = Math.min(rs + dr, rotspeed);
}
if (Math.random() > 0.5) {
rs = Math.max(rs - dr, -rotspeed);
}
rot = rot + rs;
_x = Math.max(Math.min(560 - randx, _x + (speed * Math.sin(rot * rad))), randx);
_y = Math.max(Math.min(410 - randy, _y + (speed * Math.cos(rot * rad))), randy);
t = t + 40;
s1._rotation = Math.sin(t * rad) * 20;
s2._rotation = -s1._rotation;
h._rotation = (-s1._rotation) / 2;
_rotation = (180 - rot);
wolk._visible = true;
} else {
_parent.kataklop.stop();
wolk._visible = false;
}
}
Instance of Symbol 96 MovieClip "lig" in Frame 25
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 98 MovieClip "taphat" in Frame 25
onClipEvent (load) {
da = 0;
}
onClipEvent (enterFrame) {
_alpha = Math.max(0, Math.min(100, _alpha + da));
}
Frame 35
snd.s.stop();
stopAllSounds();
stop();
Symbol 15 Button
on (rollOver) {
gotoAndStop (2);
}
on (release) {
_parent.play_fc();
}
on (rollOut, dragOut) {
gotoAndStop (1);
}
Symbol 18 MovieClip Frame 1
stop();
Symbol 19 Button
on (rollOver) {
gotoAndStop (2);
}
on (release) {
_parent.highscores_fc();
}
on (rollOut, dragOut) {
gotoAndStop (1);
}
Symbol 22 MovieClip Frame 1
stop();
Symbol 23 Button
on (rollOver) {
gotoAndStop (2);
}
on (release) {
_parent.credits_fc();
}
on (rollOut, dragOut) {
gotoAndStop (1);
}
Symbol 26 MovieClip Frame 1
stop();
Symbol 27 Button
on (rollOver) {
gotoAndStop (2);
}
on (release) {
_parent.instructions_fc();
}
on (rollOut, dragOut) {
gotoAndStop (1);
}
Symbol 30 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 2
i = 1;
while (i <= aantal) {
nn = "line" + i;
removeMovieClip(nn);
i++;
}
this.gameid = 102;
this.aantal = 0;
this.decache = Math.floor(Math.random() * 1000);
if (_parent._parent.sendNow) {
this.score = _parent._parent.score2send;
this.name = _parent._parent.name2send;
_parent._parent.sendNow = false;
} else {
this.score = null;
this.name = null;
}
this.loadVariables("http://www.coldtomatoes.com/games/juggler/highscores.php", "GET");
error = "";
ymax = y0;
Symbol 48 MovieClip Frame 3
if (this.aantal > 0) {
gotoAndPlay (5);
}
Symbol 48 MovieClip Frame 4
gotoAndPlay (3);
Symbol 48 MovieClip Frame 5
if (error.length > 0) {
gotoAndStop (6);
} else {
i = 1;
while (i <= aantal) {
nn = "line" + i;
if (i > 1) {
duplicateMovieClip ("line1", nn, i);
}
eval (nn)._y = line1._y + (20 * (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) * 20)) + 137;
if ((yourplace * 1) <= aantal) {
eval ("line" + yourplace).gotoAndStop(2);
_y = Math.max(ymax, y0 - ((yourplace - 2) * 20));
}
stop();
}
Symbol 48 MovieClip Frame 6
stop();
Symbol 49 Button
on (rollOver) {
p1.gotoAndStop(2);
}
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.gotoAndStop(2);
}
on (rollOut, dragOut, releaseOutside) {
p2.gotoAndStop(1);
}
on (press) {
hiscores.dir = 1;
p2.play();
}
on (release, releaseOutside) {
hiscores.dir = 0;
p2.gotoAndStop(1);
}
Instance of Symbol 48 MovieClip "hiscores" in Symbol 54 MovieClip Frame 1
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 Symbol 54 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 53 MovieClip "p2" in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 71 MovieClip "stof" in Symbol 72 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_alpha < -10) {
_alpha = 100;
dy = Math.random() * 5;
dx = (Math.random() * 10) - 5;
_y = 0;
_x = 0;
}
_x = (_x + dx);
_y = (_y - dy);
_alpha = (_alpha - 10);
_yscale = _alpha;
_xscale = _alpha;
}
Symbol 90 MovieClip Frame 1
stop();
Instance of Symbol 86 MovieClip in Symbol 90 MovieClip Frame 1
onClipEvent (load) {
rot = (rot0 = _rotation);
d = 40;
}
onClipEvent (enterFrame) {
if (_parent.started) {
rot = Math.min(rot0 + d, Math.max(rot0 - d, rot + ((Math.random() * 8) - 4)));
}
_rotation = rot;
}
Symbol 90 MovieClip Frame 40
if (_parent._parent.lives > 0) {
restart();
gotoAndStop (1);
} else {
gameOver();
stop();
}
Instance of Symbol 72 MovieClip "wolk" in Symbol 91 MovieClip Frame 1
onClipEvent (load) {
i = 0;
while (i < 10) {
nn = "stof" + i;
duplicateMovieClip ("stof", nn, i);
eval (nn)._alpha = 10 * i;
eval (nn).dy = Math.random() * 3;
eval (nn).dx = (Math.random() * 3) - 1.5;
eval (nn)._x = stof._x + (i * eval (nn).dx);
eval (nn)._y = stof._y + (i * eval (nn).dy);
i++;
}
stof.dy = Math.random() * 5;
stof.dx = (Math.random() * 10) - 5;
}
Instance of Symbol 90 MovieClip "man" in Symbol 91 MovieClip Frame 1
onClipEvent (load) {
function distance(x0, y0, x1, y1) {
return(Math.sqrt(((x0 - x1) * (x0 - x1)) + ((y0 - y1) * (y0 - y1))));
}
function startRide() {
var _local1 = _parent;
Mouse.hide();
_local1.wolk._visible = true;
_local1._parent.kataklop.start(0, 9999);
started = true;
_local1.speed = _local1._parent.speeds[Math.min(_local1._parent.speeds.length - 1, _local1._parent.level - 1)];
}
function endRide() {
var _local1 = _parent;
var _local2 = this;
Mouse.show();
justgo = false;
_local2.gotoAndPlay(2);
_local1._parent.lig._visible = true;
_local1._parent.lig._x = _local2._parent._x;
_local1._parent.lig._y = _local2._parent._y;
_local1._parent.lig._rotation = 90 + ((180 * Math.atan((_local2._ymouse - _local2._y) / (_local2._xmouse - _local2._x))) / Math.PI);
_local1._parent.lig.gotoAndStop(2);
_local1._parent.lig._x = _local1._parent.lig._x + (Math.sin(_local2._rotation / rad) * 15);
_local1._parent.lig._y = _local1._parent.lig._y + (Math.cos(_local2._rotation / rad) * 15);
started = false;
_local1.midden1._visible = (_local1.midden2._visible = (_local1.benen._visible = false));
_local1._parent.score = _local1._parent.time;
}
function restart() {
var _local1 = _parent;
justgo = true;
_local1._parent.lig._visible = false;
_local1._parent.lig.gotoAndStop(1);
_local1.midden1._visible = (_local1.midden2._visible = (_local1.benen._visible = true));
_local1.midden2._x = hoed._x * 0.9;
_local1.midden2._y = hoed._y * 0.9;
_local1._parent.lives = _local1._parent.lives - 1;
_local1._x = _local1.x0;
_local1._y = _local1.y0;
_local1._rotation = _local1.rot0;
_local1.rot = (_local1.rs = 0);
_x = x0;
_y = y0;
_local1.speed = 0;
if (_local1._parent.time > _local1._parent.hi) {
_local1._parent.hi = _local1._parent.time;
}
}
function angle(x, y, d) {
if (x > 0) {
return(90 - ((Math.asin(y / d) * 180) / Math.PI));
}
return(-90 - ((Math.asin(y / d) * 180) / Math.PI));
}
function nextLevel() {
_parent._parent.level = _parent._parent.level + 1;
_parent._parent.time = 0;
}
function gameOver() {
_parent._parent.gotoAndPlay("over");
_parent._parent.gameover.gotoAndPlay(2);
}
firstRide = true;
max = 35;
factor = 7;
started = false;
nul = getTimer();
x0 = _x;
y0 = _y;
justgo = true;
rad = (Math.PI/180);
}
onClipEvent (enterFrame) {
if (started) {
_parent.speed = _parent._parent.speeds[Math.min(_parent._parent.speeds.length - 1, _parent._parent.level - 1)];
_parent._parent.speed = _parent._parent.speeds[Math.min(_parent._parent.speeds.length - 1, _parent._parent.level - 1)];
if (_parent._parent.time < (10000 * _parent._parent.level)) {
_x = (_x + ((_xmouse - _x) / factor));
_y = (_y + ((_ymouse - _y) / factor));
hoed._x = hoed._x + ((hoed._xmouse - hoed._x) / (2 * factor));
hoed._y = hoed._y + ((hoed._ymouse - hoed._y) / (2 * factor));
_parent.midden2._x = hoed._x * 0.9;
_parent.midden2._y = hoed._y * 0.9;
if (distance(0, 0, _parent._xmouse, _parent._ymouse) > max) {
endRide();
} else {
_parent._parent.time = _parent._parent.score + (getTimer() - nul);
}
} else {
_parent._parent.time = 10000 * _parent._parent.level;
nextLevel();
}
}
}
onClipEvent (mouseDown) {
if ((distance(_x, _y, _parent._xmouse, _parent._ymouse) < max) && (justgo)) {
startRide();
firstRide = false;
_parent._parent.hideTap();
nul = getTimer();
}
}
Instance of Symbol 94 MovieClip "stof0" in Symbol 95 MovieClip Frame 1
onClipEvent (load) {
dx = (Math.random() * 4) - 2;
dy = (Math.random() * 4) - 2;
ddx = (Math.random() * 0.5) - 0.25;
ddy = (Math.random() * 0.5) - 0.25;
}
onClipEvent (enterFrame) {
_x = (_x + dx);
_y = (_y + dy);
dx = dx + ddx;
dy = dy + ddy;
_alpha = (_alpha - 1);
}
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 2
stop();
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 2
onClipEvent (load) {
i = 0;
while (i < 20) {
if (i > 0) {
stof0.duplicateMovieClip("stof" + i, 100 + i);
}
eval ("stof" + i)._xscale = (eval ("stof" + i)._yscale = (Math.random() * 80) + 20);
eval ("stof" + i)._alpha = (Math.random() * 40) + 20;
eval ("stof" + i)._x = eval ("stof" + i)._x + ((Math.random() * 40) - 20);
eval ("stof" + i)._y = eval ("stof" + i)._y + ((Math.random() * 20) - 10);
i++;
}
}
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 2
stop();
Instance of Symbol 108 MovieClip in Symbol 110 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.myname.length > 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 111 Button
on (rollOver) {
gotoAndStop (2);
}
on (release) {
_parent._parent.sendNow = true;
_parent._parent.score2send = _parent._parent.time;
_parent._parent.name2send = _parent.naam.myname;
_parent._parent.gotoAndPlay("home");
}
on (rollOut, dragOut) {
gotoAndStop (1);
}
Symbol 114 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 20
score_mc.score_mc.score = "score: " + _parent.time;
Symbol 115 MovieClip Frame 48
score_mc.score_mc.score = "score: " + _parent.time;
Symbol 115 MovieClip Frame 49
if (_parent.user_name.length > 0) {
naam.myname = _parent.user_name;
}
Symbol 115 MovieClip Frame 70
stop();