Combined Code
// unknown tag 88 length 151
movieClip 5 {
}
instance rightsClip of movieClip 5 {
onClipEvent (load) {
this._visible = false;
}
}
movieClip 7 {
}
movieClip 9 {
}
movieClip 11 {
}
movieClip 12 {
}
instance of movieClip 12 {
onClipEvent (release) {
getURL('http://www.yougame.com', '_top');
}
}
movieClip 506 __Packages.assets.Wheel {
#initclip
if (!_global.assets) {
_global.assets = new Object();
}
if (!_global.assets.Wheel) {
var v1 = function () {
super();
};
assets.Wheel = v1;
assets.Wheel extends MovieClip;
var v2 = v1.prototype;
v2.init = function ($coord_space, $mass) {
if (assets.PiVal.isEmpty($coord_space)) {
this._coord_space = this._parent;
} else {
this._coord_space = $coord_space;
}
var v2 = {'x': this._x, 'y': this._y};
this._parent.localToGlobal(v2);
$coord_space.globalToLocal(v2);
this.wr = this._width / 2;
this.wp = new assets.Particle(v2.x, v2.y, $mass);
this.rp = new assets.RimParticle(this.wr, 2);
this.contactRadius = this.wr;
this.coeffSlip = 0;
this.closestPoint = new assets.Vector(0, 0);
};
v2.verlet = function ($sysObj) {
this.rp.verlet($sysObj);
this.wp.verlet($sysObj);
};
v2.checkCollision = function ($surface, $sysObj) {
$surface.resolveWheelCollision(this);
};
v2.paint = function () {
var v2 = this.wp.curr.x;
var v3 = this.wp.curr.y;
var v5 = this.rp.curr.x;
var v7 = this.rp.curr.y;
this._x = v2;
this._y = v3;
var v6 = 57.29578;
var v4 = -Math.atan2(v5, v7) * v6;
this._rotation = v4;
};
v2.resolve = function ($n) {
var v2 = -this.rp.curr.y;
var v3 = this.rp.curr.x;
var v7 = Math.sqrt(v2 * v2 + v3 * v3);
v2 /= v7;
v3 /= v7;
var v8 = v2 * this.rp.speed;
var v10 = v3 * this.rp.speed;
var v9 = this.wp.curr.x - this.wp.prev.x;
var v11 = this.wp.curr.y - this.wp.prev.y;
var v12 = v9 + v8;
var v13 = v11 + v10;
var v6 = -$n.y * v12 + $n.x * v13;
this.rp.prev.x = this.rp.curr.x - v6 * v2;
this.rp.prev.y = this.rp.curr.y - v6 * v3;
var v5 = 1 - this.coeffSlip;
this.wp.curr.x += v5 * this.rp.speed * -$n.y;
this.wp.curr.y += v5 * this.rp.speed * $n.x;
this.rp.speed *= this.coeffSlip;
};
ASSetPropFlags(assets.Wheel.prototype, null, 1);
}
#endinitclip
}
movieClip 507 __Packages.assets.PiVal {
#initclip
if (!_global.assets) {
_global.assets = new Object();
}
if (!_global.assets.PiVal) {
var v1 = function () {};
assets.PiVal = v1;
var v2 = v1.prototype;
v1.isEmpty = function ($obj) {
if ($obj == '' || $obj == undefined) {
return true;
} else {
return false;
}
};
ASSetPropFlags(assets.PiVal.prototype, null, 1);
}
#endinitclip
}
movieClip 508 __Packages.assets.Particle {
#initclip
if (!_global.assets) {
_global.assets = new Object();
}
if (!_global.assets.Particle) {
var v1 = function ($posX, $posY, $mass) {
this.init($posX, $posY, $mass);
};
assets.Particle = v1;
var v2 = v1.prototype;
v2.init = function ($posX, $posY, $mass) {
this.curr = new assets.Vector($posX, $posY);
this.prev = new assets.Vector($posX, $posY);
this.temp = new assets.Vector(0, 0);
if ($mass == undefined || $mass < 0) {
this.mass = 0;
} else {
this.mass = $mass;
}
var v3 = _root.main_mc.main_cont_mc.level_mc.over_mc.getNextHighestDepth();
this.dmc = _root.main_mc.main_cont_mc.level_mc.over_mc.createEmptyMovieClip('p_' + v3, v3);
};
v2.verlet = function ($sysObj) {
this.temp.x = this.curr.x;
this.temp.y = this.curr.y;
this.curr.x += $sysObj.coeffDamp * (this.curr.x - this.prev.x) + $sysObj.gravity.x;
this.curr.y += $sysObj.coeffDamp * (this.curr.y - this.prev.y) + $sysObj.gravity.y + this.mass;
this.prev.x = this.temp.x;
this.prev.y = this.temp.y;
};
v2.checkCollision = function ($surface, $sysObj) {
$surface.resolveParticleCollision(this, $sysObj);
};
v2.paint = function () {
this.dmc.clear();
this.dmc.lineStyle(0, 16777215, 100);
assets.Graphics.prototype.paintCircle(this.dmc, this.curr.x, this.curr.y, 2);
};
v2.setPos = function ($px, $py) {
this.curr.x = $px;
this.curr.y = $py;
this.prev.x = $px;
this.prev.y = $py;
};
ASSetPropFlags(assets.Particle.prototype, null, 1);
}
#endinitclip
}
movieClip 509 __Packages.assets.Vector {
#initclip
if (!_global.assets) {
_global.assets = new Object();
}
if (!_global.assets.Vector) {
var v1 = function ($x, $y) {
this.init($x, $y);
};
assets.Vector = v1;
var v2 = v1.prototype;
v2.init = function ($x, $y) {
this.x = $x;
this.y = $y;
};
v2.dot = function ($v) {
return this.x * $v.x + this.y * $v.y;
};
v2.cross = function ($v) {
return this.x * $v.y - this.y * $v.x;
};
v2.plus = function ($v) {
this.x += $v.x;
this.y += $v.y;
return this;
};
v2.plusNew = function ($v) {
return new assets.Vector(this.x + $v.x, this.y + $v.y);
};
v2.minus = function ($v) {
this.x -= $v.x;
this.y -= $v.y;
return this;
};
v2.minusNew = function ($v) {
return new assets.Vector(this.x - $v.x, this.y - $v.y);
};
v2.mult = function ($s) {
this.x *= $s;
this.y *= $s;
return this;
};
v2.multNew = function ($s) {
return new assets.Vector(this.x * $s, this.y * $s);
};
v2.distance = function ($p) {
var v2 = this.x - $p.x;
var v3 = this.y - $p.y;
return Math.sqrt(v2 * v2 + v3 * v3);
};
v2.normalize = function () {
var v2 = Math.sqrt(this.x * this.x + this.y * this.y);
this.x /= v2;
this.y /= v2;
return this;
};
ASSetPropFlags(assets.Vector.prototype, null, 1);
}
#endinitclip
}
movieClip 510 __Packages.assets.Graphics {
#initclip
if (!_global.assets) {
_global.assets = new Object();
}
if (!_global.assets.Graphics) {
var v1 = function () {};
assets.Graphics = v1;
var v2 = v1.prototype;
v2.paintLine = function ($target_mc, $x0, $y0, $x1, $y1) {
$target_mc.moveTo($x0, $y0);
$target_mc.lineTo($x1, $y1);
};
v2.paintCircle = function ($target_mc, $x, $y, $r) {
var v5 = 0.4142136 * $r;
var v4 = 0.7071068 * $r;
$target_mc.moveTo($x + $r, $y);
$target_mc.curveTo($r + $x, v5 + $y, v4 + $x, v4 + $y);
$target_mc.curveTo(v5 + $x, $r + $y, $x, $r + $y);
$target_mc.curveTo(-v5 + $x, $r + $y, -v4 + $x, v4 + $y);
$target_mc.curveTo(-$r + $x, v5 + $y, -$r + $x, $y);
$target_mc.curveTo(-$r + $x, -v5 + $y, -v4 + $x, -v4 + $y);
$target_mc.curveTo(-v5 + $x, -$r + $y, $x, -$r + $y);
$target_mc.curveTo(v5 + $x, -$r + $y, v4 + $x, -v4 + $y);
$target_mc.curveTo($r + $x, -v5 + $y, $r + $x, $y);
};
ASSetPropFlags(assets.Graphics.prototype, null, 1);
}
#endinitclip
}
movieClip 511 __Packages.assets.RimParticle {
#initclip
if (!_global.assets) {
_global.assets = new Object();
}
if (!_global.assets.RimParticle) {
var v1 = function ($r, $mt) {
this.init($r, $mt);
};
assets.RimParticle = v1;
var v2 = v1.prototype;
v2.init = function ($r, $mt) {
this.curr = new assets.Vector($r, 0);
this.prev = new assets.Vector(0, 0);
this.vs = 0;
this.speed = 0;
this.maxTorque = $mt;
this.wr = $r;
};
v2.verlet = function ($sysObj) {
this.speed = Math.max(-this.maxTorque, Math.min(this.maxTorque, this.speed + this.vs));
var v2 = -this.curr.y;
var v3 = this.curr.x;
var v6 = Math.sqrt(v2 * v2 + v3 * v3);
v2 /= v6;
v3 /= v6;
this.curr.x += this.speed * v2;
this.curr.y += this.speed * v3;
var v7 = this.prev.x;
var v8 = this.prev.y;
this.prev.x = this.curr.x;
var v10 = this.prev.x;
this.prev.y = this.curr.y;
var v9 = this.prev.y;
this.curr.x += $sysObj.coeffDamp * (v10 - v7);
this.curr.y += $sysObj.coeffDamp * (v9 - v8);
var v4 = Math.sqrt(this.curr.x * this.curr.x + this.curr.y * this.curr.y);
var v5 = (v4 - this.wr) / v4;
this.curr.x -= this.curr.x * v5;
this.curr.y -= this.curr.y * v5;
};
ASSetPropFlags(assets.RimParticle.prototype, null, 1);
}
#endinitclip
}
movieClip 512 __Packages.assets.Scores {
#initclip
if (!_global.assets) {
_global.assets = new Object();
}
if (!_global.assets.Scores) {
var v1 = function () {
super();
};
assets.Scores = v1;
assets.Scores extends MovieClip;
var v2 = v1.prototype;
v2.Ball = function () {};
v2.onEnterFrame = function () {
this.level = this._parent;
this.newClip = this.hitClip;
if (this.hit == false) {
if (this.newClip.hitTest(this.level.jeep_cont_mc.jeep_wheel_1_mc)) {
this.gotoAndStop(2);
_root['level' + _global.gl_user_info.curr_level + 'Count'] += 1;
this.hit = true;
} else {
if (this.newClip.hitTest(this.level.jeep_cont_mc.jeep_wheel_2_mc)) {
this.gotoAndStop(2);
_root['level' + _global.gl_user_info.curr_level + 'Count'] += 1;
this.hit = true;
} else {
if (this.newClip.hitTest(this.level.jeep_cont_mc.jeep_body_mc.driver_mc)) {
this.gotoAndStop(2);
_root['level' + _global.gl_user_info.curr_level + 'Count'] += 1;
this.hit = true;
}
}
}
}
_root.updateScore();
_root.main_mc.counter.gameScore = _root.gameScore + _root.levelScore;
};
v2.hit = false;
ASSetPropFlags(assets.Scores.prototype, null, 1);
}
#endinitclip
}
movieClip 513 __Packages.assets.Bomb {
#initclip
if (!_global.assets) {
_global.assets = new Object();
}
if (!_global.assets.Bomb) {
var v1 = function () {
super();
};
assets.Bomb = v1;
assets.Bomb extends MovieClip;
var v2 = v1.prototype;
v2.Ball = function () {};
v2.onEnterFrame = function () {
this.level = this._parent;
this.newClip = this.hitClip;
if (this.hit == false) {
if (this.newClip.hitTest(this.level.jeep_cont_mc.jeep_wheel_1_mc)) {
this.level.jeep_cont_mc.gotoAndStop(2);
this.gotoAndStop(2);
this.hit = true;
} else {
if (this.newClip.hitTest(this.level.jeep_cont_mc.jeep_wheel_2_mc)) {
this.level.jeep_cont_mc.gotoAndStop(2);
this.gotoAndStop(2);
this.hit = true;
} else {
if (this.newClip.hitTest(this.level.jeep_cont_mc.jeep_body_mc.driver_mc)) {
this.level.jeep_cont_mc.gotoAndStop(2);
this.gotoAndStop(2);
this.hit = true;
}
}
}
}
};
v2.hit = false;
ASSetPropFlags(assets.Bomb.prototype, null, 1);
}
#endinitclip
}
movieClip 514 __Packages.assets.Point {
#initclip
if (!_global.assets) {
_global.assets = new Object();
}
if (!_global.assets.Point) {
var v1 = function () {
super();
};
assets.Point = v1;
assets.Point extends MovieClip;
var v2 = v1.prototype;
v2.init = function ($coord_space) {
var v2 = {'x': this._x, 'y': this._y};
if (!assets.PiVal.isEmpty($coord_space)) {
this._parent.localToGlobal(v2);
$coord_space.globalToLocal(v2);
}
this.x = v2.x;
this.y = v2.y;
this.pn = new assets.Vector(0, 0);
};
v2.distance = function (that) {
return assets.PiGeo.distance(this.x, this.y, that.x, that.y);
};
ASSetPropFlags(assets.Point.prototype, null, 1);
}
#endinitclip
}
movieClip 515 __Packages.assets.PiGeo {
#initclip
if (!_global.assets) {
_global.assets = new Object();
}
if (!_global.assets.PiGeo) {
var v1 = function () {};
assets.PiGeo = v1;
var v2 = v1.prototype;
v1.distance = function ($x1, $y1, $x2, $y2) {
var v1 = $x1 - $x2;
var v2 = $y1 - $y2;
return Math.sqrt(v1 * v1 + v2 * v2);
};
v1.angle = function ($x1, $y1, $x2, $y2) {
return Math.atan2($x2 - $x1, $y2 - $y1) * assets.PiGeo.RADIAN;
};
v1.RADIAN = 57.29578;
v1.DEGREE = 0.01745329;
ASSetPropFlags(assets.PiGeo.prototype, null, 1);
}
#endinitclip
}
movieClip 516 __Packages.assets.Surface {
#initclip
if (!_global.assets) {
_global.assets = new Object();
}
if (!_global.assets.Surface) {
var v1 = function () {
super();
};
assets.Surface = v1;
assets.Surface extends MovieClip;
var v2 = v1.prototype;
v2.init = function ($coord_space) {
this.coord_space = $coord_space;
this.p1.init($coord_space);
this.p2.init($coord_space);
this.isOrientH = true;
this.normal = new assets.Vector(0, 0);
this.calcNormal();
this.rise = this.p2.y - this.p1.y;
this.run = this.p2.x - this.p1.x;
this.invRun = 1 / this.run;
this.slope = this.rise / this.run;
this.invB = 1 / (this.run * this.run + this.rise * this.rise);
this.coord_space.lineStyle(10, 2237064, 100);
};
v2.setIsOrientH = function ($isOrientH) {
this.isOrientH = $isOrientH;
};
v2.calcNormal = function () {
var v3 = this.p2.x - this.p1.x;
var v4 = this.p2.y - this.p1.y;
this.normal.x = v4;
this.normal.y = -v3;
var v2 = Math.sqrt(this.normal.x * this.normal.x + this.normal.y * this.normal.y);
this.normal.x /= v2;
this.normal.y /= v2;
};
v2.paint = function () {
assets.Graphics.prototype.paintLine(this.coord_space, this.p1.x, this.p1.y, this.p2.x, this.p2.y);
};
v2.resolveWheelCollision = function ($w) {
if (this.bounds($w.wp.curr, $w.contactRadius)) {
this.getClosestPoint($w.wp.curr, $w.closestPoint);
var v3 = $w.closestPoint.minusNew($w.wp.curr);
v3.normalize();
if (this.inequality($w.wp.curr)) {
var v5 = Math.abs(v3.x);
v3.x = this.normal.x < 0 ? v5 : -v5;
v3.y = Math.abs(v3.y);
}
var v4 = $w.wp.curr.plusNew(v3.mult($w.wr));
if (this.segmentInequality(v4)) {
var v6 = v4.x - $w.closestPoint.x;
var v7 = v4.y - $w.closestPoint.y;
$w.wp.curr.x -= v6;
$w.wp.curr.y -= v7;
$w.resolve(this.normal);
}
}
};
v2.resolveParticleCollision = function ($p, $sysObj) {
if (this.boundedSegmentInequality($p.curr)) {
var v3 = $p.curr.minusNew($p.prev);
var v4 = this.normal.dot(v3);
if (v4 < 0) {
var v5 = v3.minusNew(this.normal.multNew(v4));
var v10 = v5.multNew($sysObj.coeffFric);
var v8 = this.normal.multNew(v4 * $sysObj.coeffRest);
var v7 = v8.plusNew(v10);
var v6 = v3.minusNew(v7);
var v9 = this.normal.dot($p.curr.minusNew(this.p1)) * $sysObj.coeffRest;
$p.curr.minus(this.normal.multNew(v9));
$p.prev = $p.curr.minusNew(v6);
}
}
};
v2.segmentInequality = function ($toPoint) {
var v2 = this.findU($toPoint);
var v3 = this.inequality($toPoint);
return v2 >= 0 && v2 <= 1 && v3;
};
v2.boundedSegmentInequality = function ($toPoint) {
var v3;
if (this.isOrientH) {
v3 = $toPoint.x >= this.p1.x && $toPoint.x <= this.p2.x;
} else {
if (this.p1.y < this.p2.y) {
v3 = $toPoint.y >= this.p1.y && $toPoint.y <= this.p2.y;
} else {
v3 = $toPoint.y <= this.p1.y && $toPoint.y >= this.p2.y;
}
}
if (v3) {
return this.inequality($toPoint);
}
return false;
};
v2.inequality = function ($toPoint) {
var v2 = this.slope * ($toPoint.x - this.p1.x) + (this.p1.y - $toPoint.y);
return v2 <= 0;
};
v2.bounds = function ($toPoint, $r) {
return $toPoint.x >= this.p1.x - $r && $toPoint.x <= this.p2.x + $r;
};
v2.getClosestPoint = function ($toPoint, $returnVect) {
var v2 = this.findU($toPoint);
if (v2 <= 0) {
return this.p1;
}
if (v2 >= 1) {
return this.p2;
}
var v3 = this.p1.x + v2 * (this.p2.x - this.p1.x);
var v4 = this.p1.y + v2 * (this.p2.y - this.p1.y);
$returnVect.x = v3;
$returnVect.y = v4;
};
v2.findU = function ($p) {
var v2 = ($p.x - this.p1.x) * this.run + ($p.y - this.p1.y) * this.rise;
return v2 * this.invB;
};
ASSetPropFlags(assets.Surface.prototype, null, 1);
}
#endinitclip
}
movieClip 517 __Packages.assets.CircleSurface {
#initclip
if (!_global.assets) {
_global.assets = new Object();
}
if (!_global.assets.CircleSurface) {
var v1 = function () {
super();
};
assets.CircleSurface = v1;
assets.CircleSurface extends MovieClip;
var v2 = v1.prototype;
v2.init = function ($coord_space) {
var v2 = {'x': this._x, 'y': this._y};
if (!assets.PiVal.isEmpty($coord_space)) {
this._parent.localToGlobal(v2);
$coord_space.globalToLocal(v2);
}
this.cx = v2.x;
this.cy = v2.y;
this.r = this._width / 2;
this.lineStyle(0, 2237064, 100);
};
v2.paint = function () {
assets.Graphics.prototype.paintCircle(this, this.cx, this.cy, this.r);
};
v2.resolveWheelCollision = function ($w) {
var v2 = this.cx - $w.wp.curr.x;
var v4 = this.cy - $w.wp.curr.y;
var v5 = Math.sqrt(v2 * v2 + v4 * v4);
var v7 = $w.wr + this.r - v5;
if (v7 > 0) {
v2 /= v5;
v4 /= v5;
var v6 = v7 / 2;
$w.wp.curr.x -= v2 * v6;
$w.wp.curr.y -= v4 * v6;
var v8 = new assets.Vector(-v2, -v4);
$w.resolve(v8);
}
};
v2.resolveParticleCollision = function ($p) {
var v2 = new assets.Vector(this.cx, this.cy);
var v5 = v2.distance($p.curr);
if (v5 <= this.r) {
var v6 = ($p.curr.minusNew(v2)).normalize();
var v4 = v2.plusNew(v6.multNew(this.r));
$p.curr = v4;
}
};
ASSetPropFlags(assets.CircleSurface.prototype, null, 1);
}
#endinitclip
}
movieClip 518 __Packages.assets.Level {
#initclip
if (!_global.assets) {
_global.assets = new Object();
}
if (!_global.assets.Level) {
var v1 = function () {
super();
};
assets.Level = v1;
assets.Level extends MovieClip;
var v2 = v1.prototype;
v2.init = function () {
this.p_system = new assets.ParticleSystem();
this.p_system.setDamping(_global.gl_level.damping);
this.p_system.setGravity(_global.gl_level.gravity.x, _global.gl_level.gravity.y);
this.p_system.setKfr(_global.gl_level.kfr);
this.p_system.setFriction(_global.gl_level.friction);
var v7;
for (v7 in this.under_mc) {
var v3 = this.under_mc[v7];
v3._visible = false;
if (v3 instanceof assets.Surface) {
v3.init(this.under_mc);
this.p_system.addSurface(v3);
}
if (v3 instanceof assets.CircleSurface) {
v3.init(this.under_mc);
this.p_system.addCircleSurface(v3);
}
}
this.under_mc.ground_mc._visible = false;
this.under_mc.star_mc._visible = true;
var v9 = this.under_mc.jeep_dummy_mc.wheel_1_dummy_mc;
var v8 = this.under_mc.jeep_dummy_mc.wheel_2_dummy_mc;
var v5 = {'x': v9._x, 'y': v9._y};
var v6 = {'x': v8._x, 'y': v8._y};
this.under_mc.jeep_dummy_mc.localToGlobal(v5);
this.under_mc.jeep_dummy_mc.localToGlobal(v6);
this.globalToLocal(v5);
this.globalToLocal(v6);
this.jeep_wheel_1_mc = this.jeep_cont_mc.attachMovie('lib_jeep_wheel1', 'wheel_1_mc', this.jeep_cont_mc.getNextHighestDepth());
this.jeep_wheel_1_mc._x = v5.x;
this.jeep_wheel_1_mc._y = v5.y;
this.jeep_wheel_1_mc.init(this.jeep_cont_mc, 0);
this.p_system.addWheel(this.jeep_wheel_1_mc);
this.jeep_wheel_2_mc = this.jeep_cont_mc.attachMovie('lib_jeep_wheel2', 'wheel_2_mc', this.jeep_cont_mc.getNextHighestDepth());
this.jeep_wheel_2_mc._x = v6.x;
this.jeep_wheel_2_mc._y = v6.y;
this.jeep_wheel_2_mc.init(this.jeep_cont_mc, 0);
this.p_system.addWheel(this.jeep_wheel_2_mc);
this.jeep_body_mc = this.jeep_cont_mc.attachMovie('lib_jeep_body', 'jeep_body_mc', this.jeep_cont_mc.getNextHighestDepth());
var v4 = {};
v4.left = this.jeep_wheel_1_mc._x;
v4.right = this.jeep_wheel_2_mc._x;
v4.top = this.jeep_wheel_1_mc._y;
v4.width = v4.right - v4.left;
v4.mid = v4.left + v4.width / 2;
this.part = this.p_system.addParticle(v4.mid, v4.top - 40);
this.p_system.addConstraint(this.jeep_wheel_1_mc.wp, this.part);
this.p_system.addConstraint(this.jeep_wheel_2_mc.wp, this.part);
this.p_system.addConstraint(this.jeep_wheel_2_mc.wp, this.jeep_wheel_1_mc.wp);
this.over_mc.onEnterFrame = function () {
this._x = this._parent.under_mc._x;
this._y = this._parent.under_mc._y;
};
this.jeep_cont_mc.onEnterFrame = function () {
this._x = this._parent.under_mc._x;
this._y = this._parent.under_mc._y;
};
};
v2.start = function () {};
v2.moveCamera = function () {
var v4;
var v6 = 250 - this.jeep_body_mc._x;
var v7 = 200 - this.jeep_body_mc._y;
var v8 = v6 - this._x;
var v9 = v7 - this._y;
var v5 = assets.PiGeo.distance(v6, v7, this._x, this._y);
var v3 = v5 * 0.35;
if (v3 > 50) {
v3 = 50;
}
v4 = v3 / v5;
this._x += v8 * v4;
this._y += v9 * v4;
_global.pBar.update(this._x, this.under_mc.star_mc._x - this.under_mc.jeep_dummy_mc._x, this.under_mc.jeep_dummy_mc._x - this.under_mc.jeep_dummy_mc._width / 2);
};
ASSetPropFlags(assets.Level.prototype, null, 1);
}
#endinitclip
}
movieClip 519 __Packages.assets.ParticleSystem {
#initclip
if (!_global.assets) {
_global.assets = new Object();
}
if (!_global.assets.ParticleSystem) {
var v1 = function () {
this.init();
};
assets.ParticleSystem = v1;
var v2 = v1.prototype;
v2.init = function () {
this._particles_ar = [];
this._surfaces_ar = [];
this._constraints_ar = [];
this._wheels_ar = [];
this.gravity = new assets.Vector(0, 1);
this.coeffRest = 1.5;
this.coeffFric = 0.01;
this.coeffDamp = 0.99;
};
v2.addParticle = function ($px, $py, $mass) {
var v2 = new assets.Particle($px, $py, $mass);
this._particles_ar.push(v2);
this._p_count = this._particles_ar.length;
return v2;
};
v2.addWheel = function ($wheel) {
this._wheels_ar.push($wheel);
this._w_count = this._wheels_ar.length;
};
v2.addSurface = function ($s) {
this._surfaces_ar.push($s);
this._s_count = this._surfaces_ar.length;
};
v2.addCircleSurface = function ($s) {
this._surfaces_ar.push($s);
this._s_count = this._surfaces_ar.length;
};
v2.addConstraint = function ($p1, $p2) {
var v2 = new assets.Constraint($p1, $p2);
this._constraints_ar.push(v2);
this._c_count = this._constraints_ar.length;
return v2;
};
v2.addRectangle = function ($center, $rWidth, $rHeight) {
return new assets.Rectangle(this, $center, $rWidth, $rHeight);
};
v2.addAngularConstraint = function ($p1, $p2, $p3) {
var v2 = new assets.AngularConstraint($p1, $p2, $p3);
this._constraints_ar.push(v2);
this._c_count = this._constraints_ar.length;
return v2;
};
v2.setKfr = function ($kfr) {
this.coeffRest = 1 + $kfr;
};
v2.setFriction = function ($f) {
this.coeffFric = $f;
};
v2.setDamping = function ($d) {
this.coeffDamp = $d;
};
v2.setGravity = function ($gx, $gy) {
this.gravity.x = $gx;
this.gravity.y = $gy;
};
v2.verlet = function () {
var v2;
v2 = 0;
while (v2 < this._p_count) {
this._particles_ar[v2].verlet(this);
++v2;
}
v2 = 0;
while (v2 < this._w_count) {
this._wheels_ar[v2].verlet(this);
++v2;
}
};
v2.satisfy_constraints_ar = function () {
var v2;
v2 = 0;
while (v2 < this._c_count) {
this._constraints_ar[v2].resolve();
++v2;
}
};
v2.checkCollisions = function () {
var v4;
var v2;
var v3;
v4 = 0;
while (v4 < this._s_count) {
v2 = 0;
while (v2 < this._p_count) {
this._particles_ar[v2].checkCollision(this._surfaces_ar[v4], this);
++v2;
}
v3 = 0;
while (v3 < this._w_count) {
this._wheels_ar[v3].checkCollision(this._surfaces_ar[v4], this);
++v3;
}
++v4;
}
};
v2.paintSurfaces = function () {
var v2 = 0;
while (v2 < this._surfaces_ar.length) {
this._surfaces_ar[v2].paint();
++v2;
}
};
v2.paintParticles = function () {
var v2 = 0;
while (v2 < this._particles_ar.length) {
this._particles_ar[v2].paint();
++v2;
}
};
v2.paintConstraints = function () {
var v2 = 0;
while (v2 < this._constraints_ar.length) {
this._constraints_ar[v2].paint();
++v2;
}
};
v2.paintWheels = function () {
var v2 = 0;
while (v2 < this._wheels_ar.length) {
this._wheels_ar[v2].paint();
++v2;
}
};
v2.timeStep = function () {
this.verlet();
this.satisfy_constraints_ar();
this.checkCollisions();
};
ASSetPropFlags(assets.ParticleSystem.prototype, null, 1);
}
#endinitclip
}
movieClip 520 __Packages.assets.Constraint {
#initclip
if (!_global.assets) {
_global.assets = new Object();
}
if (!_global.assets.Constraint) {
var v1 = function ($p1, $p2) {
this.init($p1, $p2);
};
assets.Constraint = v1;
var v2 = v1.prototype;
v2.init = function ($p1, $p2) {
this.p1 = $p1;
this.p2 = $p2;
this.restLength = $p1.curr.distance($p2.curr);
var v3 = _root.main_mc.main_cont_mc.level_mc.over_mc.getNextHighestDepth();
this.dmc = _root.main_mc.main_cont_mc.level_mc.over_mc.createEmptyMovieClip('p_' + v3, v3);
};
v2.resolve = function () {
var v4 = this.p1.curr.minusNew(this.p2.curr);
var v2 = this.p1.curr.distance(this.p2.curr);
var v5 = (v2 - this.restLength) / v2;
var v3 = v4.mult(v5 * 0.5);
this.p1.curr.minus(v3);
this.p2.curr.plus(v3);
};
v2.setRestLength = function ($r) {
this.restLength = $r;
};
v2.paint = function () {
this.dmc.clear();
this.dmc.lineStyle(0, 10053171, 100);
assets.Graphics.prototype.paintLine(this.dmc, this.p1.curr.x, this.p1.curr.y, this.p2.curr.x, this.p2.curr.y);
};
ASSetPropFlags(assets.Constraint.prototype, null, 1);
}
#endinitclip
}
movieClip 521 __Packages.assets.Rectangle {
#initclip
if (!_global.assets) {
_global.assets = new Object();
}
if (!_global.assets.Rectangle) {
var v1 = function ($pSystem, $center, $rWidth, $rHeight) {
this.init($pSystem, $center, $rWidth, $rHeight);
};
assets.Rectangle = v1;
var v2 = v1.prototype;
v2.init = function ($pSystem, $center, $rWidth, $rHeight) {
var v4 = $pSystem.addParticle($center.x - $rWidth / 2, $center.y - $rHeight / 2, 0);
var v5 = $pSystem.addParticle($center.x + $rWidth / 2, $center.y - $rHeight / 2, 0);
var v6 = $pSystem.addParticle($center.x + $rWidth / 2, $center.y + $rHeight / 2, 0);
var v7 = $pSystem.addParticle($center.x - $rWidth / 2, $center.y + $rHeight / 2, 0);
$pSystem.addConstraint(v4, v5);
$pSystem.addConstraint(v5, v6);
$pSystem.addConstraint(v6, v7);
$pSystem.addConstraint(v7, v4);
$pSystem.addConstraint(v4, v6);
$pSystem.addConstraint(v5, v7);
this.p0 = v4;
this.p1 = v5;
this.p2 = v6;
this.p3 = v7;
};
ASSetPropFlags(assets.Rectangle.prototype, null, 1);
}
#endinitclip
}
movieClip 522 __Packages.assets.AngularConstraint {
#initclip
if (!_global.assets) {
_global.assets = new Object();
}
if (!_global.assets.AngularConstraint) {
var v1 = function ($pA, $pB, $pC) {
this.init($pA, $pB, $pC);
};
assets.AngularConstraint = v1;
var v2 = v1.prototype;
v2.init = function ($pA, $pB, $pC) {
this.pA = $pA.curr;
this.pB = $pB.curr;
this.pC = $pC.curr;
this.lineA = new assets.Line(this.pA, this.pB);
this.lineB = new assets.Line(this.pB, this.pC);
this.pD = new assets.Vector(this.pB.x + 0, this.pB.y - 1);
this.lineC = new assets.Line(this.pB, this.pD);
this.targetTheta = this.calcTheta(this.pA, this.pB, this.pC);
this.coeffStiff = 4;
};
v2.resolve = function () {
var v10 = this.getCentroid();
this.lineC.p2.x = this.lineC.p1.x + 0;
this.lineC.p2.y = this.lineC.p1.y - 1;
var v4 = this.pA.distance(this.pB);
var v6 = this.pB.distance(this.pC);
var v12 = this.calcTheta(this.pA, this.pB, this.pC);
var v11 = this.calcTheta(this.pA, this.pB, this.pD);
var v13 = this.calcTheta(this.pC, this.pB, this.pD);
var v8 = (this.targetTheta - v12) / 2;
var v5 = v11 + v8 * this.coeffStiff;
var v9 = v13 - v8 * this.coeffStiff;
this.pA.x = v4 * Math.sin(v5) + this.pB.x;
this.pA.y = v4 * Math.cos(v5) + this.pB.y;
this.pC.x = v6 * Math.sin(v9) + this.pB.x;
this.pC.y = v6 * Math.cos(v9) + this.pB.y;
var v7 = this.getCentroid();
var v2 = v7.x - v10.x;
var v3 = v7.y - v10.y;
this.pA.x -= v2;
this.pA.y -= v3;
this.pB.x -= v2;
this.pB.y -= v3;
this.pC.x -= v2;
this.pC.y -= v3;
};
v2.calcTheta = function ($pA, $pB, $pC) {
var v3 = new assets.Vector($pB.x - $pA.x, $pB.y - $pA.y);
var v2 = new assets.Vector($pC.x - $pB.x, $pC.y - $pB.y);
var v5 = v3.dot(v2);
var v4 = v3.cross(v2);
return Math.atan2(v4, v5);
};
v2.__set__theta = function ($t) {
this.targetTheta = $t;
null;
null;
null;
return this.__get__theta();
};
v2.__get__theta = function () {
return this.targetTheta;
};
v2.paint = function () {};
v2.getCentroid = function () {
var v2 = (this.pA.x + this.pB.x + this.pC.x) / 3;
var v3 = (this.pA.y + this.pB.y + this.pC.y) / 3;
return new assets.Vector(v2, v3);
};
v2.addProperty('theta', v2.__get__theta, v2.__set__theta);
ASSetPropFlags(assets.AngularConstraint.prototype, null, 1);
}
#endinitclip
}
movieClip 523 __Packages.assets.Line {
#initclip
if (!_global.assets) {
_global.assets = new Object();
}
if (!_global.assets.Line) {
var v1 = function ($p1, $p2) {
this.p1 = $p1;
this.p2 = $p2;
};
assets.Line = v1;
var v2 = v1.prototype;
ASSetPropFlags(assets.Line.prototype, null, 1);
}
#endinitclip
}
movieClip 524 __Packages.assets.JeepBody {
#initclip
if (!_global.assets) {
_global.assets = new Object();
}
if (!_global.assets.JeepBody) {
var v1 = function () {
super();
this.damage = 0;
this.max_damage = 200;
this.init();
};
assets.JeepBody = v1;
assets.JeepBody extends MovieClip;
var v2 = v1.prototype;
v2.init = function () {
this.createEmptyMovieClip('sync_mc', 5);
this.onEnterFrame = this.syncOnEnterFrame;
this.active = false;
this.level = this._parent._parent;
};
v2.linstenKeys = function () {
var v4 = 4.65;
var v3 = 0.88;
if (Key.isDown(37)) {
this.driver_mc.move('back');
this.level.jeep_wheel_1_mc.wp.mass = v3;
this.level.jeep_wheel_2_mc.wp.mass = -v3;
} else {
if (Key.isDown(39)) {
this.driver_mc.move('front');
this.level.jeep_wheel_1_mc.wp.mass = -v3;
this.level.jeep_wheel_2_mc.wp.mass = v3;
} else {
this.driver_mc.move('normal');
this.level.jeep_wheel_1_mc.wp.mass = 0;
this.level.jeep_wheel_2_mc.wp.mass = 0;
}
}
if (Key.isDown(38)) {
if (_root.sunet == true) {
if (_root.counterMotor == true) {
_root.motorStartSnd.motorStart.start(0, 1);
}
_root.counterMotor = false;
}
this.level.jeep_wheel_1_mc.rp.vs = v4 * 2;
this.level.jeep_wheel_2_mc.rp.vs = v4 / 2;
} else {
if (Key.isDown(40)) {
this.level.jeep_wheel_1_mc.rp.vs = -v4 / 4;
this.level.jeep_wheel_2_mc.rp.vs = -v4 / 10;
} else {
_root.counterMotor = true;
this.level.jeep_wheel_1_mc.rp.vs = 0;
this.level.jeep_wheel_2_mc.rp.vs = 0;
}
}
};
v2.syncOnEnterFrame = function () {
if (_global.gl_game_info.is_game_over || _global.gl_game_info.is_pause) {
return undefined;
}
this.level.moveCamera();
this.linstenKeys();
this.level.p_system.timeStep();
this.level.p_system.paintWheels();
var v7 = -assets.PiGeo.angle(this.level.jeep_wheel_1_mc._x, this.level.jeep_wheel_1_mc._y, this.level.jeep_wheel_2_mc._x, this.level.jeep_wheel_2_mc._y) + 90;
this._rotation = v7;
this._y = this.level.part.curr.y;
this._x = this.level.part.curr.x;
var v5 = {'x': this.driver_mc.head_mc._x, 'y': this.driver_mc.head_mc._y};
this.driver_mc.localToGlobal(v5);
if (this.level.under_mc.ground_mc.hitTest(v5.x, v5.y, true)) {
_global.gl_game_info.is_game_over = true;
_root.main_mc.messages_mc.gotoAndStop('game_over');
}
var v6 = {'x': this.driver_mc.foot_mc._x, 'y': this.driver_mc.foot_mc._y};
this.driver_mc.localToGlobal(v6);
if (this.level.under_mc.ground_mc.hitTest(v6.x, v6.y, true)) {
_global.gl_game_info.is_game_over = true;
_root.main_mc.messages_mc.gotoAndStop('game_over');
}
var v4 = {'x': this.level.under_mc.star_mc._x, 'y': this.level.under_mc.star_mc._y};
this.level.under_mc.localToGlobal(v4);
if (this.level.jeep_cont_mc.hitTest(v4.x, v4.y, true)) {
_global.gl_game_info.is_game_over = true;
_global.gl_level = _global.gl_user_info.levels['level_' + (_global.gl_user_info.curr_level + 1)];
trace(_global.gl_level);
trace(assets.PiVal.isEmpty(_global.gl_level));
if (assets.PiVal.isEmpty(_global.gl_level)) {
trace('ALLOVER ----------------------------- ');
_root.main_mc.messages_mc.gotoAndStop('game_completed');
_global.gl_user_info.curr_level = 1;
} else {
_root.main_mc.messages_mc.gotoAndStop('level_completed');
}
}
};
ASSetPropFlags(assets.JeepBody.prototype, null, 1);
}
#endinitclip
}
movieClip 525 __Packages.assets.Bar {
#initclip
if (!_global.assets) {
_global.assets = new Object();
}
if (!_global.assets.Bar) {
var v1 = function () {};
assets.Bar = v1;
var v2 = v1.prototype;
v2.update = function ($x, $w, l) {
var v5 = ((Stage.width / 2 - $x - l) / $w) * 100;
var v4 = (this.body._width - this.cursor._width) / 100;
this.cursor._x = v4 * v5;
this.totalWidth = 220;
this.currentWidth = Math.round(100 * this.cursor._x / this.totalWidth);
_root.distanceScore = this.currentWidth * _global.gl_user_info.curr_level;
this.greenBar._width = this.greenBar._x + this.cursor._x + 38;
this.rightBend._x = this.greenBar._x + this.greenBar._width;
};
ASSetPropFlags(assets.Bar.prototype, null, 1);
}
#endinitclip
}
frame 2 {
_root.locateURL = _url;
stop();
nextFrame();
if (_root.locateURL.indexOf('www.yougame.com', 0) != -1) {
nextFrame();
} else {
rightsClip._visible = true;
stop();
}
Stage.showMenu = false;
}
frame 3 {
stop();
_root.gameScore = 0;
_root.levelScore = 0;
_root.distanceScore = 0;
_root.bonusScore = 0;
}
// unknown tag 88 length 143
movieClip 19 {
frame 1 {
stop();
}
instance of movieClip 12 {
onClipEvent (release) {
getURL('http://www.yougame.com', '_top');
}
}
}
instance preloaderClip of movieClip 19 {
onClipEvent (load) {
total = _parent.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _parent.getBytesLoaded();
percent = int((loaded / total) * 100);
gotoAndStop(percent);
perText = percent + '%';
if (percent >= 100) {
_parent.gotoAndStop('logoanimation');
}
}
}
frame 7 {
stop();
}
movieClip 22 {
}
movieClip 26 {
}
movieClip 29 {
}
movieClip 30 {
}
movieClip 34 {
}
movieClip 37 {
}
movieClip 39 {
frame 1 {
}
frame 140 {
stop();
_parent.gotoAndPlay('init');
}
}
movieClip 46 {
}
movieClip 47 {
}
movieClip 49 {
}
movieClip 51 {
}
movieClip 53 {
}
movieClip 55 {
}
movieClip 57 {
}
movieClip 59 {
}
movieClip 61 {
frame 1 {
function move(to) {
if (position == to) {
return undefined;
}
if (!is_moving) {
movement = to;
if (position == 'normal') {
gotoAndPlay('move_' + to);
} else {
gotoAndPlay(position + '_to_normal');
}
} else {
movement = to;
}
}
position = 'normal';
is_moving = false;
stop();
}
frame 2 {
is_moving = true;
}
frame 10 {
position = 'front';
if (movement == 'front') {
movement = '';
is_moving = false;
stop();
}
}
frame 11 {
is_moving = true;
}
frame 21 {
position = 'normal';
if (movement == 'normal') {
is_moving = false;
stop();
} else {
gotoAndPlay('move_' + movement);
}
}
frame 22 {
is_moving = true;
}
frame 31 {
position = 'back';
if (movement == 'back') {
movement = '';
is_moving = false;
stop();
}
}
frame 32 {
is_moving = true;
}
frame 42 {
position = 'normal';
if (movement == 'normal') {
is_moving = false;
stop();
} else {
gotoAndPlay('move_' + movement);
}
}
}
movieClip 62 lib_jeep_body {
#initclip
Object.registerClass('lib_jeep_body', assets.JeepBody);
#endinitclip
frame 1 {
stop();
}
}
movieClip 64 lib_jeep_wheel1 {
#initclip
Object.registerClass('lib_jeep_wheel1', assets.Wheel);
#endinitclip
}
movieClip 66 lib_jeep_wheel2 {
#initclip
Object.registerClass('lib_jeep_wheel2', assets.Wheel);
#endinitclip
}
movieClip 107 {
}
movieClip 109 {
}
movieClip 110 {
}
movieClip 113 {
}
movieClip 114 {
frame 6 {
stop();
}
}
movieClip 115 Dollar {
#initclip
Object.registerClass('Dollar', assets.Scores);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
_root.dollarSoundSnd.dollarSound.start(0, 1);
_root.dollarSoundSnd.dollarSound.start(0, 1);
}
}
movieClip 154 {
}
movieClip 177 {
frame 12 {
stop();
_global.gl_game_info.is_game_over = true;
_root.main_mc.messages_mc.gotoAndStop('game_over');
}
}
movieClip 178 Bomb {
#initclip
Object.registerClass('Bomb', assets.Bomb);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
_root.BombSoundSnd.BombSound.start(0, 1);
_root.BombSoundSnd.BombSound.start(0, 1);
}
}
movieClip 183 {
}
movieClip 184 {
}
movieClip 186 {
}
movieClip 188 lib_point {
#initclip
Object.registerClass('lib_point', assets.Point);
#endinitclip
}
movieClip 190 lib_surface {
#initclip
Object.registerClass('lib_surface', assets.Surface);
#endinitclip
}
movieClip 193 {
}
movieClip 194 {
}
movieClip 195 {
}
movieClip 197 finish {
}
movieClip 199 lib_circle {
#initclip
Object.registerClass('lib_circle', assets.CircleSurface);
#endinitclip
}
movieClip 200 {
}
movieClip 201 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 203 {
}
movieClip 204 lib_level_10 {
#initclip
Object.registerClass('lib_level_10', assets.Level);
#endinitclip
frame 1 {
_root.levelCodeCurrent = _root.levelCode10;
}
}
movieClip 208 {
}
movieClip 209 {
}
movieClip 211 {
}
movieClip 212 {
}
movieClip 213 lib_level_9 {
#initclip
Object.registerClass('lib_level_9', assets.Level);
#endinitclip
frame 1 {
_root.levelCodeCurrent = _root.levelCode9;
}
}
movieClip 218 {
}
movieClip 219 {
}
movieClip 221 {
}
movieClip 222 {
}
movieClip 225 lib_level_8 {
#initclip
Object.registerClass('lib_level_8', assets.Level);
#endinitclip
frame 1 {
_root.levelCodeCurrent = _root.levelCode8;
}
}
movieClip 229 {
}
movieClip 230 {
}
movieClip 232 {
}
movieClip 233 {
}
movieClip 234 lib_level_7 {
#initclip
Object.registerClass('lib_level_7', assets.Level);
#endinitclip
frame 1 {
_root.levelCodeCurrent = _root.levelCode7;
}
}
movieClip 238 {
}
movieClip 239 {
}
movieClip 241 {
}
movieClip 242 {
}
movieClip 243 lib_level_6 {
#initclip
Object.registerClass('lib_level_6', assets.Level);
#endinitclip
frame 1 {
_root.levelCodeCurrent = _root.levelCode6;
}
}
movieClip 249 {
}
movieClip 250 {
}
movieClip 252 lib_level_5 {
#initclip
Object.registerClass('lib_level_5', assets.Level);
#endinitclip
frame 1 {
_root.levelCodeCurrent = _root.levelCode5;
}
}
movieClip 256 {
}
movieClip 257 {
}
movieClip 259 {
}
movieClip 260 {
}
movieClip 261 lib_level_4 {
#initclip
Object.registerClass('lib_level_4', assets.Level);
#endinitclip
frame 1 {
_root.levelCodeCurrent = _root.levelCode4;
}
}
movieClip 265 {
}
movieClip 266 {
}
movieClip 268 {
}
movieClip 269 {
}
movieClip 272 lib_level_3 {
#initclip
Object.registerClass('lib_level_3', assets.Level);
#endinitclip
frame 1 {
_root.levelCodeCurrent = _root.levelCode3;
}
}
movieClip 278 {
}
movieClip 279 {
}
movieClip 280 lib_level_2 {
#initclip
Object.registerClass('lib_level_2', assets.Level);
#endinitclip
frame 1 {
_root.levelCodeCurrent = _root.levelCode2;
}
}
movieClip 284 {
}
movieClip 285 {
}
movieClip 287 {
}
movieClip 288 {
}
movieClip 289 lib_level_1 {
#initclip
Object.registerClass('lib_level_1', assets.Level);
#endinitclip
frame 1 {
_root.levelCodeCurrent = _root.levelCode1;
}
}
frame 25 {
function resetTime() {
_root.secunde = 0;
_root.secundeTXT = '00';
_root.minute = 0;
_root.minuteTXT = '00';
_root.crashOn = 'off';
}
function startGame() {
_root.distanceScore = 0;
_root.bonusScore = 0;
_root.levelScore = 0;
_root.timescore = 0;
_root.score = Number(_root.minuteTXT) * 60 + Number(_root.secundeTXT);
_global.gl_level = gl_user_info.levels['level_' + gl_user_info.curr_level];
gl_game_info.is_pause = false;
gl_game_info.is_game_over = gl_game_info.is_pause;
main_mc.back_mc.gotoAndStop('level_' + gl_user_info.curr_level);
main_mc.messages_mc.gotoAndStop('empty');
_root.onKeyDown = function () {
if (Key.getCode() == 80) {
gl_game_info.is_pause = !gl_game_info.is_pause;
if (_root.crashOn == 'off') {
if (gl_game_info.is_pause) {
main_mc.messages_mc.gotoAndPlay('pause');
} else {
main_mc.messages_mc.gotoAndPlay('un_pause');
}
}
}
if (_global.gl_user_info.curr_level > 99999) {
_global.gl_user_info.curr_level = 1;
}
};
Key.addListener(_root);
if (!Pirrest.Common.PiVal.isEmpty(gl_level)) {
main_mc.main_cont_mc.attachMovie(gl_level.link, 'level_mc', 1);
}
}
function updateScore() {
lastLevel = _global.gl_user_info.curr_level;
_root.countDollar = _root['level' + lastLevel + 'Count'];
_root.bonusScore = _root.countDollar * (lastLevel * 5);
_root.levelScore = _root.bonusScore;
if (_root.levelScore < 0) {
_root.levelScore = 0;
}
}
function resetCountDollar() {
var v2 = 1;
while (v2 <= 10) {
_root['level' + v2 + 'Count'] = 0;
++v2;
}
}
function timeDistanceScore(minval) {
if (minval == 0) {
minval = 1;
}
minV = Number(minval);
TotalPoints = 100;
if (minV <= 10) {
newPoints = TotalPoints / minval;
_root.timescore = newPoints * _global.gl_user_info.curr_level;
_root.levelScore += _root.timescore;
}
}
jb = new Pirrest.BigFoot.JeepBody();
Key.addListener(jb);
player = {'link': 'lib_jeep'};
level_1 = {'link': 'lib_level_1', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.5, 'friction': 0.5};
level_2 = {'link': 'lib_level_2', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.5, 'friction': 0.5};
level_3 = {'link': 'lib_level_3', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.5, 'friction': 0.5};
level_4 = {'link': 'lib_level_4', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.5, 'friction': 0.5};
level_5 = {'link': 'lib_level_5', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.5, 'friction': 0.5};
level_6 = {'link': 'lib_level_6', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.5, 'friction': 0.5};
level_7 = {'link': 'lib_level_7', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.5, 'friction': 0.5};
level_8 = {'link': 'lib_level_8', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.5, 'friction': 0.5};
level_9 = {'link': 'lib_level_9', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.5, 'friction': 0.5};
level_10 = {'link': 'lib_level_10', 'damping': 0.98, 'gravity': {'x': 0, 'y': 0.55}, 'kfr': 0.1, 'friction': 0.8};
levels = {'level_1': level_1, 'level_2': level_2, 'level_3': level_3, 'level_4': level_4, 'level_5': level_5, 'level_6': level_6, 'level_7': level_7, 'level_8': level_8, 'level_9': level_9, 'level_10': level_10};
_global.gl_user_info = {'levels': levels, 'player': player, 'curr_level': 1};
_global.gl_game_info = {'is_game_over': false, 'is_pause': false};
delete player;
delete level_1;
delete level_2;
delete level_3;
delete level_4;
delete level_5;
delete level_6;
delete level_7;
delete level_8;
delete level_9;
delete level_10;
delete levels;
main_mc.gotoAndStop('intro');
_root.sunet = true;
_root.levelGoto = 1;
_root.cheated = true;
_root.muteallSounds = false;
_root.pressedOnce = 0;
_root.crashOn = 'off';
resetCountDollar();
}
movieClip 293 {
}
// unknown tag 88 length 104
button 298 {
on (release) {
_root.secundeTXT = '00';
_root.minuteTXT = '00';
gotoAndStop('game');
_global.gl_user_info.curr_level = _root.levelGoto;
if (_root.levelGoto == 1) {
lastLevel = _root.levelGoto;
_root['level' + lastLevel + 'Count'] = 0;
_root.gameScore = 0;
_root.levelScore = 0;
_root.bonusScore = 0;
_root.timescore = 0;
}
}
}
button 303 {
on (release) {
helpClip.gotoAndPlay(2);
}
}
button 308 {
on (release) {
getURL('http://www.yougame.com', '_top');
}
}
button 313 {
on (release) {
code.play();
}
}
button 314 {
on (release) {
getURL('http://www.yougame.com', '_top');
}
}
movieClip 317 {
}
movieClip 323 {
}
movieClip 325 {
}
button 329 {
on (release) {
gotoAndPlay('release');
}
}
movieClip 333 {
}
movieClip 339 {
frame 1 {
stop();
}
frame 10 {
stop();
}
}
button 348 {
on (release, keyPress '<Space>') {
_root.main_mc.getLevel();
gotoAndStop(2);
}
}
button 353 {
on (release) {
_root.secundeTXT = '00';
_root.minuteTXT = '00';
_parent._parent.gotoAndStop('game');
_global.gl_user_info.curr_level = _root.levelGoto;
if (_root.levelGoto == 1) {
_root.lastLevel = _root.levelGoto;
_root['level' + lastLevel + 'Count'] = 0;
_root.gameScore = 0;
_root.levelScore = 0;
_root.bonusScore = 0;
_root.timescore = 0;
}
_parent.gotoAndPlay('release');
}
}
movieClip 356 {
frame 1 {
btn.useHandCursor = false;
stop();
}
frame 2 {
btn.useHandCursor = false;
stop();
_root.levelGoto = _global.gl_user_info.curr_level;
}
}
movieClip 357 {
frame 1 {
stop();
}
frame 10 {
stop();
}
}
movieClip 360 {
}
movieClip 362 {
}
movieClip 363 {
}
movieClip 365 {
}
movieClip 367 {
}
movieClip 369 {
}
movieClip 370 ms_progressBar {
#initclip
Object.registerClass('ms_progressBar', assets.Bar);
#endinitclip
}
movieClip 371 {
}
movieClip 372 {
}
movieClip 373 {
}
movieClip 377 {
}
movieClip 380 {
}
button 382 {
on (release, keyPress '<Space>') {
_parent.pBar._visible = true;
_root.resetTime();
_global.gl_user_info.curr_level += 1;
_root.crashOn = 'off';
_root.main_mc.gotoAndPlay('replay');
}
}
movieClip 386 {
}
movieClip 387 {
}
movieClip 388 {
}
movieClip 410 {
}
movieClip 411 {
}
button 412 {
on (press) {
var gname = 'bigone973A';
var gscore = _root.gameScore;
getURL('index.php?act=Arcade&do=newscore', '_self', 'POST');
}
}
button 414 {
on (release, keyPress '<Space>') {
_root.crashOn = 'off';
_root.main_mc.gotoAndPlay('replay');
}
}
button 416 {
on (release) {
_root.gameScore -= _root.distanceScore;
_root.gameScore -= _root.levelScore;
_root.crashOn = 'off';
_root.main_mc.gotoAndStop('intro');
}
}
// unknown tag 88 length 4
button 443 {
on (release) {
trace('_root.gameScore = ' + _root.gameScore);
_root.gameScore -= _root.distanceScore;
trace('_root.gameScore = ' + _root.gameScore);
_root.gameScore -= _root.levelScore;
_root.bonusScore = 0;
trace('_root.gameScore = ' + _root.gameScore);
_root.crashOn = 'off';
_root.main_mc.gotoAndStop('intro');
}
}
button 444 {
on (release, keyPress '<Space>') {
_parent.pBar._visible = true;
lastLevel = _global.gl_user_info.curr_level;
_root['level' + lastLevel + 'Count'] = 0;
_root.gameScore -= _root.distanceScore;
_root.gameScore -= _root.levelScore;
_root.crashOn = 'off';
_root.resetTime();
_root.main_mc.gotoAndPlay('replay');
}
}
movieClip 449 {
frame 1 {
if (_root.sunet == true) {
_root.motoLoopSnd.motoLoop.start(0, 100000000);
_root.bgSoundSnd.bgSound.start(0, 1000000000);
}
}
frame 8 {
stopAllSounds();
pause_mc.caption = 'GAME PAUSED';
next_btn.onRelease = function () {
_root.main_mc.gotoAndPlay('replay');
};
menu_btn.onRelease = function () {
_root.main_mc.gotoAndStop('intro');
};
text_1_mc.caption = 'RESTART';
text_2_mc.caption = 'MAIN MENU';
_parent.pBar._visible = false;
_parent.muteClip._visible = false;
}
frame 24 {
stop();
}
frame 25 {
_parent.pBar._visible = true;
_parent.muteClip._visible = true;
}
frame 31 {
gotoAndStop('empty');
}
frame 33 {
_parent.meniu._visible = false;
_parent.counter._visible = false;
_parent.pBar._visible = false;
_parent.muteClip._visible = false;
_parent.bara._visible = false;
_root.motoLoopSnd.motoLoop.stop();
_root.bgSoundSnd.bgSound.stop();
_root.motorStartSnd.motorStart.stop();
_root.timeDistanceScore(_root.minuteTXT);
_root.levelScore += _root.distanceScore;
this.levelscoreVar = _root.levelScore;
_root.gameScore += _root.levelScore;
title_mc.caption = 'LEVEL COMPLETED!';
}
frame 42 {
stop();
}
frame 44 {
_parent.meniu._visible = false;
_parent.counter._visible = false;
_parent.bara._visible = false;
_parent.pBar._visible = false;
_parent.muteClip._visible = false;
_root.motoLoopSnd.motoLoop.stop();
_root.bgSoundSnd.bgSound.stop();
_root.motorStartSnd.motorStart.stop();
_root.timeDistanceScore(_root.minuteTXT);
_root.levelScore += _root.distanceScore;
this.levelscoreVar = _root.levelScore;
_root.gameScore += _root.levelScore;
menu_btn.onRelease = function () {
_root.main_mc.gotoAndStop('intro');
};
title_mc.caption = 'Congratulations! You have completed the game.';
text_1_mc.caption = 'MAIN MENU';
text_2_mc.caption = 'MAIN MENU';
}
frame 53 {
stop();
}
frame 55 {
_parent.meniu._visible = false;
_parent.counter._visible = false;
_parent.bara._visible = false;
_parent.pBar._visible = false;
_parent.muteClip._visible = false;
_root.motoLoopSnd.motoLoop.stop();
_root.bgSoundSnd.bgSound.stop();
_root.motorStartSnd.motorStart.stop();
_root.levelScore += _root.distanceScore;
this.levelscoreVar = _root.levelScore;
_root.gameScore += _root.levelScore;
_root.crashOn = 'on';
if (_global.gl_user_info.curr_level > 1) {
title_mc.caption = 'CRASHED';
} else {
title_mc.caption = 'Crashed!';
}
}
frame 64 {
stop();
}
}
movieClip 451 {
}
movieClip 453 {
}
button 455 {
on (release) {
getURL('http://www.yougame.com', '_top');
}
}
movieClip 458 {
}
movieClip 460 {
}
movieClip 462 {
}
movieClip 471 {
frame 31 {
if (_parent.messages_mc._currentframe == 1) {
++_root.secunde;
if (_root.secunde < 10) {
_root.secundeTXT = '0' + _root.secunde;
} else {
_root.secundeTXT = _root.secunde;
}
if (_root.secunde % 60 == 0) {
_root.secunde = 0;
_root.secundeTXT = '00';
++_root.minute;
if (_root.minute < 10) {
_root.minuteTXT = '0' + _root.minute;
} else {
_root.minuteTXT = _root.minute;
}
}
}
}
}
movieClip 475 {
}
movieClip 476 {
}
movieClip 480 {
}
movieClip 481 {
}
movieClip 482 {
}
movieClip 483 {
}
button 484 {
on (release) {
muteSounds(0);
}
}
movieClip 486 {
}
button 489 {
on (release) {
muteSounds(1);
}
}
movieClip 490 {
frame 1 {
stop();
}
}
movieClip 493 {
}
movieClip 495 {
frame 1 {
stop();
}
}
movieClip 499 {
frame 1 {
function getLevel() {
var v3 = 1;
while (v3 <= total_levels) {
if (levels[v3] == _root.levelCode) {
lastLevel = v3;
_root['level' + lastLevel + 'Count'] = 0;
_root.levelGoto = v3;
_root.cheated = true;
_root.secundeTXT = '00';
_root.minuteTXT = '00';
_global.gl_user_info.curr_level = _root.levelGoto;
trace('when check code is inserted = ' + _global.gl_user_info.curr_level);
}
++v3;
}
}
var levels = new Array();
var total_levels = 10;
_root.levelText = 1;
_root.levelGoto = 1;
_root.levelCode = '';
levels[1] = 32456;
levels[2] = 64578;
levels[3] = 42863;
levels[4] = 13462;
levels[5] = 86248;
levels[6] = 96565;
levels[7] = 59159;
levels[8] = 24961;
levels[9] = 66268;
levels[10] = 12597;
_root.levelCode1 = levels[1];
_root.levelCode2 = levels[2];
_root.levelCode3 = levels[3];
_root.levelCode4 = levels[4];
_root.levelCode5 = levels[5];
_root.levelCode6 = levels[6];
_root.levelCode7 = levels[7];
_root.levelCode8 = levels[8];
_root.levelCode9 = levels[9];
_root.levelCode10 = levels[10];
}
frame 9 {
stop();
}
frame 10 {
stopAllSounds();
_root.secunde = 0;
_root.secundeTXT = '00';
_root.minute = 0;
_root.minuteTXT = '00';
_root.levelGoto = 1;
_global.gl_user_info.curr_level = _root.levelGoto;
_root.resetCountDollar();
}
frame 17 {
_root.startGame();
nextFrame();
_global.pBar = this.pBar;
}
frame 18 {
_root.main_mc.main_cont_mc.level_mc.init();
loader_mc._visible = false;
loader_mc.gotoAndStop(1);
}
instance muteClip of movieClip 490 {
onClipEvent (load) {
function muteSounds(num) {
if (num == 0) {
volumeVal = 0;
crowdVolume = 0;
gotoAndStop('off');
_root.bgSoundSnd.bgSound.setVolume(0);
_root.muteallSounds = true;
}
if (num == 1) {
volumeVal = 100;
crowdVolume = 100;
gotoAndStop('on');
_root.bgSoundSnd.bgSound.setVolume(100);
_root.muteallSounds = false;
}
}
if (_root.muteallSounds == true) {
muteSounds(0);
}
}
}
frame 27 {
stop();
}
}
movieClip 501 {
frame 1 {
motoLoop = new Sound(this);
motoLoop.attachSound('motoLoop');
}
}
movieClip 502 {
frame 1 {
motorStart = new Sound(this);
motorStart.attachSound('motorStart');
}
}
movieClip 503 {
frame 1 {
dollarSound = new Sound(this);
dollarSound.attachSound('dollarSound');
}
}
movieClip 504 {
frame 1 {
BombSound = new Sound();
BombSound.attachSound('BombSound');
}
}
movieClip 505 {
frame 1 {
bgSound = new Sound(this);
bgSound.attachSound('bgSound');
}
}
frame 35 {
prevFrame();
}