Frame 1
lang = "eng";
Frame 2
if (_root.getBytesLoaded() <= 20000) {
gotoAndPlay (1);
} else {
play();
}
Frame 3
stop();
Frame 4
gotoAndPlay (1);
Frame 6
if (false) {
}
Frame 7
if (false) {
}
Frame 8
if (false) {
}
Frame 9
if (false) {
}
Frame 10
if (false) {
}
Frame 11
if (false) {
}
Frame 12
if (false) {
}
Frame 13
if (false) {
}
Frame 14
if (false) {
}
Frame 15
if (false) {
}
Frame 16
if (false) {
}
Frame 17
if (false) {
}
Frame 18
if (false) {
}
Frame 19
if (false) {
}
Frame 26
stop();
muzikie = new Sound();
muzikie.attachSound("muzikie");
stopAllSounds();
Frame 27
_global.pause = true;
muzikie.start(0, 999);
Instance of Symbol 38 MovieClip [_soundsystem] "ssound" in Frame 27
onClipEvent (keyDown) {
if (Key.getCode() == 80) {
if (_global.intro != true) {
if (_global.pause) {
_global.pause = false;
_root.pauseMenu.gotoAndStop(1);
} else {
_global.pause = true;
_root.pauseMenu.gotoAndPlay(2);
}
}
}
if (Key.getCode() == 83) {
_root.ssound.play();
}
}
onClipEvent (load) {
_visible = false;
}
Frame 28
if (false) {
}
Frame 31
stop();
Frame 32
if (false) {
}
Frame 46
if (false) {
}
Frame 76
if (false) {
}
Frame 106
if (false) {
}
Frame 136
if (false) {
}
Frame 166
stop();
_global.pause = false;
Frame 186
stop();
Symbol 12 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 2
_root.ssound.snd("nitro");
Symbol 17 MovieClip Frame 16
gotoAndPlay (3);
Symbol 18 MovieClip Frame 1
stop();
Symbol 21 MovieClip [car_mc] Frame 1
#initclip 6
Object.registerClass("car_mc", as.car);
#endinitclip
stop();
Symbol 24 MovieClip [trk3] Frame 8
removeMovieClip(this);
Symbol 27 MovieClip [trk] Frame 21
removeMovieClip(this);
Symbol 30 MovieClip [trk2] Frame 16
removeMovieClip(this);
Symbol 36 MovieClip [stopWatch] Frame 1
#initclip 4
Object.registerClass("stopWatch", as.stopwatch);
#endinitclip
Symbol 38 MovieClip [_soundsystem] Frame 1
#initclip 5
Object.registerClass("_soundsystem", as.ssound);
#endinitclip
Symbol 38 MovieClip [_soundsystem] Frame 3
trace("sound on");
_global.sound = true;
stop();
Symbol 38 MovieClip [_soundsystem] Frame 7
stopAllSounds();
_global.sound = false;
trace("sound off");
stop();
Symbol 264 MovieClip [__Packages.as.stopwatch] Frame 0
class as.stopwatch extends MovieClip
{
var finnished, TF, valor, obj, interval, TF_tho, TF_min, TF_sec;
function stopwatch () {
super();
}
function startCount(num) {
if (num == undefined) {
num = 0;
}
clearInt();
finnished = false;
TF.text = num;
valor = num;
obj = new Object();
obj._parent = this;
obj.interval = function () {
if (_global.pause != true) {
this._parent.valor++;
}
var _local3 = Number(this._parent.valor);
this._parent.TF_tho.text = _local3 % 100;
this._parent.TF_sec.text = Math.floor(_local3 / 100) % 60;
this._parent.TF_min.text = Math.floor(_local3 / 6000);
this._parent.formatTime();
if (this._parent.valor == 0) {
this._parent.clearInt();
}
};
interval = setInterval(obj, "interval", 10);
}
function formatTime() {
if (TF_tho.text.length == 1) {
TF_tho.text = "0" + TF_tho.text;
}
if (TF_min.text.length == 1) {
TF_min.text = "0" + TF_min.text;
}
if (TF_sec.text.length == 1) {
TF_sec.text = "0" + TF_sec.text;
}
}
function clearInt() {
finnished = true;
clearInterval(interval);
}
}
Symbol 265 MovieClip [__Packages.as.ssound] Frame 0
class as.ssound extends MovieClip
{
var muzikie, nitro, tire, brake, crash, muzic;
function ssound () {
super();
muzikie = new Sound();
nitro = new Sound();
tire = new Sound();
brake = new Sound();
crash = new Sound();
muzikie.attachSound("muzikie");
nitro.attachSound("nitroSnd");
tire.attachSound("brakeSnd");
brake.attachSound("tireSnd");
crash.attachSound("metHitSnd");
}
function startMusic() {
trace("music starting");
muzic.start(0, 65535);
}
function stopMusic() {
muzic.stop();
}
function snd(tg) {
if (_global.sound != false) {
if ((this[tg].position == 0) or (this[tg].position == this[tg].duration)) {
this[tg].start(0);
}
}
}
function stopSnd(tg) {
var _local2 = ("\"" + tg) + "\"";
this[tg].stop(_local2);
}
function stopAll() {
stopSnd("expl");
stopSnd("beamsound");
stopSnd("jetpack");
stopSnd("repeating");
}
}
Symbol 266 MovieClip [__Packages.as.car] Frame 0
class as.car extends MovieClip
{
var ghostArr, ghost, body, lf, left, rt, right, playGhostCar, rec, nitro, map, _parent, hole, _ghostcar, shade, shadow, crCount, blocks, ramp, spd, ang, c, alt, next, laps, clap, oldtime, spdx, _rotation, spdy, _xscale, _yscale, inAir, _x, _y, ghind, claptime, racetime, onEnterFrame, crashSnd, blink, _visible, hand, onRoad, lastKey, nitroOn, pipe;
function car () {
super();
ghostArr = new Array();
ghost = "rec";
if (_global.ghostArr != undefined) {
ghostArr = _global.ghostArr;
ghost = "play";
}
body = body;
lf = left;
rt = right;
playGhostCar = (rec = false);
nitro = 300;
map = _parent.map;
hole = map.hole;
_ghostcar = _parent._ghost;
shade = shadow;
crCount = 60;
blocks = map.unpassable;
ramp = map.ramp;
spd = 0;
ang = 0;
c = 22;
alt = 0;
next = 0;
laps = 3;
clap = 0;
oldtime = 0;
_parent.laps.text = laps;
init();
}
function upd() {
spdx = spd * Math.cos((_rotation * Math.PI) / 180);
spdy = spd * Math.sin((_rotation * Math.PI) / 180);
}
function fakeUpd() {
testDeflectors();
map._x = map._x - spdx;
map._y = map._y - spdy;
_parent.nitroperc = Math.floor(Number((nitro / 300) * 100)) + "%";
spdx = spdx * 0.98;
spdy = spdy * 0.98;
_xscale = (_yscale = 100 + alt);
shadow._xscale = (shadow._yscale = 100 + alt);
shadow._alpha = 100 - (1.5 * alt);
if ((inAir == false) && (alt > 0)) {
alt = alt * 0.9;
}
if ((ang > 2) or (spd < 10)) {
addMarks();
}
}
function tzone() {
if (map["h" + next].hitTest(_x, _y, true)) {
if (next == 0) {
newLap();
}
next++;
}
if (next == 8) {
next = 0;
}
}
function startRecording() {
rec = true;
ghostArr = new Array();
}
function startPlay() {
playGhostCar = true;
ghind = 0;
}
function newLap() {
if (claptime == undefined) {
claptime = 0;
startRecording();
startPlay();
}
map.arrows.gotoAndStop(clap + 1);
map.bars.gotoAndStop(clap + 1);
blocks.gotoAndStop(clap + 1);
if (clap == laps) {
_global.pause = true;
endGame();
} else if (clap < laps) {
oldtime = oldtime + claptime;
clap++;
_parent.clap.text = clap;
_parent.stopwatch.startCount();
}
}
function setBestLap() {
_parent.bestLap.TF_min.text = _parent.stopwatch.TF_min.text;
_parent.bestLap.TF_sec.text = _parent.stopwatch.TF_sec.text;
_parent.bestLap.TF_tho.text = _parent.stopwatch.TF_tho.text;
}
function testDeflectors() {
lf._x = 0 + (spd * 1.5);
rt._x = 0 + (spd * 1.5);
var _local2 = {x:lf._x, y:lf._y};
var _local3 = {x:rt._x, y:rt._y};
lf.localToGlobal(_local2);
rt.localToGlobal(_local3);
if (map._ht.hitTest(_local2.x, _local2.y, true) == false) {
ang = ang + (spd / 8);
upd();
}
if (map._ht.hitTest(_local3.x, _local3.y, true) == false) {
ang = ang - (spd / 8);
upd();
}
if (blocks.hitTest(_local2.x, _local2.y, true)) {
ang = ang + (1.5 * spd);
spd = spd * 0.8;
upd();
}
if (blocks.hitTest(_local3.x, _local3.y, true)) {
ang = ang - (spd * 1.5);
spd = spd * 0.8;
upd();
}
}
function setBestRace() {
racetime = oldtime + claptime;
if (racetime < 30000) {
_global.score = 1500000 - (racetime * 100);
} else {
_global.score = 0;
}
_root.scorets = _global.score;
_global.score = _global.score + " points";
_global.timpul = (((((_parent.racetime.TF_min.text + "min") + " ") + _parent.racetime.TF_sec.text) + "sec") + " ") + _parent.racetime.TF_tho.text;
_root.timets = (((_parent.racetime.TF_min.text + ":") + _parent.racetime.TF_sec.text) + ":") + _parent.racetime.TF_tho.text;
if (_global.bestracetime == undefined) {
_global.bestracetime = 99999999 /* 0x5F5E0FF */;
}
if (racetime < _global.bestracetime) {
_global.bestracetime = racetime;
_global.ghostArr = ghostArr;
_parent.bestRace.TF_min.text = _parent.racetime.TF_min.text;
_parent.bestRace.TF_sec.text = _parent.racetime.TF_sec.text;
_parent.bestRace.TF_tho.text = _parent.racetime.TF_tho.text;
} else if (_global.bestracetime != 99999999) {
var _local4 = _global.bestracetime;
_parent.bestRace.TF_min.text = Math.floor(_local4 / 6000);
_parent.bestRace.TF_sec.text = Math.floor(_local4 / 100) % 60;
_parent.bestRace.TF_tho.text = _local4 % 100;
}
formatTimes(2);
}
function formatTimes(tg) {
if (tg == undefined) {
var _local2 = _parent.racetime;
} else {
var _local2 = _parent.bestRace;
}
if (_local2.TF_tho.text.length == 1) {
_local2.TF_tho.text = "0" + _local2.TF_tho.text;
}
if (_local2.TF_min.text.length == 1) {
_local2.TF_min.text = "0" + _local2.TF_min.text;
}
if (_local2.TF_sec.text.length == 1) {
_local2.TF_sec.text = "0" + _local2.TF_sec.text;
}
}
function setRaceTime() {
claptime = _parent.stopwatch.valor;
racetime = oldtime + claptime;
if ((racetime != undefined) && (claptime != undefined)) {
_parent.racetime.TF_min.text = Math.floor(racetime / 6000);
_parent.racetime.TF_sec.text = Math.floor(racetime / 100) % 60;
_parent.racetime.TF_tho.text = racetime % 100;
formatTimes();
}
}
function endGame() {
trace("game ended");
setBestRace();
_parent.gotoAndPlay("endGame");
}
function doGhost() {
if (rec == true) {
ghostArr.push({x:map._x, y:map._y, rot:_rotation});
}
playGhost();
}
function playGhost() {
if (((_global.ghostArr != undefined) and (playGhostCar == true)) and (ghind < _global.ghostArr.length)) {
_ghostcar._visible = true;
_ghostcar._x = (map._x - _global.ghostArr[ghind].x) + _x;
_ghostcar._y = (map._y - _global.ghostArr[ghind].y) + _y;
_ghostcar._rotation = _global.ghostArr[ghind].rot;
ghind++;
}
}
function leanCar() {
if ((ang > 3) and (spd > 4)) {
body.gotoAndStop(2);
} else if ((ang < -3) and (spd > 4)) {
body.gotoAndStop(3);
} else {
body.gotoAndStop(1);
}
}
function init() {
setBestRace();
onEnterFrame = function () {
if (_global.pause != true) {
this.readKeys();
this.fakeUpd();
this.doGhost();
this.startBlink();
this.leanCar();
this.tzone();
this.setRaceTime();
this.spd = this.spd * 0.98;
this.ang = this.ang * 0.5;
this._rotation = this._rotation + this.ang;
}
this._parent.spid = Math.abs(Math.floor((this.spd * 10) / 2)) + " mph";
if (this.map._ht.hitTest(this._x + this.spdx, this._y + this.spdy, true) == true) {
this.onRoad = "onRoad";
this.blink = 0;
} else {
this.onRoad = "onGrass";
this.brake3();
}
if (this.map.dirtZone.hitTest(this._x + this.spdx, this._y + this.spdy, true) == true) {
this.onRoad = "onDirt";
this.randomDeflector2();
this.addMarks();
}
if (this.hole.hitTest(this._x + this.spdx, this._y + this.spdy, true) and (this.alt < 1)) {
this.spdx = this.spdx * -0.25;
this.spdy = this.spdy * -0.25;
this.spd = this.spd * -0.25;
this.crCount--;
if (this.crCount <= 0) {
this.crCount = 90;
this.map._y = this.map._y - 150;
this.blink = 30;
}
}
if (this.map.waterZone.hitTest(this._x + this.spdx, this._y + this.spdy, true)) {
this.onRoad = "onWater";
this.randomDeflector();
this.addMarks();
}
if (this.ramp.hitTest(this._x + this.spdx, this._y + this.spdy, true)) {
this.alt = this.alt + (this.spd / 2);
this.inAir = true;
} else {
this.inAir = false;
}
if (this.blocks.hitTest(this._x + (2 * this.spdx), this._y + (2 * this.spdy), true) && (this.alt < 1)) {
if (Key.isDown(38) || (this.lastKey == "up")) {
if (this.spd < 0) {
this.spdx = 1.5;
this.spdy = 1.5;
this.spd = 1.5;
} else {
this.spdx = (-this.spdx) / 2;
this.spdy = (-this.spdy) / 2;
this.spd = (-this.spd) / 2;
}
}
if (Key.isDown(40) || (this.lastKey == "dn")) {
if (this.spd < 0) {
this.spdx = 2;
this.spdy = 2;
this.spd = 2;
} else {
this.spdx = -1;
this.spdy = -1;
this.spd = -1;
}
}
this.upd();
this.onRoad = "blocks";
this.soundZeCrash();
} else {
this.crashSnd = true;
}
};
}
function soundZeCrash() {
if (crashSnd == true) {
_root.ssound.snd("crash");
crashSnd = false;
}
}
function startBlink() {
if (blink > 0) {
blink--;
if (blink == 0) {
_visible = true;
return(undefined);
}
if ((blink / 2) == Math.floor(blink / 2)) {
_visible = true;
} else {
_visible = false;
}
} else {
_visible = true;
}
}
function randomDeflector() {
var _local2 = random(100);
if ((_local2 / 2) == Math.floor(_local2 / 2)) {
_local2 = 1;
} else {
_local2 = -1;
}
ang = ang + ((_local2 * spd) / 8);
}
function randomDeflector2() {
var _local2 = random(100);
if ((_local2 / 2) == Math.floor(_local2 / 2)) {
_local2 = 1;
} else {
_local2 = -1;
}
ang = ang + ((_local2 * spd) / 2);
}
function handBrake() {
if (hand == false) {
ang = ang * (spd / 4);
hand = true;
}
brake2();
}
function brake2() {
spdx = spdx * 0.9;
spdy = spdy * 0.9;
spd = spd * 0.9;
}
function brake3() {
spdx = spdx * 0.85;
spdy = spdy * 0.85;
spd = spd * 0.85;
}
function brake() {
spdx = spdx * 0.8;
spdy = spdy * 0.8;
spd = spd * 0.8;
}
function accel() {
spd = spd + 0.4;
upd();
}
function backaccel() {
var _local3 = (spd + 2) * Math.cos((_rotation * Math.PI) / 180);
var _local2 = (spd + 2) * Math.sin((_rotation * Math.PI) / 180);
if (Key.isDown(40)) {
spd = spd - 0.1;
upd();
} else if (Key.isDown(38) && (blocks.hitTest(_x + _local3, _y + _local2, true) != true)) {
accel();
} else if (Key.isDown(38) && (blocks.hitTest(_x - _local3, _y - _local2, true) != true)) {
spd = spd - 0.4;
upd();
}
}
function addMarks() {
if (((inAir != true) && (alt < 1)) && (spd > 2)) {
switch (onRoad) {
case "onRoad" :
var _local2 = map.attachMovie("trk", "trk" + c, c, {_x:(map._x * -1) + _x, _y:(map._y * -1) + _y});
tireSound();
_local2._rotation = _rotation;
_local2._width = 2 * spd;
break;
case "onGrass" :
_local2 = map.attachMovie("trk2", "trk" + c, c, {_x:(map._x * -1) + _x, _y:(map._y * -1) + _y});
_local2._rotation = -_rotation;
_local2._width = 2 * spd;
break;
case "onDirt" :
_local2 = map.attachMovie("trk2", "trk" + c, c, {_x:(map._x * -1) + _x, _y:(map._y * -1) + _y});
_local2._rotation = _rotation;
_local2._width = 1.2 * spd;
break;
case "onWater" :
if (spd <= 5) {
break;
}
_local2 = map.attachMovie("trk3", "trk" + c, c, {_x:(map._x * -1) + _x, _y:(map._y * -1) + _y});
_local2._rotation = _rotation;
}
c++;
}
}
function tireSound() {
if ((spd > 10) and (Math.abs(ang) > 7)) {
if (hand == false) {
_root.ssound.snd("tire");
}
} else if (hand == true) {
_root.ssound.snd("brake");
}
}
function readKeys() {
if ((onRoad != "blocks") && (Key.isDown(38))) {
lastKey = "up";
accel();
} else if ((onRoad == "blocks") && (Key.isDown(38))) {
lastKey = "up";
backaccel();
}
if ((onRoad != "blocks") && (Key.isDown(40))) {
lastKey = "dn";
backaccel();
} else if ((onRoad == "blocks") && (Key.isDown(40))) {
lastKey = "dn";
}
if (Math.abs(spd) > 1) {
if (Key.isDown(37)) {
ang = ang - 3;
}
if (Key.isDown(39)) {
ang = ang + 3;
}
}
if (Key.isDown(32)) {
handBrake();
} else {
hand = false;
}
if (((Key.isDown(16) && (nitro > 0)) && (onRoad != "blocks")) && (onRoad != "onGrass")) {
nitroOn = true;
pipe.play();
nitro--;
accel();
} else {
nitroOn = false;
pipe.gotoAndStop(1);
}
}
}
Symbol 45 Button
on (release) {
getURL ("http://www.jumptogames.com", "_blank");
}
Symbol 48 Button
on (release) {
getURL ("http://www.jocurifree.ro", "_blank");
}
Symbol 49 MovieClip Frame 1
stop();
if (_root.lang == "rom") {
gotoAndStop (2);
}
Symbol 53 MovieClip Frame 30
stop();
Symbol 53 MovieClip Frame 40
stop();
Symbol 58 MovieClip Frame 1
stop();
if (_root.lang == "rom") {
gotoAndStop (2);
}
Symbol 79 MovieClip Frame 1
if (_parent._parent.kiki != null) {
gotoAndPlay (40);
}
Symbol 79 MovieClip Frame 175
stop();
_parent._parent._parent.play();
Symbol 86 MovieClip Frame 1
if (_parent._parent.kiki != null) {
gotoAndPlay (40);
}
Symbol 86 MovieClip Frame 176
stop();
_parent._parent._parent.play();
Symbol 87 MovieClip Frame 1
stop();
if (_root.lang == "rom") {
gotoAndStop (2);
}
Symbol 90 MovieClip Frame 1
stop();
if (_root.lang == "rom") {
gotoAndStop (2);
}
Symbol 94 MovieClip Frame 1
stop();
if (_root.lang == "rom") {
gotoAndStop (2);
}
Symbol 95 MovieClip Frame 100
stop();
Symbol 96 MovieClip Frame 52
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
play();
} else {
gotoAndPlay ("preloading");
}
Symbol 96 MovieClip Frame 53
stop();
Symbol 96 MovieClip Frame 55
xyb1 = _root.getBytesLoaded();
xyb2 = _root.getBytesTotal();
xytgFrame = Math.round((xyb1 / xyb2) * 100) + 1;
bar.gotoAndStop(xytgFrame);
Symbol 96 MovieClip Frame 57
if (xyb1 >= xyb2) {
gotoAndStop ("preloadfinished");
kiki = 1;
} else {
gotoAndPlay ("xloop2");
}
Symbol 99 MovieClip Frame 30
stop();
Symbol 99 MovieClip Frame 40
stop();
Symbol 100 MovieClip Frame 1
this._x = 0;
this._y = 0;
xPos = _x;
yPos = _y;
backbuton._x = backbuton._x - xPos;
backbuton._y = backbuton._y - yPos;
var stageWidth = Stage.width;
var stageHeight = Stage.height;
var centerStageX = (stageWidth / 2);
var centerStageY = (stageHeight / 2);
backbuton._width = stageWidth;
backbuton._height = stageHeight;
butlink._x = stageWidth + 2;
butlink._y = stageHeight - 20;
if (_root.lang == "eng") {
backbuton.onRelease = function () {
getURL ("http://www.gamesheep.com", "_blank");
};
} else {
backbuton.onRelease = function () {
getURL ("http://www.ejocuri.ro", "_blank");
};
}
Symbol 100 MovieClip Frame 6
maskprel.inside._width = stageWidth;
linii._y = Math.round(centerStageY);
maskprel._y = Math.round(centerStageY);
logo._y = Math.round(centerStageY);
logo._x = Math.round(centerStageX);
Symbol 100 MovieClip Frame 35
stop();
Symbol 100 MovieClip Frame 36
maskprel.inside.play();
linii.play();
Symbol 100 MovieClip Frame 45
stop();
_root.gotoAndPlay("preloadFinished");
Symbol 107 Button
on (release) {
this.instruct.gotoAndPlay(2);
}
Symbol 115 Button
on (press) {
getURL ("http://www.jumptogames.com/free-content/land-rider.zip", "_blank");
}
Symbol 120 Button
on (release) {
_root.gotoAndPlay("startGame");
}
Symbol 126 Button
on (release) {
path = encryptor.viewHighscores("land-rider");
getURL (path, "_blank");
trace(path);
}
Symbol 128 MovieClip Frame 1
this.onPress = null;
this.useHandCursor = false;
Symbol 134 MovieClip Frame 1
stop();
Symbol 143 Button
on (release) {
this.gotoAndStop(1);
_root.instr._visible = true;
_root.strt._visible = true;
_root.scrbtn._visible = true;
_root.addbtn._visible = true;
}
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 2
trace("INTR");
this._parent.instr._visible = false;
this._parent.strt._visible = false;
this._parent.scrbtn._visible = false;
this._parent.addbtn._visible = false;
Instance of Symbol 134 MovieClip in Symbol 144 MovieClip Frame 3
onClipEvent (load) {
val = "CLOSE";
this.stop();
this.onPress = function () {
this._parent.gotoAndStop(1);
this.gotoAndPlay(2);
};
}
Symbol 144 MovieClip Frame 9
stop();
Symbol 151 Button
on (press) {
getURL ("http://www.jumptogames.com", "_blank");
}
Symbol 159 MovieClip [TMP6l0zxdia4b] Frame 1
function extractKey(bust) {
vKey1 = Number(bust.charAt(bust.length - 1)) + 5;
vKey2 = Number(bust.charAt(bust.length - 2)) + 4;
vKey3 = Number(bust.charAt(bust.length - 3)) + 3;
if (vKey1 > 9) {
vKey1 = vKey1 - 10;
}
if (vKey2 > 9) {
vKey2 = vKey2 - 10;
}
if (vKey3 > 9) {
vKey3 = vKey3 - 10;
}
vKey = (("" + vKey3) + vKey2) + vKey1;
return(vKey);
}
function encryptText(txt) {
txtArray = new Array();
i = 0;
while (i < txt.length) {
txtArray[i] = txt.charAt(i);
if (!isNaN(Number(txtArray[i]))) {
txtArray[i] = Number(txtArray[i]);
txtArray[i] = txtArray[i] + Number(theKey.charAt(0));
if (txtArray[i] >= 10) {
txtArray[i] = txtArray[i] - 10;
}
}
i++;
}
k = 0;
while (k <= 6) {
xKey1 = Number(theKey.charAt(0)) + k;
if (xKey1 >= 10) {
xKey1 = xKey1 - 10;
}
xKey2 = Number(theKey.charAt(1)) + xKey1;
if (xKey2 >= 10) {
xKey2 = xKey2 - 10;
}
xKey3 = Number(theKey.charAt(2)) + xKey2;
if (xKey3 >= 10) {
xKey3 = xKey3 - 10;
}
i = 0;
while (i < txt.length) {
if (((i % xKey1) == 0) && ((i + xKey1) < txt.length)) {
aux = txtArray[i];
txtArray[i] = txtArray[i + xKey1];
txtArray[i + xKey1] = aux;
}
i++;
}
i = 0;
while (i < txt.length) {
if (((i % xKey2) == 0) && ((i + xKey2) < txt.length)) {
aux = txtArray[i];
txtArray[i] = txtArray[i + xKey2];
txtArray[i + xKey2] = aux;
}
i++;
}
i = 0;
while (i < txt.length) {
if (((i % xKey3) == 0) && ((i + xKey3) < txt.length)) {
aux = txtArray[i];
txtArray[i] = txtArray[i + xKey3];
txtArray[i + xKey3] = aux;
}
i++;
}
k++;
}
returntxt = "";
i = 0;
while (i < txt.length) {
returntxt = returntxt + txtArray[i];
i++;
}
returntxt = escape(returntxt);
return(returntxt);
}
function decryptText(txt) {
txt = unescape(txt);
txtArray = new Array();
i = 0;
while (i < txt.length) {
txtArray[i] = txt.charAt(i);
i++;
}
k = 6;
while (k >= 0) {
xKey1 = Number(theKey.charAt(0)) + k;
if (xKey1 >= 10) {
xKey1 = xKey1 - 10;
}
xKey2 = Number(theKey.charAt(1)) + xKey1;
if (xKey2 >= 10) {
xKey2 = xKey2 - 10;
}
xKey3 = Number(theKey.charAt(2)) + xKey2;
if (xKey3 >= 10) {
xKey3 = xKey3 - 10;
}
i = txt.length - 1;
while (i >= 0) {
if ((((i - xKey3) % xKey3) == 0) && ((i - xKey3) >= 0)) {
aux = txtArray[i];
txtArray[i] = txtArray[i - xKey3];
txtArray[i - xKey3] = aux;
}
i--;
}
i = txt.length - 1;
while (i >= 0) {
if ((((i - xKey2) % xKey2) == 0) && ((i - xKey2) >= 0)) {
aux = txtArray[i];
txtArray[i] = txtArray[i - xKey2];
txtArray[i - xKey2] = aux;
}
i--;
}
i = txt.length - 1;
while (i >= 0) {
if ((((i - xKey1) % xKey1) == 0) && ((i - xKey1) >= 0)) {
aux = txtArray[i];
txtArray[i] = txtArray[i - xKey1];
txtArray[i - xKey1] = aux;
}
i--;
}
k--;
}
i = 0;
while (i < txt.length) {
if (!isNaN(Number(txtArray[i]))) {
txtArray[i] = Number(txtArray[i]);
txtArray[i] = txtArray[i] - Number(theKey.charAt(0));
if (txtArray[i] < 0) {
txtArray[i] = txtArray[i] + 10;
}
}
i++;
}
returntxt = "";
i = 0;
while (i < txt.length) {
returntxt = returntxt + txtArray[i];
i++;
}
return(returntxt);
}
function generateJunkWord(len) {
junkWord = "";
w = 1;
while (w <= len) {
if (w <= Math.round(len / 2)) {
ran = random(25) + 97;
} else {
ran = random(9) + 48;
}
if (String.fromCharCode(ran) != ":") {
junkWord = junkWord + String.fromCharCode(ran);
} else {
junkWord = junkWord + "W";
}
w++;
}
return(junkWord);
}
encryptScore = function (var_gameid, var_user, var_score) {
if ((var_score.indexOf("NaN", 0) < 0) && (var_score.indexOf("undefined", 0) < 0)) {
var _local2 = new Date();
unixTime = Math.round(_local2.getTime() / 1000);
buster = String(unixTime);
theKey = extractKey(buster);
txtToEnc = ((var_gameid + "*:o:*") + generateJunkWord(12)) + "*:o:*";
txtToEnc = txtToEnc + (((var_user + "*:o:*") + generateJunkWord(12)) + "*:o:*");
txtToEnc = txtToEnc + var_score;
txtEnc = encryptText(txtToEnc, theKey);
challenge = txtEnc;
calea = (((((((("http://www.jumptogames.com/scores.php?gameid=" + var_gameid) + "&user=") + var_user) + "&score=") + var_score) + "&buster=") + buster) + "&challenge=") + challenge;
}
return(calea);
};
viewHighscores = function (var_gameid) {
calea = "http://www.jumptogames.com/scores.php?gameid=" + var_gameid;
return(calea);
};
Symbol 166 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 1
_visible = false;
stop();
Symbol 174 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 1
_visible = false;
Symbol 183 MovieClip Frame 1
_visible = false;
Symbol 185 MovieClip Frame 1
_visible = false;
Symbol 186 MovieClip Frame 1
_visible = false;
Instance of Symbol 185 MovieClip "h4" in Symbol 187 MovieClip Frame 1
/* no clip actions */
Symbol 208 MovieClip Frame 1
this.onPress = null;
this.useHandCursor = false;
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 6
stop();
Symbol 220 Button
on (release) {
_root.play();
}
Symbol 231 MovieClip Frame 1
this.onPress = null;
this.useHandCursor = false;
Symbol 256 Button
on (release) {
gotoAndPlay ("inscrie");
}
Symbol 257 Button
on (release) {
_root.gotoAndPlay("startGame");
}
Symbol 258 Button
on (release) {
_root.gotoAndPlay("mainMenu");
}
Symbol 260 MovieClip Frame 1
this.onPress = null;
this.useHandCursor = false;
Symbol 261 Button
on (release) {
path = encryptor.encryptScore("land-rider", _root.user, String(_root.timets));
getURL (path, "_blank");
trace(path);
_root.gotoAndPlay("mainMenu");
}
Symbol 263 MovieClip Frame 20
stop();
_root.muzikie.stop();
Symbol 263 MovieClip Frame 21
stop();
nametxt.onSetFocus = function () {
_root.user = "";
};