Frame 1
Mouse.show();
stop();
money = 50;
weakblaster = 20;
booster = 5;
aura = 0;
bomb = 0;
auratimer = 0;
blasteractive = true;
auraactive = false;
bombactive = false;
stop();
var menu = new Sound();
menu.attachSound("menu music");
menu.start();
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("9d511ad0", this, 10301, true);
Frame 2
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
money = 50;
weakblaster = 20;
booster = 5;
aura = 0;
bomb = 0;
auratimer = 0;
blasteractive = true;
auraactive = false;
bombactive = false;
stop();
var menu = new Sound();
menu.attachSound("menu music");
menu.start();
Frame 4
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
Frame 5
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
Frame 6
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
Frame 7
stop();
Frame 8
Mouse.show();
stop();
stopAllSounds();
_quality = "LOW";
var shot = new Sound();
shot.attachSound("lasershoot");
var aurasound = new Sound();
aurasound.attachSound("aurasound2");
var bombsound = new Sound();
bombsound.attachSound("bombsound2");
var boostersound = new Sound();
boostersound.attachSound("boostersound2");
thud1 = new Sound();
thud1.attachSound("thud1");
dirt1 = new Sound();
dirt1.attachSound("rockslide");
dirt1.onSoundComplete = function () {
dirting = false;
};
dirting = false;
flen = 20;
clip_dist = 1000;
pedal = false;
speed1 = 0;
degree1 = 0;
rotspeed1 = 10;
maxspeed1 = 35;
accel1 = 0.003;
brake1 = 0.95;
damp1 = 0.97;
lapsdone = -1;
lapsdone_txt = "START";
bestlap = 1E20;
bestlap_txt = "";
sterstate = 0;
temp = 0;
rotation = 0;
speed = 0;
rotaz1 = -90;
initx = 385;
inity = -80;
enemy2lapsdone = -1;
enemy3lapsdone = -1;
enemy4lapsdone = -1;
checkpoints = 4;
cpoint1 = 0;
cpoint2 = 0;
cpoint3 = 0;
cpoint4 = 0;
waypoints = 16;
var timing = false;
var paused = false;
var remaining;
var elapsedTime;
var elapsedHours;
var elapsedM;
var elapsedS;
var elapsedH;
var startTime;
var remaining;
var hours;
var minutes;
var seconds;
var hundredths;
mapp.move.gotoAndStop(2);
mapp.move.fov._x = 45;
mapp.move.fov._y = -195;
_root.createEmptyMovieClip("scena", 1);
scena._x = 0;
scena._y = 0;
_root.stripes = 85;
i = 1;
while (i <= _root.stripes) {
slice = scena.attachMovie("track01", "t0" + i, i);
slice.swapDepths(scena.future);
slice._x = 200;
slice._y = 300;
ratio = i / stripes;
slice._yscale = (slice._xscale = (i * 15) * ratio);
mask = attachMovie("mask", "mask" + i, scena.getNextHighestDepth());
mask._height = (i * ratio) * 2.5;
mask._x = -80;
mask._y = 150 + ((i * ratio) * 2.5);
var r = createEmptyMovieClip("laser", 4);
mask.swapDepths(marker1);
mask.swapDepths(marker2);
mask.swapDepths(marker3);
mask.swapDepths(scritta);
mask.swapDepths(mapp);
mask.swapDepths(credits);
mask.swapDepths(cursor_mc);
slice.setMask(mask);
i++;
}
scena.attachMovie("future", "future", scena.getNextHighestDepth());
scena.future._x = 200;
scena.future.gotoAndPlay(15);
scena.attachMovie("smok1", "smok1", scena.getNextHighestDepth());
scena.smok1._x = scena.future._x;
scena.smok1._xscale = (scena.smok1._yscale = 200);
scena.smok1._y = 285;
scena.attachMovie("boostage", "boostage", scena.getNextHighestDepth());
scena.boostage._x = 200;
scena.boostage._y = 260;
scena.attachMovie("gravbomb", "gravbomb", scena.getNextHighestDepth());
scena.gravbomb._x = 205;
scena.gravbomb._y = 160;
scena.gravbomb._xscale = (scena.gravbomb._yscale = 70);
scena.gravbomb.gotoAndStop(12);
var mouseListener = new Object();
mouseListener.onMouseDown = function () {
};
mouseListener.onMouseUp = function () {
};
scena.boostage.gotoAndStop(10);
Mouse.addListener(mouseListener);
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (Key.getAscii() == 49) {
if (blasteractive == false) {
auratimer = 0;
blasteractive = true;
auraactive = false;
bombactive = false;
}
}
if (Key.getAscii() == 50) {
if (auraactive == false) {
blasteractive = false;
auraactive = true;
bombactive = false;
}
}
if (Key.getAscii() == 51) {
if (bombactive == false) {
auratimer = 0;
blasteractive = false;
auraactive = false;
bombactive = true;
}
}
if (Key.getAscii() == 32) {
if (booster >= 1) {
scena.boostage.gotoAndPlay(1);
boostersound.start();
}
}
};
keyListener.onKeyUp = function () {
if (booster >= 1) {
if (Key.getAscii() == 32) {
speed1 = speed1 * 1.3;
}
if (Key.getAscii() == 32) {
_root.booster = _root.booster - 1;
}
}
};
Key.addListener(keyListener);
numtrees = 11;
numenergy = 1;
numaura = 1;
i = 1;
while (i <= numtrees) {
scena.attachMovie("tree", "tree" + i, scena.getNextHighestDepth());
i++;
}
i = 1;
while (i <= numenergy) {
scena.attachMovie("energyball", "energyball", scena.getNextHighestDepth());
scena.energyball._x = 2000;
i++;
}
i = 1;
while (i <= numaura) {
scena.attachMovie("aurablast_mc", "aurablast_mc", scena.getNextHighestDepth());
scena.aurablast_mc._x = 2000;
i++;
}
numenemies = 3;
cp_enemy = new Array();
cpnext_enemy = new Array();
speed_enemy = new Array();
anglestop_enemy = new Array();
oldangle_enemy = new Array();
en_speed = new Array();
en_maxspeed = new Array();
en_accel = new Array();
en_brake = new Array();
en_damp = new Array();
en_makelap = new Array();
en_timer = new Array();
en_lapsdone = new Array();
en_makelap2 = new Array();
en_lapsdone2 = new Array();
en_makelap3 = new Array();
en_lapsdone3 = new Array();
i = 1;
while (i <= numenemies) {
cp_enemy[i] = 0;
cpnext_enemy[i] = 0;
speed_enemy[i] = 0;
oldangle_enemy[i] = 0;
anglestop_enemy[i] = false;
en_speed[i] = 0;
en_maxspeed[i] = 8;
en_accel[i] = 0.005;
en_brake[i] = 0.95;
en_damp[i] = 0.96;
en_makelap[i] = false;
en_lapsdone[i] = -1;
en_timing[i] = false;
en_makelap2[i] = false;
en_lapsdone2[i] = -1;
en_makelap3[i] = false;
en_lapsdone3[i] = -1;
scena.attachMovie("opp" + i, "enemy" + i, scena.getNextHighestDepth());
i++;
}
i = 1;
while (i <= _root.stripes) {
eval ("scena.t0" + i)._rotation = _root.rotaz1;
eval ("scena.t0" + i).move._y = initx;
eval ("scena.t0" + i).move._x = inity;
i++;
}
scritta._visible = false;
_root.onLoad = initialize;
main_loop = function () {
pedal = false;
steer = 0;
onborder = false;
gunsteer = 0;
if (Key.isDown(87)) {
speed1 = speed1 + (((maxspeed1 - speed1) + 1) * accel1);
pedal = 1;
if ((speed1 > 0) and (speed1 < 5)) {
_root.scena.smok1._visible = true;
} else {
_root.scena.smok1._visible = false;
}
} else {
_root.scena.smok1._visible = false;
}
if (Key.isDown(83)) {
if (speed1 <= 0) {
speed1 = speed1 - (((maxspeed1 / 3) + speed1) * accel1);
} else {
speed1 = speed1 * brake1;
}
pedal = 2;
}
if (pedal == false) {
if (Math.abs(speed1) > 0.1) {
speed1 = speed1 * damp1;
} else {
speed1 = 0;
}
}
if (Key.isDown(68)) {
_root.rotaz1 = _root.rotaz1 - 5;
steer = 1;
gunsteer = 1;
_root.scena.future.nextFrame();
}
if (Key.isDown(65)) {
_root.rotaz1 = _root.rotaz1 + 5;
steer = 2;
gunsteer = 2;
_root.scena.future.prevFrame();
}
if (steer == 0) {
if (_root.scena.future._currentframe >= 16) {
_root.scena.future.prevFrame();
}
if (_root.scena.future._currentframe <= 14) {
_root.scena.future.nextFrame();
}
}
scena.future.swapDepths(10100);
scena.smok1.swapDepths(10101);
scena.energyball.swapDepths(10098);
scena.aurablast_mc.swapDepths(10109);
scena.boostage.swapDepths(10110);
scena.gravbomb.swapDepths(10099);
if (rotaz1 > 180) {
rotaz1 = -180 + (rotaz1 - 180);
}
if (rotaz1 < -180) {
rotaz1 = 180 + (rotaz1 + 180);
}
mapp.move.fov._rotation = (-_root.rotaz1) - 90;
mapp.move.fov._x = mapp.move.fov._x - (_root.sinness / 2);
mapp.move.fov._y = mapp.move.fov._y - (_root.cosness / 2);
mapp.move.newshothit._rotation = (-_root.rotaz1) + 0;
mapp.move.newshothit._x = mapp.move.newshothit._x + (_root.sinness / 2);
mapp.move.newshothit._y = mapp.move.newshothit._y + (_root.cosness / 2);
mapp.move.newauracharge._rotation = (-_root.rotaz1) + 90;
mapp.move.newauracharge._x = mapp.move.newauracharge._x - (_root.sinness / 2);
mapp.move.newauracharge._y = mapp.move.newauracharge._y - (_root.cosness / 2);
i = 1;
while (i <= _root.stripes) {
eval ("scena.t0" + i)._rotation = _root.rotaz1;
eval ("scena.t0" + i).move._x = (-mapp.move.fov._x) * 1.78;
eval ("scena.t0" + i).move._y = (-mapp.move.fov._y) * 1.94;
i++;
}
i = 1;
while (i <= numtrees) {
dx = eval ("mapp.move.mtree" + i)._x - mapp.move.fov._x;
dy = eval ("mapp.move.mtree" + i)._y - mapp.move.fov._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
ang1 = rotaz1;
ang2 = -(((Math.atan2(dy, dx) * 180) / Math.PI) + 90);
angle = (-ang2) + ang1;
if (angle > 180) {
angle = angle - 360;
}
angle = (angle * Math.PI) / 180;
dist_side = dist * Math.sin(angle);
dist_depth = dist * Math.cos(angle);
scaleRatio = flen / (flen + dist_depth);
eval ("scena.tree" + i)._x = scena.future._x + ((dist_side * scaleRatio) * 10);
eval ("scena.tree" + i)._y = 147 + (scaleRatio * 95);
eval ("scena.tree" + i)._xscale = (eval ("scena.tree" + i)._yscale = 100 * scaleRatio);
eval ("scena.tree" + i).swapDepths(10000 + Math.floor(eval ("scena.tree" + i)._xscale));
if ((dist_depth < -20) or (dist_depth > clip_dist)) {
eval ("scena.tree" + i)._visible = false;
} else {
eval ("scena.tree" + i)._visible = true;
}
i++;
}
i = 1;
while (i <= numenergy) {
ex = mapp.move.newshothit._x - mapp.move.fov._x;
ey = mapp.move.newshothit._y - mapp.move.fov._y;
edist = Math.sqrt((ex * ex) + (ey * ey));
ang1 = rotaz1;
ang2 = -(((Math.atan2(ey, ex) * 180) / Math.PI) + 90);
angle = (-ang2) + ang1;
if (angle > 180) {
angle = angle - 360;
}
angle = (angle * Math.PI) / 180;
edist_side = edist * Math.sin(angle);
edist_depth = edist * Math.cos(angle);
scaleRatio = flen / (flen + edist_depth);
scena.energyball._x = scena.future._x + ((edist_side * scaleRatio) * 10);
scena.energyball._y = 147 + (scaleRatio * 95);
scena.energyball._xscale = (scena.energyball._yscale = 100 * scaleRatio);
scena.energyball.swapDepths(1000 + Math.floor(scena.energyball._xscale));
if ((edist_depth < -20) or (edist_depth > clip_dist)) {
scena.energyball._visible = false;
} else {
scena.energyball._visible = true;
}
i++;
}
i = 1;
while (i <= numaura) {
ax = mapp.move.newauracharge._x - mapp.move.fov._x;
ay = mapp.move.newauracharge._y - mapp.move.fov._y;
adist = Math.sqrt((ax * ax) + (ay * ay));
ang1 = rotaz1;
ang2 = -(((Math.atan2(ay, ax) * 180) / Math.PI) + 90);
angle = (-ang2) + ang1;
if (angle > 180) {
angle = angle - 360;
}
angle = (angle * Math.PI) / 180;
adist_side = adist * Math.sin(angle);
adist_depth = adist * Math.cos(angle);
scaleRatio = flen / (flen + adist_depth);
scena.aurablast_mc._x = scena.future._x + ((adist_side * scaleRatio) * 10);
scena.aurablast_mc._y = 147 + (scaleRatio * 95);
scena.aurablast_mc._xscale = (scena.aurablast_mc._yscale = 100 * scaleRatio);
scena.aurablast_mc.swapDepths(1000 + Math.floor(scena.aurablast_mc._xscale));
if ((adist_depth < -20) or (adist_depth > clip_dist)) {
scena.aurablast_mc._visible = false;
} else {
scena.aurablast_mc._visible = true;
}
i++;
}
i = 1;
while (i <= numenemies) {
nextwp = cpnext_enemy[i];
dx = (-eval ("mapp.move.enemy" + i)._x) + eval ("mapp.move.wp" + nextwp)._x;
dy = (-eval ("mapp.move.enemy" + i)._y) + eval ("mapp.move.wp" + nextwp)._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
k = nextwp + 1;
if (nextwp == (waypoints - 1)) {
k = 0;
}
dx2 = (-eval ("mapp.move.enemy" + i)._x) + eval ("mapp.move.wp" + k)._x;
dy2 = (-eval ("mapp.move.enemy" + i)._y) + eval ("mapp.move.wp" + k)._y;
nextdist = Math.sqrt((dx2 * dx2) + (dy2 * dy2));
fortuna = Math.random() * 100;
if (((Math.abs(nextdist - dist) < 150) and (dist < 100)) and (fortuna > 80)) {
if (Math.abs(en_speed[i]) > 0.1) {
en_speed[i] = en_speed[i] * en_damp[i];
} else {
en_speed[i] = 0;
}
} else {
en_speed[i] = en_speed[i] + (((en_maxspeed[i] - en_speed[i]) + 1) * en_accel[i]);
}
if (anglestop_enemy[i] == false) {
direzione = (Math.atan2(dy, dx) * 180) / Math.PI;
error = (5 - int(Math.random() * 10)) * 3;
direzione = direzione + error;
testdir = direzione + 90;
if (testdir < 0) {
testdir = testdir + 360;
}
oldrot = eval ("mapp.move.enemy" + i)._rotation;
if (oldrot < 0) {
oldrot = oldrot + 360;
}
sterzata = testdir - oldrot;
if (sterzata < -180) {
sterzata = sterzata + 360;
}
if (sterzata > 180) {
sterzata = sterzata - 360;
}
junkvar = false;
max = 15;
if (direzione < 0) {
direzione = direzione + 360;
}
if ((sterzata >= (-max)) and (sterzata <= max)) {
anglestop_enemy[i] = direzione;
} else {
junkvar = true;
if (sterzata > max) {
anglestop_enemy[i] = (eval ("mapp.move.enemy" + i)._rotation - 90) + max;
sterzata = max;
}
if (sterzata < (-max)) {
anglestop_enemy[i] = (eval ("mapp.move.enemy" + i)._rotation - 90) - max;
sterzata = -max;
}
}
}
ang = anglestop_enemy[i];
eval ("mapp.move.enemy" + i)._rotation = ang + 90;
ang = (-ang) + 90;
movx = en_speed[i] * Math.sin((ang * Math.PI) / 180);
movy = en_speed[i] * Math.cos((ang * Math.PI) / 180);
eval ("mapp.move.enemy" + i)._x = eval ("mapp.move.enemy" + i)._x + movx;
eval ("mapp.move.enemy" + i)._y = eval ("mapp.move.enemy" + i)._y + movy;
if (junkvar == true) {
anglestop_enemy[i] = false;
}
dx = eval ("mapp.move.enemy" + i)._x - mapp.move.fov._x;
dy = eval ("mapp.move.enemy" + i)._y - mapp.move.fov._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
ang1 = rotaz1;
ang2 = -(((Math.atan2(dy, dx) * 180) / Math.PI) + 90);
angle = (-ang2) + ang1;
if (angle > 180) {
angle = angle - 360;
}
rotdiff = rotaz1 + eval ("mapp.move.enemy" + i)._rotation;
if (rotdiff > 360) {
rotdiff = rotdiff - 360;
} else if (rotdiff < 0) {
rotdiff = rotdiff + 360;
}
if ((rotdiff <= 15) and (rotdiff <= 345)) {
eval ("scena.enemy" + i).inner.gotoAndStop(1);
}
if ((rotdiff > 15) and (rotdiff <= 45)) {
eval ("scena.enemy" + i).inner.gotoAndStop(12);
}
if ((rotdiff > 45) and (rotdiff <= 75)) {
eval ("scena.enemy" + i).inner.gotoAndStop(11);
}
if ((rotdiff > 75) and (rotdiff <= 105)) {
eval ("scena.enemy" + i).inner.gotoAndStop(10);
}
if ((rotdiff > 105) and (rotdiff <= 135)) {
eval ("scena.enemy" + i).inner.gotoAndStop(9);
}
if ((rotdiff > 135) and (rotdiff <= 165)) {
eval ("scena.enemy" + i).inner.gotoAndStop(8);
}
if ((rotdiff > 165) and (rotdiff <= 195)) {
eval ("scena.enemy" + i).inner.gotoAndStop(7);
}
if ((rotdiff > 195) and (rotdiff <= 225)) {
eval ("scena.enemy" + i).inner.gotoAndStop(6);
}
if ((rotdiff > 225) and (rotdiff <= 255)) {
eval ("scena.enemy" + i).inner.gotoAndStop(5);
}
if ((rotdiff > 255) and (rotdiff <= 285)) {
eval ("scena.enemy" + i).inner.gotoAndStop(4);
}
if ((rotdiff > 285) and (rotdiff <= 315)) {
eval ("scena.enemy" + i).inner.gotoAndStop(3);
}
if ((rotdiff > 315) and (rotdiff <= 345)) {
eval ("scena.enemy" + i).inner.gotoAndStop(2);
}
angle = (angle * Math.PI) / 180;
dist_side = dist * Math.sin(angle);
dist_depth = dist * Math.cos(angle);
scaleRatio = flen / (flen + dist_depth);
eval ("scena.enemy" + i)._x = scena.future._x + ((dist_side * scaleRatio) * 8.1);
eval ("scena.enemy" + i)._y = 145 + (scaleRatio * 97);
eval ("scena.enemy" + i)._xscale = (eval ("scena.enemy" + i)._yscale = 100 * scaleRatio);
eval ("scena.enemy" + i).swapDepths(10000 + Math.floor(eval ("scena.enemy" + i)._xscale));
if ((dist_depth < -20) or (dist_depth > clip_dist)) {
eval ("scena.enemy" + i)._visible = false;
} else {
eval ("scena.enemy" + i)._visible = true;
}
i++;
}
i = 0;
while (i <= waypoints) {
if (eval ("mapp.move.wp" + i).hitTest(_root.marker2._x, _root.marker2._y, true) and (cpnext_enemy[1] == i)) {
anglestop_enemy[1] = false;
cpnext_enemy[1]++;
if (cpnext_enemy[1] == waypoints) {
cpnext_enemy[1] = 0;
}
}
if (eval ("mapp.move.wp" + i).hitTest(_root.marker3._x, _root.marker3._y, true) and (cpnext_enemy[2] == i)) {
anglestop_enemy[2] = false;
cpnext_enemy[2]++;
if (cpnext_enemy[2] == waypoints) {
cpnext_enemy[2] = 0;
}
}
if (eval ("mapp.move.wp" + i).hitTest(_root.marker4._x, _root.marker4._y, true) and (cpnext_enemy[3] == i)) {
anglestop_enemy[3] = false;
cpnext_enemy[3]++;
if (cpnext_enemy[3] == waypoints) {
cpnext_enemy[3] = 0;
}
}
i++;
}
i = 1;
while (i <= checkpoints) {
if (eval ("mapp.move.cpoint" + i).hitTest(_root.marker1._x, _root.marker1._y, true)) {
Set("cpoint" + i, 1);
}
i++;
}
if (mapp.move.startline.hitTest(_root.marker1._x, _root.marker1._y, true)) {
somma = 0;
i = 1;
while (i <= checkpoints) {
somma = somma + eval ("cpoint" + i);
i++;
}
if (somma == checkpoints) {
makelap = true;
}
}
if (mapp.move.startline2.hitTest(_root.marker1._x, _root.marker1._y, true) and ((makelap == true) or (lapsdone == "-1"))) {
lapsdone++;
lapsdone_txt = "LAP " + lapsdone;
i = 1;
while (i <= checkpoints) {
Set("cpoint" + i, 0);
i++;
}
if (lapsdone == 5) {
gotoAndPlay (10);
_root.money = _root.money + 25;
}
_root.timing = false;
if (elapsedTime < bestlap) {
bestlap = elapsedTime;
bestlap_txt = timer;
}
makelap = false;
if (!_root.timing) {
_root.startTime = getTimer();
_root.timing = true;
}
}
if (mapp.move.borderz.hitTest(_root.marker1._x, _root.marker1._y, true)) {
thud1.start(0, 0);
onborder = true;
speed1 = speed1 / 3;
pedal = false;
}
if (mapp.move.startline.hitTest(_root.marker2._x, _root.marker2._y, true)) {
en_makelap[1] = true;
}
timer_en1 = "LAP " + en_lapsdone[1];
if (mapp.move.startline2.hitTest(_root.marker2._x, _root.marker2._y, true) and ((en_makelap[1] == true) or (en_lapsdone[1] == "-1"))) {
en_lapsdone[1]++;
en_makelap[1] = false;
}
if (en_lapsdone[1] == 5) {
gotoAndPlay (11);
}
if (mapp.move.startline.hitTest(_root.marker3._x, _root.marker3._y, true)) {
en_makelap2[1] = true;
}
timer_en1 = "LAP " + en_lapsdone2[1];
if (mapp.move.startline2.hitTest(_root.marker3._x, _root.marker3._y, true) and ((en_makelap2[1] == true) or (en_lapsdone2[1] == "-1"))) {
en_lapsdone2[1]++;
en_makelap2[1] = false;
}
if (en_lapsdone2[1] == 5) {
gotoAndPlay (12);
}
if (mapp.move.startline.hitTest(_root.marker4._x, _root.marker4._y, true)) {
en_makelap3[1] = true;
}
timer_en1 = "LAP " + en_lapsdone3[1];
if (mapp.move.startline2.hitTest(_root.marker4._x, _root.marker4._y, true) and ((en_makelap3[1] == true) or (en_lapsdone3[1] == "-1"))) {
en_lapsdone3[1]++;
en_makelap3[1] = false;
}
if (en_lapsdone3[1] == 5) {
gotoAndPlay (12);
}
if (mapp.move.path1.hitTest(_root.marker1._x, _root.marker1._y, true)) {
scritta._visible = false;
dirting = false;
scena.future._y = 255;
} else {
scena.smok1._visible = true;
scritta._visible = true;
if (temp == 0) {
scena.future._y = scena.future._y + 1;
temp++;
} else {
scena.future._y = scena.future._y - 1;
temp--;
}
if (dirting == false) {
dirt1.start(0, 0);
}
dirting = true;
speed1 = speed1 * 0.9;
}
_root.cosness = (_root.speed1 * Math.cos((_root.rotaz1 * Math.PI) / 180)) / 2;
_root.sinness = (_root.speed1 * Math.sin((_root.rotaz1 * Math.PI) / 180)) / 2;
speed1_d = int(speed1 * 3);
shotspeedx = Math.sin(mapp.move.newshothit._rotation * (Math.PI/180)) * 2;
shotspeedy = Math.cos(mapp.move.newshothit._rotation * (Math.PI/180)) * 2;
mapp.move.newshothit._x = mapp.move.newshothit._x + (shotspeedx * shotspeed);
mapp.move.newshothit._y = mapp.move.newshothit._y - (shotspeedy * shotspeed);
mapp.move.newshothit.onEnterFrame = function () {
scena.energyball._visible = true;
scena.enemy1.car1hit.gotoAndStop(5);
scena.enemy2.car2hit.gotoAndStop(5);
scena.enemy3.car3hit.gotoAndStop(5);
if (mapp.move.newshothit.hitTest(_root.marker2._x, _root.marker2._y, true)) {
scena.enemy1.car1hit.gotoAndPlay(1);
scena.energyball.gotoAndPlay(2);
mapp.move.newshothit.removeMovieClip();
en_speed[1] = 0.7;
_root.money = _root.money + 2;
}
if (mapp.move.newshothit.hitTest(_root.marker3._x, _root.marker3._y, true)) {
scena.enemy2.car2hit.gotoAndPlay(1);
scena.energyball.gotoAndPlay(2);
mapp.move.newshothit.removeMovieClip();
en_speed[2] = 0.7;
_root.money = _root.money + 2;
}
if (mapp.move.newshothit.hitTest(_root.marker4._x, _root.marker4._y, true)) {
scena.enemy3.car3hit.gotoAndPlay(1);
scena.energyball.gotoAndPlay(2);
mapp.move.newshothit.removeMovieClip();
en_speed[3] = 0.7;
_root.money = _root.money + 2;
}
if (mapp.move.newshothit.hitTest(mapp.move.stopper1)) {
scena.energyball.gotoAndStop(7);
mapp.move.newshothit.removeMovieClip();
}
if (mapp.move.newshothit.hitTest(mapp.move.stopper2)) {
scena.energyball.gotoAndStop(7);
mapp.move.newshothit.removeMovieClip();
}
if (mapp.move.newshothit.hitTest(mapp.move.stopper3)) {
scena.energyball.gotoAndStop(7);
mapp.move.newshothit.removeMovieClip();
}
if (mapp.move.newshothit.hitTest(mapp.move.stopper4)) {
scena.energyball.gotoAndStop(7);
mapp.move.newshothit.removeMovieClip();
}
};
mapp.move.newauracharge.onEnterFrame = function () {
if (mapp.move.newauracharge.hitTest(_root.marker2._x, _root.marker2._y, true)) {
en_speed[1] = 1.1;
scena.enemy1.car1hit.gotoAndPlay(1);
_root.auratimer = _root.auratimer - 1;
}
if (mapp.move.newauracharge.hitTest(_root.marker3._x, _root.marker3._y, true)) {
en_speed[2] = 1.1;
scena.enemy2.car2hit.gotoAndPlay(1);
_root.auratimer = _root.auratimer - 1;
}
if (mapp.move.newauracharge.hitTest(_root.marker4._x, _root.marker4._y, true)) {
en_speed[3] = 1.1;
scena.enemy3.car3hit.gotoAndPlay(1);
_root.auratimer = _root.auratimer - 1;
}
if (auratimer <= 0) {
auratimer = 0;
mapp.move.newauracharge.removeMovieClip();
scena.aurablast_mc.gotoAndStop(8);
}
};
mouseListener.onMouseDown = function () {
if (weakblaster >= 1) {
if (blasteractive == true) {
shot.start();
duplicateMovieClip (mapp.move.shothit, "newshothit", i);
scena.energyball.gotoAndStop(1);
(mapp.move.newshothit._x = mapp.move.fov._x);
(mapp.move.newshothit._y = mapp.move.fov._y);
_root.weakblaster = _root.weakblaster - 1;
}
}
if (aura >= 1) {
if (auraactive == true) {
auratimer = 20;
aurasound.start();
duplicateMovieClip (mapp.move.auracharge, "newauracharge", i);
scena.aurablast_mc.gotoAndPlay(1);
(mapp.move.newauracharge._x = mapp.move.fov._x);
(mapp.move.newauracharge._y = mapp.move.fov._y);
_root.aura = _root.aura - 1;
}
}
if (bomb >= 1) {
if (bombactive == true) {
bombsound.start();
scena.gravbomb.gotoAndPlay(1);
en_speed[1] = 1;
en_speed[2] = 1;
en_speed[3] = 1;
_root.bomb = _root.bomb - 1;
}
}
};
mouseListener.onMouseUp = function () {
shotspeed = 10;
};
if (mapp.move.newshothit.hitTest(_root.marker2._x, _root.marker2._y, true)) {
en_speed[1] = -1;
_root.money = _root.money + 1;
}
if (mapp.move.newshothit.hitTest(_root.marker3._x, _root.marker3._y, true)) {
en_speed[2] = -1;
_root.money = _root.money + 1;
}
if (mapp.move.newshothit.hitTest(_root.marker4._x, _root.marker4._y, true)) {
en_speed[3] = -1;
_root.money = _root.money + 1;
}
if (mapp.move.newauracharge.hitTest(_root.marker2._x, _root.marker2._y, true)) {
en_speed[1] = 0.5;
_root.money = _root.money + 1;
}
if (mapp.move.newauracharge.hitTest(_root.marker3._x, _root.marker3._y, true)) {
en_speed[2] = 0.5;
_root.money = _root.money + 1;
}
if (mapp.move.newauracharge.hitTest(_root.marker4._x, _root.marker4._y, true)) {
en_speed[3] = 0.5;
_root.money = _root.money + 1;
}
if (timing) {
elapsedTime = getTimer() - startTime;
elapsedHours = Math.floor(elapsedTime / 3600000);
remaining = elapsedTime - (elapsedHours * 3600000);
elapsedM = Math.floor(remaining / 60000);
remaining = remaining - (elapsedM * 60000);
elapsedS = Math.floor(remaining / 1000);
remaining = remaining - (elapsedS * 1000);
elapsedH = Math.floor(remaining / 10);
if (elapsedM < 10) {
minutes = "0" + elapsedM.toString();
} else {
minutes = elapsedM.toString();
}
if (elapsedS < 10) {
seconds = "0" + elapsedS.toString();
} else {
seconds = elapsedS.toString();
}
if (elapsedH < 10) {
hundredths = "0" + elapsedH.toString();
} else {
hundredths = elapsedH.toString();
}
_root.timer = (((minutes + ":") + seconds) + ":") + hundredths;
}
};
_root.onEnterFrame = main_loop;
Instance of Symbol 360 MovieClip "engine" in Frame 8
onClipEvent (load) {
minfinish = false;
_root.acc = new Sound();
_root.acc.attachSound("acc");
_root.dec = new Sound();
_root.dec.attachSound("dec");
_root.dec.onSoundComplete = function () {
_root.minimo.start(0, 500);
minfinish = true;
};
_root.minimo = new Sound();
_root.minimo.attachSound("minimo");
_root.massimo = new Sound();
_root.massimo.attachSound("massimo");
_root.massimo.onSoundComplete = function () {
_root.massimo.start(1, 0);
};
_root.acc.onSoundComplete = function () {
_root.massimo.start(1, 0);
};
_root.minimo.start(50, 500);
_root.accvar = 0;
stato = "min";
}
onClipEvent (enterFrame) {
if ((_root.pedal == 1) and (stato != "acc")) {
if (stato == "min") {
_root.accvar = 0;
}
if (stato == "dec") {
_root.accvar = (_root.dec.duration - _root.dec.position) / 2000;
}
stato = "acc";
_root.minimo.stop();
_root.acc.start(_root.accvar, 0);
}
if ((_root.pedal != 1) and (stato != "dec")) {
_root.accvar = (_root.acc.duration - _root.acc.position) / 2000;
stato = "dec";
_root.minimo.stop();
_root.acc.stop();
_root.dec.start(_root.accvar, 0);
}
}
Instance of Symbol 367 MovieClip "marker1" in Frame 8
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move.fov._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move.fov._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Instance of Symbol 369 MovieClip "marker2" in Frame 8
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move.enemy1._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move.enemy1._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Instance of Symbol 371 MovieClip "marker3" in Frame 8
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move.enemy2._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move.enemy2._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Instance of Symbol 278 MovieClip [track01] "mapp" in Frame 8
onClipEvent (load) {
_yscale = 10;
_xscale = 10;
}
Instance of Symbol 388 MovieClip "marker4" in Frame 8
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move.enemy3._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move.enemy3._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Instance of Symbol 388 MovieClip "marker4" in Frame 8
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move.enemy3._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move.enemy3._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Frame 10
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
stopAllSounds();
dirting = true;
Mouse.removeListener(mouseListener);
menu.start();
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path1");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena");
unloadMovie ("track01");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path1");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 11
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
stopAllSounds();
dirting = true;
Mouse.removeListener(mouseListener);
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path1");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena");
unloadMovie ("track01");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path1");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 12
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
stopAllSounds();
dirting = true;
Mouse.removeListener(mouseListener);
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path1");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena");
unloadMovie ("track01");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path1");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 13
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
stopAllSounds();
dirting = true;
Mouse.removeListener(mouseListener);
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path1");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena");
unloadMovie ("track01");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path1");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 14
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
Mouse.removeListener(mouseListener);
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path1");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena");
unloadMovie ("track01");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path1");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 15
Mouse.show();
stop();
_quality = "LOW";
var shot = new Sound();
shot.attachSound("lasershoot");
thud1 = new Sound();
thud1.attachSound("thud1");
dirt1 = new Sound();
dirt1.attachSound("rockslide");
dirt1.onSoundComplete = function () {
dirting = false;
};
dirting = false;
flen = 20;
clip_dist = 1000;
pedal = false;
speed1 = 0;
degree1 = 0;
rotspeed1 = 30;
maxspeed1 = 35;
accel1 = 0.003;
brake1 = 0.95;
damp1 = 0.97;
lapsdone = -1;
lapsdone_txt = "START";
bestlap = 1E20;
bestlap_txt = "";
sterstate = 0;
temp = 0;
rotation = 0;
speed = 0;
rotaz1 = -90;
initx = 385;
inity = -80;
checkpoints = 4;
cpoint1 = 0;
cpoint2 = 0;
cpoint3 = 0;
cpoint4 = 0;
waypoints = 16;
var timing = false;
var paused = false;
var remaining;
var elapsedTime;
var elapsedHours;
var elapsedM;
var elapsedS;
var elapsedH;
var startTime;
var remaining;
var hours;
var minutes;
var seconds;
var hundredths;
mapp.move2.gotoAndStop(2);
mapp.move2.fov._x = 45;
mapp.move2.fov._y = -250;
_root.createEmptyMovieClip("scena2", 1);
scena2._x = 0;
scena2._y = 0;
_root.stripes = 85;
i = 1;
while (i <= _root.stripes) {
slice = scena2.attachMovie("track02", "t1" + i, i);
slice.swapDepths(scena2.future);
slice._x = 200;
slice._y = 300;
ratio = i / stripes;
slice._yscale = (slice._xscale = (i * 15) * ratio);
mask = attachMovie("mask", "mask" + i, scena2.getNextHighestDepth());
mask._height = (i * ratio) * 2.5;
mask._x = -80;
mask._y = 150 + ((i * ratio) * 2.5);
var r = createEmptyMovieClip("laser", 4);
mask.swapDepths(marker1);
mask.swapDepths(marker2);
mask.swapDepths(marker3);
mask.swapDepths(scritta);
mask.swapDepths(mapp);
mask.swapDepths(credits);
mask.swapDepths(cursor_mc);
slice.setMask(mask);
i++;
}
scena2.attachMovie("future", "future", scena2.getNextHighestDepth());
scena2.future._x = 200;
scena2.future._y = 240;
scena2.future.gotoAndPlay(15);
scena2.attachMovie("smok1", "smok1", scena2.getNextHighestDepth());
scena2.smok1._x = scena2.future._x;
scena2.smok1._xscale = (scena2.smok1._yscale = 200);
scena2.smok1._y = 285;
scena2.attachMovie("boostage", "boostage", scena2.getNextHighestDepth());
scena2.boostage._x = 200;
scena2.boostage._y = 260;
scena2.attachMovie("gravbomb", "gravbomb", scena2.getNextHighestDepth());
scena2.gravbomb._x = 205;
scena2.gravbomb._y = 160;
scena2.gravbomb._xscale = (scena2.gravbomb._yscale = 70);
scena2.gravbomb.gotoAndStop(12);
scena2.boostage.gotoAndStop(10);
Mouse.addListener(mouseListener);
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (Key.getAscii() == 49) {
if (blasteractive == false) {
auratimer = 0;
blasteractive = true;
auraactive = false;
bombactive = false;
}
}
if (Key.getAscii() == 50) {
if (auraactive == false) {
blasteractive = false;
auraactive = true;
bombactive = false;
}
}
if (Key.getAscii() == 51) {
if (bombactive == false) {
auratimer = 0;
blasteractive = false;
auraactive = false;
bombactive = true;
}
}
if (Key.getAscii() == 32) {
if (booster >= 1) {
scena2.boostage.gotoAndPlay(1);
}
}
};
Key.addListener(keyListener);
numtrees = 11;
numenergy = 1;
numaura = 1;
i = 1;
while (i <= numtrees) {
scena2.attachMovie("tree", "tree" + i, scena2.getNextHighestDepth());
i++;
}
i = 1;
while (i <= numenergy) {
scena2.attachMovie("energyball", "energyball", scena2.getNextHighestDepth());
scena2.energyball._x = 2000;
i++;
}
i = 1;
while (i <= numaura) {
scena2.attachMovie("aurablast_mc", "aurablast_mc", scena2.getNextHighestDepth());
scena2.aurablast_mc._x = 2000;
i++;
}
numenemies = 3;
cp_enemy = new Array();
cpnext_enemy = new Array();
speed_enemy = new Array();
anglestop_enemy = new Array();
oldangle_enemy = new Array();
en_speed = new Array();
en_maxspeed = new Array();
en_accel = new Array();
en_brake = new Array();
en_damp = new Array();
en_makelap = new Array();
en_timer = new Array();
en_lapsdone = new Array();
en_makelap2 = new Array();
en_lapsdone2 = new Array();
en_makelap3 = new Array();
en_lapsdone3 = new Array();
i = 1;
while (i <= numenemies) {
cp_enemy[i] = 0;
cpnext_enemy[i] = 0;
speed_enemy[i] = 0;
oldangle_enemy[i] = 0;
anglestop_enemy[i] = false;
en_speed[i] = 0;
en_maxspeed[i] = 8;
en_accel[i] = 0.005;
en_brake[i] = 0.95;
en_damp[i] = 0.96;
en_makelap[i] = false;
en_lapsdone[i] = -1;
en_timing[i] = false;
en_makelap2[i] = false;
en_lapsdone2[i] = -1;
en_makelap3[i] = false;
en_lapsdone3[i] = -1;
scena2.attachMovie("opp" + i, "enemy" + i, scena2.getNextHighestDepth());
i++;
}
i = 1;
while (i <= _root.stripes) {
eval ("scena2.t1" + i)._rotation = _root.rotaz1;
eval ("scena2.t1" + i).move2._y = initx;
eval ("scena2.t1" + i).move2._x = inity;
i++;
}
scritta._visible = false;
_root.onLoad = initialize;
main_loop = function () {
pedal = false;
steer = 0;
onborder = false;
gunsteer = 0;
if (Key.isDown(87)) {
speed1 = speed1 + (((maxspeed1 - speed1) + 1) * accel1);
pedal = 1;
if ((speed1 > 0) and (speed1 < 5)) {
_root.scena2.smok1._visible = true;
} else {
_root.scena2.smok1._visible = false;
}
} else {
_root.scena2.smok1._visible = false;
}
if (Key.isDown(83)) {
if (speed1 <= 0) {
speed1 = speed1 - (((maxspeed1 / 3) + speed1) * accel1);
} else {
speed1 = speed1 * brake1;
}
pedal = 2;
}
if (pedal == false) {
if (Math.abs(speed1) > 0.1) {
speed1 = speed1 * damp1;
} else {
speed1 = 0;
}
}
if (Key.isDown(68)) {
_root.rotaz1 = _root.rotaz1 - 5;
steer = 1;
gunsteer = 1;
_root.scena2.future.nextFrame();
}
if (Key.isDown(65)) {
_root.rotaz1 = _root.rotaz1 + 5;
steer = 2;
gunsteer = 2;
_root.scena2.future.prevFrame();
}
if (steer == 0) {
if (_root.scena2.future._currentframe >= 16) {
_root.scena2.future.prevFrame();
}
if (_root.scena2.future._currentframe <= 14) {
_root.scena2.future.nextFrame();
}
}
scena2.future.swapDepths(10100);
scena2.smok1.swapDepths(10101);
scena2.energyball.swapDepths(10099);
scena2.aurablast_mc.swapDepths(10109);
scena2.boostage.swapDepths(10110);
scena2.gravbomb.swapDepths(10111);
if (rotaz1 > 180) {
rotaz1 = -180 + (rotaz1 - 180);
}
if (rotaz1 < -180) {
rotaz1 = 180 + (rotaz1 + 180);
}
mapp.move2.fov._rotation = (-_root.rotaz1) - 90;
mapp.move2.fov._x = mapp.move2.fov._x - (_root.sinness / 2);
mapp.move2.fov._y = mapp.move2.fov._y - (_root.cosness / 2);
mapp.move2.newshothit._rotation = (-_root.rotaz1) + 0;
mapp.move2.newshothit._x = mapp.move2.newshothit._x + (_root.sinness / 2);
mapp.move2.newshothit._y = mapp.move2.newshothit._y + (_root.cosness / 2);
mapp.move2.newauracharge._rotation = (-_root.rotaz1) + 90;
mapp.move2.newauracharge._x = mapp.move2.newauracharge._x - (_root.sinness / 2);
mapp.move2.newauracharge._y = mapp.move2.newauracharge._y - (_root.cosness / 2);
i = 1;
while (i <= _root.stripes) {
eval ("scena2.t1" + i)._rotation = _root.rotaz1;
eval ("scena2.t1" + i).move2._x = (-mapp.move2.fov._x) * 1.78;
eval ("scena2.t1" + i).move2._y = (-mapp.move2.fov._y) * 1.94;
i++;
}
i = 1;
while (i <= numtrees) {
dx = eval ("mapp.move2.mtree" + i)._x - mapp.move2.fov._x;
dy = eval ("mapp.move2.mtree" + i)._y - mapp.move2.fov._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
ang1 = rotaz1;
ang2 = -(((Math.atan2(dy, dx) * 180) / Math.PI) + 90);
angle = (-ang2) + ang1;
if (angle > 180) {
angle = angle - 360;
}
angle = (angle * Math.PI) / 180;
dist_side = dist * Math.sin(angle);
dist_depth = dist * Math.cos(angle);
scaleRatio = flen / (flen + dist_depth);
eval ("scena2.tree" + i)._x = scena2.future._x + ((dist_side * scaleRatio) * 10);
eval ("scena2.tree" + i)._y = 147 + (scaleRatio * 95);
eval ("scena2.tree" + i)._xscale = (eval ("scena2.tree" + i)._yscale = 100 * scaleRatio);
eval ("scena2.tree" + i).swapDepths(10000 + Math.floor(eval ("scena2.tree" + i)._xscale));
if ((dist_depth < -20) or (dist_depth > clip_dist)) {
eval ("scena2.tree" + i)._visible = false;
} else {
eval ("scena2.tree" + i)._visible = true;
}
i++;
}
i = 1;
while (i <= numenergy) {
ex = mapp.move2.newshothit._x - mapp.move2.fov._x;
ey = mapp.move2.newshothit._y - mapp.move2.fov._y;
edist = Math.sqrt((ex * ex) + (ey * ey));
ang1 = rotaz1;
ang2 = -(((Math.atan2(ey, ex) * 180) / Math.PI) + 90);
angle = (-ang2) + ang1;
if (angle > 180) {
angle = angle - 360;
}
angle = (angle * Math.PI) / 180;
edist_side = edist * Math.sin(angle);
edist_depth = edist * Math.cos(angle);
scaleRatio = flen / (flen + edist_depth);
scena2.energyball._x = scena2.future._x + ((edist_side * scaleRatio) * 10);
scena2.energyball._y = 147 + (scaleRatio * 95);
scena2.energyball._xscale = (scena2.energyball._yscale = 100 * scaleRatio);
scena2.energyball.swapDepths(1000 + Math.floor(scena2.energyball._xscale));
if ((edist_depth < -20) or (edist_depth > clip_dist)) {
scena2.energyball._visible = false;
} else {
scena2.energyball._visible = true;
}
i++;
}
i = 1;
while (i <= numaura) {
ax = mapp.move2.newauracharge._x - mapp.move2.fov._x;
ay = mapp.move2.newauracharge._y - mapp.move2.fov._y;
adist = Math.sqrt((ax * ax) + (ay * ay));
ang1 = rotaz1;
ang2 = -(((Math.atan2(ay, ax) * 180) / Math.PI) + 90);
angle = (-ang2) + ang1;
if (angle > 180) {
angle = angle - 360;
}
angle = (angle * Math.PI) / 180;
adist_side = adist * Math.sin(angle);
adist_depth = adist * Math.cos(angle);
scaleRatio = flen / (flen + adist_depth);
scena2.aurablast_mc._x = scena2.future._x + ((adist_side * scaleRatio) * 10);
scena2.aurablast_mc._y = 147 + (scaleRatio * 95);
scena2.aurablast_mc._xscale = (scena2.aurablast_mc._yscale = 100 * scaleRatio);
scena2.aurablast_mc.swapDepths(1000 + Math.floor(scena2.aurablast_mc._xscale));
if ((adist_depth < -20) or (adist_depth > clip_dist)) {
scena2.aurablast_mc._visible = false;
} else {
scena2.aurablast_mc._visible = true;
}
i++;
}
i = 1;
while (i <= numenemies) {
nextwp = cpnext_enemy[i];
dx = (-eval ("mapp.move2.enemy" + i)._x) + eval ("mapp.move2.wp" + nextwp)._x;
dy = (-eval ("mapp.move2.enemy" + i)._y) + eval ("mapp.move2.wp" + nextwp)._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
k = nextwp + 1;
if (nextwp == (waypoints - 1)) {
k = 0;
}
dx2 = (-eval ("mapp.move2.enemy" + i)._x) + eval ("mapp.move2.wp" + k)._x;
dy2 = (-eval ("mapp.move2.enemy" + i)._y) + eval ("mapp.move2.wp" + k)._y;
nextdist = Math.sqrt((dx2 * dx2) + (dy2 * dy2));
fortuna = Math.random() * 100;
if (((Math.abs(nextdist - dist) < 150) and (dist < 100)) and (fortuna > 80)) {
if (Math.abs(en_speed[i]) > 0.1) {
en_speed[i] = en_speed[i] * en_damp[i];
} else {
en_speed[i] = 0;
}
} else {
en_speed[i] = en_speed[i] + (((en_maxspeed[i] - en_speed[i]) + 1) * en_accel[i]);
}
if (anglestop_enemy[i] == false) {
direzione = (Math.atan2(dy, dx) * 180) / Math.PI;
error = (5 - int(Math.random() * 10)) * 3;
direzione = direzione + error;
testdir = direzione + 90;
if (testdir < 0) {
testdir = testdir + 360;
}
oldrot = eval ("mapp.move2.enemy" + i)._rotation;
if (oldrot < 0) {
oldrot = oldrot + 360;
}
sterzata = testdir - oldrot;
if (sterzata < -180) {
sterzata = sterzata + 360;
}
if (sterzata > 180) {
sterzata = sterzata - 360;
}
junkvar = false;
max = 15;
if (direzione < 0) {
direzione = direzione + 360;
}
if ((sterzata >= (-max)) and (sterzata <= max)) {
anglestop_enemy[i] = direzione;
} else {
junkvar = true;
if (sterzata > max) {
anglestop_enemy[i] = (eval ("mapp.move2.enemy" + i)._rotation - 90) + max;
sterzata = max;
}
if (sterzata < (-max)) {
anglestop_enemy[i] = (eval ("mapp.move2.enemy" + i)._rotation - 90) - max;
sterzata = -max;
}
}
}
ang = anglestop_enemy[i];
eval ("mapp.move2.enemy" + i)._rotation = ang + 90;
ang = (-ang) + 90;
movx = en_speed[i] * Math.sin((ang * Math.PI) / 180);
movy = en_speed[i] * Math.cos((ang * Math.PI) / 180);
eval ("mapp.move2.enemy" + i)._x = eval ("mapp.move2.enemy" + i)._x + movx;
eval ("mapp.move2.enemy" + i)._y = eval ("mapp.move2.enemy" + i)._y + movy;
if (junkvar == true) {
anglestop_enemy[i] = false;
}
dx = eval ("mapp.move2.enemy" + i)._x - mapp.move2.fov._x;
dy = eval ("mapp.move2.enemy" + i)._y - mapp.move2.fov._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
ang1 = rotaz1;
ang2 = -(((Math.atan2(dy, dx) * 180) / Math.PI) + 90);
angle = (-ang2) + ang1;
if (angle > 180) {
angle = angle - 360;
}
rotdiff = rotaz1 + eval ("mapp.move2.enemy" + i)._rotation;
if (rotdiff > 360) {
rotdiff = rotdiff - 360;
} else if (rotdiff < 0) {
rotdiff = rotdiff + 360;
}
if ((rotdiff <= 15) and (rotdiff <= 345)) {
eval ("scena2.enemy" + i).inner.gotoAndStop(1);
}
if ((rotdiff > 15) and (rotdiff <= 45)) {
eval ("scena2.enemy" + i).inner.gotoAndStop(12);
}
if ((rotdiff > 45) and (rotdiff <= 75)) {
eval ("scena2.enemy" + i).inner.gotoAndStop(11);
}
if ((rotdiff > 75) and (rotdiff <= 105)) {
eval ("scena2.enemy" + i).inner.gotoAndStop(10);
}
if ((rotdiff > 105) and (rotdiff <= 135)) {
eval ("scena2.enemy" + i).inner.gotoAndStop(9);
}
if ((rotdiff > 135) and (rotdiff <= 165)) {
eval ("scena2.enemy" + i).inner.gotoAndStop(8);
}
if ((rotdiff > 165) and (rotdiff <= 195)) {
eval ("scena2.enemy" + i).inner.gotoAndStop(7);
}
if ((rotdiff > 195) and (rotdiff <= 225)) {
eval ("scena2.enemy" + i).inner.gotoAndStop(6);
}
if ((rotdiff > 225) and (rotdiff <= 255)) {
eval ("scena2.enemy" + i).inner.gotoAndStop(5);
}
if ((rotdiff > 255) and (rotdiff <= 285)) {
eval ("scena2.enemy" + i).inner.gotoAndStop(4);
}
if ((rotdiff > 285) and (rotdiff <= 315)) {
eval ("scena2.enemy" + i).inner.gotoAndStop(3);
}
if ((rotdiff > 315) and (rotdiff <= 345)) {
eval ("scena2.enemy" + i).inner.gotoAndStop(2);
}
angle = (angle * Math.PI) / 180;
dist_side = dist * Math.sin(angle);
dist_depth = dist * Math.cos(angle);
scaleRatio = flen / (flen + dist_depth);
eval ("scena2.enemy" + i)._x = scena2.future._x + ((dist_side * scaleRatio) * 8.1);
eval ("scena2.enemy" + i)._y = 145 + (scaleRatio * 97);
eval ("scena2.enemy" + i)._xscale = (eval ("scena2.enemy" + i)._yscale = 100 * scaleRatio);
eval ("scena2.enemy" + i).swapDepths(10000 + Math.floor(eval ("scena2.enemy" + i)._xscale));
if ((dist_depth < -20) or (dist_depth > clip_dist)) {
eval ("scena2.enemy" + i)._visible = false;
} else {
eval ("scena2.enemy" + i)._visible = true;
}
i++;
}
i = 0;
while (i <= waypoints) {
if (eval ("mapp.move2.wp" + i).hitTest(_root.marker2._x, _root.marker2._y, true) and (cpnext_enemy[1] == i)) {
anglestop_enemy[1] = false;
cpnext_enemy[1]++;
if (cpnext_enemy[1] == waypoints) {
cpnext_enemy[1] = 0;
}
}
if (eval ("mapp.move2.wp" + i).hitTest(_root.marker3._x, _root.marker3._y, true) and (cpnext_enemy[2] == i)) {
anglestop_enemy[2] = false;
cpnext_enemy[2]++;
if (cpnext_enemy[2] == waypoints) {
cpnext_enemy[2] = 0;
}
}
if (eval ("mapp.move2.wp" + i).hitTest(_root.marker4._x, _root.marker4._y, true) and (cpnext_enemy[3] == i)) {
anglestop_enemy[3] = false;
cpnext_enemy[3]++;
if (cpnext_enemy[3] == waypoints) {
cpnext_enemy[3] = 0;
}
}
i++;
}
i = 1;
while (i <= checkpoints) {
if (eval ("mapp.move2.cpoint" + i).hitTest(_root.marker1._x, _root.marker1._y, true)) {
Set("cpoint" + i, 1);
}
i++;
}
if (mapp.move2.startline.hitTest(_root.marker1._x, _root.marker1._y, true)) {
somma = 0;
i = 1;
while (i <= checkpoints) {
somma = somma + eval ("cpoint" + i);
i++;
}
if (somma == checkpoints) {
makelap = true;
}
}
if (mapp.move2.startline2.hitTest(_root.marker1._x, _root.marker1._y, true) and ((makelap == true) or (lapsdone == "-1"))) {
lapsdone++;
lapsdone_txt = "LAP " + lapsdone;
i = 1;
while (i <= checkpoints) {
Set("cpoint" + i, 0);
i++;
}
if (lapsdone == 5) {
gotoAndPlay (20);
_root.money = _root.money + 25;
auratimer = 0;
}
_root.timing = false;
if (elapsedTime < bestlap) {
bestlap = elapsedTime;
bestlap_txt = timer;
}
makelap = false;
if (!_root.timing) {
_root.startTime = getTimer();
_root.timing = true;
}
}
if (mapp.move2.borderz.hitTest(_root.marker1._x, _root.marker1._y, true)) {
thud1.start(0, 0);
onborder = true;
speed1 = speed1 / 3;
pedal = false;
}
if (mapp.move2.startline.hitTest(_root.marker2._x, _root.marker2._y, true)) {
en_makelap[1] = true;
}
timer_en1 = "LAP " + en_lapsdone[1];
if (mapp.move2.startline2.hitTest(_root.marker2._x, _root.marker2._y, true) and ((en_makelap[1] == true) or (en_lapsdone[1] == "-1"))) {
en_lapsdone[1]++;
en_makelap[1] = false;
}
if (en_lapsdone[1] == 5) {
gotoAndPlay (17);
}
if (mapp.move2.startline.hitTest(_root.marker3._x, _root.marker3._y, true)) {
en_makelap2[1] = true;
}
timer_en1 = "LAP " + en_lapsdone2[1];
if (mapp.move2.startline2.hitTest(_root.marker3._x, _root.marker3._y, true) and ((en_makelap2[1] == true) or (en_lapsdone2[1] == "-1"))) {
en_lapsdone2[1]++;
en_makelap2[1] = false;
}
if (en_lapsdone2[1] == 5) {
gotoAndPlay (18);
}
if (mapp.move2.startline.hitTest(_root.marker4._x, _root.marker4._y, true)) {
en_makelap3[1] = true;
}
timer_en1 = "LAP " + en_lapsdone3[1];
if (mapp.move2.startline2.hitTest(_root.marker4._x, _root.marker4._y, true) and ((en_makelap3[1] == true) or (en_lapsdone3[1] == "-1"))) {
en_lapsdone3[1]++;
en_makelap3[1] = false;
}
if (en_lapsdone3[1] == 5) {
gotoAndPlay (18);
}
if (mapp.move2.path2.hitTest(_root.marker1._x, _root.marker1._y, true)) {
scritta._visible = false;
dirting = false;
scena2.future._y = 255;
} else {
scena2.smok1._visible = true;
scritta._visible = true;
if (temp == 0) {
scena2.future._y = scena2.future._y + 1;
temp++;
} else {
scena2.future._y = scena2.future._y - 1;
temp--;
}
if (dirting == false) {
dirt1.start(0, 0);
}
dirting = true;
speed1 = speed1 * 0.9;
}
_root.cosness = (_root.speed1 * Math.cos((_root.rotaz1 * Math.PI) / 180)) / 2;
_root.sinness = (_root.speed1 * Math.sin((_root.rotaz1 * Math.PI) / 180)) / 2;
speed1_d = int(speed1 * 3);
shotspeedx = Math.sin(mapp.move2.newshothit._rotation * (Math.PI/180)) * 2;
shotspeedy = Math.cos(mapp.move2.newshothit._rotation * (Math.PI/180)) * 2;
mapp.move2.newshothit._x = mapp.move2.newshothit._x + (shotspeedx * shotspeed);
mapp.move2.newshothit._y = mapp.move2.newshothit._y - (shotspeedy * shotspeed);
mapp.move2.newshothit.onEnterFrame = function () {
scena2.energyball._visible = true;
scena2.enemy1.car1hit.gotoAndStop(5);
scena2.enemy2.car2hit.gotoAndStop(5);
scena2.enemy3.car3hit.gotoAndStop(5);
if (mapp.move2.newshothit.hitTest(_root.marker2._x, _root.marker2._y, true)) {
scena2.enemy1.car1hit.gotoAndPlay(1);
scena2.energyball.gotoAndPlay(2);
mapp.move2.newshothit.removeMovieClip();
en_speed[1] = 0.7;
_root.money = _root.money + 2;
}
if (mapp.move2.newshothit.hitTest(_root.marker3._x, _root.marker3._y, true)) {
scena2.enemy2.car2hit.gotoAndPlay(1);
scena2.energyball.gotoAndPlay(2);
mapp.move2.newshothit.removeMovieClip();
en_speed[2] = 0.7;
_root.money = _root.money + 2;
}
if (mapp.move2.newshothit.hitTest(_root.marker4._x, _root.marker4._y, true)) {
scena2.enemy3.car3hit.gotoAndPlay(1);
scena2.energyball.gotoAndPlay(2);
mapp.move2.newshothit.removeMovieClip();
en_speed[3] = 0.7;
_root.money = _root.money + 2;
}
if (mapp.move2.newshothit.hitTest(mapp.move2.stopper1)) {
scena2.energyball.gotoAndStop(7);
mapp.move2.newshothit.removeMovieClip();
}
if (mapp.move2.newshothit.hitTest(mapp.move2.stopper2)) {
scena2.energyball.gotoAndStop(7);
mapp.move2.newshothit.removeMovieClip();
}
if (mapp.move2.newshothit.hitTest(mapp.move2.stopper3)) {
scena2.energyball.gotoAndStop(7);
mapp.move2.newshothit.removeMovieClip();
}
if (mapp.move2.newshothit.hitTest(mapp.move2.stopper4)) {
scena2.energyball.gotoAndStop(7);
mapp.move2.newshothit.removeMovieClip();
}
};
mapp.move2.newauracharge.onEnterFrame = function () {
if (mapp.move2.newauracharge.hitTest(_root.marker2._x, _root.marker2._y, true)) {
en_speed[1] = 1.1;
scena2.enemy1.car1hit.gotoAndPlay(1);
_root.auratimer = _root.auratimer - 1;
}
if (mapp.move2.newauracharge.hitTest(_root.marker3._x, _root.marker3._y, true)) {
en_speed[2] = 1.1;
scena2.enemy2.car2hit.gotoAndPlay(1);
_root.auratimer = _root.auratimer - 1;
}
if (mapp.move2.newauracharge.hitTest(_root.marker4._x, _root.marker4._y, true)) {
en_speed[3] = 1.1;
scena2.enemy3.car3hit.gotoAndPlay(1);
_root.auratimer = _root.auratimer - 1;
}
if (auratimer <= 0) {
auratimer = 0;
mapp.move2.newauracharge.removeMovieClip();
scena2.aurablast_mc.gotoAndStop(8);
}
};
mouseListener.onMouseDown = function () {
if (weakblaster >= 1) {
if (blasteractive == true) {
shot.start();
duplicateMovieClip (mapp.move2.shothit, "newshothit", i);
scena2.energyball.gotoAndStop(1);
(mapp.move2.newshothit._x = mapp.move2.fov._x);
(mapp.move2.newshothit._y = mapp.move2.fov._y);
_root.weakblaster = _root.weakblaster - 1;
}
}
if (aura >= 1) {
if (auraactive == true) {
auratimer = 20;
aurasound.start();
duplicateMovieClip (mapp.move2.auracharge, "newauracharge", i);
scena2.aurablast_mc.gotoAndPlay(1);
(mapp.move2.newauracharge._x = mapp.move2.fov._x);
(mapp.move2.newauracharge._y = mapp.move2.fov._y);
_root.aura = _root.aura - 1;
}
}
if (bomb >= 1) {
if (bombactive == true) {
bombsound.start();
scena2.gravbomb.gotoAndPlay(1);
en_speed[1] = 0.5;
en_speed[2] = 0.5;
en_speed[3] = 0.5;
_root.bomb = _root.bomb - 1;
}
}
};
mouseListener.onMouseUp = function () {
shotspeed = 10;
};
if (mapp.move2.newshothit.hitTest(_root.marker2._x, _root.marker2._y, true)) {
en_speed[1] = 2;
_root.money = _root.money + 1;
}
if (mapp.move2.newshothit.hitTest(_root.marker3._x, _root.marker3._y, true)) {
en_speed[2] = 2;
_root.money = _root.money + 1;
}
if (mapp.move2.newshothit.hitTest(_root.marker4._x, _root.marker4._y, true)) {
en_speed[3] = 2;
_root.money = _root.money + 1;
}
if (mapp.move2.newauracharge.hitTest(_root.marker2._x, _root.marker2._y, true)) {
en_speed[1] = 0;
_root.money = _root.money + 1;
}
if (mapp.move2.newauracharge.hitTest(_root.marker3._x, _root.marker3._y, true)) {
en_speed[2] = 0;
_root.money = _root.money + 1;
}
if (mapp.move2.newauracharge.hitTest(_root.marker4._x, _root.marker4._y, true)) {
en_speed[3] = 0;
_root.money = _root.money + 1;
}
if (timing) {
elapsedTime = getTimer() - startTime;
elapsedHours = Math.floor(elapsedTime / 3600000);
remaining = elapsedTime - (elapsedHours * 3600000);
elapsedM = Math.floor(remaining / 60000);
remaining = remaining - (elapsedM * 60000);
elapsedS = Math.floor(remaining / 1000);
remaining = remaining - (elapsedS * 1000);
elapsedH = Math.floor(remaining / 10);
if (elapsedM < 10) {
minutes = "0" + elapsedM.toString();
} else {
minutes = elapsedM.toString();
}
if (elapsedS < 10) {
seconds = "0" + elapsedS.toString();
} else {
seconds = elapsedS.toString();
}
if (elapsedH < 10) {
hundredths = "0" + elapsedH.toString();
} else {
hundredths = elapsedH.toString();
}
_root.timer = (((minutes + ":") + seconds) + ":") + hundredths;
}
};
_root.onEnterFrame = main_loop;
Instance of Symbol 360 MovieClip "engine" in Frame 15
onClipEvent (load) {
minfinish = false;
_root.acc = new Sound();
_root.acc.attachSound("acc");
_root.dec = new Sound();
_root.dec.attachSound("dec");
_root.dec.onSoundComplete = function () {
_root.minimo.start(0, 500);
minfinish = true;
};
_root.minimo = new Sound();
_root.minimo.attachSound("minimo");
_root.massimo = new Sound();
_root.massimo.attachSound("massimo");
_root.massimo.onSoundComplete = function () {
_root.massimo.start(1, 0);
};
_root.acc.onSoundComplete = function () {
_root.massimo.start(1, 0);
};
_root.minimo.start(50, 500);
_root.accvar = 0;
stato = "min";
}
onClipEvent (enterFrame) {
if ((_root.pedal == 1) and (stato != "acc")) {
if (stato == "min") {
_root.accvar = 0;
}
if (stato == "dec") {
_root.accvar = (_root.dec.duration - _root.dec.position) / 2000;
}
stato = "acc";
_root.minimo.stop();
_root.acc.start(_root.accvar, 0);
}
if ((_root.pedal != 1) and (stato != "dec")) {
_root.accvar = (_root.acc.duration - _root.acc.position) / 2000;
stato = "dec";
_root.minimo.stop();
_root.acc.stop();
_root.dec.start(_root.accvar, 0);
}
}
Instance of Symbol 367 MovieClip "marker1" in Frame 15
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move2.fov._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move2.fov._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Instance of Symbol 369 MovieClip "marker2" in Frame 15
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move2.enemy1._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move2.enemy1._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Instance of Symbol 371 MovieClip "marker3" in Frame 15
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move2.enemy2._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move2.enemy2._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Instance of Symbol 388 MovieClip "marker4" in Frame 15
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move2.enemy3._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move2.enemy3._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Instance of Symbol 388 MovieClip "marker4" in Frame 15
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move2.enemy3._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move2.enemy3._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Frame 17
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
dirting = true;
Mouse.removeListener(mouseListener);
stopAllSounds();
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path2");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move2");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena2");
unloadMovie ("track02");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path2");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move2");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 18
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
dirting = true;
Mouse.removeListener(mouseListener);
stopAllSounds();
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path2");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move2");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena2");
unloadMovie ("track02");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path2");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move2");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 19
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
dirting = true;
Mouse.removeListener(mouseListener);
stopAllSounds();
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path2");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move2");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena2");
unloadMovie ("track02");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path2");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move2");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 20
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
dirting = true;
Mouse.removeListener(mouseListener);
menu.start();
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path2");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move2");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena2");
unloadMovie ("track02");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path2");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move2");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 21
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
Mouse.removeListener(mouseListener);
var rocket = false;
var mouseListener = new Object();
mouseListener.onMouseDown = function () {
if (rocket == true) {
r.lineStyle(7, 16711680, 85, false, "normal", "oval", "miter");
r.moveTo(200, 250);
r.lineTo(_xmouse, _ymouse);
shot.start();
} else if (rocket == false) {
r.lineStyle(7, 16776960, 85, false, "normal", "oval", "miter");
r.moveTo(200, 250);
r.lineTo(_xmouse, _ymouse);
shot.start();
}
};
mouseListener.onMouseUp = function () {
r.lineStyle(7, 0, 45, false, "normal", "square", "miter");
r.moveTo(280, 300);
r.lineTo(_xmouse, _ymouse);
r.clear(0.5);
};
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path2");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move2");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena2");
unloadMovie ("track02");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path2");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move2");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 22
Mouse.show();
stop();
_quality = "LOW";
var shot = new Sound();
shot.attachSound("lasershoot");
thud1 = new Sound();
thud1.attachSound("thud1");
dirt1 = new Sound();
dirt1.attachSound("rockslide");
dirt1.onSoundComplete = function () {
dirting = false;
};
dirting = false;
flen = 20;
clip_dist = 1000;
pedal = false;
speed1 = 0;
degree1 = 0;
rotspeed1 = 30;
maxspeed1 = 35;
accel1 = 0.003;
brake1 = 0.95;
damp1 = 0.97;
lapsdone = -1;
lapsdone_txt = "START";
bestlap = 1E20;
bestlap_txt = "";
sterstate = 0;
temp = 0;
rotation = 0;
speed = 0;
rotaz1 = -90;
initx = 385;
inity = -80;
checkpoints = 4;
cpoint1 = 0;
cpoint2 = 0;
cpoint3 = 0;
cpoint4 = 0;
waypoints = 16;
var timing = false;
var paused = false;
var remaining;
var elapsedTime;
var elapsedHours;
var elapsedM;
var elapsedS;
var elapsedH;
var startTime;
var remaining;
var hours;
var minutes;
var seconds;
var hundredths;
mapp.move3.gotoAndStop(2);
mapp.move3.fov._x = 45;
mapp.move3.fov._y = -250;
_root.createEmptyMovieClip("scena3", 1);
scena3._x = 0;
scena3._y = 0;
_root.stripes = 85;
i = 1;
while (i <= _root.stripes) {
slice = scena3.attachMovie("track03", "t1" + i, i);
slice.swapDepths(scena3.future);
slice._x = 200;
slice._y = 300;
ratio = i / stripes;
slice._yscale = (slice._xscale = (i * 15) * ratio);
mask = attachMovie("mask", "mask" + i, scena3.getNextHighestDepth());
mask._height = (i * ratio) * 2.5;
mask._x = -80;
mask._y = 150 + ((i * ratio) * 2.5);
var r = createEmptyMovieClip("laser", 4);
mask.swapDepths(marker1);
mask.swapDepths(marker2);
mask.swapDepths(marker3);
mask.swapDepths(scritta);
mask.swapDepths(mapp);
mask.swapDepths(credits);
mask.swapDepths(cursor_mc);
slice.setMask(mask);
i++;
}
scena3.attachMovie("future", "future", scena3.getNextHighestDepth());
scena3.future._x = 200;
scena3.future._y = 240;
scena3.future.gotoAndPlay(15);
scena3.attachMovie("smok1", "smok1", scena3.getNextHighestDepth());
scena3.smok1._x = scena3.future._x;
scena3.smok1._xscale = (scena3.smok1._yscale = 200);
scena3.smok1._y = 285;
scena3.attachMovie("boostage", "boostage", scena3.getNextHighestDepth());
scena3.boostage._x = 200;
scena3.boostage._y = 260;
scena3.attachMovie("gravbomb", "gravbomb", scena3.getNextHighestDepth());
scena3.gravbomb._x = 205;
scena3.gravbomb._y = 160;
scena3.gravbomb._xscale = (scena3.gravbomb._yscale = 70);
scena3.gravbomb.gotoAndStop(12);
Mouse.addListener(mouseListener);
scena3.boostage.gotoAndStop(10);
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (Key.getAscii() == 49) {
if (blasteractive == false) {
auratimer = 0;
blasteractive = true;
auraactive = false;
bombactive = false;
}
}
if (Key.getAscii() == 50) {
if (auraactive == false) {
blasteractive = false;
auraactive = true;
bombactive = false;
}
}
if (Key.getAscii() == 51) {
if (bombactive == false) {
auratimer = 0;
blasteractive = false;
auraactive = false;
bombactive = true;
}
}
if (Key.getAscii() == 32) {
if (booster >= 1) {
scena3.boostage.gotoAndPlay(1);
}
}
};
Key.addListener(keyListener);
numtrees = 11;
numenergy = 1;
numaura = 1;
i = 1;
while (i <= numtrees) {
scena3.attachMovie("tree", "tree" + i, scena3.getNextHighestDepth());
i++;
}
i = 1;
while (i <= numenergy) {
scena3.attachMovie("energyball", "energyball", scena3.getNextHighestDepth());
scena3.energyball._x = 2000;
i++;
}
i = 1;
while (i <= numaura) {
scena3.attachMovie("aurablast_mc", "aurablast_mc", scena3.getNextHighestDepth());
scena3.aurablast_mc._x = 2000;
i++;
}
numenemies = 3;
cp_enemy = new Array();
cpnext_enemy = new Array();
speed_enemy = new Array();
anglestop_enemy = new Array();
oldangle_enemy = new Array();
en_speed = new Array();
en_maxspeed = new Array();
en_accel = new Array();
en_brake = new Array();
en_damp = new Array();
en_makelap = new Array();
en_timer = new Array();
en_lapsdone = new Array();
en_makelap2 = new Array();
en_lapsdone2 = new Array();
en_makelap3 = new Array();
en_lapsdone3 = new Array();
i = 1;
while (i <= numenemies) {
cp_enemy[i] = 0;
cpnext_enemy[i] = 0;
speed_enemy[i] = 0;
oldangle_enemy[i] = 0;
anglestop_enemy[i] = false;
en_speed[i] = 0;
en_maxspeed[i] = 8;
en_accel[i] = 0.005;
en_brake[i] = 0.95;
en_damp[i] = 0.96;
en_makelap[i] = false;
en_lapsdone[i] = -1;
en_timing[i] = false;
en_makelap2[i] = false;
en_lapsdone2[i] = -1;
en_makelap3[i] = false;
en_lapsdone3[i] = -1;
scena3.attachMovie("opp" + i, "enemy" + i, scena3.getNextHighestDepth());
i++;
}
i = 1;
while (i <= _root.stripes) {
eval ("scena3.t1" + i)._rotation = _root.rotaz1;
eval ("scena3.t1" + i).move3._y = initx;
eval ("scena3.t1" + i).move3._x = inity;
i++;
}
scritta._visible = false;
_root.onLoad = initialize;
main_loop = function () {
pedal = false;
steer = 0;
onborder = false;
gunsteer = 0;
if (Key.isDown(87)) {
speed1 = speed1 + (((maxspeed1 - speed1) + 1) * accel1);
pedal = 1;
if ((speed1 > 0) and (speed1 < 5)) {
_root.scena3.smok1._visible = true;
} else {
_root.scena3.smok1._visible = false;
}
} else {
_root.scena3.smok1._visible = false;
}
if (Key.isDown(83)) {
if (speed1 <= 0) {
speed1 = speed1 - (((maxspeed1 / 3) + speed1) * accel1);
} else {
speed1 = speed1 * brake1;
}
pedal = 2;
}
if (pedal == false) {
if (Math.abs(speed1) > 0.1) {
speed1 = speed1 * damp1;
} else {
speed1 = 0;
}
}
if (Key.isDown(68)) {
_root.rotaz1 = _root.rotaz1 - 5;
steer = 1;
gunsteer = 1;
_root.scena3.future.nextFrame();
}
if (Key.isDown(65)) {
_root.rotaz1 = _root.rotaz1 + 5;
steer = 2;
gunsteer = 2;
_root.scena3.future.prevFrame();
}
if (steer == 0) {
if (_root.scena3.future._currentframe >= 16) {
_root.scena3.future.prevFrame();
}
if (_root.scena3.future._currentframe <= 14) {
_root.scena3.future.nextFrame();
}
}
scena3.future.swapDepths(10100);
scena3.smok1.swapDepths(10101);
scena3.energyball.swapDepths(10099);
scena3.aurablast_mc.swapDepths(10109);
scena3.boostage.swapDepths(10110);
scena3.gravbomb.swapDepths(10111);
if (rotaz1 > 180) {
rotaz1 = -180 + (rotaz1 - 180);
}
if (rotaz1 < -180) {
rotaz1 = 180 + (rotaz1 + 180);
}
mapp.move3.fov._rotation = (-_root.rotaz1) - 90;
mapp.move3.fov._x = mapp.move3.fov._x - (_root.sinness / 2);
mapp.move3.fov._y = mapp.move3.fov._y - (_root.cosness / 2);
mapp.move3.newshothit._rotation = (-_root.rotaz1) + 0;
mapp.move3.newshothit._x = mapp.move3.newshothit._x + (_root.sinness / 2);
mapp.move3.newshothit._y = mapp.move3.newshothit._y + (_root.cosness / 2);
mapp.move3.newauracharge._rotation = (-_root.rotaz1) + 90;
mapp.move3.newauracharge._x = mapp.move3.newauracharge._x - (_root.sinness / 2);
mapp.move3.newauracharge._y = mapp.move3.newauracharge._y - (_root.cosness / 2);
i = 1;
while (i <= _root.stripes) {
eval ("scena3.t1" + i)._rotation = _root.rotaz1;
eval ("scena3.t1" + i).move3._x = (-mapp.move3.fov._x) * 1.78;
eval ("scena3.t1" + i).move3._y = (-mapp.move3.fov._y) * 1.94;
i++;
}
i = 1;
while (i <= numtrees) {
dx = eval ("mapp.move3.mtree" + i)._x - mapp.move3.fov._x;
dy = eval ("mapp.move3.mtree" + i)._y - mapp.move3.fov._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
ang1 = rotaz1;
ang2 = -(((Math.atan2(dy, dx) * 180) / Math.PI) + 90);
angle = (-ang2) + ang1;
if (angle > 180) {
angle = angle - 360;
}
angle = (angle * Math.PI) / 180;
dist_side = dist * Math.sin(angle);
dist_depth = dist * Math.cos(angle);
scaleRatio = flen / (flen + dist_depth);
eval ("scena3.tree" + i)._x = scena3.future._x + ((dist_side * scaleRatio) * 10);
eval ("scena3.tree" + i)._y = 147 + (scaleRatio * 95);
eval ("scena3.tree" + i)._xscale = (eval ("scena3.tree" + i)._yscale = 100 * scaleRatio);
eval ("scena3.tree" + i).swapDepths(10000 + Math.floor(eval ("scena3.tree" + i)._xscale));
if ((dist_depth < -20) or (dist_depth > clip_dist)) {
eval ("scena3.tree" + i)._visible = false;
} else {
eval ("scena3.tree" + i)._visible = true;
}
i++;
}
i = 1;
while (i <= numenergy) {
ex = mapp.move3.newshothit._x - mapp.move3.fov._x;
ey = mapp.move3.newshothit._y - mapp.move3.fov._y;
edist = Math.sqrt((ex * ex) + (ey * ey));
ang1 = rotaz1;
ang2 = -(((Math.atan2(ey, ex) * 180) / Math.PI) + 90);
angle = (-ang2) + ang1;
if (angle > 180) {
angle = angle - 360;
}
angle = (angle * Math.PI) / 180;
edist_side = edist * Math.sin(angle);
edist_depth = edist * Math.cos(angle);
scaleRatio = flen / (flen + edist_depth);
scena3.energyball._x = scena3.future._x + ((edist_side * scaleRatio) * 10);
scena3.energyball._y = 147 + (scaleRatio * 95);
scena3.energyball._xscale = (scena3.energyball._yscale = 100 * scaleRatio);
scena3.energyball.swapDepths(1000 + Math.floor(scena3.energyball._xscale));
if ((edist_depth < -20) or (edist_depth > clip_dist)) {
scena3.energyball._visible = false;
} else {
scena3.energyball._visible = true;
}
i++;
}
i = 1;
while (i <= numaura) {
ax = mapp.move3.newauracharge._x - mapp.move3.fov._x;
ay = mapp.move3.newauracharge._y - mapp.move3.fov._y;
adist = Math.sqrt((ax * ax) + (ay * ay));
ang1 = rotaz1;
ang2 = -(((Math.atan2(ay, ax) * 180) / Math.PI) + 90);
angle = (-ang2) + ang1;
if (angle > 180) {
angle = angle - 360;
}
angle = (angle * Math.PI) / 180;
adist_side = adist * Math.sin(angle);
adist_depth = adist * Math.cos(angle);
scaleRatio = flen / (flen + adist_depth);
scena3.aurablast_mc._x = scena3.future._x + ((adist_side * scaleRatio) * 10);
scena3.aurablast_mc._y = 147 + (scaleRatio * 95);
scena3.aurablast_mc._xscale = (scena3.aurablast_mc._yscale = 100 * scaleRatio);
scena3.aurablast_mc.swapDepths(1000 + Math.floor(scena3.aurablast_mc._xscale));
if ((adist_depth < -20) or (adist_depth > clip_dist)) {
scena3.aurablast_mc._visible = false;
} else {
scena3.aurablast_mc._visible = true;
}
i++;
}
i = 1;
while (i <= numenemies) {
nextwp = cpnext_enemy[i];
dx = (-eval ("mapp.move3.enemy" + i)._x) + eval ("mapp.move3.wp" + nextwp)._x;
dy = (-eval ("mapp.move3.enemy" + i)._y) + eval ("mapp.move3.wp" + nextwp)._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
k = nextwp + 1;
if (nextwp == (waypoints - 1)) {
k = 0;
}
dx2 = (-eval ("mapp.move3.enemy" + i)._x) + eval ("mapp.move3.wp" + k)._x;
dy2 = (-eval ("mapp.move3.enemy" + i)._y) + eval ("mapp.move3.wp" + k)._y;
nextdist = Math.sqrt((dx2 * dx2) + (dy2 * dy2));
fortuna = Math.random() * 100;
if (((Math.abs(nextdist - dist) < 150) and (dist < 100)) and (fortuna > 80)) {
if (Math.abs(en_speed[i]) > 0.1) {
en_speed[i] = en_speed[i] * en_damp[i];
} else {
en_speed[i] = 0;
}
} else {
en_speed[i] = en_speed[i] + (((en_maxspeed[i] - en_speed[i]) + 1) * en_accel[i]);
}
if (anglestop_enemy[i] == false) {
direzione = (Math.atan2(dy, dx) * 180) / Math.PI;
error = (5 - int(Math.random() * 10)) * 3;
direzione = direzione + error;
testdir = direzione + 90;
if (testdir < 0) {
testdir = testdir + 360;
}
oldrot = eval ("mapp.move3.enemy" + i)._rotation;
if (oldrot < 0) {
oldrot = oldrot + 360;
}
sterzata = testdir - oldrot;
if (sterzata < -180) {
sterzata = sterzata + 360;
}
if (sterzata > 180) {
sterzata = sterzata - 360;
}
junkvar = false;
max = 15;
if (direzione < 0) {
direzione = direzione + 360;
}
if ((sterzata >= (-max)) and (sterzata <= max)) {
anglestop_enemy[i] = direzione;
} else {
junkvar = true;
if (sterzata > max) {
anglestop_enemy[i] = (eval ("mapp.move3.enemy" + i)._rotation - 90) + max;
sterzata = max;
}
if (sterzata < (-max)) {
anglestop_enemy[i] = (eval ("mapp.move3.enemy" + i)._rotation - 90) - max;
sterzata = -max;
}
}
}
ang = anglestop_enemy[i];
eval ("mapp.move3.enemy" + i)._rotation = ang + 90;
ang = (-ang) + 90;
movx = en_speed[i] * Math.sin((ang * Math.PI) / 180);
movy = en_speed[i] * Math.cos((ang * Math.PI) / 180);
eval ("mapp.move3.enemy" + i)._x = eval ("mapp.move3.enemy" + i)._x + movx;
eval ("mapp.move3.enemy" + i)._y = eval ("mapp.move3.enemy" + i)._y + movy;
if (junkvar == true) {
anglestop_enemy[i] = false;
}
dx = eval ("mapp.move3.enemy" + i)._x - mapp.move3.fov._x;
dy = eval ("mapp.move3.enemy" + i)._y - mapp.move3.fov._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
ang1 = rotaz1;
ang2 = -(((Math.atan2(dy, dx) * 180) / Math.PI) + 90);
angle = (-ang2) + ang1;
if (angle > 180) {
angle = angle - 360;
}
rotdiff = rotaz1 + eval ("mapp.move3.enemy" + i)._rotation;
if (rotdiff > 360) {
rotdiff = rotdiff - 360;
} else if (rotdiff < 0) {
rotdiff = rotdiff + 360;
}
if ((rotdiff <= 15) and (rotdiff <= 345)) {
eval ("scena3.enemy" + i).inner.gotoAndStop(1);
}
if ((rotdiff > 15) and (rotdiff <= 45)) {
eval ("scena3.enemy" + i).inner.gotoAndStop(12);
}
if ((rotdiff > 45) and (rotdiff <= 75)) {
eval ("scena3.enemy" + i).inner.gotoAndStop(11);
}
if ((rotdiff > 75) and (rotdiff <= 105)) {
eval ("scena3.enemy" + i).inner.gotoAndStop(10);
}
if ((rotdiff > 105) and (rotdiff <= 135)) {
eval ("scena3.enemy" + i).inner.gotoAndStop(9);
}
if ((rotdiff > 135) and (rotdiff <= 165)) {
eval ("scena3.enemy" + i).inner.gotoAndStop(8);
}
if ((rotdiff > 165) and (rotdiff <= 195)) {
eval ("scena3.enemy" + i).inner.gotoAndStop(7);
}
if ((rotdiff > 195) and (rotdiff <= 225)) {
eval ("scena3.enemy" + i).inner.gotoAndStop(6);
}
if ((rotdiff > 225) and (rotdiff <= 255)) {
eval ("scena3.enemy" + i).inner.gotoAndStop(5);
}
if ((rotdiff > 255) and (rotdiff <= 285)) {
eval ("scena3.enemy" + i).inner.gotoAndStop(4);
}
if ((rotdiff > 285) and (rotdiff <= 315)) {
eval ("scena3.enemy" + i).inner.gotoAndStop(3);
}
if ((rotdiff > 315) and (rotdiff <= 345)) {
eval ("scena3.enemy" + i).inner.gotoAndStop(2);
}
angle = (angle * Math.PI) / 180;
dist_side = dist * Math.sin(angle);
dist_depth = dist * Math.cos(angle);
scaleRatio = flen / (flen + dist_depth);
eval ("scena3.enemy" + i)._x = scena3.future._x + ((dist_side * scaleRatio) * 8.1);
eval ("scena3.enemy" + i)._y = 145 + (scaleRatio * 97);
eval ("scena3.enemy" + i)._xscale = (eval ("scena3.enemy" + i)._yscale = 100 * scaleRatio);
eval ("scena3.enemy" + i).swapDepths(10000 + Math.floor(eval ("scena3.enemy" + i)._xscale));
if ((dist_depth < -20) or (dist_depth > clip_dist)) {
eval ("scena3.enemy" + i)._visible = false;
} else {
eval ("scena3.enemy" + i)._visible = true;
}
i++;
}
i = 0;
while (i <= waypoints) {
if (eval ("mapp.move3.wp" + i).hitTest(_root.marker2._x, _root.marker2._y, true) and (cpnext_enemy[1] == i)) {
anglestop_enemy[1] = false;
cpnext_enemy[1]++;
if (cpnext_enemy[1] == waypoints) {
cpnext_enemy[1] = 0;
}
}
if (eval ("mapp.move3.wp" + i).hitTest(_root.marker3._x, _root.marker3._y, true) and (cpnext_enemy[2] == i)) {
anglestop_enemy[2] = false;
cpnext_enemy[2]++;
if (cpnext_enemy[2] == waypoints) {
cpnext_enemy[2] = 0;
}
}
if (eval ("mapp.move3.wp" + i).hitTest(_root.marker4._x, _root.marker4._y, true) and (cpnext_enemy[3] == i)) {
anglestop_enemy[3] = false;
cpnext_enemy[3]++;
if (cpnext_enemy[3] == waypoints) {
cpnext_enemy[3] = 0;
}
}
i++;
}
i = 1;
while (i <= checkpoints) {
if (eval ("mapp.move3.cpoint" + i).hitTest(_root.marker1._x, _root.marker1._y, true)) {
Set("cpoint" + i, 1);
}
i++;
}
if (mapp.move3.startline.hitTest(_root.marker1._x, _root.marker1._y, true)) {
somma = 0;
i = 1;
while (i <= checkpoints) {
somma = somma + eval ("cpoint" + i);
i++;
}
if (somma == checkpoints) {
makelap = true;
}
}
if (mapp.move3.startline2.hitTest(_root.marker1._x, _root.marker1._y, true) and ((makelap == true) or (lapsdone == "-1"))) {
lapsdone++;
lapsdone_txt = "LAP " + lapsdone;
i = 1;
while (i <= checkpoints) {
Set("cpoint" + i, 0);
i++;
}
if (lapsdone == 5) {
gotoAndPlay (27);
_root.money = _root.money + 25;
auratimer = 0;
}
_root.timing = false;
if (elapsedTime < bestlap) {
bestlap = elapsedTime;
bestlap_txt = timer;
}
makelap = false;
if (!_root.timing) {
_root.startTime = getTimer();
_root.timing = true;
}
}
if (mapp.move3.borderz.hitTest(_root.marker1._x, _root.marker1._y, true)) {
thud1.start(0, 0);
onborder = true;
speed1 = speed1 / 3;
pedal = false;
}
if (mapp.move3.startline.hitTest(_root.marker2._x, _root.marker2._y, true)) {
en_makelap[1] = true;
}
timer_en1 = "LAP " + en_lapsdone[1];
if (mapp.move3.startline2.hitTest(_root.marker2._x, _root.marker2._y, true) and ((en_makelap[1] == true) or (en_lapsdone[1] == "-1"))) {
en_lapsdone[1]++;
en_makelap[1] = false;
}
if (en_lapsdone[1] == 5) {
gotoAndPlay (24);
}
if (mapp.move3.startline.hitTest(_root.marker3._x, _root.marker3._y, true)) {
en_makelap2[1] = true;
}
timer_en1 = "LAP " + en_lapsdone2[1];
if (mapp.move3.startline2.hitTest(_root.marker3._x, _root.marker3._y, true) and ((en_makelap2[1] == true) or (en_lapsdone2[1] == "-1"))) {
en_lapsdone2[1]++;
en_makelap2[1] = false;
}
if (en_lapsdone2[1] == 5) {
gotoAndPlay (25);
}
if (mapp.move3.startline.hitTest(_root.marker4._x, _root.marker4._y, true)) {
en_makelap3[1] = true;
}
timer_en1 = "LAP " + en_lapsdone3[1];
if (mapp.move3.startline2.hitTest(_root.marker4._x, _root.marker4._y, true) and ((en_makelap3[1] == true) or (en_lapsdone3[1] == "-1"))) {
en_lapsdone3[1]++;
en_makelap3[1] = false;
}
if (en_lapsdone3[1] == 5) {
gotoAndPlay (25);
}
if (mapp.move3.path3.hitTest(_root.marker1._x, _root.marker1._y, true)) {
scritta._visible = false;
dirting = false;
scena3.future._y = 255;
} else {
scena3.smok1._visible = true;
scritta._visible = true;
if (temp == 0) {
scena3.future._y = scena3.future._y + 1;
temp++;
} else {
scena3.future._y = scena3.future._y - 1;
temp--;
}
if (dirting == false) {
dirt1.start(0, 0);
}
dirting = true;
speed1 = speed1 * 0.9;
}
_root.cosness = (_root.speed1 * Math.cos((_root.rotaz1 * Math.PI) / 180)) / 2;
_root.sinness = (_root.speed1 * Math.sin((_root.rotaz1 * Math.PI) / 180)) / 2;
speed1_d = int(speed1 * 3);
shotspeedx = Math.sin(mapp.move3.newshothit._rotation * (Math.PI/180)) * 2;
shotspeedy = Math.cos(mapp.move3.newshothit._rotation * (Math.PI/180)) * 2;
mapp.move3.newshothit._x = mapp.move3.newshothit._x + (shotspeedx * shotspeed);
mapp.move3.newshothit._y = mapp.move3.newshothit._y - (shotspeedy * shotspeed);
mapp.move3.newshothit.onEnterFrame = function () {
scena3.energyball._visible = true;
scena3.enemy1.car1hit.gotoAndStop(5);
scena3.enemy2.car2hit.gotoAndStop(5);
scena3.enemy3.car3hit.gotoAndStop(5);
if (mapp.move3.newshothit.hitTest(_root.marker2._x, _root.marker2._y, true)) {
scena3.enemy1.car1hit.gotoAndPlay(1);
scena3.energyball.gotoAndPlay(2);
mapp.move3.newshothit.removeMovieClip();
en_speed[1] = 0.7;
_root.money = _root.money + 2;
}
if (mapp.move3.newshothit.hitTest(_root.marker3._x, _root.marker3._y, true)) {
scena3.enemy2.car2hit.gotoAndPlay(1);
scena3.energyball.gotoAndPlay(2);
mapp.move3.newshothit.removeMovieClip();
en_speed[2] = 0.7;
_root.money = _root.money + 2;
}
if (mapp.move3.newshothit.hitTest(_root.marker4._x, _root.marker4._y, true)) {
scena3.enemy3.car3hit.gotoAndPlay(1);
scena3.energyball.gotoAndPlay(2);
mapp.move3.newshothit.removeMovieClip();
en_speed[3] = 0.7;
_root.money = _root.money + 2;
}
if (mapp.move3.newshothit.hitTest(mapp.move3.stopper1)) {
scena3.energyball.gotoAndStop(7);
mapp.move3.newshothit.removeMovieClip();
}
if (mapp.move3.newshothit.hitTest(mapp.move3.stopper2)) {
scena3.energyball.gotoAndStop(7);
mapp.move3.newshothit.removeMovieClip();
}
if (mapp.move3.newshothit.hitTest(mapp.move3.stopper3)) {
scena3.energyball.gotoAndStop(7);
mapp.move3.newshothit.removeMovieClip();
}
if (mapp.move3.newshothit.hitTest(mapp.move3.stopper4)) {
scena3.energyball.gotoAndStop(7);
mapp.move3.newshothit.removeMovieClip();
}
};
mapp.move3.newauracharge.onEnterFrame = function () {
if (mapp.move3.newauracharge.hitTest(_root.marker2._x, _root.marker2._y, true)) {
en_speed[1] = 1.1;
scena3.enemy1.car1hit.gotoAndPlay(1);
_root.auratimer = _root.auratimer - 1;
}
if (mapp.move3.newauracharge.hitTest(_root.marker3._x, _root.marker3._y, true)) {
en_speed[2] = 1.1;
scena3.enemy2.car2hit.gotoAndPlay(1);
_root.auratimer = _root.auratimer - 1;
}
if (mapp.move3.newauracharge.hitTest(_root.marker4._x, _root.marker4._y, true)) {
en_speed[3] = 1.1;
scena3.enemy3.car3hit.gotoAndPlay(1);
_root.auratimer = _root.auratimer - 1;
}
if (auratimer <= 0) {
auratimer = 0;
mapp.move3.newauracharge.removeMovieClip();
scena3.aurablast_mc.gotoAndStop(8);
}
};
mouseListener.onMouseDown = function () {
if (weakblaster >= 1) {
if (blasteractive == true) {
duplicateMovieClip (mapp.move3.shothit, "newshothit", i);
scena3.energyball.gotoAndStop(1);
(mapp.move3.newshothit._x = mapp.move3.fov._x);
(mapp.move3.newshothit._y = mapp.move3.fov._y);
_root.weakblaster = _root.weakblaster - 1;
}
}
if (aura >= 1) {
if (auraactive == true) {
aurasound.start();
auratimer = 20;
duplicateMovieClip (mapp.move3.auracharge, "newauracharge", i);
scena3.aurablast_mc.gotoAndPlay(1);
(mapp.move3.newauracharge._x = mapp.move3.fov._x);
(mapp.move3.newauracharge._y = mapp.move3.fov._y);
_root.aura = _root.aura - 1;
}
}
if (bomb >= 1) {
if (bombactive == true) {
bombsound.start();
scena3.gravbomb.gotoAndPlay(1);
en_speed[1] = 0.5;
en_speed[2] = 0.5;
en_speed[3] = 0.5;
_root.bomb = _root.bomb - 1;
}
}
};
mouseListener.onMouseUp = function () {
shotspeed = 10;
};
if (mapp.move3.newshothit.hitTest(_root.marker2._x, _root.marker2._y, true)) {
en_speed[1] = 2;
_root.money = _root.money + 1;
}
if (mapp.move3.newshothit.hitTest(_root.marker3._x, _root.marker3._y, true)) {
en_speed[2] = 2;
_root.money = _root.money + 1;
}
if (mapp.move3.newshothit.hitTest(_root.marker4._x, _root.marker4._y, true)) {
en_speed[3] = 2;
_root.money = _root.money + 1;
}
if (mapp.move3.newauracharge.hitTest(_root.marker2._x, _root.marker2._y, true)) {
en_speed[1] = 0;
_root.money = _root.money + 1;
}
if (mapp.move3.newauracharge.hitTest(_root.marker3._x, _root.marker3._y, true)) {
en_speed[2] = 0;
_root.money = _root.money + 1;
}
if (mapp.move3.newauracharge.hitTest(_root.marker4._x, _root.marker4._y, true)) {
en_speed[3] = 0;
_root.money = _root.money + 1;
}
if (timing) {
elapsedTime = getTimer() - startTime;
elapsedHours = Math.floor(elapsedTime / 3600000);
remaining = elapsedTime - (elapsedHours * 3600000);
elapsedM = Math.floor(remaining / 60000);
remaining = remaining - (elapsedM * 60000);
elapsedS = Math.floor(remaining / 1000);
remaining = remaining - (elapsedS * 1000);
elapsedH = Math.floor(remaining / 10);
if (elapsedM < 10) {
minutes = "0" + elapsedM.toString();
} else {
minutes = elapsedM.toString();
}
if (elapsedS < 10) {
seconds = "0" + elapsedS.toString();
} else {
seconds = elapsedS.toString();
}
if (elapsedH < 10) {
hundredths = "0" + elapsedH.toString();
} else {
hundredths = elapsedH.toString();
}
_root.timer = (((minutes + ":") + seconds) + ":") + hundredths;
}
};
_root.onEnterFrame = main_loop;
Instance of Symbol 360 MovieClip "engine" in Frame 22
onClipEvent (load) {
minfinish = false;
_root.acc = new Sound();
_root.acc.attachSound("acc");
_root.dec = new Sound();
_root.dec.attachSound("dec");
_root.dec.onSoundComplete = function () {
_root.minimo.start(0, 500);
minfinish = true;
};
_root.minimo = new Sound();
_root.minimo.attachSound("minimo");
_root.massimo = new Sound();
_root.massimo.attachSound("massimo");
_root.massimo.onSoundComplete = function () {
_root.massimo.start(1, 0);
};
_root.acc.onSoundComplete = function () {
_root.massimo.start(1, 0);
};
_root.minimo.start(50, 500);
_root.accvar = 0;
stato = "min";
}
onClipEvent (enterFrame) {
if ((_root.pedal == 1) and (stato != "acc")) {
if (stato == "min") {
_root.accvar = 0;
}
if (stato == "dec") {
_root.accvar = (_root.dec.duration - _root.dec.position) / 2000;
}
stato = "acc";
_root.minimo.stop();
_root.acc.start(_root.accvar, 0);
}
if ((_root.pedal != 1) and (stato != "dec")) {
_root.accvar = (_root.acc.duration - _root.acc.position) / 2000;
stato = "dec";
_root.minimo.stop();
_root.acc.stop();
_root.dec.start(_root.accvar, 0);
}
}
Instance of Symbol 367 MovieClip "marker1" in Frame 22
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move3.fov._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move3.fov._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Instance of Symbol 369 MovieClip "marker2" in Frame 22
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move3.enemy1._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move3.enemy1._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Instance of Symbol 371 MovieClip "marker3" in Frame 22
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move3.enemy2._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move3.enemy2._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Instance of Symbol 251 MovieClip [track03] "mapp" in Frame 22
onClipEvent (load) {
_yscale = 7;
_xscale = 7;
}
Instance of Symbol 388 MovieClip "marker4" in Frame 22
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move3.enemy3._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move3.enemy3._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Instance of Symbol 388 MovieClip "marker4" in Frame 22
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move3.enemy3._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move3.enemy3._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Frame 24
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
dirting = true;
Mouse.removeListener(mouseListener);
stopAllSounds();
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path3");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move3");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena3");
unloadMovie ("track03");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path3");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move3");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 25
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
dirting = true;
Mouse.removeListener(mouseListener);
stopAllSounds();
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path3");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move3");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena3");
unloadMovie ("track03");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path3");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move3");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 26
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
dirting = true;
Mouse.removeListener(mouseListener);
stopAllSounds();
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path3");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move3");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena3");
unloadMovie ("track03");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path3");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move3");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 27
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
dirting = true;
Mouse.removeListener(mouseListener);
menu.start();
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path3");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move3");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena3");
unloadMovie ("track03");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path3");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move3");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 28
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
Mouse.removeListener(mouseListener);
var rocket = false;
var mouseListener = new Object();
mouseListener.onMouseDown = function () {
if (rocket == true) {
r.lineStyle(7, 16711680, 85, false, "normal", "oval", "miter");
r.moveTo(200, 250);
r.lineTo(_xmouse, _ymouse);
shot.start();
} else if (rocket == false) {
r.lineStyle(7, 16776960, 85, false, "normal", "oval", "miter");
r.moveTo(200, 250);
r.lineTo(_xmouse, _ymouse);
shot.start();
}
};
mouseListener.onMouseUp = function () {
r.lineStyle(7, 0, 45, false, "normal", "square", "miter");
r.moveTo(280, 300);
r.lineTo(_xmouse, _ymouse);
r.clear(0.5);
};
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path3");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move3");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena3");
unloadMovie ("track03");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path3");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move3");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 29
Mouse.show();
stop();
_quality = "LOW";
var shot = new Sound();
shot.attachSound("lasershoot");
thud1 = new Sound();
thud1.attachSound("thud1");
dirt1 = new Sound();
dirt1.attachSound("rockslide");
dirt1.onSoundComplete = function () {
dirting = false;
};
dirting = false;
flen = 20;
clip_dist = 1000;
pedal = false;
speed1 = 0;
degree1 = 0;
rotspeed1 = 30;
maxspeed1 = 35;
accel1 = 0.003;
brake1 = 0.95;
damp1 = 0.97;
lapsdone = -1;
lapsdone_txt = "START";
bestlap = 1E20;
bestlap_txt = "";
sterstate = 0;
temp = 0;
rotation = 0;
speed = 0;
rotaz1 = -90;
initx = 385;
inity = -80;
checkpoints = 4;
cpoint1 = 0;
cpoint2 = 0;
cpoint3 = 0;
cpoint4 = 0;
waypoints = 35;
var timing = false;
var paused = false;
var remaining;
var elapsedTime;
var elapsedHours;
var elapsedM;
var elapsedS;
var elapsedH;
var startTime;
var remaining;
var hours;
var minutes;
var seconds;
var hundredths;
mapp.move4.gotoAndStop(2);
mapp.move4.fov._x = 45;
mapp.move4.fov._y = -250;
_root.createEmptyMovieClip("scena4", 1);
scena4._x = 0;
scena4._y = 0;
_root.stripes = 85;
i = 1;
while (i <= _root.stripes) {
slice = scena4.attachMovie("track04", "t1" + i, i);
slice.swapDepths(scena4.future);
slice._x = 200;
slice._y = 300;
ratio = i / stripes;
slice._yscale = (slice._xscale = (i * 15) * ratio);
mask = attachMovie("mask", "mask" + i, scena4.getNextHighestDepth());
mask._height = (i * ratio) * 2.5;
mask._x = -80;
mask._y = 150 + ((i * ratio) * 2.5);
var r = createEmptyMovieClip("laser", 4);
mask.swapDepths(marker1);
mask.swapDepths(marker2);
mask.swapDepths(marker3);
mask.swapDepths(scritta);
mask.swapDepths(mapp);
mask.swapDepths(credits);
mask.swapDepths(cursor_mc);
slice.setMask(mask);
i++;
}
scena4.attachMovie("future", "future", scena4.getNextHighestDepth());
scena4.future._x = 200;
scena4.future._y = 240;
scena4.future.gotoAndPlay(15);
scena4.attachMovie("smok1", "smok1", scena4.getNextHighestDepth());
scena4.smok1._x = scena4.future._x;
scena4.smok1._xscale = (scena4.smok1._yscale = 200);
scena4.smok1._y = 285;
scena4.attachMovie("boostage", "boostage", scena4.getNextHighestDepth());
scena4.boostage._x = 200;
scena4.boostage._y = 260;
scena4.attachMovie("gravbomb", "gravbomb", scena4.getNextHighestDepth());
scena4.gravbomb._x = 205;
scena4.gravbomb._y = 160;
scena4.gravbomb._xscale = (scena4.gravbomb._yscale = 70);
scena4.gravbomb.gotoAndStop(12);
Mouse.addListener(mouseListener);
scena4.boostage.gotoAndStop(10);
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (Key.getAscii() == 49) {
if (blasteractive == false) {
auratimer = 0;
blasteractive = true;
auraactive = false;
bombactive = false;
}
}
if (Key.getAscii() == 50) {
if (auraactive == false) {
blasteractive = false;
auraactive = true;
bombactive = false;
}
}
if (Key.getAscii() == 51) {
if (bombactive == false) {
auratimer = 0;
blasteractive = false;
auraactive = false;
bombactive = true;
}
}
if (Key.getAscii() == 32) {
if (booster >= 1) {
scena4.boostage.gotoAndPlay(1);
}
}
};
Key.addListener(keyListener);
numtrees = 11;
numenergy = 1;
numaura = 1;
i = 1;
while (i <= numtrees) {
scena4.attachMovie("tree", "tree" + i, scena4.getNextHighestDepth());
i++;
}
i = 1;
while (i <= numenergy) {
scena4.attachMovie("energyball", "energyball", scena4.getNextHighestDepth());
scena4.energyball._x = 2000;
i++;
}
i = 1;
while (i <= numaura) {
scena4.attachMovie("aurablast_mc", "aurablast_mc", scena4.getNextHighestDepth());
scena4.aurablast_mc._x = 2000;
i++;
}
numenemies = 3;
cp_enemy = new Array();
cpnext_enemy = new Array();
speed_enemy = new Array();
anglestop_enemy = new Array();
oldangle_enemy = new Array();
en_speed = new Array();
en_maxspeed = new Array();
en_accel = new Array();
en_brake = new Array();
en_damp = new Array();
en_makelap = new Array();
en_timer = new Array();
en_lapsdone = new Array();
en_makelap2 = new Array();
en_lapsdone2 = new Array();
en_makelap3 = new Array();
en_lapsdone3 = new Array();
i = 1;
while (i <= numenemies) {
cp_enemy[i] = 0;
cpnext_enemy[i] = 0;
speed_enemy[i] = 0;
oldangle_enemy[i] = 0;
anglestop_enemy[i] = false;
en_speed[i] = 0;
en_maxspeed[i] = 7;
en_accel[i] = 0.005;
en_brake[i] = 0.95;
en_damp[i] = 0.96;
en_makelap[i] = false;
en_lapsdone[i] = -1;
en_timing[i] = false;
en_makelap2[i] = false;
en_lapsdone2[i] = -1;
en_makelap3[i] = false;
en_lapsdone3[i] = -1;
scena4.attachMovie("opp" + i, "enemy" + i, scena4.getNextHighestDepth());
i++;
}
i = 1;
while (i <= _root.stripes) {
eval ("scena4.t1" + i)._rotation = _root.rotaz1;
eval ("scena4.t1" + i).move4._y = initx;
eval ("scena4.t1" + i).move4._x = inity;
i++;
}
scritta._visible = false;
_root.onLoad = initialize;
main_loop = function () {
pedal = false;
steer = 0;
onborder = false;
gunsteer = 0;
if (Key.isDown(87)) {
speed1 = speed1 + (((maxspeed1 - speed1) + 1) * accel1);
pedal = 1;
if ((speed1 > 0) and (speed1 < 5)) {
_root.scena4.smok1._visible = true;
} else {
_root.scena4.smok1._visible = false;
}
} else {
_root.scena4.smok1._visible = false;
}
if (Key.isDown(83)) {
if (speed1 <= 0) {
speed1 = speed1 - (((maxspeed1 / 3) + speed1) * accel1);
} else {
speed1 = speed1 * brake1;
}
pedal = 2;
}
if (pedal == false) {
if (Math.abs(speed1) > 0.1) {
speed1 = speed1 * damp1;
} else {
speed1 = 0;
}
}
if (Key.isDown(68)) {
_root.rotaz1 = _root.rotaz1 - 5;
steer = 1;
gunsteer = 1;
_root.scena4.future.nextFrame();
}
if (Key.isDown(65)) {
_root.rotaz1 = _root.rotaz1 + 5;
steer = 2;
gunsteer = 2;
_root.scena4.future.prevFrame();
}
if (steer == 0) {
if (_root.scena4.future._currentframe >= 16) {
_root.scena4.future.prevFrame();
}
if (_root.scena4.future._currentframe <= 14) {
_root.scena4.future.nextFrame();
}
}
scena4.future.swapDepths(10100);
scena4.smok1.swapDepths(10101);
scena4.energyball.swapDepths(10099);
scena4.aurablast_mc.swapDepths(10109);
scena4.boostage.swapDepths(10110);
scena4.gravbomb.swapDepths(10111);
if (rotaz1 > 180) {
rotaz1 = -180 + (rotaz1 - 180);
}
if (rotaz1 < -180) {
rotaz1 = 180 + (rotaz1 + 180);
}
mapp.move4.fov._rotation = (-_root.rotaz1) - 90;
mapp.move4.fov._x = mapp.move4.fov._x - (_root.sinness / 2);
mapp.move4.fov._y = mapp.move4.fov._y - (_root.cosness / 2);
mapp.move4.newshothit._rotation = (-_root.rotaz1) + 0;
mapp.move4.newshothit._x = mapp.move4.newshothit._x + (_root.sinness / 2);
mapp.move4.newshothit._y = mapp.move4.newshothit._y + (_root.cosness / 2);
mapp.move4.newauracharge._rotation = (-_root.rotaz1) + 90;
mapp.move4.newauracharge._x = mapp.move4.newauracharge._x - (_root.sinness / 2);
mapp.move4.newauracharge._y = mapp.move4.newauracharge._y - (_root.cosness / 2);
i = 1;
while (i <= _root.stripes) {
eval ("scena4.t1" + i)._rotation = _root.rotaz1;
eval ("scena4.t1" + i).move4._x = (-mapp.move4.fov._x) * 1.78;
eval ("scena4.t1" + i).move4._y = (-mapp.move4.fov._y) * 1.94;
i++;
}
i = 1;
while (i <= numtrees) {
dx = eval ("mapp.move4.mtree" + i)._x - mapp.move4.fov._x;
dy = eval ("mapp.move4.mtree" + i)._y - mapp.move4.fov._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
ang1 = rotaz1;
ang2 = -(((Math.atan2(dy, dx) * 180) / Math.PI) + 90);
angle = (-ang2) + ang1;
if (angle > 180) {
angle = angle - 360;
}
angle = (angle * Math.PI) / 180;
dist_side = dist * Math.sin(angle);
dist_depth = dist * Math.cos(angle);
scaleRatio = flen / (flen + dist_depth);
eval ("scena4.tree" + i)._x = scena4.future._x + ((dist_side * scaleRatio) * 10);
eval ("scena4.tree" + i)._y = 147 + (scaleRatio * 95);
eval ("scena4.tree" + i)._xscale = (eval ("scena4.tree" + i)._yscale = 100 * scaleRatio);
eval ("scena4.tree" + i).swapDepths(10000 + Math.floor(eval ("scena4.tree" + i)._xscale));
if ((dist_depth < -20) or (dist_depth > clip_dist)) {
eval ("scena4.tree" + i)._visible = false;
} else {
eval ("scena4.tree" + i)._visible = true;
}
i++;
}
i = 1;
while (i <= numenergy) {
ex = mapp.move4.newshothit._x - mapp.move4.fov._x;
ey = mapp.move4.newshothit._y - mapp.move4.fov._y;
edist = Math.sqrt((ex * ex) + (ey * ey));
ang1 = rotaz1;
ang2 = -(((Math.atan2(ey, ex) * 180) / Math.PI) + 90);
angle = (-ang2) + ang1;
if (angle > 180) {
angle = angle - 360;
}
angle = (angle * Math.PI) / 180;
edist_side = edist * Math.sin(angle);
edist_depth = edist * Math.cos(angle);
scaleRatio = flen / (flen + edist_depth);
scena4.energyball._x = scena4.future._x + ((edist_side * scaleRatio) * 10);
scena4.energyball._y = 147 + (scaleRatio * 95);
scena4.energyball._xscale = (scena4.energyball._yscale = 100 * scaleRatio);
scena4.energyball.swapDepths(1000 + Math.floor(scena4.energyball._xscale));
if ((edist_depth < -20) or (edist_depth > clip_dist)) {
scena4.energyball._visible = false;
} else {
scena4.energyball._visible = true;
}
i++;
}
i = 1;
while (i <= numaura) {
ax = mapp.move4.newauracharge._x - mapp.move4.fov._x;
ay = mapp.move4.newauracharge._y - mapp.move4.fov._y;
adist = Math.sqrt((ax * ax) + (ay * ay));
ang1 = rotaz1;
ang2 = -(((Math.atan2(ay, ax) * 180) / Math.PI) + 90);
angle = (-ang2) + ang1;
if (angle > 180) {
angle = angle - 360;
}
angle = (angle * Math.PI) / 180;
adist_side = adist * Math.sin(angle);
adist_depth = adist * Math.cos(angle);
scaleRatio = flen / (flen + adist_depth);
scena4.aurablast_mc._x = scena4.future._x + ((adist_side * scaleRatio) * 10);
scena4.aurablast_mc._y = 147 + (scaleRatio * 95);
scena4.aurablast_mc._xscale = (scena4.aurablast_mc._yscale = 100 * scaleRatio);
scena4.aurablast_mc.swapDepths(1000 + Math.floor(scena4.aurablast_mc._xscale));
if ((adist_depth < -20) or (adist_depth > clip_dist)) {
scena4.aurablast_mc._visible = false;
} else {
scena4.aurablast_mc._visible = true;
}
i++;
}
i = 1;
while (i <= numenemies) {
nextwp = cpnext_enemy[i];
dx = (-eval ("mapp.move4.enemy" + i)._x) + eval ("mapp.move4.wp" + nextwp)._x;
dy = (-eval ("mapp.move4.enemy" + i)._y) + eval ("mapp.move4.wp" + nextwp)._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
k = nextwp + 1;
if (nextwp == (waypoints - 1)) {
k = 0;
}
dx2 = (-eval ("mapp.move4.enemy" + i)._x) + eval ("mapp.move4.wp" + k)._x;
dy2 = (-eval ("mapp.move4.enemy" + i)._y) + eval ("mapp.move4.wp" + k)._y;
nextdist = Math.sqrt((dx2 * dx2) + (dy2 * dy2));
fortuna = Math.random() * 100;
if (((Math.abs(nextdist - dist) < 150) and (dist < 100)) and (fortuna > 80)) {
if (Math.abs(en_speed[i]) > 0.1) {
en_speed[i] = en_speed[i] * en_damp[i];
} else {
en_speed[i] = 0;
}
} else {
en_speed[i] = en_speed[i] + (((en_maxspeed[i] - en_speed[i]) + 1) * en_accel[i]);
}
if (anglestop_enemy[i] == false) {
direzione = (Math.atan2(dy, dx) * 180) / Math.PI;
testdir = direzione + 90;
if (testdir < 0) {
testdir = testdir + 360;
}
oldrot = eval ("mapp.move4.enemy" + i)._rotation;
if (oldrot < 0) {
oldrot = oldrot + 360;
}
sterzata = testdir - oldrot;
if (sterzata < -180) {
sterzata = sterzata + 360;
}
if (sterzata > 180) {
sterzata = sterzata - 360;
}
junkvar = false;
max = 15;
if (direzione < 0) {
direzione = direzione + 360;
}
if ((sterzata >= (-max)) and (sterzata <= max)) {
anglestop_enemy[i] = direzione;
} else {
junkvar = true;
if (sterzata > max) {
anglestop_enemy[i] = (eval ("mapp.move4.enemy" + i)._rotation - 90) + max;
sterzata = max;
}
if (sterzata < (-max)) {
anglestop_enemy[i] = (eval ("mapp.move4.enemy" + i)._rotation - 90) - max;
sterzata = -max;
}
}
}
ang = anglestop_enemy[i];
eval ("mapp.move4.enemy" + i)._rotation = ang + 90;
ang = (-ang) + 90;
movx = en_speed[i] * Math.sin((ang * Math.PI) / 180);
movy = en_speed[i] * Math.cos((ang * Math.PI) / 180);
eval ("mapp.move4.enemy" + i)._x = eval ("mapp.move4.enemy" + i)._x + movx;
eval ("mapp.move4.enemy" + i)._y = eval ("mapp.move4.enemy" + i)._y + movy;
if (junkvar == true) {
anglestop_enemy[i] = false;
}
dx = eval ("mapp.move4.enemy" + i)._x - mapp.move4.fov._x;
dy = eval ("mapp.move4.enemy" + i)._y - mapp.move4.fov._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
ang1 = rotaz1;
ang2 = -(((Math.atan2(dy, dx) * 180) / Math.PI) + 90);
angle = (-ang2) + ang1;
if (angle > 180) {
angle = angle - 360;
}
rotdiff = rotaz1 + eval ("mapp.move4.enemy" + i)._rotation;
if (rotdiff > 360) {
rotdiff = rotdiff - 360;
} else if (rotdiff < 0) {
rotdiff = rotdiff + 360;
}
if ((rotdiff <= 15) and (rotdiff <= 345)) {
eval ("scena4.enemy" + i).inner.gotoAndStop(1);
}
if ((rotdiff > 15) and (rotdiff <= 45)) {
eval ("scena4.enemy" + i).inner.gotoAndStop(12);
}
if ((rotdiff > 45) and (rotdiff <= 75)) {
eval ("scena4.enemy" + i).inner.gotoAndStop(11);
}
if ((rotdiff > 75) and (rotdiff <= 105)) {
eval ("scena4.enemy" + i).inner.gotoAndStop(10);
}
if ((rotdiff > 105) and (rotdiff <= 135)) {
eval ("scena4.enemy" + i).inner.gotoAndStop(9);
}
if ((rotdiff > 135) and (rotdiff <= 165)) {
eval ("scena4.enemy" + i).inner.gotoAndStop(8);
}
if ((rotdiff > 165) and (rotdiff <= 195)) {
eval ("scena4.enemy" + i).inner.gotoAndStop(7);
}
if ((rotdiff > 195) and (rotdiff <= 225)) {
eval ("scena4.enemy" + i).inner.gotoAndStop(6);
}
if ((rotdiff > 225) and (rotdiff <= 255)) {
eval ("scena4.enemy" + i).inner.gotoAndStop(5);
}
if ((rotdiff > 255) and (rotdiff <= 285)) {
eval ("scena4.enemy" + i).inner.gotoAndStop(4);
}
if ((rotdiff > 285) and (rotdiff <= 315)) {
eval ("scena4.enemy" + i).inner.gotoAndStop(3);
}
if ((rotdiff > 315) and (rotdiff <= 345)) {
eval ("scena4.enemy" + i).inner.gotoAndStop(2);
}
angle = (angle * Math.PI) / 180;
dist_side = dist * Math.sin(angle);
dist_depth = dist * Math.cos(angle);
scaleRatio = flen / (flen + dist_depth);
eval ("scena4.enemy" + i)._x = scena4.future._x + ((dist_side * scaleRatio) * 8.1);
eval ("scena4.enemy" + i)._y = 145 + (scaleRatio * 97);
eval ("scena4.enemy" + i)._xscale = (eval ("scena4.enemy" + i)._yscale = 100 * scaleRatio);
eval ("scena4.enemy" + i).swapDepths(10000 + Math.floor(eval ("scena4.enemy" + i)._xscale));
if ((dist_depth < -20) or (dist_depth > clip_dist)) {
eval ("scena4.enemy" + i)._visible = false;
} else {
eval ("scena4.enemy" + i)._visible = true;
}
i++;
}
i = 0;
while (i <= waypoints) {
if (eval ("mapp.move4.wp" + i).hitTest(_root.marker2._x, _root.marker2._y, true) and (cpnext_enemy[1] == i)) {
anglestop_enemy[1] = false;
cpnext_enemy[1]++;
if (cpnext_enemy[1] == waypoints) {
cpnext_enemy[1] = 0;
}
}
if (eval ("mapp.move4.wp" + i).hitTest(_root.marker3._x, _root.marker3._y, true) and (cpnext_enemy[2] == i)) {
anglestop_enemy[2] = false;
cpnext_enemy[2]++;
if (cpnext_enemy[2] == waypoints) {
cpnext_enemy[2] = 0;
}
}
if (eval ("mapp.move4.wp" + i).hitTest(_root.marker4._x, _root.marker4._y, true) and (cpnext_enemy[3] == i)) {
anglestop_enemy[3] = false;
cpnext_enemy[3]++;
if (cpnext_enemy[3] == waypoints) {
cpnext_enemy[3] = 0;
}
}
i++;
}
i = 1;
while (i <= checkpoints) {
if (eval ("mapp.move4.cpoint" + i).hitTest(_root.marker1._x, _root.marker1._y, true)) {
Set("cpoint" + i, 1);
}
i++;
}
if (mapp.move4.startline.hitTest(_root.marker1._x, _root.marker1._y, true)) {
somma = 0;
i = 1;
while (i <= checkpoints) {
somma = somma + eval ("cpoint" + i);
i++;
}
if (somma == checkpoints) {
makelap = true;
}
}
if (mapp.move4.startline2.hitTest(_root.marker1._x, _root.marker1._y, true) and ((makelap == true) or (lapsdone == "-1"))) {
lapsdone++;
lapsdone_txt = "LAP " + lapsdone;
i = 1;
while (i <= checkpoints) {
Set("cpoint" + i, 0);
i++;
}
if (lapsdone == 5) {
gotoAndPlay (34);
_root.money = _root.money + 25;
auratimer = 0;
}
_root.timing = false;
if (elapsedTime < bestlap) {
bestlap = elapsedTime;
bestlap_txt = timer;
}
makelap = false;
if (!_root.timing) {
_root.startTime = getTimer();
_root.timing = true;
}
}
if (mapp.move4.borderz.hitTest(_root.marker1._x, _root.marker1._y, true)) {
thud1.start(0, 0);
onborder = true;
speed1 = speed1 / 3;
pedal = false;
}
if (mapp.move4.startline.hitTest(_root.marker2._x, _root.marker2._y, true)) {
en_makelap[1] = true;
}
timer_en1 = "LAP " + en_lapsdone[1];
if (mapp.move4.startline2.hitTest(_root.marker2._x, _root.marker2._y, true) and ((en_makelap[1] == true) or (en_lapsdone[1] == "-1"))) {
en_lapsdone[1]++;
en_makelap[1] = false;
}
if (en_lapsdone[1] == 5) {
gotoAndPlay (31);
}
if (mapp.move4.startline.hitTest(_root.marker3._x, _root.marker3._y, true)) {
en_makelap2[1] = true;
}
timer_en1 = "LAP " + en_lapsdone2[1];
if (mapp.move4.startline2.hitTest(_root.marker3._x, _root.marker3._y, true) and ((en_makelap2[1] == true) or (en_lapsdone2[1] == "-1"))) {
en_lapsdone2[1]++;
en_makelap2[1] = false;
}
if (en_lapsdone2[1] == 5) {
gotoAndPlay (32);
}
if (mapp.move4.startline.hitTest(_root.marker4._x, _root.marker4._y, true)) {
en_makelap3[1] = true;
}
timer_en1 = "LAP " + en_lapsdone3[1];
if (mapp.move4.startline2.hitTest(_root.marker4._x, _root.marker4._y, true) and ((en_makelap3[1] == true) or (en_lapsdone3[1] == "-1"))) {
en_lapsdone3[1]++;
en_makelap3[1] = false;
}
if (en_lapsdone3[1] == 5) {
gotoAndPlay (32);
}
if (mapp.move4.path4.hitTest(_root.marker1._x, _root.marker1._y, true)) {
scritta._visible = false;
dirting = false;
scena4.future._y = 255;
} else {
scena4.smok1._visible = true;
scritta._visible = true;
if (temp == 0) {
scena4.future._y = scena4.future._y + 1;
temp++;
} else {
scena4.future._y = scena4.future._y - 1;
temp--;
}
if (dirting == false) {
dirt1.start(0, 0);
}
dirting = true;
speed1 = speed1 * 0.9;
}
_root.cosness = (_root.speed1 * Math.cos((_root.rotaz1 * Math.PI) / 180)) / 2;
_root.sinness = (_root.speed1 * Math.sin((_root.rotaz1 * Math.PI) / 180)) / 2;
speed1_d = int(speed1 * 3);
shotspeedx = Math.sin(mapp.move4.newshothit._rotation * (Math.PI/180)) * 2;
shotspeedy = Math.cos(mapp.move4.newshothit._rotation * (Math.PI/180)) * 2;
mapp.move4.newshothit._x = mapp.move4.newshothit._x + (shotspeedx * shotspeed);
mapp.move4.newshothit._y = mapp.move4.newshothit._y - (shotspeedy * shotspeed);
mapp.move4.newshothit.onEnterFrame = function () {
scena4.energyball._visible = true;
scena4.enemy1.car1hit.gotoAndStop(5);
scena4.enemy2.car2hit.gotoAndStop(5);
scena4.enemy3.car3hit.gotoAndStop(5);
if (mapp.move4.newshothit.hitTest(_root.marker2._x, _root.marker2._y, true)) {
scena4.enemy1.car1hit.gotoAndPlay(1);
scena4.energyball.gotoAndPlay(2);
mapp.move4.newshothit.removeMovieClip();
en_speed[1] = 0.7;
_root.money = _root.money + 2;
}
if (mapp.move4.newshothit.hitTest(_root.marker3._x, _root.marker3._y, true)) {
scena4.enemy2.car2hit.gotoAndPlay(1);
scena4.energyball.gotoAndPlay(2);
mapp.move4.newshothit.removeMovieClip();
en_speed[2] = 0.7;
_root.money = _root.money + 2;
}
if (mapp.move4.newshothit.hitTest(_root.marker4._x, _root.marker4._y, true)) {
scena4.enemy3.car3hit.gotoAndPlay(1);
scena4.energyball.gotoAndPlay(2);
mapp.move4.newshothit.removeMovieClip();
en_speed[3] = 0.7;
_root.money = _root.money + 2;
}
if (mapp.move4.newshothit.hitTest(mapp.move4.stopper1)) {
scena4.energyball.gotoAndStop(7);
mapp.move4.newshothit.removeMovieClip();
}
if (mapp.move4.newshothit.hitTest(mapp.move4.stopper2)) {
scena4.energyball.gotoAndStop(7);
mapp.move4.newshothit.removeMovieClip();
}
if (mapp.move4.newshothit.hitTest(mapp.move4.stopper3)) {
scena4.energyball.gotoAndStop(7);
mapp.move4.newshothit.removeMovieClip();
}
if (mapp.move4.newshothit.hitTest(mapp.move4.stopper4)) {
scena4.energyball.gotoAndStop(7);
mapp.move4.newshothit.removeMovieClip();
}
};
mapp.move4.newauracharge.onEnterFrame = function () {
if (mapp.move4.newauracharge.hitTest(_root.marker2._x, _root.marker2._y, true)) {
en_speed[1] = 1.1;
scena4.enemy1.car1hit.gotoAndPlay(1);
_root.auratimer = _root.auratimer - 1;
}
if (mapp.move4.newauracharge.hitTest(_root.marker3._x, _root.marker3._y, true)) {
en_speed[2] = 1.1;
scena4.enemy2.car2hit.gotoAndPlay(1);
_root.auratimer = _root.auratimer - 1;
}
if (mapp.move4.newauracharge.hitTest(_root.marker4._x, _root.marker4._y, true)) {
en_speed[3] = 1.1;
scena4.enemy3.car3hit.gotoAndPlay(1);
_root.auratimer = _root.auratimer - 1;
}
if (auratimer <= 0) {
auratimer = 0;
mapp.move4.newauracharge.removeMovieClip();
scena4.aurablast_mc.gotoAndStop(8);
}
};
mouseListener.onMouseDown = function () {
if (weakblaster >= 1) {
if (blasteractive == true) {
shot.start();
duplicateMovieClip (mapp.move4.shothit, "newshothit", i);
scena4.energyball.gotoAndStop(1);
(mapp.move4.newshothit._x = mapp.move4.fov._x);
(mapp.move4.newshothit._y = mapp.move4.fov._y);
_root.weakblaster = _root.weakblaster - 1;
}
}
if (aura >= 1) {
if (auraactive == true) {
auratimer = 20;
aurasound.start();
duplicateMovieClip (mapp.move4.auracharge, "newauracharge", i);
scena4.aurablast_mc.gotoAndPlay(1);
(mapp.move4.newauracharge._x = mapp.move4.fov._x);
(mapp.move4.newauracharge._y = mapp.move4.fov._y);
_root.aura = _root.aura - 1;
}
}
if (bomb >= 1) {
if (bombactive == true) {
bombsound.start();
scena4.gravbomb.gotoAndPlay(1);
en_speed[1] = 0.5;
en_speed[2] = 0.5;
en_speed[3] = 0.5;
_root.bomb = _root.bomb - 1;
}
}
};
mouseListener.onMouseUp = function () {
shotspeed = 10;
};
if (mapp.move4.newshothit.hitTest(_root.marker2._x, _root.marker2._y, true)) {
en_speed[1] = 2;
_root.money = _root.money + 1;
}
if (mapp.move4.newshothit.hitTest(_root.marker3._x, _root.marker3._y, true)) {
en_speed[2] = 2;
_root.money = _root.money + 1;
}
if (mapp.move4.newshothit.hitTest(_root.marker4._x, _root.marker4._y, true)) {
en_speed[3] = 2;
_root.money = _root.money + 1;
}
if (mapp.move4.newauracharge.hitTest(_root.marker2._x, _root.marker2._y, true)) {
en_speed[1] = 0;
_root.money = _root.money + 1;
}
if (mapp.move4.newauracharge.hitTest(_root.marker3._x, _root.marker3._y, true)) {
en_speed[2] = 0;
_root.money = _root.money + 1;
}
if (mapp.move4.newauracharge.hitTest(_root.marker4._x, _root.marker4._y, true)) {
en_speed[3] = 0;
_root.money = _root.money + 1;
}
if (timing) {
elapsedTime = getTimer() - startTime;
elapsedHours = Math.floor(elapsedTime / 3600000);
remaining = elapsedTime - (elapsedHours * 3600000);
elapsedM = Math.floor(remaining / 60000);
remaining = remaining - (elapsedM * 60000);
elapsedS = Math.floor(remaining / 1000);
remaining = remaining - (elapsedS * 1000);
elapsedH = Math.floor(remaining / 10);
if (elapsedM < 10) {
minutes = "0" + elapsedM.toString();
} else {
minutes = elapsedM.toString();
}
if (elapsedS < 10) {
seconds = "0" + elapsedS.toString();
} else {
seconds = elapsedS.toString();
}
if (elapsedH < 10) {
hundredths = "0" + elapsedH.toString();
} else {
hundredths = elapsedH.toString();
}
_root.timer = (((minutes + ":") + seconds) + ":") + hundredths;
}
};
_root.onEnterFrame = main_loop;
Instance of Symbol 360 MovieClip "engine" in Frame 29
onClipEvent (load) {
minfinish = false;
_root.acc = new Sound();
_root.acc.attachSound("acc");
_root.dec = new Sound();
_root.dec.attachSound("dec");
_root.dec.onSoundComplete = function () {
_root.minimo.start(0, 500);
minfinish = true;
};
_root.minimo = new Sound();
_root.minimo.attachSound("minimo");
_root.massimo = new Sound();
_root.massimo.attachSound("massimo");
_root.massimo.onSoundComplete = function () {
_root.massimo.start(1, 0);
};
_root.acc.onSoundComplete = function () {
_root.massimo.start(1, 0);
};
_root.minimo.start(50, 500);
_root.accvar = 0;
stato = "min";
}
onClipEvent (enterFrame) {
if ((_root.pedal == 1) and (stato != "acc")) {
if (stato == "min") {
_root.accvar = 0;
}
if (stato == "dec") {
_root.accvar = (_root.dec.duration - _root.dec.position) / 2000;
}
stato = "acc";
_root.minimo.stop();
_root.acc.start(_root.accvar, 0);
}
if ((_root.pedal != 1) and (stato != "dec")) {
_root.accvar = (_root.acc.duration - _root.acc.position) / 2000;
stato = "dec";
_root.minimo.stop();
_root.acc.stop();
_root.dec.start(_root.accvar, 0);
}
}
Instance of Symbol 367 MovieClip "marker1" in Frame 29
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move4.fov._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move4.fov._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Instance of Symbol 369 MovieClip "marker2" in Frame 29
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move4.enemy1._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move4.enemy1._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Instance of Symbol 371 MovieClip "marker3" in Frame 29
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move4.enemy2._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move4.enemy2._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Instance of Symbol 238 MovieClip [track04] "mapp" in Frame 29
onClipEvent (load) {
_yscale = 7;
_xscale = 7;
}
Instance of Symbol 388 MovieClip "marker4" in Frame 29
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move4.enemy3._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move4.enemy3._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Instance of Symbol 388 MovieClip "marker4" in Frame 29
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move4.enemy3._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move4.enemy3._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Frame 31
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
dirting = true;
Mouse.removeListener(mouseListener);
stopAllSounds();
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path4");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move4");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena4");
unloadMovie ("track04");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path4");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move4");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 32
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
dirting = true;
Mouse.removeListener(mouseListener);
stopAllSounds();
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path4");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move4");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena4");
unloadMovie ("track04");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path4");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move4");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 33
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
dirting = true;
Mouse.removeListener(mouseListener);
stopAllSounds();
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path4");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move4");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena4");
unloadMovie ("track04");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path4");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move4");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 34
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
dirting = true;
Mouse.removeListener(mouseListener);
menu.start();
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path4");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move4");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena4");
unloadMovie ("track04");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path4");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move4");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 35
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
Mouse.removeListener(mouseListener);
var rocket = false;
var mouseListener = new Object();
mouseListener.onMouseDown = function () {
if (rocket == true) {
r.lineStyle(7, 16711680, 85, false, "normal", "oval", "miter");
r.moveTo(200, 250);
r.lineTo(_xmouse, _ymouse);
shot.start();
} else if (rocket == false) {
r.lineStyle(7, 16776960, 85, false, "normal", "oval", "miter");
r.moveTo(200, 250);
r.lineTo(_xmouse, _ymouse);
shot.start();
}
};
mouseListener.onMouseUp = function () {
r.lineStyle(7, 0, 45, false, "normal", "square", "miter");
r.moveTo(280, 300);
r.lineTo(_xmouse, _ymouse);
r.clear(0.5);
};
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path4");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move4");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena4");
unloadMovie ("track04");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path4");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move4");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 36
Mouse.show();
stop();
_quality = "LOW";
var shot = new Sound();
shot.attachSound("lasershoot");
thud1 = new Sound();
thud1.attachSound("thud1");
dirt1 = new Sound();
dirt1.attachSound("rockslide");
dirt1.onSoundComplete = function () {
dirting = false;
};
dirting = false;
flen = 20;
clip_dist = 1000;
pedal = false;
speed1 = 0;
degree1 = 0;
rotspeed1 = 30;
maxspeed1 = 35;
accel1 = 0.003;
brake1 = 0.95;
damp1 = 0.97;
lapsdone = -1;
lapsdone_txt = "START";
bestlap = 1E20;
bestlap_txt = "";
sterstate = 0;
temp = 0;
rotation = 0;
speed = 0;
rotaz1 = -90;
initx = 385;
inity = -80;
checkpoints = 4;
cpoint1 = 0;
cpoint2 = 0;
cpoint3 = 0;
cpoint4 = 0;
waypoints = 28;
var timing = false;
var paused = false;
var remaining;
var elapsedTime;
var elapsedHours;
var elapsedM;
var elapsedS;
var elapsedH;
var startTime;
var remaining;
var hours;
var minutes;
var seconds;
var hundredths;
mapp.move5.gotoAndStop(2);
mapp.move5.fov._x = 45;
mapp.move5.fov._y = -250;
_root.createEmptyMovieClip("scena5", 1);
scena5._x = 0;
scena5._y = 0;
_root.stripes = 85;
i = 1;
while (i <= _root.stripes) {
slice = scena5.attachMovie("track05", "t1" + i, i);
slice.swapDepths(scena5.future);
slice._x = 200;
slice._y = 300;
ratio = i / stripes;
slice._yscale = (slice._xscale = (i * 15) * ratio);
mask = attachMovie("mask", "mask" + i, scena5.getNextHighestDepth());
mask._height = (i * ratio) * 2.5;
mask._x = -80;
mask._y = 150 + ((i * ratio) * 2.5);
var r = createEmptyMovieClip("laser", 4);
mask.swapDepths(marker1);
mask.swapDepths(marker2);
mask.swapDepths(marker3);
mask.swapDepths(scritta);
mask.swapDepths(mapp);
mask.swapDepths(credits);
mask.swapDepths(cursor_mc);
slice.setMask(mask);
i++;
}
scena5.attachMovie("future", "future", scena5.getNextHighestDepth());
scena5.future._x = 200;
scena5.future._y = 240;
scena5.future.gotoAndPlay(15);
scena5.attachMovie("smok1", "smok1", scena5.getNextHighestDepth());
scena5.smok1._x = scena5.future._x;
scena5.smok1._xscale = (scena5.smok1._yscale = 200);
scena5.smok1._y = 285;
scena5.attachMovie("boostage", "boostage", scena5.getNextHighestDepth());
scena5.boostage._x = 200;
scena5.boostage._y = 260;
scena5.attachMovie("gravbomb", "gravbomb", scena5.getNextHighestDepth());
scena5.gravbomb._x = 205;
scena5.gravbomb._y = 160;
scena5.gravbomb._xscale = (scena5.gravbomb._yscale = 70);
scena5.gravbomb.gotoAndStop(12);
Mouse.addListener(mouseListener);
scena5.boostage.gotoAndStop(10);
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (Key.getAscii() == 49) {
if (blasteractive == false) {
auratimer = 0;
blasteractive = true;
auraactive = false;
bombactive = false;
}
}
if (Key.getAscii() == 50) {
if (auraactive == false) {
blasteractive = false;
auraactive = true;
bombactive = false;
}
}
if (Key.getAscii() == 51) {
if (bombactive == false) {
auratimer = 0;
blasteractive = false;
auraactive = false;
bombactive = true;
}
}
if (Key.getAscii() == 32) {
if (booster >= 1) {
scena5.boostage.gotoAndPlay(1);
}
}
};
Key.addListener(keyListener);
numtrees = 11;
numenergy = 1;
numaura = 1;
i = 1;
while (i <= numtrees) {
scena5.attachMovie("tree", "tree" + i, scena5.getNextHighestDepth());
i++;
}
i = 1;
while (i <= numenergy) {
scena5.attachMovie("energyball", "energyball", scena5.getNextHighestDepth());
scena5.energyball._x = 2000;
i++;
}
i = 1;
while (i <= numaura) {
scena5.attachMovie("aurablast_mc", "aurablast_mc", scena5.getNextHighestDepth());
scena5.aurablast_mc._x = 2000;
i++;
}
numenemies = 3;
cp_enemy = new Array();
cpnext_enemy = new Array();
speed_enemy = new Array();
anglestop_enemy = new Array();
oldangle_enemy = new Array();
en_speed = new Array();
en_maxspeed = new Array();
en_accel = new Array();
en_brake = new Array();
en_damp = new Array();
en_makelap = new Array();
en_timer = new Array();
en_lapsdone = new Array();
en_makelap2 = new Array();
en_lapsdone2 = new Array();
en_makelap3 = new Array();
en_lapsdone3 = new Array();
i = 1;
while (i <= numenemies) {
cp_enemy[i] = 0;
cpnext_enemy[i] = 0;
speed_enemy[i] = 0;
oldangle_enemy[i] = 0;
anglestop_enemy[i] = false;
en_speed[i] = 0;
en_maxspeed[i] = 7;
en_accel[i] = 0.005;
en_brake[i] = 0.95;
en_damp[i] = 0.96;
en_makelap[i] = false;
en_lapsdone[i] = -1;
en_timing[i] = false;
en_makelap2[i] = false;
en_lapsdone2[i] = -1;
en_makelap3[i] = false;
en_lapsdone3[i] = -1;
scena5.attachMovie("opp" + i, "enemy" + i, scena5.getNextHighestDepth());
i++;
}
i = 1;
while (i <= _root.stripes) {
eval ("scena5.t1" + i)._rotation = _root.rotaz1;
eval ("scena5.t1" + i).move5._y = initx;
eval ("scena5.t1" + i).move5._x = inity;
i++;
}
scritta._visible = false;
_root.onLoad = initialize;
main_loop = function () {
pedal = false;
steer = 0;
onborder = false;
gunsteer = 0;
if (Key.isDown(87)) {
speed1 = speed1 + (((maxspeed1 - speed1) + 1) * accel1);
pedal = 1;
if ((speed1 > 0) and (speed1 < 5)) {
_root.scena5.smok1._visible = true;
} else {
_root.scena5.smok1._visible = false;
}
} else {
_root.scena5.smok1._visible = false;
}
if (Key.isDown(83)) {
if (speed1 <= 0) {
speed1 = speed1 - (((maxspeed1 / 3) + speed1) * accel1);
} else {
speed1 = speed1 * brake1;
}
pedal = 2;
}
if (pedal == false) {
if (Math.abs(speed1) > 0.1) {
speed1 = speed1 * damp1;
} else {
speed1 = 0;
}
}
if (Key.isDown(68)) {
_root.rotaz1 = _root.rotaz1 - 5;
steer = 1;
gunsteer = 1;
_root.scena5.future.nextFrame();
}
if (Key.isDown(65)) {
_root.rotaz1 = _root.rotaz1 + 5;
steer = 2;
gunsteer = 2;
_root.scena5.future.prevFrame();
}
if (steer == 0) {
if (_root.scena5.future._currentframe >= 16) {
_root.scena5.future.prevFrame();
}
if (_root.scena5.future._currentframe <= 14) {
_root.scena5.future.nextFrame();
}
}
scena5.future.swapDepths(10100);
scena5.smok1.swapDepths(10101);
scena5.energyball.swapDepths(10099);
scena5.aurablast_mc.swapDepths(10109);
scena5.boostage.swapDepths(10110);
scena5.gravbomb.swapDepths(10111);
if (rotaz1 > 180) {
rotaz1 = -180 + (rotaz1 - 180);
}
if (rotaz1 < -180) {
rotaz1 = 180 + (rotaz1 + 180);
}
mapp.move5.fov._rotation = (-_root.rotaz1) - 90;
mapp.move5.fov._x = mapp.move5.fov._x - (_root.sinness / 2);
mapp.move5.fov._y = mapp.move5.fov._y - (_root.cosness / 2);
mapp.move5.newshothit._rotation = (-_root.rotaz1) + 0;
mapp.move5.newshothit._x = mapp.move5.newshothit._x + (_root.sinness / 2);
mapp.move5.newshothit._y = mapp.move5.newshothit._y + (_root.cosness / 2);
mapp.move5.newauracharge._rotation = (-_root.rotaz1) + 90;
mapp.move5.newauracharge._x = mapp.move5.newauracharge._x - (_root.sinness / 2);
mapp.move5.newauracharge._y = mapp.move5.newauracharge._y - (_root.cosness / 2);
i = 1;
while (i <= _root.stripes) {
eval ("scena5.t1" + i)._rotation = _root.rotaz1;
eval ("scena5.t1" + i).move5._x = (-mapp.move5.fov._x) * 1.78;
eval ("scena5.t1" + i).move5._y = (-mapp.move5.fov._y) * 1.94;
i++;
}
i = 1;
while (i <= numtrees) {
dx = eval ("mapp.move5.mtree" + i)._x - mapp.move5.fov._x;
dy = eval ("mapp.move5.mtree" + i)._y - mapp.move5.fov._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
ang1 = rotaz1;
ang2 = -(((Math.atan2(dy, dx) * 180) / Math.PI) + 90);
angle = (-ang2) + ang1;
if (angle > 180) {
angle = angle - 360;
}
angle = (angle * Math.PI) / 180;
dist_side = dist * Math.sin(angle);
dist_depth = dist * Math.cos(angle);
scaleRatio = flen / (flen + dist_depth);
eval ("scena5.tree" + i)._x = scena5.future._x + ((dist_side * scaleRatio) * 10);
eval ("scena5.tree" + i)._y = 147 + (scaleRatio * 95);
eval ("scena5.tree" + i)._xscale = (eval ("scena5.tree" + i)._yscale = 100 * scaleRatio);
eval ("scena5.tree" + i).swapDepths(10000 + Math.floor(eval ("scena5.tree" + i)._xscale));
if ((dist_depth < -20) or (dist_depth > clip_dist)) {
eval ("scena5.tree" + i)._visible = false;
} else {
eval ("scena5.tree" + i)._visible = true;
}
i++;
}
i = 1;
while (i <= numenergy) {
ex = mapp.move5.newshothit._x - mapp.move5.fov._x;
ey = mapp.move5.newshothit._y - mapp.move5.fov._y;
edist = Math.sqrt((ex * ex) + (ey * ey));
ang1 = rotaz1;
ang2 = -(((Math.atan2(ey, ex) * 180) / Math.PI) + 90);
angle = (-ang2) + ang1;
if (angle > 180) {
angle = angle - 360;
}
angle = (angle * Math.PI) / 180;
edist_side = edist * Math.sin(angle);
edist_depth = edist * Math.cos(angle);
scaleRatio = flen / (flen + edist_depth);
scena5.energyball._x = scena5.future._x + ((edist_side * scaleRatio) * 10);
scena5.energyball._y = 147 + (scaleRatio * 95);
scena5.energyball._xscale = (scena5.energyball._yscale = 100 * scaleRatio);
scena5.energyball.swapDepths(1000 + Math.floor(scena5.energyball._xscale));
if ((edist_depth < -20) or (edist_depth > clip_dist)) {
scena5.energyball._visible = false;
} else {
scena5.energyball._visible = true;
}
i++;
}
i = 1;
while (i <= numaura) {
ax = mapp.move5.newauracharge._x - mapp.move5.fov._x;
ay = mapp.move5.newauracharge._y - mapp.move5.fov._y;
adist = Math.sqrt((ax * ax) + (ay * ay));
ang1 = rotaz1;
ang2 = -(((Math.atan2(ay, ax) * 180) / Math.PI) + 90);
angle = (-ang2) + ang1;
if (angle > 180) {
angle = angle - 360;
}
angle = (angle * Math.PI) / 180;
adist_side = adist * Math.sin(angle);
adist_depth = adist * Math.cos(angle);
scaleRatio = flen / (flen + adist_depth);
scena5.aurablast_mc._x = scena5.future._x + ((adist_side * scaleRatio) * 10);
scena5.aurablast_mc._y = 147 + (scaleRatio * 95);
scena5.aurablast_mc._xscale = (scena5.aurablast_mc._yscale = 100 * scaleRatio);
scena5.aurablast_mc.swapDepths(1000 + Math.floor(scena5.aurablast_mc._xscale));
if ((adist_depth < -20) or (adist_depth > clip_dist)) {
scena5.aurablast_mc._visible = false;
} else {
scena5.aurablast_mc._visible = true;
}
i++;
}
i = 1;
while (i <= numenemies) {
nextwp = cpnext_enemy[i];
dx = (-eval ("mapp.move5.enemy" + i)._x) + eval ("mapp.move5.wp" + nextwp)._x;
dy = (-eval ("mapp.move5.enemy" + i)._y) + eval ("mapp.move5.wp" + nextwp)._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
k = nextwp + 1;
if (nextwp == (waypoints - 1)) {
k = 0;
}
dx2 = (-eval ("mapp.move5.enemy" + i)._x) + eval ("mapp.move5.wp" + k)._x;
dy2 = (-eval ("mapp.move5.enemy" + i)._y) + eval ("mapp.move5.wp" + k)._y;
nextdist = Math.sqrt((dx2 * dx2) + (dy2 * dy2));
fortuna = Math.random() * 100;
if (((Math.abs(nextdist - dist) < 150) and (dist < 100)) and (fortuna > 80)) {
if (Math.abs(en_speed[i]) > 0.1) {
en_speed[i] = en_speed[i] * en_damp[i];
} else {
en_speed[i] = 0;
}
} else {
en_speed[i] = en_speed[i] + (((en_maxspeed[i] - en_speed[i]) + 1) * en_accel[i]);
}
if (anglestop_enemy[i] == false) {
direzione = (Math.atan2(dy, dx) * 180) / Math.PI;
testdir = direzione + 90;
if (testdir < 0) {
testdir = testdir + 360;
}
oldrot = eval ("mapp.move5.enemy" + i)._rotation;
if (oldrot < 0) {
oldrot = oldrot + 360;
}
sterzata = testdir - oldrot;
if (sterzata < -180) {
sterzata = sterzata + 360;
}
if (sterzata > 180) {
sterzata = sterzata - 360;
}
junkvar = false;
max = 10;
if (direzione < 0) {
direzione = direzione + 360;
}
if ((sterzata >= (-max)) and (sterzata <= max)) {
anglestop_enemy[i] = direzione;
} else {
junkvar = true;
if (sterzata > max) {
anglestop_enemy[i] = (eval ("mapp.move5.enemy" + i)._rotation - 90) + max;
sterzata = max;
}
if (sterzata < (-max)) {
anglestop_enemy[i] = (eval ("mapp.move5.enemy" + i)._rotation - 90) - max;
sterzata = -max;
}
}
}
ang = anglestop_enemy[i];
eval ("mapp.move5.enemy" + i)._rotation = ang + 90;
ang = (-ang) + 90;
movx = en_speed[i] * Math.sin((ang * Math.PI) / 180);
movy = en_speed[i] * Math.cos((ang * Math.PI) / 180);
eval ("mapp.move5.enemy" + i)._x = eval ("mapp.move5.enemy" + i)._x + movx;
eval ("mapp.move5.enemy" + i)._y = eval ("mapp.move5.enemy" + i)._y + movy;
if (junkvar == true) {
anglestop_enemy[i] = false;
}
dx = eval ("mapp.move5.enemy" + i)._x - mapp.move5.fov._x;
dy = eval ("mapp.move5.enemy" + i)._y - mapp.move5.fov._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
ang1 = rotaz1;
ang2 = -(((Math.atan2(dy, dx) * 180) / Math.PI) + 90);
angle = (-ang2) + ang1;
if (angle > 180) {
angle = angle - 360;
}
rotdiff = rotaz1 + eval ("mapp.move5.enemy" + i)._rotation;
if (rotdiff > 360) {
rotdiff = rotdiff - 360;
} else if (rotdiff < 0) {
rotdiff = rotdiff + 360;
}
if ((rotdiff <= 15) and (rotdiff <= 345)) {
eval ("scena5.enemy" + i).inner.gotoAndStop(1);
}
if ((rotdiff > 15) and (rotdiff <= 45)) {
eval ("scena5.enemy" + i).inner.gotoAndStop(12);
}
if ((rotdiff > 45) and (rotdiff <= 75)) {
eval ("scena5.enemy" + i).inner.gotoAndStop(11);
}
if ((rotdiff > 75) and (rotdiff <= 105)) {
eval ("scena5.enemy" + i).inner.gotoAndStop(10);
}
if ((rotdiff > 105) and (rotdiff <= 135)) {
eval ("scena5.enemy" + i).inner.gotoAndStop(9);
}
if ((rotdiff > 135) and (rotdiff <= 165)) {
eval ("scena5.enemy" + i).inner.gotoAndStop(8);
}
if ((rotdiff > 165) and (rotdiff <= 195)) {
eval ("scena5.enemy" + i).inner.gotoAndStop(7);
}
if ((rotdiff > 195) and (rotdiff <= 225)) {
eval ("scena5.enemy" + i).inner.gotoAndStop(6);
}
if ((rotdiff > 225) and (rotdiff <= 255)) {
eval ("scena5.enemy" + i).inner.gotoAndStop(5);
}
if ((rotdiff > 255) and (rotdiff <= 285)) {
eval ("scena5.enemy" + i).inner.gotoAndStop(4);
}
if ((rotdiff > 285) and (rotdiff <= 315)) {
eval ("scena5.enemy" + i).inner.gotoAndStop(3);
}
if ((rotdiff > 315) and (rotdiff <= 345)) {
eval ("scena5.enemy" + i).inner.gotoAndStop(2);
}
angle = (angle * Math.PI) / 180;
dist_side = dist * Math.sin(angle);
dist_depth = dist * Math.cos(angle);
scaleRatio = flen / (flen + dist_depth);
eval ("scena5.enemy" + i)._x = scena5.future._x + ((dist_side * scaleRatio) * 8.1);
eval ("scena5.enemy" + i)._y = 145 + (scaleRatio * 97);
eval ("scena5.enemy" + i)._xscale = (eval ("scena5.enemy" + i)._yscale = 100 * scaleRatio);
eval ("scena5.enemy" + i).swapDepths(10000 + Math.floor(eval ("scena5.enemy" + i)._xscale));
if ((dist_depth < -20) or (dist_depth > clip_dist)) {
eval ("scena5.enemy" + i)._visible = false;
} else {
eval ("scena5.enemy" + i)._visible = true;
}
i++;
}
i = 0;
while (i <= waypoints) {
if (eval ("mapp.move5.wp" + i).hitTest(_root.marker2._x, _root.marker2._y, true) and (cpnext_enemy[1] == i)) {
anglestop_enemy[1] = false;
cpnext_enemy[1]++;
if (cpnext_enemy[1] == waypoints) {
cpnext_enemy[1] = 0;
}
}
if (eval ("mapp.move5.wp" + i).hitTest(_root.marker3._x, _root.marker3._y, true) and (cpnext_enemy[2] == i)) {
anglestop_enemy[2] = false;
cpnext_enemy[2]++;
if (cpnext_enemy[2] == waypoints) {
cpnext_enemy[2] = 0;
}
}
if (eval ("mapp.move5.wp" + i).hitTest(_root.marker4._x, _root.marker4._y, true) and (cpnext_enemy[3] == i)) {
anglestop_enemy[3] = false;
cpnext_enemy[3]++;
if (cpnext_enemy[3] == waypoints) {
cpnext_enemy[3] = 0;
}
}
i++;
}
i = 1;
while (i <= checkpoints) {
if (eval ("mapp.move5.cpoint" + i).hitTest(_root.marker1._x, _root.marker1._y, true)) {
Set("cpoint" + i, 1);
}
i++;
}
if (mapp.move5.startline.hitTest(_root.marker1._x, _root.marker1._y, true)) {
somma = 0;
i = 1;
while (i <= checkpoints) {
somma = somma + eval ("cpoint" + i);
i++;
}
if (somma == checkpoints) {
makelap = true;
}
}
if (mapp.move5.startline2.hitTest(_root.marker1._x, _root.marker1._y, true) and ((makelap == true) or (lapsdone == "-1"))) {
lapsdone++;
lapsdone_txt = "LAP " + lapsdone;
i = 1;
while (i <= checkpoints) {
Set("cpoint" + i, 0);
i++;
}
if (lapsdone == 5) {
gotoAndPlay (41);
auratimer = 0;
}
_root.timing = false;
if (elapsedTime < bestlap) {
bestlap = elapsedTime;
bestlap_txt = timer;
}
makelap = false;
if (!_root.timing) {
_root.startTime = getTimer();
_root.timing = true;
}
}
if (mapp.move5.borderz.hitTest(_root.marker1._x, _root.marker1._y, true)) {
thud1.start(0, 0);
onborder = true;
speed1 = speed1 / 3;
pedal = false;
}
if (mapp.move5.startline.hitTest(_root.marker2._x, _root.marker2._y, true)) {
en_makelap[1] = true;
}
timer_en1 = "LAP " + en_lapsdone[1];
if (mapp.move5.startline2.hitTest(_root.marker2._x, _root.marker2._y, true) and ((en_makelap[1] == true) or (en_lapsdone[1] == "-1"))) {
en_lapsdone[1]++;
en_makelap[1] = false;
}
if (en_lapsdone[1] == 5) {
gotoAndPlay (35);
}
if (mapp.move5.startline.hitTest(_root.marker3._x, _root.marker3._y, true)) {
en_makelap2[1] = true;
}
timer_en1 = "LAP " + en_lapsdone2[1];
if (mapp.move5.startline2.hitTest(_root.marker3._x, _root.marker3._y, true) and ((en_makelap2[1] == true) or (en_lapsdone2[1] == "-1"))) {
en_lapsdone2[1]++;
en_makelap2[1] = false;
}
if (en_lapsdone2[1] == 5) {
gotoAndPlay (35);
}
if (mapp.move5.startline.hitTest(_root.marker4._x, _root.marker4._y, true)) {
en_makelap3[1] = true;
}
timer_en1 = "LAP " + en_lapsdone3[1];
if (mapp.move5.startline2.hitTest(_root.marker4._x, _root.marker4._y, true) and ((en_makelap3[1] == true) or (en_lapsdone3[1] == "-1"))) {
en_lapsdone3[1]++;
en_makelap3[1] = false;
}
if (en_lapsdone3[1] == 5) {
gotoAndPlay (35);
}
if (mapp.move5.path5.hitTest(_root.marker1._x, _root.marker1._y, true)) {
scritta._visible = false;
dirting = false;
scena5.future._y = 255;
} else {
scena5.smok1._visible = true;
scritta._visible = true;
if (temp == 0) {
scena5.future._y = scena5.future._y + 1;
temp++;
} else {
scena5.future._y = scena5.future._y - 1;
temp--;
}
if (dirting == false) {
dirt1.start(0, 0);
}
dirting = true;
speed1 = speed1 * 0.9;
}
_root.cosness = (_root.speed1 * Math.cos((_root.rotaz1 * Math.PI) / 180)) / 2;
_root.sinness = (_root.speed1 * Math.sin((_root.rotaz1 * Math.PI) / 180)) / 2;
speed1_d = int(speed1 * 3);
shotspeedx = Math.sin(mapp.move5.newshothit._rotation * (Math.PI/180)) * 2;
shotspeedy = Math.cos(mapp.move5.newshothit._rotation * (Math.PI/180)) * 2;
mapp.move5.newshothit._x = mapp.move5.newshothit._x + (shotspeedx * shotspeed);
mapp.move5.newshothit._y = mapp.move5.newshothit._y - (shotspeedy * shotspeed);
mapp.move5.newshothit.onEnterFrame = function () {
scena5.energyball._visible = true;
scena5.enemy1.car1hit.gotoAndStop(5);
scena5.enemy2.car2hit.gotoAndStop(5);
scena5.enemy3.car3hit.gotoAndStop(5);
if (mapp.move5.newshothit.hitTest(_root.marker2._x, _root.marker2._y, true)) {
scena5.enemy1.car1hit.gotoAndPlay(1);
scena5.energyball.gotoAndPlay(2);
mapp.move5.newshothit.removeMovieClip();
en_speed[1] = 0.7;
_root.money = _root.money + 2;
}
if (mapp.move5.newshothit.hitTest(_root.marker3._x, _root.marker3._y, true)) {
scena5.enemy2.car2hit.gotoAndPlay(1);
scena5.energyball.gotoAndPlay(2);
mapp.move5.newshothit.removeMovieClip();
en_speed[2] = 0.7;
_root.money = _root.money + 2;
}
if (mapp.move5.newshothit.hitTest(_root.marker4._x, _root.marker4._y, true)) {
scena5.enemy3.car3hit.gotoAndPlay(1);
scena5.energyball.gotoAndPlay(2);
mapp.move5.newshothit.removeMovieClip();
en_speed[3] = 0.7;
_root.money = _root.money + 2;
}
if (mapp.move5.newshothit.hitTest(mapp.move5.stopper1)) {
scena5.energyball.gotoAndStop(7);
mapp.move5.newshothit.removeMovieClip();
}
if (mapp.move5.newshothit.hitTest(mapp.move5.stopper2)) {
scena5.energyball.gotoAndStop(7);
mapp.move5.newshothit.removeMovieClip();
}
if (mapp.move5.newshothit.hitTest(mapp.move5.stopper3)) {
scena5.energyball.gotoAndStop(7);
mapp.move5.newshothit.removeMovieClip();
}
if (mapp.move5.newshothit.hitTest(mapp.move5.stopper4)) {
scena5.energyball.gotoAndStop(7);
mapp.move5.newshothit.removeMovieClip();
}
};
mapp.move5.newauracharge.onEnterFrame = function () {
if (mapp.move5.newauracharge.hitTest(_root.marker2._x, _root.marker2._y, true)) {
en_speed[1] = 1.1;
scena5.enemy1.car1hit.gotoAndPlay(1);
_root.auratimer = _root.auratimer - 1;
}
if (mapp.move5.newauracharge.hitTest(_root.marker3._x, _root.marker3._y, true)) {
en_speed[2] = 1.1;
scena5.enemy2.car2hit.gotoAndPlay(1);
_root.auratimer = _root.auratimer - 1;
}
if (mapp.move5.newauracharge.hitTest(_root.marker4._x, _root.marker4._y, true)) {
en_speed[3] = 1.1;
scena5.enemy3.car3hit.gotoAndPlay(1);
_root.auratimer = _root.auratimer - 1;
}
if (auratimer <= 0) {
auratimer = 0;
mapp.move5.newauracharge.removeMovieClip();
scena5.aurablast_mc.gotoAndStop(8);
}
};
mouseListener.onMouseDown = function () {
if (weakblaster >= 1) {
if (blasteractive == true) {
shot.start();
duplicateMovieClip (mapp.move5.shothit, "newshothit", i);
scena5.energyball.gotoAndStop(1);
(mapp.move5.newshothit._x = mapp.move5.fov._x);
(mapp.move5.newshothit._y = mapp.move5.fov._y);
_root.weakblaster = _root.weakblaster - 1;
}
}
if (aura >= 1) {
if (auraactive == true) {
auratimer = 20;
aurasound.start();
duplicateMovieClip (mapp.move5.auracharge, "newauracharge", i);
scena5.aurablast_mc.gotoAndPlay(1);
(mapp.move5.newauracharge._x = mapp.move5.fov._x);
(mapp.move5.newauracharge._y = mapp.move5.fov._y);
_root.aura = _root.aura - 1;
}
}
if (bomb >= 1) {
if (bombactive == true) {
bombsound.start();
scena5.gravbomb.gotoAndPlay(1);
en_speed[1] = 0.5;
en_speed[2] = 0.5;
en_speed[3] = 0.5;
_root.bomb = _root.bomb - 1;
}
}
};
mouseListener.onMouseUp = function () {
shotspeed = 10;
};
if (mapp.move5.newshothit.hitTest(_root.marker2._x, _root.marker2._y, true)) {
en_speed[1] = 2;
_root.money = _root.money + 1;
}
if (mapp.move5.newshothit.hitTest(_root.marker3._x, _root.marker3._y, true)) {
en_speed[2] = 2;
_root.money = _root.money + 1;
}
if (mapp.move5.newshothit.hitTest(_root.marker4._x, _root.marker4._y, true)) {
en_speed[3] = 2;
_root.money = _root.money + 1;
}
if (mapp.move5.newauracharge.hitTest(_root.marker2._x, _root.marker2._y, true)) {
en_speed[1] = 0;
_root.money = _root.money + 1;
}
if (mapp.move5.newauracharge.hitTest(_root.marker3._x, _root.marker3._y, true)) {
en_speed[2] = 0;
_root.money = _root.money + 1;
}
if (mapp.move5.newauracharge.hitTest(_root.marker4._x, _root.marker4._y, true)) {
en_speed[3] = 0;
_root.money = _root.money + 1;
}
if (timing) {
elapsedTime = getTimer() - startTime;
elapsedHours = Math.floor(elapsedTime / 3600000);
remaining = elapsedTime - (elapsedHours * 3600000);
elapsedM = Math.floor(remaining / 60000);
remaining = remaining - (elapsedM * 60000);
elapsedS = Math.floor(remaining / 1000);
remaining = remaining - (elapsedS * 1000);
elapsedH = Math.floor(remaining / 10);
if (elapsedM < 10) {
minutes = "0" + elapsedM.toString();
} else {
minutes = elapsedM.toString();
}
if (elapsedS < 10) {
seconds = "0" + elapsedS.toString();
} else {
seconds = elapsedS.toString();
}
if (elapsedH < 10) {
hundredths = "0" + elapsedH.toString();
} else {
hundredths = elapsedH.toString();
}
_root.timer = (((minutes + ":") + seconds) + ":") + hundredths;
}
};
_root.onEnterFrame = main_loop;
Instance of Symbol 360 MovieClip "engine" in Frame 36
onClipEvent (load) {
minfinish = false;
_root.acc = new Sound();
_root.acc.attachSound("acc");
_root.dec = new Sound();
_root.dec.attachSound("dec");
_root.dec.onSoundComplete = function () {
_root.minimo.start(0, 500);
minfinish = true;
};
_root.minimo = new Sound();
_root.minimo.attachSound("minimo");
_root.massimo = new Sound();
_root.massimo.attachSound("massimo");
_root.massimo.onSoundComplete = function () {
_root.massimo.start(1, 0);
};
_root.acc.onSoundComplete = function () {
_root.massimo.start(1, 0);
};
_root.minimo.start(50, 500);
_root.accvar = 0;
stato = "min";
}
onClipEvent (enterFrame) {
if ((_root.pedal == 1) and (stato != "acc")) {
if (stato == "min") {
_root.accvar = 0;
}
if (stato == "dec") {
_root.accvar = (_root.dec.duration - _root.dec.position) / 2000;
}
stato = "acc";
_root.minimo.stop();
_root.acc.start(_root.accvar, 0);
}
if ((_root.pedal != 1) and (stato != "dec")) {
_root.accvar = (_root.acc.duration - _root.acc.position) / 2000;
stato = "dec";
_root.minimo.stop();
_root.acc.stop();
_root.dec.start(_root.accvar, 0);
}
}
Instance of Symbol 367 MovieClip "marker1" in Frame 36
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move5.fov._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move5.fov._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Instance of Symbol 369 MovieClip "marker2" in Frame 36
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move5.enemy1._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move5.enemy1._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Instance of Symbol 371 MovieClip "marker3" in Frame 36
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move5.enemy2._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move5.enemy2._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Instance of Symbol 388 MovieClip "marker4" in Frame 36
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move5.enemy3._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move5.enemy3._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Instance of Symbol 388 MovieClip "marker4" in Frame 36
onClipEvent (enterFrame) {
_x = ((((_root.mapp.move5.enemy3._x / 100) * _root.mapp._xscale) * 1.78) + _root.mapp._x);
_y = ((((_root.mapp.move5.enemy3._y / 100) * _root.mapp._yscale) * 1.94) + _root.mapp._y);
}
Frame 38
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
dirting = true;
Mouse.removeListener(mouseListener);
stopAllSounds();
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path5");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move5");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena5");
unloadMovie ("track05");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path5");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move5");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 39
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
dirting = true;
Mouse.removeListener(mouseListener);
stopAllSounds();
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path5");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move5");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena5");
unloadMovie ("track05");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path5");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move5");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 40
Mouse.hide();
cursor_mc.onMouseMove = function () {
this._x = _xmouse;
this._y = _ymouse;
updateAfterEvent();
};
stop();
dirting = true;
Mouse.removeListener(mouseListener);
stopAllSounds();
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path5");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move5");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena5");
unloadMovie ("track05");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path5");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move5");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Frame 41
stop();
dirting = true;
Mouse.removeListener(mouseListener);
menu.start();
unloadMovie ("mask");
unloadMovie ("mask2");
unloadMovie ("mask3");
unloadMovie ("mask4");
unloadMovie ("mask5");
unloadMovie ("mask6");
unloadMovie ("mask7");
unloadMovie ("mask8");
unloadMovie ("mask9");
unloadMovie ("mask10");
unloadMovie ("mask11");
unloadMovie ("mask12");
unloadMovie ("mask13");
unloadMovie ("mask14");
unloadMovie ("mask15");
unloadMovie ("mask16");
unloadMovie ("mask17");
unloadMovie ("mask18");
unloadMovie ("mask19");
unloadMovie ("mask20");
unloadMovie ("mask21");
unloadMovie ("mask22");
unloadMovie ("mask23");
unloadMovie ("mask24");
unloadMovie ("mask25");
unloadMovie ("mask26");
unloadMovie ("mask27");
unloadMovie ("mask28");
unloadMovie ("mask29");
unloadMovie ("mask30");
unloadMovie ("mask31");
unloadMovie ("mask32");
unloadMovie ("mask33");
unloadMovie ("mask34");
unloadMovie ("mask35");
unloadMovie ("mask36");
unloadMovie ("mask37");
unloadMovie ("mask38");
unloadMovie ("mask39");
unloadMovie ("mask40");
unloadMovie ("mask41");
unloadMovie ("mask42");
unloadMovie ("mask43");
unloadMovie ("mask44");
unloadMovie ("mask45");
unloadMovie ("mask46");
unloadMovie ("mask47");
unloadMovie ("mask48");
unloadMovie ("mask49");
unloadMovie ("mask50");
unloadMovie ("mask51");
unloadMovie ("mask52");
unloadMovie ("mask53");
unloadMovie ("mask54");
unloadMovie ("mask55");
unloadMovie ("mask56");
unloadMovie ("mask57");
unloadMovie ("mask58");
unloadMovie ("mask59");
unloadMovie ("mask60");
unloadMovie ("mask61");
unloadMovie ("mask62");
unloadMovie ("mask63");
unloadMovie ("mask64");
unloadMovie ("mask65");
unloadMovie ("mask66");
unloadMovie ("mask67");
unloadMovie ("mask68");
unloadMovie ("mask69");
unloadMovie ("mask70");
unloadMovie ("mask71");
unloadMovie ("mask72");
unloadMovie ("mask73");
unloadMovie ("mask74");
unloadMovie ("mask75");
unloadMovie ("mask76");
unloadMovie ("mask77");
unloadMovie ("mask78");
unloadMovie ("mask79");
unloadMovie ("mask80");
unloadMovie ("mask81");
unloadMovie ("mask82");
unloadMovie ("mask83");
unloadMovie ("mask84");
unloadMovie ("mask85");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path5");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move5");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
unloadMovie ("mask");
unloadMovie ("laser");
unloadMovie ("future");
unloadMovie ("smok1");
unloadMovie ("scena5");
unloadMovie ("track05");
unloadMovie ("skybox");
unloadMovie ("waypoint");
unloadMovie ("tree");
unloadMovie ("startline");
unloadMovie ("waypoint");
unloadMovie ("path5");
unloadMovie ("scritta");
unloadMovie ("opp");
unloadMovie ("mapp");
unloadMovie ("enemy");
unloadMovie ("engine");
unloadMovie ("marker1");
unloadMovie ("marker2");
unloadMovie ("marker3");
unloadMovie ("marker4");
unloadMovie ("desk");
unloadMovie ("fov");
unloadMovie ("marker_tree");
unloadMovie ("en1");
unloadMovie ("semaforo");
unloadMovie ("volante");
unloadMovie ("move5");
unloadMovie ("enemy1");
unloadMovie ("tyres");
unloadMovie ("startline");
unloadMovie ("dash");
unloadMovie ("lancetta");
unloadMovie ("rpm");
unloadMovie ("speedometer");
unloadMovie ("border");
unloadMovie ("t0");
unloadMovie ("paral1");
unloadMovie ("paral2");
unloadMovie ("credits");
Symbol 18 MovieClip [smok1] Frame 6
gotoAndPlay (1);
Symbol 29 MovieClip Frame 5
stop();
Symbol 52 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 2
stop();
Symbol 52 MovieClip Frame 3
stop();
Symbol 52 MovieClip Frame 4
stop();
Symbol 52 MovieClip Frame 5
stop();
Symbol 52 MovieClip Frame 6
stop();
Symbol 52 MovieClip Frame 7
stop();
Symbol 52 MovieClip Frame 8
stop();
Symbol 52 MovieClip Frame 9
stop();
Symbol 52 MovieClip Frame 10
stop();
Symbol 52 MovieClip Frame 11
stop();
Symbol 52 MovieClip Frame 12
stop();
Symbol 54 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 2
stop();
Symbol 54 MovieClip Frame 3
stop();
Symbol 54 MovieClip Frame 4
stop();
Symbol 54 MovieClip Frame 5
stop();
Symbol 54 MovieClip Frame 6
stop();
Symbol 54 MovieClip Frame 7
stop();
Symbol 54 MovieClip Frame 8
stop();
Symbol 54 MovieClip Frame 9
stop();
Symbol 54 MovieClip Frame 10
stop();
Symbol 54 MovieClip Frame 11
stop();
Symbol 54 MovieClip Frame 12
stop();
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 2
stop();
Symbol 78 MovieClip Frame 3
stop();
Symbol 78 MovieClip Frame 4
stop();
Symbol 78 MovieClip Frame 5
stop();
Symbol 78 MovieClip Frame 6
stop();
Symbol 78 MovieClip Frame 7
stop();
Symbol 78 MovieClip Frame 8
stop();
Symbol 78 MovieClip Frame 9
stop();
Symbol 78 MovieClip Frame 10
stop();
Symbol 78 MovieClip Frame 11
stop();
Symbol 78 MovieClip Frame 12
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 2
stop();
Symbol 99 MovieClip Frame 3
stop();
Symbol 99 MovieClip Frame 4
stop();
Symbol 99 MovieClip Frame 5
stop();
Symbol 99 MovieClip Frame 6
stop();
Symbol 99 MovieClip Frame 7
stop();
Symbol 99 MovieClip Frame 8
stop();
Symbol 99 MovieClip Frame 9
stop();
Symbol 99 MovieClip Frame 10
stop();
Symbol 99 MovieClip Frame 11
stop();
Symbol 99 MovieClip Frame 12
stop();
Symbol 107 Button
on (release) {
getURL ("http://www.gamebonkers.com/?link=F3R", "_blank");
}
Symbol 152 MovieClip [future] Frame 1
stop();
Symbol 152 MovieClip [future] Frame 2
stop();
Symbol 152 MovieClip [future] Frame 3
stop();
Symbol 152 MovieClip [future] Frame 4
stop();
Symbol 152 MovieClip [future] Frame 5
stop();
Symbol 152 MovieClip [future] Frame 6
stop();
Symbol 152 MovieClip [future] Frame 7
stop();
Symbol 152 MovieClip [future] Frame 8
stop();
Symbol 152 MovieClip [future] Frame 9
stop();
Symbol 157 MovieClip [energyball] Frame 1
stop();
Symbol 157 MovieClip [energyball] Frame 7
stop();
Symbol 177 MovieClip [boostage] Frame 10
stop();
Symbol 198 MovieClip [gravbomb] Frame 12
stop();
Symbol 217 MovieClip Frame 1
_visible = false;
Symbol 224 MovieClip Frame 1
stop();
Instance of Symbol 205 MovieClip "mtree1" in Symbol 224 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 205 MovieClip "mtree2" in Symbol 224 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 205 MovieClip "mtree3" in Symbol 224 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 205 MovieClip "mtree4" in Symbol 224 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 205 MovieClip "mtree5" in Symbol 224 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 205 MovieClip "mtree6" in Symbol 224 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 205 MovieClip "mtree7" in Symbol 224 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 205 MovieClip "mtree8" in Symbol 224 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 205 MovieClip "mtree9" in Symbol 224 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 205 MovieClip "mtree10" in Symbol 224 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 205 MovieClip "mtree11" in Symbol 224 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 224 MovieClip Frame 2
stop();
Instance of Symbol 207 MovieClip "borderz" in Symbol 224 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 209 MovieClip "fov" in Symbol 224 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 211 MovieClip "enemy1" in Symbol 224 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 211 MovieClip "enemy2" in Symbol 224 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 211 MovieClip "enemy3" in Symbol 224 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 213 MovieClip "startline" in Symbol 224 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 213 MovieClip "startline2" in Symbol 224 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 213 MovieClip "cpoint1" in Symbol 224 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 213 MovieClip "cpoint2" in Symbol 224 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 213 MovieClip "cpoint3" in Symbol 224 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 213 MovieClip "cpoint4" in Symbol 224 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 219 MovieClip "shothit" in Symbol 224 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 223 MovieClip "stopper1" in Symbol 224 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 223 MovieClip "stopper2" in Symbol 224 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 223 MovieClip "stopper3" in Symbol 224 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 223 MovieClip "stopper4" in Symbol 224 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Symbol 236 MovieClip Frame 1
_visible = false;
Symbol 237 MovieClip Frame 1
stop();
Instance of Symbol 228 MovieClip "mtree1" in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 228 MovieClip "mtree2" in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 228 MovieClip "mtree3" in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 228 MovieClip "mtree4" in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 228 MovieClip "mtree5" in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 228 MovieClip "mtree6" in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 228 MovieClip "mtree7" in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 228 MovieClip "mtree8" in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 228 MovieClip "mtree9" in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 228 MovieClip "mtree10" in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 228 MovieClip "mtree11" in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 237 MovieClip Frame 2
stop();
Instance of Symbol 230 MovieClip "borderz" in Symbol 237 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 231 MovieClip "fov" in Symbol 237 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 223 MovieClip "stopper1" in Symbol 237 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 223 MovieClip "stopper2" in Symbol 237 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 223 MovieClip "stopper3" in Symbol 237 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 223 MovieClip "stopper4" in Symbol 237 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 234 MovieClip "enemy1" in Symbol 237 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 234 MovieClip "enemy2" in Symbol 237 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 234 MovieClip "enemy3" in Symbol 237 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 235 MovieClip "cpoint1" in Symbol 237 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 235 MovieClip "startline" in Symbol 237 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 235 MovieClip "startline2" in Symbol 237 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 235 MovieClip "cpoint2" in Symbol 237 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 235 MovieClip "cpoint3" in Symbol 237 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 235 MovieClip "cpoint4" in Symbol 237 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 219 MovieClip "shothit" in Symbol 237 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Symbol 249 MovieClip Frame 1
_visible = false;
Symbol 250 MovieClip Frame 1
stop();
Instance of Symbol 241 MovieClip "mtree1" in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 241 MovieClip "mtree2" in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 241 MovieClip "mtree3" in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 241 MovieClip "mtree4" in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 241 MovieClip "mtree5" in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 241 MovieClip "mtree6" in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 241 MovieClip "mtree7" in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 241 MovieClip "mtree8" in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 241 MovieClip "mtree9" in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 241 MovieClip "mtree11" in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 250 MovieClip Frame 2
stop();
Instance of Symbol 205 MovieClip "mtree10" in Symbol 250 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 245 MovieClip "borderz" in Symbol 250 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 246 MovieClip "fov" in Symbol 250 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 205 MovieClip "mtree10" in Symbol 250 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 223 MovieClip "stopper1" in Symbol 250 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 223 MovieClip "stopper2" in Symbol 250 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 223 MovieClip "stopper3" in Symbol 250 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 223 MovieClip "stopper4" in Symbol 250 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 247 MovieClip "enemy1" in Symbol 250 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 247 MovieClip "enemy2" in Symbol 250 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 247 MovieClip "enemy3" in Symbol 250 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 248 MovieClip "startline" in Symbol 250 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 248 MovieClip "startline2" in Symbol 250 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 248 MovieClip "cpoint1" in Symbol 250 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 248 MovieClip "cpoint2" in Symbol 250 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 248 MovieClip "cpoint3" in Symbol 250 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 248 MovieClip "cpoint4" in Symbol 250 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 219 MovieClip "shothit" in Symbol 250 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Symbol 262 MovieClip Frame 1
_visible = false;
Symbol 263 MovieClip Frame 1
stop();
Instance of Symbol 254 MovieClip "mtree1" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 254 MovieClip "mtree2" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 254 MovieClip "mtree3" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 254 MovieClip "mtree4" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 254 MovieClip "mtree5" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 254 MovieClip "mtree6" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 254 MovieClip "mtree7" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 254 MovieClip "mtree8" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 254 MovieClip "mtree9" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 254 MovieClip "mtree10" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 254 MovieClip "mtree11" in Symbol 263 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 263 MovieClip Frame 2
stop();
Instance of Symbol 258 MovieClip "borderz" in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 223 MovieClip "stopper1" in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 223 MovieClip "stopper2" in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 223 MovieClip "stopper3" in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 223 MovieClip "stopper4" in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 259 MovieClip "fov" in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 260 MovieClip "enemy1" in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 260 MovieClip "enemy2" in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 260 MovieClip "enemy3" in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 261 MovieClip "startline" in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 261 MovieClip "startline2" in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 261 MovieClip "cpoint1" in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 261 MovieClip "cpoint2" in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 261 MovieClip "cpoint3" in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 261 MovieClip "cpoint4" in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 219 MovieClip "shothit" in Symbol 263 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Symbol 276 MovieClip Frame 1
_visible = false;
Symbol 277 MovieClip Frame 1
stop();
Instance of Symbol 268 MovieClip "mtree1" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 268 MovieClip "mtree2" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 268 MovieClip "mtree3" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 268 MovieClip "mtree4" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 268 MovieClip "mtree5" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 268 MovieClip "mtree6" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 268 MovieClip "mtree7" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 268 MovieClip "mtree8" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 268 MovieClip "mtree9" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 268 MovieClip "mtree10" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 268 MovieClip "mtree11" in Symbol 277 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 277 MovieClip Frame 2
stop();
Instance of Symbol 270 MovieClip "borderz" in Symbol 277 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 223 MovieClip "stopper1" in Symbol 277 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 223 MovieClip "stopper2" in Symbol 277 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 223 MovieClip "stopper3" in Symbol 277 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 223 MovieClip "stopper4" in Symbol 277 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 272 MovieClip "path1" in Symbol 277 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 273 MovieClip "fov" in Symbol 277 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 219 MovieClip "shothit" in Symbol 277 MovieClip Frame 2
onClipEvent (load) {
_visible = true;
}
Instance of Symbol 274 MovieClip "enemy1" in Symbol 277 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 274 MovieClip "enemy2" in Symbol 277 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 274 MovieClip "enemy3" in Symbol 277 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 275 MovieClip "startline" in Symbol 277 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 275 MovieClip "startline2" in Symbol 277 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 275 MovieClip "cpoint1" in Symbol 277 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 275 MovieClip "cpoint2" in Symbol 277 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 275 MovieClip "cpoint3" in Symbol 277 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 275 MovieClip "cpoint4" in Symbol 277 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 277 MovieClip "move" in Symbol 278 MovieClip [track01] Frame 1
/* no clip actions */
Symbol 289 Button
on (release) {
gotoAndPlay (4);
}
Symbol 290 Button
on (release) {
gotoAndPlay (5);
}
Symbol 291 Button
on (release) {
gotoAndPlay (6);
}
Symbol 297 Button
on (release) {
getURL ("http://www.gamebonkers.com/?link=F3R", "_blank");
}
Symbol 302 Button
on (release) {
gotoAndPlay (7);
}
Symbol 310 Button
on (press) {
if (money >= 10) {
booster = booster + 1;
money = money - 10;
}
}
on (release) {
if (money <= 0) {
money = 0;
}
}
Symbol 311 Button
on (press) {
if (money >= 5) {
weakblaster = weakblaster + 3;
money = money - 5;
}
}
on (release) {
if (money <= 0) {
money = 0;
}
}
Symbol 318 Button
on (release) {
gotoAndPlay (1);
}
Symbol 354 Button
on (release) {
gotoAndPlay (4);
}
Symbol 356 Button
on (release) {
gotoAndPlay (8);
}
Symbol 360 MovieClip Frame 1
stop();
Symbol 360 MovieClip Frame 2
_root.fullgear.stop();
_root.minimo.start(0.05, 0);
mustshift = false;
Symbol 360 MovieClip Frame 8
_root.minimo.stop();
gotoAndPlay (2);
Symbol 360 MovieClip Frame 9
_root.minimo.stop();
_root.fullgear.stop();
_root.fullgear.start(0, 0);
mustshift = false;
Symbol 360 MovieClip Frame 34
_root.fullgear.stop();
_root.gear++;
mustshift = true;
stop();
Symbol 360 MovieClip Frame 38
_root.fullgear.start(0.05, 0);
mustshift = false;
Symbol 360 MovieClip Frame 72
_root.fullgear.stop();
_root.gear++;
mustshift = true;
stop();
Symbol 360 MovieClip Frame 73
_root.fullgear.start(0.2, 0);
mustshift = false;
Symbol 360 MovieClip Frame 116
_root.fullgear.stop();
_root.gear = "N";
stop();
Instance of Symbol 364 MovieClip "paral1" in Symbol 365 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_root.rotaz1 * 4);
}
Symbol 367 MovieClip Frame 8
gotoAndPlay (1);
Instance of Symbol 375 MovieClip in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
vmax = _root.maxspeed1;
ratio = ((280 * _root.speed1) / vmax) - 235;
_rotation = ratio;
}
Symbol 399 Button
on (release) {
gotoAndPlay (14);
}
Symbol 402 Button
on (release) {
unloadMovieNum (1);
unloadMovieNum (2);
unloadMovieNum (3);
unloadMovieNum (4);
unloadMovieNum (5);
unloadMovieNum (6);
unloadMovieNum (7);
unloadMovieNum (8);
unloadMovieNum (9);
unloadMovieNum (10);
loadMovieNum ("future_3d_racing.swf", 0);
Key.removeListener(keyListener);
gotoAndStop (1);
Mouse.show();
}
Symbol 406 Button
on (release) {
gotoAndPlay (15);
}
Symbol 409 Button
on (press) {
if (money >= 15) {
aura = aura + 2;
money = money - 15;
}
}
on (release) {
if (money <= 0) {
money = 0;
}
}
Instance of Symbol 423 MovieClip "paral1b" in Symbol 424 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_root.rotaz1 * 4);
}
Symbol 434 Button
on (release) {
unloadMovieNum (1);
unloadMovieNum (2);
unloadMovieNum (3);
unloadMovieNum (4);
unloadMovieNum (5);
unloadMovieNum (6);
unloadMovieNum (7);
unloadMovieNum (8);
unloadMovieNum (9);
unloadMovieNum (10);
loadMovieNum ("future_3d_racing.swf", 0);
Key.removeListener(keyListener);
gotoAndStop (14);
Mouse.show();
}
Symbol 435 Button
on (release) {
unloadMovieNum (1);
unloadMovieNum (2);
unloadMovieNum (3);
unloadMovieNum (4);
unloadMovieNum (5);
unloadMovieNum (6);
unloadMovieNum (7);
unloadMovieNum (8);
unloadMovieNum (9);
unloadMovieNum (10);
loadMovieNum ("future_3d_racing.swf", 0);
Key.removeListener(keyListener);
gotoAndStop (14);
Mouse.show();
}
Symbol 438 Button
on (release) {
gotoAndPlay (21);
}
Symbol 440 Button
on (release) {
gotoAndPlay (22);
}
Symbol 442 Button
on (press) {
if (money >= 15) {
bomb = bomb + 3;
money = money - 15;
}
}
on (release) {
if (money <= 0) {
money = 0;
}
}
Instance of Symbol 455 MovieClip "paral1c" in Symbol 456 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_root.rotaz1 * 4);
}
Symbol 464 Button
on (release) {
unloadMovieNum (1);
unloadMovieNum (2);
unloadMovieNum (3);
unloadMovieNum (4);
unloadMovieNum (5);
unloadMovieNum (6);
unloadMovieNum (7);
unloadMovieNum (8);
unloadMovieNum (9);
unloadMovieNum (10);
loadMovieNum ("future_3d_racing.swf", 0);
Key.removeListener(keyListener);
gotoAndStop (21);
Mouse.show();
}
Symbol 467 Button
on (release) {
gotoAndPlay (28);
}
Symbol 469 Button
on (release) {
gotoAndPlay (29);
}
Instance of Symbol 480 MovieClip "paral1d" in Symbol 481 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_root.rotaz1 * 4);
}
Symbol 489 Button
on (release) {
unloadMovieNum (1);
unloadMovieNum (2);
unloadMovieNum (3);
unloadMovieNum (4);
unloadMovieNum (5);
unloadMovieNum (6);
unloadMovieNum (7);
unloadMovieNum (8);
unloadMovieNum (9);
unloadMovieNum (10);
loadMovieNum ("future_3d_racing.swf", 0);
Key.removeListener(keyListener);
gotoAndStop (28);
Mouse.show();
}
Symbol 492 Button
on (release) {
gotoAndPlay (35);
}
Symbol 494 Button
on (release) {
gotoAndPlay (36);
}
Instance of Symbol 506 MovieClip "paral1e" in Symbol 507 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_root.rotaz1 * 4);
}
Symbol 515 Button
on (release) {
unloadMovieNum (1);
unloadMovieNum (2);
unloadMovieNum (3);
unloadMovieNum (4);
unloadMovieNum (5);
unloadMovieNum (6);
unloadMovieNum (7);
unloadMovieNum (8);
unloadMovieNum (9);
unloadMovieNum (10);
loadMovieNum ("future_3d_racing.swf", 0);
Key.removeListener(keyListener);
gotoAndStop (35);
Mouse.show();
}
Symbol 519 Button
on (release) {
unloadMovieNum (1);
unloadMovieNum (2);
unloadMovieNum (3);
unloadMovieNum (4);
unloadMovieNum (5);
unloadMovieNum (6);
unloadMovieNum (7);
unloadMovieNum (8);
unloadMovieNum (9);
unloadMovieNum (10);
loadMovieNum ("FFR.swf", 0);
Key.removeListener(keyListener);
gotoAndStop (35);
Mouse.show();
}