Frame 1
function gotoURL() {
getURL ("http://www.games2win.com");
}
function randomRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
this.menu = newMenu;
_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", "level10"];
_root.level = 1;
_root.isEasy = false;
_root.playIntroSound = true;
_root.playerId = 1;
_root.isOver = false;
_root.win = false;
Frame 2
Frame 3
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;
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);
}
}
_root._google_txt.text = "Magic finger";
_root._gameid = "1028";
_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();
Frame 4
Frame 5
Frame 6
stop();
Frame 7
Frame 8
stopAllSounds();
Frame 9
stop();
Instance of Symbol 107 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;
Frame 14
stop();
Frame 15
stop();
stopAllSounds();
_root.level = 2;
_root.hud_mc._visible = true;
Frame 16
stop();
stopAllSounds();
_root.level = 3;
_root.hud_mc._visible = true;
Frame 17
stop();
stopAllSounds();
_root.level = 4;
_root.hud_mc._visible = true;
Frame 18
stop();
Frame 19
stop();
stopAllSounds();
_root.level = 5;
_root.hud_mc._visible = true;
Frame 20
stop();
Frame 21
stop();
stopAllSounds();
_root.level = 6;
_root.hud_mc._visible = true;
Frame 22
stop();
stopAllSounds();
_root.level = 7;
_root.hud_mc._visible = true;
Frame 23
stop();
Frame 24
stop();
stopAllSounds();
_root.level = 8;
_root.hud_mc._visible = true;
Frame 25
stop();
stopAllSounds();
_root.level = 9;
_root.hud_mc._visible = true;
Frame 26
stop();
Frame 27
stop();
stopAllSounds();
_root.level = 10;
_root.hud_mc._visible = true;
Frame 28
stop();
_root.win = true;
Frame 29
stop();
stopAllSounds();
Frame 30
stop();
Frame 31
stop();
Symbol 554 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 39 MovieClip Frame 140
stop();
_root.gotoAndStop("lblloader");
Symbol 42 MovieClip Frame 1
_root._trackClickThru(this);
Symbol 48 MovieClip Frame 1
stop();
var loaded = 0;
onEnterFrame = function () {
loaded = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loaded >= 100) {
_root.gotoAndStop("lblgameintro");
}
};
Symbol 57 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 2
stop();
Symbol 67 MovieClip Frame 30
stop();
Symbol 103 MovieClip Frame 1
if (!_root.playIntro) {
gotoAndStop (120);
}
if (_root.playIntroSound) {
stopAllSounds();
sound_mc.gotoAndStop(2);
}
_root.playIntroSound = false;
_root.playIntro = false;
Symbol 103 MovieClip Frame 81
stop();
story_btn.onRelease = function () {
gotoAndPlay ("story");
};
instructions_btn.onRelease = function () {
gotoAndPlay ("instructions");
};
start_btn.onRelease = function () {
_root.gotoAndStop("select");
};
Symbol 103 MovieClip Frame 90
stop();
start_btn.onRelease = function () {
_root.gotoAndStop("select");
};
back_btn.onRelease = function () {
gotoAndPlay ("lblgameintro");
};
Symbol 103 MovieClip Frame 100
stop();
start_btn.onRelease = function () {
_root.gotoAndStop("select");
};
back_btn.onRelease = function () {
gotoAndPlay ("lblgameintro");
};
Symbol 103 MovieClip Frame 101
gotoAndStop ("lblgameintro");
Symbol 107 MovieClip Frame 1
stop();
_root.allSounds.setVolume(100);
Symbol 107 MovieClip Frame 2
stop();
_root.allSounds.setVolume(0);
Symbol 132 MovieClip Frame 1
b1_btn.onRelease = function () {
_root.playerId = 1;
_root.nextFrame();
};
b2_btn.onRelease = function () {
_root.playerId = 2;
_root.nextFrame();
};
b3_btn.onRelease = function () {
_root.playerId = 4;
_root.nextFrame();
};
b4_btn.onRelease = function () {
_root.playerId = 3;
_root.nextFrame();
};
Symbol 146 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
this._visible = false;
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 147 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 152 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;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local4 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local4 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local4 == "back") {
_parent.bike_mc.speed = 1;
_local4 == "front";
} else {
_parent.bike_mc.speed = -1;
_local4 == "back";
}
}
stopAllSounds();
_root.timeScore = (180 - int(_root.hud_mc.time_txt.text)) * 50;
_root.levelScore = 2000 * _root.level;
_root.score = (_root.score + _root.timeScore) + _root.levelScore;
_parent.bike_mc.hit = true;
_parent.nextFrame();
onEnterFrame = null;
}
}
};
Symbol 156 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 162 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 166 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 170 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 174 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 176 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 178 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 195 MovieClip Frame 5
stop();
_root.gotoAndStop("gameOver");
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 2
stop();
Symbol 198 MovieClip Frame 2
stop();
Symbol 213 MovieClip Frame 5
stop();
_root.gotoAndStop("gameOver");
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 2
stop();
Symbol 225 MovieClip Frame 5
stop();
_root.gotoAndStop("gameOver");
Symbol 226 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 2
stop();
Symbol 237 MovieClip Frame 5
stop();
_root.gotoAndStop("gameOver");
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 2
stop();
Symbol 239 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(38) - Key.isDown(40);
LR = (Key.isDown(39) - Key.isDown(37)) / 2;
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 == 0) {
var _local4 = new Object();
_local4.x = this._x;
_local4.y = this._y;
_parent.localToGlobal(_local4);
blights = _root.attachMovie("breaklite", "breaklite", 100);
blights._x = _local4.x;
blights._y = _local4.y;
blights._rotation = this._rotation;
}
if (speed > MAXskiddisplay) {
steer = steer_handbrake;
}
traction = handbrake_traction / surface;
} else {
blights.removeMovieClip();
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)));
if (_parent.road_mc._y >= roadYpos1) {
dir = "down";
} else if (_parent.road_mc._y <= roadYpos2) {
dir = "up";
}
if (dir == "up") {
if (this._y > 0) {
this._y = this._y + ((vector[1] = vector[1] + (((Math.sin(angle) * speed) - vector[1]) / traction)));
} else {
_parent.road_mc._y = _parent.road_mc._y - ((vector[1] = vector[1] + (((Math.sin(angle) * speed) - vector[1]) / traction)));
}
} else if (dir == "down") {
if (this._y < 0) {
this._y = this._y + ((vector[1] = vector[1] + (((Math.sin(angle) * speed) - vector[1]) / traction)));
} else {
_parent.road_mc._y = _parent.road_mc._y - ((vector[1] = vector[1] + (((Math.sin(angle) * speed) - vector[1]) / traction)));
}
}
}
var blights;
_root.hud_mc._visible = true;
_root.hud_mc.timer = 0;
gotoAndStop(_root.playerId);
var accel = 0.3;
var steer = 0.04;
var steer_normal = 0.08;
var steer_handbrake = 0.099;
var steer_threshold = 4;
var MINspd = -5;
var MAXspd = 15;
var MAXskiddisplay = 2;
var MAXturnSpd = 10;
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 = 2;
var traction_max = 1;
var vector = [0, 0];
var angle = ((this._rotation / 180) * 3.141593);
var skidding = false;
var turnskidding = false;
var hit = false;
var dir = "up";
var roadXpos2 = _parent.road_mc._x;
var roadXpos1 = ((_parent.road_mc._x + _parent.road_mc._width) + 20);
var roadYpos2 = _parent.road_mc._y;
var roadYpos1 = ((_parent.road_mc._y + (_parent.road_mc._height / 2)) - 160);
onEnterFrame = function () {
if (hit != true) {
move();
}
};
stop();
Symbol 239 MovieClip Frame 2
stop();
Symbol 239 MovieClip Frame 3
stop();
Symbol 239 MovieClip Frame 4
stop();
Symbol 250 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 251 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 253 MovieClip Frame 1
onEnterFrame = function () {
if (((Key.isDown(38) || (Key.isDown(40))) || (Key.isDown(37))) || (Key.isDown(39))) {
onEnterFrame = null;
this._visible = false;
}
};
Symbol 256 MovieClip Frame 1
onEnterFrame = function () {
if (((Key.isDown(38) || (Key.isDown(40))) || (Key.isDown(37))) || (Key.isDown(39))) {
onEnterFrame = null;
this._visible = false;
}
};
Symbol 259 MovieClip Frame 29
stop();
Symbol 261 MovieClip Frame 1
Symbol 261 MovieClip Frame 2
stop();
Symbol 275 MovieClip Frame 1
next_btn.onRelease = function () {
_root.nextFrame();
};
Symbol 276 MovieClip Frame 6
stop();
Symbol 276 MovieClip Frame 7
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 2
stop();
_root.hud_mc._visible = false;
Symbol 284 MovieClip Frame 1
var timer = 0;
onEnterFrame = function () {
if (timer < 4500) {
timer++;
time_txt.text = Math.round(timer / 25);
}
};
Symbol 291 MovieClip Frame 1
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
};
Symbol 294 MovieClip Frame 1
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
};
Symbol 302 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 305 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 306 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 307 MovieClip Frame 13
stop();
_root.nextFrame();
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 = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 309 MovieClip Frame 1
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
};
Symbol 310 MovieClip Frame 1
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
};
Symbol 311 MovieClip Frame 1
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
};
Symbol 312 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 314 MovieClip Frame 1
stop();
Symbol 314 MovieClip Frame 2
stop();
_root.hud_mc._visible = false;
Symbol 315 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 2
stop();
_root.hud_mc._visible = false;
Symbol 331 MovieClip Frame 71
stop();
Symbol 338 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 341 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 344 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 347 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
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 = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 364 MovieClip Frame 29
stop();
Symbol 366 MovieClip Frame 1
Symbol 366 MovieClip Frame 2
stop();
Symbol 367 MovieClip Frame 1
stop();
Instance of Symbol 335 MovieClip "road_mc" in Symbol 367 MovieClip Frame 1
/* no clip actions */
Symbol 367 MovieClip Frame 2
stop();
_root.hud_mc._visible = false;
Symbol 368 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Instance of Symbol 335 MovieClip "road_mc" in Symbol 369 MovieClip Frame 2
/* no clip actions */
Symbol 369 MovieClip Frame 9
stop();
_root.nextFrame();
Instance of Symbol 335 MovieClip "road_mc" in Symbol 369 MovieClip Frame 9
/* no clip actions */
Symbol 370 MovieClip Frame 1
stop();
Instance of Symbol 335 MovieClip "road_mc" in Symbol 370 MovieClip Frame 1
/* no clip actions */
Symbol 370 MovieClip Frame 2
stop();
_root.hud_mc._visible = false;
Symbol 376 MovieClip Frame 58
stop();
_root.nextFrame();
Symbol 378 MovieClip Frame 1
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
};
Symbol 379 MovieClip Frame 1
stop();
Instance of Symbol 335 MovieClip "road_mc" in Symbol 379 MovieClip Frame 1
/* no clip actions */
Symbol 379 MovieClip Frame 2
stop();
_root.hud_mc._visible = false;
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 = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 392 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 394 MovieClip Frame 29
stop();
Symbol 396 MovieClip Frame 1
Symbol 396 MovieClip Frame 2
stop();
Symbol 397 MovieClip Frame 1
stop();
Symbol 397 MovieClip Frame 2
stop();
_root.hud_mc._visible = false;
Symbol 407 MovieClip Frame 8
stop();
_root.nextFrame();
Symbol 408 MovieClip Frame 1
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
};
Symbol 409 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 410 MovieClip Frame 1
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
};
Symbol 411 MovieClip Frame 1
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
};
Symbol 412 MovieClip Frame 1
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
};
Symbol 417 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 418 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 419 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 420 MovieClip Frame 1
stop();
Symbol 420 MovieClip Frame 2
stop();
_root.hud_mc._visible = false;
Symbol 427 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 430 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 433 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 434 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 440 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 441 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 444 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 446 MovieClip Frame 29
stop();
Symbol 448 MovieClip Frame 1
Symbol 448 MovieClip Frame 2
stop();
Symbol 449 MovieClip Frame 1
stop();
Symbol 449 MovieClip Frame 2
stop();
_root.hud_mc._visible = false;
Symbol 450 MovieClip Frame 8
stop();
_root.nextFrame();
Symbol 458 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 459 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 462 MovieClip Frame 1
function checkCollision(mc2, mc1, tolerance, scope) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2, 120);
return(_local1);
}
var scope = _parent;
var tolerance = 256;
var initPosX = (_parent.road_mc._x - this._x);
var initPosY = (_parent.road_mc._y - this._y);
onEnterFrame = function () {
if (_parent.bike_mc.hit) {
this.stop();
}
this._x = _parent.road_mc._x - initPosX;
this._y = _parent.road_mc._y - initPosY;
if (this.hitTest(_parent.bike_mc.target_mc)) {
if ((checkCollision(this, _parent.bike_mc) != undefined) || (checkCollision(this, _parent.bike_mc) != null)) {
if (_parent.bike_mc.UD == -1) {
_parent.bike_mc.speed = 1;
var _local3 = "back";
} else if (_parent.bike_mc.UD == 1) {
_parent.bike_mc.speed = -1;
var _local3 = "front";
} else if (_parent.bike_mc.UD == 0) {
if (_local3 == "back") {
_parent.bike_mc.speed = 1;
_local3 == "front";
} else {
_parent.bike_mc.speed = -1;
_local3 == "back";
}
}
stopAllSounds();
_parent.bike_mc.hit = true;
_parent.bike_mc.target_mc.gotoAndStop(2);
onEnterFrame = null;
}
}
};
Symbol 463 MovieClip Frame 1
stop();
Symbol 463 MovieClip Frame 2
stop();
_root.hud_mc._visible = false;
Symbol 472 MovieClip Frame 63
stop();
next_btn.onRelease = function () {
_root.nextFrame();
};
Symbol 475 MovieClip Frame 1
if (_root.win) {
this._visible = false;
}
Symbol 495 Button
on (release) {
_root._newUser();
}
Symbol 496 MovieClip Frame 1
playAgain_btn.onRelease = function () {
_root.score = 0;
var _local2 = _root.levelArray[int(_root.level - 1)];
mystr1 = "playerId|" + _root.playerId;
_root._playAgain(_root, _local2, mystr1);
};
submit_btn.onRelease = function () {
trace((((_root.score + " ") + _root._gameid) + " ") + _root.uname);
_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 497 MovieClip Frame 8
stop();
Symbol 497 MovieClip Frame 9
stop();
Symbol 498 MovieClip Frame 8
stop();
Symbol 518 Button
on (release) {
_root.levelcomplete = 0;
_root.cancelSubmit(_root, "gameOver");
}
Symbol 553 MovieClip Frame 1
stop();
playAgain_btn.onRelease = function () {
_root.score = 0;
_root.playIntro = true;
_root.playIntroSound = true;
_root.level = 1;
mystr = "lblgameintro";
_root._playAgain(_root, mystr);
};
mainMenu_btn.onRelease = function () {
_root.score = 0;
_root.level = 1;
_root.gotoAndStop("select");
};
_root.displayScores(this);