Frame 1
function goTo() {
getURL ("http://www.MoFunZone.com");
}
stop();
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
newMenu.customItems.push(new ContextMenuItem("MoFunZone.com - Play More Games", goTo));
this.menu = newMenu;
Frame 2
stop();
Frame 3
stop();
Instance of Symbol 165 MovieClip in Frame 3
on (release) {
getURL ("http://www.myspace.com/olliegreen", "_blank");
}
Frame 4
stop();
Instance of Symbol 176 MovieClip in Frame 4
onClipEvent (load) {
stop();
mode = 1;
}
on (rollOver) {
mode = 2;
}
on (rollOut) {
mode = 1;
}
onClipEvent (enterFrame) {
if (mode == 2) {
if (!(_currentframe === _totalframes)) {
this.play();
}
}
if (mode == 1) {
this.prevFrame();
}
}
on (press) {
stopAllSounds();
_root.frameTarget = "game";
_root.fade.play();
}
Instance of Symbol 182 MovieClip in Frame 4
onClipEvent (load) {
stop();
mode = 1;
}
on (rollOver) {
mode = 2;
}
on (rollOut) {
mode = 1;
}
onClipEvent (enterFrame) {
if (mode == 2) {
if (!(_currentframe === _totalframes)) {
this.play();
}
}
if (mode == 1) {
this.prevFrame();
}
}
on (press) {
_root.frameTarget = "credits";
_root.fade.play();
}
Instance of Symbol 188 MovieClip in Frame 4
onClipEvent (load) {
stop();
mode = 1;
}
on (rollOver) {
mode = 2;
}
on (rollOut) {
mode = 1;
}
onClipEvent (enterFrame) {
if (mode == 2) {
if (!(_currentframe === _totalframes)) {
this.play();
}
}
if (mode == 1) {
this.prevFrame();
}
}
on (press) {
_root.frameTarget = "instructions";
_root.fade.play();
}
Instance of Symbol 192 MovieClip in Frame 4
onClipEvent (load) {
stop();
mode = 1;
}
on (rollOver) {
mode = 2;
}
on (rollOut) {
mode = 1;
}
onClipEvent (enterFrame) {
if (mode == 2) {
if (!(_currentframe === _totalframes)) {
this.play();
}
}
if (mode == 1) {
this.prevFrame();
}
}
on (press) {
getURL ("http://www.mofunzone.com/", "_blank");
}
Instance of Symbol 195 MovieClip in Frame 4
on (press) {
getURL ("http://www.mofunzone.com/", "_blank");
}
Frame 5
stop();
Instance of Symbol 205 MovieClip in Frame 5
on (press) {
_root.frameTarget = "menu";
_root.fade.play();
}
Frame 6
stop();
Frame 7
function nl() {
fuel = 0;
hud.fakefuel = 0;
hud.unlimited = false;
level++;
_root.gotoAndStop(level + 6);
}
function reset() {
_root.flameS.stop();
fuel = 0;
hud.fakefuel = 0;
hud.unlimited = false;
button1 = false;
button2 = false;
button3 = false;
button4 = false;
button5 = false;
button6 = false;
button6 = false;
button7 = false;
button8 = false;
button9 = false;
button10 = false;
mode = "reset";
fade.gotoAndPlay(19);
}
depthHolder = 0;
fuel = 0;
if (mmc == undefined) {
_root.attachMovie("mmc", "mmc", 99999);
}
level = 1;
_root.flameS = new Sound(car);
_root.flameS.attachSound("flame");
stop();
Instance of Symbol 222 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.door.hitTest(_root.car)) {
_root.fade.play();
}
}
Instance of Symbol 262 MovieClip "car" in Frame 7
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
InAirCauseJet = false;
_visible = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 267 MovieClip "hud" in Frame 7
onClipEvent (load) {
function un() {
time = 0;
unlimited = true;
}
unlimited = false;
fakefuel = _root.fuel;
time = 0;
duration = 200;
}
onClipEvent (enterFrame) {
_root.levelName = "level " + _root.level;
if (fakefuel < _root.fuel) {
fakefuel++;
}
if (fakefuel > _root.fuel) {
fakefuel--;
}
this.gotoAndStop(fakefuel);
if (fakefuel == 0) {
this.gotoAndStop(1);
}
if (unlimited) {
_root.fuel = Infinity;
fakefuel = Infinity;
time++;
if (time > duration) {
time = 0;
_root.fuel = 0;
fakefuel = 0;
unlimited = false;
}
this.gotoAndStop(100 - ((time / duration) * 100));
}
if (_root.car.dead) {
_root.car.yvel = 0;
_root.vy = 0;
_root.car.vx = 0;
_root.car._rotation = 0;
}
}
Instance of Symbol 269 MovieClip in Frame 7
on (press) {
_root.reset();
}
Instance of Symbol 195 MovieClip in Frame 7
on (press) {
getURL ("http://www.mofunzone.com/", "_blank");
}
Instance of Symbol 294 MovieClip "carb" in Frame 7
onClipEvent (enterFrame) {
_x = _root.car._x;
_y = _root.car._y;
if (!_root.car.jet) {
_rotation = _root.car.Angle;
}
if (_root.car.jet) {
flame._visible = true;
_rotation = 0;
} else {
flame._visible = false;
}
if (_root.car.dead) {
this.gotoAndStop(2);
}
}
Instance of Symbol 297 MovieClip "fade" in Frame 7
onClipEvent (load) {
_x = 350;
_y = 200;
}
Instance of Symbol 298 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.fade._currentframe == 20) {
if (this.hitTest(_root.car)) {
_root.reset();
}
}
}
Instance of Symbol 256 MovieClip in Frame 8
onClipEvent (load) {
}
Instance of Symbol 262 MovieClip "car" in Frame 8
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
InAirCauseJet = false;
_visible = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 294 MovieClip "carb" in Frame 8
onClipEvent (enterFrame) {
_x = _root.car._x;
_y = _root.car._y;
if (!_root.car.jet) {
_rotation = _root.car.Angle;
}
if (_root.car.jet) {
flame._visible = true;
_rotation = 0;
} else {
flame._visible = false;
}
if (_root.car.dead) {
this.gotoAndStop(2);
}
}
Instance of Symbol 262 MovieClip "car" in Frame 9
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 294 MovieClip "carb" in Frame 9
onClipEvent (enterFrame) {
_x = _root.car._x;
_y = _root.car._y;
if (!_root.car.jet) {
_rotation = _root.car.Angle;
}
if (_root.car.jet) {
flame._visible = true;
_rotation = 0;
} else {
flame._visible = false;
}
if (_root.car.dead) {
this.gotoAndStop(2);
}
}
Instance of Symbol 256 MovieClip in Frame 10
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 10
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 10
/* no clip actions */
Instance of Symbol 262 MovieClip "car" in Frame 10
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 335 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Instance of Symbol 256 MovieClip in Frame 11
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 11
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 11
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 11
/* no clip actions */
Instance of Symbol 313 MovieClip in Frame 11
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 11
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 11
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 11
/* no clip actions */
Instance of Symbol 262 MovieClip "car" in Frame 11
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 222 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.door.hitTest(_root.car)) {
_root.fade.play();
}
}
Instance of Symbol 262 MovieClip "car" in Frame 12
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 256 MovieClip in Frame 13
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 13
/* no clip actions */
Instance of Symbol 347 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Instance of Symbol 262 MovieClip "car" in Frame 13
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 256 MovieClip in Frame 14
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 14
/* no clip actions */
Instance of Symbol 262 MovieClip "car" in Frame 14
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 313 MovieClip in Frame 15
/* no clip actions */
Instance of Symbol 262 MovieClip "car" in Frame 15
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 256 MovieClip in Frame 16
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 16
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 16
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 16
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 16
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 16
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 16
/* no clip actions */
Instance of Symbol 262 MovieClip "car" in Frame 16
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 359 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Instance of Symbol 256 MovieClip in Frame 17
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 17
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 17
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 17
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 17
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 17
/* no clip actions */
Instance of Symbol 262 MovieClip "car" in Frame 17
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 262 MovieClip "car" in Frame 18
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 375 MovieClip in Frame 19
onClipEvent (load) {
_root.button1 = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.button1 = true;
this.gotoAndStop(2);
}
}
Instance of Symbol 375 MovieClip in Frame 19
onClipEvent (load) {
_root.button2 = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.button2 = true;
this.gotoAndStop(2);
}
}
Instance of Symbol 375 MovieClip in Frame 19
onClipEvent (load) {
_root.button3 = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.button3 = true;
this.gotoAndStop(2);
}
}
Instance of Symbol 313 MovieClip in Frame 19
onClipEvent (load) {
duration = 220;
}
Instance of Symbol 222 MovieClip in Frame 19
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if ((_root.button1 and _root.button2) and _root.button3) {
_visible = true;
if (_visible) {
if (this.door.hitTest(_root.car)) {
_root.fade.play();
}
}
}
}
Instance of Symbol 262 MovieClip "car" in Frame 19
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 222 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.door.hitTest(_root.car)) {
_root.fade.play();
}
}
Instance of Symbol 262 MovieClip "car" in Frame 20
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 389 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Instance of Symbol 390 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Instance of Symbol 391 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Instance of Symbol 313 MovieClip in Frame 21
onClipEvent (load) {
duration = 150;
}
Instance of Symbol 262 MovieClip "car" in Frame 21
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 313 MovieClip in Frame 22
onClipEvent (load) {
duration = 80;
}
Instance of Symbol 347 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Instance of Symbol 262 MovieClip "car" in Frame 22
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 399 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Instance of Symbol 399 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Instance of Symbol 262 MovieClip "car" in Frame 23
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 256 MovieClip in Frame 24
/* no clip actions */
Instance of Symbol 375 MovieClip in Frame 24
onClipEvent (load) {
_root.button4 = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.button4 = true;
this.gotoAndStop(2);
}
}
Instance of Symbol 375 MovieClip in Frame 24
onClipEvent (load) {
_root.button5 = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.button5 = true;
this.gotoAndStop(2);
}
}
Instance of Symbol 222 MovieClip in Frame 24
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.button4 and _root.button5) {
_visible = true;
if (_visible) {
if (this.door.hitTest(_root.car)) {
_root.fade.play();
}
}
}
}
Instance of Symbol 256 MovieClip in Frame 24
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 24
/* no clip actions */
Instance of Symbol 262 MovieClip "car" in Frame 24
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 313 MovieClip in Frame 25
onClipEvent (load) {
duration = 240;
}
Instance of Symbol 375 MovieClip in Frame 25
onClipEvent (load) {
_root.button5 = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.button5 = true;
this.gotoAndStop(2);
}
}
Instance of Symbol 375 MovieClip in Frame 25
onClipEvent (load) {
_root.button6 = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.button6 = true;
this.gotoAndStop(2);
}
}
Instance of Symbol 347 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Instance of Symbol 347 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Instance of Symbol 313 MovieClip in Frame 25
onClipEvent (load) {
duration = 150;
}
Instance of Symbol 222 MovieClip in Frame 25
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.button5 and _root.button6) {
_visible = true;
if (_visible) {
if (this.door.hitTest(_root.car)) {
_root.fade.play();
}
}
}
}
Instance of Symbol 262 MovieClip "car" in Frame 25
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 256 MovieClip in Frame 26
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 26
/* no clip actions */
Instance of Symbol 222 MovieClip in Frame 26
onClipEvent (enterFrame) {
if (this.door.hitTest(_root.car)) {
_root.fade.play();
}
}
Instance of Symbol 256 MovieClip in Frame 26
/* no clip actions */
Instance of Symbol 262 MovieClip "car" in Frame 26
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
dead = false;
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 222 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (this.door.hitTest(_root.car)) {
_root.fade.play();
}
}
Instance of Symbol 256 MovieClip in Frame 27
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 27
/* no clip actions */
Instance of Symbol 256 MovieClip in Frame 27
/* no clip actions */
Instance of Symbol 347 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Instance of Symbol 262 MovieClip "car" in Frame 27
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 429 MovieClip "bg" in Frame 28
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
}
Instance of Symbol 262 MovieClip "car" in Frame 28
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 446 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Instance of Symbol 447 MovieClip in Frame 29
onClipEvent (load) {
_root.button8 = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.button8 = true;
this.gotoAndStop(2);
}
}
Instance of Symbol 447 MovieClip in Frame 29
onClipEvent (load) {
_root.button7 = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.button7 = true;
this.gotoAndStop(2);
}
}
Instance of Symbol 347 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Instance of Symbol 222 MovieClip in Frame 29
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.button7 and _root.button8) {
_visible = true;
if (_visible) {
if (this.door.hitTest(_root.car)) {
_root.fade.play();
}
}
}
}
Instance of Symbol 262 MovieClip "car" in Frame 29
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 222 MovieClip in Frame 30
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.button9) {
_visible = true;
if (_visible) {
if (this.door.hitTest(_root.car)) {
_root.fade.play();
}
}
}
}
Instance of Symbol 447 MovieClip in Frame 30
onClipEvent (load) {
_root.button9 = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.button9 = true;
this.gotoAndStop(2);
}
}
Instance of Symbol 313 MovieClip in Frame 30
onClipEvent (load) {
duration = 400;
}
Instance of Symbol 262 MovieClip "car" in Frame 30
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 447 MovieClip in Frame 31
onClipEvent (load) {
_root.button1 = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.button1 = true;
this.gotoAndStop(2);
}
}
Instance of Symbol 222 MovieClip in Frame 31
onClipEvent (enterFrame) {
if (this.door.hitTest(_root.car)) {
_root.fade.play();
}
}
Instance of Symbol 262 MovieClip "car" in Frame 31
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 262 MovieClip "car" in Frame 32
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 262 MovieClip "car" in Frame 33
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 472 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (_root.button10) {
this.play();
}
}
Instance of Symbol 347 MovieClip in Frame 34
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Instance of Symbol 222 MovieClip in Frame 34
onClipEvent (enterFrame) {
if (this.door.hitTest(_root.car)) {
_root.fade.play();
}
}
Instance of Symbol 262 MovieClip "car" in Frame 34
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 313 MovieClip in Frame 35
onClipEvent (load) {
duration = 55;
}
Instance of Symbol 447 MovieClip in Frame 35
onClipEvent (load) {
_root.button1 = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.button1 = true;
this.gotoAndStop(2);
}
}
Instance of Symbol 262 MovieClip "car" in Frame 35
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 313 MovieClip in Frame 36
onClipEvent (load) {
duration = 200;
}
Instance of Symbol 262 MovieClip "car" in Frame 36
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root[target2]._y - _root[target1]._y;
deltaX = _root[target1]._x - _root[target2]._x;
deltaY = _root[target1]._y - _root[target2]._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root[target1].onfloor) {
if (_root[target2].onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root[target1].onfloor) {
if (!_root[target2].onfloor) {
if (vx >= 0) {
Angle = Angle + 2;
}
if (vx < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
_visible = false;
InAirCauseJet = false;
jet = false;
yvel = 0;
gravity = 0.3;
onfloor = false;
vx = 0;
vy = 0;
maxYSpeed = 20;
accelY = 0.7;
friction = 0.99;
if (_root.carp1 == undefined) {
target1 = this._name + "p1";
_root.attachMovie("p1", target1, _root.depthHolder);
_root.depthHolder++;
_root[target1].parent = this;
}
if (_root.carp2 == undefined) {
target2 = this._name + "p2";
_root.attachMovie("p2", target2, _root.depthHolder);
_root.depthHolder++;
_root[target2].parent = this;
}
maxXSpeed = 10;
floorFriction = 0.9;
accel = 0.5;
resistance = 0;
jetY = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (!jet) {
getAngle();
}
_x = (_x + vx);
vx = vx * friction;
}
onClipEvent (enterFrame) {
if (jet) {
gravity = 0.5;
} else {
gravity = 0.3;
}
this._y = this._y + yvel;
if (!_root.bg.hitTest(_x, _y + (_height / 2), true)) {
onfloor = false;
yvel = yvel + gravity;
} else {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 1, true)) {
this._y = this._y - 1;
InAirCauseJet = false;
if (jet) {
jet = false;
_root[target1]._y = _y;
_root[target2]._y = _y;
}
}
onfloor = true;
yvel = yvel * 0.8;
}
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y++;
}
if (_root.bg.hitTest(_x, _y - 6, true)) {
yvel++;
}
while (_root.bg.hitTest(_x + 20, _y, true)) {
this._x--;
}
while (_root.bg.hitTest(_x - 20, _y, true)) {
this._x++;
}
}
onClipEvent (enterFrame) {
if (jet) {
_root[target1]._y = _y;
_root[target2]._y = _y;
}
if (Key.isDown(39)) {
if (vx < maxXSpeed) {
vx = vx + (accel - resistance);
}
} else if (Key.isDown(37)) {
if (vx > (-maxXSpeed)) {
vx = vx - (accel - resistance);
}
} else {
vx = vx * floorFriction;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
yvel = yvel - (accelY - resistance);
_root.fuel = _root.fuel - 1;
if ((-vvel) < maxYSpeed) {
vvel = -maxYSpeed;
}
}
}
if ((!Key.isDown(38)) or (_root.fuel <= 0)) {
jet = false;
}
if (_x < 30) {
_x = 30;
}
if (_x > 670) {
_x = 670;
}
if (_y < 5) {
_y = 5;
yvel++;
}
}
Instance of Symbol 222 MovieClip in Frame 36
onClipEvent (enterFrame) {
if (this.door.hitTest(_root.car)) {
_root.fade.play();
}
}
Frame 37
if (_root.level == 31) {
trace("K");
stopAllSounds();
mode = undefined;
_root.gotoAndStop("end");
}
Frame 38
mode = undefined;
_root.gotoAndStop(level + 6);
Frame 39
stop();
Symbol 3 MovieClip [p1] Frame 1
yvel = 0;
falling = false;
dir = 1;
gravity = _root.car.gravity;
jumpamount = 20;
x = _xscale;
speed = 7;
onfloor = true;
_y = parent._y;
dFrame = _root._currentframe;
_visible = false;
Symbol 3 MovieClip [p1] Frame 2
_x = ((parent._x - (parent._width / 2)) + 20);
if (_root.car.jet) {
onfloor = true;
yvel = 0;
yknown = undefined;
_y = _root.car._y;
return(undefined);
}
_y = (_y + yvel);
if (!_root.bg.hitTest(_x, _y + 1, true)) {
yvel = yvel + gravity;
}
while (_root.bg.hitTest(_x, _y, true)) {
this._y = this._y - 1;
onfloor = true;
yvel = 0;
yknown = undefined;
}
if (!_root.bg.hitTest(_x, _y + 5, true)) {
onfloor = false;
}
distance = _y - _root.car._y;
if (distance > 80) {
if (_root.carp2.onfloor) {
if (yknown == undefined) {
yknown = 1;
}
if (!_root.bg.hitTest(_x, _y + 1, true)) {
_y = _root.car._y;
}
}
}
if (distance > 200) {
if (!_root.bg.hitTest(_x, _y + 1, true)) {
_y = _root.car._y;
}
}
if (_y < _root.car._y) {
_y = _root.car._y;
}
if (!(_root._currentframe === dFrame)) {
this.removeMovieClip();
}
Symbol 3 MovieClip [p1] Frame 3
gotoAndPlay (2);
Symbol 5 MovieClip [p2] Frame 1
yvel = 0;
falling = false;
dir = 1;
gravity = _root.car.gravity;
jumpamount = 20;
x = _xscale;
speed = 7;
onfloor = true;
_y = parent._y;
times = 0;
dFrame = _root._currentframe;
_visible = false;
Symbol 5 MovieClip [p2] Frame 2
_x = ((parent._x + (parent._width / 2)) - 20);
if (_root.car.jet) {
onfloor = true;
yvel = 0;
yknown = undefined;
_y = _root.car._y;
return(undefined);
}
_y = (_y + yvel);
if (!_root.bg.hitTest(_x, _y + 1, true)) {
yvel = yvel + gravity;
}
while (_root.bg.hitTest(_x, _y, true)) {
this._y = this._y - 1;
onfloor = true;
yvel = 0;
yknown = undefined;
}
if (!_root.bg.hitTest(_x, _y + 5, true)) {
onfloor = false;
}
if (_root.bg.hitTest(_x, _y + 5, true)) {
hitBg = true;
} else {
hitBg = false;
}
if (distance > 80) {
if (_root.carp2.onfloor) {
if (yknown == undefined) {
yknown = 1;
}
if (!_root.bg.hitTest(_x, _y + 1, true)) {
_y = _root.car._y;
}
}
}
if (distance > 200) {
if (!_root.bg.hitTest(_x, _y + 1, true)) {
_y = _root.car._y;
}
}
distance = _y - _root.car._y;
if (_y < _root.car._y) {
_y = _root.car._y;
}
if (!(_root._currentframe === dFrame)) {
this.removeMovieClip();
}
Symbol 5 MovieClip [p2] Frame 3
gotoAndPlay (2);
Symbol 6 MovieClip [mmc] Frame 1
_root.music = new Sound(this);
_root.music.attachSound("music");
_root.music.start(0, 99999);
Symbol 33 MovieClip Frame 11
_parent.gotoAndStop(2);
Symbol 42 MovieClip Frame 1
this.onEnterFrame = function () {
bytesloaded = Math.round(_root.getBytesLoaded());
bytestotal = Math.round(_root.getBytesTotal());
percent = bytesloaded / bytestotal;
barmask._xscale = percent * 100;
};
Symbol 74 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 74 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 85 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 85 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 93 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 93 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 101 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 101 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 109 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 109 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 117 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 117 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 125 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 125 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 133 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 133 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.gotoAndStop(2);
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 140 MovieClip Frame 133
_root.play();
Symbol 141 MovieClip Frame 1
stop();
_root.stop();
shiftamt = 17;
isloaded = false;
this.onEnterFrame = function () {
bytesloaded = Math.round(_root.getBytesLoaded());
bytestotal = Math.round(_root.getBytesTotal());
percent = bytesloaded / bytestotal;
if (bytesloaded == bytestotal) {
isloaded = true;
}
};
this.onRelease = function () {
getURL ("http://www.mofunzone.com/", "_blank");
};
Symbol 157 MovieClip Frame 104
_root.createEmptyMovieClip("menumusic", 5000);
mozart = new Sound(_root.menumusic);
mozart.attachSound("mozart");
mozart.start(0, 999);
_root.play();
Symbol 165 MovieClip Frame 101
_root.play();
Symbol 176 MovieClip Frame 8
stop();
Symbol 182 MovieClip Frame 8
stop();
Symbol 188 MovieClip Frame 7
stop();
Symbol 192 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 10
stop();
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 14
_root.gotoAndStop(_root.frameTarget);
Symbol 214 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 1
_visible = false;
Symbol 254 MovieClip Frame 35
stop();
Symbol 256 MovieClip Frame 1
stop();
Instance of Symbol 229 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.carb)) {
_parent.gotoAndStop(2);
}
}
Symbol 256 MovieClip Frame 2
stop();
_root.fuel = _root.fuel + 10;
if (_root.level == 3) {
_root.fuel = _root.fuel + 5;
}
Symbol 262 MovieClip Frame 1
_root.carX = _x;
_root.carY = _y;
Symbol 267 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 35
stop();
Symbol 293 MovieClip Frame 50
_root.reset();
Symbol 294 MovieClip Frame 1
stop();
Instance of Symbol 274 MovieClip "flame" in Symbol 294 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
use = false;
}
onClipEvent (enterFrame) {
if (!use) {
if (_visible) {
_root.flameS.start(0, 999999);
use = true;
}
}
if (use) {
if (_visible == false) {
_root.flameS.stop();
use = false;
}
}
}
Symbol 294 MovieClip Frame 2
_root.flameS.stop();
Symbol 297 MovieClip Frame 20
if (_root.mode == "reset") {
_root.flameS.stop();
_root.gotoAndPlay("temp");
}
stop();
Symbol 297 MovieClip Frame 40
_root.nl();
Symbol 311 MovieClip Frame 35
stop();
Symbol 313 MovieClip Frame 1
stop();
Instance of Symbol 310 MovieClip in Symbol 313 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.carb)) {
_parent.gotoAndStop(2);
}
}
Symbol 313 MovieClip Frame 2
stop();
_root.hud.un();
if (duration == undefined) {
_root.hud.duration = 300;
}
if (!(duration === undefined)) {
_root.hud.duration = duration;
}
Instance of Symbol 322 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Instance of Symbol 322 MovieClip in Symbol 325 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Instance of Symbol 322 MovieClip in Symbol 327 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Instance of Symbol 322 MovieClip in Symbol 329 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Instance of Symbol 322 MovieClip in Symbol 331 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Symbol 369 MovieClip Frame 43
stop();
Symbol 370 MovieClip Frame 1
stop();
Symbol 370 MovieClip Frame 2
stop();
Instance of Symbol 370 MovieClip in Symbol 371 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 370 MovieClip in Symbol 371 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 370 MovieClip in Symbol 371 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
this.gotoAndStop(2);
}
}
Symbol 375 MovieClip Frame 1
stop();
Symbol 375 MovieClip Frame 2
stop();
Instance of Symbol 316 MovieClip in Symbol 379 MovieClip Frame 1
onClipEvent (load) {
mode = "idle";
this.stop();
}
onClipEvent (enterFrame) {
if ((_root.button1 and _root.button2) and _root.button3) {
mode = "active";
}
if (mode == "active") {
this.play();
}
}
Instance of Symbol 316 MovieClip in Symbol 379 MovieClip Frame 1
onClipEvent (load) {
mode = "idle";
this.stop();
}
onClipEvent (enterFrame) {
if ((_root.button1 and _root.button2) and _root.button3) {
mode = "active";
}
if (mode == "active") {
this.play();
}
}
Instance of Symbol 316 MovieClip in Symbol 379 MovieClip Frame 1
onClipEvent (load) {
mode = "idle";
this.stop();
}
onClipEvent (enterFrame) {
if ((_root.button1 and _root.button2) and _root.button3) {
mode = "active";
}
if (mode == "active") {
this.play();
}
}
Instance of Symbol 316 MovieClip in Symbol 379 MovieClip Frame 1
onClipEvent (load) {
mode = "idle";
this.stop();
}
onClipEvent (enterFrame) {
if ((_root.button1 and _root.button2) and _root.button3) {
mode = "active";
}
if (mode == "active") {
this.play();
}
}
Instance of Symbol 316 MovieClip in Symbol 379 MovieClip Frame 1
onClipEvent (load) {
mode = "idle";
this.stop();
}
onClipEvent (enterFrame) {
if ((_root.button1 and _root.button2) and _root.button3) {
mode = "active";
}
if (mode == "active") {
this.play();
}
}
Instance of Symbol 370 MovieClip in Symbol 384 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 370 MovieClip in Symbol 384 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 370 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 370 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 404 MovieClip in Symbol 405 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Instance of Symbol 404 MovieClip in Symbol 405 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Instance of Symbol 428 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.fade.play();
}
}
Symbol 440 MovieClip Frame 64
stop();
Symbol 441 MovieClip Frame 1
stop();
Symbol 441 MovieClip Frame 2
stop();
Instance of Symbol 370 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 445 MovieClip in Symbol 446 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
if (_root.fade._currentframe == 20) {
_root.car.dead = true;
}
}
}
Symbol 447 MovieClip Frame 1
stop();
Symbol 447 MovieClip Frame 2
stop();
Instance of Symbol 445 MovieClip in Symbol 451 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
if (_root.fade._currentframe == 20) {
_root.car.dead = true;
}
}
}
Instance of Symbol 445 MovieClip in Symbol 451 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
if (_root.fade._currentframe == 20) {
_root.car.dead = true;
}
}
}
Instance of Symbol 445 MovieClip in Symbol 451 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
if (_root.fade._currentframe == 20) {
_root.car.dead = true;
}
}
}
Instance of Symbol 445 MovieClip in Symbol 451 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
if (_root.fade._currentframe == 20) {
_root.car.dead = true;
}
}
}
Instance of Symbol 461 MovieClip in Symbol 462 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Instance of Symbol 461 MovieClip in Symbol 468 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.car.dead = true;
}
}
Symbol 471 MovieClip Frame 1048
stop();
_root.button10 = true;
Symbol 472 MovieClip Frame 1
stop();
Instance of Symbol 222 MovieClip in Symbol 472 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.button10) {
_visible = true;
if (_visible) {
if (this.door.hitTest(_root.car)) {
_root.fade.play();
}
}
}
}
Symbol 472 MovieClip Frame 38
stop();
Symbol 491 MovieClip Frame 280
_root.gotoAndStop("logos");