Frame 3
_quality = "BEST";
speedSet = false;
Frame 5
if (_framesloaded < _totalframes) {
gotoAndPlay(_currentframe - 1);
} else {
gotoAndStop ("preLoadItems");
}
Frame 11
gotoAndPlay ("testSpeed");
Frame 23
function setQuality() {
if (qualityLevel == 4) {
mcLevel.mcPassive.gotoAndStop(1);
_quality = "BEST";
} else if (qualityLevel == 3) {
mcLevel.mcPassive.gotoAndStop(2);
_quality = "BEST";
} else if (qualityLevel == 2) {
mcLevel.mcPassive.gotoAndStop(2);
_quality = "LOW";
} else if (qualityLevel == 1) {
mcLevel.mcPassive.gotoAndStop(2);
_quality = "LOW";
} else if (qualityLevel == 0) {
mcLevel.mcPassive.gotoAndStop(3);
_quality = "LOW";
}
}
Instance of Symbol 303 MovieClip "mcFPS" in Frame 24
onClipEvent (enterFrame) {
if (!done) {
framesCounter++;
timeOut++;
if (oneSecond < getTimer()) {
oneSecond = getTimer() + 1000;
txtFPS = "n/a";
averageFPS = framesCounter;
framesCounter = 0;
}
if (timeOut == 93) {
if (averageFPS >= 26) {
_parent.qualityLevel = 4;
} else if ((averageFPS < 26) && (23 < averageFPS)) {
_parent.qualityLevel = 3;
} else if ((23 >= averageFPS) && (20 < averageFPS)) {
_parent.qualityLevel = 2;
} else if ((20 >= averageFPS) && (16 < averageFPS)) {
_parent.qualityLevel = 1;
} else if (16 >= averageFPS) {
_parent.qualityLevel = 0;
}
txtFPS = averageFPS;
done = true;
trace("Average FPS: " + averageFPS);
trace("Chosen quality level: " + _parent.qualityLevel);
}
}
}
Frame 25
if (!mcFPS.done) {
gotoAndPlay(_currentframe - 1);
} else {
gotoAndStop ("sounds");
}
Frame 38
function fadeOut(snd) {
snd.setVolume(snd.getVolume() - 8);
if (0 >= snd.getVolume()) {
snd.setVolume(0);
snd.stop();
fadeOutReady = true;
clearInterval(ivFadeOut);
}
}
function fadeIn(snd) {
snd.setVolume(snd.getVolume() + 8);
if (snd.getVolume() >= 100) {
snd.setVolume(100);
fadeInReady = true;
clearInterval(ivFadeIn);
}
}
function crossFade(sndIn, sndOut) {
if (fadeInReady) {
sndIn.start(0, 9999);
sndIn.setVolume(0);
tunePlaying = sndIn;
fadeInReady = false;
ivFadeIn = setInterval(fadeIn, 100, sndIn);
}
if (fadeOutReady) {
fadeOutReady = false;
ivFadeOut = setInterval(fadeOut, 100, sndOut);
}
}
function soundOnOff() {
if (sndGlobal.getVolume() == 100) {
mcSoundOnOff.gotoAndStop(2);
clearInterval(ivFadeIn);
ivFadeOut = setInterval(fadeOut, 100, sndGlobal);
} else if (sndGlobal.getVolume() == 0) {
mcSoundOnOff.gotoAndStop(1);
clearInterval(ivFadeOut);
ivFadeIn = setInterval(fadeIn, 100, sndGlobal);
}
}
function playEngineSound(state) {
if ((state == "idle") && (!idling)) {
this[mcHolder.mcChosenShip.engineGo].stop();
this[mcHolder.mcChosenShip.engineLoop].stop();
this[mcHolder.mcChosenShip.engineIdle].start(0, 9999);
this[mcHolder.mcChosenShip.engineIdle].setVolume(mcHolder.mcChosenShip.engineVolume);
idling = true;
running = false;
looping = false;
} else if (state == "go") {
if (!running) {
this[mcHolder.mcChosenShip.engineIdle].stop();
this[mcHolder.mcChosenShip.engineLoop].stop();
var startSound = ((mcHolder.mcChosenShip.speed * 100) / 1000);
if (startSound >= this[mcHolder.mcChosenShip.engineGo].duration) {
startSound = this[mcHolder.mcChosenShip.engineGo].duration - 50;
}
trace(startSound);
this[mcHolder.mcChosenShip.engineGo].start(startSound, 0);
this[mcHolder.mcChosenShip.engineGo].setVolume(mcHolder.mcChosenShip.engineVolume);
running = true;
idling = false;
}
this[mcHolder.mcChosenShip.engineGo].onSoundComplete = function () {
_root[mcHolder.mcChosenShip.engineLoop].start(0, 9999);
_root[mcHolder.mcChosenShip.engineLoop].setVolume(_root.mcHolder.mcChosenShip.engineVolume);
};
}
}
mcSounds.attachMovie("mcEmpty", "mcNinja", 1);
sndNinja = new Sound(mcSounds.mcNinja);
sndNinja.attachSound("sndNinja");
sndNinja.setVolume(0);
mcSounds.attachMovie("mcEmpty", "mcMonkey", 2);
sndMonkey = new Sound(mcSounds.mcMonkey);
sndMonkey.attachSound("sndMonkey");
sndMonkey.setVolume(0);
mcSounds.attachMovie("mcEmpty", "mcZed", 3);
sndZed = new Sound(mcSounds.mcZed);
sndZed.attachSound("sndZed");
sndZed.setVolume(0);
mcSounds.attachMovie("mcEmpty", "mcIntro", 4);
sndIntro = new Sound(mcSounds.mcIntro);
sndIntro.attachSound("sndIntro");
sndIntro.setVolume(0);
mcSounds.attachMovie("mcEmpty", "mcNinjaGo", 5);
sndNinjaGo = new Sound(mcSounds.mcNinjaGo);
sndNinjaGo.attachSound("sndNinjaGo");
mcSounds.attachMovie("mcEmpty", "mcNinjaLoop", 6);
sndNinjaLoop = new Sound(mcSounds.mcNinjaLoop);
sndNinjaLoop.attachSound("sndNinjaLoop");
mcSounds.attachMovie("mcEmpty", "mcNinjaIdle", 7);
sndNinjaIdle = new Sound(mcSounds.mcNinjaIdle);
sndNinjaIdle.attachSound("sndNinjaIdle");
mcSounds.attachMovie("mcEmpty", "mcMonkeyGo", 8);
sndMonkeyGo = new Sound(mcSounds.mcMonkeyGo);
sndMonkeyGo.attachSound("sndMonkeyGo");
mcSounds.attachMovie("mcEmpty", "mcMonkeyIdle", 9);
sndMonkeyIdle = new Sound(mcSounds.mcMonkeyIdle);
sndMonkeyIdle.attachSound("sndMonkeyIdle");
mcSounds.attachMovie("mcEmpty", "mcZedGo", 10);
sndZedGo = new Sound(mcSounds.mcZedGo);
sndZedGo.attachSound("sndZedGo");
mcSounds.attachMovie("mcEmpty", "mcZedLoop", 11);
sndZedLoop = new Sound(mcSounds.mcZedLoop);
sndZedLoop.attachSound("sndZedLoop");
mcSounds.attachMovie("mcEmpty", "mcZedIdle", 12);
sndZedIdle = new Sound(mcSounds.mcZedIdle);
sndZedIdle.attachSound("sndZedIdle");
mcSounds.attachMovie("mcEmpty", "mcBounce", 13);
sndBounce = new Sound(mcSounds.mcBounce);
sndBounce.attachSound("sndBounce");
sndBounce.setVolume(70);
mcSounds.attachMovie("mcEmpty", "mcBoost", 14);
sndBoost = new Sound(mcSounds.mcBoost);
sndBoost.attachSound("sndBoost");
sndBoost.setVolume(60);
mcSounds.attachMovie("mcEmpty", "mcCheckpoint", 15);
sndCheckpoint = new Sound(mcSounds.mcCheckpoint);
sndCheckpoint.attachSound("sndCheckpoint");
sndCheckpoint.setVolume(30);
mcSounds.attachMovie("mcEmpty", "mcWater", 16);
sndWater = new Sound(mcSounds.mcWater);
sndWater.attachSound("sndWater");
sndWater.setVolume(50);
mcSounds.attachMovie("mcEmpty", "mcFinalLap", 18);
sndFinalLap = new Sound(mcSounds.mcFinalLap);
sndFinalLap.attachSound("sndFinalLap");
sndFinalLap.setVolume(80);
mcSounds.attachMovie("mcEmpty", "mcRaceFinished", 19);
sndRaceFinished = new Sound(mcSounds.mcRaceFinished);
sndRaceFinished.attachSound("sndRaceFinished");
sndRaceFinished.setVolume(70);
sndGlobal = new Sound();
sndGlobal.setVolume(100);
fadeInReady = true;
fadeOutReady = true;
mcTransitions.playAnim("mainMenu");
stop();
Frame 58
gotoAndStop ("mainMenu");
Frame 59
_quality = "BEST";
clearInterval(ivCheckLoop);
savedCoordinatesCounter = 0;
activeTimeHundreds = 0;
if ((((sndIntro.getVolume() == 0) or (0 < sndZed.getVolume())) or (0 < sndMonkey.getVolume())) or (0 < sndNinja.getVolume())) {
crossFade(sndIntro, tunePlaying);
}
var so = SharedObject.getLocal("MiniclipRally");
if (so.data.zed == undefined) {
so.data.zed = new Object();
}
if (so.data.zed.bestLap == undefined) {
so.data.zed.bestLap = 60000;
so.data.zed.bestLapCar = "mcZed";
trace("Reset so.data.zed.bestLap");
}
if (so.data.zed.bestTime == undefined) {
so.data.zed.bestTime = 60000;
so.data.zed.bestTimeCar = "mcZed";
trace("Reset so.data.zed.bestTime");
}
if (so.data.monkey == undefined) {
so.data.monkey = new Object();
}
if (so.data.monkey.bestLap == undefined) {
so.data.monkey.bestLap = 60000;
so.data.monkey.bestLapCar = "mcMonkey";
trace("Reset so.data.monkey.bestLap");
}
if (so.data.monkey.bestTime == undefined) {
so.data.monkey.bestTime = 60000;
so.data.monkey.bestTimeCar = "mcMonkey";
trace("Reset so.data.monkey.bestTime");
}
if (so.data.ninja == undefined) {
so.data.ninja = new Object();
}
if (so.data.ninja.bestLap == undefined) {
so.data.ninja.bestLap = 60000;
so.data.ninja.bestLapCar = "mcNinja";
trace("Reset so.data.ninja.bestLap");
}
if (so.data.ninja.bestTime == undefined) {
so.data.ninja.bestTime = 60000;
so.data.ninja.bestTimeCar = "mcNinja";
trace("Reset so.data.ninja.bestTime");
}
stop();
Frame 73
function convertMillisecondsToTime(ms) {
var intHundreds = 0;
var intSeconds = 0;
var intMinutes = 0;
var strHundreds = "";
var strSeconds = "";
var strMinutes = "";
intTimeHundreds = int(ms);
strTimeHundreds = new String(intTimeHundreds);
strHundreds = strTimeHundreds.slice(strTimeHundreds.length - 2, strTimeHundreds.length);
if (strHundreds.length < 2) {
strHundreds = "0" + strHundreds;
}
intSeconds = int(intTimeHundreds / 100);
if (59 < intSeconds) {
intMinutes = int(intSeconds / 60);
intSeconds = intSeconds - (intMinutes * 60);
}
strSeconds = new String(intSeconds);
if (strSeconds.length < 2) {
strSeconds = "0" + strSeconds;
}
strMinutes = new String(intMinutes);
if (strMinutes.length < 2) {
strMinutes = "0" + strMinutes;
}
var strTime = ((((strMinutes + ".") + strSeconds) + ".") + strHundreds);
return(strTime);
}
var so = SharedObject.getLocal("MiniclipRally");
txtZedTime = convertMillisecondsToTime(so.data.zed.bestTime);
txtZedLap = convertMillisecondsToTime(so.data.zed.bestLap);
txtMonkeyTime = convertMillisecondsToTime(so.data.monkey.bestTime);
txtMonkeyLap = convertMillisecondsToTime(so.data.monkey.bestLap);
txtNinjaTime = convertMillisecondsToTime(so.data.ninja.bestTime);
txtNinjaLap = convertMillisecondsToTime(so.data.ninja.bestLap);
mcZedTimeCar.attachMovie(so.data.zed.bestTimeCar, "mcZedTimeCar", 1);
mcZedTimeCar._xscale = 7;
mcZedTimeCar._yscale = 7;
mcZedTimeCar._rotation = 45;
mcZedLapCar.attachMovie(so.data.zed.bestLapCar, "mcZedLapCar", 1);
mcZedLapCar._xscale = 7;
mcZedLapCar._yscale = 7;
mcZedLapCar._rotation = 45;
mcMonkeyTimeCar.attachMovie(so.data.monkey.bestTimeCar, "mcMonkeyTimeCar", 1);
mcMonkeyTimeCar._xscale = 7;
mcMonkeyTimeCar._yscale = 7;
mcMonkeyTimeCar._rotation = 45;
mcMonkeyLapCar.attachMovie(so.data.monkey.bestLapCar, "mcMonkeyLapCar", 1);
mcMonkeyLapCar._xscale = 7;
mcMonkeyLapCar._yscale = 7;
mcMonkeyLapCar._rotation = 45;
mcNinjaTimeCar.attachMovie(so.data.ninja.bestTimeCar, "mcNinjaTimeCar", 1);
mcNinjaTimeCar._xscale = 7;
mcNinjaTimeCar._yscale = 7;
mcNinjaTimeCar._rotation = 45;
mcNinjaLapCar.attachMovie(so.data.ninja.bestLapCar, "mcNinjaLapCar", 1);
mcNinjaLapCar._xscale = 7;
mcNinjaLapCar._yscale = 7;
mcNinjaLapCar._rotation = 45;
stop();
Frame 86
stop();
Frame 95
stop();
Frame 107
function resetVariablesCars() {
carSize = 14;
carPositionX = 200;
carPositionY = 200;
arrSavedDataX = new Array();
arrSavedDataY = new Array();
arrSavedDataRotation = new Array();
arrBestLapX = new Array();
arrBestLapY = new Array();
arrBestLapRot = new Array();
savedCoordinatesCounter = 0;
loadCoordinatesCounter = 0;
ghostCarAlreadyVisible = false;
ghostCarActive = false;
}
function showOrHideBridge(car, showOrHide) {
if (showOrHide == "show") {
if (car.bridgeIsHidden) {
mcHolder.mcTopLayer.swapDepths(3);
car.bridgeIsHidden = false;
}
} else if (showOrHide == "hide") {
if (!car.bridgeIsHidden) {
mcHolder.mcTopLayer.swapDepths(1);
car.bridgeIsHidden = true;
}
}
}
function makePositive(numberToConvert, boolean) {
if (boolean) {
if (0 >= numberToConvert) {
numberToConvert = -numberToConvert;
}
} else if (numberToConvert >= 0) {
numberToConvert = -numberToConvert;
}
return(numberToConvert);
}
function reactOnTerrain(car) {
car.hitTestX = car._x - car.MoveX;
car.hitTestY = car._y - car.MoveY;
if (mcLevel.road.hitTest(car.hitTestX, car.hitTestY, true)) {
car.groundFriction = mcLevel.road.Friction;
car.groundGrip = mcLevel.road.Grip;
} else if (10 < car.Speed) {
car.groundFriction = 0.88;
}
if (mcLevel.mcObstacles.hitTest(car.hitTestX, car.hitTestY, true)) {
var i = 0;
while (mcObjectNumber >= i) {
if (mcLevel.mcObstacles["mcObject" + i].hitTest(car.hitTestX, car.hitTestY, true)) {
mcLevel.mcObstacles["mcObject" + i].actions(car, mcLevel.mcObstacles["mcObject" + i]);
break;
}
i++;
}
} else {
restoreCarProperties(car);
if (finishLine.onFinishLine) {
finishLine.onFinishLine = false;
}
}
}
function controlCar(car) {
if (Key.isDown(38) && (!Key.isDown(40))) {
car.Reversing = false;
if (car.MaxSpeed >= makePositive(car.Speed, true)) {
car.Speed = car.Speed + car.Accelleration;
}
car.showControls("forward");
playEngineSound("go");
}
if (Key.isDown(40)) {
if ((car.Speed < 1) && (car.switchingToReverse < getTimer())) {
car.Reversing = true;
if (car.Speed >= ((-car.MaxSpeed) / 3)) {
car.Speed = car.Speed - car.Reverse;
} else {
car.Speed = (-car.MaxSpeed) / 3;
}
} else if (car.Speed >= 1) {
car.switchingToReverse = getTimer() + 200;
car.Reversing = false;
car.Speed = car.Speed - car.Breaks;
} else {
car.Speed = 0;
}
}
car.Movement = (makePositive(car.MoveX, true) + makePositive(car.MoveY, true)) / 2;
if (0.1 < car.Movement) {
if (Key.isDown(37)) {
if (!car.Reversing) {
car._rotation = car._rotation - car.Steering;
} else {
car._rotation = car._rotation - car.Steering;
}
car.showControls("left");
} else {
car.showControls("leftOff");
}
if (Key.isDown(39)) {
if (!car.Reversing) {
car._rotation = car._rotation + car.Steering;
} else {
car._rotation = car._rotation + car.Steering;
}
car.showControls("right");
} else {
car.showControls("rightOff");
}
}
if ((!Key.isDown(38)) && (!Key.isDown(40))) {
if (car.Speed != 0) {
if (car.Motorbreak < car.Speed) {
car.Speed = car.Speed - car.Motorbreak;
} else if (car.Speed < (-car.Motorbreak)) {
car.Speed = car.Speed + car.Motorbreak;
} else {
car.Speed = 0;
}
car.showControls("noAccelleration");
}
playEngineSound("idle");
}
carPhysics(car);
reactOnTerrain(car);
if (makePositive(car.MoveX, true) < 0.01) {
car.MoveX = 0;
}
if (makePositive(car.MoveY, true) < 0.01) {
car.MoveY = 0;
}
if (car.LibraryName == "mcMonkey") {
car.cabin._rotation = -car._rotation;
}
car.mcShadow._x = Math.sin(car._rotation * (Math.PI/180)) * car.Altitude;
car.mcShadow._y = Math.cos(car._rotation * (Math.PI/180)) * car.Altitude;
mcLevel._x = mcLevel._x + car.MoveX;
mcLevel._y = mcLevel._y + car.MoveY;
if (startSavingCoordinates) {
saveCoordinates(car);
}
if (bringOnGhostCar) {
moveGhostCar(car);
}
mcPanel.roadMap.car._x = car._x - mcLevel._x;
mcPanel.roadMap.car._y = car._y - mcLevel._y;
}
function carPhysics(car) {
car.Speed = car.Speed * car.groundFriction;
car.DirectionX = Math.sin(car._rotation * (Math.PI/180));
car.DirectionY = Math.cos(car._rotation * (Math.PI/180));
car.TargetX = car.DirectionX * (-car.Speed);
car.TargetY = car.DirectionY * car.Speed;
car.MoveX = car.MoveX + (((car.TargetX - car.MoveX) * car.Grip) * car.groundGrip);
car.MoveY = car.MoveY + (((car.TargetY - car.MoveY) * car.Grip) * car.groundGrip);
if ((1 < car.Movement) && (!car.Reversing)) {
if (car.everySecondTrail == 1) {
mcObjectNumber++;
mcLevel.attachMovie("mcTrail", ["mcTrail" + (trailCounter + mcObjectNumber)], mcObjectNumber);
mcLevel["mcTrail" + (trailCounter + mcObjectNumber)]._x = car._x - mcLevel._x;
mcLevel["mcTrail" + (trailCounter + mcObjectNumber)]._y = car._y - mcLevel._y;
car.everySecondTrail = 0;
} else {
car.everySecondTrail++;
}
}
}
function saveCoordinates(car) {
car.PosX = int(car._x - mcLevel._x);
car.PosY = int(car._y - mcLevel._y);
arrSavedDataX[savedCoordinatesCounter] = car.PosX;
arrSavedDataY[savedCoordinatesCounter] = car.PosY;
arrSavedDataRotation[savedCoordinatesCounter] = car._rotation;
savedCoordinatesCounter++;
}
function moveGhostCar(car) {
if (!ghostCarActive) {
if (!ghostCarAlreadyVisible) {
trace("Ghost car created.");
mcObjectNumber++;
mcPanel.roadMap.attachMovie("mcUniversal", "ghostCar", mcObjectNumber);
mcPanel.roadMap.ghostCar._alpha = 20;
ghostCarAlreadyVisible = true;
mcObjectNumber++;
ghostCarClip = mcObjectNumber;
mcHolder.attachMovie(car.LibraryName, "mcGhostCar", ghostCarClip);
mcHolder.mcghostCar._alpha = 20;
}
trace((("ghostCarAlreadyVisible: " + ghostCarAlreadyVisible) + " (currentLap == mcLevel.laps - 1): ") + (currentLap == (mcLevel.laps - 1)));
trace("Ghost car reset.");
mcHolder.mcGhostCar._xscale = carSize;
mcHolder.mcGhostCar._yscale = carSize;
mcHolder.mcGhostCar._x = arrSavedDataX[0] + mcLevel._x;
mcHolder.mcghostCar._y = arrSavedDataY[0] + mcLevel._y;
mcHolder.mcghostCar._rotation = arrSavedDataRotation[0];
ghostCarActive = true;
loadCoordinatesCounter = 0;
} else if (loadCoordinatesCounter < arrBestLapX.length) {
mcHolder.mcGhostCar._x = arrBestLapX[loadCoordinatesCounter] + mcLevel._x;
mcHolder.mcghostCar._y = arrBestLapY[loadCoordinatesCounter] + mcLevel._y;
mcHolder.mcghostCar._rotation = arrBestLapRot[loadCoordinatesCounter];
loadCoordinatesCounter++;
mcPanel.roadMap.ghostCar._x = arrBestLapX[loadCoordinatesCounter];
mcPanel.roadMap.ghostCar._y = arrBestLapY[loadCoordinatesCounter];
} else if (ghostCarAlreadyVisible && (ghostCarActive)) {
ghostCarActive = false;
trace("remove ghost");
}
}
function restoreCarProperties(car) {
car.Accelleration = car.origAccelleration;
car.MaxSpeed = car.origMaxSpeed;
car.Steering = car.origSteering;
car.Motorbreak = car.origMotorbreak;
car.Grip = car.origGrip;
car.Breaks = car.origBreaks;
car.Reverse = car.origReverse;
car.Altitude = car.origAltitude;
if ((car._xscale < (carSize - 0.2)) or ((carSize + 0.2) < car._xscale)) {
if (car._xscale < carSize) {
car._xscale = car._xscale + 0.4;
car._yscale = car._yscale + 0.4;
} else {
car._xscale = car._xscale - 0.4;
car._yscale = car._yscale - 0.4;
}
}
}
function carBounce(car, objectHit) {
var bounceFactor = 1.05;
var testPixelsX = car.hitTestX;
var testPixelsY = car.hitTestY;
car.Speed = car.Speed / 2;
if ((car.MoveX < 0) && (car.MoveY < 0)) {
var xPixels = 0;
while (objectHit.hitTest(testPixelsX, car.hitTestY, true)) {
testPixelsX--;
xPixels++;
}
var yPixels = 0;
while (objectHit.hitTest(car.hitTestX, testPixelsY, true)) {
testPixelsY--;
yPixels++;
}
} else if ((car.MoveX < 0) && (0 < car.MoveY)) {
var xPixels = 0;
while (objectHit.hitTest(testPixelsX, car.hitTestY, true)) {
testPixelsX--;
xPixels++;
}
var yPixels = 0;
while (objectHit.hitTest(car.hitTestX, testPixelsY, true)) {
testPixelsY++;
yPixels++;
}
} else if ((0 < car.MoveX) && (car.MoveY < 0)) {
var xPixels = 0;
while (objectHit.hitTest(testPixelsX, car.hitTestY, true)) {
testPixelsX++;
xPixels++;
}
var yPixels = 0;
while (objectHit.hitTest(car.hitTestX, testPixelsY, true)) {
testPixelsY--;
yPixels++;
}
} else if ((0 < car.MoveX) && (0 < car.MoveY)) {
var xPixels = 0;
while (objectHit.hitTest(testPixelsX, car.hitTestY, true)) {
testPixelsX++;
xPixels++;
}
var yPixels = 0;
while (objectHit.hitTest(car.hitTestX, testPixelsY, true)) {
testPixelsY++;
yPixels++;
}
}
if (xPixels < yPixels) {
car.MoveX = (-car.MoveX) * bounceFactor;
} else {
car.MoveY = (-car.MoveY) * bounceFactor;
}
sndBounce.start(0, 0);
}
resetVariablesCars();
gotoAndPlay ("codeTime");
Frame 116
function resetVariablesTime() {
bestTime = 1000000000 /* 0x3B9ACA00 */;
bestLap = 0;
checkPoints = 0;
mcCheckpoints = new Array();
currentLap = 1;
arrBestLapX = new Array();
arrBestLapY = new Array();
arrBestLapRot = new Array();
arrLapTimes = new Array();
firstLap = false;
intMinutes = 0;
activeTotalTime = 0;
var so = SharedObject.getLocal("MiniclipRally");
if (so.data[chosenLevel].bestLap != undefined) {
intTimeHundredsBest = so.data[chosenLevel].bestLap;
mcPanel.txtBestTime = convertMillisecondsToTime(intTimeHundredsBest);
}
}
function updateTime() {
if (updateBestLapTime) {
arrLapTimes.push(activeTimeHundreds);
if ((arrLapTimes[arrLapTimes.length - 1] < intTimeHundredsBest) or (!firstLap)) {
intTimeHundredsBest = arrLapTimes[arrLapTimes.length - 1];
bestLap = lapsDone;
trace("arrSavedDataX.length: " + arrSavedDataX.length);
arrBestLapX = arrSavedDataX;
arrBestLapY = arrSavedDataY;
arrBestLapRot = arrSavedDataRotation;
firstLap = true;
}
arrSavedDataX = new Array();
arrSavedDataY = new Array();
arrSavedDataRotation = new Array();
savedCoordinatesCounter = 0;
activeTimeHundreds = 0;
mcPanel.txtBestTime = convertMillisecondsToTime(intTimeHundredsBest);
mcPanel.txtCurrentTime = 0;
updateBestLapTime = false;
if (currentLap == mcLevel.laps) {
_root[mcHolder.mcChosenShip.engineLoop].stop();
sndRaceFinished.start(0, 0);
gotoAndStop ("raceFinished");
} else if (currentLap == (mcLevel.laps - 1)) {
sndFinalLap.start(0, 0);
mcComments.showComment("Final Lap!");
} else {
mcComments.showComment("Lap " + int(currentLap + 1));
sndCheckPoint.start(0, 0);
}
var so = SharedObject.getLocal("MiniclipRally");
if (intTimeHundredsBest < so.data[chosenLevel].bestLap) {
so.data[chosenLevel].bestLap = intTimeHundredsBest;
so.data[chosenLevel].bestLapCar = chosenShip;
var newLapRecord = convertMillisecondsToTime(intTimeHundredsBest);
mcTimeComments.showComment(newLapRecord + " - new lap record!");
}
currentLap++;
}
if (raceStarted) {
activeTimeHundreds = activeTimeHundreds + 3.1;
activeTotalTime = activeTotalTime + 3.1;
mcPanel.txtTimeThis = convertMillisecondsToTime(activeTimeHundreds);
mcPanel.txtTotalTime = convertMillisecondsToTime(activeTotalTime);
}
}
function convertMillisecondsToTime(ms) {
var intHundreds = 0;
var intSeconds = 0;
var intMinutes = 0;
var strHundreds = "";
var strSeconds = "";
var strMinutes = "";
intTimeHundreds = int(ms);
strTimeHundreds = new String(intTimeHundreds);
strHundreds = strTimeHundreds.slice(strTimeHundreds.length - 2, strTimeHundreds.length);
if (strHundreds.length < 2) {
strHundreds = "0" + strHundreds;
}
intSeconds = int(intTimeHundreds / 100);
if (59 < intSeconds) {
intMinutes = int(intSeconds / 60);
intSeconds = intSeconds - (intMinutes * 60);
}
strSeconds = new String(intSeconds);
if (strSeconds.length < 2) {
strSeconds = "0" + strSeconds;
}
strMinutes = new String(intMinutes);
if (strMinutes.length < 2) {
strMinutes = "0" + strMinutes;
}
var strTime = ((((strMinutes + ".") + strSeconds) + ".") + strHundreds);
return(strTime);
}
resetVariablesTime();
gotoAndPlay ("levels");
Frame 138
mcObjectNumber = 0;
resetVariablesCars();
crossFade(trackTune, sndIntro);
play();
Frame 139
mcTopLayerStatic.gotoAndStop(chosenLevel);
mcLevel.gotoAndStop(1);
loadCoordinatesCounter = 0;
arrBestLapX = new Array();
arrBestLapY = new Array();
arrBestLapRot = new Array();
arrSavedDataX = new Array();
arrSavedDataY = new Array();
arrSavedDataRotation = new Array();
ghostCarActive = false;
ghostCarAlreadyVisible = false;
bringOnGhostCar = false;
mcLevel.gotoAndStop(chosenLevel);
resetVariablesTime();
resetVariablesCars();
mcHolder.attachMovie("mcTopLayer", "mcTopLayer", 3);
mcHolder.mcTopLayer._x = mcLevel._x;
mcHolder.mcTopLayer._y = mcLevel._y;
mcHolder.mcTopLayer.gotoAndStop(chosenLevel);
numberOfLaps = 3;
mcPanel.txtTotalTime = "00:00:00";
play();
Frame 140
setQuality();
Frame 162
mcPanel.gotoAndStop(gameMode);
mcHolder.attachMovie(chosenShip, "mcChosenShip", 2);
mcHolder.mcChosenShip._xscale = carSize;
mcHolder.mcChosenShip._yscale = carSize;
mcHolder.mcChosenShip._x = carPositionX;
mcHolder.mcChosenShip._y = carPositionY;
mcHolder.mcChosenShip._rotation = mcRevealPlayer._rotation - 90;
totalCheckPoints = checkPoints;
mcHolder.mcChosenShip.checkPoints = totalCheckPoints;
mcObjectNumber++;
mcPanel.attachMovie("mcLevel" + chosenLevel, "roadMap", mcObjectNumber);
mcPanel.roadMap._xscale = 5;
mcPanel.roadMap._yscale = 5;
mcPanel.roadMap._x = mcPanel.mapCenter._x;
mcPanel.roadMap._y = mcPanel.mapCenter._y;
mcObjectNumber++;
mcPanel.roadMap.attachMovie("mcUniversal", "car", mcObjectNumber);
roadMap.car._x = -mcLevel._x;
roadMap.car._y = -mcLevel._y;
lastCheckpointPassed = 0;
mcRevealPlayer.play();
Frame 171
mcComments.showComment("Get ready...");
Frame 250
mcComments.showComment("GO!");
Instance of Symbol 516 MovieClip in Frame 251
onClipEvent (keyDown) {
if (Key.getCode() == 80) {
if (_parent.gameIsPaused) {
_parent.gameIsPaused = false;
_parent.gotoAndPlay("gameLoop");
} else {
_parent.mcComments.showComment("PAUSED (P - continue)");
if (safetyPause < getTimer()) {
_parent.gameIsPaused = true;
}
safetyPause = getTimer() + 200;
}
}
}
Frame 252
if (!gameIsPaused) {
updateTime();
controlCar(mcHolder.mcChosenShip);
mcHolder.mcTopLayer._x = mcLevel._x;
mcHolder.mcTopLayer._y = mcLevel._y;
mcTopLayerStatic._x = mcLevel._x;
mcTopLayerStatic._y = mcLevel._y;
gotoAndPlay(_currentframe - 1);
} else {
stop();
}
Frame 260
mcComments.showComment("Finish!");
clearInterval(ivCheckLoop);
play();
Frame 305
mcTransitions.playAnim("showTimes");
crossFade(sndIntro, tunePlaying);
stop();
Frame 306
_quality = "BEST";
if (arrLapTimes[0] != undefined) {
mcRaceFinished.mcRaceSummary.txtLap1 = convertMillisecondsToTime(arrLapTimes[0]);
} else {
mcRaceFinished.mcRaceSummary.txtLap1 = "-";
}
if (arrLapTimes[1] != undefined) {
mcRaceFinished.mcRaceSummary.txtLap2 = convertMillisecondsToTime(arrLapTimes[1]);
} else {
mcRaceFinished.mcRaceSummary.txtLap2 = "-";
}
if (arrLapTimes[2] != undefined) {
mcRaceFinished.mcRaceSummary.txtLap3 = convertMillisecondsToTime(arrLapTimes[2]);
} else {
mcRaceFinished.mcRaceSummary.txtLap3 = "-";
}
if (arrLapTimes[3] != undefined) {
mcRaceFinished.mcRaceSummary.txtLap4 = convertMillisecondsToTime(arrLapTimes[3]);
} else {
mcRaceFinished.mcRaceSummary.txtLap4 = "-";
}
mcRaceFinished.mcRaceSummary.txtFinalTime = convertMillisecondsToTime(activeTotalTime);
txtCourse = _parent.chosenLevel + "COURSE";
score = convertMillisecondsToTime(activeTotalTime);
var minutes = score.substr(0, 2);
var seconds = score.substr(3, 2);
var hundreds = score.substr(6, 2);
score = (minutes + seconds) + hundreds;
mcPanel.txtCurrentTime = "00:00:00";
var so = SharedObject.getLocal("MiniclipRally");
if (activeTotalTime < so.data[chosenLevel].bestTime) {
so.data[chosenLevel].bestTime = activeTotalTime;
so.data[chosenLevel].bestTimeCar = chosenShip;
}
mcPanel.txtTimeThis = "Finished";
gotoAndStop ("showTimes");
stop();
Frame 320
stop();
Instance of Symbol 567 MovieClip "comHighscores" in Frame 320
onClipEvent (load) {
scoreLocation = "_root.score";
gamename = "set in component (hack)";
saveScore = true;
scoreIsTime = true;
scoreReversed = false;
negativeScoreAllowed = false;
}
Symbol 3 MovieClip [mcTrail] Frame 1
mcPath = eval (_target);
Symbol 3 MovieClip [mcTrail] Frame 16
mcPath.removeMovieClip();
stop();
Symbol 35 MovieClip Frame 1
var _assets = escape("dtlpi lci nim4 002 th gir ypo c");
if (_assets != "dtlpi%20lci%20nim4%20002%20th%20gir%20ypo%20c") {
_root.stop();
}
Symbol 35 MovieClip Frame 7
var file_asset = "RJml%15%BCc%98%04%D6%D4%13%B9z%B0%F7%D5%E8P%A1%E0%B0%DF%EA";
Symbol 40 MovieClip Frame 1
this._visible = false;
Symbol 54 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 60
Symbol 54 MovieClip Frame 121
_parent.mcBackground.play();
stop();
Symbol 56 Button
on (release) {
getURL ("http://www.miniclip.com/", "_blank");
}
Symbol 59 MovieClip Frame 2
_parent.mcAnimation.play();
stop();
Symbol 59 MovieClip Frame 13
_parent.gotoAndPlay("preload");
stop();
Symbol 73 MovieClip Frame 1
pushSWF1 = "http://www.miniclip.com/swfcontent/push/didyouknow.swf";
totalAds = 1;
gotoAndPlay ("ReadCookie");
Symbol 73 MovieClip Frame 9
so = SharedObject.getLocal("MiniclipLoaderAd");
showThisAd = so.data.showThisAd + 1;
if (totalAds < showThisAd) {
showThisAd = 1;
}
so.data.showThisAd = showThisAd;
gotoAndPlay ("prepareAd");
Symbol 73 MovieClip Frame 20
doReadCookie();
showAd = ((this["pushSWF" + showThisAd] + "?cacheBuster=") + getTimer()) + random(999999);
gotoAndPlay ("loadAd");
Symbol 73 MovieClip Frame 31
if (0 < _url.indexOf(http)) {
mcAd.loadMovie(showAd);
}
mcCookie.doWriteCookie(showThisAd);
Symbol 73 MovieClip Frame 33
if ((mcAd.getBytesTotal() != 0) && (mcAd.getBytesLoaded() == mcAd.getBytesTotal())) {
lastAdShown = showThisAd;
doWriteCookie();
gotoAndStop ("showAd");
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 73 MovieClip Frame 41
stop();
Symbol 77 Button
on (release) {
getURL ("http://www.miniclip.com/", "_blank");
}
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 100
stop();
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 12
_root.play();
_root.isFinished = true;
_parent.stop();
stop();
Symbol 83 MovieClip Frame 1
_root.stop();
play();
Instance of Symbol 40 MovieClip "mcIntro" in Symbol 83 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 83 MovieClip Frame 2
xPos = _x;
yPos = _y;
mcBackground._x = mcBackground._x - xPos;
mcBackground._y = mcBackground._y - yPos;
mcAnimation._x = mcAnimation._x - xPos;
mcAnimation._y = mcAnimation._y - yPos;
var stageWidth = Stage.width;
var stageHeight = Stage.height;
var centerStageX = (stageWidth / 2);
var centerStageY = (stageHeight / 2);
mcBackground._width = stageWidth;
mcBackground._height = stageHeight;
mcAnimation._x = mcAnimation._x + centerStageX;
mcAnimation._y = mcAnimation._y + (centerStageY - (stageHeight / 10));
stop();
Instance of Symbol 82 MovieClip "mcLoadingAnimated" in Symbol 83 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Symbol 83 MovieClip Frame 3
var loadedPercent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loadedPercent == 100) {
_root.play();
stop();
} else {
mcLoadingAnimated._visible = true;
}
Symbol 83 MovieClip Frame 5
var loadedPercent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loadedPercent < 100) {
mcLoadingAnimated.mcLoading.gotoAndStop(loadedPercent);
mcLoadingAnimated.mcLoading.txtPercentLoaded1 = ("The game is loading (" + loadedPercent) + "%)";
mcLoadingAnimated.mcLoading.txtPercentLoaded2 = ("The game is loading (" + loadedPercent) + "%)";
gotoAndPlay(_currentframe - 1);
} else {
mcLoadingAnimated.play();
stop();
}
Symbol 108 MovieClip Frame 1
function playAnim(label) {
if (!active) {
goingTo = label;
active = true;
gotoAndPlay(gotoTransition);
}
}
function gotoLabel(goingTo) {
_parent.gotoAndStop(goingTo);
}
randomTransition = random(3);
if (randomTransition == 0) {
gotoTransition = "zed";
} else if (randomTransition == 1) {
gotoTransition = "ninja";
} else if (randomTransition == 2) {
gotoTransition = "monkey";
}
active = false;
stop();
Symbol 108 MovieClip Frame 11
gotoLabel(goingTo);
Symbol 108 MovieClip Frame 22
gotoAndStop (1);
Symbol 108 MovieClip Frame 32
gotoLabel(goingTo);
Symbol 108 MovieClip Frame 43
gotoAndStop (1);
Symbol 108 MovieClip Frame 53
gotoLabel(goingTo);
Symbol 108 MovieClip Frame 63
gotoAndStop (1);
Symbol 111 Button
on (release) {
getURL ("http://www.miniclip.com");
}
Symbol 121 MovieClip [mcTopLayer] Frame 1
stop();
Symbol 126 MovieClip [mcNinja] Frame 1
function showControls(direction) {
if ((direction == "forward") && (!mcZedFireLeft.fireOn)) {
mcZedFireLeft.gotoAndPlay("in");
mcZedFireRight.gotoAndPlay("in");
} else if ((direction == "noAccelleration") && (mcZedFireLeft.fireOn)) {
mcZedFireLeft.gotoAndPlay("out");
mcZedFireRight.gotoAndPlay("out");
}
if ((direction == "left") && (!mcZedRudder.turningRight)) {
mcZedRudder.gotoAndPlay("inRight");
} else if ((direction == "leftOff") && (mcZedRudder.turningRight)) {
mcZedRudder.gotoAndPlay("outRight");
}
if ((direction == "right") && (!mcZedRudder.turningLeft)) {
mcZedRudder.gotoAndPlay("inLeft");
} else if ((direction == "rightOff") && (mcZedRudder.turningLeft)) {
mcZedRudder.gotoAndPlay("outLeft");
}
}
Accelleration = 0.4;
MaxSpeed = 14;
Steering = 5.5;
Motorbreak = 0.5;
Grip = 0.2;
Breaks = 1 / (Grip * 2);
Reverse = 0.2;
Altitude = 30;
origAccelleration = Accelleration;
origMaxSpeed = MaxSpeed;
origSteering = Steering;
origMotorbreak = Motorbreak;
origGrip = Grip;
origBreaks = Breaks;
origReverse = Reverse;
origAltitude = Altitude;
LibraryName = "mcNinja";
engineIdle = "sndNinjaIdle";
engineLoop = "sndNinjaLoop";
engineGo = "sndNinjaGo";
engineVolume = 30;
stop();
Symbol 146 MovieClip Frame 1
fireOn = 0;
stop();
Symbol 146 MovieClip Frame 2
fireOn = 1;
Symbol 146 MovieClip Frame 13
gotoAndPlay ("loop");
Symbol 146 MovieClip Frame 15
fireOn = 0;
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 2
turningRight = 1;
Symbol 151 MovieClip Frame 13
stop();
Symbol 151 MovieClip Frame 14
turningRight = 0;
Symbol 151 MovieClip Frame 20
gotoAndStop (1);
Symbol 151 MovieClip Frame 21
turningLeft = 1;
Symbol 151 MovieClip Frame 31
stop();
Symbol 151 MovieClip Frame 32
turningLeft = 0;
Symbol 151 MovieClip Frame 38
gotoAndStop (1);
Symbol 155 MovieClip [mcZed] Frame 1
function showControls(direction) {
if ((direction == "forward") && (!mcZedFireLeft.fireOn)) {
mcZedFireLeft.gotoAndPlay("in");
mcZedFireRight.gotoAndPlay("in");
} else if ((direction == "noAccelleration") && (mcZedFireLeft.fireOn)) {
mcZedFireLeft.gotoAndPlay("out");
mcZedFireRight.gotoAndPlay("out");
}
if ((direction == "left") && (!mcZedRudder.turningRight)) {
mcZedRudder.gotoAndPlay("inRight");
} else if ((direction == "leftOff") && (mcZedRudder.turningRight)) {
mcZedRudder.gotoAndPlay("outRight");
}
if ((direction == "right") && (!mcZedRudder.turningLeft)) {
mcZedRudder.gotoAndPlay("inLeft");
} else if ((direction == "rightOff") && (mcZedRudder.turningLeft)) {
mcZedRudder.gotoAndPlay("outLeft");
}
}
Accelleration = 0.5;
MaxSpeed = 16;
Steering = 4.5;
Motorbreak = 0.4;
Grip = 0.18;
Breaks = 0.9 / (Grip * 2);
Reverse = 0.1;
Altitude = 40;
origAccelleration = Accelleration;
origMaxSpeed = MaxSpeed;
origSteering = Steering;
origMotorbreak = Motorbreak;
origGrip = Grip;
origBreaks = Breaks;
origReverse = Reverse;
origAltitude = Altitude;
LibraryName = "mcZed";
engineIdle = "sndZedIdle";
engineLoop = "sndZedLoop";
engineGo = "sndZedGo";
engineVolume = 30;
stop();
Symbol 191 MovieClip Frame 1
fireOn = 0;
stop();
Symbol 191 MovieClip Frame 2
fireOn = 1;
Symbol 191 MovieClip Frame 32
gotoAndPlay ("loop");
Symbol 191 MovieClip Frame 33
fireOn = 0;
Symbol 200 MovieClip Frame 1
fireOn = 0;
stop();
Symbol 200 MovieClip Frame 2
fireOn = 1;
Symbol 200 MovieClip Frame 10
gotoAndPlay ("loop");
Symbol 200 MovieClip Frame 11
fireOn = 0;
Symbol 206 MovieClip [mcMonkey] Frame 1
function showControls(direction) {
if ((direction == "forward") && (!mcMonkeyFire.fireOn)) {
mcMonkeyFire.gotoAndPlay("in");
} else if ((direction == "noAccelleration") && (mcMonkeyFire.fireOn)) {
mcMonkeyFire.gotoAndPlay("out");
}
if ((direction == "left") && (!rightThruster.fireOn)) {
rightThruster.gotoAndPlay("in");
} else if ((direction == "leftOff") && (rightThruster.fireOn)) {
rightThruster.gotoAndPlay("out");
}
if ((direction == "right") && (!leftThruster.fireOn)) {
leftThruster.gotoAndPlay("in");
} else if ((direction == "rightOff") && (leftThruster.fireOn)) {
leftThruster.gotoAndPlay("out");
}
}
Accelleration = 0.3;
MaxSpeed = 15;
Steering = 5;
Motorbreak = 0.6;
Grip = 0.19;
Breaks = 0.8 / (Grip * 2);
Reverse = 0.1;
Altitude = 40;
origAccelleration = Accelleration;
origMaxSpeed = MaxSpeed;
origSteering = Steering;
origMotorbreak = Motorbreak;
origGrip = Grip;
origBreaks = Breaks;
origReverse = Reverse;
origAltitude = Altitude;
LibraryName = "mcMonkey";
engineIdle = "sndZedIdle";
engineLoop = "sndZedLoop";
engineGo = "sndZedGo";
engineVolume = 30;
stop();
Symbol 216 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 29
_parent.mcLevel.mcRevealPlayer.gotoAndPlay("close");
stop();
Symbol 216 MovieClip Frame 30
stop();
Symbol 216 MovieClip Frame 58
stop();
Symbol 218 MovieClip Frame 1
function actions(car, objectHit) {
_parent._parent._parent.carBounce(car, objectHit);
}
_parent._parent._parent.mcObjectNumber++;
_name = ("mcObject" + _parent._parent._parent.mcObjectNumber);
stop();
Symbol 220 MovieClip Frame 1
function actions(car, objectHit) {
if (car.passOver) {
car.passOver = false;
}
}
_parent._parent._parent.mcObjectNumber++;
_name = ("mcObject" + _parent._parent._parent.mcObjectNumber);
stop();
Symbol 222 MovieClip Frame 1
function actions(car, objectHit) {
if (!car.passOver) {
_parent._parent._parent.carBounce(car, objectHit);
} else {
_parent._parent._parent.showOrHideBridge(car, "hide");
}
}
_parent._parent._parent.mcObjectNumber++;
_name = ("mcObject" + _parent._parent._parent.mcObjectNumber);
stop();
Symbol 223 MovieClip Frame 1
function actions(car, objectHit) {
if (!car.passOver) {
car.passOver = true;
}
}
_parent._parent._parent.mcObjectNumber++;
_name = ("mcObject" + _parent._parent._parent.mcObjectNumber);
stop();
Symbol 224 MovieClip Frame 1
function actions(car, objectHit) {
if (car.passOver) {
_parent._parent._parent.carBounce(car, objectHit);
} else {
_parent._parent._parent.showOrHideBridge(car, "show");
}
}
_parent._parent._parent.mcObjectNumber++;
_name = ("mcObject" + _parent._parent._parent.mcObjectNumber);
stop();
Symbol 231 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 6
stop();
Symbol 233 MovieClip Frame 1
function actions(car, objectHit) {
if ((_parent._parent._parent.lastCheckpointPassed + 1) == checkPointNumber) {
var checkpointIsValid = true;
}
if (((!checked) && (_parent._parent._parent.raceStarted)) && (checkpointIsValid)) {
_parent._parent._parent.lastCheckpointPassed++;
car.checkPoints--;
checked = true;
checkPoints.gotoAndPlay("in");
_parent._parent._parent.sndCheckpoint.start(0, 0);
} else if (!checked) {
_parent._parent._parent.mcComments.showComment("Go back!");
}
}
_parent._parent._parent.mcObjectNumber++;
_name = ("mcObject" + _parent._parent._parent.mcObjectNumber);
_parent._parent._parent.checkPoints++;
_parent._parent._parent.mcCheckpoints[_parent._parent._parent.checkPoints] = eval (_target);
checked = false;
light1._rotation = light1._rotation - this._rotation;
light2._rotation = light2._rotation - this._rotation;
stop();
Symbol 235 MovieClip Frame 1
Symbol 237 MovieClip Frame 1
function actions(car, objectHit) {
_parent._parent._parent.carBounce(car, objectHit);
}
_parent._parent._parent.mcObjectNumber++;
_name = ("mcObject" + _parent._parent._parent.mcObjectNumber);
stop();
Symbol 239 MovieClip Frame 1
function actions(car, objectHit) {
_parent._parent._parent.carBounce(car, objectHit);
}
_parent._parent._parent.mcObjectNumber++;
_name = ("mcObject" + _parent._parent._parent.mcObjectNumber);
stop();
Symbol 243 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 1
function actions(car, objectHit) {
car.Speed = car.MaxSpeed * 1.5;
if ((_parent._parent._parent.sndBoost.position == 0) or (_parent._parent._parent.sndBoost.position == _parent._parent._parent.sndBoost.duration)) {
trace("Played sndBoost.");
_parent._parent._parent.sndBoost.stop();
_parent._parent._parent.sndBoost.start(0, 0);
mcArrows.play();
}
}
_parent._parent._parent.mcObjectNumber++;
_name = ("mcObject" + _parent._parent._parent.mcObjectNumber);
stop();
Symbol 246 MovieClip Frame 1
function actions(car, objectHit) {
car.Grip = 0.05;
car.Steering = 2;
car.Breaks = 0.8 / (car.Grip * 2);
if ((_parent._parent._parent.sndWater.position == 0) or (_parent._parent._parent.sndWater.position == _parent._parent._parent.sndWater.duration)) {
trace("Played sndWater.");
_parent._parent._parent.sndWater.stop();
_parent._parent._parent.sndWater.start(0, 0);
}
}
_parent._parent._parent.mcObjectNumber++;
_name = ("mcObject" + _parent._parent._parent.mcObjectNumber);
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 1
function actions(car, objectHit) {
if (!onFinishLine) {
onFinishLine = true;
crossedFinishLine++;
if ((_parent._parent._parent.lastCheckpointPassed < 1) or ((_parent._parent._parent.lastCheckpointPassed == _parent._parent._parent.checkPoints) && (3 < _parent._parent._parent.lastCheckpointPassed))) {
if ((0 < crossedFinishLine) && (_parent._parent._parent.lastCheckpointPassed == _parent._parent._parent.checkPoints)) {
car.checkPoints = _parent._parent._parent.checkPoints;
_parent._parent._parent.bringOnGhostCar = true;
_parent._parent._parent.ghostCarActive = false;
_parent._parent._parent.lapsDone++;
_parent._parent._parent.updateBestLapTime = true;
_parent._parent._parent.lapCoordinates.push(_parent._parent._parent.savedCoordinatesCounter);
}
var i = 1;
while (i < _parent._parent._parent.mcCheckpoints.length) {
var checkpointLocation = _parent._parent._parent.mcCheckpoints[i];
checkpointLocation.checked = false;
checkpointLocation.checkPoints.gotoAndStop(1);
i++;
}
_parent._parent._parent.lastCheckpointPassed = 0;
mcLights.gotoAndPlay("in");
_parent._parent._parent.startSavingCoordinates = true;
_parent._parent._parent.raceStarted = true;
} else {
_parent._parent._parent.mcComments.showComment("Go back!");
}
}
}
_parent._parent._parent.mcObjectNumber++;
_name = ("mcObject" + _parent._parent._parent.mcObjectNumber);
_parent._parent._parent.finishLine = eval (_target);
crossedFinishLine = 0;
_parent._parent._parent.lapsDone = -1;
numberOfLaps = _parent._parent._parent.numberOfLaps;
_parent._parent._parent.lapCoordinates = new Array("0");
stop();
Instance of Symbol 233 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 3;
}
Instance of Symbol 233 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 1;
}
Instance of Symbol 233 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 7;
}
Instance of Symbol 233 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 6;
}
Instance of Symbol 233 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 2;
}
Instance of Symbol 233 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 5;
}
Instance of Symbol 233 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 4;
}
Symbol 258 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 1
function actions(car, objectHit) {
var leftRotation = (_rotation - 45);
var rightRotation = (_rotation + 45);
_parent._parent._parent.mcObjectNumber = 0;
_parent._parent._parent.checkPoints = 0;
_parent._parent._parent.mcLevel.gotoAndStop(_parent._parent._parent.mcLevel._currentframe + 1);
}
_parent._parent._parent.mcObjectNumber++;
_name = ("mcObject" + _parent._parent._parent.mcObjectNumber);
stop();
Instance of Symbol 233 MovieClip in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 1;
}
Instance of Symbol 233 MovieClip in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 3;
}
Instance of Symbol 233 MovieClip in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 2;
}
Symbol 269 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 1
function actions(car, objectHit) {
var leftRotation = (_rotation - 45);
var rightRotation = (_rotation + 45);
_parent._parent._parent.mcObjectNumber = 0;
_parent._parent._parent.mcLevel.gotoAndStop(_parent._parent._parent.mcLevel._currentframe - 1);
}
_parent._parent._parent.mcObjectNumber++;
_name = ("mcObject" + _parent._parent._parent.mcObjectNumber);
stop();
Instance of Symbol 233 MovieClip in Symbol 272 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 9;
}
Instance of Symbol 233 MovieClip in Symbol 272 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 10;
}
Instance of Symbol 233 MovieClip in Symbol 272 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 8;
}
Instance of Symbol 233 MovieClip in Symbol 272 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 7;
}
Instance of Symbol 233 MovieClip in Symbol 272 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 6;
}
Instance of Symbol 233 MovieClip in Symbol 272 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 5;
}
Instance of Symbol 233 MovieClip in Symbol 272 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 4;
}
Symbol 273 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 1
var random = random(20);
if ((random == 0) or broken) {
broken = true;
play();
} else {
stop();
}
Instance of Symbol 233 MovieClip in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 6;
}
Instance of Symbol 233 MovieClip in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 7;
}
Instance of Symbol 233 MovieClip in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 5;
}
Instance of Symbol 233 MovieClip in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 4;
}
Instance of Symbol 233 MovieClip in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 3;
}
Instance of Symbol 233 MovieClip in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 2;
}
Instance of Symbol 233 MovieClip in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
checkPointNumber = 1;
}
Symbol 291 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 585
gotoAndPlay (1);
Symbol 297 MovieClip Frame 1
stop();
Symbol 298 MovieClip Frame 1
stop();
Symbol 298 MovieClip Frame 8
_parent.mcBG.gotoAndStop(1);
laps = 4;
road.Friction = 0.98;
road.Grip = 0.8;
_parent.lastCheckpointPassed = 0;
stop();
Instance of Symbol 216 MovieClip "mcRevealPlayer" in Symbol 298 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop ("opened");
}
Symbol 298 MovieClip Frame 17
_parent.setQuality();
_parent.mcBG.gotoAndStop(4);
laps = 2;
_parent.mcRevealPlayer._rotation = mcRevealPlayer._rotation;
_parent.mcTopLayerStatic.gotoAndStop("ninja");
road.Friction = 0.98;
road.Grip = 0.8;
mcRevealPlayer._visible = true;
_parent.mcObjectNumber++;
_parent.mcPanel.attachMovie("mcLevelNinja2", "roadMap2", _parent.mcObjectNumber);
_parent.mcPanel.roadMap2._xscale = 5;
_parent.mcPanel.roadMap2._yscale = 5;
_parent.mcPanel.roadMap2._x = _parent.mcPanel.mapCenter._x;
_parent.mcPanel.roadMap2._y = _parent.mcPanel.mapCenter._y;
_parent.mcPanel.roadMap._alpha = 100;
_parent.mcPanel.roadMap2._alpha = 30;
stop();
Instance of Symbol 216 MovieClip "mcRevealPlayer" in Symbol 298 MovieClip Frame 17
onClipEvent (load) {
gotoAndStop ("opened");
}
Symbol 298 MovieClip Frame 18
_parent.setQuality();
_parent.mcBG.gotoAndStop(2);
_parent.mcTopLayerStatic.gotoAndStop("ninja2");
road.Friction = 0.99;
road.Grip = 0.8;
mcRevealPlayer._visible = false;
_parent.mcPanel.roadMap._alpha = 30;
_parent.mcPanel.roadMap2._alpha = 100;
stop();
Symbol 298 MovieClip Frame 25
_parent.mcBG.gotoAndStop(3);
laps = 3;
_parent.mcRevealPlayer._rotation = mcRevealPlayer._rotation;
road.Friction = 0.99;
road.Grip = 0.94;
_parent.lastCheckpointPassed = 0;
stop();
Instance of Symbol 216 MovieClip "mcRevealPlayer" in Symbol 298 MovieClip Frame 25
onClipEvent (load) {
gotoAndStop ("opened");
}
Symbol 303 MovieClip Frame 1
z.gotoAndStop("monkey");
Symbol 303 MovieClip Frame 182
stop();
Symbol 304 Button
on (release) {
_parent.soundOnOff();
}
Symbol 308 MovieClip Frame 1
stop();
Symbol 326 MovieClip Frame 1
stop();
Symbol 330 Button
on (release) {
mcTransitions.playAnim("recordTimes");
}
Symbol 334 Button
on (release) {
mcTransitions.playAnim("chooseCar");
}
Symbol 368 Button
on (release) {
mcTransitions.playAnim("mainMenu");
}
Instance of Symbol 155 MovieClip [mcZed] "mcZed" in Symbol 403 MovieClip Frame 1
onClipEvent (load) {
mcZedFireLeft.gotoAndStop(10);
mcZedFireRight.gotoAndStop(10);
}
Symbol 410 Button
on (release) {
chosenShip = "mcZed";
mcTransitions.playAnim("chooseLevel");
}
Symbol 414 MovieClip Frame 35
stop();
Symbol 425 Button
on (release) {
chosenShip = "mcNinja";
mcTransitions.playAnim("chooseLevel");
}
Symbol 441 MovieClip Frame 1
stop();
Symbol 441 MovieClip Frame 39
gotoAndStop ("still");
Instance of Symbol 206 MovieClip [mcMonkey] in Symbol 445 MovieClip Frame 1
onClipEvent (load) {
mcMonkeyFire.gotoAndStop(9);
leftThruster.gotoAndStop(26);
rightThruster.gotoAndStop(19);
}
Symbol 450 Button
on (release) {
chosenShip = "mcMonkey";
mcTransitions.playAnim("chooseLevel");
}
Symbol 454 Button
on (release) {
mcTransitions.playAnim("chooseCar");
}
Symbol 460 Button
on (release) {
chosenLevel = "monkey";
mcTransitions.playAnim("codeCars");
trackTune = sndMonkey;
}
Symbol 466 Button
on (release) {
chosenLevel = "zed";
mcTransitions.playAnim("codeCars");
trackTune = sndZed;
}
Symbol 471 Button
on (release) {
chosenLevel = "ninja";
mcTransitions.playAnim("codeCars");
trackTune = sndNinja;
}
Symbol 475 MovieClip Frame 5
stop();
Symbol 475 MovieClip Frame 11
stop();
Symbol 477 MovieClip Frame 1
function showComment(msg) {
txtComment = msg;
textPause = int(txtComment.length) * 90;
pause = getTimer() + textPause;
play();
}
stop();
Symbol 477 MovieClip Frame 2
mcReveal._xscale = textPause / 35;
Symbol 477 MovieClip Frame 7
if (getTimer() < pause) {
gotoAndPlay(_currentframe - 1);
} else {
mcReveal.play();
}
Symbol 480 MovieClip Frame 1
function showComment(msg) {
txtComment = msg;
textPause = int(txtComment.length) * 200;
pause = getTimer() + textPause;
play();
}
stop();
Symbol 480 MovieClip Frame 2
mcReveal._xscale = textPause / 45;
Symbol 480 MovieClip Frame 7
if (getTimer() < pause) {
gotoAndPlay(_currentframe - 1);
} else {
mcReveal.play();
}
Symbol 491 Button
on (release) {
_parent.sndNinjaLoop.stop();
_parent.sndZedLoop.stop();
_parent.sndMonkeyLoop.stop();
_parent.sndNinjaIdle.stop();
_parent.sndZedIdle.stop();
_parent.sndMonkeyIdle.stop();
_parent.mcTransitions.playAnim("mainMenu");
}
Symbol 493 MovieClip Frame 1
stop();
Symbol 507 MovieClip Frame 2
stop();
Symbol 514 MovieClip Frame 1
stop();
Symbol 528 Button
on (release) {
_parent.mcTransitions.playAnim("mainMenu");
}
Symbol 532 Button
on (release) {
_parent.mcTransitions.playAnim("levels");
}
Symbol 536 Button
on (release) {
_parent.mcTransitions.playAnim("highscore");
}
Symbol 546 MovieClip Frame 1
this._visible = false;
Symbol 559 Button
on (release) {
gameURL = ("http://www.miniclip.com/" + gamename) + ".htm";
getURL (gameURL, "_blank");
}
Symbol 567 MovieClip Frame 1
if (_parent.chosenLevel == "monkey") {
gamename = "mrally1";
} else if (_parent.chosenLevel == "ninja") {
gamename = "mrally2";
} else if (_parent.chosenLevel == "zed") {
gamename = "mrally3";
}
Instance of Symbol 546 MovieClip "mcHighscores" in Symbol 567 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 567 MovieClip Frame 2
if ((_url.indexOf("miniclip.com") == -1) && (testing != true)) {
gotoAndStop(_currentframe + 1);
} else {
var noCache = (getTimer() + random(100000));
var url = ("http://www.miniclip.com/swfcontent/highscore.swf?" + noCache);
mcTarget.loadMovie(url);
stop();
}
Symbol 567 MovieClip Frame 3
stop();
Symbol 568 Button
on (release) {
mcTransitions.playAnim("levels");
}