Frame 1
stop();
Frame 21
function startGame() {
_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_game_over = (gl_game_info.is_pause = false);
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 (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);
}
}
trace("test " + levels);
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.1, friction:0.8};
level_2 = {link:"lib_level_2", damping:0.98, gravity:{x:0, y:0.55}, kfr:0.1, friction:0.8};
level_3 = {link:"lib_level_3", damping:0.98, gravity:{x:0, y:0.55}, kfr:0.1, friction:0.8};
level_4 = {link:"lib_level_4", damping:0.98, gravity:{x:0, y:0.55}, kfr:0.1, friction:0.8};
level_5 = {link:"lib_level_5", damping:0.98, gravity:{x:0, y:0.55}, kfr:0.1, friction:0.8};
level_6 = {link:"lib_level_6", damping:0.98, gravity:{x:0, y:0.55}, kfr:0.1, friction:0.8};
level_7 = {link:"lib_level_7", damping:0.98, gravity:{x:0, y:0.55}, kfr:0.1, friction:0.8};
level_8 = {link:"lib_level_8", damping:0.98, gravity:{x:0, y:0.55}, kfr:0.1, friction:0.8};
level_9 = {link:"lib_level_9", damping:0.98, gravity:{x:0, y:0.55}, kfr:0.1, friction:0.8};
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.motoLoop = new Sound();
_root.motoLoop.attachSound("motoLoop");
_root.motorStart = new Sound();
_root.motorStart.attachSound("motorStart");
_root.motorBooster = new Sound();
_root.motorBooster.attachSound("booster");
_root.locatie = _url;
_root.levelGoto = 1;
_root.cheated = true;
_root.muteallSounds = false;
_root.pressedOnce = 0;
Frame 31
prevFrame();
Symbol 3 MovieClip [lib_jeep_wheel2] Frame 1
#initclip 19
Object.registerClass("lib_jeep_wheel2", Pirrest.PhisicsEngine.Wheel);
#endinitclip
Symbol 6 MovieClip [lib_jeep_wheel1] Frame 1
#initclip 18
Object.registerClass("lib_jeep_wheel1", Pirrest.PhisicsEngine.Wheel);
#endinitclip
Symbol 20 MovieClip Frame 1
stop();
Symbol 24 Button
on (release) {
getURL ("http://www.freegames911.com", "_self");
}
Instance of Symbol 20 MovieClip in Symbol 32 MovieClip Frame 1
onClipEvent (load) {
total = _parent._parent.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _parent._parent.getBytesLoaded();
percent = int((loaded / total) * 100);
gotoAndStop(percent);
perText = percent + "%";
if (percent >= 100) {
_parent.gotoAndPlay("init");
}
}
Symbol 32 MovieClip Frame 2
stop();
LoaderBlk.useHandCursor = false;
Symbol 32 MovieClip Frame 3
LoaderBlk.useHandCursor = false;
play();
Symbol 32 MovieClip Frame 73
_parent.gotoAndStop("init");
stop();
Symbol 250 MovieClip [__Packages.Pirrest.PhisicsEngine.Wheel] Frame 0
class Pirrest.PhisicsEngine.Wheel extends MovieClip
{
var _coord_space, _parent, _y, _x, wr, _width, wp, rp, contactRadius, coeffSlip, closestPoint, _rotation;
function Wheel () {
super();
}
function init($coord_space, $mass) {
if (Pirrest.Common.PiVal.isEmpty($coord_space)) {
_coord_space = _parent;
} else {
_coord_space = $coord_space;
}
var _local2 = {x:_x, y:_y};
_parent.localToGlobal(_local2);
$coord_space.globalToLocal(_local2);
wr = _width / 2;
wp = new Pirrest.PhisicsEngine.Particle(_local2.x, _local2.y, $mass);
rp = new Pirrest.PhisicsEngine.RimParticle(wr, 2);
contactRadius = wr;
coeffSlip = 0;
closestPoint = new Pirrest.PhisicsEngine.Vector(0, 0);
}
function verlet($sysObj) {
rp.verlet($sysObj);
wp.verlet($sysObj);
}
function checkCollision($surface, $sysObj) {
$surface.resolveWheelCollision(this);
}
function paint() {
var _local2 = wp.curr.x;
var _local3 = wp.curr.y;
var _local5 = rp.curr.x;
var _local7 = rp.curr.y;
_x = _local2;
_y = _local3;
var _local6 = 57.29578;
var _local4 = (-Math.atan2(_local5, _local7)) * _local6;
_rotation = _local4;
}
function resolve($n) {
var _local3 = -rp.curr.y;
var _local4 = rp.curr.x;
var _local8 = Math.sqrt((_local3 * _local3) + (_local4 * _local4));
_local3 = _local3 / _local8;
_local4 = _local4 / _local8;
var _local9 = _local3 * rp.speed;
var _local11 = _local4 * rp.speed;
var _local10 = wp.curr.x - wp.prev.x;
var _local12 = wp.curr.y - wp.prev.y;
var _local13 = _local10 + _local9;
var _local14 = _local12 + _local11;
var _local7 = ((-$n.y) * _local13) + ($n.x * _local14);
rp.prev.x = rp.curr.x - (_local7 * _local3);
rp.prev.y = rp.curr.y - (_local7 * _local4);
var _local6 = 1 - coeffSlip;
wp.curr.x = wp.curr.x + ((_local6 * rp.speed) * (-$n.y));
wp.curr.y = wp.curr.y + ((_local6 * rp.speed) * $n.x);
trace("before = " + rp.speed);
trace("_root.spacePressed = " + _root.spacePressed);
rp.speed = rp.speed * coeffSlip;
trace("after = " + rp.speed);
}
}
Symbol 251 MovieClip [__Packages.Pirrest.Common.PiVal] Frame 0
class Pirrest.Common.PiVal
{
function PiVal () {
}
static function isEmpty($obj) {
if (($obj == "") || ($obj == undefined)) {
return(true);
}
return(false);
}
}
Symbol 252 MovieClip [__Packages.Pirrest.PhisicsEngine.Particle] Frame 0
class Pirrest.PhisicsEngine.Particle
{
var curr, prev, temp, mass, dmc;
function Particle ($posX, $posY, $mass) {
init($posX, $posY, $mass);
}
function init($posX, $posY, $mass) {
curr = new Pirrest.PhisicsEngine.Vector($posX, $posY);
prev = new Pirrest.PhisicsEngine.Vector($posX, $posY);
temp = new Pirrest.PhisicsEngine.Vector(0, 0);
if (($mass == undefined) || ($mass < 0)) {
mass = 0;
} else {
mass = $mass;
}
var _local3 = _root.main_mc.main_cont_mc.level_mc.over_mc.getNextHighestDepth();
dmc = _root.main_mc.main_cont_mc.level_mc.over_mc.createEmptyMovieClip("p_" + _local3, _local3);
}
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) + mass);
prev.x = temp.x;
prev.y = temp.y;
}
function checkCollision($surface, $sysObj) {
$surface.resolveParticleCollision(this, $sysObj);
}
function paint() {
dmc.clear();
dmc.lineStyle(0, 16777215, 100);
Pirrest.PhisicsEngine.Graphics.prototype.paintCircle(dmc, curr.x, curr.y, 2);
}
function setPos($px, $py) {
curr.x = $px;
curr.y = $py;
prev.x = $px;
prev.y = $py;
}
}
Symbol 253 MovieClip [__Packages.Pirrest.PhisicsEngine.Vector] Frame 0
class Pirrest.PhisicsEngine.Vector
{
var x, y;
function Vector ($x, $y) {
init($x, $y);
}
function init($x, $y) {
x = $x;
y = $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 Pirrest.PhisicsEngine.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 Pirrest.PhisicsEngine.Vector(x - $v.x, y - $v.y));
}
function mult($s) {
x = x * $s;
y = y * $s;
return(this);
}
function multNew($s) {
return(new Pirrest.PhisicsEngine.Vector(x * $s, y * $s));
}
function distance($p) {
var _local2 = x - $p.x;
var _local3 = y - $p.y;
return(Math.sqrt((_local2 * _local2) + (_local3 * _local3)));
}
function normalize() {
var _local2 = Math.sqrt((x * x) + (y * y));
x = x / _local2;
y = y / _local2;
return(this);
}
}
Symbol 254 MovieClip [__Packages.Pirrest.PhisicsEngine.Graphics] Frame 0
class Pirrest.PhisicsEngine.Graphics
{
function Graphics () {
}
function paintLine($target_mc, $x0, $y0, $x1, $y1) {
$target_mc.moveTo($x0, $y0);
$target_mc.lineTo($x1, $y1);
}
function paintCircle($target_mc, $x, $y, $r) {
var _local5 = 0.4142136 * $r;
var _local4 = 0.7071068 * $r;
$target_mc.moveTo($x + $r, $y);
$target_mc.curveTo($r + $x, _local5 + $y, _local4 + $x, _local4 + $y);
$target_mc.curveTo(_local5 + $x, $r + $y, $x, $r + $y);
$target_mc.curveTo((-_local5) + $x, $r + $y, (-_local4) + $x, _local4 + $y);
$target_mc.curveTo((-$r) + $x, _local5 + $y, (-$r) + $x, $y);
$target_mc.curveTo((-$r) + $x, (-_local5) + $y, (-_local4) + $x, (-_local4) + $y);
$target_mc.curveTo((-_local5) + $x, (-$r) + $y, $x, (-$r) + $y);
$target_mc.curveTo(_local5 + $x, (-$r) + $y, _local4 + $x, (-_local4) + $y);
$target_mc.curveTo($r + $x, (-_local5) + $y, $r + $x, $y);
}
}
Symbol 255 MovieClip [__Packages.Pirrest.PhisicsEngine.RimParticle] Frame 0
class Pirrest.PhisicsEngine.RimParticle
{
var curr, prev, vs, speed, maxTorque, wr;
function RimParticle ($r, $mt) {
init($r, $mt);
}
function init($r, $mt) {
curr = new Pirrest.PhisicsEngine.Vector($r, 0);
prev = new Pirrest.PhisicsEngine.Vector(0, 0);
vs = 0;
speed = 0;
maxTorque = $mt;
wr = $r;
}
function verlet($sysObj) {
trace("BEFORE ------------ speed = " + speed);
trace(" _root.pressedOnce = " + _root.pressedOnce);
if (_root.pressedOnce == 1) {
speed = Math.max(-maxTorque, Math.min(maxTorque, speed + vs)) + 7;
} else {
speed = Math.max(-maxTorque, Math.min(maxTorque, speed + vs));
}
trace("AFTER ------------ speed = " + speed);
var _local3 = -curr.y;
var _local4 = curr.x;
var _local7 = Math.sqrt((_local3 * _local3) + (_local4 * _local4));
_local3 = _local3 / _local7;
_local4 = _local4 / _local7;
curr.x = curr.x + (speed * _local3);
curr.y = curr.y + (speed * _local4);
var _local8 = prev.x;
var _local9 = prev.y;
var _local11 = (prev.x = curr.x);
var _local10 = (prev.y = curr.y);
curr.x = curr.x + ($sysObj.coeffDamp * (_local11 - _local8));
curr.y = curr.y + ($sysObj.coeffDamp * (_local10 - _local9));
var _local5 = Math.sqrt((curr.x * curr.x) + (curr.y * curr.y));
var _local6 = (_local5 - wr) / _local5;
curr.x = curr.x - (curr.x * _local6);
curr.y = curr.y - (curr.y * _local6);
}
}
Symbol 256 MovieClip [__Packages.Pirrest.PhisicsEngine.Point] Frame 0
class Pirrest.PhisicsEngine.Point extends MovieClip
{
var _y, _x, _parent, x, y, pn;
function Point () {
super();
}
function init($coord_space) {
var _local2 = {x:_x, y:_y};
if (!Pirrest.Common.PiVal.isEmpty($coord_space)) {
_parent.localToGlobal(_local2);
$coord_space.globalToLocal(_local2);
}
x = _local2.x;
y = _local2.y;
pn = new Pirrest.PhisicsEngine.Vector(0, 0);
}
function distance(that) {
return(Pirrest.Common.PiGeo.distance(x, y, that.x, that.y));
}
}
Symbol 257 MovieClip [__Packages.Pirrest.Common.PiGeo] Frame 0
class Pirrest.Common.PiGeo
{
function PiGeo () {
}
static function distance($x1, $y1, $x2, $y2) {
var _local1 = $x1 - $x2;
var _local2 = $y1 - $y2;
return(Math.sqrt((_local1 * _local1) + (_local2 * _local2)));
}
static function angle($x1, $y1, $x2, $y2) {
return(Math.atan2($x2 - $x1, $y2 - $y1) * RADIAN);
}
static var RADIAN = 57.29578;
static var DEGREE = 0.01745329;
}
Symbol 258 MovieClip [__Packages.Pirrest.PhisicsEngine.Surface] Frame 0
class Pirrest.PhisicsEngine.Surface extends MovieClip
{
var coord_space, p1, p2, isOrientH, normal, rise, run, invRun, slope, invB;
function Surface () {
super();
}
function init($coord_space) {
coord_space = $coord_space;
p1.init($coord_space);
p2.init($coord_space);
isOrientH = true;
normal = new Pirrest.PhisicsEngine.Vector(0, 0);
calcNormal();
rise = p2.y - p1.y;
run = p2.x - p1.x;
invRun = 1 / run;
slope = rise / run;
invB = 1 / ((run * run) + (rise * rise));
coord_space.lineStyle(10, 2237064, 100);
}
function setIsOrientH($isOrientH) {
isOrientH = $isOrientH;
}
function calcNormal() {
var _local3 = p2.x - p1.x;
var _local4 = p2.y - p1.y;
normal.x = _local4;
normal.y = -_local3;
var _local2 = Math.sqrt((normal.x * normal.x) + (normal.y * normal.y));
normal.x = normal.x / _local2;
normal.y = normal.y / _local2;
}
function paint() {
Pirrest.PhisicsEngine.Graphics.prototype.paintLine(coord_space, p1.x, p1.y, p2.x, p2.y);
}
function resolveWheelCollision($w) {
if (bounds($w.wp.curr, $w.contactRadius)) {
getClosestPoint($w.wp.curr, $w.closestPoint);
var _local3 = $w.closestPoint.minusNew($w.wp.curr);
_local3.normalize();
if (inequality($w.wp.curr)) {
var _local5 = Math.abs(_local3.x);
_local3.x = ((normal.x < 0) ? (_local5) : (-_local5));
_local3.y = Math.abs(_local3.y);
}
var _local4 = $w.wp.curr.plusNew(_local3.mult($w.wr));
if (segmentInequality(_local4)) {
var _local6 = _local4.x - $w.closestPoint.x;
var _local7 = _local4.y - $w.closestPoint.y;
$w.wp.curr.x = $w.wp.curr.x - _local6;
$w.wp.curr.y = $w.wp.curr.y - _local7;
$w.resolve(normal);
}
}
}
function resolveParticleCollision($p, $sysObj) {
if (boundedSegmentInequality($p.curr)) {
var _local3 = $p.curr.minusNew($p.prev);
var _local4 = normal.dot(_local3);
if (_local4 < 0) {
var _local5 = _local3.minusNew(normal.multNew(_local4));
var _local10 = _local5.multNew($sysObj.coeffFric);
var _local8 = normal.multNew(_local4 * $sysObj.coeffRest);
var _local7 = _local8.plusNew(_local10);
var _local6 = _local3.minusNew(_local7);
var _local9 = normal.dot($p.curr.minusNew(p1)) * $sysObj.coeffRest;
$p.curr.minus(normal.multNew(_local9));
$p.prev = $p.curr.minusNew(_local6);
}
}
}
function segmentInequality($toPoint) {
var _local2 = findU($toPoint);
var _local3 = inequality($toPoint);
return(((_local2 >= 0) && (_local2 <= 1)) && (_local3));
}
function boundedSegmentInequality($toPoint) {
var _local3;
if (isOrientH) {
_local3 = ($toPoint.x >= p1.x) && ($toPoint.x <= p2.x);
} else if (p1.y < p2.y) {
_local3 = ($toPoint.y >= p1.y) && ($toPoint.y <= p2.y);
} else {
_local3 = ($toPoint.y <= p1.y) && ($toPoint.y >= p2.y);
}
if (_local3) {
return(inequality($toPoint));
}
return(false);
}
function inequality($toPoint) {
var _local2 = (slope * ($toPoint.x - p1.x)) + (p1.y - $toPoint.y);
return(_local2 <= 0);
}
function bounds($toPoint, $r) {
return(($toPoint.x >= (p1.x - $r)) && ($toPoint.x <= (p2.x + $r)));
}
function getClosestPoint($toPoint, $returnVect) {
var _local2 = findU($toPoint);
if (_local2 <= 0) {
return(p1);
}
if (_local2 >= 1) {
return(p2);
}
var _local3 = p1.x + (_local2 * (p2.x - p1.x));
var _local4 = p1.y + (_local2 * (p2.y - p1.y));
$returnVect.x = _local3;
$returnVect.y = _local4;
}
function findU($p) {
var _local2 = (($p.x - p1.x) * run) + (($p.y - p1.y) * rise);
return(_local2 * invB);
}
}
Symbol 259 MovieClip [__Packages.Pirrest.PhisicsEngine.CircleSurface] Frame 0
class Pirrest.PhisicsEngine.CircleSurface extends MovieClip
{
var _y, _x, _parent, cx, cy, r, _width, lineStyle;
function CircleSurface () {
super();
}
function init($coord_space) {
var _local2 = {x:_x, y:_y};
if (!Pirrest.Common.PiVal.isEmpty($coord_space)) {
_parent.localToGlobal(_local2);
$coord_space.globalToLocal(_local2);
}
cx = _local2.x;
cy = _local2.y;
r = _width / 2;
lineStyle(0, 2237064, 100);
}
function paint() {
Pirrest.PhisicsEngine.Graphics.prototype.paintCircle(this, cx, cy, r);
}
function resolveWheelCollision($w) {
var _local2 = cx - $w.wp.curr.x;
var _local4 = cy - $w.wp.curr.y;
var _local6 = Math.sqrt((_local2 * _local2) + (_local4 * _local4));
var _local5 = ($w.wr + r) - _local6;
if (_local5 > 0) {
_local2 = _local2 / _local6;
_local4 = _local4 / _local6;
$w.wp.curr.x = $w.wp.curr.x - (_local2 * _local5);
$w.wp.curr.y = $w.wp.curr.y - (_local4 * _local5);
var _local7 = new Pirrest.PhisicsEngine.Vector(-_local2, -_local4);
$w.resolve(_local7);
}
}
function resolveParticleCollision($p) {
var _local2 = new Pirrest.PhisicsEngine.Vector(cx, cy);
var _local5 = _local2.distance($p.curr);
if (_local5 <= r) {
var _local6 = $p.curr.minusNew(_local2).normalize();
var _local4 = _local2.plusNew(_local6.multNew(r));
$p.curr = _local4;
}
}
}
Symbol 260 MovieClip [__Packages.Pirrest.BigFoot.Level] Frame 0
class Pirrest.BigFoot.Level extends MovieClip
{
var p_system, under_mc, globalToLocal, jeep_wheel_1_mc, jeep_cont_mc, jeep_wheel_2_mc, jeep_body_mc, part, over_mc, _x, _y;
function Level () {
super();
}
function init() {
p_system = new Pirrest.PhisicsEngine.ParticleSystem();
p_system.setDamping(_global.gl_level.damping);
p_system.setGravity(_global.gl_level.gravity.x, _global.gl_level.gravity.y);
p_system.setKfr(_global.gl_level.kfr);
p_system.setFriction(_global.gl_level.friction);
var _local7;
for (_local7 in under_mc) {
var _local3 = under_mc[_local7];
_local3._visible = false;
if (_local3 instanceof Pirrest.PhisicsEngine.Surface) {
_local3.init(under_mc);
p_system.addSurface(_local3);
}
if (_local3 instanceof Pirrest.PhisicsEngine.CircleSurface) {
_local3.init(under_mc);
p_system.addCircleSurface(_local3);
}
}
under_mc.ground_mc._visible = false;
under_mc.star_mc._visible = true;
var _local9 = under_mc.jeep_dummy_mc.wheel_1_dummy_mc;
var _local8 = under_mc.jeep_dummy_mc.wheel_2_dummy_mc;
var _local5 = {x:_local9._x, y:_local9._y};
var _local6 = {x:_local8._x, y:_local8._y};
under_mc.jeep_dummy_mc.localToGlobal(_local5);
under_mc.jeep_dummy_mc.localToGlobal(_local6);
globalToLocal(_local5);
globalToLocal(_local6);
jeep_wheel_1_mc = jeep_cont_mc.attachMovie("lib_jeep_wheel1", "wheel_1_mc", jeep_cont_mc.getNextHighestDepth());
jeep_wheel_1_mc._x = _local5.x;
jeep_wheel_1_mc._y = _local5.y;
jeep_wheel_1_mc.init(jeep_cont_mc, 0);
p_system.addWheel(jeep_wheel_1_mc);
jeep_wheel_2_mc = jeep_cont_mc.attachMovie("lib_jeep_wheel2", "wheel_2_mc", jeep_cont_mc.getNextHighestDepth());
jeep_wheel_2_mc._x = _local6.x;
jeep_wheel_2_mc._y = _local6.y;
jeep_wheel_2_mc.init(jeep_cont_mc, 0);
p_system.addWheel(jeep_wheel_2_mc);
jeep_body_mc = jeep_cont_mc.attachMovie("lib_jeep_body", "jeep_body_mc", jeep_cont_mc.getNextHighestDepth());
var _local4 = {};
_local4.left = jeep_wheel_1_mc._x;
_local4.right = jeep_wheel_2_mc._x;
_local4.top = jeep_wheel_1_mc._y;
_local4.width = _local4.right - _local4.left;
_local4.mid = _local4.left + (_local4.width / 2);
part = p_system.addParticle(_local4.mid, _local4.top - 40);
p_system.addConstraint(jeep_wheel_1_mc.wp, part);
p_system.addConstraint(jeep_wheel_2_mc.wp, part);
p_system.addConstraint(jeep_wheel_2_mc.wp, jeep_wheel_1_mc.wp);
over_mc.onEnterFrame = function () {
this._x = this._parent.under_mc._x;
this._y = this._parent.under_mc._y;
};
jeep_cont_mc.onEnterFrame = function () {
this._x = this._parent.under_mc._x;
this._y = this._parent.under_mc._y;
};
}
function start() {
}
function moveCamera() {
var _local3;
var _local5 = 250 - jeep_body_mc._x;
var _local6 = 200 - jeep_body_mc._y;
var _local7 = _local5 - _x;
var _local8 = _local6 - _y;
var _local4 = Pirrest.Common.PiGeo.distance(_local5, _local6, _x, _y);
var _local2 = _local4 * 0.35;
if (_local2 > 50) {
_local2 = 50;
}
_local3 = _local2 / _local4;
_x = _x + (_local7 * _local3);
_y = _y + (_local8 * _local3);
}
}
Symbol 261 MovieClip [__Packages.Pirrest.PhisicsEngine.ParticleSystem] Frame 0
class Pirrest.PhisicsEngine.ParticleSystem
{
var _particles_ar, _surfaces_ar, _constraints_ar, _wheels_ar, gravity, coeffRest, coeffFric, coeffDamp, _p_count, _w_count, _s_count, _c_count;
function ParticleSystem () {
init();
}
function init() {
_particles_ar = [];
_surfaces_ar = [];
_constraints_ar = [];
_wheels_ar = [];
gravity = new Pirrest.PhisicsEngine.Vector(0, 1);
coeffRest = 1.5;
coeffFric = 0.01;
coeffDamp = 0.99;
}
function addParticle($px, $py, $mass) {
var _local2 = new Pirrest.PhisicsEngine.Particle($px, $py, $mass);
_particles_ar.push(_local2);
_p_count = _particles_ar.length;
return(_local2);
}
function addWheel($wheel) {
_wheels_ar.push($wheel);
_w_count = _wheels_ar.length;
}
function addSurface($s) {
_surfaces_ar.push($s);
_s_count = _surfaces_ar.length;
}
function addCircleSurface($s) {
_surfaces_ar.push($s);
_s_count = _surfaces_ar.length;
}
function addConstraint($p1, $p2) {
var _local2 = new Pirrest.PhisicsEngine.Constraint($p1, $p2);
_constraints_ar.push(_local2);
_c_count = _constraints_ar.length;
return(_local2);
}
function addRectangle($center, $rWidth, $rHeight) {
return(new Pirrest.PhisicsEngine.Rectangle(this, $center, $rWidth, $rHeight));
}
function addAngularConstraint($p1, $p2, $p3) {
var _local2 = new Pirrest.PhisicsEngine.AngularConstraint($p1, $p2, $p3);
_constraints_ar.push(_local2);
_c_count = _constraints_ar.length;
return(_local2);
}
function setKfr($kfr) {
coeffRest = 1 + $kfr;
}
function setFriction($f) {
coeffFric = $f;
}
function setDamping($d) {
coeffDamp = $d;
}
function setGravity($gx, $gy) {
gravity.x = $gx;
gravity.y = $gy;
}
function verlet() {
var _local2;
_local2 = 0;
while (_local2 < _p_count) {
_particles_ar[_local2].verlet(this);
_local2++;
}
_local2 = 0;
while (_local2 < _w_count) {
_wheels_ar[_local2].verlet(this);
_local2++;
}
}
function satisfy_constraints_ar() {
var _local2;
_local2 = 0;
while (_local2 < _c_count) {
_constraints_ar[_local2].resolve();
_local2++;
}
}
function checkCollisions() {
var _local4;
var _local2;
var _local3;
_local4 = 0;
while (_local4 < _s_count) {
_local2 = 0;
while (_local2 < _p_count) {
_particles_ar[_local2].checkCollision(_surfaces_ar[_local4], this);
_local2++;
}
_local3 = 0;
while (_local3 < _w_count) {
_wheels_ar[_local3].checkCollision(_surfaces_ar[_local4], this);
_local3++;
}
_local4++;
}
}
function paintSurfaces() {
var _local2 = 0;
while (_local2 < _surfaces_ar.length) {
_surfaces_ar[_local2].paint();
_local2++;
}
}
function paintParticles() {
var _local2 = 0;
while (_local2 < _particles_ar.length) {
_particles_ar[_local2].paint();
_local2++;
}
}
function paintConstraints() {
var _local2 = 0;
while (_local2 < _constraints_ar.length) {
_constraints_ar[_local2].paint();
_local2++;
}
}
function paintWheels() {
var _local2 = 0;
while (_local2 < _wheels_ar.length) {
_wheels_ar[_local2].paint();
_local2++;
}
}
function timeStep() {
verlet();
satisfy_constraints_ar();
checkCollisions();
}
}
Symbol 262 MovieClip [__Packages.Pirrest.PhisicsEngine.Constraint] Frame 0
class Pirrest.PhisicsEngine.Constraint
{
var p1, p2, restLength, dmc;
function Constraint ($p1, $p2) {
init($p1, $p2);
}
function init($p1, $p2) {
p1 = $p1;
p2 = $p2;
restLength = $p1.curr.distance($p2.curr);
var _local3 = _root.main_mc.main_cont_mc.level_mc.over_mc.getNextHighestDepth();
dmc = _root.main_mc.main_cont_mc.level_mc.over_mc.createEmptyMovieClip("p_" + _local3, _local3);
}
function resolve() {
var _local4 = p1.curr.minusNew(p2.curr);
var _local2 = p1.curr.distance(p2.curr);
var _local5 = (_local2 - restLength) / _local2;
var _local3 = _local4.mult(_local5 * 0.5);
p1.curr.minus(_local3);
p2.curr.plus(_local3);
}
function setRestLength($r) {
restLength = $r;
}
function paint() {
dmc.clear();
dmc.lineStyle(0, 10053171, 100);
Pirrest.PhisicsEngine.Graphics.prototype.paintLine(dmc, p1.curr.x, p1.curr.y, p2.curr.x, p2.curr.y);
}
}
Symbol 263 MovieClip [__Packages.Pirrest.PhisicsEngine.Rectangle] Frame 0
class Pirrest.PhisicsEngine.Rectangle
{
var p0, p1, p2, p3;
function Rectangle ($pSystem, $center, $rWidth, $rHeight) {
init($pSystem, $center, $rWidth, $rHeight);
}
function init($pSystem, $center, $rWidth, $rHeight) {
var _local4 = $pSystem.addParticle($center.x - ($rWidth / 2), $center.y - ($rHeight / 2), 0);
var _local5 = $pSystem.addParticle($center.x + ($rWidth / 2), $center.y - ($rHeight / 2), 0);
var _local6 = $pSystem.addParticle($center.x + ($rWidth / 2), $center.y + ($rHeight / 2), 0);
var _local7 = $pSystem.addParticle($center.x - ($rWidth / 2), $center.y + ($rHeight / 2), 0);
$pSystem.addConstraint(_local4, _local5);
$pSystem.addConstraint(_local5, _local6);
$pSystem.addConstraint(_local6, _local7);
$pSystem.addConstraint(_local7, _local4);
$pSystem.addConstraint(_local4, _local6);
$pSystem.addConstraint(_local5, _local7);
p0 = _local4;
p1 = _local5;
p2 = _local6;
p3 = _local7;
}
}
Symbol 264 MovieClip [__Packages.Pirrest.PhisicsEngine.AngularConstraint] Frame 0
class Pirrest.PhisicsEngine.AngularConstraint
{
var pA, pB, pC, lineA, lineB, pD, lineC, targetTheta, coeffStiff;
function AngularConstraint ($pA, $pB, $pC) {
init($pA, $pB, $pC);
}
function init($pA, $pB, $pC) {
pA = $pA.curr;
pB = $pB.curr;
pC = $pC.curr;
lineA = new Pirrest.PhisicsEngine.Line(pA, pB);
lineB = new Pirrest.PhisicsEngine.Line(pB, pC);
pD = new Pirrest.PhisicsEngine.Vector(pB.x + 0, pB.y - 1);
lineC = new Pirrest.PhisicsEngine.Line(pB, pD);
targetTheta = calcTheta(pA, pB, pC);
coeffStiff = 4;
}
function resolve() {
var _local10 = getCentroid();
lineC.p2.x = lineC.p1.x + 0;
lineC.p2.y = lineC.p1.y - 1;
var _local4 = pA.distance(pB);
var _local6 = pB.distance(pC);
var _local12 = calcTheta(pA, pB, pC);
var _local11 = calcTheta(pA, pB, pD);
var _local13 = calcTheta(pC, pB, pD);
var _local8 = (targetTheta - _local12) / 2;
var _local5 = _local11 + (_local8 * coeffStiff);
var _local9 = _local13 - (_local8 * coeffStiff);
pA.x = (_local4 * Math.sin(_local5)) + pB.x;
pA.y = (_local4 * Math.cos(_local5)) + pB.y;
pC.x = (_local6 * Math.sin(_local9)) + pB.x;
pC.y = (_local6 * Math.cos(_local9)) + pB.y;
var _local7 = getCentroid();
var _local2 = _local7.x - _local10.x;
var _local3 = _local7.y - _local10.y;
pA.x = pA.x - _local2;
pA.y = pA.y - _local3;
pB.x = pB.x - _local2;
pB.y = pB.y - _local3;
pC.x = pC.x - _local2;
pC.y = pC.y - _local3;
}
function calcTheta($pA, $pB, $pC) {
var _local3 = new Pirrest.PhisicsEngine.Vector($pB.x - $pA.x, $pB.y - $pA.y);
var _local2 = new Pirrest.PhisicsEngine.Vector($pC.x - $pB.x, $pC.y - $pB.y);
var _local5 = _local3.dot(_local2);
var _local4 = _local3.cross(_local2);
return(Math.atan2(_local4, _local5));
}
function set theta($t) {
targetTheta = $t;
//return(theta);
}
function get theta() {
return(targetTheta);
}
function paint() {
}
function getCentroid() {
var _local2 = ((pA.x + pB.x) + pC.x) / 3;
var _local3 = ((pA.y + pB.y) + pC.y) / 3;
return(new Pirrest.PhisicsEngine.Vector(_local2, _local3));
}
}
Symbol 265 MovieClip [__Packages.Pirrest.PhisicsEngine.Line] Frame 0
class Pirrest.PhisicsEngine.Line
{
var p1, p2;
function Line ($p1, $p2) {
p1 = $p1;
p2 = $p2;
}
}
Symbol 266 MovieClip [__Packages.Pirrest.BigFoot.JeepBody] Frame 0
class Pirrest.BigFoot.JeepBody extends MovieClip
{
var damage, max_damage, createEmptyMovieClip, onEnterFrame, active, level, _parent, driver_mc, _rotation, _y, _x;
function JeepBody () {
super();
damage = 0;
max_damage = 200;
init();
}
function init() {
createEmptyMovieClip("sync_mc", 5);
onEnterFrame = syncOnEnterFrame;
active = false;
level = _parent._parent;
}
function linstenKeys() {
var _local3 = 4;
var _local4 = 0.7;
var _local7 = false;
var _local6 = false;
if (Key.isDown(37)) {
_local7 = true;
driver_mc.move("back");
level.jeep_wheel_1_mc.wp.mass = _local4;
level.jeep_wheel_2_mc.wp.mass = -_local4;
} else if (Key.isDown(39)) {
_local6 = true;
driver_mc.move("front");
level.jeep_wheel_1_mc.wp.mass = -_local4;
level.jeep_wheel_2_mc.wp.mass = _local4;
} else {
driver_mc.move("normal");
level.jeep_wheel_1_mc.wp.mass = 0;
level.jeep_wheel_2_mc.wp.mass = 0;
}
var _local5 = false;
_root.spacePressed = false;
if (Key.isDown(38)) {
if (_root.sunet == true) {
if (_root.counterMotor == true) {
_root.motorStart.start(0, 1);
}
_root.counterMotor = false;
}
_local5 = true;
level.jeep_wheel_1_mc.rp.vs = _local3 / 2;
level.jeep_wheel_2_mc.rp.vs = _local3 / 4;
} else if (Key.isDown(40)) {
level.jeep_wheel_1_mc.rp.vs = (-_local3) / 4;
level.jeep_wheel_2_mc.rp.vs = (-_local3) / 10;
} else {
_root.counterMotor = true;
level.jeep_wheel_1_mc.rp.vs = 0;
level.jeep_wheel_2_mc.rp.vs = 0;
}
if (Key.isDown(32) && (_local5 == true)) {
_root.spacePressed = true;
_root.pressedOnce = _root.pressedOnce + 1;
if (_root.pressedOnce == 1) {
_root.motorBooster.start(0, 1);
_root.main_mc.boosterClip.gotoAndStop(2);
level.jeep_wheel_1_mc.rp.vs = _local3 * 1000;
level.jeep_wheel_2_mc.rp.vs = _local3 * 200;
if (_local7 == true) {
level.jeep_wheel_1_mc.wp.mass = 2;
level.jeep_wheel_2_mc.wp.mass = -2;
} else if (_local6 == true) {
level.jeep_wheel_1_mc.wp.mass = -2;
level.jeep_wheel_2_mc.wp.mass = 2;
}
}
} else {
_root.pressedOnce = 0;
_root.main_mc.boosterClip.gotoAndStop(1);
}
}
function syncOnEnterFrame() {
if (_global.gl_game_info.is_game_over || (_global.gl_game_info.is_pause)) {
return(undefined);
}
level.moveCamera();
linstenKeys();
level.p_system.timeStep();
level.p_system.paintWheels();
var _local7 = (-Pirrest.Common.PiGeo.angle(level.jeep_wheel_1_mc._x, level.jeep_wheel_1_mc._y, level.jeep_wheel_2_mc._x, level.jeep_wheel_2_mc._y)) + 90;
_rotation = _local7;
_y = level.part.curr.y;
_x = level.part.curr.x;
var _local5 = {x:driver_mc.head_mc._x, y:driver_mc.head_mc._y};
driver_mc.localToGlobal(_local5);
if (level.under_mc.ground_mc.hitTest(_local5.x, _local5.y, true)) {
_global.gl_game_info.is_game_over = true;
_root.main_mc.messages_mc.gotoAndStop("game_over");
}
var _local6 = {x:driver_mc.foot_mc._x, y:driver_mc.foot_mc._y};
driver_mc.localToGlobal(_local6);
if (level.under_mc.ground_mc.hitTest(_local6.x, _local6.y, true)) {
_global.gl_game_info.is_game_over = true;
_root.main_mc.messages_mc.gotoAndStop("game_over");
}
var _local4 = {x:level.under_mc.star_mc._x, y:level.under_mc.star_mc._y};
level.under_mc.localToGlobal(_local4);
if (level.jeep_cont_mc.hitTest(_local4.x, _local4.y, true)) {
_global.gl_game_info.is_game_over = true;
_global.gl_user_info.curr_level++;
_global.gl_level = _global.gl_user_info.levels["level_" + _global.gl_user_info.curr_level];
if (Pirrest.Common.PiVal.isEmpty(_global.gl_level)) {
_root.main_mc.messages_mc.gotoAndStop("game_completed");
_global.gl_user_info.curr_level = 1;
} else {
_root.main_mc.messages_mc.gotoAndStop("level_completed");
}
}
}
}
Symbol 51 MovieClip 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();
Symbol 51 MovieClip Frame 2
is_moving = true;
Symbol 51 MovieClip Frame 10
position = "front";
if (movement == "front") {
movement = "";
is_moving = false;
stop();
}
Symbol 51 MovieClip Frame 11
is_moving = true;
Symbol 51 MovieClip Frame 21
position = "normal";
if (movement == "normal") {
is_moving = false;
stop();
} else {
gotoAndPlay("move_" + movement);
}
Symbol 51 MovieClip Frame 22
is_moving = true;
Symbol 51 MovieClip Frame 31
position = "back";
if (movement == "back") {
movement = "";
is_moving = false;
stop();
}
Symbol 51 MovieClip Frame 32
is_moving = true;
Symbol 51 MovieClip Frame 42
position = "normal";
if (movement == "normal") {
is_moving = false;
stop();
} else {
gotoAndPlay("move_" + movement);
}
Symbol 52 MovieClip [lib_jeep_body] Frame 1
#initclip 33
Object.registerClass("lib_jeep_body", Pirrest.BigFoot.JeepBody);
#endinitclip
Symbol 58 MovieClip [lib_point] Frame 1
#initclip 20
Object.registerClass("lib_point", Pirrest.PhisicsEngine.Point);
#endinitclip
Symbol 60 MovieClip [lib_surface] Frame 1
#initclip 21
Object.registerClass("lib_surface", Pirrest.PhisicsEngine.Surface);
#endinitclip
Symbol 68 MovieClip [lib_circle] Frame 1
#initclip 22
Object.registerClass("lib_circle", Pirrest.PhisicsEngine.CircleSurface);
#endinitclip
Symbol 77 MovieClip [lib_level_10] Frame 1
#initclip 23
Object.registerClass("lib_level_10", Pirrest.BigFoot.Level);
#endinitclip
_root.levelCodeCurrent = _root.levelCode10;
Symbol 82 MovieClip [lib_level_9] Frame 1
#initclip 24
Object.registerClass("lib_level_9", Pirrest.BigFoot.Level);
#endinitclip
_root.levelCodeCurrent = _root.levelCode9;
Symbol 88 MovieClip [lib_level_8] Frame 1
#initclip 25
Object.registerClass("lib_level_8", Pirrest.BigFoot.Level);
#endinitclip
_root.levelCodeCurrent = _root.levelCode8;
Symbol 92 MovieClip [lib_level_7] Frame 1
#initclip 26
Object.registerClass("lib_level_7", Pirrest.BigFoot.Level);
#endinitclip
_root.levelCodeCurrent = _root.levelCode7;
Symbol 101 MovieClip [lib_level_6] Frame 1
#initclip 27
Object.registerClass("lib_level_6", Pirrest.BigFoot.Level);
#endinitclip
_root.levelCodeCurrent = _root.levelCode6;
Symbol 105 MovieClip [lib_level_5] Frame 1
#initclip 28
Object.registerClass("lib_level_5", Pirrest.BigFoot.Level);
#endinitclip
_root.levelCodeCurrent = _root.levelCode5;
Symbol 115 MovieClip [lib_level_4] Frame 1
#initclip 29
Object.registerClass("lib_level_4", Pirrest.BigFoot.Level);
#endinitclip
_root.levelCodeCurrent = _root.levelCode4;
Symbol 119 MovieClip [lib_level_3] Frame 1
#initclip 30
Object.registerClass("lib_level_3", Pirrest.BigFoot.Level);
#endinitclip
_root.levelCodeCurrent = _root.levelCode3;
Symbol 126 MovieClip [lib_level_2] Frame 1
#initclip 31
Object.registerClass("lib_level_2", Pirrest.BigFoot.Level);
#endinitclip
_root.levelCodeCurrent = _root.levelCode2;
Symbol 131 MovieClip [lib_level_1] Frame 1
#initclip 32
Object.registerClass("lib_level_1", Pirrest.BigFoot.Level);
#endinitclip
_root.levelCodeCurrent = _root.levelCode1;
Symbol 139 Button
on (keyPress "<Space>") {
_root.secundeTXT = "00";
_root.minuteTXT = "00";
gotoAndStop ("game");
_global.gl_user_info.curr_level = _root.levelGoto;
}
Symbol 143 Button
on (release) {
helpClip.gotoAndPlay(2);
}
Symbol 152 Button
on (press) {
code.play();
}
Symbol 156 Button
on (release) {
getURL ("http://www.freegames911.com", "_blank");
}
Symbol 158 Button
on (release) {
getURL ("http://www.freegames911.com", "_blank");
}
Symbol 162 Button
on (release) {
gotoAndPlay ("release");
}
Symbol 180 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 10
stop();
Symbol 184 Button
on (release) {
_parent.gotoAndPlay("release");
}
Symbol 193 Button
on (release, keyPress "<Space>") {
_root.main_mc.getLevel();
}
Symbol 195 MovieClip Frame 1
btn.useHandCursor = false;
Symbol 198 MovieClip Frame 1
stop();
stop();
Symbol 198 MovieClip Frame 10
stop();
Symbol 210 Button
on (release, keyPress "<Space>") {
_root.main_mc.gotoAndPlay("replay");
}
Symbol 216 Button
on (release, keyPress "<Space>") {
_root.main_mc.gotoAndStop("intro");
}
Symbol 218 MovieClip Frame 1
if (_root.sunet == true) {
trace("sound started");
trace(_root.motoLoop);
_root.motoLoop.stop();
_root.motoLoop.start(0, 1000000);
_root.motoLoop.setVolume(100);
}
Symbol 218 MovieClip 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";
Symbol 218 MovieClip Frame 24
stop();
Symbol 218 MovieClip Frame 31
gotoAndStop ("empty");
Symbol 218 MovieClip Frame 33
_parent.meniu._visible = false;
_parent.counter._visible = false;
_parent.bara._visible = false;
_root.motoLoop.stop();
_root.motorStart.stop();
_root.motorBooster.stop();
next_btn.onRelease = function () {
_root.main_mc.gotoAndPlay("replay");
};
menu_btn.onRelease = function () {
_root.main_mc.gotoAndStop("intro");
};
title_mc.caption = "LEVEL COMPLETED!";
text_1_mc.caption = "NEXT";
text_2_mc.caption = "MAIN MENU";
Symbol 218 MovieClip Frame 42
stop();
Symbol 218 MovieClip Frame 44
_parent.meniu._visible = false;
_parent.counter._visible = false;
_parent.bara._visible = false;
_root.motoLoop.stop();
_root.motorStart.stop();
_root.motorBooster.stop();
menu_btn.onRelease = function () {
_root.main_mc.gotoAndStop("intro");
};
title_mc.caption = "GAME COMPLETED!";
text_1_mc.caption = "MAIN MENU";
text_2_mc.caption = "MAIN MENU";
Symbol 218 MovieClip Frame 53
stop();
Symbol 218 MovieClip Frame 55
_parent.meniu._visible = false;
_parent.counter._visible = false;
_parent.bara._visible = false;
_root.motoLoop.stop();
_root.motorStart.stop();
_root.motorBooster.stop();
next_btn.onRelease = function () {
_root.main_mc.gotoAndPlay("replay");
};
menu_btn.onRelease = function () {
_root.main_mc.gotoAndStop("intro");
};
title_mc.caption = "CRASHED";
text_1_mc.caption = "Try Again";
text_2_mc.caption = "MAIN MENU";
Symbol 218 MovieClip Frame 64
stop();
Symbol 235 MovieClip 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;
}
}
trace("_root.minuteTXT = " + _root.minuteTXT);
trace("_root.secundeTXT = " + _root.secundeTXT);
}
Symbol 237 Button
on (release) {
muteSounds(0);
}
Symbol 238 Button
on (release) {
muteSounds(1);
}
Symbol 240 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 11
stop();
Symbol 248 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 2
stop();
Symbol 249 MovieClip Frame 1
function getLevel() {
var _local2 = 1;
while (_local2 <= total_levels) {
if (levels[_local2] == _root.levelCode) {
trace("level " + _local2);
trace(_root.main_mc.levels[_local2]);
_root.levelGoto = _local2;
_root.cheated = true;
}
_local2++;
}
}
var levels = new Array();
var total_levels = 2;
_root.levelText = 1;
_root.levelGoto = 1;
_root.levelCode = "";
levels[1] = 12345;
levels[2] = 18945;
levels[3] = 98423 /* 0x018077 */;
levels[4] = 21658;
levels[5] = 84362 /* 0x01498A */;
levels[6] = 27412;
levels[7] = 19735;
levels[8] = 46823;
levels[9] = 84625 /* 0x014A91 */;
levels[10] = 13859;
_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];
Symbol 249 MovieClip Frame 9
stop();
Symbol 249 MovieClip Frame 10
stopAllSounds();
_root.secunde = 0;
_root.secundeTXT = "00";
_root.minute = 0;
_root.minuteTXT = "00";
start_btn.onRelease = function () {
gotoAndStop ("game");
_global.gl_user_info.curr_level = _root.levelGoto;
};
Symbol 249 MovieClip Frame 14
stop();
Symbol 249 MovieClip Frame 17
_root.startGame();
nextFrame();
Symbol 249 MovieClip Frame 18
_root.main_mc.main_cont_mc.level_mc.init();
Instance of Symbol 240 MovieClip "muteClip" in Symbol 249 MovieClip Frame 18
onClipEvent (load) {
function muteSounds(num) {
if (num == 0) {
trace("SOUNDS OFF");
volumeVal = 0;
crowdVolume = 0;
gotoAndStop ("off");
_root.motoLoop.setVolume(0);
_root.motorStart.setVolume(0);
_root.motorBooster.setVolume(0);
_root.muteallSounds = true;
}
if (num == 1) {
trace("SOUNDS ON");
volumeVal = 100;
crowdVolume = 100;
gotoAndStop ("on");
_root.motoLoop.setVolume(100);
_root.motorStart.setVolume(100);
_root.motorBooster.setVolume(100);
_root.muteallSounds = false;
}
}
if (_root.muteallSounds == true) {
muteSounds(0);
}
}
Symbol 249 MovieClip Frame 27
stop();