Frame 1
function gotoURL() {
getURL ("http://www.amoebastudios.com");
}
function randomRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
var newMenu = new ContextMenu();
_root.playIntro = true;
_root.allSounds = new Sound();
_root.score = 0;
_root.timeScore = 0;
_root.levelScore = 0;
_root.isPause = false;
_root.levelArray = ["lblgame", "level2", "level3", "level4", "level5", "level6", "level7", "level8", "level9", "win"];
_root.level = 1;
_root.mainLevel = [0, 0, 0];
_root.isEasy = false;
_root.playIntroSound = true;
_root.playerId = 1;
_root.isOver = false;
_root.carSelect = 1;
_root.levelSelect = 0;
_root.gameVersion = "1.1.6";
Frame 2
Frame 3
function ph1end() {
_root.play();
}
function checkstop() {
if (ph1) {
stop();
} else {
play();
}
}
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;
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);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&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);
}
trace(u + " Mochi tracker");
return(res);
}
function displayScores(mc) {
names = _root.topnickname.split(",");
scores = _root.topscore.split(",");
i = 0;
while (i <= 19) {
if (names[i] == undefined) {
names[i] = "";
}
if (scores[i] == undefined) {
scores[i] = "";
}
eval ((mc + ".n") + (i + 1)).text = names[i];
eval ((mc + ".p") + (i + 1)).text = scores[i];
i++;
}
}
function cancelSubmit(mc, useridframe) {
trace("cancelSubmit");
delete _root.send_lv.onLoad;
_root.skipsubmit = true;
mc.gotoAndStop(useridframe);
}
function _newUser() {
getURL (_root._registerurl, "_blank");
}
function _trackClickThru(mc) {
if (_root._allowclick) {
mc.hit_area.onRelease = function () {
getURL (_root._clickthru, "_blank");
};
} else {
mc.hit_area.useHandCursor = false;
}
}
function _resetUsername(txt) {
txt.onSetFocus = function () {
if ((this.text == _root._msgValid) or (this.text == "Connecting Error!")) {
this.text = "";
}
};
}
function _readSharedData() {
_root.so_uname = ((_root._sostatus.data.so_uname == undefined) ? "" : (_root._sostatus.data.so_uname));
_root.so_jumpframe = ((_root._sostatus.data.so_jumpframe == undefined) ? "" : (_root._sostatus.data.so_jumpframe));
_root.so_sound = ((_root._sostatus.data.so_sound == undefined) ? 1 : (_root._sostatus.data.so_sound));
_resetString = _root._sostatus.data.so_resetString;
trace("==========================");
trace((("_root.so_jumpframe : " + _root._sostatus.data.so_jumpframe) + " : ") + _root.so_uname);
if (_root.so_jumpframe != "") {
_assignValue(_resetString);
_root.createEmptyMovieClip("eye", _root.getNextHighestDepth());
_root.eye.onEnterFrame = function () {
if ((_root.getBytesTotal() == _root.getBytesLoaded()) and (_root.getBytesLoaded() > 50000)) {
_root.intro = 0;
_root._sostatus.data.so_jumpframe = "";
_root._sostatus.flush();
this.onEnterFrame = null;
_root.gotoAndStop(_root.so_jumpframe);
}
};
} else {
_root.intro = 1;
_root.play();
}
_root.uname = _root.so_uname;
_root.gamesound = _root.so_sound;
}
function _writeSharedData(jumpframe, jumpurl, _resetString) {
_root._sostatus.data.so_uname = ((_root.so_uname == undefined) ? "" : (_root.so_uname));
_root._sostatus.data.so_sound = _root.so_sound;
_root._sostatus.data.so_resetString = _resetString;
_root._sostatus.data.so_jumpframe = jumpframe;
_root._sostatus.flush();
if (jumpurl != "") {
getURL (jumpurl);
} else {
gotoAndPlay (1);
}
}
function _assignValue(_val) {
_arr = new Array();
_arr = _val.split("|");
i = 0;
while (i < (_arr.length / 2)) {
_var2 = ((i * 2) + 1) - 1;
_var3 = _var2 + 1;
_root[_arr[_var2]] = _arr[_var3];
i++;
}
}
function _playAgain(mc, jumpframe, _resetString) {
_root.so_uname = _root.uname;
if ((_root.gurl != undefined) and (_root.gurl != "")) {
_writeSharedData(jumpframe, _root.gurl, _resetString);
} else {
_root.intro = 0;
_assignValue(_resetString);
mc.gotoAndStop(jumpframe);
}
}
stop();
_root.endzedo_endtim = 15;
_root._ph1url = "http://c2.zedo.com/swf/c2/fa.swf?n=712&c=11&d=9";
_root._google_txt.text = "Women On Top";
_root.ph1 = false;
_root.adv_zedo = false;
_root.adv_mochi = false;
_root.mochi_tag = "510a50666b5c2d21";
_root.res_game = (Stage.width + "x") + Stage.height;
trace(_root.res_game);
_root.mochitrack_id = "05d8b5bd";
_root.mochitrack_id2 = 10301;
_root._gameid = "1054";
_root._clickthru = "http://www.games2win.com";
_root._customer_id = "games2win";
_root.uname = "";
_root.submiturl = "/gamesubmit.asp";
_root.topnickname = [];
_root.topscore = [];
dataSubmit = function (myname, myscore, mygameid, destmc, useridframe, connframe, top10frame, _ord) {
trace("dataSubmit");
_root.skipsubmit = false;
myname = myname.trim();
_loc = eval (destmc);
if (((myname.length == 0) or (myname == "Invalid Nickname!")) or (myname == "Connecting Error!")) {
_root.uname = "Invalid Nickname!";
} else {
_root.send_lv = new LoadVars();
_root.send_lv.onLoad = function (success) {
if (success and (!_root.skipsubmit)) {
if (_root.send_lv.isreg == 0) {
_root.uname = "Invalid Nickname!";
_loc.gotoAndStop(useridframe);
} else if (_root.send_lv.isreg == 1) {
_root.topnickname = send_lv.topnicknames;
_root.topscore = send_lv.topscores;
_loc.gotoAndPlay(top10frame);
}
}
};
_root.send_lv.nickname = myname;
_root.send_lv.points = myscore;
_root.send_lv.gameid = mygameid;
_root.send_lv.order = _ord;
_root.send_lv.sendAndLoad(submiturl, _root.send_lv, "POST");
_loc.gotoAndPlay(connframe);
}
};
String.prototype.trim = function () {
var _local3 = 0;
var _local2 = this.length;
white = new Object();
white._32 = 1;
_local2--;
while (white["_" + ord(this.charAt(_local2))]) {
}
while (white["_" + ord(this.charAt(_local3++))]) {
}
return(this.slice(_local3 - 1, _local2 + 1));
};
_root._registerurl = "http://www.games2win.com/register.asp";
_root._allowclick = true;
var _sostatus = SharedObject.getLocal("gamestatus", "/");
_readSharedData();
_root.levelSelect = int(_root.levelSelect);
_root.carSelect = int(_root.carSelect);
Frame 4
Frame 5
Frame 6
stop();
Frame 7
stop();
stopAllSounds();
Frame 8
stopAllSounds();
Frame 9
stop();
Instance of Symbol 168 MovieClip in Frame 9
on (release) {
this.gotoAndPlay(_currentframe + 1);
}
Frame 10
stop();
Frame 11
stop();
Frame 12
stop();
Frame 13
stop();
stopAllSounds();
_root.level = 1;
_root.hud_mc._visible = true;
_root.levelSelect = int(_root.levelSelect);
_root.carSelect = int(_root.carSelect);
Frame 14
stop();
stopAllSounds();
_root.level = 2;
_root.hud_mc._visible = true;
_root.levelSelect = int(_root.levelSelect);
_root.carSelect = int(_root.carSelect);
Frame 15
stop();
stopAllSounds();
_root.level = 3;
_root.hud_mc._visible = true;
_root.levelSelect = int(_root.levelSelect);
_root.carSelect = int(_root.carSelect);
Frame 16
stop();
stopAllSounds();
_root.level = 4;
_root.hud_mc._visible = true;
_root.levelSelect = int(_root.levelSelect);
_root.carSelect = int(_root.carSelect);
Frame 17
stop();
stopAllSounds();
_root.level = 5;
_root.hud_mc._visible = true;
_root.levelSelect = int(_root.levelSelect);
_root.carSelect = int(_root.carSelect);
Frame 18
stop();
stopAllSounds();
_root.level = 6;
_root.hud_mc._visible = true;
_root.levelSelect = int(_root.levelSelect);
_root.carSelect = int(_root.carSelect);
Frame 19
stop();
stopAllSounds();
_root.level = 7;
_root.hud_mc._visible = true;
_root.levelSelect = int(_root.levelSelect);
_root.carSelect = int(_root.carSelect);
Frame 20
stop();
stopAllSounds();
_root.level = 8;
_root.hud_mc._visible = true;
_root.levelSelect = int(_root.levelSelect);
_root.carSelect = int(_root.carSelect);
Frame 21
stop();
stopAllSounds();
_root.level = 9;
_root.hud_mc._visible = true;
_root.levelSelect = int(_root.levelSelect);
_root.carSelect = int(_root.carSelect);
Frame 22
stop();
win = true;
Frame 23
stop();
stopAllSounds();
win = false;
Frame 24
stop();
Frame 25
stop();
Frame 26
stop();
Symbol 529 MovieClip [__Packages.classes.CollisionDetection] Frame 0
class classes.CollisionDetection
{
function CollisionDetection () {
}
static function checkForCollision(p_clip1, p_clip2, p_alphaTolerance, p_scope) {
if (p_alphaTolerance == undefined) {
p_alphaTolerance = 255;
}
if (p_scope == undefined) {
p_scope = p_clip2._parent;
}
var _local3 = p_clip1.getBounds(p_scope);
var _local2 = p_clip2.getBounds(p_scope);
if (((_local3.xMax < _local2.xMin) || (_local2.xMax < _local3.xMin)) || ((_local3.yMax < _local2.yMin) || (_local2.yMax < _local3.yMin))) {
return(null);
}
var _local1 = {};
_local1.xMin = Math.max(_local3.xMin, _local2.xMin);
_local1.xMax = Math.min(_local3.xMax, _local2.xMax);
_local1.yMin = Math.max(_local3.yMin, _local2.yMin);
_local1.yMax = Math.min(_local3.yMax, _local2.yMax);
var _local8 = new flash.display.BitmapData(_local1.xMax - _local1.xMin, _local1.yMax - _local1.yMin, false);
var _local4 = p_clip1.transform.matrix;
_local4.tx = p_clip1._x - _local1.xMin;
_local4.ty = p_clip1._y - _local1.yMin;
_local8.draw(p_clip1, _local4, new flash.geom.ColorTransform(1, 1, 1, 1, 255, -255, -255, p_alphaTolerance));
_local4 = p_clip2.transform.matrix;
_local4.tx = p_clip2._x - _local1.xMin;
_local4.ty = p_clip2._y - _local1.yMin;
_local8.draw(p_clip2, _local4, new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 255, p_alphaTolerance), "difference");
var _local6 = _local8.getColorBoundsRect(4294967295, 4278255615);
if (_local6.width == 0) {
return(null);
}
_local6.x = _local6.x + _local1.xMin;
_local6.y = _local6.y + _local1.yMin;
return(_local6);
}
}
Symbol 5 MovieClip Frame 1
_root._trackClickThru(this);
Symbol 10 MovieClip Frame 120
stop();
_root.gotoAndStop("lblloader");
Symbol 47 MovieClip Frame 1
var total = _root.getBytesTotal();
var percent = 0;
onEnterFrame = function () {
if (percent < 100) {
loaded = _root.getBytesLoaded();
percent = Math.ceil((loaded / total) * 100);
} else {
_root.gotoAndStop("lblgameIntro");
}
};
Symbol 86 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 2
stop();
Symbol 130 MovieClip Frame 1
if (_root.mainLevel[2] == 1) {
gotoAndStop (2);
}
car_btn.onRelease = function () {
_root.carSelect = 3;
_root.levelSelect = 6;
_root.gotoAndStop("story");
};
stop();
Symbol 130 MovieClip Frame 2
stop();
Symbol 145 MovieClip Frame 1
if (_root.mainLevel[0] == 1) {
gotoAndStop (2);
}
car_btn.onRelease = function () {
_root.carSelect = 1;
_root.levelSelect = 0;
_root.gotoAndStop("story");
};
stop();
Symbol 145 MovieClip Frame 2
stop();
Symbol 156 MovieClip Frame 1
if (_root.mainLevel[1] == 1) {
gotoAndStop (2);
}
car_btn.onRelease = function () {
_root.carSelect = 2;
_root.levelSelect = 3;
_root.gotoAndStop("story");
};
stop();
Symbol 156 MovieClip Frame 2
stop();
Symbol 164 MovieClip Frame 1
if (!_root.playIntro) {
gotoAndStop(_totalframes);
}
if (_root.playIntroSound) {
stopAllSounds();
sound_mc.gotoAndStop(2);
}
_root.playIntroSound = false;
_root.playIntro = false;
Symbol 164 MovieClip Frame 109
stop();
Symbol 168 MovieClip Frame 1
stop();
_root.allSounds.setVolume(100);
Symbol 168 MovieClip Frame 2
stop();
_root.allSounds.setVolume(0);
Symbol 182 MovieClip Frame 1
stop();
start_btn.onRelease = function () {
_root.gotoAndStop(_root.levelArray[_root.levelSelect]);
};
Symbol 194 MovieClip Frame 1
onEnterFrame = function () {
if ((((Key.isDown(38) || (Key.isDown(37))) || (Key.isDown(40))) || (Key.isDown(39))) || (Key.isDown(32))) {
this._visible = false;
}
};
Symbol 199 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
this.cacheAsBitmap = true;
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 202 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
this.cacheAsBitmap = true;
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 204 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 250;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 211 MovieClip Frame 1
function adjust(v, threshold, maximum) {
vx = 0;
if (v <= threshold) {
vx = (v / threshold) * 1;
} else {
vx = 1;
}
return(vx);
}
function move() {
this._rotation = (angle * 180) / 3.141593;
UD = Key.isDown(40) - Key.isDown(38);
LR = (Key.isDown(37) - Key.isDown(39)) / 4;
HAND = Key.isDown(32);
if (LR) {
angle = angle + (((LR * UD) * steer) * adjust(Math.abs(speed), steer_threshold, MAXSpd));
} else {
turnskidding = false;
}
if (!UD) {
speed = speed * drift;
} else if (UD & (!HAND)) {
speed = Math.min(Math.max(speed + (UD * accel), MINspd), MAXspd);
}
if (Math.abs(speed) < (accel / 2)) {
speed = 0;
}
if (HAND) {
speed = speed * handbrake;
if (speed > MAXskiddisplay) {
steer = steer_handbrake;
}
traction = handbrake_traction / surface;
} else {
skidding = false;
traction = Math.max(traction_max, Math.abs((speed - MAXturnSpd) / surface));
steer = steer_normal;
}
if (speed <= 0) {
traction = 1;
}
this._x = this._x + ((vector[0] = vector[0] + (((Math.cos(angle) * speed) - vector[0]) / traction)));
this._y = this._y + ((vector[1] = vector[1] + (((Math.sin(angle) * speed) - vector[1]) / traction)));
}
gotoAndStop(_root.carSelect);
var accel = 0.4;
var steer = 0.03;
var steer_normal = 0.07;
var steer_handbrake = 0.099;
var steer_threshold = 3;
var MINspd = -5;
var MAXspd = 5;
var MAXskiddisplay = 2;
var MAXturnSpd = 6;
var MaxTurnSkid = 18;
var deccel = 0.92;
var handbrake = 0.33;
var handbrake_traction = 20;
var drift = 0.58;
var speed = 0;
var surface = 3;
var traction = 3;
var traction_max = 1;
var vector = [0, 0];
var angle = ((this._rotation / 180) * 3.141593);
var skidding = false;
var turnskidding = false;
var hit = false;
onEnterFrame = function () {
if (_parent.car_mc.hit != true) {
move();
}
};
stop();
Symbol 211 MovieClip Frame 2
stop();
Symbol 211 MovieClip Frame 3
stop();
Symbol 216 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 2
_root.hud_mc.stopTime = true;
Symbol 216 MovieClip Frame 17
stop();
stopAllSounds();
_root.alarm_mc.gotoAndPlay(2);
Symbol 221 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 2
_root.hud_mc.stopTime = true;
Symbol 221 MovieClip Frame 17
stop();
stopAllSounds();
_root.alarm_mc.gotoAndPlay(2);
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 2
_root.hud_mc.stopTime = true;
Symbol 225 MovieClip Frame 17
stop();
stopAllSounds();
_root.alarm_mc.gotoAndPlay(2);
Symbol 226 MovieClip Frame 1
function adjust(v, threshold, maximum) {
vx = 0;
if (v <= threshold) {
vx = (v / threshold) * 1;
} else {
vx = 1;
}
return(vx);
}
function move() {
this._rotation = (angle * 180) / 3.141593;
UD = Key.isDown(40) - Key.isDown(38);
LR = (Key.isDown(37) - Key.isDown(39)) / 4;
HAND = Key.isDown(32);
if (LR) {
angle = angle + (((LR * UD) * steer) * adjust(Math.abs(speed), steer_threshold, MAXSpd));
} else {
turnskidding = false;
}
if (!UD) {
speed = speed * drift;
} else if (UD & (!HAND)) {
speed = Math.min(Math.max(speed + (UD * accel), MINspd), MAXspd);
}
if (Math.abs(speed) < (accel / 2)) {
speed = 0;
}
if (HAND) {
speed = speed * handbrake;
if (speed > MAXskiddisplay) {
steer = steer_handbrake;
}
traction = handbrake_traction / surface;
} else {
skidding = false;
traction = Math.max(traction_max, Math.abs((speed - MAXturnSpd) / surface));
steer = steer_normal;
}
if (speed <= 0) {
traction = 1;
}
this._x = this._x + ((vector[0] = vector[0] + (((Math.cos(angle) * speed) - vector[0]) / traction)));
this._y = this._y + ((vector[1] = vector[1] + (((Math.sin(angle) * speed) - vector[1]) / traction)));
}
gotoAndStop(_root.carSelect);
var fuelEffeciency = [0.1, 0.2, 0.25, 0.1, 0.2, 0.25, 0.1, 0.2, 0.25];
var accel = 0.4;
var steer = 0.06;
var steer_normal = 0.07;
var steer_handbrake = 0.099;
var steer_threshold = 3;
var MINspd = -5;
var MAXspd = 5;
var MAXskiddisplay = 2;
var MAXturnSpd = 6;
var MaxTurnSkid = 18;
var deccel = 0.92;
var handbrake = 0.33;
var handbrake_traction = 20;
var drift = 0.58;
var speed = 0;
var surface = 3;
var traction = 3;
var traction_max = 1;
var vector = [0, 0];
var angle = ((this._rotation / 180) * 3.141593);
var skidding = false;
var turnskidding = false;
var hit = false;
onEnterFrame = function () {
if (_parent.car_mc.hit != true) {
move();
}
};
stop();
Symbol 226 MovieClip Frame 2
stop();
Symbol 226 MovieClip Frame 3
stop();
Symbol 229 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
this._alpha = 0;
var scope = _parent;
var tolerance = 250;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 231 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((_root.level % 3) == 0) {
_root.mainLevel[Math.round(_root.level / 3) - 1] = 1;
}
_root.timeScore = Math.round(((_root.maxTime - _root.time) / 25) * 100);
_root.levelScore = _root.level * 3000;
_root.gotoAndStop("levelComplete");
}
};
Symbol 234 MovieClip Frame 1
Symbol 234 MovieClip Frame 2
stop();
Symbol 257 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 241
stop();
Symbol 261 MovieClip Frame 1
var fuel = 100;
var fuelCount = 0;
var fuelOver = false;
var my_color = new Color(bar_mc);
var myColorTransform = {ra:255, rb:244, ga:0, gb:0, ba:0, bb:0, aa:100, ab:0};
var myColorTransform2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
onEnterFrame = function () {
if ((fuel >= 0) && (fuel < 100)) {
bar_mc._yscale = fuel;
}
if (fuel < 10) {
my_color.setTransform(myColorTransform);
} else {
my_color.setTransform(myColorTransform2);
}
if ((fuel <= 0) && (!fuelOver)) {
_root.level_mc.car_mc.hit = true;
_parent.arrow_mc._visible = true;
fuelOver = true;
}
};
this.onRelease = function () {
if (fuelOver) {
fuel = fuel + 5;
if (fuel >= 100) {
fuelCount++;
fuel = 100;
fuelOver = false;
_parent.arrow_mc._visible = false;
_root.level_mc.car_mc.hit = false;
}
}
};
Symbol 272 MovieClip Frame 1
var timer = 0;
_root.maxTime = 2500;
_root.time = 0;
var stopTime = false;
arrow_mc._visible = false;
onEnterFrame = function () {
if (!stopTime) {
timer++;
_root.time = Math.round((_root.maxTime - timer) / 25);
if (_root.time <= 10) {
if ((_root.time == 10) && (timer_mc._currentframe == 1)) {
timer_mc.gotoAndPlay(2);
}
time_txt.textColor = "0Xff0000";
}
if (timer == _root.maxTime) {
_root.level_mc.car_mc.hit = true;
_root.time_mc.gotoAndPlay(2);
stopTime = true;
}
}
};
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 45
stop();
_root.gotoAndStop("gameOver");
Symbol 285 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 11
stopAllSounds();
Symbol 285 MovieClip Frame 61
stopAllSounds();
Symbol 285 MovieClip Frame 76
stop();
_root.gotoAndStop("gameOver");
Symbol 288 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 11
stopAllSounds();
Symbol 288 MovieClip Frame 76
stop();
_root.gotoAndStop("gameOver");
Symbol 300 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 302 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
this.cacheAsBitmap = true;
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 308 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 310 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 324 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
this.cacheAsBitmap = true;
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 338 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
this.cacheAsBitmap = true;
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 339 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
this.cacheAsBitmap = true;
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 342 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 351 MovieClip Frame 1
onEnterFrame = function () {
if ((((Key.isDown(38) || (Key.isDown(37))) || (Key.isDown(40))) || (Key.isDown(39))) || (Key.isDown(32))) {
this._visible = false;
}
};
Symbol 362 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this._currentframe == 1) {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
_parent.gate_mc.gotoAndStop(2);
gotoAndStop (2);
onEnterFrame = null;
}
}
}
};
stop();
Symbol 362 MovieClip Frame 2
stop();
Symbol 366 MovieClip Frame 9
stop();
Symbol 367 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
stop();
Symbol 367 MovieClip Frame 2
stop();
Symbol 374 MovieClip Frame 1
if (count == undefined) {
var count = 0;
}
Symbol 374 MovieClip Frame 170
count++;
if (count == 2) {
this._visible = false;
}
Symbol 380 MovieClip Frame 1
stop();
Symbol 381 MovieClip Frame 9
stop();
Symbol 382 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
stop();
Symbol 382 MovieClip Frame 2
stop();
Symbol 387 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 389 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 391 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 393 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 394 MovieClip Frame 1
if (count == undefined) {
var count = 0;
}
Symbol 394 MovieClip Frame 170
count++;
if (count == 2) {
this._visible = false;
}
Symbol 403 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
this._alpha = 50;
} else {
this._alpha = 100;
}
}
};
Symbol 408 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
this._alpha = 0;
var scope = _parent;
var tolerance = 120;
onEnterFrame = function () {
if (this.hitTest(_parent.car_mc.target_mc)) {
if ((checkCollision(this, _parent.car_mc) != undefined) || (checkCollision(this, _parent.car_mc) != null)) {
if (_parent.car_mc.UD == -1) {
_parent.car_mc.speed = 1;
var _local3 = "back";
} else if (_parent.car_mc.UD == 1) {
_parent.car_mc.speed = -1;
var _local3 = "front";
} else if (_parent.car_mc.UD == 0) {
if (_local3 == "back") {
_parent.car_mc.speed = 1;
_local3 == "front";
} else {
_parent.car_mc.speed = -1;
_local3 == "back";
}
}
_parent.car_mc.hit = true;
_parent.car_mc.crash_mc.gotoAndPlay(2);
onEnterFrame = null;
}
}
};
Symbol 426 MovieClip Frame 73
stop();
Symbol 439 MovieClip Frame 1
if (_root.cancelcon) {
gotoAndStop(this._totalframes);
}
Symbol 439 MovieClip Frame 102
stop();
playAgain_btn.onRelease = function () {
_root.score = 0;
str1 = (((("level|" + _root.level) + "|levelSelect|") + _root.levelSelect) + "|carSelect|") + _root.carSelect;
str = _root.levelArray[int(_root.level - 1)];
_root._playAgain(_root, str, str1);
};
submit_btn.onRelease = function () {
trace((((_root.uname + " ") + _root.score) + " ") + _root._gameid);
_root.dataSubmit(_root.uname, _root.score, _root._gameid, _root, "gameOver", "connecting", "highScores");
};
username_txt.onSetFocus = function () {
if (username_txt.text == "Invalid Nickname!") {
username_txt.text = "";
}
};
Selection.setFocus("username_txt");
Symbol 444 MovieClip Frame 47
stop();
Symbol 450 MovieClip Frame 1
if (_root.cancelcon) {
gotoAndStop(this._totalframes);
}
Symbol 450 MovieClip Frame 32
stop();
playAgain_btn.onRelease = function () {
_root.score = 0;
str1 = (((("level|" + _root.level) + "|levelSelect|") + _root.levelSelect) + "|carSelect|") + _root.carSelect;
str = _root.levelArray[int(_root.level - 1)];
_root._playAgain(_root, str, str1);
};
submit_btn.onRelease = function () {
trace((((_root.uname + " ") + _root.score) + " ") + _root._gameid);
_root.dataSubmit(_root.uname, _root.score, _root._gameid, _root, "gameOver", "connecting", "highScores");
};
username_txt.onSetFocus = function () {
if (username_txt.text == "Invalid Nickname!") {
username_txt.text = "";
}
};
Selection.setFocus("username_txt");
Symbol 462 Button
on (press) {
_root.cancelcon = true;
if (win) {
_root.cancelSubmit(_root, "win");
} else {
_root.cancelSubmit(_root, "gameOver");
}
}
Symbol 474 MovieClip Frame 9
stop();
playAgain_btn.onRelease = function () {
_root.score = 0;
str = "lblgameintro";
_root._playAgain(_root, str);
};
Symbol 507 MovieClip Frame 1
_root.displayScores(this);
Symbol 528 MovieClip Frame 9
stop();
var checkLevel = 0;
_root.score = (_root.score + _root.levelScore) + _root.timeScore;
next_btn.onRelease = function () {
if ((_root.level % 3) == 0) {
i = 0;
while (i < 3) {
checkLevel = checkLevel + _root.mainLevel[i];
i++;
}
if (checkLevel == 3) {
_root.gotoAndStop("win");
}
_root.gotoAndStop("lblgameIntro");
} else {
_root.gotoAndStop(_root.levelArray[int(_root.level)]);
}
};