Frame 1
onEnterFrame = function () {
var _local5 = _root.getBytesLoaded();
var _local4 = _root.getBytesTotal();
var _local3 = int((_local5 / _local4) * 100);
bar.gotoAndStop((_local3 / 100) * bar._totalframes);
_root.info_txt.text = ((_local3 / 100) * bar._totalframes) + "%";
if (_root._framesloaded > 2) {
if (_root._url.indexOf("freeworldgroup") == -1) {
}
}
if (_local3 == 100) {
delete this.onEnterFrame;
play();
}
};
Frame 3
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
play();
} else {
stop();
}
Frame 36
stop();
Frame 37
Frame 121
function setMusic(link) {
sound.attachSound(link);
sound.start(0, 100);
}
function setSound(obj) {
if (soundOn == false) {
allSound_snd.setVolume(100);
soundOn = true;
obj.gotoAndStop(1);
} else if (soundOn) {
allSound_snd.setVolume(0);
soundOn = false;
obj.gotoAndStop(2);
}
}
stopAllSounds();
var gameMode = 15;
var sound = new Sound();
var homeSound = new Sound();
homeSound.attachSound("home_sound");
homeSound.start(0, 1000);
var soundOn = true;
var allSound_snd = new Sound();
allSound_snd.setVolume(100);
function game_setQuality(num) {
game_quality = num;
menu_quality.mc_1.gotoAndStop(1);
menu_quality.mc_2.gotoAndStop(1);
menu_quality.mc_3.gotoAndStop(1);
menu_quality.mc_4.gotoAndStop(1);
menu_quality["mc_" + game_quality].gotoAndStop(2);
if (num == 1) {
_quality = "LOW";
} else if (num == 2) {
_quality = "MEDIUM";
} else if (num == 4) {
_quality = "BEST";
} else {
_quality = "HIGH";
}
}
function game_getQuality(obj) {
if (_quality == "LOW") {
game_quality = 1;
} else if (_quality == "MEDIUM") {
game_quality = 2;
} else if (_quality == "BEST") {
game_quality = 4;
} else {
game_quality = 3;
}
obj.mc1.gotoAndStop(1);
obj.mc2.gotoAndStop(1);
obj.mc3.gotoAndStop(1);
obj.mc4.gotoAndStop(1);
obj["mc_" + game_quality].gotoAndStop(2);
menu_quality = obj;
}
stop();
var okStart = false;
trace("homePage*********************");
_root.quality_mc._visible = false;
_root.credits_mc._visible = false;
_root.main_mc._y = 80;
_root.main_mc._xscale = 40;
_root.main_mc._yscale = 40;
_root.main_mc._visible = false;
clearInterval(interval_R);
clearInterval(interval);
var game_quality;
var menu_quality;
onMouseDown = null;
onMouseMove = null;
onMouseUp = null;
Frame 122
function createDrawLand() {
_root.menu_bar_mc.level_txt.text = _root.gameLevel + 1;
_root.menu_bar_mc.life_txt.text = _root.lifeNumber;
_root.main_mc.beMasked_mc._visible = false;
var _local6 = _root.main_mc.createEmptyMovieClip("mask_mc", _root.main_mc.getNextHighestDepth());
var orgPoint;
_root.main_mc._y = 100;
_root.main_mc._xscale = 50;
_root.main_mc._yscale = 50;
_root.sky_mc._yscale = 50;
_root.sky_mc._xscale = 50;
_root.sky_mc._y = 0;
_root.sky_mc._x = 0;
friLine = new org.cove.flade.surfaces.LineSurface(0, 550, 5000, 550);
engine.addSurface(friLine);
engine.addSurface(new org.cove.flade.surfaces.LineSurface(0, 0, 0, 550));
rightRect = new org.cove.flade.surfaces.RectangleTile(4500, 500, 15, 100);
rightRect.setVisible(false);
engine.addSurface(rightRect);
var _local4 = new org.cove.flade.surfaces.LineSurface(0, 120, 70, 150);
_local4.setVisible(false);
engine.addSurface(_local4);
engine.paintSurfaces();
onMouseDown = function () {
temp_arr = new Array();
if (((_root.main_mc._xmouse > left_x) && (_root.main_mc._xmouse < left_xx)) || ((_root.main_mc._xmouse > right_x) && (_root.main_mc._xmouse < right_xx))) {
mouseD = true;
orgPoint = new flash.geom.Point(_root.main_mc._xmouse, _root.main_mc._ymouse);
}
};
onMouseMove = function () {
detect_mc.onRollOut = function () {
_root.trackArr.push(temp_arr);
_root.mouseD = false;
_root.createBoard();
};
detect_mc.onRollOver = function () {
this.useHandCursor = false;
};
if ((mouseD && (!playing)) && (lifeNumber != 0)) {
if ((((_root.main_mc._xmouse > left_x) && (_root.main_mc._xmouse < left_xx)) || ((_root.main_mc._xmouse > right_x) && (_root.main_mc._xmouse < right_xx))) && ((_root.main_mc._ymouse > 146) && (_root.main_mc._ymouse < 550))) {
var _local3 = new flash.geom.Point(_root.main_mc._xmouse, _root.main_mc._ymouse);
if (flash.geom.Point.distance(_local3, orgPoint) > 50) {
if (autoDraw) {
autoPoint = new flash.geom.Point(orgPoint.x, orgPoint.y);
autoDraw = false;
}
var _local4 = new org.cove.flade.surfaces.LineSurface(orgPoint.x, orgPoint.y, _local3.x, _local3.y);
_local4.onContact = function () {
if (_root.farDistance) {
_root.hitBridge = true;
_root.hitBridgePoint = _root.motor_mc._x;
_root.farDistance = false;
}
delete this.onContact;
};
engine.addSurface(_local4);
engine.paintSurfaces();
temp_arr.push(orgPoint);
orgPoint = _local3.clone();
}
} else {
mouseD = false;
}
}
};
onMouseUp = function () {
mouseD = false;
autoDraw = true;
if (flash.geom.Point.distance(autoPoint, __point) < 50) {
var _local2 = new org.cove.flade.surfaces.LineSurface(__point.x, __point.y, autoPoint.x, autoPoint.y);
engine.addSurface(_local2);
engine.paintSurfaces();
autoPoint = new flash.geom.Point(__point.x + 1, __point.y + 1);
}
_root.trackArr.push(temp_arr);
_root.createBoard();
};
}
function createCar() {
_root.sound.attachSound("motor_sound");
_root.sound.start(0, 100);
_root.hitBridgePoint = 0;
_root.hitBridge = false;
_root.farDistance = false;
_root.distance = 0;
_root.speed_H = 0;
_root.Height = 550;
_root.orgTime = getTimer();
engine.setDamping(1.024);
engine.setGravity(0, 1.5);
_root.temp_hitF_a = false;
_root.temp_hitF_b = false;
_root.temp_hitF_c = false;
_root.hitFire = false;
_root.gameover = false;
_root.hitGround = false;
playing = true;
enterFrame = true;
_root.main_mc._x = 0;
_root.main_mc._y = 100;
_root.main_mc._xscale = 150;
_root.main_mc._yscale = 150;
_root.sky_mc._yscale = 150;
_root.sky_mc._xscale = 150;
_root.sky_mc._y = 0;
_root.sky_mc._x = 0;
clearMotor();
var _local3 = 10;
var _local5 = 70;
var _local9 = _local3 + _local5;
var _local10 = _local3 + (_local5 / 2);
var _local4 = 100;
rightRect.onContact = function () {
trace("rightrect");
engine.setSurfaceBounce(0);
engine.setSurfaceFriction(1);
delete rightRect.onContact;
};
friLine.onContact = function () {
engine.setSurfaceBounce(0);
engine.setSurfaceFriction(0.1);
_root.hitGround = true;
delete friLine.onContact;
};
wheelA = new org.cove.flade.primitives.Wheel(_local3, _local4, 13.5);
engine.addPrimitive(wheelA);
wheelA.setVisible(false);
wheelB = new org.cove.flade.primitives.Wheel(_local9, _local4, 13.5);
engine.addPrimitive(wheelB);
wheelB.setVisible(false);
var _local8 = new org.cove.flade.constraints.SpringConstraint(wheelA, wheelB);
engine.addConstraint(_local8);
_local8.setVisible(true);
var _local2 = new org.cove.flade.primitives.CircleParticle(_local10, _local4 - 30, 2, 2);
engine.addPrimitive(_local2);
_local2.setVisible(false);
var _local7 = new org.cove.flade.constraints.SpringConstraint(wheelA, _local2);
engine.addConstraint(_local7);
_local7.setVisible(false);
var _local6 = new org.cove.flade.constraints.SpringConstraint(wheelB, _local2);
engine.addConstraint(_local6);
_local6.setVisible(false);
ang = new org.cove.flade.constraints.AngularConstraint(wheelA, _local2, wheelB);
engine.addConstraint(ang);
angDefault = ang.targetTheta;
engine.paintSurfaces();
engine.setSurfaceBounce(0.1);
engine.setSurfaceFriction(0.005);
}
function reFresh() {
clearInterval(interval_R);
if ((((_root.main_mc._xmouse > left_x) && (_root.main_mc._xmouse < left_xx)) || ((_root.main_mc._xmouse > right_x) && (_root.main_mc._xmouse < right_xx))) && ((_root.main_mc._ymouse > 146) && (_root.main_mc._ymouse < 550))) {
_root.mouse_mc._x = _root._xmouse;
_root.mouse_mc._y = _root._ymouse;
Mouse.hide();
} else {
_root.mouse_mc._x = -1000;
_root.mouse_mc._y = -1000;
Mouse.show();
}
if (enterFrame) {
engine.timeStep();
engine.paintPrimitives();
engine.paintConstraints();
}
if (!_root.pass_mc._visible) {
_root.goodSound.stop("good_sound");
}
if (_root.passLevel && (_root.gameover == false)) {
if ((_root.gameLevel == 5) && (!_root.hitFire)) {
_root.gameover = true;
} else if ((_root.gameLevel == 14) && (!_root.hitFire)) {
_root.gameover = true;
} else if ((_root.gameLevel == 11) && (!_root.hitFire)) {
_root.gameover = true;
} else {
if (!_root.pass_mc._visible) {
goodSound.attachSound("good_sound");
goodSound.start();
}
_root.main_mc.info_mc.gotoAndStop(8);
_root.pass_mc._visible = true;
if (_root.gameLevel == 14) {
_root.pass_mc.gotoAndStop(2);
_root.pass_mc.next_btn._visible = false;
_root.pass_mc.next_mc._visible = false;
}
_root.gameover_mc._visible = false;
gameover = false;
passLevel = false;
}
}
if (((gameover == true) && (lifeNumber == 0)) || ((lifeNumber == 0) && (!playing))) {
enterFrame = false;
_root.main_mc.info_mc.gotoAndStop(1 + Math.ceil(Math.random() * 6));
_root.gameover_mc._visible = true;
_root.pass_mc._visible = false;
gameover = false;
passLevel = false;
lifeNumber = 10;
stoping = false;
}
if ((gameover == true) && (lifeNumber != 0)) {
_root.main_mc.info_mc.gotoAndStop(1 + Math.ceil(Math.random() * 6));
motor_mc._rotation = 0;
motor_mc.play();
driver_mc._rotation = 0;
driver_mc.play();
stoping = false;
enterFrame = false;
}
if (stoping && (!_root.pass_mc._visible)) {
_root.lifeNumber--;
playing = false;
_root.main_mc._x = 0;
_root.main_mc._y = 100;
_root.main_mc._xscale = 50;
_root.main_mc._yscale = 50;
_root.sky_mc._yscale = 50;
_root.sky_mc._xscale = 50;
_root.sky_mc._y = 0;
_root.sky_mc._x = 0;
_root.passLevel = false;
_root.mouseD = false;
_root.enterFrame = false;
_root.gameover = false;
_root.hitGround = false;
_root.clearAll();
_root.engine = new org.cove.flade.DynamicsEngine();
_root.drawTrack();
trace("stop************************");
_root.trackArr = new Array();
_root.createDrawLand();
_root.positionNow();
gameover = false;
enterFrame = false;
stoping = false;
}
if (stoping && (_root.pass_mc._visible)) {
}
if (((!_root.pass_mc._visible) && (!_root.gameover_mc._visible)) && (!_root.gameover)) {
if (_root._xmouse > 770) {
if (_root.main_mc._x > -825) {
_root.main_mc._x = _root.main_mc._x - 20;
_root.sky_mc._x = _root.sky_mc._x - 10;
}
}
if (_root._xmouse < 30) {
if (_root.main_mc._x < -5) {
_root.main_mc._x = _root.main_mc._x + 20;
_root.sky_mc._x = _root.sky_mc._x + 10;
}
}
}
if (((!_root.gameover) && (!_root.passLevel)) && (!stoping)) {
if (_root.distance == 0) {
_root.menu_bar_mc.distance_txt.text = Math.round(_root.distance / 10) + "m";
} else if (Math.round(_root.hitBridgePoint / 10) != 0) {
_root.menu_bar_mc.distance_txt.text = Math.min(Math.round((_root.hitBridgePoint / 10) - 80), Math.round(_root.distance / 10) - 80) + "m";
} else {
_root.menu_bar_mc.distance_txt.text = Math.round((_root.distance / 10) - 80) + "m";
}
_root.menu_bar_mc.height_txt.text = Math.round((550 - _root.Height) / 10) + "m";
var _local2 = Math.floor((getTimer() - _root.orgTime) / 1000);
if (_local2 != 0) {
_root.speed_H = Math.max(_root.speed_H, Math.round((_root.distance / 10) / _local2));
_root.menu_bar_mc.speed_txt.text = (_root.speed_H + 30) + "km/h";
} else {
_root.menu_bar_mc.speed_txt.text = "0km/h";
}
}
interval_R = setInterval(reFresh, 40);
updateAfterEvent();
}
function clearMotor() {
var _local3 = 0;
while (_local3 < engine.primitives.length) {
_root.main_mc[engine.primitives[_local3].drawClipName].removeMovieClip();
_local3++;
}
var _local2 = 0;
while (_local2 < engine.constraints.length) {
_root.main_mc[engine.constraints[_local2].getDrawClipName()].removeMovieClip();
_local2++;
}
engine.constraints = [];
engine.primitives = [];
}
function positionNow() {
setLevel(_root.gameLevel);
left_x = _root.main_mc.left_mc._x;
left_xx = _root.main_mc.left_mc._width + left_x;
_root.main_mc.prop_mc._x = left_xx;
_root.main_mc.right_mc._x = left_xx + _root.main_mc.prop_mc._width;
right_x = _root.main_mc.right_mc._x;
right_xx = _root.main_mc.right_mc._width + right_x;
}
function drawDotLine(_mc, sx, sy, ex, ey) {
var _local9 = ex - sx;
var _local10 = ey - sy;
var _local11 = _local9;
var _local3 = Math.sqrt((_local9 * _local9) + (_local10 * _local10));
var _local8 = Math.round(_local3 / (dotLen + dotDis));
_mc.lineStyle(3, 16777215, 100);
var _local4 = 0;
while (_local4 < _local8) {
_mc.moveTo(sx, sy);
_mc.lineTo(((dotLen * (ex - sx)) / _local3) + sx, ((dotLen * (ey - sy)) / _local3) + sy);
sx = (((dotLen + dotDis) * (ex - sx)) / _local3) + sx;
sy = (((dotDis + dotLen) * (ey - sy)) / _local3) + sy;
_local4++;
}
}
function drawTrack() {
var _local7 = _root.main_mc.line_mc.getNextHighestDepth();
var _local4 = 0;
while (_local4 < _local7) {
if (_local4 > (_local7 - 3)) {
var _local6 = new Color(_root.main_mc.line_mc["_" + _local4]);
_local6.setRGB(65280);
} else {
_root.main_mc.line_mc["_" + _local4].removeMovieClip();
}
_local4++;
}
var _local8 = _root.main_mc.line_mc.createEmptyMovieClip("_" + _root.main_mc.line_mc.getNextHighestDepth(), _root.main_mc.line_mc.getNextHighestDepth());
var _local5 = 0;
while (_local5 < _root.trackArr.length) {
var _local3 = _root.trackArr[_local5];
if (_root.trackArr[_local5].length != 0) {
var _local2 = 0;
while (_local2 < _local3.length) {
drawDotLine(_local8, _local3[_local2].x, _local3[_local2].y, _local3[_local2 - 1].x, _local3[_local2 - 1].y);
_local2++;
}
}
_local5++;
}
}
function clearAll() {
_root.sound.stop("motor_sound");
var _local2 = 0;
while (_local2 < _root.main_mc.getNextHighestDepth()) {
_root.main_mc.getInstanceAtDepth(_local2).removeMovieClip();
_local2++;
}
if (motor_frame_flag) {
_root.engine = new org.cove.flade.DynamicsEngine();
_root.drawTrack();
_root.trackArr = new Array();
_root.createDrawLand();
_root.positionNow();
_root.enterFrame = false;
motor_frame_flag = false;
}
}
function newGame() {
_root.mouseD = false;
_root.enterFrame = false;
_root.gameover = false;
_root.hitGround = false;
_root.playing = false;
_root.timeUp = false;
_root.clearAll();
_root.trackArr = new Array();
_root.engine = new org.cove.flade.DynamicsEngine();
_root.createDrawLand();
_root.positionNow();
_root.main_mc.line_mc.clear();
_root.main_mc._x = 0;
_root.main_mc._y = 100;
_root.sky_mc._y = 0;
_root.sky_mc._x = 0;
}
function createBoard() {
getMinAndMax();
}
function getMinAndMax() {
_root.main_mc.beMasked_mc._visible = true;
var _local3 = 0;
if (temp_arr[1].x > temp_arr[0].x) {
var _local4 = true;
} else {
var _local4 = false;
}
_root.main_mc.mask_mc.beginFill(65280, 100);
_root.main_mc.mask_mc.moveTo(temp_arr[0].x, 550);
_root.main_mc.mask_mc.lineTo(temp_arr[0].x, temp_arr[0].y);
var _local2 = 0;
while (_local2 < temp_arr.length) {
if (_local4) {
if (temp_arr[_local2 + 1].x > temp_arr[_local2].x) {
_root.main_mc.mask_mc.lineTo(temp_arr[_local2 + 1].x, temp_arr[_local2 + 1].y);
_local3 = _local2 + 1;
}
} else if (temp_arr[_local2 + 1].x < temp_arr[_local2].x) {
_root.main_mc.mask_mc.lineTo(temp_arr[_local2 + 1].x, temp_arr[_local2 + 1].y);
_local3 = _local2 + 1;
}
_local2++;
}
_root.main_mc.mask_mc.lineTo(temp_arr[_local3].x, temp_arr[_local3].y);
_root.main_mc.mask_mc.lineTo(temp_arr[_local3].x, 550);
_root.main_mc.mask_mc.endFill();
_root.main_mc.beMasked_mc.setMask(_root.main_mc.mask_mc);
}
function setLevel(n) {
if (n == 0) {
_root.main_mc.prop_mc._width = 210;
_root.main_mc.jumping_mc.m_txt.text = _root.main_mc.prop_mc._width / 10;
var _local7 = _root.main_mc.prop_mc._x;
var _local25 = _root.main_mc.attachMovie("obj_a", "obj_a", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 40, _y:460});
var _local16 = new org.cove.flade.surfaces.RectangleTile(_local7 + 40, 450, 70, 180);
engine.addSurface(_local16);
_local16.setVisible(false);
_local16.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_a.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local22 = _root.main_mc.attachMovie("obj_b", "obj_b", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 180, _y:460});
var _local13 = new org.cove.flade.surfaces.RectangleTile(_local7 + 180, 450, 70, 180);
_local13.setVisible(false);
engine.addSurface(_local13);
_local13.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_b.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
} else if (n == 1) {
_root.main_mc.prop_mc._width = 410;
_root.main_mc.jumping_mc.m_txt.text = _root.main_mc.prop_mc._width / 10;
var _local7 = _root.main_mc.prop_mc._x;
var _local25 = _root.main_mc.attachMovie("obj_a", "obj_a", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 40, _y:460});
var _local16 = new org.cove.flade.surfaces.RectangleTile(_local7 + 40, 450, 70, 180);
engine.addSurface(_local16);
_local16.setVisible(false);
_local16.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_a.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local22 = _root.main_mc.attachMovie("obj_b", "obj_b", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 210, _y:460});
var _local13 = new org.cove.flade.surfaces.RectangleTile(_local7 + 210, 450, 70, 180);
_local13.setVisible(false);
engine.addSurface(_local13);
_local13.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_b.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local9 = _root.main_mc.attachMovie("car_prop_mc", "car_prop_mc", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 360, _y:500});
var _local4 = new org.cove.flade.surfaces.RectangleTile(_local7 + 360, 512, 100, 72);
_local4.setVisible(false);
engine.addSurface(_local4);
_local4.onContact = function () {
_root.main_mc.car_prop_mc.car_body.gotoAndPlay(2);
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
} else if (n == 2) {
_root.main_mc.prop_mc._width = 645;
_root.main_mc.jumping_mc.m_txt.text = _root.main_mc.prop_mc._width / 10;
var _local7 = _root.main_mc.prop_mc._x + 40;
var _local8 = 105;
var _local10 = 360;
var _local3 = 0;
while (_local3 < 2) {
var _local5 = (_local7 + (_local8 / 2)) + (_local10 * _local3);
var _local9 = _root.main_mc.attachMovie("car_prop_mc", "car_prop_mc" + _local3, _root.main_mc.getNextHighestDepth(), {_x:_local5, _y:500});
var _local4 = new org.cove.flade.surfaces.RectangleTile(_local5, 512, _local8, 72);
_local4.setVisible(false);
engine.addSurface(_local4);
_local4.obj_name = _local3;
_local4.onContact = function () {
_root.main_mc["car_prop_mc" + this.obj_name].car_body.gotoAndPlay(2);
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
_local3++;
}
var _local25 = _root.main_mc.attachMovie("obj_a", "obj_a", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 240, _y:460});
var _local16 = new org.cove.flade.surfaces.RectangleTile(_local7 + 240, 450, 70, 180);
_local16.setVisible(false);
engine.addSurface(_local16);
_local16.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_a.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local9 = _root.main_mc.attachMovie("car_prop_mc", "car_prop_mc_a", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 560, _y:500});
var _local12 = new org.cove.flade.surfaces.RectangleTile(_local7 + 560, 512, 105, 72);
_local12.setVisible(false);
engine.addSurface(_local12);
_local4.onContact = function () {
_root.main_mc.car_prop_mc_a.car_body.gotoAndPlay(2);
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
} else if (n == 3) {
_root.main_mc.prop_mc._width = 700;
_root.main_mc.jumping_mc.m_txt.text = _root.main_mc.prop_mc._width / 10;
var _local7 = _root.main_mc.prop_mc._x + 40;
var _local8 = 105;
var _local10 = 280;
var _local3 = 0;
while (_local3 < 3) {
var _local5 = (_local7 + (_local8 / 2)) + (_local10 * _local3);
var _local9 = _root.main_mc.attachMovie("car_prop_mc", "car_prop_mc" + _local3, _root.main_mc.getNextHighestDepth(), {_x:_local5, _y:500});
var _local4 = new org.cove.flade.surfaces.RectangleTile(_local5, 512, _local8, 72);
_local4.setVisible(false);
engine.addSurface(_local4);
_local4.obj_name = _local3;
_local4.onContact = function () {
_root.main_mc["car_prop_mc" + this.obj_name].car_body.gotoAndPlay(2);
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
_local3++;
}
var _local25 = _root.main_mc.attachMovie("obj_a", "obj_a", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 180, _y:460});
var _local16 = new org.cove.flade.surfaces.RectangleTile(_local7 + 180, 450, 70, 180);
_local16.setVisible(false);
engine.addSurface(_local16);
_local16.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_a.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local22 = _root.main_mc.attachMovie("obj_b", "obj_b", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 460, _y:460});
var _local13 = new org.cove.flade.surfaces.RectangleTile(_local7 + 460, 450, 70, 180);
_local13.setVisible(false);
engine.addSurface(_local13);
_local13.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_b.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
} else if (n == 5) {
_root.main_mc.prop_mc._width = 310;
_root.main_mc.jumping_mc.m_txt.text = _root.main_mc.prop_mc._width / 10;
var _local7 = _root.main_mc.prop_mc._x;
var _local25 = _root.main_mc.attachMovie("obj_a", "obj_a", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 40, _y:460});
var _local16 = new org.cove.flade.surfaces.RectangleTile(_local7 + 40, 450, 70, 180);
_local16.setVisible(false);
engine.addSurface(_local16);
_local16.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_a.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local22 = _root.main_mc.attachMovie("obj_b", "obj_b", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 280, _y:460});
var _local13 = new org.cove.flade.surfaces.RectangleTile(_local7 + 280, 450, 70, 180);
_local13.setVisible(false);
engine.addSurface(_local13);
_local13.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_b.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local28 = _root.main_mc.attachMovie("fire_mc", "fire_mc", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 150, _y:125});
var _local12 = new org.cove.flade.surfaces.RectangleTile(980, 390, 20, 70);
_local12.setVisible(false);
engine.addSurface(_local12);
_local12.onContact = function () {
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local11 = new org.cove.flade.surfaces.RectangleTile(980, 150, 20, 20);
_local11.setVisible(false);
_local11.onContact = function () {
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
engine.addSurface(_local11);
} else if (n == 4) {
_root.main_mc.prop_mc._width = 450;
_root.main_mc.jumping_mc.m_txt.text = _root.main_mc.prop_mc._width / 10;
var _local7 = _root.main_mc.prop_mc._x;
var _local9 = _root.main_mc.attachMovie("truck_prop_mc", "truck_prop_mc", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 70, _y:500});
var _local4 = new org.cove.flade.surfaces.RectangleTile(_local7 + 70, 470, 105, 160);
_local4.setVisible(false);
engine.addSurface(_local4);
_local4.onContact = function () {
_root.main_mc.truck_prop_mc.car_body.gotoAndPlay(2);
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local25 = _root.main_mc.attachMovie("obj_a", "obj_a", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 420, _y:460});
var _local16 = new org.cove.flade.surfaces.RectangleTile(_local7 + 420, 450, 70, 180);
engine.addSurface(_local16);
_local16.setVisible(false);
_local16.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_a.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local22 = _root.main_mc.attachMovie("obj_b", "obj_b", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 260, _y:460});
var _local13 = new org.cove.flade.surfaces.RectangleTile(_local7 + 260, 450, 70, 180);
engine.addSurface(_local13);
_local13.setVisible(false);
_local13.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_b.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
} else if (n == 6) {
_root.main_mc.prop_mc._width = 720;
_root.main_mc.jumping_mc.m_txt.text = _root.main_mc.prop_mc._width / 10;
var _local7 = _root.main_mc.prop_mc._x + 40;
var _local8 = 105;
var _local10 = 150;
var _local3 = 0;
while (_local3 < 2) {
var _local5 = (_local7 + (_local8 / 2)) + (_local10 * _local3);
var _local9 = _root.main_mc.attachMovie("truck_prop_mc", "truck_prop_mc" + _local3, _root.main_mc.getNextHighestDepth(), {_x:_local5, _y:500});
var _local4 = new org.cove.flade.surfaces.RectangleTile(_local5, 470, _local8, 160);
engine.addSurface(_local4);
_local4.setVisible(false);
_local4.obj_name = _local3;
_local4.onContact = function () {
_root.main_mc["truck_prop_mc" + this.obj_name].car_body.gotoAndPlay(2);
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
_local3++;
}
var _local9 = _root.main_mc.attachMovie("bus_prop_mc", "bus_prop_mc", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 500, _y:496});
var _local16 = new org.cove.flade.surfaces.RectangleTile(_local7 + 500, 498, 380, 115);
engine.addSurface(_local16);
_local16.setVisible(false);
_local16.onContact = function () {
_root.main_mc.bus_prop_mc.car_body.gotoAndPlay(2);
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
} else if (n == 7) {
_root.main_mc.prop_mc._width = 680;
_root.main_mc.jumping_mc.m_txt.text = _root.main_mc.prop_mc._width / 10;
var _local7 = _root.main_mc.prop_mc._x + 15;
var _local9 = _root.main_mc.attachMovie("bus_prop_mc", "bus_prop_mc", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 195, _y:496});
var _local4 = new org.cove.flade.surfaces.RectangleTile(_local7 + 195, 498, 380, 115);
engine.addSurface(_local4);
_local4.setVisible(false);
_local4.onContact = function () {
_root.main_mc.bus_prop_mc.car_body.gotoAndPlay(2);
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
_local9 = _root.main_mc.attachMovie("truck_prop_mc", "truck_prop_mc", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 500, _y:500});
var _local12 = new org.cove.flade.surfaces.RectangleTile(_local7 + 500, 470, 105, 160);
engine.addSurface(_local12);
_local12.setVisible(false);
_local12.onContact = function () {
_root.main_mc.truck_prop_mc.car_body.gotoAndPlay(2);
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local25 = _root.main_mc.attachMovie("obj_a", "obj_a", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 630, _y:455});
var _local16 = new org.cove.flade.surfaces.RectangleTile(_local7 + 630, 450, 70, 180);
engine.addSurface(_local16);
_local16.setVisible(false);
_local16.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_a.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
} else if (n == 8) {
_root.main_mc.prop_mc._width = 930;
_root.main_mc.jumping_mc.m_txt.text = _root.main_mc.prop_mc._width / 10;
var _local7 = _root.main_mc.prop_mc._x + 15;
var _local8 = 380;
var _local10 = 530;
var _local3 = 0;
while (_local3 < 2) {
var _local5 = (_local7 + (_local8 / 2)) + (_local10 * _local3);
var _local9 = _root.main_mc.attachMovie("bus_prop_mc", "bus_prop_mc" + _local3, _root.main_mc.getNextHighestDepth(), {_x:_local5, _y:500});
var _local4 = new org.cove.flade.surfaces.RectangleTile(_local5, 498, _local8, 115);
engine.addSurface(_local4);
_local4.setVisible(false);
_local4.obj_name = _local3;
_local4.onContact = function () {
_root.main_mc["bus_prop_mc" + this.obj_name].car_body.gotoAndPlay(2);
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
_local3++;
}
var _local25 = _root.main_mc.attachMovie("obj_a", "obj_a", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 440, _y:460});
var _local16 = new org.cove.flade.surfaces.RectangleTile(_local7 + 440, 450, 70, 180);
engine.addSurface(_local16);
_local16.setVisible(false);
_local16.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_a.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
} else if (n == 9) {
_root.main_mc.prop_mc._width = 1100;
_root.main_mc.jumping_mc.m_txt.text = _root.main_mc.prop_mc._width / 10;
var _local7 = _root.main_mc.prop_mc._x + 15;
var _local8 = 380;
var _local10 = 565;
var _local3 = 0;
while (_local3 < 2) {
var _local5 = (_local7 + (_local8 / 2)) + (_local10 * _local3);
var _local9 = _root.main_mc.attachMovie("bus_prop_mc", "bus_prop_mc" + _local3, _root.main_mc.getNextHighestDepth(), {_x:_local5, _y:500});
var _local4 = new org.cove.flade.surfaces.RectangleTile(_local5, 498, _local8, 115);
_local4.setVisible(false);
engine.addSurface(_local4);
_local4.obj_name = _local3;
_local4.onContact = function () {
_root.main_mc["bus_prop_mc" + this.obj_name].car_body.gotoAndPlay(2);
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
_local3++;
}
var _local25 = _root.main_mc.attachMovie("obj_b", "obj_b", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 440, _y:460});
var _local16 = new org.cove.flade.surfaces.RectangleTile(_local7 + 440, 450, 70, 180);
_local16.setVisible(false);
engine.addSurface(_local16);
_local16.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_b.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local22 = _root.main_mc.attachMovie("obj_a", "obj_a", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 510, _y:460});
var _local13 = new org.cove.flade.surfaces.RectangleTile(_local7 + 510, 450, 70, 180);
_local13.setVisible(false);
engine.addSurface(_local13);
_local13.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_a.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local9 = _root.main_mc.attachMovie("car_prop_mc", "car_prop_mc", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 1030, _y:500});
var _local12 = new org.cove.flade.surfaces.RectangleTile(_local7 + 1030, 512, 105, 72);
_local12.setVisible(false);
engine.addSurface(_local12);
_local12.onContact = function () {
_root.main_mc.car_prop_mc.car_body.gotoAndPlay(2);
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
} else if (n == 10) {
_root.main_mc.prop_mc._width = 1060;
_root.main_mc.jumping_mc.m_txt.text = _root.main_mc.prop_mc._width / 10;
var _local7 = _root.main_mc.prop_mc._x;
var _local8 = 70;
var _local10 = 82;
var _local3 = 0;
while (_local3 < 13) {
var _local5 = (_local7 + (_local8 / 2)) + (_local10 * _local3);
if (((_local3 == 1) || (_local3 == 11)) || (_local3 == 7)) {
var _local25 = _root.main_mc.attachMovie("obj_b", "obj_a" + _local3, _root.main_mc.getNextHighestDepth(), {_x:_local5, _y:460});
} else {
var _local25 = _root.main_mc.attachMovie("obj_a", "obj_a" + _local3, _root.main_mc.getNextHighestDepth(), {_x:_local5, _y:460});
}
var _local16 = new org.cove.flade.surfaces.RectangleTile(_local5, 450, _local8, 180);
engine.addSurface(_local16);
_local16.setVisible(false);
_local16.obj_name = _local3;
_local16.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc["obj_a" + this.obj_name].gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
_local3++;
}
} else if (n == 11) {
_root.main_mc.prop_mc._width = 1050;
_root.main_mc.jumping_mc.m_txt.text = _root.main_mc.prop_mc._width / 10;
var _local7 = _root.main_mc.prop_mc._x;
var _local8 = 220;
var _local10 = 240;
var _local3 = 0;
while (_local3 < 2) {
var _local5 = (_local7 + (_local8 / 2)) + (_local10 * _local3);
var _local25 = _root.main_mc.attachMovie("roadster_prop_mc", "roadster_prop_mc" + _local3, _root.main_mc.getNextHighestDepth(), {_x:_local5, _y:500});
var _local16 = new org.cove.flade.surfaces.RectangleTile(_local5, 510, _local8, 70);
engine.addSurface(_local16);
_local16.setVisible(false);
_local16.obj_name = _local3;
_local16.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.main_mc["roadster_prop_mc" + this.obj_name].car_body.gotoAndPlay(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
_local3++;
}
var _local9 = _root.main_mc.attachMovie("car_prop_mc", "car_prop_mc", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 1000, _y:500});
var _local12 = new org.cove.flade.surfaces.RectangleTile(_local7 + 1000, 512, 105, 72);
_local12.setVisible(false);
engine.addSurface(_local12);
_local12.onContact = function () {
_root.main_mc.car_prop_mc.car_body.gotoAndPlay(2);
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local28 = _root.main_mc.attachMovie("fire_mc", "fire_mc", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 490, _y:125});
var _local20 = new org.cove.flade.surfaces.RectangleTile(_local7 + 505, 390, 20, 70);
_local20.setVisible(false);
engine.addSurface(_local20);
_local20.onContact = function () {
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local11 = new org.cove.flade.surfaces.RectangleTile(_local7 + 505, 150, 20, 20);
_local11.setVisible(false);
_local11.onContact = function () {
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
engine.addSurface(_local11);
_local9 = _root.main_mc.attachMovie("bus_prop_mc", "bus_prop_mc", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 720, _y:496});
var _local4 = new org.cove.flade.surfaces.RectangleTile(_local7 + 720, 480, 380, 150);
engine.addSurface(_local4);
_local4.setVisible(false);
_local4.onContact = function () {
_root.main_mc.bus_prop_mc.car_body.gotoAndPlay(2);
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
} else if (n == 12) {
_root.main_mc.prop_mc._width = 1160;
_root.main_mc.jumping_mc.m_txt.text = _root.main_mc.prop_mc._width / 10;
var _local7 = _root.main_mc.prop_mc._x + 15;
var _local8 = 105;
var _local10 = 120;
var _local3 = 0;
while (_local3 < 5) {
var _local5 = ((_local7 + (_local8 / 2)) + (_local10 * _local3)) + 70;
var _local9 = _root.main_mc.attachMovie("truck_prop_mc", "truck_prop_mc" + _local3, _root.main_mc.getNextHighestDepth(), {_x:_local5, _y:500});
var _local4 = new org.cove.flade.surfaces.RectangleTile(_local5, 470, _local8, 160);
_local4.setVisible(false);
engine.addSurface(_local4);
_local4.obj_name = _local3;
_local4.onContact = function () {
_root.main_mc["truck_prop_mc" + this.obj_name].car_body.gotoAndPlay(2);
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
_local3++;
}
var _local25 = _root.main_mc.attachMovie("obj_b", "obj_b", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 1110, _y:460});
var _local16 = new org.cove.flade.surfaces.RectangleTile(_local7 + 1110, 450, 70, 180);
_local16.setVisible(false);
engine.addSurface(_local16);
_local16.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_b.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local9 = _root.main_mc.attachMovie("bus_prop_mc", "bus_prop_mc", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 860, _y:496});
var _local4 = new org.cove.flade.surfaces.RectangleTile(_local7 + 860, 480, 380, 150);
engine.addSurface(_local4);
_local4.setVisible(false);
_local4.onContact = function () {
_root.main_mc.bus_prop_mc.car_body.gotoAndPlay(2);
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local22 = _root.main_mc.attachMovie("obj_a", "obj_a", _root.main_mc.getNextHighestDepth(), {_x:_local7, _y:460});
var _local13 = new org.cove.flade.surfaces.RectangleTile(_local7, 450, 70, 180);
_local13.setVisible(false);
engine.addSurface(_local13);
_local13.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_a.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
} else if (n == 13) {
_root.main_mc.prop_mc._width = 1140;
_root.main_mc.jumping_mc.m_txt.text = _root.main_mc.prop_mc._width / 10;
var _local7 = _root.main_mc.prop_mc._x + 40;
var _local8 = 105;
var _local10 = 110;
var _local3 = 0;
while (_local3 < 2) {
var _local5 = ((_local7 + (_local8 / 2)) + (_local10 * _local3)) + 80;
var _local9 = _root.main_mc.attachMovie("car_prop_mc", "car_prop_mc" + _local3, _root.main_mc.getNextHighestDepth(), {_x:_local5, _y:500});
var _local4 = new org.cove.flade.surfaces.RectangleTile(_local5, 512, _local8, 72);
_local4.setVisible(false);
engine.addSurface(_local4);
_local4.obj_name = _local3;
_local4.onContact = function () {
_root.main_mc["car_prop_mc" + this.obj_name].car_body.gotoAndPlay(2);
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
_local3++;
}
var _local22 = _root.main_mc.attachMovie("obj_a", "obj_a", _root.main_mc.getNextHighestDepth(), {_x:_local7, _y:460});
var _local13 = new org.cove.flade.surfaces.RectangleTile(_local7, 450, 70, 180);
_local13.setVisible(false);
engine.addSurface(_local13);
_local13.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_a.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local23 = _root.main_mc.attachMovie("obj_b", "obj_bb", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 350, _y:460});
var _local14 = new org.cove.flade.surfaces.RectangleTile(_local7 + 350, 450, 70, 180);
_local14.setVisible(false);
engine.addSurface(_local14);
_local14.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_bb.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local25 = _root.main_mc.attachMovie("obj_b", "obj_b", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 930, _y:460});
var _local16 = new org.cove.flade.surfaces.RectangleTile(_local7 + 930, 450, 70, 180);
_local16.setVisible(false);
engine.addSurface(_local16);
_local16.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_b.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local26 = _root.main_mc.attachMovie("obj_b", "obj_ba", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 1070, _y:460});
var _local17 = new org.cove.flade.surfaces.RectangleTile(_local7 + 1070, 450, 70, 180);
_local17.setVisible(false);
engine.addSurface(_local17);
_local17.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_ba.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
_local8 = 220;
_local10 = 240;
_local3 = 0;
while (_local3 < 2) {
var _local5 = ((_local7 + (_local8 / 2)) + (_local10 * _local3)) + 400;
_local25 = _root.main_mc.attachMovie("roadster_prop_mc", "roadster_prop_mc" + _local3, _root.main_mc.getNextHighestDepth(), {_x:_local5, _y:500});
_local16 = new org.cove.flade.surfaces.RectangleTile(_local5, 510, _local8, 70);
engine.addSurface(_local16);
_local16.setVisible(false);
_local16.obj_name = _local3;
_local16.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.main_mc["roadster_prop_mc" + this.obj_name].car_body.gotoAndPlay(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
_local3++;
}
} else if (n == 14) {
_root.main_mc.prop_mc._width = 900;
_root.main_mc.jumping_mc.m_txt.text = _root.main_mc.prop_mc._width / 10;
var _local7 = _root.main_mc.prop_mc._x + 40;
var _local22 = _root.main_mc.attachMovie("obj_a", "obj_a", _root.main_mc.getNextHighestDepth(), {_x:_local7, _y:460});
var _local13 = new org.cove.flade.surfaces.RectangleTile(_local7, 450, 70, 180);
_local13.setVisible(false);
engine.addSurface(_local13);
_local13.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_a.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local25 = _root.main_mc.attachMovie("obj_b", "obj_b", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 830, _y:460});
var _local16 = new org.cove.flade.surfaces.RectangleTile(_local7 + 830, 450, 70, 180);
_local16.setVisible(false);
engine.addSurface(_local16);
_local16.onContact = function () {
_root.hitAllence = true;
_root.sound.stop("motor_sound");
_root.sound.attachSound("objCrashed_sound");
_root.sound.start(0, 1);
_root.main_mc.obj_b.gotoAndStop(2);
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local28 = _root.main_mc.attachMovie("fire_mc", "fire_mc", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 550, _y:125});
var _local20 = new org.cove.flade.surfaces.RectangleTile(_local7 + 565, 390, 20, 70);
_local20.setVisible(false);
engine.addSurface(_local20);
_local20.onContact = function () {
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local11 = new org.cove.flade.surfaces.RectangleTile(_local7 + 565, 150, 20, 20);
_local11.setVisible(false);
_local11.onContact = function () {
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
engine.addSurface(_local11);
_local28 = _root.main_mc.attachMovie("fire_mc", "fire_mc_b", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 255, _y:125});
var _local19 = new org.cove.flade.surfaces.RectangleTile(_local7 + 270, 390, 20, 70);
_local19.setVisible(false);
engine.addSurface(_local19);
_local19.onContact = function () {
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local21 = new org.cove.flade.surfaces.RectangleTile(_local7 + 270, 150, 20, 20);
_local21.setVisible(false);
_local21.onContact = function () {
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
engine.addSurface(_local11);
_local28 = _root.main_mc.attachMovie("fire_mc", "fire_mc_a", _root.main_mc.getNextHighestDepth(), {_x:_local7 + 405, _y:125});
var _local18 = new org.cove.flade.surfaces.RectangleTile(_local7 + 420, 390, 20, 70);
_local18.setVisible(false);
engine.addSurface(_local18);
_local18.onContact = function () {
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
var _local15 = new org.cove.flade.surfaces.RectangleTile(_local7 + 420, 150, 20, 20);
_local15.setVisible(false);
_local15.onContact = function () {
_root.sound.stop("motor_sound");
if (!_root.passLevel) {
_root.gameover = true;
}
delete this.onContact;
};
engine.addSurface(_local15);
}
}
function getDistance(n) {
_root.distance = Math.max(_root.distance, n);
}
function get_Height(n) {
_root.Height = Math.min(_root.Height, n);
}
function gogogo() {
var v = 40;
var a = 2;
_root.motor_mc._y = 540;
_root.motor_mc._rotation = 0;
_root.driver_mc._rotation = 0;
_root.driver_mc._y = 510;
this.onEnterFrame = function () {
_root.motor_mc._x = _root.motor_mc._x + v;
_root.driver_mc._x = _root.motor_mc._x + 38;
_root.main_mc._x = 300 - (_root.motor_mc._x * 1.5);
v = v - a;
if (v <= 0) {
_root.motor_mc.wheelA_mc.stop();
_root.motor_mc.wheelB_mc.stop();
_root.sound.stop("motor_sound");
delete this.onEnterFrame;
}
};
}
stop();
trace("startGame****************");
_root.main_mc.cacheAsBitmap = true;
clearInterval(interval_R);
clearInterval(interval);
var startTime;
var hitAllence = false;
var gameLevelTime = [45, 45, 45, 45, 45, 45, 45];
var gameLevel = 0;
var engine;
var ang;
var angDefault;
engine = new org.cove.flade.DynamicsEngine();
var wheelA;
var wheelB;
var mouseD = false;
var enterFrame = false;
var dotLen = 2;
var dotDis = 3;
var dashColor;
var temp_x;
var temp_y;
var trackArr = new Array();
var dotLineArr = new Array();
var org_x;
var org_y;
var start_x;
var start_y;
var playing = false;
var left_x;
var left_xx;
var right_x;
var right_xx;
var lifeNumber = _root.gameMode;
var hitGround = false;
var motor_rotation;
var gameover = false;
var passLevel = false;
var hitFire = false;
var motor_frame_flag = false;
var stoping = false;
var okStart = true;
var hitBridge = false;
var farDistance = false;
var rightRect;
var friLine;
var temp_arr;
_root.gameover_mc._visible = false;
_root.pass_mc._visible = false;
_root.main_mc._visible = true;
_root.menu_bar_mc._visible = true;
var hitBridgePoint = 0;
var autoDraw = true;
var autoPoint;
var __point = (new flash.geom.Point(70, 150));
_root.createDrawLand();
_root.positionNow();
var motorSound = new Sound();
menu_bar_mc.play_btn.onRelease = createCar;
var goodSound = new Sound();
var motor_mc;
var driver_mc;
var interval_R;
if (interval_R != null) {
clearInterval(interval_R);
}
reFresh();
var offBoard = 50;
var temp_hitF_a = false;
var temp_hitF_b = false;
var temp_hitF_c = false;
var distance = 0;
var speed_H = 0;
var Height = 550;
var orgTime = 0;
Symbol 6 MovieClip Frame 1
stop();
Symbol 6 MovieClip Frame 100
stop();
Symbol 600 MovieClip [__Packages.org.cove.flade.primitives.Particle] Frame 0
class org.cove.flade.primitives.Particle
{
var init, curr, prev, temp, extents, bmin, bmax, mtd, isVisible, drawClipName, dmc;
function Particle (posX, posY) {
init = new org.cove.flade.util.Vector(posX, posY);
curr = new org.cove.flade.util.Vector(posX, posY);
prev = new org.cove.flade.util.Vector(posX, posY);
temp = new org.cove.flade.util.Vector(0, 0);
extents = new org.cove.flade.util.Vector(0, 0);
bmin = 0;
bmax = 0;
mtd = new org.cove.flade.util.Vector(0, 0);
initializeContainer();
isVisible = true;
}
function initializeContainer() {
var _local3 = _root.main_mc.getNextHighestDepth();
drawClipName = "_" + _local3;
dmc = _root.main_mc.createEmptyMovieClip(drawClipName, _local3);
}
function setVisible(v) {
isVisible = v;
}
function verlet(sysObj) {
temp.x = curr.x;
temp.y = curr.y;
curr.x = curr.x + ((sysObj.coeffDamp * (curr.x - prev.x)) + sysObj.gravity.x);
curr.y = curr.y + ((sysObj.coeffDamp * (curr.y - prev.y)) + sysObj.gravity.y);
prev.x = temp.x;
prev.y = temp.y;
}
function pin() {
curr.x = init.x;
curr.y = init.y;
prev.x = init.x;
prev.y = init.y;
}
function setPos(px, py) {
curr.x = px;
curr.y = py;
prev.x = px;
prev.y = py;
}
function getCardXProjection() {
bmin = curr.x - extents.x;
bmax = curr.x + extents.x;
}
function getCardYProjection() {
bmin = curr.y - extents.y;
bmax = curr.y + extents.y;
}
function getAxisProjection(axis) {
var _local5 = new org.cove.flade.util.Vector(Math.abs(axis.x), Math.abs(axis.y));
var _local2 = curr.dot(axis);
var _local3 = extents.dot(_local5);
bmin = _local2 - _local3;
bmax = _local2 + _local3;
}
function setMTD(depthX, depthY, depthN, surfNormal) {
var _local4 = Math.abs(depthX);
var _local3 = Math.abs(depthY);
var _local2 = Math.abs(depthN);
if ((_local4 < _local3) && (_local4 < _local2)) {
mtd.setTo(depthX, 0);
} else if ((_local3 < _local4) && (_local3 < _local2)) {
mtd.setTo(0, depthY);
} else if ((_local2 < _local4) && (_local2 < _local3)) {
mtd = surfNormal.multNew(depthN);
}
}
function setXYMTD(depthX, depthY) {
var _local3 = Math.abs(depthX);
var _local2 = Math.abs(depthY);
if (_local3 < _local2) {
mtd.setTo(depthX, 0);
} else {
mtd.setTo(0, depthY);
}
}
function resolveCollision(normal, sysObj) {
var _local2 = curr.minusNew(prev);
var _local3 = normal.dot(_local2);
var _local8 = _local2.minusNew(normal.multNew(_local3));
var _local4 = _local8.multNew(sysObj.coeffFric);
var _local5 = normal.multNew(_local3 * sysObj.coeffRest);
var _local6 = _local5.plusNew(_local4);
var _local7 = _local2.minusNew(_local6);
curr.plus(mtd);
prev = curr.minusNew(_local7);
}
function paint() {
}
function destroyPaint() {
}
function checkCollision(surface, sysObj) {
}
}
Symbol 601 MovieClip [__Packages.org.cove.flade.util.Vector] Frame 0
class org.cove.flade.util.Vector
{
var x, y;
function Vector (px, py) {
x = px;
y = py;
}
function setTo(px, py) {
x = px;
y = py;
}
function copy(v) {
x = v.x;
y = v.y;
}
function dot(v) {
return((x * v.x) + (y * v.y));
}
function cross(v) {
return((x * v.y) - (y * v.x));
}
function plus(v) {
x = x + v.x;
y = y + v.y;
return(this);
}
function plusNew(v) {
return(new org.cove.flade.util.Vector(x + v.x, y + v.y));
}
function minus(v) {
x = x - v.x;
y = y - v.y;
return(this);
}
function minusNew(v) {
return(new org.cove.flade.util.Vector(x - v.x, y - v.y));
}
function mult(s) {
x = x * s;
y = y * s;
return(this);
}
function multNew(s) {
return(new org.cove.flade.util.Vector(x * s, y * s));
}
function distance(v) {
var _local3 = x - v.x;
var _local2 = y - v.y;
return(Math.sqrt((_local3 * _local3) + (_local2 * _local2)));
}
function normalize() {
var _local2 = Math.sqrt((x * x) + (y * y));
x = x / _local2;
y = y / _local2;
return(this);
}
function magnitude() {
return(Math.sqrt((x * x) + (y * y)));
}
function project(b) {
var _local5 = dot(b);
var _local4 = (b.x * b.x) + (b.y * b.y);
var _local3 = new org.cove.flade.util.Vector(0, 0);
_local3.x = (_local5 / _local4) * b.x;
_local3.y = (_local5 / _local4) * b.y;
return(_local3);
}
}
Symbol 602 MovieClip [__Packages.org.cove.flade.DynamicsEngine] Frame 0
class org.cove.flade.DynamicsEngine
{
var primitives, surfaces, constraints, gravity, coeffRest, coeffFric, coeffDamp;
function DynamicsEngine () {
primitives = new Array();
surfaces = new Array();
constraints = new Array();
gravity = new org.cove.flade.util.Vector(0, 1);
coeffRest = 1.5;
coeffFric = 0.01;
coeffDamp = 0.99;
}
function addPrimitive(p) {
primitives.push(p);
}
function addSurface(s) {
surfaces.push(s);
}
function addConstraint(c) {
constraints.push(c);
}
function paintSurfaces() {
var _local2 = 0;
while (_local2 < surfaces.length) {
surfaces[_local2].paint();
_local2++;
}
}
function paintPrimitives() {
var _local2 = 0;
while (_local2 < primitives.length) {
primitives[_local2].paint();
_local2++;
}
}
function paintConstraints() {
var _local2 = 0;
while (_local2 < constraints.length) {
constraints[_local2].paint();
_local2++;
}
}
function destroyPaintedPrimitives() {
var _local2 = 0;
while (_local2 < primitives.length) {
primitives[_local2].destroyPaint();
_local2++;
}
}
function destroyPaintedConstraints() {
var _local2 = 0;
while (_local2 < constraints.length) {
constraints[_local2].destroyPaint();
_local2++;
}
}
function timeStep() {
verlet();
satisfyConstraints();
checkCollisions();
}
function setSurfaceBounce(kfr) {
coeffRest = 1 + kfr;
}
function setSurfaceFriction(f) {
coeffFric = f;
}
function setDamping(d) {
coeffDamp = d;
}
function setGravity(gx, gy) {
gravity.x = gx;
gravity.y = gy;
}
function verlet() {
var _local2 = 0;
while (_local2 < primitives.length) {
primitives[_local2].verlet(this);
_local2++;
}
}
function satisfyConstraints() {
var _local2 = 0;
while (_local2 < constraints.length) {
constraints[_local2].resolve();
_local2++;
}
}
function checkCollisions() {
var _local4 = 0;
while (_local4 < surfaces.length) {
var _local3 = surfaces[_local4];
if (_local3.getActiveState()) {
var _local2 = 0;
while (_local2 < primitives.length) {
primitives[_local2].checkCollision(_local3, this);
_local2++;
}
}
_local4++;
}
}
}
Symbol 603 MovieClip [__Packages.org.cove.flade.surfaces.Surface] Frame 0
interface org.cove.flade.surfaces.Surface
{
}
Symbol 604 MovieClip [__Packages.org.cove.flade.primitives.RectangleParticle] Frame 0
class org.cove.flade.primitives.RectangleParticle extends org.cove.flade.primitives.Particle
{
var width, height, vertex, extents, isVisible, dmc, curr;
function RectangleParticle (px, py, w, h) {
super(px, py);
width = w;
height = h;
vertex = new org.cove.flade.util.Vector(0, 0);
extents = new org.cove.flade.util.Vector(w / 2, h / 2);
}
function paint() {
if (isVisible) {
dmc.clear();
dmc.lineStyle(0, 6710886, 100);
org.cove.flade.graphics.Graphics.paintRectangle(dmc, curr.x, curr.y, width, height);
}
}
function destroyPaint() {
dmc.clear();
}
function checkCollision(surface, sysObj) {
surface.resolveRectangleCollision(this, sysObj);
}
}
Symbol 605 MovieClip [__Packages.org.cove.flade.graphics.Graphics] Frame 0
class org.cove.flade.graphics.Graphics
{
function Graphics () {
}
static function paintLine(dmc, x0, y0, x1, y1) {
dmc.moveTo(x0, y0);
dmc.lineTo(x1, y1);
}
static function paintCircle(dmc, x, y, r) {
var mtp8r = (0.414213562373095 * r);
var msp4r = (0.707106781186547 * r);
with (dmc) {
moveTo(x + r, y);
curveTo(r + x, mtp8r + y, msp4r + x, msp4r + y);
curveTo(mtp8r + x, r + y, x, r + y);
curveTo((-mtp8r) + x, r + y, (-msp4r) + x, msp4r + y);
curveTo((-r) + x, mtp8r + y, (-r) + x, y);
curveTo((-r) + x, (-mtp8r) + y, (-msp4r) + x, (-msp4r) + y);
curveTo((-mtp8r) + x, (-r) + y, x, (-r) + y);
curveTo(mtp8r + x, (-r) + y, msp4r + x, (-msp4r) + y);
curveTo(r + x, (-mtp8r) + y, r + x, y);
}
}
static function paintRectangle(dmc, x, y, w, h) {
var w2 = (w / 2);
var h2 = (h / 2);
with (dmc) {
moveTo(x - w2, y - h2);
lineTo(x + w2, y - h2);
lineTo(x + w2, y + h2);
lineTo(x - w2, y + h2);
lineTo(x - w2, y - h2);
}
}
}
Symbol 606 MovieClip [__Packages.org.cove.flade.constraints.Constraint] Frame 0
interface org.cove.flade.constraints.Constraint
{
}
Symbol 607 MovieClip [__Packages.org.cove.flade.primitives.CircleParticle] Frame 0
class org.cove.flade.primitives.CircleParticle extends org.cove.flade.primitives.Particle
{
var interval_id, radius, contactRadius, extents, closestPoint, dmc, curr;
function CircleParticle (px, py, r) {
super(px, py);
if (interval_id != null) {
clearInterval(interval_id);
}
radius = r;
contactRadius = r;
extents = new org.cove.flade.util.Vector(r, r);
closestPoint = new org.cove.flade.util.Vector(0, 0);
}
function passFun(_mc) {
}
function paint() {
dmc.clear();
dmc.lineStyle(0, 6710886, 100);
var _local3 = dmc.attachMovie("man", "man", 0);
_root.driver_mc = _local3;
_local3._x = curr.x;
_local3._y = curr.y;
_local3._rotation = _root.motor_rotation;
_local3.body_mc.gotoAndStop(3);
if (_root.hitGround) {
if (_root.hitBridge) {
_local3.body_mc.gotoAndStop(1);
if ((((_root.motor_rotation == 0) && (_local3._x > _root.main_mc.right_mc._x)) && (_local3._y > 498)) && (!_root.gameover)) {
_local3.body_mc.gotoAndStop(6);
_root.passLevel = true;
_root.enterFrame = false;
_root.gogogo();
}
} else {
_root.gameover = true;
}
}
if ((_root.gameLevel == 5) || (_root.gameLevel == 11)) {
if (_root.main_mc.fire_mc.hit_mc.hitTest(_local3.body_mc)) {
_root.hitFire = true;
}
}
if (_root.gameLevel == 14) {
if (_root.main_mc.fire_mc.hit_mc.hitTest(_local3.body_mc)) {
_root.temp_hitF_a = true;
}
if (_root.main_mc.fire_mc_a.hit_mc.hitTest(_local3.body_mc)) {
_root.temp_hitF_b = true;
}
if (_root.main_mc.fire_mc_b.hit_mc.hitTest(_local3.body_mc)) {
_root.temp_hitF_c = true;
}
if ((_root.temp_hitF_a && (_root.temp_hitF_b)) && (_root.temp_hitF_c)) {
_root.hitFire = true;
}
}
if (curr.y >= 540) {
if (!_root.pass_mc._visible) {
_root.gameover = true;
}
_root.enterFrame = false;
}
org.cove.flade.graphics.Graphics.paintCircle(dmc, curr.x, curr.y, radius);
}
function destroyPaint() {
dmc.clear();
}
function checkCollision(surface, sysObj) {
surface.resolveCircleCollision(this, sysObj);
}
}
Symbol 608 MovieClip [__Packages.org.cove.flade.constraints.AngularConstraint] Frame 0
class org.cove.flade.constraints.AngularConstraint implements org.cove.flade.constraints.Constraint
{
var pA, pB, pC, lineA, lineB, pD, lineC, targetTheta, stiffness;
function AngularConstraint (p1, p2, p3) {
pA = p1.curr;
pB = p2.curr;
pC = p3.curr;
lineA = new org.cove.flade.util.Line(pA, pB);
lineB = new org.cove.flade.util.Line(pB, pC);
pD = new org.cove.flade.util.Vector(pB.x + 0, pB.y - 1);
lineC = new org.cove.flade.util.Line(pB, pD);
targetTheta = calcTheta(pA, pB, pC);
stiffness = 1;
}
function resolve() {
var _local5 = getCentroid();
lineC.p2.x = lineC.p1.x + 0;
lineC.p2.y = lineC.p1.y - 1;
var _local9 = pA.distance(pB);
var _local8 = pB.distance(pC);
var _local12 = calcTheta(pA, pB, pC);
var _local13 = calcTheta(pA, pB, pD);
var _local11 = calcTheta(pC, pB, pD);
var _local6 = (targetTheta - _local12) / 2;
var _local10 = _local13 + (_local6 * stiffness);
var _local4 = _local11 - (_local6 * stiffness);
pA.x = (_local9 * Math.sin(_local10)) + pB.x;
pA.y = (_local9 * Math.cos(_local10)) + pB.y;
pC.x = (_local8 * Math.sin(_local4)) + pB.x;
pC.y = (_local8 * Math.cos(_local4)) + pB.y;
var _local7 = getCentroid();
var _local3 = _local7.x - _local5.x;
var _local2 = _local7.y - _local5.y;
pA.x = pA.x - _local3;
pA.y = pA.y - _local2;
pB.x = pB.x - _local3;
pB.y = pB.y - _local2;
pC.x = pC.x - _local3;
pC.y = pC.y - _local2;
}
function paint() {
}
function destroyPaint() {
}
function getDrawClipName() {
return("");
}
function setStiffness(s) {
stiffness = s;
}
function calcTheta(pa, pb, pc) {
var _local2 = new org.cove.flade.util.Vector(pb.x - pa.x, pb.y - pa.y);
var _local3 = new org.cove.flade.util.Vector(pc.x - pb.x, pc.y - pb.y);
var _local4 = _local2.dot(_local3);
var _local5 = _local2.cross(_local3);
return(Math.atan2(_local5, _local4));
}
function getCentroid() {
var _local3 = ((pA.x + pB.x) + pC.x) / 3;
var _local2 = ((pA.y + pB.y) + pC.y) / 3;
return(new org.cove.flade.util.Vector(_local3, _local2));
}
}
Symbol 609 MovieClip [__Packages.org.cove.flade.util.Line] Frame 0
class org.cove.flade.util.Line
{
var p1, p2;
function Line (p1, p2) {
this.p1 = p1;
this.p2 = p2;
}
}
Symbol 610 MovieClip [__Packages.org.cove.flade.primitives.Wheel] Frame 0
class org.cove.flade.primitives.Wheel extends org.cove.flade.primitives.CircleParticle
{
var rp, coeffSlip, isVisible, curr, dmc, radius, prev;
function Wheel (x, y, r) {
super(x, y, r);
rp = new org.cove.flade.primitives.RimParticle(r, 2);
coeffSlip = 0;
}
function verlet(sysObj) {
rp.verlet(sysObj);
super.verlet(sysObj);
}
function resolveCollision(normal, sysObj) {
super.resolveCollision(normal, sysObj);
resolve(normal);
}
function paint() {
if (isVisible) {
var _local3 = curr.x;
var _local2 = curr.y;
var _local5 = rp.curr.x;
var _local4 = rp.curr.y;
dmc.clear();
dmc.lineStyle(0, 2237064, 100);
org.cove.flade.graphics.Graphics.paintCircle(dmc, _local3, _local2, radius);
dmc.lineStyle(0, 10066329, 100);
org.cove.flade.graphics.Graphics.paintLine(dmc, _local5 + _local3, _local4 + _local2, _local3, _local2);
org.cove.flade.graphics.Graphics.paintLine(dmc, (-_local5) + _local3, (-_local4) + _local2, _local3, _local2);
org.cove.flade.graphics.Graphics.paintLine(dmc, (-_local4) + _local3, _local5 + _local2, _local3, _local2);
org.cove.flade.graphics.Graphics.paintLine(dmc, _local4 + _local3, (-_local5) + _local2, _local3, _local2);
}
}
function destroyPaint() {
dmc.clear();
}
function setTraction(t) {
coeffSlip = t;
}
function resolve(n) {
var _local3 = -rp.curr.y;
var _local2 = rp.curr.x;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
_local3 = _local3 / _local4;
_local2 = _local2 / _local4;
var _local13 = _local3 * rp.speed;
var _local11 = _local2 * rp.speed;
var _local12 = curr.x - prev.x;
var _local10 = curr.y - prev.y;
var _local9 = _local12 + _local13;
var _local8 = _local10 + _local11;
var _local6 = ((-n.y) * _local9) + (n.x * _local8);
rp.prev.x = rp.curr.x - (_local6 * _local3);
rp.prev.y = rp.curr.y - (_local6 * _local2);
var _local7 = 1 - coeffSlip;
curr.x = curr.x + ((_local7 * rp.speed) * (-n.y));
curr.y = curr.y + ((_local7 * rp.speed) * n.x);
rp.speed = rp.speed * coeffSlip;
}
}
Symbol 611 MovieClip [__Packages.org.cove.flade.primitives.RimParticle] Frame 0
class org.cove.flade.primitives.RimParticle
{
var curr, prev, vs, speed, maxTorque, wr;
function RimParticle (r, mt) {
curr = new org.cove.flade.util.Vector(r, 0);
prev = new org.cove.flade.util.Vector(0, 0);
vs = 0;
speed = 0;
maxTorque = mt;
wr = r;
}
function verlet(sysObj) {
speed = Math.max(-maxTorque, Math.min(maxTorque, speed + vs));
var _local3 = -curr.y;
var _local2 = curr.x;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
_local3 = _local3 / _local4;
_local2 = _local2 / _local4;
curr.x = curr.x + (speed * _local3);
curr.y = curr.y + (speed * _local2);
var _local10 = prev.x;
var _local9 = prev.y;
var _local8 = (prev.x = curr.x);
var _local7 = (prev.y = curr.y);
curr.x = curr.x + (sysObj.coeffDamp * (_local8 - _local10));
curr.y = curr.y + (sysObj.coeffDamp * (_local7 - _local9));
var _local6 = Math.sqrt((curr.x * curr.x) + (curr.y * curr.y));
var _local5 = (_local6 - wr) / _local6;
curr.x = curr.x - (curr.x * _local5);
curr.y = curr.y - (curr.y * _local5);
}
}
Symbol 612 MovieClip [__Packages.org.cove.flade.constraints.SpringConstraint] Frame 0
class org.cove.flade.constraints.SpringConstraint implements org.cove.flade.constraints.Constraint
{
var p1, p2, restLength, stiffness, color, isVisible, drawClipName, dmc;
function SpringConstraint (p1, p2) {
this.p1 = p1;
this.p2 = p2;
restLength = p1.curr.distance(p2.curr);
stiffness = 0.5;
color = 10053171 /* 0x996633 */;
initializeContainer();
isVisible = true;
}
function initializeContainer() {
var _local3 = _root.main_mc.getNextHighestDepth();
drawClipName = "_" + _local3;
dmc = _root.main_mc.createEmptyMovieClip(drawClipName, _local3);
}
function getDrawClipName() {
return(drawClipName);
}
function resolve() {
var _local5 = p1.curr.minusNew(p2.curr);
var _local3 = p1.curr.distance(p2.curr);
var _local4 = (_local3 - restLength) / _local3;
var _local2 = _local5.mult(_local4 * stiffness);
p1.curr.minus(_local2);
p2.curr.plus(_local2);
}
function setRestLength(r) {
restLength = r;
}
function setStiffness(s) {
stiffness = s;
}
function setVisible(v) {
isVisible = v;
}
function paint() {
if (isVisible) {
i = i + 20;
var _local3 = dmc.attachMovie("motor", "motor", 0);
if (!_root.hitBridge) {
if (p1.curr.x > _root.right_x) {
_root.farDistance = true;
}
}
if ((p1.curr.x > _root.main_mc.prop_mc._x) && (!_root.hitBridge)) {
_root.getDistance(p1.curr.x);
_root.get_Height(p1.curr.y);
}
_root.motor_mc = _local3;
_local3._x = p1.curr.x;
_local3._y = p1.curr.y;
_root.motor_rotation = (_local3._rotation = (Math.atan2(p2.curr.y - p1.curr.y, p2.curr.x - p1.curr.x) * 180) / Math.PI);
if (_root.okStart) {
_root.main_mc._x = 300 - (_root.motor_mc._x * 1.5);
_root.main_mc._y = 300 - (_root.motor_mc._y * 1.5);
_root.sky_mc._y = _root.main_mc._y + _root.main_mc.point_mc._y;
_root.sky_mc._x = _root.main_mc._x + _root.main_mc.point_mc._x;
}
if (p1.curr.x > 4000) {
p1.curr.x = 4000;
}
if (p1.curr.y > 550) {
p1.curr.y = 550;
}
if ((Math.abs(p1.curr.x - _root.temp_x) > 1) && (Math.abs(p1.curr.y - _root.temp_y) > 1)) {
_local3.wheelA_mc._rotation = _local3.wheelA_mc._rotation + i;
_local3.wheelB_mc._rotation = _local3.wheelB_mc._rotation + i;
}
if ((Math.abs(p1.curr.x - _root.temp_x) < 0.5) && (Math.abs(p1.curr.y - _root.temp_y) < 0.5)) {
_root.stoping = true;
}
_root.temp_x = p1.curr.x;
_root.temp_y = p1.curr.y;
dmc.clear();
dmc.lineStyle(0, color, 0);
org.cove.flade.graphics.Graphics.paintLine(dmc, p1.curr.x, p1.curr.y, p2.curr.x, p2.curr.y);
}
}
function destroyPaint() {
dmc.clear();
}
var i = 0;
}
Symbol 613 MovieClip [__Packages.org.cove.flade.surfaces.AbstractTile] Frame 0
class org.cove.flade.surfaces.AbstractTile
{
var center, verts, normal, isVisible, isActivated, dmc, minX, maxX, minY, maxY;
function AbstractTile (cx, cy) {
center = new org.cove.flade.util.Vector(cx, cy);
verts = new Array();
normal = new org.cove.flade.util.Vector(0, 0);
isVisible = true;
isActivated = true;
initializeContainer();
}
function initializeContainer() {
var _local3 = _root.main_mc.getNextHighestDepth();
var _local4 = "_" + _local3;
dmc = _root.main_mc.createEmptyMovieClip(_local4, _local3);
}
function setVisible(v) {
isVisible = v;
}
function setActiveState(a) {
isActivated = a;
}
function getActiveState() {
return(isActivated);
}
function createBoundingRect(rw, rh) {
var _local2 = center.y - (rh / 2);
var _local3 = center.y + (rh / 2);
var _local5 = center.x - (rw / 2);
var _local4 = center.x + (rw / 2);
verts.push(new org.cove.flade.util.Vector(_local4, _local3));
verts.push(new org.cove.flade.util.Vector(_local4, _local2));
verts.push(new org.cove.flade.util.Vector(_local5, _local2));
verts.push(new org.cove.flade.util.Vector(_local5, _local3));
setCardProjections();
}
function testIntervals(boxMin, boxMax, tileMin, tileMax) {
if (boxMax < tileMin) {
return(0);
}
if (tileMax < boxMin) {
return(0);
}
var _local2 = tileMax - boxMin;
var _local1 = tileMin - boxMax;
if (Math.abs(_local2) < Math.abs(_local1)) {
return(_local2);
}
return(_local1);
}
function setCardProjections() {
getCardXProjection();
getCardYProjection();
}
function getCardXProjection() {
minX = verts[0].x;
var _local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].x < minX) {
minX = verts[_local2].x;
}
_local2++;
}
maxX = verts[0].x;
_local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].x > maxX) {
maxX = verts[_local2].x;
}
_local2++;
}
}
function getCardYProjection() {
minY = verts[0].y;
var _local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].y < minY) {
minY = verts[_local2].y;
}
_local2++;
}
maxY = verts[0].y;
_local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].y > maxY) {
maxY = verts[_local2].y;
}
_local2++;
}
}
function onContact() {
}
}
Symbol 614 MovieClip [__Packages.org.cove.flade.surfaces.RectangleTile] Frame 0
class org.cove.flade.surfaces.RectangleTile extends org.cove.flade.surfaces.AbstractTile implements org.cove.flade.surfaces.Surface
{
var rectWidth, rectHeight, createBoundingRect, isVisible, dmc, center, onContact, normal, testIntervals, minX, maxX, minY, maxY;
function RectangleTile (cx, cy, rw, rh) {
super(cx, cy);
rectWidth = rw;
rectHeight = rh;
createBoundingRect(rw, rh);
}
function paint() {
if (isVisible) {
dmc.clear();
dmc.lineStyle(0, 2237064, 100);
org.cove.flade.graphics.Graphics.paintRectangle(dmc, center.x, center.y, rectWidth, rectHeight);
}
}
function resolveCircleCollision(p, sysObj) {
if (isCircleColliding(p)) {
onContact();
p.resolveCollision(normal, sysObj);
}
}
function resolveRectangleCollision(p, sysObj) {
if (isRectangleColliding(p)) {
onContact();
p.resolveCollision(normal, sysObj);
}
}
function isCircleColliding(p) {
p.getCardXProjection();
var _local6 = testIntervals(p.bmin, p.bmax, minX, maxX);
if (_local6 == 0) {
return(false);
}
p.getCardYProjection();
var _local5 = testIntervals(p.bmin, p.bmax, minY, maxY);
if (_local5 == 0) {
return(false);
}
var _local11 = Math.abs(_local6) < p.radius;
var _local12 = Math.abs(_local5) < p.radius;
if (_local11 && (_local12)) {
var _local10 = center.x + (sign(p.curr.x - center.x) * (rectWidth / 2));
var _local9 = center.y + (sign(p.curr.y - center.y) * (rectHeight / 2));
var _local4 = p.curr.x - _local10;
var _local3 = p.curr.y - _local9;
var _local8 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
var _local7 = p.radius - _local8;
if (_local7 > 0) {
_local4 = _local4 / _local8;
_local3 = _local3 / _local8;
p.mtd.setTo(_local4 * _local7, _local3 * _local7);
normal.setTo(_local4, _local3);
return(true);
}
return(false);
}
p.setXYMTD(_local6, _local5);
normal.setTo(p.mtd.x / Math.abs(_local6), p.mtd.y / Math.abs(_local5));
return(true);
}
function isRectangleColliding(p) {
p.getCardXProjection();
var _local4 = testIntervals(p.bmin, p.bmax, minX, maxX);
if (_local4 == 0) {
return(false);
}
p.getCardYProjection();
var _local3 = testIntervals(p.bmin, p.bmax, minY, maxY);
if (_local3 == 0) {
return(false);
}
p.setXYMTD(_local4, _local3);
normal.setTo(p.mtd.x / Math.abs(_local4), p.mtd.y / Math.abs(_local3));
return(true);
}
function sign(val) {
if (val < 0) {
return(-1);
}
if (val > 0) {
return(1);
}
}
}
Symbol 615 MovieClip [__Packages.org.cove.flade.surfaces.LineSurface] Frame 0
class org.cove.flade.surfaces.LineSurface extends org.cove.flade.surfaces.AbstractTile implements org.cove.flade.surfaces.Surface
{
var p1, p2, collNormal, isVisible, dmc, onContact, faceNormal, collisionDepth, testIntervals, minY, maxY, minX, maxX, sideNormal, minS, maxS, minF, maxF, rise, run, sign, slope, invB, setCardProjections, p3, p4, verts;
function LineSurface (p1x, p1y, p2x, p2y) {
super(0, 0);
p1 = new org.cove.flade.util.Vector(p1x, p1y);
p2 = new org.cove.flade.util.Vector(p2x, p2y);
calcFaceNormal();
collNormal = new org.cove.flade.util.Vector(0, 0);
setCollisionDepth(30);
}
function paint() {
if (isVisible) {
dmc.clear();
dmc.lineStyle(5, 8868097, 100);
org.cove.flade.graphics.Graphics.paintLine(dmc, p1.x, p1.y, p2.x, p2.y);
}
}
function resolveCircleCollision(p, sysObj) {
if (isCircleColliding(p)) {
onContact();
p.resolveCollision(faceNormal, sysObj);
}
}
function resolveRectangleCollision(p, sysObj) {
if (isRectangleColliding(p)) {
onContact();
p.resolveCollision(collNormal, sysObj);
}
}
function setCollisionDepth(d) {
collisionDepth = d;
precalculate();
}
function isCircleColliding(p) {
findClosestPoint(p.curr, p.closestPoint);
var _local3 = p.closestPoint.minusNew(p.curr);
_local3.normalize();
if (inequality(p.curr)) {
var _local5 = Math.abs(_local3.x);
_local3.x = ((faceNormal.x < 0) ? (_local5) : (-_local5));
_local3.y = Math.abs(_local3.y);
}
var _local4 = p.curr.plusNew(_local3.mult(p.radius));
if (segmentInequality(_local4)) {
if (_local4.distance(p.closestPoint) > collisionDepth) {
return(false);
}
var _local7 = _local4.x - p.closestPoint.x;
var _local6 = _local4.y - p.closestPoint.y;
p.mtd.setTo(-_local7, -_local6);
return(true);
}
return(false);
}
function isRectangleColliding(p) {
p.getCardYProjection();
var _local7 = testIntervals(p.bmin, p.bmax, minY, maxY);
if (_local7 == 0) {
return(false);
}
p.getCardXProjection();
var _local8 = testIntervals(p.bmin, p.bmax, minX, maxX);
if (_local8 == 0) {
return(false);
}
p.getAxisProjection(sideNormal);
var _local10 = testIntervals(p.bmin, p.bmax, minS, maxS);
if (_local10 == 0) {
return(false);
}
p.getAxisProjection(faceNormal);
var _local9 = testIntervals(p.bmin, p.bmax, minF, maxF);
if (_local9 == 0) {
return(false);
}
var _local4 = Math.abs(_local8);
var _local3 = Math.abs(_local7);
var _local6 = Math.abs(_local10);
var _local5 = Math.abs(_local9);
if (((_local4 <= _local3) && (_local4 <= _local6)) && (_local4 <= _local5)) {
p.mtd.setTo(_local8, 0);
collNormal.setTo(p.mtd.x / _local4, 0);
} else if (((_local3 <= _local4) && (_local3 <= _local6)) && (_local3 <= _local5)) {
p.mtd.setTo(0, _local7);
collNormal.setTo(0, p.mtd.y / _local3);
} else if (((_local5 <= _local4) && (_local5 <= _local3)) && (_local5 <= _local6)) {
p.mtd = faceNormal.multNew(_local9);
collNormal.copy(faceNormal);
} else if (((_local6 <= _local4) && (_local6 <= _local3)) && (_local6 <= _local5)) {
p.mtd = sideNormal.multNew(_local10);
collNormal.copy(sideNormal);
}
return(true);
}
function precalculate() {
rise = p2.y - p1.y;
run = p2.x - p1.x;
sign = ((run >= 0) ? 1 : -1);
slope = rise / run;
invB = 1 / ((run * run) + (rise * rise));
createRectangle();
calcSideNormal();
setCardProjections();
setAxisProjections();
}
function calcFaceNormal() {
faceNormal = new org.cove.flade.util.Vector(0, 0);
var _local3 = p2.x - p1.x;
var _local2 = p2.y - p1.y;
faceNormal.setTo(_local2, -_local3);
faceNormal.normalize();
}
function segmentInequality(toPoint) {
var _local2 = findU(toPoint);
var _local3 = inequality(toPoint);
return(((_local2 >= 0) && (_local2 <= 1)) && (_local3));
}
function inequality(toPoint) {
var _local2 = ((slope * (toPoint.x - p1.x)) + (p1.y - toPoint.y)) * sign;
return(_local2 <= 0);
}
function findClosestPoint(toPoint, returnVect) {
var _local2 = findU(toPoint);
if (_local2 <= 0) {
returnVect.copy(p1);
return(undefined);
}
if (_local2 >= 1) {
returnVect.copy(p2);
return(undefined);
}
var _local5 = p1.x + (_local2 * (p2.x - p1.x));
var _local4 = p1.y + (_local2 * (p2.y - p1.y));
returnVect.setTo(_local5, _local4);
}
function findU(p) {
var _local2 = ((p.x - p1.x) * run) + ((p.y - p1.y) * rise);
return(_local2 * invB);
}
function createRectangle() {
var _local5 = p2.x + ((-faceNormal.x) * collisionDepth);
var _local3 = p2.y + ((-faceNormal.y) * collisionDepth);
var _local4 = p1.x + ((-faceNormal.x) * collisionDepth);
var _local2 = p1.y + ((-faceNormal.y) * collisionDepth);
p3 = new org.cove.flade.util.Vector(_local5, _local3);
p4 = new org.cove.flade.util.Vector(_local4, _local2);
verts.push(p1);
verts.push(p2);
verts.push(p3);
verts.push(p4);
}
function setAxisProjections() {
var _local2;
minF = p2.dot(faceNormal);
maxF = p3.dot(faceNormal);
if (minF > maxF) {
_local2 = minF;
minF = maxF;
maxF = _local2;
}
minS = p1.dot(sideNormal);
maxS = p2.dot(sideNormal);
if (minS > maxS) {
_local2 = minS;
minS = maxS;
maxS = _local2;
}
}
function calcSideNormal() {
sideNormal = new org.cove.flade.util.Vector(0, 0);
var _local3 = p3.x - p2.x;
var _local2 = p3.y - p2.y;
sideNormal.setTo(_local2, -_local3);
sideNormal.normalize();
}
}
Symbol 16 MovieClip Frame 26
stop();
Symbol 45 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 12
stop();
Symbol 51 MovieClip [man] Frame 1
stop();
Symbol 51 MovieClip [man] Frame 2
function move2() {
onEnterFrame = function () {
role._x = role._x + Vx;
Vx = Vx - a;
if (Vx <= 0) {
delete this.onEnterFrame;
play();
}
};
}
stop();
var a = 2;
var g = 2;
var Vx = 15;
var Vy = 6;
onEnterFrame = function () {
role._x = role._x + Vx;
role._y = role._y - Vy;
Vy = Vy - g;
if ((role._y + _y) > 550) {
move2();
}
};
Symbol 51 MovieClip [man] Frame 35
stop();
_root.lifeNumber--;
_root.playing = false;
_root.main_mc._x = 0;
_root.main_mc._y = 100;
_root.main_mc._xscale = 50;
_root.main_mc._yscale = 50;
_root.passLevel = false;
_root.mouseD = false;
_root.enterFrame = false;
_root.gameover = false;
_root.hitGround = false;
_root.motor_frame_flag = true;
_root.clearAll();
Symbol 66 MovieClip [motor] Frame 1
stop();
Symbol 66 MovieClip [motor] Frame 2
function move2() {
onEnterFrame = function () {
role._x = role._x + Vx;
Vx = Vx - a;
if (Vx <= 0) {
delete this.onEnterFrame;
play();
}
};
}
stop();
_root.sound.stop("motor_sound");
if (!_root.hitAllence) {
_root.sound.attachSound("crash_sound");
_root.sound.start(0, 1);
} else {
_root.hitAllence = false;
}
var a = 2;
var g = 2;
var Vx = 6;
var Vy = 3;
onEnterFrame = function () {
role._x = role._x + Vx;
role._y = role._y - Vy;
Vy = Vy - g;
if ((role._y + _y) > 520) {
move2();
}
};
Symbol 66 MovieClip [motor] Frame 35
stop();
Symbol 103 MovieClip Frame 25
stop();
Symbol 104 MovieClip [obj_a] Frame 1
stop();
Symbol 104 MovieClip [obj_a] Frame 2
stop();
Symbol 108 MovieClip [obj_b] Frame 1
stop();
Symbol 108 MovieClip [obj_b] Frame 2
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 16
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 22
stop();
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 14
stop();
Symbol 140 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 14
stop();
Symbol 147 MovieClip Frame 1
this._visible = false;
stop();
Symbol 149 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 237 MovieClip Frame 229
stop();
Symbol 238 MovieClip Frame 322
_parent.play();
Symbol 318 Button
on (release) {
A_1.gotoAndPlay(2);
}
Symbol 402 MovieClip Frame 70
stop();
Symbol 405 MovieClip Frame 131
stop();
Symbol 407 MovieClip Frame 70
stop();
this._parent.gotoAndPlay(11);
Symbol 413 MovieClip Frame 70
stop();
Symbol 416 MovieClip Frame 131
stop();
Symbol 417 MovieClip Frame 70
stop();
this._parent.gotoAndPlay(30);
Symbol 420 MovieClip Frame 16
stop();
this._parent.clearAll();
this._parent.introFun();
this._parent.gotoAndPlay(39);
Symbol 425 MovieClip Frame 10
stop();
Symbol 425 MovieClip Frame 17
Symbol 425 MovieClip Frame 29
stop();
Symbol 425 MovieClip Frame 38
stop();
Symbol 425 MovieClip Frame 45
stop();
Symbol 428 MovieClip Frame 1
stop();
Symbol 428 MovieClip Frame 2
stop();
Symbol 430 MovieClip Frame 1
stop();
Symbol 430 MovieClip Frame 2
stop();
Symbol 431 MovieClip Frame 1
stop();
Symbol 431 MovieClip Frame 10
stop();
play_btn.onRelease = function () {
_root.main_mc._visible = true;
_root.main_mc.gotoAndPlay(2);
_root.home_mc._visible = false;
_root.cp_btn._visible = false;
};
more_btn.onRelease = function () {
getURL ("http://www.freeworldgroup.com/", _blank);
};
downLoad_btn.onRelease = function () {
getURL ("http://www.ifungames.com", _blank);
};
add_btn.onRelease = function () {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
};
setting_btn.onRelease = function () {
_root.quality_mc._visible = true;
};
Symbol 431 MovieClip Frame 11
stop();
Instance of Symbol 428 MovieClip in Symbol 431 MovieClip Frame 11
on (release) {
_root.gotoAndStop("start_game");
}
Instance of Symbol 430 MovieClip in Symbol 431 MovieClip Frame 11
on (release) {
this._parent._parent.game_name_mc._visible = true;
this._parent._parent.allence_a._visible = true;
this._parent._parent.allence_b._visible = true;
_root.cp_btn._visible = true;
this._parent.gotoAndStop(1);
}
Instance of Symbol 312 MovieClip in Symbol 437 MovieClip Frame 1
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Instance of Symbol 314 MovieClip in Symbol 437 MovieClip Frame 1
on (release) {
_root.credits_mc._visible = true;
}
Symbol 443 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 447 MovieClip Frame 1
stop();
Symbol 447 MovieClip Frame 2
stop();
Instance of Symbol 445 MovieClip in Symbol 449 MovieClip Frame 1
on (rollOver) {
this.useHandCursor = false;
}
Instance of Symbol 447 MovieClip in Symbol 449 MovieClip Frame 1
on (release) {
_root.credits_mc._visible = false;
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 463 MovieClip Frame 20
stop();
Symbol 465 MovieClip Frame 10
stop();
Symbol 467 MovieClip Frame 10
stop();
Symbol 469 MovieClip Frame 10
stop();
Symbol 471 MovieClip Frame 10
stop();
Symbol 473 MovieClip Frame 10
stop();
Symbol 475 MovieClip Frame 10
stop();
Symbol 477 MovieClip Frame 10
stop();
Symbol 478 MovieClip Frame 1
stop();
Symbol 484 MovieClip Frame 1
stop();
Symbol 484 MovieClip Frame 2
stop();
Symbol 485 MovieClip Frame 1
stop();
Symbol 485 MovieClip Frame 2
stop();
Symbol 488 MovieClip Frame 1
stop();
Symbol 488 MovieClip Frame 2
stop();
Symbol 489 MovieClip Frame 1
stop();
Symbol 489 MovieClip Frame 2
stop();
Symbol 492 MovieClip Frame 1
stop();
Symbol 492 MovieClip Frame 2
stop();
Symbol 493 MovieClip Frame 1
stop();
Symbol 493 MovieClip Frame 2
stop();
Symbol 501 MovieClip Frame 70
stop();
Symbol 502 MovieClip Frame 70
stop();
this._parent.gotoAndPlay(11);
Symbol 505 MovieClip Frame 70
stop();
Symbol 506 MovieClip Frame 70
stop();
this._parent.gotoAndPlay(26);
Symbol 508 MovieClip Frame 1
stop();
Instance of Symbol 428 MovieClip in Symbol 508 MovieClip Frame 1
on (release) {
this._parent.clearAll();
this._parent.gotoAndStop(1);
this._parent._visible = false;
_root.gotoAndStop("start_game");
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 430 MovieClip in Symbol 508 MovieClip Frame 1
on (release) {
this._parent.easy_btn.gotoAndStop(1);
this._parent.normal_btn.gotoAndStop(1);
this._parent.hard_btn.gotoAndStop(1);
this._parent.easy_btn.body_mc.gotoAndStop(1);
this._parent.normal_btn.body_mc.gotoAndStop(2);
this._parent.hard_btn.body_mc.gotoAndStop(1);
_root.gameMode = 15;
_root.home_mc._visible = true;
_root.cp_btn._visible = true;
this._parent.clearAll();
this._parent.gotoAndStop(1);
_root.main_mc._visible = false;
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 485 MovieClip "easy_btn" in Symbol 508 MovieClip Frame 1
on (release) {
this._parent.easy_btn.body_mc.gotoAndStop(1);
this._parent.normal_btn.body_mc.gotoAndStop(1);
this._parent.hard_btn.body_mc.gotoAndStop(1);
this.body_mc.gotoAndStop(2);
_root.gameMode = 20;
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 489 MovieClip "normal_btn" in Symbol 508 MovieClip Frame 1
on (release) {
this._parent.easy_btn.body_mc.gotoAndStop(1);
this._parent.normal_btn.body_mc.gotoAndStop(1);
this._parent.hard_btn.body_mc.gotoAndStop(1);
this.body_mc.gotoAndStop(2);
_root.gameMode = 15;
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 493 MovieClip "hard_btn" in Symbol 508 MovieClip Frame 1
on (release) {
this._parent.easy_btn.body_mc.gotoAndStop(1);
this._parent.normal_btn.body_mc.gotoAndStop(1);
this._parent.hard_btn.body_mc.gotoAndStop(1);
this.body_mc.gotoAndStop(2);
_root.gameMode = 10;
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 508 MovieClip Frame 2
function introFun() {
var _local2 = [80, 154, 124, 180, 124, 180, 170, 206, 170, 206, 216, 230, 216, 230, 264, 252, 264, 252, 314, 268, 314, 268, 364, 282, 364, 282, 414, 298, 414, 298, 466, 312, 466, 312, 516, 324, 516, 324, 568, 334, 568, 334, 622, 334, 622, 334, 676, 334, 676, 334, 728, 330, 728, 330, 778, 324, 1130, 352, 1184, 366, 1184, 366, 1234, 370, 1234, 370, 1288, 380, 1288, 380, 1342, 394, 1342, 394, 1392, 408, 1392, 408, 1438, 428, 1438, 428, 1486, 446, 1486, 446, 1532, 468, 1532, 468, 1584, 488, 1584, 488, 1632, 506, 1632, 506, 1682, 518, 1682, 518, 1734, 526, 1734, 526, 1786, 526, 1786, 526, 1836, 528, 1836, 528, 1888, 528];
friLine = new org.cove.flade.surfaces.LineSurface(0, 550, 2500, 550);
__engine.addSurface(friLine);
__engine.addSurface(new org.cove.flade.surfaces.LineSurface(0, 0, 0, 550));
rightRect = new org.cove.flade.surfaces.RectangleTile(2500, 500, 15, 100);
__engine.addSurface(rightRect);
var _local4 = new org.cove.flade.surfaces.LineSurface(0, 120, 70, 150);
_local4.setVisible(true);
__engine.addSurface(_local4);
__engine.paintSurfaces();
var _local1 = 0;
while (_local1 < _local2.length) {
var _local3 = new org.cove.flade.surfaces.LineSurface(_local2[_local1], _local2[_local1 + 1], _local2[_local1 + 2], _local2[_local1 + 3]);
_local3.setVisible(false);
__engine.addSurface(_local3);
__engine.paintSurfaces();
_local1 = _local1 + 4;
}
createCar();
}
function createCar() {
__engine.setDamping(1.03);
__engine.setGravity(0, 1.5);
playing = true;
enterFrame = true;
clearMotor();
var _local3 = 10;
var _local5 = 70;
var _local9 = _local3 + _local5;
var _local10 = _local3 + (_local5 / 2);
var _local4 = 100;
rightRect.onContact = function () {
__engine.setSurfaceBounce(0);
__engine.setSurfaceFriction(1);
_root.clearAll();
_root.main_mc.gotoAndPlay(2);
delete rightRect.onContact;
};
friLine.onContact = function () {
__engine.setSurfaceBounce(0);
__engine.setSurfaceFriction(0.1);
delete friLine.onContact;
};
wheelA = new org.cove.flade.primitives.Wheel(_local3, _local4, 13.5);
__engine.addPrimitive(wheelA);
wheelA.setVisible(false);
wheelB = new org.cove.flade.primitives.Wheel(_local9, _local4, 13.5);
__engine.addPrimitive(wheelB);
wheelB.setVisible(false);
var _local8 = new org.cove.flade.constraints.SpringConstraint(wheelA, wheelB);
__engine.addConstraint(_local8);
_local8.setVisible(true);
var _local2 = new org.cove.flade.primitives.CircleParticle(_local10, _local4 - 30, 2, 2);
__engine.addPrimitive(_local2);
_local2.setVisible(false);
var _local7 = new org.cove.flade.constraints.SpringConstraint(wheelA, _local2);
__engine.addConstraint(_local7);
_local7.setVisible(false);
var _local6 = new org.cove.flade.constraints.SpringConstraint(wheelB, _local2);
__engine.addConstraint(_local6);
_local6.setVisible(false);
ang = new org.cove.flade.constraints.AngularConstraint(wheelA, _local2, wheelB);
__engine.addConstraint(ang);
angDefault = ang.targetTheta;
__engine.paintSurfaces();
__engine.setSurfaceBounce(0.1);
__engine.setSurfaceFriction(0.005);
}
function fresh() {
clearInterval(interval);
__engine.timeStep();
__engine.paintPrimitives();
__engine.paintConstraints();
interval = setInterval(fresh, 40);
}
function clearMotor() {
var _local3 = 0;
while (_local3 < __engine.primitives.length) {
_root.main_mc[__engine.primitives[_local3].drawClipName].removeMovieClip();
_local3++;
}
var _local2 = 0;
while (_local2 < __engine.constraints.length) {
_root.main_mc[__engine.constraints[_local2].getDrawClipName()].removeMovieClip();
_local2++;
}
__engine.constraints = [];
__engine.primitives = [];
}
function clearAll() {
var _local2 = 0;
while (_local2 < _root.main_mc.getNextHighestDepth()) {
_root.main_mc.getInstanceAtDepth(_local2).removeMovieClip();
_local2++;
}
}
this.normal_btn.body_mc.gotoAndStop(2);
clearInterval(interval_R);
clearInterval(interval);
var __engine;
__engine = new org.cove.flade.DynamicsEngine();
var ang;
var angDefault;
var interval;
if (interval != null) {
clearInterval(interval);
}
fresh();
Symbol 508 MovieClip Frame 10
stop();
Symbol 508 MovieClip Frame 25
stop();
Symbol 508 MovieClip Frame 38
stop();
Symbol 508 MovieClip Frame 60
stop();
Symbol 513 Button
on (release) {
_root.game_setQuality(1);
}
Symbol 516 MovieClip Frame 1
stop();
Symbol 518 Button
on (release) {
_root.game_setQuality(2);
}
Symbol 521 MovieClip Frame 1
stop();
Symbol 523 Button
on (release) {
_root.game_setQuality(3);
}
Symbol 526 MovieClip Frame 1
stop();
Symbol 528 Button
on (release) {
_root.game_setQuality(4);
}
Symbol 530 MovieClip Frame 1
stop();
Symbol 531 MovieClip Frame 1
_root.game_getQuality(this);
Symbol 535 MovieClip Frame 1
stop();
Symbol 535 MovieClip Frame 2
stop();
Symbol 536 MovieClip Frame 1
back_btn.onRelease = function () {
_root.quality_mc._visible = false;
};
start_btn.onRelease = function () {
_root.main_mc._visible = true;
_root.main_mc.gotoAndPlay(2);
_root.home_mc._visible = false;
_root.cp_btn._visible = false;
_root.quality_mc._visible = false;
};
Instance of Symbol 445 MovieClip in Symbol 536 MovieClip Frame 1
on (rollOver) {
this.useHandCursor = false;
}
Instance of Symbol 447 MovieClip "back_btn" in Symbol 536 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 535 MovieClip "start_btn" in Symbol 536 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 548 Button
on (press) {
play();
}
Symbol 554 MovieClip Frame 1
stop();
Symbol 554 MovieClip Frame 2
stop();
Symbol 554 MovieClip Frame 3
gotoAndStop (1);
Symbol 568 Button
on (release) {
_root.clearAll();
_root.gotoAndStop("home_page");
}
Instance of Symbol 554 MovieClip "sound_mc" in Symbol 571 MovieClip Frame 1
on (release) {
_root.setSound(this);
}
Instance of Symbol 570 MovieClip in Symbol 571 MovieClip Frame 1
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 583 MovieClip Frame 1
more_btn.onRelease = function () {
getURL ("http://www.freeworldgroup.com/", _blank);
};
downLoad_btn.onRelease = function () {
getURL ("http://www.ifungames.com", _blank);
};
add_btn.onRelease = function () {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
};
again_btn.onRelease = function () {
_root.gameLevel = 0;
_root.lifeNumber = _root.gameMode;
_root.startTime = getTimer();
_root.newGame();
var _local3 = 0;
while (_local3 < _root.main_mc.line_mc.getNextHighestDepth()) {
_root.main_mc.line_mc.getInstanceAtDepth(_local3).removeMovieClip();
_local3++;
}
this._parent._visible = false;
};
main_btn.onRelease = function () {
_root.gotoAndStop("home_page");
};
mask_btn.onRollOver = function () {
this.useHandCursor = false;
};
copyRight_btn.onRelease = function () {
getURL ("http://www.freeworldgroup.com/", _blank);
};
Mouse.show();
Symbol 597 Button
on (release) {
_root.gotoAndStop("home_page");
}
Symbol 599 MovieClip Frame 1
stop();
main_btn.onRelease = function () {
_root.gotoAndStop("home_page");
};
mask_btn.onRollOver = function () {
this.useHandCursor = false;
};
next_btn.onRelease = function () {
_root.lifeNumber = _root.gameMode;
_root.gameLevel++;
_root.go_mc._visible = true;
_root.go_mc.gotoAndPlay(1);
_root.passLevel = false;
_root.main_mc.beMasked_mc._visible = false;
_root.mouseD = false;
_root.enterFrame = false;
_root.gameover = false;
_root.hitGround = false;
_root.playing = false;
_root.timeUp = false;
_root.clearAll();
var _local3 = 0;
while (_local3 < _root.main_mc.line_mc.getNextHighestDepth()) {
_root.main_mc.line_mc.getInstanceAtDepth(_local3).removeMovieClip();
_local3++;
}
_root.trackArr = new Array();
_root.engine = new org.cove.flade.DynamicsEngine();
_root.main_mc.line_mc.clear();
_root.main_mc._xscale = 50;
_root.main_mc._yscale = 50;
_root.main_mc._x = 0;
_root.main_mc._y = 100;
_root.createDrawLand();
_root.positionNow();
this._parent._visible = false;
};
more_btn.onRelease = function () {
getURL ("http://www.freeworldgroup.com/", _blank);
};
downLoad_btn.onRelease = function () {
getURL ("http://www.ifungames.com", _blank);
};
add_btn.onRelease = function () {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
};
again_btn.onRelease = function () {
};
mask_btn.onRollOver = function () {
this.useHandCursor = false;
};
copyRight_btn.onRelease = function () {
getURL ("http://www.freeworldgroup.com/", _blank);
};
save_btn.onRelease = function () {
_root.savePanel_mc._visible = true;
};
Mouse.show();