Frame 1
Stage.showMenu = false;
_focusrect = false;
Frame 2
ifFrameLoaded (4) {
gotoAndStop (4);
}
Frame 3
gotoAndPlay (2);
Frame 4
function deleteAudio() {
mainSound.setVolume(0);
_root.audio = 0;
}
function restoreAudio() {
mainSound.setVolume(_root.MAINS_VOLUME);
}
function mainSound() {
mainSound = new Sound(this);
_root.MAINS_VOLUME = mainSound.getVolume();
mainSound.setVolume(0);
}
function outSound() {
if (mainSound.getVolume() > 0) {
mainSound.setVolume(mainSound.getVolume() - 2);
} else {
clearInterval(OUT_INT);
}
}
function inSound() {
if (mainSound.getVolume() < _root.MAINS_VOLUME) {
mainSound.setVolume(mainSound.getVolume() + 2);
} else {
_root.audio = 1;
clearInterval(IN_INT);
}
}
function mainSoundOUT() {
OUT_INT = setInterval(outSound, 30);
}
function mainSoundIN() {
IN_INT = setInterval(inSound, 30);
}
function Track_get_Level() {
return(this.level);
}
function Track_get_Balance() {
return(this.balance);
}
function Track_set_Balance(balance) {
this.balance = balance;
this.execSndTrans(this.level, this.balance);
}
function Track_set_Level(level) {
this.level = level;
this.execSndTrans(this.level, this.balance);
}
function Track_Execute_Sound_Transform(level, balance) {
var _local4 = Math.floor((balance + 100) / 2);
var _local5 = (100 - _local4) * 0.01;
var _local6 = _local4 * 0.01;
var _local2 = Math.round(level * _local5);
var _local3 = Math.round(level * _local6);
if (this.channel == "left") {
this.sto.ll = _local2;
this.sto.rl = _local3;
} else {
this.sto.rr = _local3;
this.sto.lr = _local2;
}
this.so.setTransform(this.sto);
}
function Track(channel, soundObject) {
this.channel = channel;
this.level;
this.balance;
this.so = soundObject;
this.sto = new Object();
this.execSndTrans = Track_Execute_Sound_Transform;
this.getBalance = Track_get_Balance;
this.getLevel = Track_get_Level;
this.setBalance = Track_set_Balance;
this.setLevel = Track_set_Level;
this.setLevel(100);
this.setBalance(0);
}
function startSound(soundChannel, soundID, soundLoops, soundVolume, soundPan, fade, increment) {
this.createEmptyMovieClip(soundID, 9400 + soundChannel);
var _local5 = this["sound_" + soundChannel];
this["sound_" + soundChannel] = new Sound(soundID);
this["sound_" + soundChannel].attachSound(soundID);
this["sound_" + soundChannel].setVolume(0);
this["sound_" + soundChannel].start(0, soundLoops);
this["sound_" + soundChannel].setPan(soundPan);
if (fade) {
fadeIN(soundChannel, soundID, soundVolume, increment);
} else {
this["sound_" + soundChannel].setVolume(soundVolume);
}
}
function fadeIN(soundChannel, soundID, maxVolume, increment) {
var tempSound = this["sound_" + soundChannel];
var tempHolder = this[soundID];
tempHolder.onEnterFrame = function () {
if (tempSound.getVolume() < maxVolume) {
tempSound.setVolume(tempSound.getVolume() + increment);
} else {
delete tempHolder.onEnterFrame;
}
};
}
function fadeOUT(soundChannel, soundID, increment) {
var tempSound = this["sound_" + soundChannel];
var tempHolder = this[soundID];
tempHolder.onEnterFrame = function () {
if (tempSound.getVolume() > 0) {
tempSound.setVolume(tempSound.getVolume() - increment);
} else {
delete tempHolder.onEnterFrame;
tempSound.stop([soundID]);
_root[soundID].removeMovieClip();
}
};
}
function initBackgroundS() {
this.createEmptyMovieClip("sound_1", 1000);
backS = new Sound(sound_1);
backS.attachSound("backgroundSound");
delete s1;
delete s2;
s1 = new Track("left", backS);
s2 = new Track("right", backS);
backS.start(0, 9999);
s1.setLevel(80);
s2.setLevel(0);
this.createEmptyMovieClip("sound_8", 1001);
backS2 = new Sound(sound_8);
backS2.attachSound("motorSound");
backS2.setVolume(0);
backS2.start(0, 9999);
}
function reSoundBack() {
s1.setLevel(0);
s2.setLevel(80);
this.createEmptyMovieClip("sound_8", 1001);
backS2.setVolume(0);
backS2.start(0, 9999);
}
function changeBackTrack3() {
s3.setLevel(int((100 * M_ABS(speed)) / maxSpeed));
}
function changeBackTrack4() {
s4.setLevel(int((100 * M_ABS(speed)) / maxSpeed));
}
function changeBackTrack() {
backS2.setPan(((CAR._x / 550) * 200) - 100);
if ((_root.gLevel % 2) == 0) {
if (s1.getLevel() < 80) {
s1.setLevel(s1.getLevel() + 1);
}
if (s2.getLevel() > 0) {
s2.setLevel(s2.getLevel() - 1);
}
if (CAR._currentframe != 3) {
backS2.setVolume(int(((100 * M_ABS(speed)) / maxSpeed) / 3));
} else {
backS2.setVolume(0);
}
} else {
if (s2.getLevel() < 80) {
s2.setLevel(s2.getLevel() + 1);
}
s1.setLevel(int((100 * M_ABS(speed)) / maxSpeed));
if (CAR._currentframe != 3) {
backS2.setVolume(s1.getLevel() / 3);
} else {
backS2.setVolume(0);
}
}
}
function initlevelChange() {
startSound(2, "levelChangeSound", 1, 50, 0, 0, 0);
}
function formSound() {
this.sound_3.stop();
startSound(3, "sweetCollectSound", 1, 40, 0, 0, 0);
}
function formSound2(pa) {
this.sound_2.stop();
startSound(2, "specialSound", 1, 50, 0, 0, 0);
}
function formSound3() {
this.sound_2.stop();
startSound(2, "hornSound", 1, 50, 0, 0, 0);
}
function sweetCollectS(arg) {
var _local3 = Number((CAR._x / 550) * 200);
var _local2 = Number(_local3 - 100);
if (arg != 1) {
this.sound_3.stop();
startSound(3, "sweetCollectSound", 1, 80, _local2, 0, 0);
} else {
sound_2.stop();
startSound(2, "specialSound", 1, 100, 0, 0, 0);
}
}
function expS() {
this.sound_8.stop();
var _local4 = Number((CAR._x / 550) * 200);
var _local3 = Number(_local4 - 100);
if (_root._currentframe == 7) {
_local3 = 80;
}
startSound(8, "expSound", 1, 50, _local3, 0, 0);
}
function stopSlide() {
this.sound_7.stop(["slideSound"]);
_root.sl = 0;
}
function slideS() {
if (_root.sl != 1) {
this.sound_7.stop();
startSound(7, "slideSound", 999, 0, -50, 0, 0);
}
_root.sl = 1;
}
function ohnoS() {
wrongS();
this.sound_7.stop();
var _local3 = Number((CAR._x / 550) * 200);
var _local2 = Number(_local3 - 100);
startSound(7, "ohnoSound", 1, 100, _local2, 0, 0);
}
function wrongAir() {
this.sound_4.stop();
startSound(4, "airSound", 1, 80, 0, 0, 0);
}
function airS() {
startSound(4, "airSound", 1, 80, 0, 0, 0);
}
function timerS() {
sound_4.stop();
startSound(4, "timerSound", 1, 40, 0, 0, 0);
}
function jumpS() {
startSound(4, "jumpSound", 1, 40, 0, 0, 0);
}
function wrongS() {
var _local3 = Number((CAR._x / 550) * 200);
var _local2 = Number(_local3 - 100);
this.sound_6.stop();
startSound(6, "wrongSound", 1, 80, _local2, 0, 0);
}
function horseS() {
var _local2 = this.sound_5.position;
var _local3 = this.sound_5.duration;
if ((_local2 >= _local3) or (_local2 == undefined)) {
startSound(5, "horseSound", 1, 70, 0, 0, 0);
}
}
function overS() {
startSound(2, "overSound", 1, 70, 0, 0, 0);
}
function hornS() {
var _local2 = Number((CAR._x / 550) * 200);
var _local1 = Number(_local2 - 100);
startSound(2, "hornSound", 1, 40, _local1, 0, 0);
}
function hornS2() {
startSound(2, "hornSound", 1, 40, 0, 0, 0);
}
function finS() {
startSound(2, "fin", 1, 70, 0, 0, 0);
}
function surpriseS() {
startSound(5, "surpriseSound", 1, 60, 0, 0, 0);
}
function stopBackS() {
backS2.stop();
}
function clickS2(pa) {
sound_5.stop(["clickSound"]);
startSound(5, "clickSound", 1, 100, pa, 0, 0);
}
_global.$_gameID = 14;
_global.$_scoreURL = "";
_global.mainURL = "";
_global.$_createKid_url = "create.php";
_global.$_local = 0;
_global.$_myKidHair;
_global.$_myKidFace;
_global.$_myKidSkin;
_global.$_skinF = "/flash_body/skin/";
_global.$_hairF = "/flash_body/hair/";
_global.$_faceF = "/flash_body/face/skin";
_global.$_userIdURL = "/db/pkapi/dbhandler.php?cmd=getUsername,getPlayCount&user_id=";
_global.$_featuresURL = "/db/pkapi/dbhandler.php?cmd=getFeatures&user_id=";
_global.$_clothesListURL = "/db/pkapi/dbhandler.php?cmd=getClothesList&user_id=";
_global.$_clothesURL = "/db/pkapi/dbhandler.php?cmd=getClothes&user_id=";
_global.$_clothesListURLGuest = "/db/pkapi/dbhandler.php?cmd=getClothesList";
_global.$_cattrousers = new Array({c_name:"", c_id:"", c_url:""});
_global.$_cattops = new Array({c_name:"", c_id:"", c_url:""});
_global.$_catskirts = new Array({c_name:"", c_id:"", c_url:""});
_global.$_catshoes = new Array({c_name:"", c_id:"", c_url:""});
_global.$_catjackets = new Array({c_name:"", c_id:"", c_url:""});
_global.$_cathats = new Array({c_name:"", c_id:"", c_url:""});
_global.$_catglasses = new Array({c_name:"", c_id:"", c_url:""});
_global.$_catdresses = new Array({c_name:"", c_id:"", c_url:""});
if (_global.$_local) {
_global.$_skinF = "flash_body/skin/";
_global.$_hairF = "flash_body/hair/";
_global.$_faceF = "flash_body/face/skin";
_global.$_userIdURL = _global.$_localURL + _global.$_userIdURL;
_global.$_featuresURL = _global.$_localURL + _global.$_featuresURL;
_global.$_clothesListURL = _global.$_localURL + _global.$_clothesListURL;
_global.$_clothesURL = _global.$_localURL + _global.$_clothesURL;
_global.$_clothesListURLGuest = _global.$_localURL + _global.$_clothesListURLGuest;
_global.$_clothesServer = _global.$_localURL;
}
function randRange(min, max) {
var _local1 = Math.round(Math.random() * (max - min)) + min;
return(_local1);
}
Number.prototype.padWithZeroes = function (totalLen) {
var _local2 = this.toString();
while (_local2.length < totalLen) {
_local2 = "0" + _local2;
}
return(_local2);
};
function Lprogress() {
_global.LoaderClip.loaderBarN(1, 7, _global.LoaderClip.percent, "_xscale", MyLevel, "Stop:5");
temploaded = (movieTotal * Math.round(getBytesLoaded() / 1024)) / Math.round(getBytesTotal() / 1024);
counter2 = ((((((("LOADING <font color='#FFFF00'>" + Math.floor(_global.LoaderClip.percent)) + "</font> %") + " <font color='#FFFF00'>") + Math.floor(temploaded)) + "</font> KB OF ") + "<font color='#FFFF00'>") + movieTotal) + "</font> KB";
updateAfterEvent();
}
function reminderEmail(emaild) {
rem = new LoadVars();
var _local1 = random(10000);
if ($_local) {
(("http://test.protokid.com/db/pkapi/" + _local1) + "/dbhandler.php?cmd=forgotDetails&email=") + emaild;
} else {
"/db/pkapi/dbhandler.php?cmd=forgotDetails&email=" + emaild;
}
}
function checkMtemp() {
var _local1 = form.professor.textProf.enterM.text;
if (_local1.isEmail()) {
reminderEmail(form.professor.textProf.emailR);
form.professor.textProf.meemail = true;
form.professor.textProf.gotoAndPlay(6);
} else {
form.professor.textProf.formstats = "Invalid Email Address";
form.professor.textProf.emailR = "";
form.professor.textProf.focusme();
}
}
function callBackground() {
_root._quality = "LOW";
mainSoundIN();
initBackgroundS();
attachMovie("firstScreen", "firstScreen", 100);
firstScreen._x = (firstScreen._y = (firstScreen._alpha = 0));
firstScreen.onEnterFrame = function () {
if (firstScreen._alpha < 100) {
firstScreen._alpha = firstScreen._alpha + 5;
} else {
delete firstScreen.onEnterFrame;
gotoAndStop (7);
}
};
}
var movieTotal = 495;
var MyLevel = "_level0";
mainSound();
String.prototype.noCache = function () {
var _local3 = _level0._URL.indexOf("file:///") == -1;
var _local2 = this.indexOf("://") == -1;
if (_local3 || (!_local2)) {
this=this + ((this.indexOf("?") == -1) ? "?" : "&");//parameter overwritten
this + ((this.indexOf("?") == -1) ? "?" : "&");
this=this + ("noCache=" + new Date().getTime());//parameter overwritten
this + ("noCache=" + new Date().getTime());
}
return(this);
};
String.prototype.noCache2 = function () {
var _local3 = _level0._URL.indexOf("file:///") == -1;
var _local2 = this.indexOf("://") == -1;
if (_local3 || (!_local2)) {
this=this + ((this.indexOf("?") == -1) ? "&" : "&");//parameter overwritten
this + ((this.indexOf("?") == -1) ? "&" : "&");
this=this + ("noCache=" + new Date().getTime());//parameter overwritten
this + ("noCache=" + new Date().getTime());
}
return(this);
};
_root.error1 = "No username";
_root.error2 = "No password";
_root.error3 = "Failed login";
_root.error4 = "No such user";
_root.error5 = "Login incorrect";
String.prototype.isEmail = function () {
if (this.length < 5) {
return(false);
}
var _local4 = "*|,\":<>[]{}`';()&$#%";
var _local3 = this.length;
var _local2 = 0;
while (_local2 < _local3) {
if (_local4.indexOf(this.charAt(_local2)) != -1) {
return(false);
}
_local2++;
}
var _local6 = this.lastIndexOf("@");
if ((_local6 < 1) || (_local6 == (_local3 - 1))) {
return(false);
}
var _local5 = this.lastIndexOf(".");
if ((_local5 < 4) || (_local5 == (_local3 - 1))) {
return(false);
}
if (_local6 > _local5) {
this.__error = "Invalid Email Address";
return(false);
}
return(true);
};
MovieClip.prototype.rectangle_1 = function (w, h, x, y) {
this.moveTo(x, y);
this.lineTo(x + w, y);
this.lineTo(x + w, y + h);
this.lineTo(x, y + h);
};
MovieClip.prototype.Init_loaderBar = function (clipP, clipCH, clipPROP) {
_root[clipP][clipCH][clipPROP] = 0;
return((_global.LoaderClip = _root[clipP][clipCH]));
};
MovieClip.prototype.loaderBarN = function (ratio, friction, scale, PROP, Level, Event) {
this.ratio = "." + ratio;
this.friction = "." + friction;
this.scale = scale;
this.percent = (this[MyLevel].getBytesLoaded() / this[MyLevel].getBytesTotal()) * 100;
this.sPROP = ((this.scale - this[PROP]) * this.ratio) + (this.sPROP * this.friction);
this[PROP] = this[PROP] + this.sPROP;
if ((this.percent >= 100) && (this[PROP] >= this.percent)) {
clearInterval(MyloadInterval);
Temp = Event.split(":", 2);
EventTemp = Temp[0];
frame = Temp[1];
this[PROP] = 120;
switch (EventTemp) {
case "Play" :
this[MyLevel].gotoAndPlay(frame);
break;
case "Stop" :
this[MyLevel].gotoAndStop(frame);
}
}
};
protoLogo.onEnterFrame = function () {
if (protoLogo._alpha < 100) {
protoLogo._alpha = protoLogo._alpha + 5;
} else {
delete protoLogo.onEnterFrame;
protoLogo.gotoAndStop(2);
Init_loaderBar("protoLogo", "progressbar", "_xscale");
MyloadInterval = setInterval(Lprogress, 31);
}
};
Instance of Symbol 16 MovieClip "protoLogo" in Frame 4
onClipEvent (load) {
this._alpha = 0;
}
Frame 5
clearInterval(MyloadInterval);
play();
function randRange(min, max) {
var _local1 = M_ROUND(M_RAND() * (max - min)) + min;
return(_local1);
}
function easeToRot(clip, cEase, cFrames, cFrom, cTarget, cProp, cNext) {
var cEase;
var cNext;
var clip = clip;
clip[cProp] = cFrom;
var currentLoc = cFrom;
var diff = (cTarget - currentLoc);
var TT = 0;
var FRAMES = cFrames;
clip.onEnterFrame = function () {
_root.breakCar();
if ((TT++) < FRAMES) {
clip[cProp] = int(Math[cEase](TT, currentLoc, diff, FRAMES));
} else {
delete clip.onEnterFrame;
if (cNext != undefined) {
cNext();
}
}
};
}
function easeTo2(clip, cEase, cFrames, cFrom, cTarget, cProp, cNext) {
var cEase;
var cNext;
var clip = clip;
clip[cProp] = cFrom;
var currentLoc = cFrom;
var _local1 = cFrom2;
var diff = (cTarget - currentLoc);
var _local3 = cTarget2 - _local1;
var TT = 0;
var FRAMES = cFrames;
clip.onEnterFrame = function () {
if ((TT++) < FRAMES) {
clip[cProp] = int(Math[cEase](TT, currentLoc, diff, FRAMES));
} else {
delete clip.onEnterFrame;
if (cNext != undefined) {
cNext();
}
}
};
}
function decelEase(cEase, cFrames, cVal, cTarget, cNext) {
if (this.cont == undefined) {
this.createEmptyMovieClip("cont", 1200);
}
var cEase;
var cNext;
var clip = this.cont;
var currentVal = cVal;
var diff = (cTarget - currentVal);
var TT = 0;
var FRAMES = cFrames;
clip.onEnterFrame = function () {
if ((TT++) < FRAMES) {
speed = int(Math[cEase](TT, currentVal, diff, FRAMES));
} else {
delete clip.onEnterFrame;
if (cNext != undefined) {
cNext();
}
}
};
}
function easeTo(clip, cEase, cFrames, cFrom, cTarget, cProp, cNext) {
delete clip.onEnterFrame;
if (clip[cProp] != 0) {
var cEase;
var cNext;
var clip = clip;
clip[cProp] = cFrom;
var currentLoc = cFrom;
var diff = Number(cTarget - currentLoc);
if (Math.abs(diff) > 25) {
horseS();
}
var TT = 0;
var FRAMES = cFrames;
clip.onEnterFrame = function () {
if (Number(TT++) < FRAMES) {
CAR_BASE._rotation = Number(int(clip[cProp] / 1.5));
clip[cProp] = int(Math[cEase](TT, currentLoc, diff, FRAMES));
} else {
delete clip.onEnterFrame;
if (cNext != undefined) {
cNext();
}
}
};
} else {
return(undefined);
}
}
function easeToSimple(clip, cEase, cFrames, cFrom, cTarget, cProp, cNext) {
var cEase;
var cNext;
var clip = clip;
clip[cProp] = cFrom;
clip._yscale = clip[cProp];
var currentLoc = cFrom;
var diff = Number(cTarget - currentLoc);
var TT = 0;
var FRAMES = cFrames;
clip.onEnterFrame = function () {
if (Number(TT++) < FRAMES) {
clip[cProp] = (clip._yscale = int(Math[cEase](TT, currentLoc, diff, FRAMES)));
} else {
delete clip.onEnterFrame;
if (cNext != undefined) {
cNext();
}
}
};
}
function easeToSimple_b(clip, cEase, cFrames, cFrom, cTarget, cProp, cNext) {
var cEase;
var cNext;
var clip = clip;
clip[cProp] = cFrom;
var currentLoc = cFrom;
var diff = Number(cTarget - currentLoc);
var TT = 0;
var FRAMES = cFrames;
clip.onEnterFrame = function () {
if (Number(TT++) < FRAMES) {
clip[cProp] = int(Math[cEase](TT, currentLoc, diff, FRAMES));
} else {
delete clip.onEnterFrame;
if (cNext != undefined) {
cNext();
}
}
};
}
Math.toStandardAngle = function (ang) {
return(((ang % 360) + 360) % 360);
};
Math.distance = function (x1, y1, x2, y2) {
return(Number(M_SQR(M_POW(x1 - x2, 2) + M_POW(y1 - y2, 2))));
};
Math.easeOutBounce = function (t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return(Number((c * ((7.5625 * t) * t)) + b));
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return(Number((c * (((7.5625 * t) * t) + 0.75)) + b));
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return(Number((c * (((7.5625 * t) * t) + 0.9375)) + b));
}
t = t - 0.954545454545455;
return(Number((c * (((7.5625 * t) * t) + 0.984375)) + b));
};
Math.easeInBack = function (t, b, c, d, s) {
if (s == undefined) {
s = 1.00158;
}
t = t / d;
return(Number((((c * t) * t) * (((s + 1) * t) - s)) + b));
};
Math.easeInBounce = function (t, b, c, d) {
return(Number((c - Math.easeOutBounce(d - t, 0, c, d)) + b));
};
Math.easeInQuart = function (t, b, c, d) {
t = t / d;
return(Number(((((c * t) * t) * t) * t) + b));
};
Math.easeInCirc = function (t, b, c, d) {
t = t / d;
return(Number(((-c) * (Math.sqrt(1 - (t * t)) - 1)) + b));
};
Math.easeInQuad = function (t, b, c, d) {
t = t / d;
return(Number(((c * t) * t) + b));
};
Math.easeOutQuad = function (t, b, c, d) {
t = t / d;
return(Number((((-c) * t) * (t - 2)) + b));
};
Math.easeInOutQuad = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(Number((((c / 2) * t) * t) + b));
}
t--;
return(Number((((-c) / 2) * ((t * (t - 2)) - 1)) + b));
};
Frame 6
function deleteLoader() {
protoLogo.anim.gotoAndStop(protoLogo.anim._totalframes);
protoLogo.onEnterFrame = function () {
if (protoLogo._alpha > 0) {
protoLogo._alpha = protoLogo._alpha - 5;
} else {
delete protoLogo.onEnterFrame;
protoLogo.swapDepths(99);
protoLogo.removeMovieClip();
_root.callBackground();
}
};
}
stop();
deleteLoader();
Frame 7
play();
Frame 8
gotoAndPlay (9);
Frame 9
_quality = "LOW";
Stage.showMenu = false;
function checkdata_friend(userName, userEmail, friendEmail) {
var _local4 = _global.$_gameID;
userEmail = escape(userEmail);
friendEmail = escape(friendEmail);
var _local2 = new LoadVars();
_local2.onLoad = function (ok) {
if (ok) {
return(undefined);
}
};
((((((((_global.mainURL + "/db/pkapi/dbhandler.php?cmd=sendFriend&game_id=") + _local4) + "&name=") + userName) + "&from=") + userEmail) + "&to=") + friendEmail) + "&flash=true";
}
function getHiScore(sTarget1, sTarget2, gameIDf, sUrl, sNumber, sDays, eNext) {
var sTarget1 = sTarget1;
var sTarget2 = sTarget2;
var _local1 = 14;
var eNext = eNext;
var sDays = sDays;
var _local2 = ((sDays != 0) ? ((("getRecent&game_id=" + _local1) + "&num_days=") + sDays) : ((("getScores&game_id=" + _local1) + "&num_scores=") + sNumber));
dScore = new LoadVars();
("/db/pkapi/dbhandler.php?cmd=" + _local2) + "&flash=true".noCache2();
dScore.onLoad = function (ok) {
if (ok) {
if (eNext != undefined) {
eNext(sTarget1, sTarget2, sDays);
}
}
};
}
function displayHiscore(sTarget1, sTarget2, sDays) {
var _local4 = new Array();
for (var _local8 in dScore) {
var _local6 = _local8.split("score")[1];
if (dScore[_local8] == _root.usernameData) {
dScore[_local8] = ("<font color='#9FB17E'>" + dScore[_local8]) + "</font>";
tempSubs = _local8.split("username");
trempSubs2 = parseInt(tempSubs[1]);
_local4.push(trempSubs2);
}
if (_local6 != undefined) {
var _local7 = parseInt(dScore[_local8]);
sTarget1[sTarget2][_local8] = _local7.padWithZeroes(7);
} else {
sTarget1[sTarget2][_local8] = dScore[_local8].toUpperCase();
}
}
for (var _local9 in _local4) {
sTarget1[sTarget2]["score" + _local4[_local9]] = ("<font color='#9FB17E'>" + sTarget1[sTarget2]["score" + _local4[_local9]]) + "</font>";
}
delete dScore;
if ((sDays < 30) && (sDays > 0)) {
getHiScore(sTarget1, "scores_month_mc", 11, _global.$_scoreURL, 0, 30, displayHiscore);
} else {
sTarget1.scores_week_mc.gotoAndPlay(2);
return(undefined);
}
}
function endGame() {
delete this.onEnterFrame;
clearInterval(updateInterval);
_root.keys = false;
overS();
leveler3.l = "GAME OVER";
leveler3.gotoAndStop(2);
interSound = setInterval(changeSoundlevels, 20);
}
function changeSoundlevels() {
if (s1.getLevel() > 0) {
s1.setLevel(s1.getLevel() - 1);
}
if (s2.getLevel() > 0) {
s2.setLevel(s2.getLevel() - 1);
}
if ((s2.getLevel() <= 0) && (s1.getLevel() <= 0)) {
clearInterval(interSound);
sweetsReminder();
}
updateAfterEvent();
}
function sweetsReminder() {
countSweets = setInterval(countSweetsI, 35);
}
function countSweetsI() {
if (_root.coins > 0) {
_root.coins--;
_root.coinsFormat = _root.coins.padWithZeroes(4);
var _local2 = Math.floor(_root.coins / 3);
if (_local2 < 0) {
_local2 = 1;
}
_root.score = _root.score + _local2;
_root.scoreFormat = _root.score.padWithZeroes(5);
_root.sweetCollectS();
if (cover.coinsC._currentframe == 1) {
cover.coinsC.gotoAndPlay(2);
}
} else {
clearInterval(countSweets);
prepareMask();
}
updateAfterEvent();
}
function prepareMask() {
this.attachMovie("circleMask", "circleMask", 12);
circleMask._x = CAR._x + 30;
circleMask._y = CAR._y + 30;
circleMask._width = 880;
circleMask._height = 750;
BACKGROUND.setMask(circleMask);
backS2.stop(["motorSound"]);
_root.addHiScore(_root.MID, 14, _root.score);
finS();
easeToSimple(circleMask, "easeOutQuad", 34, circleMask._xscale, 0, "_xscale", removeOver);
}
function removeOver() {
RoadManager.removeListener(BACKGROUND);
CarManager.removeListener(CAR);
BACKGROUND.gotoAndStop(2);
circleMask.removeMovieClip();
leveler3.gotoAndStop(3);
}
function upVol() {
if (s1.getLevel() < 80) {
s1.setLevel(s1.getLevel() + 1);
if (s2.getLevel() > 0) {
s2.setLevel(s2.getLevel() - 1);
}
} else {
clearInterval(upSound);
s2.setLevel(0);
}
}
function coverInterface() {
if (stofriendGFX != undefined) {
stofriendGFX.removeMovieClip();
}
cover1._alpha = 0;
cover1.gotoAndStop(2);
upSound = setInterval(upVol, 34);
easeToSimple_b(cover1, "easeOutQuad", 25, 0, 100, "_alpha", bringScore);
}
function coverInterface2() {
stofriendGFX.removeMovieClip();
upSound = setInterval(upVol, 34);
bringScore();
}
function bringScore() {
proto_pic._x = -500;
proto_pic._y = -500;
if (cover._currentframe == 1) {
cover.gotoAndStop(2);
}
_root.attachMovie("scoreGFX", "scoreGFX", 13);
scoreGFX._y = (-scoreGFX._height) - 140;
scoreGFX._x = 10;
easeToSimple_b(scoreGFX, "easeOutBounce", 34, scoreGFX._y, 0, "_y", loadScore);
surpriseS();
}
function loadScore() {
cover1.gotoAndStop(1);
getHiScore(scoreGFX, "scores_week_mc", 11, _global.$_scoreURL, 0, 7, displayHiscore);
}
function rsound() {
if (s1.getLevel() > 0) {
s1.setLevel(s1.getLevel() - 1);
} else {
clearInterval(intRs);
playAgain2();
}
updateAfterEvent();
}
function playAgain() {
intRs = setInterval(rsound, 10);
}
function playAgain2() {
easeToSimple_b(scoreGFX, "easeInQuad", 30, scoreGFX._y, (-scoreGFX._height) - 140, "_y", rScore);
}
function sfriendSound() {
if (s2.getLevel() < 80) {
s2.setLevel(s2.getLevel() + 1);
s1.setLevel(s1.getLevel() - 1);
} else {
clearInterval(changeSl);
}
}
function rScore2() {
changeSl = setInterval(sfriendSound, 34);
scoreGFX.removeMovieClip();
_root.attachMovie("stofriendGFX", "stofriendGFX", 13);
stofriendGFX._alpha = 0;
stofriendGFX._y = 21;
stofriendGFX._x = 188;
easeToSimple_b(stofriendGFX, "easeOutQuad", 34, 0, 100, "_alpha", undefined);
surpriseS();
}
function removeSEF2() {
easeToSimple_b(stofriendGFX, "easeOutQuad", 34, 100, 0, "_alpha", coverInterface2);
}
function rScore() {
clearAllIntervals();
scoreGFX.removeMovieClip();
stofriendGFX.removeMovieClip();
sound_2.stop();
sound_3.stop();
sound_4.stop();
sound_5.stop();
sound_6.stop();
sound_7.stop();
sound_2.removeMovieClip();
sound_3.removeMovieClip();
sound_4.removeMovieClip();
sound_5.removeMovieClip();
sound_6.removeMovieClip();
sound_7.removeMovieClip();
leveler3.gotoAndStop(1);
leveler2.gotoAndStop(1);
leveler.gotoAndStop(1);
var _local3 = 1;
while (_local3 <= 10) {
delete this["STAR_ARR" + _local3];
_local3++;
}
STARS_CONTAINER_1 = new Array();
STARS_CONTAINER_2 = new Array();
STARS_CONTAINER_3 = new Array();
STARS_CONTAINER_4 = new Array();
STARS_CONTAINER_5 = new Array();
STARS_CONTAINER_6 = new Array();
STARS_CONTAINER_7 = new Array();
STARS_CONTAINER_8 = new Array();
STARS_CONTAINER_9 = new Array();
_root.coins = 0;
_root.score = 0;
_root.te = "00 : 00";
_root.coinsFormat = _root.coins.padWithZeroes(4);
_root.scoreFormat = _root.score.padWithZeroes(5);
_root.plusMin = 0;
_root.plusSec = 0;
setSpeed(0);
setMaxSpeed(14);
setAccel(0.2);
setDecel(0.93);
setBounce(0.8);
setX_Speed(0);
setY_Speed(0);
cover.gotoAndStop(1);
BACKGROUND.gotoAndStop(1);
CAR.initCar();
BACKGROUND.initRoad();
cover1.gotoAndStop(2);
proto_pic._x = 3;
proto_pic._y = 380;
easeToSimple_b(cover1, "easeOutQuad", 25, 100, 0, "_alpha", rCover1);
}
function rCover1() {
cover1.gotoAndStop(1);
cover1._alpha = 100;
reSoundBack();
gLevel = 0;
levelUp();
}
function addTime() {
cover.timer.gotoAndPlay(10);
clearInterval(updateInterval);
var _local2 = _root.te.split(":");
var _local3 = parseInt(_local2[0]);
var _local4 = parseInt(_local2[1]);
_root.plusMin = _local3;
_root.plusSec = _local4;
}
function reinitTime() {
countDownInit(_root.plusMin, 30 + _root.plusSec);
}
function countDownUpdate() {
var _local4 = new Date().getTime() - _root.startTime;
if (_local4 > _root.timeToWait) {
clearInterval(updateInterval);
_root.te = "00 : 00";
_root.cover.timer.gotoAndStop(cover.timer._totalframes - 1);
_root.endGame();
} else {
var _local5 = _root.timeToWait - _local4;
var _local2 = Math.floor(_local5 / 1000);
var _local3 = Math.floor(_local2 / 60);
if (_local3 < 1) {
if (_local2 < 20) {
timerS();
if (cover.timer._currentframe == 1) {
cover.timer.gotoAndPlay(2);
}
} else if (cover.timer._currentframe != 1) {
cover.timer.gotoAndStop(1);
}
} else if (cover.timer._currentframe != 1) {
cover.timer.gotoAndStop(1);
}
_local2 = String(_local2 % 60);
_local3 = String(_local3 % 60);
if (_local2.length < 2) {
_local2 = "0" + _local2;
}
if (_local3.length < 2) {
_local3 = "0" + _local3;
}
_root.te = (_local3 + " : ") + _local2;
}
updateAfterEvent();
}
function countDownInit(minutes, seconds) {
cover.timer.gotoAndStop(1);
_root.timeToWait = (60000 * minutes) + (1000 * seconds);
_root.startTime = new Date().getTime();
updateInterval = setInterval(countDownUpdate, 1000);
}
function clearAllIntervals() {
i = 100;
while ((--i) > -1) {
clearInterval(i);
}
}
function setSpeed(val) {
this.speed = val;
}
function getSpeed() {
return(this.speed);
}
function setMaxSpeed(val) {
this.maxSpeed = val;
}
function getMaxSpeed() {
return(this.maxSpeed);
}
function setAccel(val) {
this.accel = val;
}
function getAccel() {
return(this.accel);
}
function setDecel(val) {
this.decel = val;
}
function getDecel() {
return(this.decel);
}
function setBounce(val) {
this.bounce = val;
}
function getBounce() {
return(this.bounce);
}
function setX_Speed(val) {
this.xSpeed = val;
}
function getX_Speed() {
return(this.xSpeed);
}
function setY_Speed(val) {
this.ySpeed = val;
}
function getY_Speed() {
return(this.ySpeed);
}
function accelerate(dir) {
if (M_ABS(speed) < M_ABS(maxSpeed)) {
speed = speed + (dir * accel);
if (M_ABS(speed) > M_ABS(maxSpeed)) {
speed = int(dir * maxSpeed);
}
}
}
function accelerateInter(dir) {
speed = speed;
}
function decelerate() {
if (_global.acSound == 0) {
accel_s(-1);
}
_global.acSound = 1;
speed = int(speed * decel);
motor_ss(speed * 10);
}
function setM() {
CAR.mover = true;
}
function ease_Speed(a) {
if (a == "in") {
decelEase("easeOutQuad", speed, speed, speed + (speed / 2), undefined);
} else {
decelEase("easeInQuad", speed, speed, speed - (speed / 2), undefined);
}
}
function breakCar() {
if (CAR.mover) {
if (speed != 0) {
if (speed > 0) {
speed = speed - 1;
} else {
speed = speed + 1;
}
} else {
return(undefined);
}
}
}
var M_ABS = Math.abs;
var M_SIN = Math.sin;
var M_COS = Math.cos;
var M_PI = Math.PI;
var M_SQR = Math.sqrt;
var M_POW = Math.pow;
var M_ROUND = Math.round;
var M_RAND = Math.random;
var M_CONV = (M_PI / 180);
var K_IS_DOWN = Key.isDown;
var K_SPACE = 32;
var K_RIGHT = 39;
var K_LEFT = 37;
var K_UP = 38;
var K_DOWN = 40;
var BACKGROUND = back_mc;
var BACKGROUND_B1 = BACKGROUND.back1;
var BACKGROUND_B2 = BACKGROUND.back2;
var CAR = BACKGROUND.car_mc;
var CAR_H = CAR._height;
var CAR_BASE = CAR.base_mc;
var CAR_ANT = CAR_BASE.ant;
var C_SHADOW = CAR.shadow_mc;
var roadNum = null;
var gLevel = 0;
var CarManager = {};
var RoadManager = {};
AsBroadcaster.initialize(CarManager);
AsBroadcaster.initialize(RoadManager);
Array.prototype.inArray = function (n, lookwithin) {
if (lookwithin) {
var _local2 = "";
} else {
var _local2 = "^";
}
return((("^" + this.join("^")) + "^").split((_local2 + n) + _local2).length > 1);
};
Array.prototype.deleteAt = function (index) {
if (index == 0) {
this.shift();
} else if (index == (this.length - 1)) {
this.pop();
} else if ((index > 0) && (index < (this.length - 1))) {
this.splice(index, 1);
}
};
Array.prototype.copyOfArray = function () {
var _local3 = [];
var _local2 = this.length;
while (_local2--) {
_local3[_local2] = this[_local2].copyOfArray() || (this[_local2]);
}
return(_local3);
};
var TOTAL_GRID_X = new Array("", 0, 25, 50, 75, 100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500, 525, 550, 575, 0, 25, 50, 75, 100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500, 525, 550, 575, 0, 25, 50, 75, 100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500, 525, 550, 575, 0, 25, 50, 75, 100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500, 525, 550, 575, 0, 25, 50, 75, 100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500, 525, 550, 575, 0, 25, 50, 75, 100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500, 525, 550, 575, 0, 25, 50, 75, 100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500, 525, 550, 575, 0, 25, 50, 75, 100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500, 525, 550, 575, 0, 25, 50, 75, 100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500, 525, 550, 575, 0, 25, 50, 75, 100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500, 525, 550, 575, 0, 25, 50, 75, 100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500, 525, 550, 575, 0, 25, 50, 75, 100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500, 525, 550, 575, 0, 25, 50, 75, 100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500, 525, 550, 575, 0, 25, 50, 75, 100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500, 525, 550, 575, 0, 25, 50, 75, 100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500, 525, 550, 575, 0, 25, 50, 75, 100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500, 525, 550, 575);
var TOTAL_GRID_Y = new Array("", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 225, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375);
var DATA_OBS1 = new Array("", 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 174, 175, 176, 177, 178, 179, 180, 181, 182, 198, 199, 200, 201, 202, 203, 204, 205, 206, 222, 223, 224, 225, 226, 227, 228, 229, 230, 246, 247, 248, 249, 250, 251, 252, 253, 254, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379);
var DATA_OBS2 = new Array("", 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379);
var DATA_OBS3 = new Array("", 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 35, 36, 37, 38, 39, 40, 41, 42, 43, 59, 60, 61, 62, 63, 64, 65, 66, 67, 83, 84, 85, 86, 87, 88, 89, 90, 91, 107, 108, 109, 110, 111, 112, 113, 114, 115, 131, 132, 133, 134, 135, 136, 137, 138, 139, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 270, 271, 272, 273, 274, 275, 276, 277, 278, 294, 295, 296, 297, 298, 299, 300, 301, 302, 318, 319, 320, 321, 322, 323, 324, 325, 326, 342, 343, 344, 345, 346, 347, 348, 349, 350, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379);
var DATA_OBS4 = new Array("", 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 102, 103, 104, 108, 109, 113, 114, 115, 133, 137, 138, 139, 157, 158, 159, 160, 161, 162, 163, 181, 182, 183, 184, 185, 186, 187, 206, 207, 208, 209, 210, 211, 231, 232, 233, 234, 235, 255, 256, 257, 258, 259, 279, 280, 281, 282, 283, 300, 301, 302, 303, 304, 305, 306, 307, 324, 325, 326, 327, 328, 329, 330, 331, 348, 349, 350, 351, 352, 353, 354, 355, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379);
var DATA_OBS5 = new Array("", 16, 17, 18, 19, 40, 41, 42, 43, 64, 65, 66, 67, 88, 89, 90, 91, 112, 113, 114, 115, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379);
var DATA_OBS6 = new Array("", 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 30, 31, 32, 33, 40, 41, 42, 43, 54, 55, 56, 57, 64, 65, 66, 67, 78, 79, 80, 81, 88, 89, 90, 91, 102, 103, 104, 105, 112, 113, 114, 115, 126, 127, 128, 129, 136, 137, 138, 139, 150, 151, 152, 153, 160, 161, 162, 163, 174, 175, 176, 177, 184, 185, 186, 187, 198, 199, 200, 201, 208, 209, 210, 211, 222, 223, 224, 225, 232, 233, 234, 235, 246, 247, 248, 249, 256, 257, 258, 259, 270, 271, 272, 273, 280, 281, 282, 283, 294, 295, 296, 297, 304, 305, 306, 307, 318, 319, 320, 321, 328, 329, 330, 331, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379);
var DATA_OBS7 = new Array("", 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 30, 31, 32, 33, 40, 41, 42, 43, 54, 55, 56, 57, 64, 65, 66, 67, 78, 79, 80, 81, 88, 89, 90, 91, 102, 103, 104, 105, 112, 113, 114, 115, 126, 127, 128, 129, 136, 137, 138, 139, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 222, 223, 224, 225, 232, 233, 234, 235, 246, 247, 248, 249, 256, 257, 258, 259, 270, 271, 272, 273, 280, 281, 282, 283, 294, 295, 296, 297, 304, 305, 306, 307, 318, 319, 320, 321, 328, 329, 330, 331, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379);
var DATA_OBS8 = new Array("", 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 39, 40, 41, 42, 43, 63, 64, 65, 66, 67, 87, 88, 89, 90, 91, 111, 112, 113, 114, 115, 135, 136, 137, 138, 139, 159, 160, 161, 162, 163, 183, 184, 185, 186, 187, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379);
var DATA_OBS9 = new Array("", 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 34, 35, 36, 37, 38, 39, 58, 59, 60, 61, 62, 63, 82, 83, 84, 85, 86, 87, 106, 107, 108, 109, 110, 111, 130, 131, 132, 133, 134, 135, 154, 155, 156, 157, 158, 159, 178, 179, 180, 181, 182, 183, 202, 203, 204, 205, 206, 207, 226, 227, 228, 229, 230, 231, 250, 251, 252, 253, 254, 255, 274, 275, 276, 277, 278, 279, 298, 299, 300, 301, 302, 303, 322, 323, 324, 325, 326, 327, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379);
var DATA_OBS10 = new Array("", 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 61, 62, 63, 64, 65, 66, 67, 85, 86, 87, 88, 89, 90, 91, 109, 110, 111, 112, 113, 114, 115, 133, 134, 135, 136, 137, 138, 139, 157, 158, 159, 160, 161, 162, 163, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379);
var DATA_OBS11 = new Array("", 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 135, 136, 137, 138, 139, 159, 160, 161, 162, 163, 183, 184, 185, 186, 187, 207, 208, 209, 210, 211, 231, 232, 233, 234, 235, 255, 256, 257, 258, 259, 279, 280, 281, 282, 283, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379);
var DATA_OBS12 = new Array("", 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 126, 127, 128, 129, 130, 150, 151, 152, 153, 154, 174, 175, 176, 177, 178, 198, 199, 200, 201, 202, 222, 223, 224, 225, 226, 246, 247, 248, 249, 250, 270, 271, 272, 273, 274, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379);
var DATA_OBS13 = new Array("", 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 174, 175, 176, 177, 178, 179, 180, 181, 182, 198, 199, 200, 201, 202, 203, 204, 205, 206, 222, 223, 224, 225, 226, 227, 228, 229, 230, 246, 247, 248, 249, 250, 251, 252, 253, 254, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379);
var DATA_OBS14 = new Array("", 6, 7, 8, 9, 12, 13, 14, 15, 16, 17, 18, 19, 30, 31, 32, 37, 38, 39, 40, 41, 42, 43, 55, 56, 61, 62, 63, 64, 65, 66, 67, 80, 81, 84, 85, 86, 87, 88, 89, 90, 91, 104, 105, 106, 107, 108, 109, 110, 114, 115, 127, 128, 129, 130, 131, 132, 133, 134, 138, 139, 150, 151, 152, 153, 156, 157, 162, 163, 174, 175, 176, 184, 185, 186, 187, 198, 199, 200, 208, 209, 210, 211, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 246, 247, 248, 249, 250, 251, 252, 253, 254, 258, 259, 270, 271, 272, 273, 274, 275, 276, 277, 278, 282, 283, 296, 297, 298, 299, 300, 301, 302, 306, 307, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379);
var DATA_OBS15 = new Array("", 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 30, 31, 32, 33, 34, 35, 36, 40, 41, 42, 43, 54, 55, 56, 57, 58, 59, 60, 64, 65, 78, 79, 80, 81, 82, 83, 84, 87, 88, 105, 106, 107, 108, 109, 110, 111, 112, 129, 130, 131, 132, 133, 134, 135, 136, 137, 153, 156, 160, 161, 162, 163, 174, 175, 176, 180, 184, 185, 186, 187, 198, 199, 200, 204, 208, 209, 210, 211, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 246, 247, 248, 249, 250, 254, 255, 256, 257, 258, 259, 270, 271, 272, 273, 274, 278, 279, 280, 281, 282, 283, 294, 295, 296, 297, 298, 302, 303, 304, 307, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379);
var DATA_OBS20 = new Array("", 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379);
function restoreRot() {
if ((CAR_ANT._rotation != 0) && (CAR_ANT.onEnterFrame == undefined)) {
if (CAR.smoke._currentframe == 1) {
CAR.smoke.gotoAndPlay(2);
}
easeTo(CAR_ANT, "easeOutBounce", 30, CAR_ANT._rotation, 0, "_rotation", undefined);
}
}
function restoreCarPos() {
CAR.manuverSpeed = CAR.MANUVER_MIN_SPEED;
CAR.wheel1._rotation = (CAR.wheel2._rotation = 0);
if ((CAR_ANT._rotation != 0) && (CAR_ANT.onEnterFrame == undefined)) {
easeTo(CAR_ANT, "easeOutBounce", 30, CAR_ANT._rotation, 0, "_rotation", undefined);
}
}
function turnLeft() {
if (CAR.mover3 != false) {
trailer();
if (CAR_ANT._rotation < 90) {
CAR_ANT._rotation = CAR_ANT._rotation + ((CAR.manuverSpeed * speed) / 20);
}
CAR._rotation = CAR._rotation - (CAR.manuverSpeed * speed);
CAR.wheel1._rotation = (CAR.wheel2._rotation = (-CAR.WHEEL_SPIN) * (CAR.manuverSpeed * M_ABS(speed)));
}
}
function turnRight() {
if (CAR.mover3 != false) {
if (CAR_ANT._rotation > -90) {
CAR_ANT._rotation = CAR_ANT._rotation - ((CAR.manuverSpeed * speed) / 20);
}
CAR._rotation = CAR._rotation + (CAR.manuverSpeed * speed);
CAR.wheel1._rotation = (CAR.wheel2._rotation = CAR.WHEEL_SPIN * (CAR.manuverSpeed * M_ABS(speed)));
}
}
function KeyDownH() {
if (CAR.mover3) {
if (K_IS_DOWN(K_UP)) {
accelerate(1);
} else if (K_IS_DOWN(K_DOWN)) {
accelerate(-1);
} else {
decelerate();
}
if (K_IS_DOWN(K_SPACE)) {
CAR.base_mc.gotoAndStop(2);
breakCar();
} else {
CAR.base_mc.gotoAndStop(1);
}
}
if (K_IS_DOWN(K_RIGHT)) {
turnRight();
} else if (K_IS_DOWN(K_LEFT)) {
turnLeft();
} else {
restoreCarPos();
}
updateAfterEvent();
}
function setStarVal(myID, vaL, o) {
this["STAR_ARR" + myID][o].x = (this["STAR_ARR" + myID][o].y = vaL);
}
function placeStarInit(index, pos) {
var _local4 = this["STARS_CONTAINER_" + gLevel];
var _local3 = _root.tStars;
TOTAL_STARS = _local3 + 1;
if (_local4.inArray(index)) {
remindStars(pos, _local3, index);
} else {
killStars(pos);
return(undefined);
}
}
function killStars(pos, starsNum) {
for (var _local2 in BACKGROUND["back" + pos]) {
BACKGROUND["back" + pos][_local2].removeMovieClip();
}
}
function remindStars(pos, starsNum, index) {
for (var _local8 in BACKGROUND["back" + pos]) {
BACKGROUND["back" + pos][_local8].removeMovieClip();
}
var _local2 = starsNum;
while (_local2-- , _local2 > 0) {
BACKGROUND["back" + pos].attachMovie("star", "st" + _local2, _local2);
var _local5 = this["STAR_ARR" + index][_local2].x;
var _local4 = this["STAR_ARR" + index][_local2].y;
var _local6 = this["STAR_ARR" + index][_local2].f;
BACKGROUND["back" + pos]["st" + _local2].st_f.gotoAndStop(_local6);
BACKGROUND["back" + pos]["st" + _local2]._x = _local5;
BACKGROUND["back" + pos]["st" + _local2]._y = _local4;
}
}
function destroyCar() {
CAR.gotoAndStop(3);
}
function powerOut() {
boing_ss();
if (cover.maski._x > 476) {
cover.maski._x = cover.maski._x - 1;
} else {
cover.maski.gotoAndStop(2);
destroyCar();
}
}
MovieClip.prototype.initCar = function (val) {
this.MANUVER_MIN_SPEED = 0.6;
this.RICOCHET = 2;
this.WHEEL_SPIN = 3;
this.OBS1 = BACKGROUND.back1.obs;
this.OBS2 = BACKGROUND.back2.obs;
this.OBS3 = BACKGROUND.bord;
this.setTurn(true);
this.setMove(true);
this.mover3 = true;
this._xreg = 40;
this._yreg = 50;
this._jumping = false;
this.createEmptyMovieClip("car_EnterFrameB", 1200);
var _local2 = this;
CarManager.addListener(_local2);
};
MovieClip.prototype.setMove = function (val) {
this.mover = val;
};
MovieClip.prototype.getMove = function () {
return(this.mover);
};
MovieClip.prototype.setTurn = function (val) {
this.turn = val;
};
MovieClip.prototype.getTurn = function () {
return(this.turn);
};
MovieClip.prototype.run = function () {
changeBackTrack();
if ((this._xscale <= 100) && (!this.mover3)) {
this._xscale = (this._yscale = 100);
this.mover3 = true;
}
if (this.mover2 != false) {
xSpeed = int(speed * M_SIN(this._rotation * M_CONV));
ySpeed = int(speed * M_COS(this._rotation * M_CONV));
this._x = this._x + xSpeed;
if (_root.sl == 1) {
_root.stopSlide();
}
} else {
trailer2();
}
};
MovieClip.prototype.restoreJump = function () {
this.jump("easeOutBounce", 15, this._xscale, 100, "_xscale", undefined, 1);
};
MovieClip.prototype.restoreSuspension = function () {
this.suspension("easeOutBounce", 25, this.base_mc._xscale, 100, "_xscale", undefined, 1);
};
MovieClip.prototype.jump = function (jEase, jFrames, jFrom, jTarget, jProp, jNext, del) {
this._jumping = true;
delete this.car_EnterFrameB.onEnterFrame;
this.setMove(false);
if (speed > 3) {
this.mover3 = false;
if (jTarget == 100) {
ease_Speed("out");
} else {
_root.jumpS();
ease_Speed("in");
}
this.jProp = jProp;
this.jFrom = jFrom;
this.jTarget = jTarget;
this.ease = jEase;
this.jNext = jNext;
this.del = del;
this[this.jProp] = jFrom;
this.currentProp = jFrom;
this.sY = this.shadow_mc._y;
this.diff = this.jTarget - this.jFrom;
this.TT = 0;
this.FRAMES = jFrames;
this.car_EnterFrameB.onEnterFrame = function () {
if ((this._parent.TT++) < this._parent.FRAMES) {
this._parent.mover3 = false;
this._parent.shadow_mc._yscale = (this._parent.shadow_mc._xscale = this._parent._yscale);
this._parent.shadow_mc._alpha = 100 - (this._parent._xscale - 100);
this._parent[this._parent.jProp] = (this._parent._yscale = int(Math[this._parent.ease](this._parent.TT, this._parent.currentProp, this._parent.diff, this._parent.FRAMES)));
} else {
if (this._parent.del) {
delete this.onEnterFrame;
this._parent.mover3 = true;
this._parent.shadow_mc._yscale = (this._parent.shadow_mc._xscale = 100);
this._parent.shadow_mc._alpha = 40;
this._parent.setMove(true);
this._parent._jumping = false;
}
if (this._parent.jNext != undefined) {
this._parent[this._parent.jNext]();
}
}
};
} else {
this.collidePiano();
}
};
MovieClip.prototype.collidePiano = function () {
powerOut();
var _local2 = int(M_ABS(speed));
var _local4 = 110 + _local2;
var _local3 = randRange(1, 40);
if (_local3 > 20) {
this._rotation = this._rotation - 5;
} else {
this._rotation = this._rotation + 5;
}
if (speed > 0) {
if (speed > 2) {
speed = speed - 1;
} else {
speed = 2;
}
} else if (speed < -2) {
speed = speed + 1;
} else {
speed = -2;
}
};
MovieClip.prototype.suspension = function (jEase, jFrames, jFrom, jTarget, jProp, jNext, del) {
this.setMove(false);
this.jProp = jProp;
this.jFrom = jFrom;
this.jTarget = jTarget;
this.ease = jEase;
this.jNext = jNext;
this.del = del;
this.base_mc[this.jProp] = jFrom;
this.currentProp = jFrom;
this.diff = this.jTarget - this.jFrom;
this.TT = 0;
this.FRAMES = jFrames;
this.onEnterFrame = function () {
if ((this.TT++) < this.FRAMES) {
this.base_mc[this.jProp] = (this.base_mc._yscale = int(Math[this.ease](this.TT, this.currentProp, this.diff, this.FRAMES)));
} else {
if (this.del) {
delete this.onEnterFrame;
this.mover2 = undefined;
this.setMove(true);
this._xscale = (this._yscale = 100);
}
if (this.jNext != undefined) {
this[this.jNext]();
}
}
};
};
MovieClip.prototype.collide0 = function (arg) {
_root.wrongS();
powerOut();
var _local3 = Number(110 - M_ABS(speed));
var _local5 = Number(110 + M_ABS(speed));
this.suspension("easeOutQuad", 10, _local3, _local5, "_xscale", "restoreSuspension", 0);
var _local4 = ((this._x > 300) ? (Number(speed + 10)) : (Number((-speed) - 10)));
easeTo(CAR_ANT, "easeOutBounce", 10, CAR_ANT._rotation, _local4, "_rotation", restoreRot);
};
MovieClip.prototype.collide1 = this.collide0;
MovieClip.prototype.collide3 = this.collide0;
MovieClip.prototype.collide5 = this.collide0;
MovieClip.prototype.collide6 = this.collide0;
MovieClip.prototype.collide7 = this.collide0;
MovieClip.prototype.collide8 = this.collide0;
MovieClip.prototype.collide9 = this.collide0;
MovieClip.prototype.collide11 = this.collide0;
MovieClip.prototype.collide12 = this.collide0;
MovieClip.prototype.collide13 = this.collide0;
MovieClip.prototype.collide14 = this.collide0;
MovieClip.prototype.collide15 = this.collide0;
MovieClip.prototype.collide2 = function (arg) {
var _local4 = ((this._x > 300) ? 45 : -45);
easeTo(CAR_ANT, "easeOutBounce", 10, CAR_ANT._rotation, _local4, "_rotation", undefined);
if (M_ABS(this._rotation) < 45) {
if (int(this._xscale) <= 100) {
if (ySpeed > 0) {
speed = ((speed < 4) ? 4 : (speed));
speed = ((speed > 10) ? 10 : (speed));
var _local3 = int(M_ABS(speed) - 2);
var _local5 = Number(140 + _local3);
if (speed > 3) {
this.jump("easeOutQuad", _local3, 100, _local5, "_xscale", "restoreJump", 0);
}
} else {
_root.wrongS();
var _local3 = int(M_ABS(speed));
var _local5 = Number(100 + _local3);
this.suspension("easeOutQuad", _local3, 80, _local5, "_xscale", "restoreSuspension", 0);
}
// unexpected jump
}
return(undefined);
}
_root.wrongS();
var _local3 = int(M_ABS(speed));
var _local5 = Number(100 + _local3);
this.suspension("easeOutQuad", _local3, 80, _local5, "_xscale", "restoreSuspension", 0);
speed = (-speed) * bounce;
};
MovieClip.prototype.collide10 = function () {
powerOut();
if (this._currentframe == 1) {
_root.easeTo(CAR_ANT, "easeOutBounce", 30, CAR_ANT._rotation, -45, "_rotation", undefined);
this.gotoAndStop(2);
}
if (this.gElec._currentframe == 1) {
this.gElec.play();
}
};
MovieClip.prototype.collide4 = function () {
this.mover2 = false;
var _local3 = int(M_ABS(speed));
var _local5 = Number(110 + _local3);
var _local4 = randRange(1, 40);
_root.slideS();
if (_local4 > 20) {
this.suspension("easeOutQuad", _local3, 95, _local5, "_xscale", "restoreSuspension", 0);
this._rotation = this._rotation - 5;
} else {
this._rotation = this._rotation + 5;
}
if (speed > 0) {
if (speed > 5) {
speed = speed - 1;
} else {
speed = 5;
}
} else if (speed < -5) {
speed = speed + 1;
} else {
speed = -5;
}
_root.sound_7.setPan(-this._rotation);
_root.sound_7.setVolume(Number(10 * M_ABS(speed)));
};
MovieClip.prototype.backup = function (percent) {
if (int(this._yscale) > 100) {
this.restoreJump();
}
ySpeed = Number(ySpeed * percent);
this._x = this._x - Number(xSpeed * percent);
};
MovieClip.prototype.crashFront = function () {
if (speed > 0.1) {
this.h1 = (this.h2 = (this.h3 = (this.h4 = (this.h5 = (this.h6 = (this.h7 = false))))));
var _local3 = 8;
while (_local3-- , _local3 > 0) {
var _local2 = new Object();
if (ySpeed >= 0) {
_local2.y = Number(this["hit" + _local3]._y - ySpeed);
_local2.x = Number(this["hit" + _local3]._x - xSpeed);
} else if (ySpeed < 0) {
_local2.y = int(Number(this["hit" + _local3]._y + ySpeed));
_local2.x = int(Number(this["hit" + _local3]._x + xSpeed));
}
this.localToGlobal(_local2);
if (this.OBS3.hitTest(_local2.x, _local2.y, true)) {
this["h" + _local3] = true;
var _local5 = 1;
var _local4 = 0;
this.hit_exp.gotoAndPlay(2);
continue;
}
if (this["OBS" + roadNum].o.hitTest(_local2.x, _local2.y, true)) {
var _local5 = 0;
var _local4 = this["OBS" + roadNum]._currentframe;
this["h" + _local3] = true;
if ((_local4 != 2) && (_local4 != 4)) {
this.hit_exp.gotoAndPlay(2);
}
continue;
}
if (this["OBS" + roadNum].o2.hitTest(_local2.x, _local2.y, true)) {
if (int(this._yscale) <= 100) {
var _local5 = 0;
var _local4 = 0;
this["h" + _local3] = true;
this.hit_exp.gotoAndPlay(2);
}
continue;
}
}
if ((ySpeed < 0) && (_local4 == 2)) {
var _local4 = 0;
}
if (_local4 == 4) {
speed = speed * 0.75;
this["collide" + _local4](0);
} else if (_local4 == 2) {
this["collide" + _local4](0);
} else if ((((((this.h1 && (!this.h2)) && (!this.h3)) && (!this.h4)) && (!this.h5)) && (!this.h6)) && (!this.h7)) {
this._rotation = this._rotation + (speed * this.RICOCHET);
speed = speed * 0.75;
this["collide" + _local4](0);
this.backup(1);
} else if (((((((!this.h1) && (this.h2)) && (!this.h3)) && (!this.h4)) && (!this.h5)) && (!this.h6)) && (!this.h7)) {
this._rotation = this._rotation - (speed * this.RICOCHET);
speed = speed * 0.75;
this["collide" + _local4](0);
this.backup(1);
} else if ((((((this.h1 && (this.h2)) && (this.h3)) && (!this.h4)) && (!this.h5)) && (!this.h6)) && (!this.h7)) {
speed = (-speed) * bounce;
this["collide" + _local4](0);
this.backup(1);
} else if (!(((((((!this.h1) && (!this.h2)) && (!this.h3)) && (!this.h4)) && (!this.h5)) && (!this.h6)) && (!this.h7))) {
this["collide" + _local4](0);
speed = (-speed) * bounce;
this.backup(1);
} else if (((((((!this.h1) && (!this.h2)) && (!this.h3)) && (this.h4)) && (!this.h5)) && (!this.h6)) && (!this.h7)) {
this["collide" + _local4](0);
speed = (-speed) * bounce;
this.backup(1);
this.backup(1);
} else if (((((((!this.h1) && (!this.h2)) && (!this.h3)) && (!this.h4)) && this.h5) && (!this.h6)) && (!this.h7)) {
this["collide" + _local4](0);
speed = (-speed) * bounce;
this.backup(1);
} else if (((((((!this.h1) && (!this.h2)) && (!this.h3)) && (!this.h4)) && (!this.h5)) && this.h6) && (!this.h7)) {
this._rotation = this._rotation - (speed * this.RICOCHET);
speed = speed * 0.75;
this["collide" + _local4](0);
this.backup(1);
} else if (((((((!this.h1) && (!this.h2)) && (!this.h3)) && (!this.h4)) && (!this.h5)) && (!this.h6)) && this.h7) {
this._rotation = this._rotation + (speed * this.RICOCHET);
speed = speed * 0.75;
this["collide" + _local4](0);
this.backup(1);
} else {
this.mover2 = true;
}
} else {
return(undefined);
}
};
MovieClip.prototype.crashRear = function () {
if (speed < -0.1) {
this.h8 = (this.h9 = (this.h10 = false));
var _local3 = 11;
while (_local3-- , _local3 > 7) {
var _local2 = new Object();
if (ySpeed > 0) {
_local2.y = Number(this["hit" + _local3]._y + ySpeed);
_local2.x = Number(this["hit" + _local3]._x - xSpeed);
} else if (ySpeed <= 0) {
_local2.y = Number(this["hit" + _local3]._y - ySpeed);
_local2.x = Number(this["hit" + _local3]._x + xSpeed);
}
this.localToGlobal(_local2);
if (this.OBS3.hitTest(_local2.x, _local2.y, true)) {
this["h" + _local3] = true;
var _local4 = 0;
var _local5 = 1;
this.hit_exp.gotoAndPlay(2);
continue;
}
if (this["OBS" + roadNum].o.hitTest(_local2.x, _local2.y, true)) {
var _local4 = this["OBS" + roadNum]._currentframe;
var _local5 = 0;
this["h" + _local3] = true;
if ((_local4 != 2) && (_local4 != 4)) {
this.hit_exp.gotoAndPlay(2);
}
continue;
}
if (this["OBS" + roadNum].o2.hitTest(_local2.x, _local2.y, true)) {
var _local4 = 0;
var _local5 = 0;
this["h" + _local3] = true;
this.hit_exp.gotoAndPlay(2);
continue;
}
}
if ((ySpeed < 0) && (_local4 == 2)) {
var _local4 = 0;
}
if (_local4 == 4) {
speed = speed * 0.75;
this["collide" + _local4](0);
} else if (_local4 == 2) {
this["collide" + _local4](0);
} else if ((this.h8 && (!this.h9)) && (!this.h10)) {
if (_local5) {
this._rotation = this._rotation + ((speed / 2) * this.RICOCHET);
speed = speed * 0.75;
} else {
this._rotation = this._rotation + (speed * this.RICOCHET);
speed = (-speed) * 0.6;
}
this["collide" + _local4](0);
this.backup(1);
} else if (((!this.h8) && (this.h9)) && (!this.h10)) {
if (_local5) {
this._rotation = this._rotation - ((speed / 2) * this.RICOCHET);
speed = speed * 0.75;
} else {
this._rotation = this._rotation - (speed * this.RICOCHET);
speed = (-speed) * 0.6;
}
this.backup(1);
} else if ((this.h8 && (this.h9)) && (this.h10)) {
speed = (-speed) * bounce;
this["collide" + _local4](0);
this.backup(1);
} else if (!(((!this.h8) && (!this.h9)) && (!this.h10))) {
this["collide" + _local4](0);
speed = (-speed) * bounce;
this.backup(1);
} else {
this.mover2 = true;
}
} else {
return(undefined);
}
};
function scoreInc() {
_root.val = Number(Math.floor(cover.maski._x - 476));
if (_root.val <= 0) {
_root.val = 5;
}
_root.score = _root.score + val;
_root.scoreFormat = _root.score.padWithZeroes(5);
}
function measureRace() {
if (_root.keys) {
if (cover.maski2._x < 592) {
cover.maski2._x = Number(404 + Math.floor((188 * BACKGROUND.countRoad) / LEVEL_TOTAL_LENGTH));
} else {
levelUp();
}
}
}
MovieClip.prototype.initRoad = function () {
this.countRoad = -1;
this.START_Y = this._y;
this.B1 = this.back1;
this.B2 = this.back2;
this.B1C = this.back_1_copy;
this.B2C = this.back_2_copy;
this.B1_O = this.B1.obs;
this.B2_O = this.B2.obs;
this.B1_O.gotoAndStop(20);
this.B2_O.gotoAndStop(20);
this.B1H = this.B1._height;
RoadManager.addListener(this);
};
MovieClip.prototype.getRoadPos = function () {
var _local3 = TOTAL_STARS;
if (Number((this.B1._y + this.B1H) > (CAR._y + 30)) && (this.B1._y < (CAR._y + 30))) {
roadNum = 1;
} else if (Number((this.B2._y + this.B1H) > (CAR._y + 30)) && (this.B2._y < (CAR._y + 30))) {
roadNum = 2;
}
if ((this["back" + roadNum]._y > -100) && (this["back" + roadNum]._y < 420)) {
while (_local3-- , _local3 > 0) {
var _local4 = Number(this["back" + roadNum]["st" + _local3]._x + 14);
var _local6 = Number(((40 + (550 - this["back" + roadNum]._y)) - this["back" + roadNum]["st" + _local3]._y) + 14);
var _local5 = Math.distance(_local4, _local6, CAR._x, CAR._y);
if (_local5 < 40) {
if (this["back" + roadNum]["st" + _local3]._currentframe == 1) {
if (this["back" + roadNum]["st" + _local3].st_f._currentframe < 6) {
_root.sweetCollectS();
if (cover.coinsC._currentframe == 1) {
cover.coinsC.gotoAndPlay(2);
}
_root.coins++;
if ((coins % 20) == 0) {
_root.sweetCollectS(1);
if (_root.cover.maski._x < 576) {
_root.leveler2.l = "POWER UP!!!";
_root.leveler2.gotoAndStop(2);
if (_root.cover.maski._x >= 566) {
_root.easeToSimple_b(_root.cover.maski, "easeInQuad", 15, _root.cover.maski._x, 576, "_x", undefined);
} else {
_root.easeToSimple_b(_root.cover.maski, "easeInQuad", 15, _root.cover.maski._x, _root.cover.maski._x + 10, "_x", undefined);
}
} else {
_root.leveler2.l = "TIME BONUS!!!";
_root.leveler2.gotoAndStop(2);
_root.addTime();
}
}
_root.coinsFormat = _root.coins.padWithZeroes(4);
} else {
var _local8 = 135;
_root.easeTo(CAR_ANT, "easeOutBounce", 30, CAR_ANT._rotation, 45, "_rotation", undefined);
_root.ohnoS();
if (_root.cover.maski._x > 486) {
_root.easeToSimple_b(_root.cover.maski, "easeInQuad", 15, _root.cover.maski._x, _root.cover.maski._x - 10, "_x", undefined);
} else {
_root.cover.maski._x = 476;
_root.cover.maski.gotoAndStop(2);
_root.destroyCar();
}
}
}
if (this["back" + roadNum]["st" + _local3]._currentframe == 1) {
this["back" + roadNum]["st" + _local3].gotoAndStop(2);
var _local7 = this["back" + roadNum].rp;
setStarVal(_local7, 0, _local3);
break;
}
}
}
} else {
return(undefined);
}
};
MovieClip.prototype.moverRoad = function () {
if (speed != 0) {
if ((this.countRoad > -1) && (this.oldCount != this.countRoad)) {
measureRace();
this.oldCount = this.countRoad;
}
if (ySpeed > 0) {
if (this.B1._y >= 420) {
this.B1.ps = 0;
this.countRoad++;
this.B1._y = (this.B1C._y = Number(this.B2._y - 440));
this.B1_O.gotoAndStop(Number(_root["obstac_array" + _root.gLevel][this.countRoad]));
this.B1.rp = this.countRoad;
placeStarInit(this.countRoad, 1);
} else if (this.B2._y >= 420) {
this.countRoad++;
this.B2._y = (this.B2C._y = this.B1._y - 440);
this.B2_O.gotoAndStop(Number(_root["obstac_array" + _root.gLevel][this.countRoad]));
this.B2.rp = this.countRoad;
placeStarInit(this.countRoad, 2);
} else {
this.B1._y = this.B1._y + Number(Math.floor(ySpeed * 1.5));
this.B2._y = this.B2._y + Number(Math.floor(ySpeed * 1.5));
this.B1C._y = this.B1C._y + Number(Math.floor(ySpeed * 1.5));
this.B2C._y = this.B2C._y + Number(Math.floor(ySpeed * 1.5));
}
} else if (this.B1._y <= -420) {
this.countRoad--;
this.B1._y = (this.B1C._y = this.B2._y + 440);
if (this.countRoad > 0) {
this.B1_O.gotoAndStop(Number(_root["obstac_array" + _root.gLevel][this.countRoad - 1]));
} else {
this.B1_O.gotoAndStop(20);
}
this.B1.rp = this.countRoad - 1;
placeStarInit(this.countRoad - 1, 1);
} else if (this.B2._y <= -420) {
this.countRoad--;
this.B2._y = (this.B2C._y = Number(this.B1._y + 440));
if (this.countRoad > 0) {
this.B2_O.gotoAndStop(Number(_root["obstac_array" + _root.gLevel][this.countRoad - 1]));
} else {
this.B2_O.gotoAndStop(20);
}
this.B2.rp = this.countRoad - 1;
placeStarInit(this.countRoad - 1, 2);
} else {
this.B1._y = this.B1._y + Number(Math.floor(ySpeed * 1.5));
this.B2._y = this.B2._y + Number(Math.floor(ySpeed * 1.5));
this.B1C._y = this.B1C._y + Number(Math.floor(ySpeed * 1.5));
this.B2C._y = this.B2C._y + Number(Math.floor(ySpeed * 1.5));
}
} else {
return(undefined);
}
};
function getDistance(counter) {
var _local1 = (100 * counter) / level_1_l;
return(_local1);
}
function trailer2() {
m++;
hitpoint = new Object();
hitpoint.x = CAR.hit10._x;
hitpoint.y = CAR.hit10._y;
CAR.localToGlobal(hitpoint);
BACKGROUND.trailerD.st_d.duplicateMovieClip("st_d" + m, m);
BACKGROUND.trailerD["st_d" + m]._x = hitpoint.x - 40;
BACKGROUND.trailerD["st_d" + m]._y = hitpoint.y - 40;
BACKGROUND.trailerD["st_d" + m].gotoAndPlay(2);
BACKGROUND.trailerD["st_d" + m]._rotation = CAR._rotation;
BACKGROUND.trailerD["st_d" + m].onEnterFrame = function () {
this._y = this._y + int(ySpeed / 1.5);
};
}
m = 0;
function lID1() {
LEVEL_TOTAL_LENGTH = 30;
_root.tStars = randRange(6, 11);
obstac_array1 = new Array("");
this.STARS_CONTAINER_1 = new Array();
var _local9 = 1;
while (_local9 <= (LEVEL_TOTAL_LENGTH - 2)) {
if ((_local9 % 2) == 0) {
obstac_array1.push(20);
} else {
obstac_array1.push(randRange(1, 6));
}
_local9++;
}
var _local6 = 30;
while (_local6-- , _local6 > 0) {
if ((_local6 % 1) == 0) {
this["STAR_ARR" + _local6] = new Array({x:0, y:0, f:1});
this.STARS_CONTAINER_1.push(_local6);
var _local14 = obstac_array1[_local6];
var _local5 = this["DATA_OBS" + _local14].copyOfArray();
var _local10 = _root.tStars;
while (_local10-- , _local10 > 0) {
var _local8 = _local5.length - 1;
var _local4 = randRange(1, _local8);
var _local3 = _local5[_local4];
_local5.deleteAt(_local4);
var _local7 = randRange(1, 5);
this["STAR_ARR" + _local6].push({x:TOTAL_GRID_X[_local3], y:TOTAL_GRID_Y[_local3], f:_local7});
}
}
}
gLevel = 1;
delete obstac_arrayInterLevel;
countDownInit(3 + _root.plusMin, 0 + _root.plusSec);
initRace();
}
function lID2() {
var _local15 = 100;
LEVEL_TOTAL_LENGTH = 30;
_root.tStars = randRange(4, 7);
this.STARS_CONTAINER_2 = new Array("");
obstac_array2 = new Array();
var _local7 = 1;
while (_local7 <= 28) {
if (((_local7 % 2) == 0) && ((_local7 % 3) == 0)) {
obstac_array2.push(20);
} else {
obstac_array2.push(randRange(3, 10));
}
_local7++;
}
var _local6 = 28;
while (_local6-- , _local6 > 0) {
if ((_local6 % 2) == 0) {
this["STAR_ARR" + _local6] = new Array({x:0, y:0, f:1});
this.STARS_CONTAINER_2.push(_local6);
var _local14 = obstac_array2[_local6];
var _local5 = this["DATA_OBS" + _local14].copyOfArray();
var _local10 = _root.tStars;
while (_local10-- , _local10 > 0) {
var _local9 = _local5.length - 1;
var _local4 = randRange(1, _local9);
var _local3 = _local5[_local4];
_local5.deleteAt(_local4);
var _local8 = randRange(1, 6);
this["STAR_ARR" + _local6].push({x:TOTAL_GRID_X[_local3], y:TOTAL_GRID_Y[_local3], f:_local8});
}
}
}
gLevel = 2;
delete obstac_arrayInterLevel;
countDownInit(1 + _root.plusMin, 30 + _root.plusSec);
initRace();
}
function lID3() {
LEVEL_TOTAL_LENGTH = 20;
_root.tStars = randRange(10, 13);
this.STARS_CONTAINER_3 = new Array("");
obstac_array3 = new Array();
var _local11 = 1;
while (_local11 <= 19) {
obstac_array3.push(20);
_local11++;
}
var _local6 = 19;
while (_local6-- , _local6 > 0) {
this["STAR_ARR" + _local6] = new Array({x:0, y:0, f:1});
this.STARS_CONTAINER_3.push(_local6);
var _local16 = obstac_array3[_local6];
var _local3 = this["DATA_OBS" + _local16].copyOfArray();
var _local12 = _root.tStars;
while (_local12-- , _local12 > 0) {
var _local10 = _local3.length - 1;
var _local5 = randRange(1, _local10);
var _local4 = _local3[_local5];
var _local8 = TOTAL_GRID_X[_local4];
var _local9 = TOTAL_GRID_Y[_local4];
_local3.deleteAt(_local5);
var _local7 = randRange(1, 6);
this["STAR_ARR" + _local6].push({x:_local8, y:_local9, f:_local7});
}
}
gLevel = 3;
countDownInit(1 + _root.plusMin, 0 + _root.plusSec);
initRace();
}
function lID4() {
LEVEL_TOTAL_LENGTH = 28;
_root.tStars = randRange(2, 4);
this.STARS_CONTAINER_4 = new Array();
obstac_array4 = new Array();
var _local9 = 1;
while (_local9 <= 27) {
if ((_local9 % 6) == 0) {
obstac_array4.push(20);
} else {
obstac_array4.push(randRange(14, 15));
}
_local9++;
}
var _local6 = 27;
while (_local6-- , _local6 > 0) {
if ((_local6 % 3) == 0) {
this["STAR_ARR" + _local6] = new Array({x:0, y:0, f:1});
this.STARS_CONTAINER_4.push(_local6);
var _local14 = obstac_array4[_local6];
var _local5 = this["DATA_OBS" + _local14].copyOfArray();
var _local10 = _root.tStars;
while (_local10-- , _local10 > 0) {
var _local8 = _local5.length - 1;
var _local4 = randRange(1, _local8);
var _local3 = _local5[_local4];
_local5.deleteAt(_local4);
var _local7 = randRange(1, 6);
this["STAR_ARR" + _local6].push({x:TOTAL_GRID_X[_local3], y:TOTAL_GRID_Y[_local3], f:_local7});
}
}
}
gLevel = 4;
delete obstac_arrayInterLevel;
countDownInit(_root.plusMin, 30 + _root.plusSec);
initRace();
}
function lID6() {
LEVEL_TOTAL_LENGTH = 80;
_root.tStars = randRange(2, 5);
this.STARS_CONTAINER_6 = new Array();
obstac_array6 = new Array();
var _local9 = 1;
while (_local9 <= 79) {
obstac_array6.push(randRange(3, 13));
_local9++;
}
var _local6 = 79;
while (_local6-- , _local6 > 0) {
if ((_local6 % 2) == 0) {
this["STAR_ARR" + _local6] = new Array({x:0, y:0, f:1});
this.STARS_CONTAINER_6.push(_local6);
var _local14 = obstac_array6[_local6];
var _local5 = this["DATA_OBS" + _local14].copyOfArray();
var _local10 = _root.tStars;
while (_local10-- , _local10 > 0) {
var _local8 = _local5.length - 1;
var _local4 = randRange(1, _local8);
var _local3 = _local5[_local4];
_local5.deleteAt(_local4);
var _local7 = randRange(1, 6);
this["STAR_ARR" + _local6].push({x:TOTAL_GRID_X[_local3], y:TOTAL_GRID_Y[_local3], f:_local7});
}
}
}
gLevel = 6;
delete obstac_arrayInterLevel;
countDownInit(1 + _root.plusMin, 0 + _root.plusSec);
initRace();
}
function lID5() {
LEVEL_TOTAL_LENGTH = 80;
_root.tStars = randRange(10, 15);
this.STARS_CONTAINER_5 = new Array();
obstac_array5 = new Array();
var _local9 = 1;
while (_local9 <= 78) {
if ((_local9 % 12) == 0) {
obstac_array5.push(7);
} else {
obstac_array5.push(20);
}
_local9++;
}
var _local6 = 78;
while (_local6-- , _local6 > 0) {
this["STAR_ARR" + _local6] = new Array({x:0, y:0, f:1});
this.STARS_CONTAINER_5.push(_local6);
var _local14 = obstac_array5[_local6];
var _local5 = this["DATA_OBS" + _local14].copyOfArray();
var _local10 = _root.tStars;
while (_local10-- , _local10 > 0) {
var _local8 = _local5.length - 1;
var _local4 = randRange(1, _local8);
var _local3 = _local5[_local4];
_local5.deleteAt(_local4);
var _local7 = randRange(1, 6);
this["STAR_ARR" + _local6].push({x:TOTAL_GRID_X[_local3], y:TOTAL_GRID_Y[_local3], f:_local7});
}
}
gLevel = 5;
delete obstac_arrayInterLevel;
countDownInit(1 + _root.plusMin, 20 + _root.plusSec);
initRace();
}
function lID7() {
LEVEL_TOTAL_LENGTH = 120;
_root.tStars = randRange(2, 7);
this.STARS_CONTAINER_7 = new Array();
obstac_array7 = new Array();
var _local9 = 1;
while (_local9 <= 118) {
obstac_array7.push(randRange(10, 15));
_local9++;
}
var _local6 = 118;
while (_local6-- , _local6 > 0) {
if ((_local6 % 8) == 0) {
this["STAR_ARR" + _local6] = new Array({x:0, y:0, f:1});
this.STARS_CONTAINER_7.push(_local6);
var _local14 = obstac_array7[_local6];
var _local5 = this["DATA_OBS" + _local14].copyOfArray();
var _local10 = _root.tStars;
while (_local10-- , _local10 > 0) {
var _local8 = _local5.length - 1;
var _local4 = randRange(1, _local8);
var _local3 = _local5[_local4];
_local5.deleteAt(_local4);
var _local7 = randRange(1, 6);
this["STAR_ARR" + _local6].push({x:TOTAL_GRID_X[_local3], y:TOTAL_GRID_Y[_local3], f:_local7});
}
}
}
gLevel = 7;
delete obstac_arrayInterLevel;
countDownInit(_root.plusMin, 30 + _root.plusSec);
initRace();
}
function lID8() {
LEVEL_TOTAL_LENGTH = 100;
_root.tStars = randRange(2, 5);
this.STARS_CONTAINER_8 = new Array();
obstac_array8 = new Array();
var _local9 = 1;
while (_local9 <= 98) {
obstac_array8.push(randRange(4, 15));
_local9++;
}
var _local6 = 98;
while (_local6-- , _local6 > 0) {
if ((_local6 % 4) == 0) {
this["STAR_ARR" + _local6] = new Array({x:0, y:0, f:1});
this.STARS_CONTAINER_8.push(_local6);
var _local14 = obstac_array8[_local6];
var _local5 = this["DATA_OBS" + _local14].copyOfArray();
var _local10 = _root.tStars;
while (_local10-- , _local10 > 0) {
var _local8 = _local5.length - 1;
var _local4 = randRange(1, _local8);
var _local3 = _local5[_local4];
_local5.deleteAt(_local4);
var _local7 = randRange(1, 6);
this["STAR_ARR" + _local6].push({x:TOTAL_GRID_X[_local3], y:TOTAL_GRID_Y[_local3], f:_local7});
}
}
}
gLevel = 8;
delete obstac_arrayInterLevel;
countDownInit(_root.plusMin, 30 + _root.plusSec);
initRace();
}
function lID9() {
LEVEL_TOTAL_LENGTH = 100;
_root.tStars = randRange(2, 3);
this.STARS_CONTAINER_9 = new Array();
obstac_array9 = new Array();
var _local9 = 1;
while (_local9 <= 98) {
if ((_local9 % 6) == 0) {
obstac_array9.push(20);
} else {
obstac_array9.push(randRange(13, 15));
}
_local9++;
}
var _local6 = 98;
while (_local6-- , _local6 > 0) {
if ((_local6 % 2) == 0) {
this["STAR_ARR" + _local6] = new Array({x:0, y:0, f:1});
this.STARS_CONTAINER_9.push(_local6);
var _local14 = obstac_array9[_local6];
var _local5 = this["DATA_OBS" + _local14].copyOfArray();
var _local10 = _root.tStars;
while (_local10-- , _local10 > 0) {
var _local8 = _local5.length - 1;
var _local4 = randRange(1, _local8);
var _local3 = _local5[_local4];
_local5.deleteAt(_local4);
var _local7 = randRange(1, 6);
this["STAR_ARR" + _local6].push({x:TOTAL_GRID_X[_local3], y:TOTAL_GRID_Y[_local3], f:_local7});
}
}
}
gLevel = 9;
delete obstac_arrayInterLevel;
countDownInit(2 + _root.plusMin, 30 + _root.plusSec);
initRace();
}
Frame 10
function interLevel() {
LEVEL_1_LENGTH = 100;
LEVEL_2_LENGTH = 100;
LEVEL_3_LENGTH = 100;
LEVEL_4_LENGTH = 100;
LEVEL_5_LENGTH = 100;
LEVEL_TOTAL_LENGTH = 100;
obstac_arrayInterLevel = new Array();
var _local2 = 1;
while (_local2 <= 100) {
obstac_arrayInterLevel.push(20);
_local2++;
}
restoreCarPos();
_root.realLevel = gLevel;
gLevel = "InterLevel";
interlevelInt = setInterval(destroyInterLevel, 3000);
}
function destroyInterLevel() {
clearInterval(interlevelInt);
leveler.gotoAndStop(3);
_root["lID" + _root.realLevel]();
updateAfterEvent();
}
function scoreReminder() {
clearInterval(updateInterval);
var _local2 = _root.te.split(":");
var _local3 = parseInt(_local2[0]);
var _local4 = parseInt(_local2[1]);
_root.plusMin = _local3;
_root.plusSec = _local4;
interLevel();
}
function res() {
leveler.gotoAndStop(1);
}
function levelUp() {
_root.keys = false;
if (gLevel < 10) {
gLevel = gLevel + 1;
} else {
gLevel = 1;
}
leveler.l = "LEVEL 0" + gLevel;
_root.levelFormat = "0" + gLevel;
leveler.gotoAndStop(2);
initlevelChange();
BACKGROUND.countRoad = -1;
scoreReminder();
}
function killLeveler() {
clearInterval(updateInterval);
clearInterval(interlevelInt);
leveler.gotoAndStop(1);
}
function initRace() {
delete this.onEnterFrame;
cover.maski2._x = 404;
_root.keys = true;
this.onEnterFrame = function () {
KeyDownH();
CarManager.broadcastMessage("run");
CarManager.broadcastMessage("crashFront");
CarManager.broadcastMessage("crashRear");
RoadManager.broadcastMessage("moverRoad");
RoadManager.broadcastMessage("getRoadPos");
};
}
function iniFirst() {
gLevel = 0;
levelUp();
}
stop();
_quality = "LOW";
firstScreen.removeMovieClip();
proto_pic._x = 3;
proto_pic._y = 380;
form.removeMovieClip();
delete _global.cursors;
for (var a in proto_pic.protokid) {
proto_pic.protokid[a]._x = Math.floor(proto_pic.protokid[a]._x);
proto_pic.protokid[a]._y = Math.floor(proto_pic.protokid[a]._y);
proto_pic.protokid[a]._alpha = 100;
}
var gLevel = 0;
_root.plusMin = 0;
_root.plusSec = 0;
setSpeed(0);
setMaxSpeed(14);
setAccel(0.2);
setDecel(0.93);
setBounce(0.8);
setX_Speed(0);
setY_Speed(0);
CAR.initCar();
BACKGROUND.initRoad();
this.onEnterFrame = function () {
if (this.coveralld._alpha > 0) {
if (s2.getLevel() < 80) {
s2.setLevel(s2.getLevel() + 2);
}
if (s1.getLevel() > 0) {
s1.setLevel(s1.getLevel() - 2);
}
this.coveralld._alpha = this.coveralld._alpha - 2;
} else {
delete this.onEnterFrame;
coveralld.removeMovieClip();
s1.setLevel(0);
s2.setLevel(80);
iniFirst();
}
};
Symbol 10 MovieClip Frame 2
play();
Symbol 10 MovieClip Frame 8
gotoAndPlay (2);
Symbol 10 MovieClip Frame 9
stop();
Symbol 16 MovieClip Frame 1
stop();
Instance of Symbol 13 MovieClip "progressbar" in Symbol 16 MovieClip Frame 2
onClipEvent (load) {
this._xscale = 0;
}
Symbol 20 MovieClip Frame 1
stop();
Symbol 33 MovieClip [stofriendGFX] Frame 1
function iniB() {
CA._alpha = 70;
SE._alpha = 70;
_root.sparkT(this.SE);
CA.enabled = (SE.enabled = true);
}
function InitForm() {
your_name_entry = "";
your_email_entry = "";
friend_email_entry = "";
t2._alpha = (t3._alpha = 75);
for (var a in textn) {
var tempN = eval (textn[a]);
var tenpNum = (parseInt(a) + 1);
tempN.tabIndex = tenpNum;
tempN.num = tenpNum;
tempN.onSetFocus = function () {
_root.formSound();
this._parent["t" + this.num]._alpha = 0;
};
tempN.onKillFocus = function () {
this._parent["t" + this.num]._alpha = 75;
};
}
Selection.setFocus("your_name_entry");
}
function checkDataPress(n, e, fe) {
if (!n.length) {
}
if (((!e.length) || (e.indexOf("@") == -1)) || (e.indexOf(".") == -1)) {
}
if (((!fe.length) || (fe.indexOf("@") == -1)) || (fe.indexOf(".") == -1)) {
}
}
function checkDataRelease(n, e, fe) {
if ((!n.length) || (n == textCheck[0])) {
_root.wrongAir();
Selection.setFocus(Name);
} else if (((!e.length) || (e.indexOf("@") == -1)) || (e.indexOf(".") == -1)) {
_root.wrongAir();
Selection.setFocus(email);
} else if (((!fe.length) || (fe.indexOf("@") == -1)) || (fe.indexOf(".") == -1)) {
_root.wrongAir();
Selection.setFocus(friendemailt);
} else {
Key.removeListener(subK);
_root.formSound2(80);
SE.enabled = false;
CA.enabled = false;
Name.selectable = 0;
email.selectable = 0;
friendemail.selectable = 0;
t1._alpha = (t2._alpha = (t3._alpha = 75));
_root.checkdata_friend(your_name_entry, your_email_entry, friend_email_entry);
gotoAndStop (3);
}
}
stop();
var textn = new Array(Name, email, friendemailt);
SE.onRollOver = o;
SE.onRollOut = ou;
CA.onRollOver = o;
CA.onRollOut = ou;
CA.onPress = function () {
_root.formSound3();
Key.removeListener(subK);
SE.enabled = false;
CA.enabled = false;
Name.selectable = 0;
email.selectable = 0;
friendemail.selectable = 0;
t1._alpha = (t2._alpha = (t3._alpha = 75));
gotoAndStop (2);
};
SE.onPress = function () {
checkDataPress(your_name_entry, your_email_entry, friend_email_entry);
};
SE.onRelease = function () {
checkDataRelease(your_name_entry, your_email_entry, friend_email_entry);
};
subK = new Object();
subK.onKeyDown = function () {
if (Key.getCode() == 13) {
checkDataPress(your_name_entry, your_email_entry, friend_email_entry);
}
};
subK.onKeyUp = function () {
if (Key.getCode() == 13) {
checkDataRelease(your_name_entry, your_email_entry, friend_email_entry);
}
};
Key.addListener(subK);
InitForm();
Symbol 33 MovieClip [stofriendGFX] Frame 2
function nextE2() {
clearInterval(delayInterval2);
_root.removeSEF2();
updateAfterEvent();
}
stop();
Key.removeListener(subK);
delayInterval2 = setInterval(nextE2, 1000);
Symbol 33 MovieClip [stofriendGFX] Frame 3
function nextE() {
clearInterval(delayInterval);
_root.removeSEF2();
updateAfterEvent();
}
stop();
delayInterval = setInterval(nextE, 2000);
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 6
_parent.sK = 1;
Symbol 49 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 1
this.val = _root.val;
Symbol 52 MovieClip Frame 14
stop();
_parent.nextFrame();
Symbol 85 MovieClip Frame 1
_root.expS();
Symbol 85 MovieClip Frame 17
stop();
if (_parent._currentframe == 5) {
_parent.removeMovieClip();
}
Symbol 86 MovieClip [star] Frame 1
stop();
this.sK = 0;
Symbol 86 MovieClip [star] Frame 2
stop();
if (this.sK != 1) {
_root.scoreInc();
} else {
gotoAndStop (5);
}
Symbol 86 MovieClip [star] Frame 3
this.removeMovieClip();
Symbol 86 MovieClip [star] Frame 4
stop();
Symbol 86 MovieClip [star] Frame 5
stop();
Symbol 99 MovieClip [smoke] Frame 1
stop();
Symbol 99 MovieClip [smoke] Frame 2
_root.airS();
Symbol 99 MovieClip [smoke] Frame 27
gotoAndStop (1);
Symbol 484 Button
on (release) {
sendscore = new LoadVars();
sendscore.gscore = _parent._parent.scoreFormat;
sendscore.gname = "radiorampagesm";
sendscore.send("index.php?act=Arcade&do=newscore", "_self", "POST");
}
Symbol 130 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 20
stop();
if (this._name == "scores_week_mc") {
sm.gotoAndStop(2);
_parent.scores_month_mc.gotoAndPlay(2);
} else {
_parent.initVV();
}
Symbol 176 MovieClip Frame 36
stop();
if (this._name == "scores_week_mc") {
_parent.scores_month_mc.gotoAndPlay(21);
} else {
_parent.removeScoreBoard();
}
Symbol 177 MovieClip [scoreGFX] Frame 1
function particles(x, y) {
var i = 0;
this.onEnterFrame = function () {
if (i <= 20) {
d = attachMovie("dotcopybis", "dot" + (i++), i);
d._x = x;
d._y = y;
d._xscale = 0;
d._yscale = 0;
d.angle = random(360);
d.speed = random(10) + 2;
d.vx = d.speed * Math.cos((d.angle * Math.PI) / 180);
d.vy = d.speed * Math.sin((d.angle * Math.PI) / 180);
d.onEnterFrame = function () {
this._xscale = (this._yscale = 150 - this._alpha);
this._x = this._x + this.vx;
this._y = this._y + this.vy;
((this._alpha < 0) ? (this.removeMovieClip()) : ((this._alpha = this._alpha - 8)));
};
} else {
delete this.onEnterFrame;
}
};
}
function pOV() {
_root.formSound2(0);
particles(this._x + (this._width / 2), this._y + (this._height / 2));
}
function pOU() {
}
function pPR() {
dir = "playAgain";
gfx.cFriend.enabled = (gfx.ckid.enabled = (gfx.pAgain.enabled = false));
scores_week_mc.gotoAndPlay(21);
}
function ckOV() {
_root.clickS2(-75);
gfx.l.gotoAndPlay(2);
}
function ckOU() {
}
function ckPR() {
dir = "createProtokid";
gfx.cFriend.enabled = (gfx.ckid.enabled = (gfx.pAgain.enabled = false));
scores_week_mc.gotoAndPlay(21);
}
function cfOV() {
_root.clickS2(75);
gfx.r.gotoAndPlay(2);
}
function cfOU() {
}
function cfPR() {
dir = "sendToFriend";
gfx.cFriend.enabled = (gfx.ckid.enabled = (gfx.pAgain.enabled = false));
scores_week_mc.gotoAndPlay(21);
}
function preInit() {
gfx.cFriend._alpha = (gfx.ckid._alpha = (gfx.pAgain._alpha = 50));
gfx.cFriend.enabled = (gfx.ckid.enabled = (gfx.pAgain.enabled = false));
}
function initVV() {
if (_global.$_guest) {
gfx.ckid._alpha = 100;
gfx.ckid.enabled = true;
} else {
gfx.ckid._alpha = 50;
gfx.ckid.enabled = false;
}
gfx.cFriend._alpha = (gfx.pAgain._alpha = 100);
gfx.cFriend.enabled = (gfx.pAgain.enabled = true);
}
function removeScoreBoard() {
if (this.dir == "playAgain") {
_root.playAgain();
}
if (this.dir == "sendToFriend") {
sendToFriendf();
}
if (this.dir == "createProtokid") {
createKid();
}
}
function sendToFriendf() {
_root.easeToSimple_b(_root.scoreGFX, "easeInQuad", 30, _root.scoreGFX._y, (-_root.scoreGFX._height) - 140, "_y", _root.rScore2);
}
function createKid() {
_root.stopBackS();
gfx.l.gotoAndStop(1);
this.attachMovie("circleMask", "circleMask", 12);
circleMask._x = Stage.width / 2;
circleMask._y = Stage.height / 2;
circleMask._width = 880;
circleMask._height = 750;
gfx.setMask(circleMask);
_root.finS();
_root.easeToSimple(circleMask, "easeOutQuad", 34, circleMask._xscale, 0, "_xscale", rs);
}
function gotoCreateKid() {
_global.$_createKid_url;
}
function rsound() {
if (_root.s1.getLevel() > 0) {
_root.s1.setLevel(_root.s1.getLevel() - 1);
} else {
clearInterval(intRs);
gotoCreateKid();
}
updateAfterEvent();
}
function rs() {
intRs = setInterval(rsound, 7);
}
stop();
gfx.ckid.onRollOver = ckOV;
gfx.ckid.onRollOut = ckOU;
gfx.ckid.onPress = ckPR;
gfx.cFriend.onRollOver = cfOV;
gfx.cFriend.onRollOut = cfOU;
gfx.cFriend.onPress = cfPR;
gfx.pAgain.onRollOver = pOV;
gfx.pAgain.onRollOut = pOU;
gfx.pAgain.onPress = pPR;
preInit();
Symbol 179 MovieClip [circleMask] Frame 1
stop();
Symbol 180 MovieClip [dotcopybis] Frame 1
stop();
Symbol 183 MovieClip [firstScreen] Frame 1
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 200 Button
on (release) {
if (_currentframe == 1) {
stats = "noguest";
if (userV.length < 1) {
userV = "";
Selection.setFocus(userT);
} else if (passwordvar.length < 1) {
Selection.setFocus(passwordf);
} else {
handle_error = "Sending Data...";
_parent.checkData(userV, passwordvar);
}
}
}
Symbol 206 Button
on (release) {
_root.doo();
stats = "guest";
gotoAndStop (2);
}
Symbol 214 Button
on (press) {
gotoAndPlay (2);
}
Symbol 219 Button
on (release) {
enterM.text.isEmail();
if (enterM.text.isEmail()) {
meemail = true;
_root.reminderEmail(emailR);
gotoAndPlay (6);
} else {
formstats = "Invalid Email Address";
emailR = "";
Selection.setFocus("emailR");
}
}
Symbol 221 MovieClip Frame 1
stop();
H.tabEnabled = false;
primer.tabEnabled = false;
Symbol 221 MovieClip Frame 5
function clean_error() {
if (formstats == "Invalid Email Address") {
formstats = "Enter your email address";
}
}
function focusme() {
Selection.setFocus("emailR");
}
stop();
emailR = "";
enterM.onChanged = clean_error;
formstats = "Enter your email address";
_parent._parent.focus = 0;
focusme();
Symbol 221 MovieClip Frame 8
if (meemail) {
nextFrame();
} else {
gotoAndStop (1);
}
Symbol 221 MovieClip Frame 9
function wait() {
clearInterval(mewait);
_parent._parent.refocus();
gotoAndStop (1);
updateAfterEvent();
}
meemail = false;
mewait = setInterval(wait, 1500);
Symbol 222 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 12
stop();
Symbol 254 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 1
function exec() {
if (t._parent._currentframe > 4) {
clearInterval(d);
} else {
d = setInterval(exec2, 500);
}
}
function exec2() {
clearInterval(d);
if (t._parent._currentframe > 4) {
} else {
if (keys_ins._currentframe == keys_ins._totalframes) {
keys_ins.gotoAndStop(2);
} else {
keys_ins.nextFrame();
}
arrow_ins.gotoAndStop(keys_ins._currentframe);
t[keyArr[keys_ins._currentframe]]();
}
updateAfterEvent();
}
function cup() {
clearInterval(sTimer);
sTimer = setInterval(riseVol, 10);
_root.easeToSimple_b(car_ins, "easeOutBounce", 18, car_ins._y, carOrigY - 15, "_y", cuN);
}
function cuN() {
clearInterval(sTimer);
sTimer = setInterval(decreaseVol, 10);
_root.easeToSimple_b(car_ins, "easeOutQuad", 14, car_ins._y, carOrigY, "_y", exec);
}
function cdown() {
clearInterval(sTimer);
sTimer = setInterval(riseVol, 10);
_root.easeToSimple_b(car_ins, "easeOutBounce", 18, car_ins._y, carOrigY + 20, "_y", cdownN);
}
function cdownN() {
clearInterval(sTimer);
sTimer = setInterval(decreaseVol, 10);
_root.easeToSimple_b(car_ins, "easeInQuad", 14, car_ins._y, carOrigY, "_y", exec);
}
function cleft() {
clearInterval(sTimer);
_root.backS2.setPan(-70);
sTimer = setInterval(riseVol, 10);
_root.easeToSimple_b(car_ins, "easeOutBounce", 24, car_ins._rotation, -25, "_rotation", cleftN);
}
function cleftN() {
clearInterval(sTimer);
sTimer = setInterval(decreaseVol, 10);
_root.easeToSimple_b(car_ins, "easeOutQuad", 14, car_ins._rotation, 0, "_rotation", exec);
}
function cright() {
clearInterval(sTimer);
_root.backS2.setPan(80);
sTimer = setInterval(riseVol, 10);
_root.easeToSimple_b(car_ins, "easeOutBounce", 24, car_ins._rotation, 25, "_rotation", crightN);
}
function crightN() {
clearInterval(sTimer);
sTimer = setInterval(decreaseVol, 10);
_root.easeToSimple_b(car_ins, "easeInQuad", 14, car_ins._rotation, 0, "_rotation", exec);
}
function breakN() {
_root.hornS2();
car_ins.gotoAndStop(2);
_root.easeToSimple(car_ins, "easeOutBounce", 5, car_ins._xscale, 95, "_xscale", breakN2);
}
function breakN2() {
car_ins.gotoAndStop(1);
_root.easeToSimple(car_ins, "easeOutBounce", 14, car_ins._xscale, 100, "_xscale", exec);
}
function riseVol() {
if (t._parent._currentframe > 4) {
clearInterval(sTimer);
} else if (_root.backS2.getVolume() < 50) {
_root.backS2.setVolume(_root.backS2.getVolume() + 2);
} else {
clearInterval(sTimer);
}
}
function decreaseVol() {
if (t._parent._currentframe > 4) {
clearInterval(sTimer);
} else if (_root.backS2.getVolume() > 0) {
_root.backS2.setVolume(_root.backS2.getVolume() - 2);
} else {
_root.backS2.setPan(0);
clearInterval(sTimer);
}
}
var keyArr = new Array("", "", "cup", "cleft", "cdown", "cright", "breakN");
var carOrigX = car_ins._x;
var carOrigY = car_ins._y;
var t = this;
exec();
Symbol 287 MovieClip Frame 1
stop();
this.sK = 0;
Symbol 287 MovieClip Frame 2
stop();
if (this.sK != 1) {
_root.scoreInc();
} else {
gotoAndStop (5);
}
Symbol 287 MovieClip Frame 3
this.removeMovieClip();
Symbol 287 MovieClip Frame 4
stop();
Symbol 287 MovieClip Frame 5
stop();
Symbol 287 MovieClip Frame 6
stop();
_root.val = 100;
Symbol 287 MovieClip Frame 7
stop();
Symbol 295 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 2
stop();
Symbol 296 MovieClip Frame 1
function particles(x, y) {
var i = 0;
this.onEnterFrame = function () {
if (i <= 20) {
d = attachMovie("dotcopybis", "dot" + (i++), i);
d._x = x;
d._y = y;
d._xscale = 0;
d._yscale = 0;
d.angle = random(360);
d.speed = random(10) + 2;
d.vx = d.speed * Math.cos((d.angle * Math.PI) / 180);
d.vy = d.speed * Math.sin((d.angle * Math.PI) / 180);
d.onEnterFrame = function () {
this._xscale = (this._yscale = 150 - this._alpha);
this._x = this._x + this.vx;
this._y = this._y + this.vy;
((this._alpha < 0) ? (this.removeMovieClip()) : ((this._alpha = this._alpha - 8)));
};
} else {
delete this.onEnterFrame;
}
};
}
function collecti() {
if (c < 5) {
c++;
particles(t["s" + c]._x + 15, t["s" + c]._y + 15);
_root.formSound();
iscore = iscore + 100;
iscoreFormat = iscore.padWithZeroes(5);
t["s" + c].gotoAndStop("instructions");
} else {
clearInterval(startSweetsTimer);
t.s6.gotoAndStop(5);
_root.easeToSimple_b(maski, "easeOutQuad", 54, maski._x, maski._x - 80, "_x", restoreValsf);
}
updateAfterEvent();
}
function restoreValsf() {
_root.easeToSimple_b(maski, "easeInQuad", 20, maski._x, maskiX, "_x", initSweets);
}
function initSweets() {
maski._x = maskiX;
iscore = 0;
c = 0;
iscoreFormat = iscore.padWithZeroes(5);
var _local1 = 1;
while (_local1 <= 6) {
t["s" + _local1].gotoAndStop(1);
t["s" + _local1].st_f.gotoAndStop(parseInt(t["s" + _local1]._name.split("s")[1]));
_local1++;
}
startSweetsTimer = setInterval(collecti, 900);
}
stop();
_root.backS2.setPan(0);
_root.backS2.setVolume(0);
var t = this;
var c = 0;
var maskiX = maski._x;
initSweets();
Symbol 298 MovieClip [form] Frame 1
function refocus() {
Selection.setFocus("userV");
}
function InitForm() {
userV = "";
passwordvar = "";
for (var a in textn) {
var tempN = eval (textn[a]);
var tenpNum = (parseInt(a) + 1);
tempN.tabEnabled = false;
tempN.num = tenpNum;
tempN.onSetFocus = function () {
if (professor.textProf._currentframe == 5) {
professor.textProf.gotoAndPlay(6);
}
this._parent["t" + this.num]._alpha = 0;
};
tempN.onKillFocus = function () {
this._parent["t" + this.num]._alpha = 20;
};
}
Selection.setFocus("userV");
}
function clean_error() {
if (handle_error.length > 1) {
handle_error = "";
}
}
stop();
this._alpha = 0;
t1._alpha = (t2._alpha = 20);
var textn = new Array(userT, passwordf);
userT.onChanged = clean_error;
passwordf.onChanged = clean_error;
left = new Object();
left.onKeyUp = function () {
if (Key.getCode() == 13) {
if (_currentframe == 1) {
if (professor.textProf._currentframe != 5) {
if (userV.length < 1) {
userV = "";
Selection.setFocus(userT);
} else if (passwordvar.length < 1) {
Selection.setFocus(passwordf);
} else {
handle_error = "Sending Data...";
_parent.checkData(userV, passwordvar);
}
}
} else {
_root.checkMtemp();
}
}
if (Key.getCode() == 9) {
if (focus == 0) {
Selection.setFocus("userV");
focus = 1;
} else {
Selection.setFocus("passwordvar");
focus = 0;
}
}
updateAfterEvent();
};
Key.addListener(left);
this.onEnterFrame = function () {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
} else {
delete this.onEnterFrame;
professor.gotoAndPlay(2);
InitForm();
}
};
Symbol 298 MovieClip [form] Frame 2
function fadeMe() {
Mouse.removeListener(left);
horrible.stop();
this.onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha = this._alpha - 20;
} else {
delete this.onEnterFrame;
nextFrame();
}
};
}
Key.removeListener(left);
b2.useHandCursor = (b1.useHandCursor = false);
b2.enabled = false;
b1.enabled = false;
fadeMe();
Symbol 298 MovieClip [form] Frame 3
function AddL() {
left = new Object();
left.onMouseDown = function () {
_root.backS2.setPan(0);
_root.backS2.setVolume(0);
fadeMe();
updateAfterEvent();
};
Mouse.addListener(left);
}
horrible.stop();
this.onEnterFrame = function () {
if (this._alpha < 100) {
this._alpha = this._alpha + 20;
} else {
delete this.onEnterFrame;
horrible.play();
AddL();
_root.getHiScoreFirst();
}
};
Symbol 298 MovieClip [form] Frame 4
horrible.stop();
this.onEnterFrame = function () {
if (this._alpha < 100) {
this._alpha = this._alpha + 20;
} else {
delete this.onEnterFrame;
AddL();
}
};
Symbol 298 MovieClip [form] Frame 5
var dj = 1;
while (dj <= 100) {
clearInterval(dj);
dj++;
}
_root.backS2.setPan(0);
_root.backS2.setVolume(0);
horrible.stop();
this.onEnterFrame = function () {
if (this._alpha < 100) {
this._alpha = this._alpha + 20;
} else {
delete this.onEnterFrame;
AddL();
}
};
Symbol 298 MovieClip [form] Frame 6
stop();
var dj = 1;
while (dj <= 100) {
clearInterval(dj);
dj++;
}
this._alpha = 100;
Mouse.removeListener(left);
if (stats == "guest") {
_parent.enterAsguest();
} else {
_parent.nextFrame();
}
Symbol 298 MovieClip [form] Frame 7
function reduceAlpha() {
_parent.gotoAndPlay(9);
}
function reduceAlpha2() {
}
_parent.createEmptyMovieClip("coveralld", 99);
_parent.coveralld.lineStyle(0, 0, 0);
_parent.coveralld.beginFill(0, 100);
var locX = 0;
var locY = 0;
_parent.coveralld.rectangle_1(Stage.width, Stage.height, locX, locY);
_parent.coveralld.endFill();
_parent.coveralld.onRollOver = function () {
this.useHandCursor = 0;
};
_parent.onEnterFrame = function () {
if (_parent.firstScreen._alpha > 0) {
_parent.firstScreen._alpha = _parent.firstScreen._alpha - 20;
} else {
delete _parent.onEnterFrame;
_parent.firstScreen.removeMovieClip();
reduceAlpha();
}
};
Symbol 323 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 1
stop();
Symbol 333 MovieClip Frame 1
stop();
Symbol 335 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 1
stop();
Symbol 342 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 1
stop();
Symbol 345 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 1
stop();
Symbol 351 MovieClip Frame 1
stop();
Symbol 363 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 1
stop();
Symbol 370 MovieClip Frame 1
stop();
this._parent.gotoAndStop(2);
Symbol 370 MovieClip Frame 2
this._parent.gotoAndStop(1);
Symbol 370 MovieClip Frame 3
stop();
this._parent.gotoAndStop(3);
Symbol 370 MovieClip Frame 4
this._parent.gotoAndStop(1);
Symbol 370 MovieClip Frame 5
this._parent.gotoAndStop(5);
Symbol 370 MovieClip Frame 6
this._parent.gotoAndStop(6);
Symbol 370 MovieClip Frame 7
this._parent.gotoAndStop(7);
Symbol 370 MovieClip Frame 8
this._parent.gotoAndStop(8);
Symbol 370 MovieClip Frame 9
this._parent.gotoAndStop(9);
Symbol 370 MovieClip Frame 10
this._parent.gotoAndStop(10);
Symbol 370 MovieClip Frame 11
this._parent.gotoAndStop(11);
Symbol 370 MovieClip Frame 12
this._parent.gotoAndStop(12);
Symbol 370 MovieClip Frame 13
this._parent.gotoAndStop(13);
Symbol 370 MovieClip Frame 14
this._parent.gotoAndStop(14);
Symbol 370 MovieClip Frame 15
this._parent.gotoAndStop(15);
Symbol 370 MovieClip Frame 20
this._parent.gotoAndStop(20);
Symbol 371 MovieClip Frame 1
stop();
var nam = this._name;
if (this._name == "back1") {
this._parent.back_1_copy.gotoAndStop(1);
} else {
this._parent.back_2_copy.gotoAndStop(1);
}
Symbol 371 MovieClip Frame 2
if (this._name == "back1") {
this._parent.back_1_copy.gotoAndStop(2);
} else {
this._parent.back_2_copy.gotoAndStop(2);
}
Symbol 371 MovieClip Frame 3
if (this._name == "back1") {
this._parent.back_1_copy.gotoAndStop(3);
} else {
this._parent.back_2_copy.gotoAndStop(3);
}
Symbol 371 MovieClip Frame 5
if (this._name == "back1") {
this._parent.back_1_copy.gotoAndStop(5);
} else {
this._parent.back_2_copy.gotoAndStop(5);
}
Symbol 371 MovieClip Frame 6
if (this._name == "back1") {
this._parent.back_1_copy.gotoAndStop(6);
} else {
this._parent.back_2_copy.gotoAndStop(6);
}
Symbol 371 MovieClip Frame 7
if (this._name == "back1") {
this._parent.back_1_copy.gotoAndStop(7);
} else {
this._parent.back_2_copy.gotoAndStop(7);
}
Symbol 371 MovieClip Frame 8
if (this._name == "back1") {
this._parent.back_1_copy.gotoAndStop(8);
} else {
this._parent.back_2_copy.gotoAndStop(8);
}
Symbol 371 MovieClip Frame 9
if (this._name == "back1") {
this._parent.back_1_copy.gotoAndStop(9);
} else {
this._parent.back_2_copy.gotoAndStop(9);
}
Symbol 371 MovieClip Frame 10
if (this._name == "back1") {
this._parent.back_1_copy.gotoAndStop(10);
} else {
this._parent.back_2_copy.gotoAndStop(10);
}
Symbol 371 MovieClip Frame 11
if (this._name == "back1") {
this._parent.back_1_copy.gotoAndStop(11);
} else {
this._parent.back_2_copy.gotoAndStop(11);
}
Symbol 371 MovieClip Frame 12
if (this._name == "back1") {
this._parent.back_1_copy.gotoAndStop(12);
} else {
this._parent.back_2_copy.gotoAndStop(12);
}
Symbol 371 MovieClip Frame 13
if (this._name == "back1") {
this._parent.back_1_copy.gotoAndStop(13);
} else {
this._parent.back_2_copy.gotoAndStop(13);
}
Symbol 371 MovieClip Frame 14
if (this._name == "back1") {
this._parent.back_1_copy.gotoAndStop(14);
} else {
this._parent.back_2_copy.gotoAndStop(14);
}
Symbol 371 MovieClip Frame 15
if (this._name == "back1") {
this._parent.back_1_copy.gotoAndStop(15);
} else {
this._parent.back_2_copy.gotoAndStop(15);
}
Symbol 371 MovieClip Frame 20
if (this._name == "back1") {
this._parent.back_1_copy.gotoAndStop(20);
} else {
this._parent.back_2_copy.gotoAndStop(20);
}
Symbol 372 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 2
play();
Symbol 372 MovieClip Frame 27
stop();
this.removeMovieClip();
Symbol 373 MovieClip Frame 1
stop();
Symbol 376 MovieClip Frame 1
stop();
Symbol 379 MovieClip Frame 1
stop();
Symbol 381 MovieClip Frame 1
stop();
Symbol 386 MovieClip Frame 1
stop();
Symbol 388 MovieClip Frame 1
stop();
Symbol 388 MovieClip Frame 2
_root.hornS();
Symbol 394 MovieClip Frame 10
_parent.prevFrame();
Symbol 401 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 2
stop();
Symbol 401 MovieClip Frame 3
stop();
_root.endGame();
Symbol 414 MovieClip Frame 1
stop();
Symbol 420 MovieClip Frame 1
stop();
Symbol 429 MovieClip Frame 1
stop();
Symbol 430 MovieClip Frame 1
stop();
var nam = this._name;
Symbol 430 MovieClip Frame 3
this.o.gotoAndStop(this._parent.r);
stop();
Symbol 430 MovieClip Frame 5
stop();
Symbol 430 MovieClip Frame 6
stop();
Symbol 430 MovieClip Frame 7
stop();
Symbol 430 MovieClip Frame 8
stop();
Symbol 430 MovieClip Frame 9
stop();
Symbol 430 MovieClip Frame 10
stop();
Symbol 430 MovieClip Frame 11
stop();
Symbol 430 MovieClip Frame 12
stop();
Symbol 430 MovieClip Frame 13
stop();
Symbol 430 MovieClip Frame 20
stop();
Symbol 431 MovieClip Frame 1
stop();
sm.gotoAndPlay(2);
car_mc._x = int(car_mc._x);
car_mc._y = int(car_mc._y);
car_mc._xscale = 100;
car_mc._yscale = 100;
Symbol 431 MovieClip Frame 2
stop();
Symbol 443 MovieClip Frame 1
stop();
Symbol 453 MovieClip Frame 1
stop();
Symbol 453 MovieClip Frame 10
_parent.gotoAndStop(1);
Symbol 456 MovieClip Frame 1
stop();
Symbol 456 MovieClip Frame 2
stop();
cc.gotoAndPlay(2);
Symbol 458 MovieClip Frame 1
stop();
Symbol 463 MovieClip Frame 1
stop();
Symbol 463 MovieClip Frame 7
gotoAndPlay (2);
Symbol 463 MovieClip Frame 30
_root.reinitTime();
Symbol 468 Button
on (release) {
if (_root.audio) {
_root.deleteAudio();
_root.audio = 0;
gotoAndStop (2);
} else {
_root.restoreAudio();
_root.audio = 1;
gotoAndStop (1);
}
}
Symbol 469 MovieClip Frame 1
stop();
Symbol 470 MovieClip Frame 1
stop();
Symbol 470 MovieClip Frame 2
stop();
Symbol 471 MovieClip Frame 1
stop();
Symbol 471 MovieClip Frame 2
stop();
Symbol 475 MovieClip Frame 1
stop();
Symbol 476 MovieClip Frame 1
stop();
this._xscale = (this._yscale = 100);
Symbol 476 MovieClip Frame 2
stop();
if (_parent.leveler2._currentframe != 1) {
_parent.leveler2.kill();
}
_parent.easeToSimple(this, "easeOutBounce", 10, 0, 100, "_xscale", undefined);
Symbol 476 MovieClip Frame 3
function res() {
_root.leveler.gotoAndStop(1);
}
stop();
_parent.easeToSimple(this, "easeOutQuad", 10, 100, 0, "_xscale", this.res);
Symbol 479 MovieClip Frame 1
stop();
Symbol 480 MovieClip Frame 1
function kill() {
clearInterval(d);
_root.leveler2.gotoAndStop(1);
}
stop();
this._xscale = (this._yscale = 100);
Symbol 480 MovieClip Frame 2
function s() {
clearInterval(d);
_root.leveler2.gotoAndStop(3);
updateAfterEvent();
}
stop();
_parent.easeToSimple(this, "easeOutBounce", 10, 0, 100, "_xscale", undefined);
var d = setInterval(s, 2000);
Symbol 480 MovieClip Frame 3
function res() {
_root.leveler2.gotoAndStop(1);
}
stop();
_parent.easeToSimple(this, "easeOutQuad", 10, 100, 0, "_xscale", this.res);
Symbol 481 MovieClip Frame 1
stop();
this._xscale = (this._yscale = 100);
Symbol 481 MovieClip Frame 2
stop();
if (_parent.leveler2._currentframe != 1) {
_parent.leveler2.kill();
}
if (_parent.leveler._currentframe != 1) {
_root.killLeveler();
}
_parent.easeToSimple(this, "easeOutBounce", 10, 0, 100, "_xscale", undefined);
Symbol 481 MovieClip Frame 3
function res() {
_parent.coverInterface();
_root.leveler3.gotoAndStop(1);
}
stop();
_parent.easeToSimple(this, "easeOutQuad", 10, 100, 0, "_xscale", this.res);