Frame 1
stop();
Stage.showMenu = false;
_root.loadtimer = 12;
horsies = [["Lucky", 27, 22, 70, 5, 1], ["Rush", 31, 21, 80, 5, 2], ["Swift", 33, 19, 75, 5, 3], ["Steady", 29, 25, 50, 5, 4], ["Rapid", 27, 24, 60, 5, 5], ["Tank", 28, 25, 50, 5, 6], ["Mystic", 29, 26, 65, 5, 8], ["Envy", 30, 25, 60, 10, 9], ["Nightmare", 34, 21, 70, 1, 7], ["Unicorn", 31, 23, 60, 10, 11], ["Gadgakan", 36, 17, 65, 10, 10]];
_global.CountDown = function (obj) {
var _local1 = this;
_local1.refobj = obj;
_local1.startbytes = _local1.refobj.getBytesLoaded();
_local1.lastbytes = _local1.refobj.getBytesLoaded();
_local1.avgbytes = 0.1;
_local1.nullchar = "-";
_local1.secs = 0;
_local1.runAvg = function () {
var _local1 = this;
_local1.secs++;
_local1.loadedbytes = _local1.refobj.getBytesLoaded();
_local1.avgbytes = (((_local1.loadedbytes - _local1.startbytes) / _local1.secs) * 0.7) + ((_local1.loadedbytes - _local1.lastbytes) * 0.3);
_local1.lastbytes = _local1.loadedbytes;
if (_local1.loadedbytes >= _local1.refobj.getBytesTotal()) {
clearInterval(_local1.interv);
}
};
_local1.interv = setInterval(_local1, "runAvg", 1000);
};
CountDown.prototype.getSecondsLeft = function (finishbytes) {
var _local1 = this;
if ((!finishbytes.length) || (finishbytes > _local1.refobj.getBytesTotal())) {
var finishbytes = _local1.refobj.getBytesTotal();
}
var _local2;
var _local3 = finishbytes - _local1.loadedbytes;
if (_local1.secs == 0) {
_local2 = _local1.nullchar;
} else if (_local3 > 0) {
_local2 = Math.ceil(_local3 / _local1.avgbytes);
} else {
_local2 = 0;
}
return(_local2);
};
CountDown.prototype.setDefault = function (char) {
this.nullchar = char;
};
mycounter = new CountDown(_root);
_root.onEnterFrame = function () {
_root.timeleft = mycounter.getSecondsLeft() + " seconds left";
};
Instance of Symbol 8 MovieClip in Frame 1
onClipEvent (enterFrame) {
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (_root.loadtimer == _root.playtime) {
_root.loadtimer = _root.loadtimer + 12;
_root.timeloaded = _root.timeloaded + 1;
_root.timeloaded2 = "time loaded : " + _root.timeloaded;
_root.currentbps = _root.getBytesLoaded() - _root.currentb;
_root.currentb = _root.getBytesLoaded();
_root.currentbpsdis = _root.currentbps + " bps";
}
_root.bytesloaded = ((_root.getBytesLoaded() + " / ") + _root.getBytesTotal()) + " bytes loaded";
if (PercentLoaded != 100) {
this._height = PercentLoaded * 3;
} else {
_root.play();
}
}
Instance of Symbol 23 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.playtime = _root.playtime + 1;
_root.HoursPlayed = Math.floor(_root.playtime / 43200);
_root.MinsPlayed = Math.floor((_root.playtime - (_root.HoursPlayed * 43200)) / 720);
_root.SecsPlayed = Math.floor((_root.playtime - ((_root.HoursPlayed * 43200) + (_root.MinsPlayed * 720))) / 12);
_root.DisplayTime = (((_root.HoursPlayed + " : ") + _root.MinsPlayed) + " : ") + _root.SecsPlayed;
}
Frame 2
stop();
Frame 3
stop();
_root.Loaned = 0;
_root.Loaning = 0;
_root.WinStreak = 0;
_root.WinStreakMax = 0;
_root.LoseStreak = 0;
_root.LoseStreakMax = 0;
_root.MostMoney = 0;
_root.MoneyWon = 0;
_root.MoneyLost = 0;
_root.Cash = 100;
_root.Rep = 0;
_root.Rank = 0;
_root.RepNeeded = 5;
_root.Autosave = 0;
_root.Track3bought = 0;
_root.Track4bought = 0;
_root.Track5bought = 0;
_root.Wins = 0;
_root.Loses = 0;
_root.Playtime = 0;
_root.Track = 1;
_root.TrackName = "Plains";
Frame 4
function verify5() {
var _local1 = _root;
if ((((_local1.horse2id == _local1.horse5id) or (_local1.horse1id == _local1.horse2id)) or (_local1.horse2id == _local1.horse3id)) or (_local1.horse2id == _local1.horse4id)) {
_local1.horse2id = Math.floor(Math.random() * (6 + _local1.Rank));
_local1.verify5();
}
if (((_local1.horse3id == _local1.horse5id) or (_local1.horse3id == _local1.horse1id)) or (_local1.horse3id == _local1.horse4id)) {
_local1.horse3id = Math.floor(Math.random() * (6 + _local1.Rank));
_local1.verify5();
}
if ((_local1.horse4id == _local1.horse5id) or (_local1.horse4id == _local1.horse1id)) {
_local1.horse4id = Math.floor(Math.random() * (6 + _local1.Rank));
_local1.verify5();
}
if (_local1.horse5id == _local1.horse1id) {
_local1.horse5id = Math.floor(Math.random() * (6 + _local1.Rank));
_local1.verify5();
}
}
stop();
_root.Racers = "Please Select";
_root.beton = "Please Select";
_root.playbut = "waiting...";
_root.racelength = "Please Select";
_root.Marker5 = -500;
_root.Marker4 = -500;
_root.Marker3 = -500;
_root.Bet1name = "Please Select";
_root.Bet2name = "Please Select";
_root.Bet3name = "Please Select";
_root.Bet3 = "Please Select";
_root.Bet2 = "Please Select";
_root.Bet1 = "Please Select";
_root.horse1distance = 0;
_root.horse2distance = 0;
_root.horse3distance = 0;
_root.horse4distance = 0;
_root.horse5distance = 0;
_root.horse1id = Math.floor(Math.random() * (6 + _root.Rank));
_root.horse2id = Math.floor(Math.random() * (6 + _root.Rank));
_root.horse3id = Math.floor(Math.random() * (6 + _root.Rank));
_root.horse4id = Math.floor(Math.random() * (6 + _root.Rank));
_root.horse5id = Math.floor(Math.random() * (6 + _root.Rank));
_root.verify5();
_root.Bet1name = "Please Select";
_root.Bet2name = "Please Select";
_root.Bet3name = "Please Select";
_root.Bet3 = "Please Select";
_root.Bet2 = "Please Select";
_root.Bet1 = "Please Select";
Instance of Symbol 82 MovieClip in Frame 4
onClipEvent (enterFrame) {
this.gotoAndStop(_root.Track);
}
Instance of Symbol 224 MovieClip [horse] in Frame 4
onClipEvent (enterFrame) {
if (_root.beton == 1) {
this.gotoAndStop(_root.horsies[_root.horse1id][5]);
}
if (_root.beton == 2) {
this.gotoAndStop(_root.horsies[_root.horse2id][5]);
}
if (_root.beton == 3) {
this.gotoAndStop(_root.horsies[_root.horse3id][5]);
}
if (_root.beton == 4) {
this.gotoAndStop(_root.horsies[_root.horse4id][5]);
}
if (_root.beton == 5) {
this.gotoAndStop(_root.horsies[_root.horse5id][5]);
}
}
Instance of Symbol 226 MovieClip in Frame 4
onClipEvent (enterFrame) {
this._width = Math.floor((_root.Rep / _root.RepNeeded) * 100);
}
Instance of Symbol 226 MovieClip in Frame 4
onClipEvent (enterFrame) {
_root.betmaxspeedX = _root.betmaxspeed - 20;
this._width = Math.floor((_root.betmaxspeedX / 20) * 100);
}
Instance of Symbol 226 MovieClip in Frame 4
onClipEvent (enterFrame) {
_root.betminspeedX = _root.betminspeed - 10;
this._width = Math.floor((_root.betminspeedX / 20) * 100);
}
Instance of Symbol 226 MovieClip in Frame 4
onClipEvent (enterFrame) {
this._width = _root.betguts;
}
Instance of Symbol 291 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.Racers != "Please Select") {
this._x = 0;
} else {
this._x = -500;
}
}
Instance of Symbol 323 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.Rank > 0) {
this._x = 20.4;
} else {
this._x = -500;
}
}
Instance of Symbol 323 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.Rank > 1) {
this._x = 46.4;
} else {
this._x = -500;
}
}
Instance of Symbol 323 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.Rank > 2) {
this._x = 70.1;
} else {
this._x = -500;
}
}
Instance of Symbol 323 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.Rank > 3) {
this._x = 95.3;
} else {
this._x = -500;
}
}
Instance of Symbol 323 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.Rank > 4) {
this._x = 121.3;
} else {
this._x = -500;
}
}
Frame 5
function start() {
var _local1 = _root;
if (_local1.Racers == 2) {
_local1.horse1roll = Math.floor(Math.random() * 100);
if (_local1.horse1speed > 5) {
if (_local1.horse1roll == 77) {
_local1.horse1speed = _local1.horse1speed + 3;
}
if (_local1.horse1roll == 66) {
_local1.horse1speed = _local1.horse1speed - 3;
}
if (_local1.horse1roll == 88) {
_local1.horse1speed = _local1.horse1speed + 1;
}
if (_local1.horse1roll == 99) {
_local1.horse1speed = _local1.horse1speed + 4;
}
if (_local1.horse1roll == 55) {
_local1.horse1speed = _local1.horse1speed - 2;
}
if (_local1.horse1roll == 44) {
_local1.horse1speed = _local1.horse1speed + 1;
}
if (_local1.horse1roll == 33) {
_local1.horse1speed = _local1.horse1speed + 1;
}
if (_local1.horse1roll == 22) {
_local1.horse1speed = _local1.horse1speed - 1;
}
if (_local1.horse1roll == 11) {
_local1.horse1speed = _local1.horse1speed - 3;
}
if (_local1.horse1roll == 1) {
_local1.horse1speed = _local1.horse1speed - 4;
}
}
if (_local1.horse1roll < _local1.horse1guts) {
if (_local1.horse1stam > 10) {
if (_local1.horse1speed < _local1.horse1maxspeed) {
_local1.horse1speed = _local1.horse1speed + 1;
}
_local1.horse1stam = _local1.horse1stam - 1;
} else if (_local1.horse1speed > _local1.horse1minspeed) {
_local1.horse1speed = _local1.horse1speed - 1;
}
}
_local1.horse1distance = _local1.horse1distance + _local1.horse1speed;
_local1.Marker1 = Math.floor((_local1.horse1distance / _local1.racelength) * 100);
if (_local1.beton == 1) {
_local1.horse1._x = 150;
if (_local1.horse1distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
}
} else {
if (_local1.horse1distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
}
_local1.horse1._x = (_local1.horse1distance - _local1.horse2distance) + 150;
}
_local1.horse2roll = Math.floor(Math.random() * 100);
if (_local1.horse2speed > 5) {
if (_local1.horse2roll == 77) {
_local1.horse2speed = _local1.horse2speed + 3;
}
if (_local1.horse2roll == 66) {
_local1.horse2speed = _local1.horse2speed - 3;
}
if (_local1.horse2roll == 88) {
_local1.horse2speed = _local1.horse2speed + 1;
}
if (_local1.horse2roll == 99) {
_local1.horse2speed = _local1.horse2speed + 4;
}
if (_local1.horse2roll == 55) {
_local1.horse2speed = _local1.horse2speed - 2;
}
if (_local1.horse2roll == 44) {
_local1.horse2speed = _local1.horse2speed + 1;
}
if (_local1.horse2roll == 33) {
_local1.horse2speed = _local1.horse2speed + 1;
}
if (_local1.horse2roll == 22) {
_local1.horse2speed = _local1.horse2speed - 1;
}
if (_local1.horse2roll == 11) {
_local1.horse2speed = _local1.horse2speed - 3;
}
if (_local1.horse2roll == 1) {
_local1.horse2speed = _local1.horse2speed - 4;
}
}
if (_local1.horse2roll < _local1.horse2guts) {
if (_local1.horse2stam > 10) {
if (_local1.horse2speed < _local1.horse2maxspeed) {
_local1.horse2speed = _local1.horse2speed + 1;
}
_local1.horse2stam = _local1.horse2stam - 1;
} else if (_local1.horse2speed > _local1.horse2minspeed) {
_local1.horse2speed = _local1.horse2speed - 1;
}
}
_local1.horse2distance = _local1.horse2distance + _local1.horse2speed;
_local1.Marker2 = Math.floor((_local1.horse2distance / _local1.racelength) * 100);
if (_local1.beton == 2) {
if (_local1.horse2distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
}
_local1.horse2._x = 150;
} else {
if (_local1.horse2distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
}
_local1.horse2._x = (_local1.horse2distance - _local1.horse1distance) + 150;
}
}
if (_local1.Racers == 3) {
_local1.horse1roll = Math.floor(Math.random() * 100);
if (_local1.horse1speed > 5) {
if (_local1.horse1roll == 77) {
_local1.horse1speed = _local1.horse1speed + 3;
}
if (_local1.horse1roll == 66) {
_local1.horse1speed = _local1.horse1speed - 3;
}
if (_local1.horse1roll == 88) {
_local1.horse1speed = _local1.horse1speed + 1;
}
if (_local1.horse1roll == 99) {
_local1.horse1speed = _local1.horse1speed + 4;
}
if (_local1.horse1roll == 55) {
_local1.horse1speed = _local1.horse1speed - 2;
}
if (_local1.horse1roll == 44) {
_local1.horse1speed = _local1.horse1speed + 1;
}
if (_local1.horse1roll == 33) {
_local1.horse1speed = _local1.horse1speed + 1;
}
if (_local1.horse1roll == 22) {
_local1.horse1speed = _local1.horse1speed - 1;
}
if (_local1.horse1roll == 11) {
_local1.horse1speed = _local1.horse1speed - 3;
}
if (_local1.horse1roll == 1) {
_local1.horse1speed = _local1.horse1speed - 4;
}
}
if (_local1.horse1roll < _local1.horse1guts) {
if (_local1.horse1stam > 10) {
if (_local1.horse1speed < _local1.horse1maxspeed) {
_local1.horse1speed = _local1.horse1speed + 1;
}
_local1.horse1stam = _local1.horse1stam - 1;
} else if (_local1.horse1speed > _local1.horse1minspeed) {
_local1.horse1speed = _local1.horse1speed - 1;
}
}
_local1.horse1distance = _local1.horse1distance + _local1.horse1speed;
_local1.Marker1 = Math.floor((_local1.horse1distance / _local1.racelength) * 100);
if (_local1.beton == 1) {
_local1.horse1._x = 150;
if (_local1.horse1distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
}
} else {
if (_local1.horse1distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
}
if (_local1.beton == 2) {
_local1.horse1._x = (_local1.horse1distance - _local1.horse2distance) + 150;
}
if (_local1.beton == 3) {
_local1.horse1._x = (_local1.horse1distance - _local1.horse3distance) + 150;
}
}
_local1.horse2roll = Math.floor(Math.random() * 100);
if (_local1.horse2speed > 5) {
if (_local1.horse2roll == 77) {
_local1.horse2speed = _local1.horse2speed + 3;
}
if (_local1.horse2roll == 66) {
_local1.horse2speed = _local1.horse2speed - 3;
}
if (_local1.horse2roll == 88) {
_local1.horse2speed = _local1.horse2speed + 1;
}
if (_local1.horse2roll == 99) {
_local1.horse2speed = _local1.horse2speed + 4;
}
if (_local1.horse2roll == 55) {
_local1.horse2speed = _local1.horse2speed - 2;
}
if (_local1.horse2roll == 44) {
_local1.horse2speed = _local1.horse2speed + 1;
}
if (_local1.horse2roll == 33) {
_local1.horse2speed = _local1.horse2speed + 1;
}
if (_local1.horse2roll == 22) {
_local1.horse2speed = _local1.horse2speed - 1;
}
if (_local1.horse2roll == 11) {
_local1.horse2speed = _local1.horse2speed - 3;
}
if (_local1.horse2roll == 1) {
_local1.horse2speed = _local1.horse2speed - 4;
}
}
if (_local1.horse2roll < _local1.horse2guts) {
if (_local1.horse2stam > 10) {
if (_local1.horse2speed < _local1.horse2maxspeed) {
_local1.horse2speed = _local1.horse2speed + 1;
}
_local1.horse2stam = _local1.horse2stam - 1;
} else if (_local1.horse2speed > _local1.horse2minspeed) {
_local1.horse2speed = _local1.horse2speed - 1;
}
}
_local1.horse2distance = _local1.horse2distance + _local1.horse2speed;
_local1.Marker2 = Math.floor((_local1.horse2distance / _local1.racelength) * 100);
if (_local1.beton == 2) {
if (_local1.horse2distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
}
_local1.horse2._x = 150;
} else {
if (_local1.horse2distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
}
if (_local1.beton == 1) {
_local1.horse2._x = (_local1.horse2distance - _local1.horse1distance) + 150;
}
if (_local1.beton == 3) {
_local1.horse2._x = (_local1.horse2distance - _local1.horse3distance) + 150;
}
}
_local1.horse3roll = Math.floor(Math.random() * 100);
if (_local1.horse3speed > 5) {
if (_local1.horse3roll == 77) {
_local1.horse3speed = _local1.horse3speed + 3;
}
if (_local1.horse3roll == 66) {
_local1.horse3speed = _local1.horse3speed - 3;
}
if (_local1.horse3roll == 88) {
_local1.horse3speed = _local1.horse3speed + 1;
}
if (_local1.horse3roll == 99) {
_local1.horse3speed = _local1.horse3speed + 4;
}
if (_local1.horse3roll == 55) {
_local1.horse3speed = _local1.horse3speed - 2;
}
if (_local1.horse3roll == 44) {
_local1.horse3speed = _local1.horse3speed + 1;
}
if (_local1.horse3roll == 33) {
_local1.horse3speed = _local1.horse3speed + 1;
}
if (_local1.horse3roll == 22) {
_local1.horse3speed = _local1.horse3speed - 1;
}
if (_local1.horse3roll == 11) {
_local1.horse3speed = _local1.horse3speed - 3;
}
if (_local1.horse3roll == 1) {
_local1.horse3speed = _local1.horse3speed - 4;
}
}
if (_local1.horse3roll < _local1.horse3guts) {
if (_local1.horse3stam > 10) {
if (_local1.horse3speed < _local1.horse3maxspeed) {
_local1.horse3speed = _local1.horse3speed + 1;
}
_local1.horse3stam = _local1.horse3stam - 1;
} else if (_local1.horse3speed > _local1.horse3minspeed) {
_local1.horse3speed = _local1.horse3speed - 1;
}
}
_local1.horse3distance = _local1.horse3distance + _local1.horse3speed;
_local1.Marker3 = Math.floor((_local1.horse3distance / _local1.racelength) * 100);
if (_local1.beton == 3) {
if (_local1.horse3distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
}
_local1.horse3._x = 150;
} else {
if (_local1.horse3distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
}
if (_local1.beton == 1) {
_local1.horse3._x = (_local1.horse3distance - _local1.horse1distance) + 150;
}
if (_local1.beton == 2) {
_local1.horse3._x = (_local1.horse3distance - _local1.horse2distance) + 150;
}
}
}
if (_local1.Racers == 4) {
_local1.horse1roll = Math.floor(Math.random() * 100);
if (_local1.horse1speed > 5) {
if (_local1.horse1roll == 77) {
_local1.horse1speed = _local1.horse1speed + 3;
}
if (_local1.horse1roll == 66) {
_local1.horse1speed = _local1.horse1speed - 3;
}
if (_local1.horse1roll == 88) {
_local1.horse1speed = _local1.horse1speed + 1;
}
if (_local1.horse1roll == 99) {
_local1.horse1speed = _local1.horse1speed + 4;
}
if (_local1.horse1roll == 55) {
_local1.horse1speed = _local1.horse1speed - 2;
}
if (_local1.horse1roll == 44) {
_local1.horse1speed = _local1.horse1speed + 1;
}
if (_local1.horse1roll == 33) {
_local1.horse1speed = _local1.horse1speed + 1;
}
if (_local1.horse1roll == 22) {
_local1.horse1speed = _local1.horse1speed - 1;
}
if (_local1.horse1roll == 11) {
_local1.horse1speed = _local1.horse1speed - 3;
}
if (_local1.horse1roll == 1) {
_local1.horse1speed = _local1.horse1speed - 4;
}
}
if (_local1.horse1roll < _local1.horse1guts) {
if (_local1.horse1stam > 10) {
if (_local1.horse1speed < _local1.horse1maxspeed) {
_local1.horse1speed = _local1.horse1speed + 1;
}
_local1.horse1stam = _local1.horse1stam - 1;
} else if (_local1.horse1speed > _local1.horse1minspeed) {
_local1.horse1speed = _local1.horse1speed - 1;
}
}
_local1.horse1distance = _local1.horse1distance + _local1.horse1speed;
_local1.Marker1 = Math.floor((_local1.horse1distance / _local1.racelength) * 100);
if (_local1.beton == 1) {
_local1.horse1._x = 150;
if (_local1.horse1distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
horse4.removeMovieClip();
}
} else {
if (_local1.horse1distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
horse4.removeMovieClip();
}
if (_local1.beton == 2) {
_local1.horse1._x = (_local1.horse1distance - _local1.horse2distance) + 150;
}
if (_local1.beton == 3) {
_local1.horse1._x = (_local1.horse1distance - _local1.horse3distance) + 150;
}
if (_local1.beton == 4) {
_local1.horse1._x = (_local1.horse1distance - _local1.horse4distance) + 150;
}
}
_local1.horse2roll = Math.floor(Math.random() * 100);
if (_local1.horse2speed > 5) {
if (_local1.horse2roll == 77) {
_local1.horse2speed = _local1.horse2speed + 3;
}
if (_local1.horse2roll == 66) {
_local1.horse2speed = _local1.horse2speed - 3;
}
if (_local1.horse2roll == 88) {
_local1.horse2speed = _local1.horse2speed + 1;
}
if (_local1.horse2roll == 99) {
_local1.horse2speed = _local1.horse2speed + 4;
}
if (_local1.horse2roll == 55) {
_local1.horse2speed = _local1.horse2speed - 2;
}
if (_local1.horse2roll == 44) {
_local1.horse2speed = _local1.horse2speed + 1;
}
if (_local1.horse2roll == 33) {
_local1.horse2speed = _local1.horse2speed + 1;
}
if (_local1.horse2roll == 22) {
_local1.horse2speed = _local1.horse2speed - 1;
}
if (_local1.horse2roll == 11) {
_local1.horse2speed = _local1.horse2speed - 3;
}
if (_local1.horse2roll == 1) {
_local1.horse2speed = _local1.horse2speed - 4;
}
}
if (_local1.horse2roll < _local1.horse2guts) {
if (_local1.horse2stam > 10) {
if (_local1.horse2speed < _local1.horse2maxspeed) {
_local1.horse2speed = _local1.horse2speed + 1;
}
_local1.horse2stam = _local1.horse2stam - 1;
} else if (_local1.horse2speed > _local1.horse2minspeed) {
_local1.horse2speed = _local1.horse2speed - 1;
}
}
_local1.horse2distance = _local1.horse2distance + _local1.horse2speed;
_local1.Marker2 = Math.floor((_local1.horse2distance / _local1.racelength) * 100);
if (_local1.beton == 2) {
if (_local1.horse2distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
horse4.removeMovieClip();
}
_local1.horse2._x = 150;
} else {
if (_local1.horse2distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
horse4.removeMovieClip();
}
if (_local1.beton == 1) {
_local1.horse2._x = (_local1.horse2distance - _local1.horse1distance) + 150;
}
if (_local1.beton == 3) {
_local1.horse2._x = (_local1.horse2distance - _local1.horse3distance) + 150;
}
if (_local1.beton == 4) {
_local1.horse2._x = (_local1.horse2distance - _local1.horse4distance) + 150;
}
}
_local1.horse3roll = Math.floor(Math.random() * 100);
if (_local1.horse3speed > 5) {
if (_local1.horse3roll == 77) {
_local1.horse3speed = _local1.horse3speed + 3;
}
if (_local1.horse3roll == 66) {
_local1.horse3speed = _local1.horse3speed - 3;
}
if (_local1.horse3roll == 88) {
_local1.horse3speed = _local1.horse3speed + 1;
}
if (_local1.horse3roll == 99) {
_local1.horse3speed = _local1.horse3speed + 4;
}
if (_local1.horse3roll == 55) {
_local1.horse3speed = _local1.horse3speed - 2;
}
if (_local1.horse3roll == 44) {
_local1.horse3speed = _local1.horse3speed + 1;
}
if (_local1.horse3roll == 33) {
_local1.horse3speed = _local1.horse3speed + 1;
}
if (_local1.horse3roll == 22) {
_local1.horse3speed = _local1.horse3speed - 1;
}
if (_local1.horse3roll == 11) {
_local1.horse3speed = _local1.horse3speed - 3;
}
if (_local1.horse3roll == 1) {
_local1.horse3speed = _local1.horse3speed - 4;
}
}
if (_local1.horse3roll < _local1.horse3guts) {
if (_local1.horse3stam > 10) {
if (_local1.horse3speed < _local1.horse3maxspeed) {
_local1.horse3speed = _local1.horse3speed + 1;
}
_local1.horse3stam = _local1.horse3stam - 1;
} else if (_local1.horse3speed > _local1.horse3minspeed) {
_local1.horse3speed = _local1.horse3speed - 1;
}
}
_local1.horse3distance = _local1.horse3distance + _local1.horse3speed;
_local1.Marker3 = Math.floor((_local1.horse3distance / _local1.racelength) * 100);
if (_local1.beton == 3) {
if (_local1.horse3distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
horse4.removeMovieClip();
}
_local1.horse3._x = 150;
} else {
if (_local1.horse3distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
horse4.removeMovieClip();
}
if (_local1.beton == 1) {
_local1.horse3._x = (_local1.horse3distance - _local1.horse1distance) + 150;
}
if (_local1.beton == 2) {
_local1.horse3._x = (_local1.horse3distance - _local1.horse2distance) + 150;
}
if (_local1.beton == 4) {
_local1.horse3._x = (_local1.horse3distance - _local1.horse4distance) + 150;
}
}
_local1.horse4roll = Math.floor(Math.random() * 100);
if (_local1.horse4speed > 5) {
if (_local1.horse4roll == 77) {
_local1.horse4speed = _local1.horse4speed + 3;
}
if (_local1.horse4roll == 66) {
_local1.horse4speed = _local1.horse4speed - 3;
}
if (_local1.horse4roll == 88) {
_local1.horse4speed = _local1.horse4speed + 1;
}
if (_local1.horse4roll == 99) {
_local1.horse4speed = _local1.horse4speed + 4;
}
if (_local1.horse4roll == 55) {
_local1.horse4speed = _local1.horse4speed - 2;
}
if (_local1.horse4roll == 44) {
_local1.horse4speed = _local1.horse4speed + 1;
}
if (_local1.horse4roll == 33) {
_local1.horse4speed = _local1.horse4speed + 1;
}
if (_local1.horse4roll == 22) {
_local1.horse4speed = _local1.horse4speed - 1;
}
if (_local1.horse4roll == 11) {
_local1.horse4speed = _local1.horse4speed - 3;
}
if (_local1.horse4roll == 1) {
_local1.horse4speed = _local1.horse4speed - 4;
}
}
if (_local1.horse4roll < _local1.horse4guts) {
if (_local1.horse4stam > 10) {
if (_local1.horse4speed < _local1.horse4maxspeed) {
_local1.horse4speed = _local1.horse4speed + 1;
}
_local1.horse4stam = _local1.horse4stam - 1;
} else if (_local1.horse4speed > _local1.horse4minspeed) {
_local1.horse4speed = _local1.horse4speed - 1;
}
}
_local1.horse4distance = _local1.horse4distance + _local1.horse4speed;
_local1.Marker4 = Math.floor((_local1.horse4distance / _local1.racelength) * 100);
if (_local1.beton == 4) {
if (_local1.horse4distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
horse4.removeMovieClip();
}
_local1.horse4._x = 150;
} else {
if (_local1.horse4distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
horse4.removeMovieClip();
}
if (_local1.beton == 1) {
_local1.horse4._x = (_local1.horse4distance - _local1.horse1distance) + 150;
}
if (_local1.beton == 2) {
_local1.horse4._x = (_local1.horse4distance - _local1.horse2distance) + 150;
}
if (_local1.beton == 3) {
_local1.horse4._x = (_local1.horse4distance - _local1.horse3distance) + 150;
}
}
}
if (_local1.Racers == 5) {
_local1.horse1roll = Math.floor(Math.random() * 100);
if (_local1.horse1speed > 5) {
if (_local1.horse1roll == 77) {
_local1.horse1speed = _local1.horse1speed + 3;
}
if (_local1.horse1roll == 66) {
_local1.horse1speed = _local1.horse1speed - 3;
}
if (_local1.horse1roll == 88) {
_local1.horse1speed = _local1.horse1speed + 1;
}
if (_local1.horse1roll == 99) {
_local1.horse1speed = _local1.horse1speed + 4;
}
if (_local1.horse1roll == 55) {
_local1.horse1speed = _local1.horse1speed - 2;
}
if (_local1.horse1roll == 44) {
_local1.horse1speed = _local1.horse1speed + 1;
}
if (_local1.horse1roll == 33) {
_local1.horse1speed = _local1.horse1speed + 1;
}
if (_local1.horse1roll == 22) {
_local1.horse1speed = _local1.horse1speed - 1;
}
if (_local1.horse1roll == 11) {
_local1.horse1speed = _local1.horse1speed - 3;
}
if (_local1.horse1roll == 1) {
_local1.horse1speed = _local1.horse1speed - 4;
}
}
if (_local1.horse1roll < _local1.horse1guts) {
if (_local1.horse1stam > 10) {
if (_local1.horse1speed < _local1.horse1maxspeed) {
_local1.horse1speed = _local1.horse1speed + 1;
}
_local1.horse1stam = _local1.horse1stam - 1;
} else if (_local1.horse1speed > _local1.horse1minspeed) {
_local1.horse1speed = _local1.horse1speed - 1;
}
}
_local1.horse1distance = _local1.horse1distance + _local1.horse1speed;
_local1.Marker1 = Math.floor((_local1.horse1distance / _local1.racelength) * 100);
if (_local1.beton == 1) {
_local1.horse1._x = 150;
if (_local1.horse1distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
horse4.removeMovieClip();
horse5.removeMovieClip();
}
} else {
if (_local1.horse1distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
horse4.removeMovieClip();
horse5.removeMovieClip();
}
if (_local1.beton == 2) {
_local1.horse1._x = (_local1.horse1distance - _local1.horse2distance) + 150;
}
if (_local1.beton == 3) {
_local1.horse1._x = (_local1.horse1distance - _local1.horse3distance) + 150;
}
if (_local1.beton == 4) {
_local1.horse1._x = (_local1.horse1distance - _local1.horse4distance) + 150;
}
if (_local1.beton == 5) {
_local1.horse1._x = (_local1.horse1distance - _local1.horse5distance) + 150;
}
}
_local1.horse2roll = Math.floor(Math.random() * 100);
if (_local1.horse2speed > 5) {
if (_local1.horse2roll == 77) {
_local1.horse2speed = _local1.horse2speed + 3;
}
if (_local1.horse2roll == 66) {
_local1.horse2speed = _local1.horse2speed - 3;
}
if (_local1.horse2roll == 88) {
_local1.horse2speed = _local1.horse2speed + 1;
}
if (_local1.horse2roll == 99) {
_local1.horse2speed = _local1.horse2speed + 4;
}
if (_local1.horse2roll == 55) {
_local1.horse2speed = _local1.horse2speed - 2;
}
if (_local1.horse2roll == 44) {
_local1.horse2speed = _local1.horse2speed + 1;
}
if (_local1.horse2roll == 33) {
_local1.horse2speed = _local1.horse2speed + 1;
}
if (_local1.horse2roll == 22) {
_local1.horse2speed = _local1.horse2speed - 1;
}
if (_local1.horse2roll == 11) {
_local1.horse2speed = _local1.horse2speed - 3;
}
if (_local1.horse2roll == 1) {
_local1.horse2speed = _local1.horse2speed - 4;
}
}
if (_local1.horse2roll < _local1.horse2guts) {
if (_local1.horse2stam > 10) {
if (_local1.horse2speed < _local1.horse2maxspeed) {
_local1.horse2speed = _local1.horse2speed + 1;
}
_local1.horse2stam = _local1.horse2stam - 1;
} else if (_local1.horse2speed > _local1.horse2minspeed) {
_local1.horse2speed = _local1.horse2speed - 1;
}
}
_local1.horse2distance = _local1.horse2distance + _local1.horse2speed;
_local1.Marker2 = Math.floor((_local1.horse2distance / _local1.racelength) * 100);
if (_local1.beton == 2) {
if (_local1.horse2distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
horse4.removeMovieClip();
horse5.removeMovieClip();
}
_local1.horse2._x = 150;
} else {
if (_local1.horse2distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
horse4.removeMovieClip();
horse5.removeMovieClip();
}
if (_local1.beton == 1) {
_local1.horse2._x = (_local1.horse2distance - _local1.horse1distance) + 150;
}
if (_local1.beton == 3) {
_local1.horse2._x = (_local1.horse2distance - _local1.horse3distance) + 150;
}
if (_local1.beton == 4) {
_local1.horse2._x = (_local1.horse2distance - _local1.horse4distance) + 150;
}
if (_local1.beton == 5) {
_local1.horse2._x = (_local1.horse2distance - _local1.horse5distance) + 150;
}
}
_local1.horse3roll = Math.floor(Math.random() * 100);
if (_local1.horse3speed > 5) {
if (_local1.horse3roll == 77) {
_local1.horse3speed = _local1.horse3speed + 3;
}
if (_local1.horse3roll == 66) {
_local1.horse3speed = _local1.horse3speed - 3;
}
if (_local1.horse3roll == 88) {
_local1.horse3speed = _local1.horse3speed + 1;
}
if (_local1.horse3roll == 99) {
_local1.horse3speed = _local1.horse3speed + 4;
}
if (_local1.horse3roll == 55) {
_local1.horse3speed = _local1.horse3speed - 2;
}
if (_local1.horse3roll == 44) {
_local1.horse3speed = _local1.horse3speed + 1;
}
if (_local1.horse3roll == 33) {
_local1.horse3speed = _local1.horse3speed + 1;
}
if (_local1.horse3roll == 22) {
_local1.horse3speed = _local1.horse3speed - 1;
}
if (_local1.horse3roll == 11) {
_local1.horse3speed = _local1.horse3speed - 3;
}
if (_local1.horse3roll == 1) {
_local1.horse3speed = _local1.horse3speed - 4;
}
}
if (_local1.horse3roll < _local1.horse3guts) {
if (_local1.horse3stam > 10) {
if (_local1.horse3speed < _local1.horse3maxspeed) {
_local1.horse3speed = _local1.horse3speed + 1;
}
_local1.horse3stam = _local1.horse3stam - 1;
} else if (_local1.horse3speed > _local1.horse3minspeed) {
_local1.horse3speed = _local1.horse3speed - 1;
}
}
_local1.horse3distance = _local1.horse3distance + _local1.horse3speed;
_local1.Marker3 = Math.floor((_local1.horse3distance / _local1.racelength) * 100);
if (_local1.beton == 3) {
if (_local1.horse3distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
horse4.removeMovieClip();
horse5.removeMovieClip();
}
_local1.horse3._x = 150;
} else {
if (_local1.horse3distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
horse4.removeMovieClip();
horse5.removeMovieClip();
}
if (_local1.beton == 1) {
_local1.horse3._x = (_local1.horse3distance - _local1.horse1distance) + 150;
}
if (_local1.beton == 2) {
_local1.horse3._x = (_local1.horse3distance - _local1.horse2distance) + 150;
}
if (_local1.beton == 4) {
_local1.horse3._x = (_local1.horse3distance - _local1.horse4distance) + 150;
}
if (_local1.beton == 5) {
_local1.horse3._x = (_local1.horse3distance - _local1.horse5distance) + 150;
}
}
_local1.horse4roll = Math.floor(Math.random() * 100);
if (_local1.horse4speed > 5) {
if (_local1.horse4roll == 77) {
_local1.horse4speed = _local1.horse4speed + 3;
}
if (_local1.horse4roll == 66) {
_local1.horse4speed = _local1.horse4speed - 3;
}
if (_local1.horse4roll == 88) {
_local1.horse4speed = _local1.horse4speed + 1;
}
if (_local1.horse4roll == 99) {
_local1.horse4speed = _local1.horse4speed + 4;
}
if (_local1.horse4roll == 55) {
_local1.horse4speed = _local1.horse4speed - 2;
}
if (_local1.horse4roll == 44) {
_local1.horse4speed = _local1.horse4speed + 1;
}
if (_local1.horse4roll == 33) {
_local1.horse4speed = _local1.horse4speed + 1;
}
if (_local1.horse4roll == 22) {
_local1.horse4speed = _local1.horse4speed - 1;
}
if (_local1.horse4roll == 11) {
_local1.horse4speed = _local1.horse4speed - 3;
}
if (_local1.horse4roll == 1) {
_local1.horse4speed = _local1.horse4speed - 4;
}
}
if (_local1.horse4roll < _local1.horse4guts) {
if (_local1.horse4stam > 10) {
if (_local1.horse4speed < _local1.horse4maxspeed) {
_local1.horse4speed = _local1.horse4speed + 1;
}
_local1.horse4stam = _local1.horse4stam - 1;
} else if (_local1.horse4speed > _local1.horse4minspeed) {
_local1.horse4speed = _local1.horse4speed - 1;
}
}
_local1.horse4distance = _local1.horse4distance + _local1.horse4speed;
_local1.Marker4 = Math.floor((_local1.horse4distance / _local1.racelength) * 100);
if (_local1.beton == 4) {
if (_local1.horse4distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
horse4.removeMovieClip();
horse5.removeMovieClip();
}
_local1.horse4._x = 150;
} else {
if (_local1.horse4distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
horse4.removeMovieClip();
horse5.removeMovieClip();
}
if (_local1.beton == 1) {
_local1.horse4._x = (_local1.horse4distance - _local1.horse1distance) + 150;
}
if (_local1.beton == 2) {
_local1.horse4._x = (_local1.horse4distance - _local1.horse2distance) + 150;
}
if (_local1.beton == 3) {
_local1.horse4._x = (_local1.horse4distance - _local1.horse3distance) + 150;
}
if (_local1.beton == 5) {
_local1.horse4._x = (_local1.horse4distance - _local1.horse5distance) + 150;
}
}
_local1.horse5roll = Math.floor(Math.random() * 100);
if (_local1.horse5speed > 5) {
if (_local1.horse5roll == 77) {
_local1.horse5speed = _local1.horse5speed + 3;
}
if (_local1.horse5roll == 66) {
_local1.horse5speed = _local1.horse5speed - 3;
}
if (_local1.horse5roll == 88) {
_local1.horse5speed = _local1.horse5speed + 1;
}
if (_local1.horse5roll == 99) {
_local1.horse5speed = _local1.horse5speed + 4;
}
if (_local1.horse5roll == 55) {
_local1.horse5speed = _local1.horse5speed - 2;
}
if (_local1.horse5roll == 44) {
_local1.horse5speed = _local1.horse5speed + 1;
}
if (_local1.horse5roll == 33) {
_local1.horse5speed = _local1.horse5speed + 1;
}
if (_local1.horse5roll == 22) {
_local1.horse5speed = _local1.horse5speed - 1;
}
if (_local1.horse5roll == 11) {
_local1.horse5speed = _local1.horse5speed - 3;
}
if (_local1.horse5roll == 1) {
_local1.horse5speed = _local1.horse5speed - 4;
}
}
if (_local1.horse5roll < _local1.horse5guts) {
if (_local1.horse5stam > 10) {
if (_local1.horse5speed < _local1.horse5maxspeed) {
_local1.horse5speed = _local1.horse5speed + 1;
}
_local1.horse5stam = _local1.horse5stam - 1;
} else if (_local1.horse5speed > _local1.horse5minspeed) {
_local1.horse5speed = _local1.horse5speed - 1;
}
}
_local1.horse5distance = _local1.horse5distance + _local1.horse5speed;
_local1.Marker5 = Math.floor((_local1.horse5distance / _local1.racelength) * 100);
if (_local1.beton == 5) {
if (_local1.horse5distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
horse4.removeMovieClip();
horse5.removeMovieClip();
}
_local1.horse5._x = 150;
} else {
if (_local1.horse5distance > _local1.racelength) {
_local1.gotoAndStop(6);
horse1.removeMovieClip();
horse2.removeMovieClip();
horse3.removeMovieClip();
horse4.removeMovieClip();
horse5.removeMovieClip();
}
if (_local1.beton == 1) {
_local1.horse5._x = (_local1.horse5distance - _local1.horse1distance) + 150;
}
if (_local1.beton == 2) {
_local1.horse5._x = (_local1.horse5distance - _local1.horse2distance) + 150;
}
if (_local1.beton == 3) {
_local1.horse5._x = (_local1.horse5distance - _local1.horse3distance) + 150;
}
if (_local1.beton == 4) {
_local1.horse5._x = (_local1.horse5distance - _local1.horse4distance) + 150;
}
}
}
recArray[1] = _local1.horse1distance;
recArray[2] = _local1.horse2distance;
recArray[3] = _local1.horse3distance;
recArray[4] = _local1.horse4distance;
recArray[5] = _local1.horse5distance;
recArray2[1] = _local1.horse1id;
recArray2[2] = _local1.horse2id;
recArray2[3] = _local1.horse3id;
recArray2[4] = _local1.horse4id;
recArray2[5] = _local1.horse5id;
_local1.first = maxValue(recArray);
B = 1;
while (B < 7) {
if (_local1.first == recArray[B]) {
_local1.firstid = recArray2[B];
recArray.splice(B, 1);
recArray2.splice(B, 1);
_local1.firstCam = B;
B = 9;
}
B = B + 1;
}
_local1.second = maxValue(recArray);
if (_local1.Racers == 2) {
Catch = Math.floor(Math.random() * 15);
if (Catch == 1) {
_local1.horse2speed = _local1.horse2speed + 1;
}
}
B = 1;
while (B < 7) {
if (_local1.second == recArray[B]) {
_local1.secondid = recArray2[B];
recArray.splice(B, 1);
recArray2.splice(B, 1);
_local1.secondCam = B;
B = 9;
}
B = B + 1;
}
if (_local1.Racers > 2) {
if (_local1.Racers == 3) {
Catch = Math.floor(Math.random() * 10);
if (Catch == 1) {
_local1.horse3speed = _local1.horse3speed + 1;
}
}
_local1.third = maxValue(recArray);
B = 1;
while (B < 7) {
if (_local1.third == recArray[B]) {
_local1.thirdid = recArray2[B];
recArray.splice(B, 1);
recArray2.splice(B, 1);
_local1.thirdCam = B;
B = 9;
}
B = B + 1;
}
}
if (_local1.Racers > 3) {
if (_local1.Racers == 4) {
Catch = Math.floor(Math.random() * 9);
if (Catch == 1) {
_local1.horse4speed = _local1.horse4speed + 1;
}
}
_local1.fourth = maxValue(recArray);
B = 1;
while (B < 7) {
if (_local1.fourth == recArray[B]) {
_local1.fourthid = recArray2[B];
recArray.splice(B, 1);
recArray2.splice(B, 1);
_local1.fourthCam = B;
B = 9;
}
B = B + 1;
}
}
if (_local1.Racers > 4) {
Catch = Math.floor(Math.random() * 5);
if (Catch == 1) {
_local1.horse5speed = _local1.horse5speed + 1;
}
_local1.fifth = maxValue(recArray);
B = 1;
while (B < 7) {
if (_local1.fifth == recArray[B]) {
_local1.fifthid = recArray2[B];
recArray.splice(B, 1);
recArray2.splice(B, 1);
_local1.fifthCam = B;
B = 9;
}
B = B + 1;
}
}
_local1.firstname = _local1.horsies[_local1.firstid][0];
_local1.secondname = _local1.horsies[_local1.secondid][0];
if (_local1.Racers > 2) {
_local1.thirdname = _local1.horsies[_local1.thirdid][0];
} else {
_local1.thirdname = "none";
}
if (_local1.bettype == "leader") {
_local1.beton = _local1.firstCam;
}
}
stop();
_root.cheer = 1;
_root.boo = 2;
if (_root.Racers == 2) {
_root.attachMovie("HUD", "HUD", 9999);
_root.HUD._alpha = 70;
} else {
_root.attachMovie("HUD2", "HUD2", 9999);
_root.HUD2._alpha = 70;
}
_root.attachMovie("arrows", "arrows", 9998);
_root.arrows._alpha = 60;
maxValue = function (array) {
var _local1 = array;
mxm = _local1[0];
i = 0;
while (i < _local1.length) {
if (_local1[i] > mxm) {
mxm = _local1[i];
}
i++;
}
return(mxm);
};
if (_root.Track == 1) {
_root.racelength = 6000;
}
if (_root.Track == 2) {
_root.racelength = 16000;
}
if (_root.Track == 3) {
_root.racelength = 8500;
}
if (_root.Track == 4) {
_root.racelength = 12000;
}
if (_root.Track == 5) {
_root.racelength = 10000;
}
recArray = new Array();
recArray2 = new Array();
if (_root.Racers == 2) {
_root.attachMovie("horse", "horse1", 160);
_root.horse1._y = 250;
_root.horse1._x = 150;
_root.horse1maxspeed = horsies[_root.horse1id][1];
_root.horse1minspeed = horsies[_root.horse1id][2];
_root.horse1guts = horsies[_root.horse1id][3];
RandS1 = Math.floor(Math.random() * 45);
_root.horse1stam = 150 + RandS1;
_root.horse1speed = 1;
_root.horse1distance = 1;
_root.horse1.gotoAndStop(horsies[_root.horse1id][5]);
_root.attachMovie("horse", "horse2", 150);
_root.horse2._y = 220;
_root.horse2._x = 150;
_root.horse2maxspeed = horsies[_root.horse2id][1];
_root.horse2minspeed = horsies[_root.horse2id][2];
_root.horse2guts = horsies[_root.horse2id][3];
RandS2 = Math.floor(Math.random() * 45);
_root.horse2stam = 150 + RandS2;
_root.horse2speed = 1;
_root.horse2distance = 1;
_root.horse2.gotoAndStop(horsies[_root.horse2id][5]);
}
if (_root.Racers == 3) {
_root.attachMovie("horse", "horse1", 160);
_root.horse1._y = 250;
_root.horse1._x = 150;
_root.horse1maxspeed = horsies[_root.horse1id][1];
_root.horse1minspeed = horsies[_root.horse1id][2];
_root.horse1guts = horsies[_root.horse1id][3];
RandS1 = Math.floor(Math.random() * 45);
_root.horse1stam = 150 + RandS1;
_root.horse1speed = 1;
_root.horse1distance = 1;
_root.horse1.gotoAndStop(horsies[_root.horse1id][5]);
_root.attachMovie("horse", "horse2", 150);
_root.horse2._y = 220;
_root.horse2._x = 150;
_root.horse2maxspeed = horsies[_root.horse2id][1];
_root.horse2minspeed = horsies[_root.horse2id][2];
_root.horse2guts = horsies[_root.horse2id][3];
RandS2 = Math.floor(Math.random() * 45);
_root.horse2stam = 150 + RandS2;
_root.horse2speed = 1;
_root.horse2distance = 1;
_root.horse2.gotoAndStop(horsies[_root.horse2id][5]);
_root.attachMovie("horse", "horse3", 140);
_root.horse3._y = 190;
_root.horse3._x = 150;
_root.horse3maxspeed = horsies[_root.horse3id][1];
_root.horse3minspeed = horsies[_root.horse3id][2];
_root.horse3guts = horsies[_root.horse3id][3];
RandS3 = Math.floor(Math.random() * 45);
_root.horse3stam = 150 + RandS3;
_root.horse3speed = 1;
_root.horse3distance = 1;
_root.horse3.gotoAndStop(horsies[_root.horse3id][5]);
}
if (_root.Racers == 4) {
_root.attachMovie("horse", "horse1", 160);
_root.horse1._y = 250;
_root.horse1._x = 150;
_root.horse1maxspeed = horsies[_root.horse1id][1];
_root.horse1minspeed = horsies[_root.horse1id][2];
_root.horse1guts = horsies[_root.horse1id][3];
RandS1 = Math.floor(Math.random() * 45);
_root.horse1stam = 150 + RandS1;
_root.horse1speed = 1;
_root.horse1distance = 1;
_root.horse1.gotoAndStop(horsies[_root.horse1id][5]);
_root.attachMovie("horse", "horse2", 150);
_root.horse2._y = 220;
_root.horse2._x = 150;
_root.horse2maxspeed = horsies[_root.horse2id][1];
_root.horse2minspeed = horsies[_root.horse2id][2];
_root.horse2guts = horsies[_root.horse2id][3];
RandS2 = Math.floor(Math.random() * 45);
_root.horse2stam = 150 + RandS2;
_root.horse2speed = 1;
_root.horse2distance = 1;
_root.horse2.gotoAndStop(horsies[_root.horse2id][5]);
_root.attachMovie("horse", "horse3", 140);
_root.horse3._y = 190;
_root.horse3._x = 150;
_root.horse3maxspeed = horsies[_root.horse3id][1];
_root.horse3minspeed = horsies[_root.horse3id][2];
_root.horse3guts = horsies[_root.horse3id][3];
RandS3 = Math.floor(Math.random() * 45);
_root.horse3stam = 150 + RandS3;
_root.horse3speed = 1;
_root.horse3distance = 1;
_root.horse3.gotoAndStop(horsies[_root.horse3id][5]);
_root.attachMovie("horse", "horse4", 130);
_root.horse4._y = 160;
_root.horse4._x = 150;
_root.horse4maxspeed = horsies[_root.horse4id][1];
_root.horse4minspeed = horsies[_root.horse4id][2];
_root.horse4guts = horsies[_root.horse4id][3];
RandS4 = Math.floor(Math.random() * 45);
_root.horse4stam = 150 + RandS4;
_root.horse4speed = 1;
_root.horse4distance = 1;
_root.horse4.gotoAndStop(horsies[_root.horse4id][5]);
}
if (_root.Racers == 5) {
_root.attachMovie("horse", "horse1", 160);
_root.horse1._y = 250;
_root.horse1._x = 150;
_root.horse1maxspeed = horsies[_root.horse1id][1];
_root.horse1minspeed = horsies[_root.horse1id][2];
_root.horse1guts = horsies[_root.horse1id][3];
RandS1 = Math.floor(Math.random() * 45);
_root.horse1stam = 150 + RandS1;
_root.horse1speed = 1;
_root.horse1distance = 1;
_root.horse1.gotoAndStop(horsies[_root.horse1id][5]);
_root.attachMovie("horse", "horse2", 150);
_root.horse2._y = 220;
_root.horse2._x = 150;
_root.horse2maxspeed = horsies[_root.horse2id][1];
_root.horse2minspeed = horsies[_root.horse2id][2];
_root.horse2guts = horsies[_root.horse2id][3];
RandS2 = Math.floor(Math.random() * 45);
_root.horse2stam = 150 + RandS2;
_root.horse2speed = 1;
_root.horse2distance = 1;
_root.horse2.gotoAndStop(horsies[_root.horse2id][5]);
_root.attachMovie("horse", "horse3", 140);
_root.horse3._y = 190;
_root.horse3._x = 150;
_root.horse3maxspeed = horsies[_root.horse3id][1];
_root.horse3minspeed = horsies[_root.horse3id][2];
_root.horse3guts = horsies[_root.horse3id][3];
RandS3 = Math.floor(Math.random() * 45);
_root.horse3stam = 150 + RandS3;
_root.horse3speed = 1;
_root.horse3distance = 1;
_root.horse3.gotoAndStop(horsies[_root.horse3id][5]);
_root.attachMovie("horse", "horse4", 130);
_root.horse4._y = 160;
_root.horse4._x = 150;
_root.horse4maxspeed = horsies[_root.horse4id][1];
_root.horse4minspeed = horsies[_root.horse4id][2];
_root.horse4guts = horsies[_root.horse4id][3];
RandS4 = Math.floor(Math.random() * 45);
_root.horse4stam = 150 + RandS4;
_root.horse4speed = 1;
_root.horse4distance = 1;
_root.horse4.gotoAndStop(horsies[_root.horse4id][5]);
_root.attachMovie("horse", "horse5", 120);
_root.horse5._y = 130;
_root.horse5._x = 150;
_root.horse5maxspeed = horsies[_root.horse5id][1];
_root.horse5minspeed = horsies[_root.horse5id][2];
_root.horse5guts = horsies[_root.horse5id][3];
RandS5 = Math.floor(Math.random() * 45);
_root.horse5stam = 150 + RandS5;
_root.horse5speed = 1;
_root.horse5distance = 1;
_root.horse5.gotoAndStop(horsies[_root.horse5id][5]);
}
if (_root.Racers == 6) {
_root.attachMovie("horse", "horse1", 160);
_root.horse1._y = 250;
_root.attachMovie("horse", "horse2", 150);
_root.horse2._y = 220;
_root.attachMovie("horse", "horse3", 140);
_root.horse3._y = 190;
_root.attachMovie("horse", "horse4", 130);
_root.horse4._y = 160;
_root.attachMovie("horse", "horse5", 120);
_root.horse5._y = 130;
_root.attachMovie("horse", "horse6", 110);
_root.horse6._y = 100;
}
Instance of Symbol 334 MovieClip [Level] in Frame 5
onClipEvent (enterFrame) {
if (_root.beton == 1) {
CamX = _root.horse1distance;
}
if (_root.beton == 2) {
CamX = _root.horse2distance;
}
if (_root.beton == 3) {
CamX = _root.horse3distance;
}
if (_root.beton == 4) {
CamX = _root.horse4distance;
}
if (_root.beton == 5) {
CamX = _root.horse5distance;
}
CamX = CamX * -1;
this._x = CamX;
this.gotoAndStop(_root.Track);
}
Instance of Symbol 23 MovieClip in Frame 5
onClipEvent (enterFrame) {
_root.Start();
}
Instance of Symbol 368 MovieClip in Frame 5
onClipEvent (enterFrame) {
this._x = _root.Marker1 * 5;
if (_root.Bet1 == 1) {
this.gotoAndStop(2);
}
if (_root.Bet2 == 1) {
this.gotoAndStop(3);
}
if (_root.Bet3 == 1) {
this.gotoAndStop(4);
}
}
Instance of Symbol 370 MovieClip in Frame 5
onClipEvent (enterFrame) {
this._x = _root.Marker2 * 5;
if (_root.Bet1 == 2) {
this.gotoAndStop(2);
}
if (_root.Bet2 == 2) {
this.gotoAndStop(3);
}
if (_root.Bet3 == 2) {
this.gotoAndStop(4);
}
}
Instance of Symbol 372 MovieClip in Frame 5
onClipEvent (enterFrame) {
this._x = _root.Marker3 * 5;
if (_root.Bet1 == 3) {
this.gotoAndStop(2);
}
if (_root.Bet2 == 3) {
this.gotoAndStop(3);
}
if (_root.Bet3 == 3) {
this.gotoAndStop(4);
}
}
Instance of Symbol 374 MovieClip in Frame 5
onClipEvent (enterFrame) {
this._x = _root.Marker4 * 5;
if (_root.Bet1 == 4) {
this.gotoAndStop(2);
}
if (_root.Bet2 == 4) {
this.gotoAndStop(3);
}
if (_root.Bet3 == 4) {
this.gotoAndStop(4);
}
}
Instance of Symbol 376 MovieClip in Frame 5
onClipEvent (enterFrame) {
this._x = _root.Marker5 * 5;
if (_root.Bet1 == 5) {
this.gotoAndStop(2);
}
if (_root.Bet2 == 5) {
this.gotoAndStop(3);
}
if (_root.Bet3 == 5) {
this.gotoAndStop(4);
}
}
Instance of Symbol 378 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.beton == 5) {
this._x = _root.Marker5 * 5;
} else {
this._x = -500;
}
}
Instance of Symbol 378 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.beton == 4) {
this._x = _root.Marker4 * 5;
} else {
this._x = -500;
}
}
Instance of Symbol 378 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.beton == 3) {
this._x = _root.Marker3 * 5;
} else {
this._x = -500;
}
}
Instance of Symbol 378 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.beton == 2) {
this._x = _root.Marker2 * 5;
} else {
this._x = -500;
}
}
Instance of Symbol 378 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.beton == 1) {
this._x = _root.Marker1 * 5;
} else {
this._x = -500;
}
}
Instance of Symbol 380 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
if (_root.cheer == 1) {
_root.cheerX = Math.floor(Math.random() * 3) + 1;
if (_root.cheerX == 1) {
_root.cheer = 2;
}
if (_root.cheerX == 2) {
_root.cheer = 3;
}
if (_root.cheerX == 3) {
_root.cheer = 4;
}
boocheck = 0;
while (boocheck < 5) {
_root.booX = Math.floor(Math.random() * 3) + 1;
if (_root.booX == 1) {
_root.boo = 2;
}
if (_root.booX == 2) {
_root.boo = 3;
}
if (_root.booX == 3) {
_root.boo = 4;
}
if (_root.boo != _root.cheer) {
boocheck = 6;
speed = 1;
}
}
}
if (_root.boo == 1) {
_root.cheerX = Math.floor(Math.random() * 3) + 1;
if (_root.cheerX == 1) {
_root.cheer = 2;
}
if (_root.cheerX == 2) {
_root.cheer = 3;
}
if (_root.cheerX == 3) {
_root.cheer = 4;
}
boocheck = 0;
while (boocheck < 5) {
_root.booX = Math.floor(Math.random() * 3) + 1;
if (_root.booX == 1) {
_root.boo = 2;
}
if (_root.booX == 2) {
_root.boo = 3;
}
if (_root.booX == 3) {
_root.boo = 4;
}
if (_root.boo != _root.cheer) {
boocheck = 6;
speed = -1;
}
}
}
}
if (Key.isDown(39)) {
if (_root.cheer == 2) {
_root.cheerX = Math.floor(Math.random() * 3) + 1;
if (_root.cheerX == 1) {
_root.cheer = 1;
}
if (_root.cheerX == 2) {
_root.cheer = 3;
}
if (_root.cheerX == 3) {
_root.cheer = 4;
}
boocheck = 0;
while (boocheck < 5) {
_root.booX = Math.floor(Math.random() * 3) + 1;
if (_root.booX == 1) {
_root.boo = 1;
}
if (_root.booX == 2) {
_root.boo = 3;
}
if (_root.booX == 3) {
_root.boo = 4;
}
if (_root.boo != _root.cheer) {
boocheck = 6;
speed = -1;
}
}
}
if (_root.boo == 2) {
_root.cheerX = Math.floor(Math.random() * 3) + 1;
if (_root.cheerX == 1) {
_root.cheer = 1;
}
if (_root.cheerX == 2) {
_root.cheer = 3;
}
if (_root.cheerX == 3) {
_root.cheer = 4;
}
boocheck = 0;
while (boocheck < 5) {
_root.booX = Math.floor(Math.random() * 3) + 1;
if (_root.booX == 1) {
_root.boo = 1;
}
if (_root.booX == 2) {
_root.boo = 3;
}
if (_root.booX == 3) {
_root.boo = 4;
}
if (_root.boo != _root.cheer) {
boocheck = 6;
speed = -1;
}
}
}
}
if (Key.isDown(40)) {
if (_root.cheer == 3) {
_root.cheerX = Math.floor(Math.random() * 3) + 1;
if (_root.cheerX == 1) {
_root.cheer = 1;
}
if (_root.cheerX == 2) {
_root.cheer = 2;
}
if (_root.cheerX == 3) {
_root.cheer = 4;
}
boocheck = 0;
while (boocheck < 5) {
_root.booX = Math.floor(Math.random() * 3) + 1;
if (_root.booX == 1) {
_root.boo = 2;
}
if (_root.booX == 2) {
_root.boo = 1;
}
if (_root.booX == 3) {
_root.boo = 4;
}
if (_root.boo != _root.cheer) {
boocheck = 6;
speed = 1;
}
}
}
if (_root.boo == 3) {
_root.cheerX = Math.floor(Math.random() * 3) + 1;
if (_root.cheerX == 1) {
_root.cheer = 1;
}
if (_root.cheerX == 2) {
_root.cheer = 2;
}
if (_root.cheerX == 3) {
_root.cheer = 4;
}
boocheck = 0;
while (boocheck < 5) {
_root.booX = Math.floor(Math.random() * 3) + 1;
if (_root.booX == 1) {
_root.boo = 2;
}
if (_root.booX == 2) {
_root.boo = 1;
}
if (_root.booX == 3) {
_root.boo = 4;
}
if (_root.boo != _root.cheer) {
boocheck = 6;
speed = -1;
}
}
}
}
if (Key.isDown(37)) {
if (_root.cheer == 4) {
_root.cheerX = Math.floor(Math.random() * 3) + 1;
if (_root.cheerX == 1) {
_root.cheer = 1;
}
if (_root.cheerX == 2) {
_root.cheer = 2;
}
if (_root.cheerX == 3) {
_root.cheer = 3;
}
boocheck = 0;
while (boocheck < 5) {
_root.booX = Math.floor(Math.random() * 3) + 1;
if (_root.booX == 1) {
_root.boo = 2;
}
if (_root.booX == 2) {
_root.boo = 1;
}
if (_root.booX == 3) {
_root.boo = 3;
}
if (_root.boo != _root.cheer) {
boocheck = 6;
speed = 1;
}
}
}
if (_root.boo == 4) {
_root.cheerX = Math.floor(Math.random() * 3) + 1;
if (_root.cheerX == 1) {
_root.cheer = 1;
}
if (_root.cheerX == 2) {
_root.cheer = 2;
}
if (_root.cheerX == 3) {
_root.cheer = 3;
}
boocheck = 0;
while (boocheck < 5) {
_root.booX = Math.floor(Math.random() * 3) + 1;
if (_root.booX == 1) {
_root.boo = 2;
}
if (_root.booX == 2) {
_root.boo = 1;
}
if (_root.booX == 3) {
_root.boo = 3;
}
if (_root.boo != _root.cheer) {
boocheck = 6;
speed = -1;
}
}
}
if (_root.beton == 1) {
if (speed == -1) {
blah = Math.floor(Math.random() * 2);
if (blah == 1) {
if (_root.horse1speed > 15) {
_root.horse1speed = _root.horse1speed - 2;
}
}
}
if (speed == 1) {
blah = Math.floor(Math.random() * 2);
if (blah == 1) {
if (_root.horse1speed < 37) {
_root.horse1speed = _root.horse1speed + 2;
}
}
}
}
if (_root.beton == 2) {
if (speed == -1) {
blah = Math.floor(Math.random() * 2);
if (blah == 1) {
if (_root.horse2speed > 15) {
_root.horse2speed = _root.horse2speed - 2;
}
}
}
if (speed == 1) {
blah = Math.floor(Math.random() * 2);
if (blah == 1) {
if (_root.horse2speed < 37) {
_root.horse2speed = _root.horse2speed + 2;
}
}
}
}
if (_root.beton == 3) {
if (speed == -1) {
blah = Math.floor(Math.random() * 2);
if (blah == 1) {
if (_root.horse3speed > 15) {
_root.horse3speed = _root.horse3speed - 2;
}
}
}
if (speed == 1) {
blah = Math.floor(Math.random() * 2);
if (blah == 1) {
if (_root.horse3speed < 37) {
_root.horse3speed = _root.horse3speed + 2;
}
}
}
}
if (_root.beton == 4) {
if (speed == -1) {
blah = Math.floor(Math.random() * 2);
if (blah == 1) {
if (_root.horse4speed > 15) {
_root.horse4speed = _root.horse4speed - 2;
}
}
}
if (speed == 1) {
blah = Math.floor(Math.random() * 2);
if (blah == 1) {
if (_root.horse4speed < 37) {
_root.horse4speed = _root.horse4speed + 2;
}
}
}
}
if (_root.beton == 5) {
if (speed == -1) {
blah = Math.floor(Math.random() * 2);
if (blah == 1) {
if (_root.horse5speed > 15) {
_root.horse5speed = _root.horse5speed - 2;
}
}
}
if (speed == 1) {
blah = Math.floor(Math.random() * 2);
if (blah == 1) {
if (_root.horse5speed < 37) {
_root.horse5speed = _root.horse5speed + 2;
}
}
}
}
}
}
Frame 6
stop();
HUD2.removeMovieClip();
HUD.removeMovieClip();
arrows.removeMovieClip();
bet1 = false;
bet2 = false;
bet3 = false;
_root.RankText = " ";
Lose = 0;
Bets = 0;
_root.Gain = 0;
if (_root.Bet1name != "Please Select") {
Bets = Bets + 1;
bet1 = true;
}
if (_root.Bet2name != "Please Select") {
Bets = Bets + 1;
bet2 = true;
}
if (_root.Bet3name != "Please Select") {
Bets = Bets + 1;
bet3 = true;
}
if ((_root.Bet1name == _root.firstname) or (bet1 == false)) {
} else {
Lose = Lose + 5;
}
if ((_root.Bet2name == _root.secondname) or (bet2 == false)) {
} else {
Lose = Lose + 5;
}
if ((_root.Bet3name == _root.thirdname) or (bet3 == false)) {
} else {
Lose = Lose + 5;
}
if (Lose < 1) {
if (Bets > 0) {
bonusPercent = 1;
if (_root.Track > 2) {
bonusPercent = _root.Track / 2;
}
bonutPercent = bonutPercent + Bets;
_root.Cash = _root.Cash + Math.floor((_root.BET * (_root.Racers / 4)) * bonusPercent);
_root.Gain = _root.Gain + Math.floor((_root.BET * (_root.Racers / 4)) * bonusPercent);
_root.MoneyWon = _root.MoneyWon + _root.Gain;
if (_root.Cash > _root.MostMoney) {
_root.MostMoney = _root.Cash;
}
if ((_root.Loaning == 0) and (_root.Rank < 6)) {
_root.RepNeeded2 = _root.RepNeeded - _root.Rep;
if (_root.Rep < _root.RepNeeded2) {
_root.Rep = _root.Rep + (1 * Bets);
} else {
_root.RepNeeded = _root.RepNeeded * 1.5;
_root.Rep = 0;
_root.Rank = _root.Rank + 1;
_root.Unlock = _root.Rank + 5;
_root.Unlocked = _root.horsies[_root.Unlock][0];
_root.RankText = (("You have Gained a rank! \n Your current rank is : " + _root.Rank) + "\n New horse available : ") + _root.Unlocked;
if (_root.Rank == 3) {
_root.RankText = ((("You have Gained a rank! \n Your current rank is : " + _root.Rank) + "\n New horse available : ") + _root.Unlocked) + "\n\n Money Cheat : \"idontwanttobepoor\" \n Type in box on bottom right of Credits Screen then press button left of input box.";
}
if (_root.Rank == 5) {
_root.RankText = ((("You have Gained a rank! \n Your current rank is : " + _root.Rank) + "\n New horse available : ") + _root.Unlocked) + "\n\n Rank Cheat : \"almostfamous\" \n Type in box on bottom right of Credits Screen then press button left of input box.";
}
}
}
_root.Victor = "Victory is yours!";
_root.Wins = _root.Wins + 1;
_root.WinStreak = _root.WinStreak + 1;
_root.LoseStreak = 0;
if (_root.WinStreak > _root.WinStreakMax) {
_root.WinStreakMax = _root.WinStreak;
}
} else {
_root.Victor = "You did not bet.";
}
} else {
_root.Cash = _root.Cash - _root.BET;
if ((_root.Rep > 0) and (_root.Rank < 6)) {
_root.Rep = _root.Rep - 1;
}
_root.Gain = _root.Gain - _root.Bet;
_root.MoneyLost = _root.MoneyLost - _root.Gain;
_root.Victor = "You Lost!";
_root.Loses = _root.Loses + 1;
_root.WinStreak = 0;
_root.LoseStreak = _root.LoseStreak + 1;
if (_root.LoseStreak > _root.LoseStreakMax) {
_root.LoseStreakMax = _root.LoseStreak;
}
}
Instance of Symbol 410 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.Racers > 2) {
this._x = 285.5;
} else {
this._x = -500;
}
}
Instance of Symbol 224 MovieClip [horse] in Frame 6
onClipEvent (enterFrame) {
this.gotoAndStop(_root.horsies[_root.firstid][5]);
}
Frame 7
_root.Raced = _root.Wins + _root.Loses;
_root.WinRatio = Math.floor((_root.Wins / _root.Raced) * 100);
_root.LoseRatio = Math.floor((_root.Loses / _root.Raced) * 100);
Instance of Symbol 323 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.Rank > 0) {
this._x = 20.4;
} else {
this._x = -500;
}
}
Instance of Symbol 323 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.Rank > 1) {
this._x = 46.4;
} else {
this._x = -500;
}
}
Instance of Symbol 323 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.Rank > 2) {
this._x = 70.1;
} else {
this._x = -500;
}
}
Instance of Symbol 323 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.Rank > 3) {
this._x = 95.3;
} else {
this._x = -500;
}
}
Instance of Symbol 323 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.Rank > 4) {
this._x = 121.3;
} else {
this._x = -500;
}
}
Instance of Symbol 323 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.Rank > 0) {
this._x = 20.4;
} else {
this._x = -500;
}
}
Instance of Symbol 323 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.Rank > 1) {
this._x = 46.4;
} else {
this._x = -500;
}
}
Instance of Symbol 323 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.Rank > 2) {
this._x = 70.1;
} else {
this._x = -500;
}
}
Instance of Symbol 323 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.Rank > 3) {
this._x = 95.3;
} else {
this._x = -500;
}
}
Instance of Symbol 323 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.Rank > 4) {
this._x = 121.3;
} else {
this._x = -500;
}
}
Instance of Symbol 224 MovieClip [horse] in Frame 8
onClipEvent (enterFrame) {
if (_root.viewon < 1) {
this.gotoAndStop(12);
} else {
viewo = _root.viewon - 1;
_root.viewframe = _root.horsies[viewo][5];
this.gotoAndStop(_root.viewframe);
}
}
Instance of Symbol 226 MovieClip in Frame 8
onClipEvent (enterFrame) {
this._width = _root.viewguts;
}
Instance of Symbol 515 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_root.Rank < 1) {
this._x = -500;
} else {
this._x = 15.9;
}
}
Instance of Symbol 518 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_root.Rank < 2) {
this._x = -500;
} else {
this._x = 15.9;
}
}
Instance of Symbol 521 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_root.Rank < 3) {
this._x = -500;
} else {
this._x = 15.9;
}
}
Instance of Symbol 524 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_root.Rank < 4) {
this._x = -500;
} else {
this._x = 15.9;
}
}
Instance of Symbol 527 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_root.Rank < 5) {
this._x = -500;
} else {
this._x = 15.9;
}
}
Instance of Symbol 226 MovieClip in Frame 8
onClipEvent (enterFrame) {
_root.viewmaxspeedX = _root.viewmaxspeed - 20;
this._width = Math.floor((_root.viewmaxspeedX / 20) * 100);
}
Instance of Symbol 226 MovieClip in Frame 8
onClipEvent (enterFrame) {
_root.viewminspeedX = _root.viewminspeed - 10;
this._width = Math.floor((_root.viewminspeedX / 20) * 100);
}
Instance of Symbol 541 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (_root.Track3bought == 1) {
this._alpha = 20;
} else {
this._alpha = 100;
}
}
Instance of Symbol 543 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (_root.Track4bought == 1) {
this._alpha = 20;
} else {
this._alpha = 100;
}
}
Instance of Symbol 539 MovieClip in Frame 11
on (release) {
_root.Loaning = 1;
_root.Loaned = _root.Loaned + 110;
_root.Cash = _root.Cash + 100;
}
Instance of Symbol 539 MovieClip in Frame 11
on (release) {
if ((_root.Loaned > 0) and (_root.Cash > 110)) {
_root.Loaned = _root.Loaned - 110;
_root.Cash = _root.Cash - 110;
if (_root.Loaned < 1) {
_root.Loaning = 0;
}
}
}
Instance of Symbol 550 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (_root.Track5bought == 1) {
this._alpha = 20;
} else {
this._alpha = 100;
}
}
Symbol 37 Button
on (release) {
getURL ("http://www.gamesreloaded.com", "_blank");
}
Symbol 40 Button
on (release) {
getURL ("http://www.gamesreloaded.com/gamesforyoursite.php", "_blank");
}
Symbol 43 Button
on (release) {
_root.SAVED.removeMovieClip();
}
Symbol 46 Button
on (release) {
_root.CHEATER.removeMovieClip();
}
Symbol 53 Button
on (release) {
getURL ("http://www.gamesreloaded.com", "_blank");
}
Symbol 59 MovieClip Frame 125
_root.play();
Symbol 66 Button
on (release) {
_root.play();
}
Symbol 71 Button
on (release) {
_root.pos = sharedobject.getLocal("SAVERACINGDATA");
if (((_root.pos.data.Cash < 1) and (_root.pos.data.Loses < 1)) and (_root.pos.data.Wins < 1)) {
} else {
_root.Loanded = _root.pos.data.Loaned;
_root.Loaning = _root.pos.data.Loaning;
_root.WinStreak = _root.pos.data.WinSteak;
_root.WinStreakMax = _root.pos.data.WinSteakMax;
_root.LoseStreak = _root.pos.data.LoseSteak;
_root.LoseStreakMax = _root.pos.data.LoseStreakMax;
_root.MostMoney = _root.pos.data.MostMoney;
_root.MoneyWon = _root.pos.data.MoneyWon;
_root.MoneyLost = _root.pos.data.MoneyLost;
_root.Cash = _root.pos.data.Cash;
_root.Rep = _root.pos.data.Rep;
_root.Rank = _root.pos.data.Rank;
_root.RepNeeded = _root.pos.data.RepNeeded;
_root.Track3bought = _root.pos.data.Track3bought;
_root.Track4bought = _root.pos.data.Track4bought;
_root.Track5bought = _root.pos.data.Track5bought;
_root.Wins = _root.pos.data.Wins;
_root.Loses = _root.pos.data.Loses;
_root.Playtime = _root.pos.data.Playtime;
_root.play();
}
}
Symbol 93 Button
on (release) {
_root.Racers = 2;
}
Symbol 94 Button
on (release) {
_root.Racers = 3;
}
Symbol 95 Button
on (release) {
_root.Racers = 4;
}
Symbol 96 Button
on (release) {
_root.Racers = 5;
}
Symbol 224 MovieClip [horse] Frame 1
stop();
Symbol 224 MovieClip [horse] Frame 2
stop();
Symbol 224 MovieClip [horse] Frame 3
stop();
Symbol 224 MovieClip [horse] Frame 4
stop();
Symbol 224 MovieClip [horse] Frame 5
stop();
Symbol 224 MovieClip [horse] Frame 6
stop();
Symbol 224 MovieClip [horse] Frame 7
stop();
Symbol 224 MovieClip [horse] Frame 8
stop();
Symbol 224 MovieClip [horse] Frame 9
stop();
Symbol 224 MovieClip [horse] Frame 10
stop();
Symbol 224 MovieClip [horse] Frame 12
stop();
Symbol 230 Button
on (release) {
if (_root.Racers == "Please Select") {
_root.HelpTxt = "Please Select number of horses racing first.";
} else if ((_root.BET > _root.CASH) or (_root.BET < 1)) {
} else {
if (_root.beton == "Please Select") {
_root.beton = 1;
}
if (_root.bet1 != "Please Select") {
_root.beton = _root.bet1;
} else {
_root.beton = 1;
}
_root.play();
}
}
on (rollOut) {
_root.HelpTxt = "";
}
Symbol 233 Button
on (release) {
_root.Track = 1;
_root.TrackName = "Plains";
}
on (rollOver) {
_root.HelpTxt = "Shortest Track";
}
on (rollOut) {
_root.HelpTxt = "";
}
Symbol 234 Button
on (release) {
_root.Track = 2;
_root.TrackName = "Ocean";
}
on (rollOver) {
_root.HelpTxt = "Longest Track";
}
on (rollOut) {
_root.HelpTxt = "";
}
Symbol 235 Button
on (release) {
if (_root.Track3bought == 1) {
_root.Track = 3;
_root.TrackName = "Desert";
} else {
_root.HelpTxt = "You have not purchased this track yet!";
}
}
on (rollOut) {
_root.HelpTxt = "";
}
on (rollOver) {
_root.HelpTxt = "2nd Shortest Track";
}
Symbol 236 Button
on (release) {
if (_root.Track4bought == 1) {
_root.Track = 4;
_root.TrackName = "Forest";
} else {
_root.HelpTxt = "You have not purchased this track yet!";
}
}
on (rollOut) {
_root.HelpTxt = "";
}
on (rollOver) {
_root.HelpTxt = "2nd Longest Track";
}
Symbol 237 Button
on (release) {
if (_root.Track5bought == 1) {
_root.Track = 5;
_root.TrackName = "Mountains";
} else {
_root.HelpTxt = "You have not purchased this track yet!";
}
}
on (rollOut) {
_root.HelpTxt = "";
}
on (rollOver) {
_root.HelpTxt = "Medium Length Track";
}
Symbol 244 Button
on (release) {
if (_root.Bet2 == 5) {
_root.Bet2 = "Please Select";
_root.Bet2name = "Please Select";
} else if (((_root.Racers > 4) and (_root.Bet3 != 5)) and (_root.Bet1 != 5)) {
_root.Bet2 = 5;
_root.Bet2name = _root.horsies[_root.horse5id][0];
}
}
on (rollOver) {
_root.beton = 5;
_root.betname = _root.horsies[_root.horse5id][0];
_root.betmaxspeed = _root.horsies[_root.horse5id][1];
_root.betminspeed = _root.horsies[_root.horse5id][2];
_root.betguts = _root.horsies[_root.horse5id][3];
}
Symbol 248 Button
on (release) {
if (_root.Bet2 == 4) {
_root.Bet2 = "Please Select";
_root.Bet2name = "Please Select";
} else if (((_root.Racers > 3) and (_root.Bet3 != 4)) and (_root.Bet1 != 4)) {
_root.Bet2 = 4;
_root.Bet2name = _root.horsies[_root.horse4id][0];
}
}
on (rollOver) {
_root.beton = 4;
_root.betname = _root.horsies[_root.horse4id][0];
_root.betmaxspeed = _root.horsies[_root.horse4id][1];
_root.betminspeed = _root.horsies[_root.horse4id][2];
_root.betguts = _root.horsies[_root.horse4id][3];
}
Symbol 251 Button
on (release) {
if (_root.Bet2 == 3) {
_root.Bet2 = "Please Select";
_root.Bet2name = "Please Select";
} else if (((_root.Racers > 2) and (_root.Bet3 != 3)) and (_root.Bet1 != 3)) {
_root.Bet2 = 3;
_root.Bet2name = _root.horsies[_root.horse3id][0];
}
}
on (rollOver) {
_root.beton = 3;
_root.betname = _root.horsies[_root.horse3id][0];
_root.betmaxspeed = _root.horsies[_root.horse3id][1];
_root.betminspeed = _root.horsies[_root.horse3id][2];
_root.betguts = _root.horsies[_root.horse3id][3];
}
Symbol 254 Button
on (release) {
if (_root.Bet2 == 1) {
_root.Bet2 = "Please Select";
_root.Bet2name = "Please Select";
} else if (((_root.Racers > 2) and (_root.Bet3 != 1)) and (_root.Bet1 != 1)) {
_root.Bet2 = 1;
_root.Bet2name = _root.horsies[_root.horse1id][0];
}
}
on (rollOver) {
_root.beton = 1;
_root.betname = _root.horsies[_root.horse1id][0];
_root.betmaxspeed = _root.horsies[_root.horse1id][1];
_root.betminspeed = _root.horsies[_root.horse1id][2];
_root.betguts = _root.horsies[_root.horse1id][3];
}
Symbol 257 Button
on (release) {
if (_root.Bet2 == 2) {
_root.Bet2 = "Please Select";
_root.Bet2name = "Please Select";
} else if (((_root.Racers > 2) and (_root.Bet3 != 2)) and (_root.Bet1 != 2)) {
_root.Bet2 = 2;
_root.Bet2name = _root.horsies[_root.horse2id][0];
}
}
on (rollOver) {
_root.beton = 2;
_root.betname = _root.horsies[_root.horse2id][0];
_root.betmaxspeed = _root.horsies[_root.horse2id][1];
_root.betminspeed = _root.horsies[_root.horse2id][2];
_root.betguts = _root.horsies[_root.horse2id][3];
}
Instance of Symbol 256 MovieClip in Symbol 260 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Bet2 == 1) {
this._alpha = 30;
} else {
this._alpha = 100;
}
}
Instance of Symbol 259 MovieClip in Symbol 260 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Bet2 == 2) {
this._alpha = 30;
} else {
this._alpha = 100;
}
}
Instance of Symbol 247 MovieClip in Symbol 261 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Racers < 5) {
this._x = -500;
} else {
this._x = 241.7;
}
if (_root.Bet2 == 5) {
this._alpha = 30;
} else {
this._alpha = 100;
}
}
Instance of Symbol 250 MovieClip in Symbol 261 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Racers < 4) {
this._x = -500;
} else {
this._x = 222.7;
}
if (_root.Bet2 == 4) {
this._alpha = 30;
} else {
this._alpha = 100;
}
}
Instance of Symbol 253 MovieClip in Symbol 261 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Racers < 3) {
this._x = -500;
} else {
this._x = 203.7;
}
if (_root.Bet2 == 3) {
this._alpha = 30;
} else {
this._alpha = 100;
}
}
Symbol 265 Button
on (release) {
if (_root.Bet3 == 1) {
_root.Bet3 = "Please Select";
_root.Bet3name = "Please Select";
} else if (((_root.Racers > 3) and (_root.Bet1 != 1)) and (_root.Bet2 != 1)) {
_root.Bet3 = 1;
_root.Bet3name = _root.horsies[_root.horse1id][0];
}
}
on (rollOver) {
_root.beton = 1;
_root.betname = _root.horsies[_root.horse1id][0];
_root.betmaxspeed = _root.horsies[_root.horse1id][1];
_root.betminspeed = _root.horsies[_root.horse1id][2];
_root.betguts = _root.horsies[_root.horse1id][3];
}
Symbol 267 Button
on (release) {
if (_root.Bet3 == 2) {
_root.Bet3 = "Please Select";
_root.Bet3name = "Please Select";
} else if (((_root.Racers > 3) and (_root.Bet1 != 2)) and (_root.Bet2 != 2)) {
_root.Bet3 = 2;
_root.Bet3name = _root.horsies[_root.horse2id][0];
}
}
on (rollOver) {
_root.beton = 2;
_root.betname = _root.horsies[_root.horse2id][0];
_root.betmaxspeed = _root.horsies[_root.horse2id][1];
_root.betminspeed = _root.horsies[_root.horse2id][2];
_root.betguts = _root.horsies[_root.horse2id][3];
}
Instance of Symbol 266 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Bet3 == 1) {
this._alpha = 30;
} else {
this._alpha = 100;
}
}
Instance of Symbol 268 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Bet3 == 2) {
this._alpha = 30;
} else {
this._alpha = 100;
}
}
Symbol 270 Button
on (release) {
if (_root.Bet3 == 3) {
_root.Bet3 = "Please Select";
_root.Bet3name = "Please Select";
} else if (((_root.Racers > 3) and (_root.Bet1 != 3)) and (_root.Bet2 != 3)) {
_root.Bet3 = 3;
_root.Bet3name = _root.horsies[_root.horse3id][0];
}
}
on (rollOver) {
_root.beton = 3;
_root.betname = _root.horsies[_root.horse3id][0];
_root.betmaxspeed = _root.horsies[_root.horse3id][1];
_root.betminspeed = _root.horsies[_root.horse3id][2];
_root.betguts = _root.horsies[_root.horse3id][3];
}
Symbol 272 Button
on (release) {
if (_root.Bet3 == 4) {
_root.Bet3 = "Please Select";
_root.Bet3name = "Please Select";
} else if (((_root.Racers > 3) and (_root.Bet1 != 4)) and (_root.Bet2 != 4)) {
_root.Bet3 = 4;
_root.Bet3name = _root.horsies[_root.horse4id][0];
}
}
on (rollOver) {
_root.beton = 4;
_root.betname = _root.horsies[_root.horse4id][0];
_root.betmaxspeed = _root.horsies[_root.horse4id][1];
_root.betminspeed = _root.horsies[_root.horse4id][2];
_root.betguts = _root.horsies[_root.horse4id][3];
}
Symbol 274 Button
on (release) {
if (_root.Bet3 == 5) {
_root.Bet3 = "Please Select";
_root.Bet3name = "Please Select";
} else if (((_root.Racers > 4) and (_root.Bet1 != 5)) and (_root.Bet2 != 5)) {
_root.Bet3 = 5;
_root.Bet3name = _root.horsies[_root.horse5id][0];
}
}
on (rollOver) {
_root.beton = 5;
_root.betname = _root.horsies[_root.horse5id][0];
_root.betmaxspeed = _root.horsies[_root.horse5id][1];
_root.betminspeed = _root.horsies[_root.horse5id][2];
_root.betguts = _root.horsies[_root.horse5id][3];
}
Instance of Symbol 271 MovieClip in Symbol 276 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Racers < 3) {
this._x = -500;
} else {
this._x = 203.7;
}
if (_root.Bet3 == 3) {
this._alpha = 30;
} else {
this._alpha = 100;
}
}
Instance of Symbol 273 MovieClip in Symbol 276 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Racers < 4) {
this._x = -500;
} else {
this._x = 222.7;
}
if (_root.Bet3 == 4) {
this._alpha = 30;
} else {
this._alpha = 100;
}
}
Instance of Symbol 275 MovieClip in Symbol 276 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Racers < 5) {
this._x = -500;
} else {
this._x = 241.7;
}
if (_root.Bet3 == 5) {
this._alpha = 30;
} else {
this._alpha = 100;
}
}
Symbol 280 Button
on (release) {
if (_root.Bet1 == 1) {
_root.Bet1 = "Please Select";
_root.Bet1name = "Please Select";
} else if (((_root.Racers > 1) and (_root.Bet3 != 1)) and (_root.Bet2 != 1)) {
_root.Bet1 = 1;
_root.Bet1name = _root.horsies[_root.horse1id][0];
}
}
on (rollOver) {
_root.beton = 1;
_root.betname = _root.horsies[_root.horse1id][0];
_root.betmaxspeed = _root.horsies[_root.horse1id][1];
_root.betminspeed = _root.horsies[_root.horse1id][2];
_root.betguts = _root.horsies[_root.horse1id][3];
}
Symbol 282 Button
on (release) {
if (_root.Bet1 == 2) {
_root.Bet1 = "Please Select";
_root.Bet1name = "Please Select";
} else if (((_root.Racers > 1) and (_root.Bet3 != 2)) and (_root.Bet2 != 2)) {
_root.Bet1 = 2;
_root.Bet1name = _root.horsies[_root.horse2id][0];
}
}
on (rollOver) {
_root.beton = 2;
_root.betname = _root.horsies[_root.horse2id][0];
_root.betmaxspeed = _root.horsies[_root.horse2id][1];
_root.betminspeed = _root.horsies[_root.horse2id][2];
_root.betguts = _root.horsies[_root.horse2id][3];
}
Instance of Symbol 281 MovieClip in Symbol 284 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Bet1 == 1) {
this._alpha = 30;
} else {
this._alpha = 100;
}
}
Instance of Symbol 283 MovieClip in Symbol 284 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Bet1 == 2) {
this._alpha = 30;
} else {
this._alpha = 100;
}
}
Symbol 285 Button
on (release) {
if (_root.Bet1 == 3) {
_root.Bet1 = "Please Select";
_root.Bet1name = "Please Select";
} else if (((_root.Racers > 2) and (_root.Bet3 != 3)) and (_root.Bet2 != 3)) {
_root.Bet1 = 3;
_root.Bet1name = _root.horsies[_root.horse3id][0];
}
}
on (rollOver) {
_root.beton = 3;
_root.betname = _root.horsies[_root.horse3id][0];
_root.betmaxspeed = _root.horsies[_root.horse3id][1];
_root.betminspeed = _root.horsies[_root.horse3id][2];
_root.betguts = _root.horsies[_root.horse3id][3];
}
Symbol 287 Button
on (release) {
if (_root.Bet1 == 4) {
_root.Bet1 = "Please Select";
_root.Bet1name = "Please Select";
} else if (((_root.Racers > 3) and (_root.Bet3 != 4)) and (_root.Bet2 != 4)) {
_root.Bet1 = 4;
_root.Bet1name = _root.horsies[_root.horse4id][0];
}
}
on (rollOver) {
_root.beton = 4;
_root.betname = _root.horsies[_root.horse4id][0];
_root.betmaxspeed = _root.horsies[_root.horse4id][1];
_root.betminspeed = _root.horsies[_root.horse4id][2];
_root.betguts = _root.horsies[_root.horse4id][3];
}
Symbol 289 Button
on (release) {
if (_root.Bet1 == 5) {
_root.Bet1 = "Please Select";
_root.Bet1name = "Please Select";
} else if (((_root.Racers > 4) and (_root.Bet3 != 5)) and (_root.Bet2 != 5)) {
_root.Bet1 = 5;
_root.Bet1name = _root.horsies[_root.horse5id][0];
}
}
on (rollOver) {
_root.beton = 5;
_root.betname = _root.horsies[_root.horse5id][0];
_root.betmaxspeed = _root.horsies[_root.horse5id][1];
_root.betminspeed = _root.horsies[_root.horse5id][2];
_root.betguts = _root.horsies[_root.horse5id][3];
}
Instance of Symbol 261 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Racers < 3) {
this._x = -500;
} else {
this._x = 0;
}
}
Instance of Symbol 276 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Racers < 4) {
this._x = -500;
} else {
this._x = 0;
}
}
Instance of Symbol 286 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Racers < 3) {
this._x = -500;
} else {
this._x = 203.7;
}
if (_root.Bet1 == 3) {
this._alpha = 30;
} else {
this._alpha = 100;
}
}
Instance of Symbol 288 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Racers < 4) {
this._x = -500;
} else {
this._x = 222.7;
}
if (_root.Bet1 == 4) {
this._alpha = 30;
} else {
this._alpha = 100;
}
}
Instance of Symbol 290 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Racers < 5) {
this._x = -500;
} else {
this._x = 241.7;
}
if (_root.Bet1 == 5) {
this._alpha = 30;
} else {
this._alpha = 100;
}
}
Symbol 295 Button
on (release) {
_root.pos = sharedobject.getLocal("SAVERACINGDATA");
_root.pos.data.Loaned = _root.Loanded;
_root.pos.data.Loaning = _root.Loaning;
_root.pos.data.WinSteak = _root.WinStreak;
_root.pos.data.WinSteakMax = _root.WinStreakMax;
_root.pos.data.LoseSteak = _root.LoseStreak;
_root.pos.data.LoseStreakMax = _root.LoseStreakMax;
_root.pos.data.MostMoney = _root.MostMoney;
_root.pos.data.MoneyWon = _root.MoneyWon;
_root.pos.data.MoneyLost = _root.MoneyLost;
_root.pos.data.Cash = _root.Cash;
_root.pos.data.Rep = _root.Rep;
_root.pos.data.Rank = _root.Rank;
_root.pos.data.RepNeeded = _root.RepNeeded;
_root.pos.data.Track3bought = _root.Track3bought;
_root.pos.data.Track4bought = _root.Track4bought;
_root.pos.data.Track5bought = _root.Track5bought;
_root.pos.data.Wins = _root.Wins;
_root.pos.data.Loses = _root.Loses;
_root.pos.data.Playtime = _root.Playtime;
_root.attachMovie("SAVED", "SAVED", 9999);
}
Symbol 299 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 303 Button
on (release) {
_root.gotoAndStop(7);
}
Symbol 307 Button
on (release) {
_root.gotoAndStop(9);
}
Symbol 311 Button
on (release) {
_root.gotoAndStop(8);
}
Symbol 315 Button
on (release) {
_root.gotoAndStop(10);
}
Symbol 319 Button
on (release) {
_root.gotoAndStop(11);
}
Symbol 334 MovieClip [Level] Frame 1
stop();
Symbol 334 MovieClip [Level] Frame 2
stop();
Symbol 334 MovieClip [Level] Frame 3
stop();
Symbol 334 MovieClip [Level] Frame 4
stop();
Symbol 334 MovieClip [Level] Frame 5
stop();
Symbol 343 Button
on (release) {
if (_root.beton > 1) {
_root.beton = _root.beton - 1;
_root.bettype = "custom";
} else {
_root.beton = _root.Racers;
_root.bettype = "custom";
}
}
Symbol 348 Button
on (release) {
if (_root.beton < _root.Racers) {
_root.beton = _root.beton + 1;
_root.bettype = "custom";
} else {
_root.beton = 1;
_root.bettype = "custom";
}
}
Symbol 353 Button
on (release) {
_root.bettype = "leader";
}
Symbol 359 Button
on (release) {
if (_root.beton > 1) {
_root.beton = _root.beton - 1;
_root.bettype = "custom";
} else {
_root.beton = _root.Racers;
_root.bettype = "custom";
}
}
Symbol 360 Button
on (release) {
if (_root.beton < _root.Racers) {
_root.beton = _root.beton + 1;
_root.bettype = "custom";
} else {
_root.beton = 1;
_root.bettype = "custom";
}
}
Symbol 364 Button
on (release) {
_root.beton = 1;
_root.bettype = "custom";
}
Symbol 368 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 2
stop();
Symbol 368 MovieClip Frame 3
stop();
Symbol 368 MovieClip Frame 4
stop();
Symbol 369 Button
on (release) {
_root.beton = 2;
_root.bettype = "custom";
}
Symbol 370 MovieClip Frame 1
stop();
Symbol 370 MovieClip Frame 2
stop();
Symbol 370 MovieClip Frame 3
stop();
Symbol 370 MovieClip Frame 4
stop();
Symbol 371 Button
on (release) {
_root.beton = 3;
_root.bettype = "custom";
}
Symbol 372 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 2
stop();
Symbol 372 MovieClip Frame 3
stop();
Symbol 372 MovieClip Frame 4
stop();
Symbol 373 Button
on (release) {
_root.beton = 4;
_root.bettype = "custom";
}
Symbol 374 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 2
stop();
Symbol 374 MovieClip Frame 3
stop();
Symbol 374 MovieClip Frame 4
stop();
Symbol 375 Button
on (release) {
_root.beton = 5;
_root.bettype = "custom";
}
Symbol 376 MovieClip Frame 1
stop();
Symbol 376 MovieClip Frame 2
stop();
Symbol 376 MovieClip Frame 3
stop();
Symbol 376 MovieClip Frame 4
stop();
Instance of Symbol 383 MovieClip in Symbol 394 MovieClip [arrows] Frame 1
onClipEvent (enterFrame) {
numbar = 1;
if (_root.cheer == numbar) {
this.gotoAndStop(1);
}
if (_root.boo == numbar) {
this.gotoAndStop(2);
}
if ((_root.cheer != numbar) and (_root.boo != numbar)) {
this.gotoAndStop(3);
}
}
Instance of Symbol 386 MovieClip in Symbol 394 MovieClip [arrows] Frame 1
onClipEvent (enterFrame) {
numbar = 2;
if (_root.cheer == numbar) {
this.gotoAndStop(1);
}
if (_root.boo == numbar) {
this.gotoAndStop(2);
}
if ((_root.cheer != numbar) and (_root.boo != numbar)) {
this.gotoAndStop(3);
}
}
Instance of Symbol 389 MovieClip in Symbol 394 MovieClip [arrows] Frame 1
onClipEvent (enterFrame) {
numbar = 3;
if (_root.cheer == numbar) {
this.gotoAndStop(1);
}
if (_root.boo == numbar) {
this.gotoAndStop(2);
}
if ((_root.cheer != numbar) and (_root.boo != numbar)) {
this.gotoAndStop(3);
}
}
Instance of Symbol 392 MovieClip in Symbol 394 MovieClip [arrows] Frame 1
onClipEvent (enterFrame) {
numbar = 4;
if (_root.cheer == numbar) {
this.gotoAndStop(1);
}
if (_root.boo == numbar) {
this.gotoAndStop(2);
}
if ((_root.cheer != numbar) and (_root.boo != numbar)) {
this.gotoAndStop(3);
}
}
Symbol 507 Button
on (release) {
_root.viewon = 1;
vhorse = 0;
_root.viewname = _root.horsies[vhorse][0];
_root.viewmaxspeed = _root.horsies[vhorse][1];
_root.viewminspeed = _root.horsies[vhorse][2];
_root.viewguts = _root.horsies[vhorse][3];
}
Symbol 508 Button
on (release) {
_root.viewon = 2;
vhorse = 1;
_root.viewname = _root.horsies[vhorse][0];
_root.viewmaxspeed = _root.horsies[vhorse][1];
_root.viewminspeed = _root.horsies[vhorse][2];
_root.viewguts = _root.horsies[vhorse][3];
}
Symbol 509 Button
on (release) {
_root.viewon = 3;
vhorse = 2;
_root.viewname = _root.horsies[vhorse][0];
_root.viewmaxspeed = _root.horsies[vhorse][1];
_root.viewminspeed = _root.horsies[vhorse][2];
_root.viewguts = _root.horsies[vhorse][3];
}
Symbol 510 Button
on (release) {
_root.viewon = 4;
vhorse = 3;
_root.viewname = _root.horsies[vhorse][0];
_root.viewmaxspeed = _root.horsies[vhorse][1];
_root.viewminspeed = _root.horsies[vhorse][2];
_root.viewguts = _root.horsies[vhorse][3];
}
Symbol 511 Button
on (release) {
_root.viewon = 5;
vhorse = 4;
_root.viewname = _root.horsies[vhorse][0];
_root.viewmaxspeed = _root.horsies[vhorse][1];
_root.viewminspeed = _root.horsies[vhorse][2];
_root.viewguts = _root.horsies[vhorse][3];
}
Symbol 512 Button
on (release) {
_root.viewon = 6;
vhorse = 5;
_root.viewname = _root.horsies[vhorse][0];
_root.viewmaxspeed = _root.horsies[vhorse][1];
_root.viewminspeed = _root.horsies[vhorse][2];
_root.viewguts = _root.horsies[vhorse][3];
}
Symbol 513 Button
on (release) {
_root.viewon = 7;
vhorse = 6;
_root.viewname = _root.horsies[vhorse][0];
_root.viewmaxspeed = _root.horsies[vhorse][1];
_root.viewminspeed = _root.horsies[vhorse][2];
_root.viewguts = _root.horsies[vhorse][3];
}
Symbol 516 Button
on (release) {
_root.viewon = 8;
vhorse = 7;
_root.viewname = _root.horsies[vhorse][0];
_root.viewmaxspeed = _root.horsies[vhorse][1];
_root.viewminspeed = _root.horsies[vhorse][2];
_root.viewguts = _root.horsies[vhorse][3];
}
Symbol 519 Button
on (release) {
_root.viewon = 9;
vhorse = 8;
_root.viewname = _root.horsies[vhorse][0];
_root.viewmaxspeed = _root.horsies[vhorse][1];
_root.viewminspeed = _root.horsies[vhorse][2];
_root.viewguts = _root.horsies[vhorse][3];
}
Symbol 522 Button
on (release) {
_root.viewon = 10;
vhorse = 9;
_root.viewname = _root.horsies[vhorse][0];
_root.viewmaxspeed = _root.horsies[vhorse][1];
_root.viewminspeed = _root.horsies[vhorse][2];
_root.viewguts = _root.horsies[vhorse][3];
}
Symbol 525 Button
on (release) {
_root.viewon = 11;
vhorse = 10;
_root.viewname = _root.horsies[vhorse][0];
_root.viewmaxspeed = _root.horsies[vhorse][1];
_root.viewminspeed = _root.horsies[vhorse][2];
_root.viewguts = _root.horsies[vhorse][3];
}
Symbol 537 Button
on (release) {
if (_root.CHEAT == "idontwanttobepoor") {
_root.Cash = _root.Cash + 5000;
_root.attachMovie("CHEATER", "CHEATER", 12999);
}
if (_root.CHEAT == "almostfamous") {
_root.Rank = 5;
_root.attachMovie("CHEATER", "CHEATER", 12999);
}
}
Instance of Symbol 539 MovieClip in Symbol 541 MovieClip Frame 1
on (release) {
if ((_root.Track3bought == 0) and (_root.Cash > 250)) {
_root.Track3bought = 1;
_root.Cash = _root.Cash - 250;
}
}
Instance of Symbol 539 MovieClip in Symbol 543 MovieClip Frame 1
on (release) {
if ((_root.Track4bought == 0) and (_root.Cash > 750)) {
_root.Track4bought = 1;
_root.Cash = _root.Cash - 750;
}
}
Instance of Symbol 539 MovieClip in Symbol 550 MovieClip Frame 1
on (release) {
if ((_root.Track5bought == 0) and (_root.Cash > 1500)) {
_root.Track5bought = 1;
_root.Cash = _root.Cash - 1500;
}
}