Frame 1
if (_global.System) {
System.security.allowDomain("mochibot.com");
}
_level0.__com_mochibot__swfid = "6fda408d";
loadMovieNum ("http://mochibot.com/my/core.swf", 10301);
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 (getTimer() > oneSecond) {
oneSecond = getTimer() + 1000;
txtFPS = "n/a";
averageFPS = framesCounter;
framesCounter = 0;
}
if (timeOut == 93) {
if (averageFPS >= 26) {
_parent.qualityLevel = 4;
} else if ((averageFPS < 26) && (averageFPS > 23)) {
_parent.qualityLevel = 3;
} else if ((averageFPS <= 23) && (averageFPS > 20)) {
_parent.qualityLevel = 2;
} else if ((averageFPS <= 20) && (averageFPS > 16)) {
_parent.qualityLevel = 1;
} else if (averageFPS <= 16) {
_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) {
var _local1 = snd;
_local1.setVolume(_local1.getVolume() - 8);
if (_local1.getVolume() <= 0) {
_local1.setVolume(0);
_local1.stop();
fadeOutReady = true;
clearInterval(ivFadeOut);
}
}
function fadeIn(snd) {
var _local1 = snd;
_local1.setVolume(_local1.getVolume() + 8);
if (_local1.getVolume() >= 100) {
_local1.setVolume(100);
fadeInReady = true;
clearInterval(ivFadeIn);
}
}
function crossFade(sndIn, sndOut) {
var _local1 = sndIn;
if (fadeInReady) {
_local1.start(0, 9999);
_local1.setVolume(0);
tunePlaying = _local1;
fadeInReady = false;
ivFadeIn = setInterval(fadeIn, 100, _local1);
}
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) {
var _local1 = this;
var _local3 = _root;
if ((state == "idle") && (!idling)) {
_local1[mcHolder.mcChosenShip.engineGo].stop();
_local1[mcHolder.mcChosenShip.engineLoop].stop();
_local1[mcHolder.mcChosenShip.engineIdle].start(0, 9999);
_local1[mcHolder.mcChosenShip.engineIdle].setVolume(mcHolder.mcChosenShip.engineVolume);
idling = true;
running = false;
looping = false;
} else if (state == "go") {
if (!running) {
_local1[mcHolder.mcChosenShip.engineIdle].stop();
_local1[mcHolder.mcChosenShip.engineLoop].stop();
var _local2 = (mcHolder.mcChosenShip.speed * 100) / 1000;
if (_local2 >= _local1[mcHolder.mcChosenShip.engineGo].duration) {
_local2 = _local1[mcHolder.mcChosenShip.engineGo].duration - 50;
}
trace(_local2);
_local1[mcHolder.mcChosenShip.engineGo].start(_local2, 0);
_local1[mcHolder.mcChosenShip.engineGo].setVolume(mcHolder.mcChosenShip.engineVolume);
running = true;
idling = false;
}
_local1[mcHolder.mcChosenShip.engineGo].onSoundComplete = function () {
var _local1 = _root;
_local1[mcHolder.mcChosenShip.engineLoop].start(0, 9999);
_local1[mcHolder.mcChosenShip.engineLoop].setVolume(_local1.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 (sndZed.getVolume() > 0)) or (sndMonkey.getVolume() > 0)) or (sndNinja.getVolume() > 0)) {
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 _local1 = 0;
var intMinutes = 0;
var _local3 = "";
var strSeconds = "";
var _local2 = "";
intTimeHundreds = int(ms);
strTimeHundreds = new String(intTimeHundreds);
_local3 = strTimeHundreds.slice(strTimeHundreds.length - 2, strTimeHundreds.length);
if (_local3.length < 2) {
_local3 = "0" + _local3;
}
_local1 = int(intTimeHundreds / 100);
if (_local1 > 59) {
intMinutes = int(_local1 / 60);
_local1 = _local1 - (intMinutes * 60);
}
strSeconds = new String(_local1);
if (strSeconds.length < 2) {
strSeconds = "0" + strSeconds;
}
_local2 = new String(intMinutes);
if (_local2.length < 2) {
_local2 = "0" + _local2;
}
var strTime = ((((_local2 + ".") + strSeconds) + ".") + _local3);
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) {
var _local1 = car;
if (showOrHide == "show") {
if (_local1.bridgeIsHidden) {
mcHolder.mcTopLayer.swapDepths(3);
_local1.bridgeIsHidden = false;
}
} else if (showOrHide == "hide") {
if (!_local1.bridgeIsHidden) {
mcHolder.mcTopLayer.swapDepths(1);
_local1.bridgeIsHidden = true;
}
}
}
function makePositive(numberToConvert, boolean) {
var _local1 = numberToConvert;
if (boolean) {
if (_local1 <= 0) {
_local1 = -_local1;
}
} else if (_local1 >= 0) {
_local1 = -_local1;
}
return(_local1);
}
function reactOnTerrain(car) {
var _local2 = car;
_local2.hitTestX = _local2._x - _local2.MoveX;
_local2.hitTestY = _local2._y - _local2.MoveY;
if (mcLevel.road.hitTest(_local2.hitTestX, _local2.hitTestY, true)) {
_local2.groundFriction = mcLevel.road.Friction;
_local2.groundGrip = mcLevel.road.Grip;
} else if (_local2.Speed > 10) {
_local2.groundFriction = 0.88;
}
if (mcLevel.mcObstacles.hitTest(_local2.hitTestX, _local2.hitTestY, true)) {
var _local1 = 0;
while (_local1 <= mcObjectNumber) {
if (mcLevel.mcObstacles["mcObject" + _local1].hitTest(_local2.hitTestX, _local2.hitTestY, true)) {
mcLevel.mcObstacles["mcObject" + _local1].actions(_local2, mcLevel.mcObstacles["mcObject" + _local1]);
break;
}
_local1++;
}
} else {
restoreCarProperties(_local2);
if (finishLine.onFinishLine) {
finishLine.onFinishLine = false;
}
}
}
function controlCar(car) {
var _local1 = car;
if (Key.isDown(38) && (!Key.isDown(40))) {
_local1.Reversing = false;
if (makePositive(_local1.Speed, true) <= _local1.MaxSpeed) {
_local1.Speed = _local1.Speed + _local1.Accelleration;
}
_local1.showControls("forward");
playEngineSound("go");
}
if (Key.isDown(40)) {
if ((_local1.Speed < 1) && (getTimer() > _local1.switchingToReverse)) {
_local1.Reversing = true;
if (_local1.Speed >= ((-_local1.MaxSpeed) / 3)) {
_local1.Speed = _local1.Speed - _local1.Reverse;
} else {
_local1.Speed = (-_local1.MaxSpeed) / 3;
}
} else if (_local1.Speed >= 1) {
_local1.switchingToReverse = getTimer() + 200;
_local1.Reversing = false;
_local1.Speed = _local1.Speed - _local1.Breaks;
} else {
_local1.Speed = 0;
}
}
_local1.Movement = (makePositive(_local1.MoveX, true) + makePositive(_local1.MoveY, true)) / 2;
if (_local1.Movement > 0.1) {
if (Key.isDown(37)) {
if (!_local1.Reversing) {
_local1._rotation = _local1._rotation - _local1.Steering;
} else {
_local1._rotation = _local1._rotation - _local1.Steering;
}
_local1.showControls("left");
} else {
_local1.showControls("leftOff");
}
if (Key.isDown(39)) {
if (!_local1.Reversing) {
_local1._rotation = _local1._rotation + _local1.Steering;
} else {
_local1._rotation = _local1._rotation + _local1.Steering;
}
_local1.showControls("right");
} else {
_local1.showControls("rightOff");
}
}
if ((!Key.isDown(38)) && (!Key.isDown(40))) {
if (_local1.Speed != 0) {
if (_local1.Speed > _local1.Motorbreak) {
_local1.Speed = _local1.Speed - _local1.Motorbreak;
} else if (_local1.Speed < (-_local1.Motorbreak)) {
_local1.Speed = _local1.Speed + _local1.Motorbreak;
} else {
_local1.Speed = 0;
}
_local1.showControls("noAccelleration");
}
playEngineSound("idle");
}
carPhysics(_local1);
reactOnTerrain(_local1);
if (makePositive(_local1.MoveX, true) < 0.01) {
_local1.MoveX = 0;
}
if (makePositive(_local1.MoveY, true) < 0.01) {
_local1.MoveY = 0;
}
if (_local1.LibraryName == "mcMonkey") {
_local1.cabin._rotation = -_local1._rotation;
}
_local1.mcShadow._x = Math.sin(_local1._rotation * (Math.PI/180)) * _local1.Altitude;
_local1.mcShadow._y = Math.cos(_local1._rotation * (Math.PI/180)) * _local1.Altitude;
mcLevel._x = mcLevel._x + _local1.MoveX;
mcLevel._y = mcLevel._y + _local1.MoveY;
if (startSavingCoordinates) {
saveCoordinates(_local1);
}
if (bringOnGhostCar) {
moveGhostCar(_local1);
}
mcPanel.roadMap.car._x = _local1._x - mcLevel._x;
mcPanel.roadMap.car._y = _local1._y - mcLevel._y;
}
function carPhysics(car) {
var _local1 = car;
_local1.Speed = _local1.Speed * _local1.groundFriction;
_local1.DirectionX = Math.sin(_local1._rotation * (Math.PI/180));
_local1.DirectionY = Math.cos(_local1._rotation * (Math.PI/180));
_local1.TargetX = _local1.DirectionX * (-_local1.Speed);
_local1.TargetY = _local1.DirectionY * _local1.Speed;
_local1.MoveX = _local1.MoveX + (((_local1.TargetX - _local1.MoveX) * _local1.Grip) * _local1.groundGrip);
_local1.MoveY = _local1.MoveY + (((_local1.TargetY - _local1.MoveY) * _local1.Grip) * _local1.groundGrip);
if ((_local1.Movement > 1) && (!_local1.Reversing)) {
if (_local1.everySecondTrail == 1) {
mcObjectNumber++;
mcLevel.attachMovie("mcTrail", ["mcTrail" + (trailCounter + mcObjectNumber)], mcObjectNumber);
mcLevel["mcTrail" + (trailCounter + mcObjectNumber)]._x = _local1._x - mcLevel._x;
mcLevel["mcTrail" + (trailCounter + mcObjectNumber)]._y = _local1._y - mcLevel._y;
_local1.everySecondTrail = 0;
} else {
_local1.everySecondTrail++;
}
}
}
function saveCoordinates(car) {
var _local1 = car;
_local1.PosX = int(_local1._x - mcLevel._x);
_local1.PosY = int(_local1._y - mcLevel._y);
arrSavedDataX[savedCoordinatesCounter] = _local1.PosX;
arrSavedDataY[savedCoordinatesCounter] = _local1.PosY;
arrSavedDataRotation[savedCoordinatesCounter] = _local1._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) {
var _local1 = car;
_local1.Accelleration = _local1.origAccelleration;
_local1.MaxSpeed = _local1.origMaxSpeed;
_local1.Steering = _local1.origSteering;
_local1.Motorbreak = _local1.origMotorbreak;
_local1.Grip = _local1.origGrip;
_local1.Breaks = _local1.origBreaks;
_local1.Reverse = _local1.origReverse;
_local1.Altitude = _local1.origAltitude;
if ((_local1._xscale < (carSize - 0.2)) or (_local1._xscale > (carSize + 0.2))) {
if (_local1._xscale < carSize) {
_local1._xscale = _local1._xscale + 0.4;
_local1._yscale = _local1._yscale + 0.4;
} else {
_local1._xscale = _local1._xscale - 0.4;
_local1._yscale = _local1._yscale - 0.4;
}
}
}
function carBounce(car, objectHit) {
var _local1 = car;
var bounceFactor = 1.05;
var _local3 = _local1.hitTestX;
var _local2 = _local1.hitTestY;
_local1.Speed = _local1.Speed / 2;
if ((_local1.MoveX < 0) && (_local1.MoveY < 0)) {
var xPixels = 0;
while (objectHit.hitTest(_local3, _local1.hitTestY, true)) {
_local3--;
xPixels++;
}
var yPixels = 0;
while (objectHit.hitTest(_local1.hitTestX, _local2, true)) {
_local2--;
yPixels++;
}
} else if ((_local1.MoveX < 0) && (_local1.MoveY > 0)) {
var xPixels = 0;
while (objectHit.hitTest(_local3, _local1.hitTestY, true)) {
_local3--;
xPixels++;
}
var yPixels = 0;
while (objectHit.hitTest(_local1.hitTestX, _local2, true)) {
_local2++;
yPixels++;
}
} else if ((_local1.MoveX > 0) && (_local1.MoveY < 0)) {
var xPixels = 0;
while (objectHit.hitTest(_local3, _local1.hitTestY, true)) {
_local3++;
xPixels++;
}
var yPixels = 0;
while (objectHit.hitTest(_local1.hitTestX, _local2, true)) {
_local2--;
yPixels++;
}
} else if ((_local1.MoveX > 0) && (_local1.MoveY > 0)) {
var xPixels = 0;
while (objectHit.hitTest(_local3, _local1.hitTestY, true)) {
_local3++;
xPixels++;
}
var yPixels = 0;
while (objectHit.hitTest(_local1.hitTestX, _local2, true)) {
_local2++;
yPixels++;
}
}
if (xPixels < yPixels) {
_local1.MoveX = (-_local1.MoveX) * bounceFactor;
} else {
_local1.MoveY = (-_local1.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 _local1 = SharedObject.getLocal("MiniclipRally");
if (_local1.data[chosenLevel].bestLap != undefined) {
intTimeHundredsBest = _local1.data[chosenLevel].bestLap;
mcPanel.txtBestTime = convertMillisecondsToTime(intTimeHundredsBest, true);
}
}
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, true);
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 _local1 = SharedObject.getLocal("MiniclipRally");
if (intTimeHundredsBest < _local1.data[chosenLevel].bestLap) {
_local1.data[chosenLevel].bestLap = intTimeHundredsBest;
_local1.data[chosenLevel].bestLapCar = chosenShip;
var _local2 = convertMillisecondsToTime(intTimeHundredsBest, true);
mcTimeComments.showComment(_local2 + " - new lap record!");
}
currentLap++;
}
if (raceStarted) {
activeTimeHundreds = activeTimeHundreds + 3.1;
activeTotalTime = activeTotalTime + 3.1;
mcPanel.txtTimeThis = convertMillisecondsToTime(activeTimeHundreds, true);
mcPanel.txtTotalTime = convertMillisecondsToTime(activeTotalTime, true);
}
}
function convertMillisecondsToTime(ms, zeroPadding) {
var _local1 = ms;
_local1 = int(_local1) * 10;
var _local3 = int(_local1 / 60000);
_local1 = _local1 - (_local3 * 60000);
var intSeconds = int(_local1 / 1000);
_local1 = _local1 - (intSeconds * 1000);
if (_local3 > 99) {
_local3 = 99;
intSeconds = 59;
_local1 = 999;
}
var _local2 = new Array();
if (zeroPadding) {
if (_local3.toString().length == 1) {
var strMinutes = ("0" + _local3);
} else {
var strMinutes = _local3.toString();
}
if (intSeconds.toString().length == 1) {
var strSeconds = ("0" + intSeconds);
} else {
var strSeconds = intSeconds.toString();
}
var strMs = _local1.toString();
if (int(_local1) < 10) {
strMs = "00" + _local1;
} else if (int(_local1) < 100) {
strMs = "0" + _local1;
}
_local2.push(strMinutes);
_local2.push(strSeconds);
_local2.push(strMs);
} else {
_local2.push(_local3);
_local2.push(intSeconds);
_local2.push(_local1);
}
var strTime = ((((_local2[0].toString() + ".") + _local2[1].toString()) + ".") + _local2[2].toString());
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:000";
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 (getTimer() > safetyPause) {
_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], true);
} else {
mcRaceFinished.mcRaceSummary.txtLap1 = "-";
}
if (arrLapTimes[1] != undefined) {
mcRaceFinished.mcRaceSummary.txtLap2 = convertMillisecondsToTime(arrLapTimes[1], true);
} else {
mcRaceFinished.mcRaceSummary.txtLap2 = "-";
}
if (arrLapTimes[2] != undefined) {
mcRaceFinished.mcRaceSummary.txtLap3 = convertMillisecondsToTime(arrLapTimes[2], true);
} else {
mcRaceFinished.mcRaceSummary.txtLap3 = "-";
}
if (arrLapTimes[3] != undefined) {
mcRaceFinished.mcRaceSummary.txtLap4 = convertMillisecondsToTime(arrLapTimes[3], true);
} else {
mcRaceFinished.mcRaceSummary.txtLap4 = "-";
}
mcRaceFinished.mcRaceSummary.txtFinalTime = convertMillisecondsToTime(activeTotalTime, true);
txtCourse = _parent.chosenLevel + "COURSE";
score = convertMillisecondsToTime(activeTotalTime, false);
var arrScore = score.split(".");
arrScore[2] = arrScore[2].slice(0, 2);
if (int(arrScore[0]) == 0) {
arrScore[0] = "";
}
if (int(arrScore[1]) < 10) {
arrScore[1] = "0" + int(arrScore[1]);
} else if (int(arrScore[1]) == 0) {
arrScore[1] = "00";
}
if (int(arrScore[2]) < 10) {
arrScore[2] = "0" + int(arrScore[2]);
} else if (int(arrScore[2]) == 0) {
arrScore[2] = "00";
}
trace("SCORE: " + score);
score = (arrScore[0] + arrScore[1]) + arrScore[2];
trace("SCORE: " + score);
mcPanel.txtCurrentTime = "00:00:000";
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
//component parameters
onClipEvent (initialize) {
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
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 (showThisAd > totalAds) {
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 (_url.indexOf(http) > 0) {
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) {
var _local1 = direction;
if ((_local1 == "forward") && (!mcZedFireLeft.fireOn)) {
mcZedFireLeft.gotoAndPlay("in");
mcZedFireRight.gotoAndPlay("in");
} else if ((_local1 == "noAccelleration") && (mcZedFireLeft.fireOn)) {
mcZedFireLeft.gotoAndPlay("out");
mcZedFireRight.gotoAndPlay("out");
}
if ((_local1 == "left") && (!mcZedRudder.turningRight)) {
mcZedRudder.gotoAndPlay("inRight");
} else if ((_local1 == "leftOff") && (mcZedRudder.turningRight)) {
mcZedRudder.gotoAndPlay("outRight");
}
if ((_local1 == "right") && (!mcZedRudder.turningLeft)) {
mcZedRudder.gotoAndPlay("inLeft");
} else if ((_local1 == "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) {
var _local1 = direction;
if ((_local1 == "forward") && (!mcZedFireLeft.fireOn)) {
mcZedFireLeft.gotoAndPlay("in");
mcZedFireRight.gotoAndPlay("in");
} else if ((_local1 == "noAccelleration") && (mcZedFireLeft.fireOn)) {
mcZedFireLeft.gotoAndPlay("out");
mcZedFireRight.gotoAndPlay("out");
}
if ((_local1 == "left") && (!mcZedRudder.turningRight)) {
mcZedRudder.gotoAndPlay("inRight");
} else if ((_local1 == "leftOff") && (mcZedRudder.turningRight)) {
mcZedRudder.gotoAndPlay("outRight");
}
if ((_local1 == "right") && (!mcZedRudder.turningLeft)) {
mcZedRudder.gotoAndPlay("inLeft");
} else if ((_local1 == "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) {
var _local1 = direction;
if ((_local1 == "forward") && (!mcMonkeyFire.fireOn)) {
mcMonkeyFire.gotoAndPlay("in");
} else if ((_local1 == "noAccelleration") && (mcMonkeyFire.fireOn)) {
mcMonkeyFire.gotoAndPlay("out");
}
if ((_local1 == "left") && (!rightThruster.fireOn)) {
rightThruster.gotoAndPlay("in");
} else if ((_local1 == "leftOff") && (rightThruster.fireOn)) {
rightThruster.gotoAndPlay("out");
}
if ((_local1 == "right") && (!leftThruster.fireOn)) {
leftThruster.gotoAndPlay("in");
} else if ((_local1 == "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) {
var _local1 = car;
if (!_local1.passOver) {
_parent._parent._parent.carBounce(_local1, objectHit);
} else {
_parent._parent._parent.showOrHideBridge(_local1, "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) {
var _local1 = car;
if (_local1.passOver) {
_parent._parent._parent.carBounce(_local1, objectHit);
} else {
_parent._parent._parent.showOrHideBridge(_local1, "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) {
var _local1 = _parent;
if ((_local1._parent._parent.lastCheckpointPassed + 1) == checkPointNumber) {
var _local2 = true;
}
if (((!checked) && (_local1._parent._parent.raceStarted)) && (_local2)) {
_local1._parent._parent.lastCheckpointPassed++;
car.checkPoints--;
checked = true;
checkPoints.gotoAndPlay("in");
_local1._parent._parent.sndCheckpoint.start(0, 0);
} else if (!checked) {
_local1._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) {
var _local1 = _parent;
car.Speed = car.MaxSpeed * 1.5;
if ((_local1._parent._parent.sndBoost.position == 0) or (_local1._parent._parent.sndBoost.position == _local1._parent._parent.sndBoost.duration)) {
trace("Played sndBoost.");
_local1._parent._parent.sndBoost.stop();
_local1._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) {
var _local1 = _parent;
var _local2 = car;
_local2.Grip = 0.05;
_local2.Steering = 2;
_local2.Breaks = 0.8 / (_local2.Grip * 2);
if ((_local1._parent._parent.sndWater.position == 0) or (_local1._parent._parent.sndWater.position == _local1._parent._parent.sndWater.duration)) {
trace("Played sndWater.");
_local1._parent._parent.sndWater.stop();
_local1._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) {
var _local2 = _parent;
if (!onFinishLine) {
onFinishLine = true;
crossedFinishLine++;
if ((_local2._parent._parent.lastCheckpointPassed < 1) or ((_local2._parent._parent.lastCheckpointPassed == _local2._parent._parent.checkPoints) && (_local2._parent._parent.lastCheckpointPassed > 3))) {
if ((crossedFinishLine > 0) && (_local2._parent._parent.lastCheckpointPassed == _local2._parent._parent.checkPoints)) {
car.checkPoints = _local2._parent._parent.checkPoints;
_local2._parent._parent.bringOnGhostCar = true;
_local2._parent._parent.ghostCarActive = false;
_local2._parent._parent.lapsDone++;
_local2._parent._parent.updateBestLapTime = true;
_local2._parent._parent.lapCoordinates.push(_local2._parent._parent.savedCoordinatesCounter);
}
var _local1 = 1;
while (_local1 < _local2._parent._parent.mcCheckpoints.length) {
var _local3 = _local2._parent._parent.mcCheckpoints[_local1];
_local3.checked = false;
_local3.checkPoints.gotoAndStop(1);
_local1++;
}
_local2._parent._parent.lastCheckpointPassed = 0;
mcLights.gotoAndPlay("in");
_local2._parent._parent.startSavingCoordinates = true;
_local2._parent._parent.raceStarted = true;
} else {
_local2._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 _local1 = _parent;
var leftRotation = (_rotation - 45);
var rightRotation = (_rotation + 45);
_local1._parent._parent.mcObjectNumber = 0;
_local1._parent._parent.checkPoints = 0;
_local1._parent._parent.mcLevel.gotoAndStop(_local1._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 _local1 = _parent;
var leftRotation = (_rotation - 45);
var rightRotation = (_rotation + 45);
_local1._parent._parent.mcObjectNumber = 0;
_local1._parent._parent.mcLevel.gotoAndStop(_local1._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");
}