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();
Instance of Symbol 229 MovieClip in Frame 2
on (release) {
getURL ("http://www.corkysurprise.com/", "_blank");
}
Frame 3
stop();
Instance of Symbol 236 MovieClip in Frame 3
on (release) {
getURL ("http://www.myspace.com/olliegreen", "_blank");
}
Frame 4
function menuChange(where) {
_root.where = where;
MenuFade.play();
}
function detail(what) {
details[what] = true;
}
function ls() {
if (_root.musicPlay == undefined) {
_root.createEmptyMovieClip("musicHolder", 100000);
music = new Sound(_root.musicHolder);
music.attachSound("cursorstorm");
music.setVolume(70);
music.start(0, 99999);
_root.musicPlay = 1;
if (!_root.sound) {
music.setVolume(0);
}
}
_root.createEmptyMovieClip("soundHolder", 99999);
carEngine = new Sound(_root.soundHolder);
carEngine.attachSound("engine");
steam = new Sound(_root.car);
steam.attachSound("steam");
steamSide = new Sound(_root.f1);
steamSide.attachSound("steamSide");
steamSideB = new Sound(_root.f3);
steamSideB.attachSound("steamSide");
_root.createEmptyMovieClip("crashSound", 90949);
crash = new Sound(_root.crashSound);
crash.attachSound("crash");
crash.setVolume(70);
crash2 = new Sound(_root.crashSound);
crash2.attachSound("crash2");
crash2.setVolume(70);
crash3 = new Sound(_root.crashSound);
crash3.attachSound("crash3");
crash3.setVolume(70);
fuelS = new Sound();
fuelS.attachSound("fuelS");
swallow = new Sound();
swallow.attachSound("swallow");
gravityR = new Sound(bg);
gravityR.setVolume(200);
gravityR.attachSound("gravityR");
ufoDead = new Sound();
ufoDead.attachSound("ufoDead");
button = new Sound();
button.attachSound("button");
}
function cSound() {
if (_root.sound) {
c = random(3);
if (c == 0) {
_root.crash.start();
}
if (c == 1) {
_root.crash2.start();
}
if (c == 2) {
_root.crash3.start();
}
}
}
stop();
depthHolder = 0;
stop();
cheat = false;
_root.details = new Object();
if (_root.menuMP == undefined) {
_root.sound = true;
_root.createEmptyMovieClip("menuMH", 992929);
_root.menuMP = 1;
menuM = new Sound(_root.menuMH);
menuM.attachSound("menuM");
if (_root.sound) {
menuM.start(0, 99999);
}
if (!_root.sound) {
menuM.start();
menuM.setVolume(0);
}
}
extra = false;
Instance of Symbol 247 MovieClip in Frame 4
on (rollOver) {
mode = "foward";
}
on (rollOut) {
mode = "back";
}
onClipEvent (enterFrame) {
if (mode == "foward") {
nextFrame();
}
if (mode == "back") {
prevFrame();
}
}
on (press) {
_root.menuChange("credits");
}
Instance of Symbol 259 MovieClip in Frame 4
on (rollOver) {
mode = "foward";
}
on (rollOut) {
mode = "back";
}
onClipEvent (enterFrame) {
if (mode == "foward") {
nextFrame();
}
if (mode == "back") {
prevFrame();
}
}
on (release) {
getURL ("http://www.mofunzone.com/game_scores/rocket_car_2/highscores.shtml", "_blank");
}
Instance of Symbol 264 MovieClip "sounder" in Frame 4
onClipEvent (load) {
if (_root.sound) {
this.gotoAndStop(1);
}
if (!_root.sound) {
this.gotoAndStop(2);
}
}
on (press) {
if (_root.sound) {
this.gotoAndStop(2);
_root.menuM.setVolume(0);
_root.sound = false;
return(undefined);
}
if (!_root.sound) {
this.gotoAndStop(1);
_root.menuM.setVolume(100);
_root.sound = true;
}
}
Instance of Symbol 268 MovieClip in Frame 4
on (release) {
getURL ("http://www.mofunzone.com/", "_blank");
}
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.detail("skate");
}
}
Instance of Symbol 271 MovieClip in Frame 4
on (rollOver) {
mode = "foward";
}
on (rollOut) {
mode = "back";
}
onClipEvent (enterFrame) {
if (mode == "foward") {
nextFrame();
}
if (mode == "back") {
prevFrame();
}
}
on (press) {
_root.menuChange("carSelection");
}
Instance of Symbol 274 MovieClip in Frame 4
on (rollOver) {
mode = "foward";
}
on (rollOut) {
mode = "back";
}
onClipEvent (enterFrame) {
if (mode == "foward") {
nextFrame();
}
if (mode == "back") {
prevFrame();
}
}
on (release) {
getURL ("http://www.mofunzone.com/", "_blank");
}
Instance of Symbol 284 MovieClip in Frame 5
on (rollOver) {
mode = "foward";
}
on (rollOut) {
mode = "back";
}
onClipEvent (enterFrame) {
if (mode == "foward") {
nextFrame();
}
if (mode == "back") {
prevFrame();
}
}
on (press) {
_root.menuChange("menu");
}
Instance of Symbol 268 MovieClip in Frame 5
on (press) {
getURL ("http://www.mofunzone.com/", "_blank");
}
Instance of Symbol 259 MovieClip in Frame 7
on (rollOver) {
mode = "foward";
}
on (rollOut) {
mode = "back";
}
onClipEvent (enterFrame) {
if (mode == "foward") {
nextFrame();
}
if (mode == "back") {
prevFrame();
}
}
on (press) {
_root.menuChange("password");
}
Frame 8
function changeSelection(num) {
_root.num = num;
carS.gotoAndPlay(2);
}
Instance of Symbol 268 MovieClip in Frame 8
on (release) {
getURL ("http://www.mofunzone.com/", "_blank");
}
Instance of Symbol 429 MovieClip in Frame 8
onClipEvent (load) {
_visible = false;
if (_root.details.skate) {
_visible = true;
}
}
on (press) {
if (_visible) {
_root.changeSelection(10);
}
}
Instance of Symbol 264 MovieClip "sounder" in Frame 8
onClipEvent (load) {
if (_root.sound) {
this.gotoAndStop(1);
}
if (!_root.sound) {
this.gotoAndStop(2);
}
}
on (press) {
if (_root.sound) {
this.gotoAndStop(2);
_root.menuM.setVolume(0);
_root.sound = false;
return(undefined);
}
if (!_root.sound) {
this.gotoAndStop(1);
_root.menuM.setVolume(100);
_root.sound = true;
}
}
Frame 9
function changeLvl() {
if (_root.fade._currentframe == 1) {
_root.carp1.yvel = 0;
_root.carp2.yvel = 0;
fade.gotoAndStop(2);
}
}
function resetLvl() {
if (_root.fade._currentframe == 1) {
fuel = 0;
HUD.bar.fFuel = 1;
_root.carp1.yvel = 0;
_root.carp2.yvel = 0;
_root.fade.gotoAndStop(2);
}
}
function gravity(type) {
_root.gravityType = type;
_root.car.dir = type;
_root.car.flipSide = true;
_root.wait = true;
}
function kill() {
_root.car.dead = true;
}
function smoke() {
var _local2 = "ball" + depthHolder;
_root.attachMovie("ball", _local2, depthHolder);
_root[_local2]._x = _root.fake._x - 40;
_root[_local2]._y = _root.fake._y - 10;
depthHolder++;
}
function fadeR() {
if (_root.reset) {
_root.gotoAndPlay("reset");
return(undefined);
}
_root.gravityType = "normal";
_root.level = _root.level + 1;
_root.fuel = 0;
_root.score = _root.score + 100;
_root.HUD.bar.fFuel = 1;
_root.fuelCollect = false;
_root.fuelFade = true;
_root.starCollect = false;
_root.details.tutswitch = false;
_root.tutorialDone = false;
_root.nextFrame();
}
function stopSFX() {
steamSide.stop();
steamSideB.stop();
steam.stop();
_root.boss.ufoS.stop();
}
stop();
ls();
if (_root.sound) {
carEngine.start(0, 999999);
}
_root.engineFrame = _root._currentframe - 1;
depthHolder = 0;
fuel = 0;
level = 1;
score = 0;
gravityType = "normal";
paused = false;
depthHolder = 0;
car.onEnterFrame = function () {
with (_root.car) {
if (_root.sound) {
if (ySpeed > 2) {
if (_root.bg.hitTest(_x, _y + 10, true)) {
_root.cSound();
}
}
if (_root.bg.hitTest((_x - (_width / 2)) - 5, _y - 20, true)) {
if (xSpeed < -5) {
_root.cSound();
}
}
if (xSpeed > 5) {
if (_root.bg.hitTest((_x + (_width / 2)) + 5, _y - 20, true)) {
_root.cSound();
}
}
}
}
};
_root.car.Angle = 0;
_root.fade.gotoAndStop(1);
_root.fC = 0;
Instance of Symbol 448 MovieClip "f2" in Frame 9
onClipEvent (load) {
locked = true;
_visible = false;
sound = false;
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
_x = _root.fake._x;
_y = (_root.fake._y - 5);
if (_root.car.jet) {
if (_root.fuel > 0) {
if (Key.isDown(38)) {
_visible = true;
if (!sound) {
if (_root.sound) {
_root.steam.start(0, 99999);
sound = true;
}
}
}
}
}
if (((!Key.isDown(38)) or (_root.fuel < 0)) or (!_root.car.jet)) {
_visible = false;
_root.steam.stop();
sound = false;
}
if (_root.gravityType == "reverse") {
_rotation = 180;
} else {
_rotation = 0;
}
}
Instance of Symbol 448 MovieClip "f3" in Frame 9
onClipEvent (load) {
locked = true;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
if (!_root.car.onfloor) {
if (Key.isDown(37)) {
_visible = true;
if (_root.sound) {
if (!sound) {
_root.steamSideB.start(0, 99999);
sound = true;
}
}
}
}
if (_root.gravityType == "normal") {
if ((((!Key.isDown(37)) or _root.car.onfloor) or (_root.fake._rotation < -20)) or (_root.fake._rotation > 20)) {
_visible = false;
}
}
if (_root.gravityType == "normal") {
if ((!Key.isDown(37)) or _root.car.onfloor) {
_root.steamSideB.stop();
sound = false;
}
}
if (_root.gravityType == "reverse") {
if (!Key.isDown(37)) {
_visible = false;
_root.steamSideB.stop();
sound = false;
}
}
_x = (_root.fake._x + 30);
if (_root.gravityType == "normal") {
_y = (_root.fake._y - 14);
}
if (_root.gravityType == "reverse") {
_y = (_root.fake._y + 10);
}
}
Instance of Symbol 448 MovieClip "f1" in Frame 9
onClipEvent (load) {
locked = true;
_visible = false;
sound = false;
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
if (!_root.car.onfloor) {
if (Key.isDown(39)) {
_visible = true;
if (!sound) {
if (_root.sound) {
_root.steamSide.start(0, 99999);
sound = true;
}
}
}
}
if (_root.gravityType == "normal") {
if ((((!Key.isDown(39)) or _root.car.onfloor) or (_root.fake._rotation > 20)) or (_root.fake._rotation < -20)) {
_visible = false;
}
}
if (_root.gravityType == "normal") {
if ((!Key.isDown(39)) or _root.car.onfloor) {
_root.steamSide.stop();
sound = false;
}
}
if (_root.gravityType == "reverse") {
if (!Key.isDown(39)) {
_visible = false;
_root.steamSide.stop();
sound = false;
}
}
_x = (_root.fake._x - 30);
if (_root.gravityType == "normal") {
_y = (_root.fake._y - 14);
}
if (_root.gravityType == "reverse") {
_y = (_root.fake._y + 10);
}
}
Instance of Symbol 466 MovieClip "fake" in Frame 9
onClipEvent (load) {
locked = true;
}
onClipEvent (enterFrame) {
_x = _root.car._x;
if (_root.gravityType == "normal") {
_y = _root.car._y;
}
if (_root.gravityType == "reverse") {
_y = (_root.car._y - 35);
}
_rotation = _root.car.Angle;
if (_root.zoom) {
_visible = false;
}
}
Instance of Symbol 470 MovieClip "car" in Frame 9
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle - 180;
}
}
}
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
_root.attachMovie("p1", "carp1", _root.depthHolder);
_root.depthHolder++;
_root.carp1.parent = this;
_root.attachMovie("p2", "carp2", _root.depthHolder);
_root.depthHolder++;
_root.carp2.parent = this;
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 8;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 8;
if (Angle > 0) {
flipSide = false;
}
}
}
}
Instance of Symbol 580 MovieClip "bar" in Frame 9
onClipEvent (load) {
fFuel = _root.fuel;
unlimited = false;
time = 0;
duration = 0;
}
onClipEvent (enterFrame) {
if (fFuel < _root.fuel) {
fFuel++;
}
if (fFuel > (_root.fuel + 1)) {
fFuel--;
}
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
if (unlimited) {
_root.fuel = Infinity;
fFuel = Infinity;
time++;
if (time >= duration) {
time = 0;
_root.fuel = 0;
fFuel = 1;
unlimited = false;
}
}
this.gotoAndStop(fFuel);
if (unlimited) {
this.gotoAndStop(100 - ((time / duration) * 100));
}
}
onClipEvent (load) {
if (_root.reset) {
_root.mmm.gotoAndPlay(2);
_root.reset = false;
}
}
onClipEvent (enterFrame) {
if (_root.car._x < 20) {
_root.car._x = 20;
_root.car.xSpeed++;
}
if (_root.car._x > 670) {
_root.car._x = 670;
_root.car.xSpeed--;
}
if (_root.car._y <= 30) {
if (_root.fade._currentframe == 1) {
if (_root.gravityType == "reverse") {
_root.resetLvl();
_root.reset = true;
}
}
if (!(_root.gravityType === "reverse")) {
_root.car._y = 30;
_root.car.ySpeed++;
}
}
if (_root.car._y > 520) {
if (_root.fade._currentframe == 1) {
if (_root.gravityType == "normal") {
_root.resetLvl();
_root.reset = true;
}
}
}
_root.smoke();
_root.m = _root.fade._currentframe;
}
onClipEvent (keyDown) {
if (Key.isDown(80)) {
if (!_root.paused) {
_root.paused = true;
_root.stopSFX();
_root.pauser.gotoAndPlay(2);
return(undefined);
}
if (_root.paused) {
_root.paused = false;
_root.pauser.gotoAndStop(1);
return(undefined);
}
}
}
Instance of Symbol 583 MovieClip in Frame 9
onClipEvent (keyDown) {
if (Key.getCode() == 81) {
if (_quality == "HIGH") {
nQ = "MEDIUM";
}
if (_quality == "MEDIUM") {
nQ = "LOW";
}
if (_quality == "LOW") {
nQ = "HIGH";
}
_quality = nQ;
}
}
Instance of Symbol 605 MovieClip in Frame 9
on (press) {
_root.stopSFX();
_root.carp1.removeMovieClip();
_root.carp2.removeMovieClip();
_root.gotoAndStop("game");
}
Frame 10
stop();
Instance of Symbol 608 MovieClip in Frame 10
onClipEvent (load) {
time = 150;
}
Frame 11
stop();
Instance of Symbol 626 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
if (this.hitTest(_root.car)) {
_root.detail("tutswitch");
}
if (_root.details.tutswitch) {
this.light.gotoAndStop(2);
}
}
Instance of Symbol 633 MovieClip in Frame 12
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
if (_root.details.tutswitch) {
_visible = true;
}
}
Frame 13
_root.carp1.removeMovieClip();
_root.carp2.removeMovieClip();
lol.gotoAndPlay(lol._currentframe + 1);
Frame 14
function changeLvl() {
if (_root.fade._currentframe == 1) {
_root.HUD.bar.time = 0;
_root.HUD.bar.duration = 0;
_root.HUD.bar.unlimited = false;
_root.carp1.yvel = 0;
_root.carp2.yvel = 0;
fade.gotoAndStop(2);
}
}
function resetLvl() {
if (_root.fade._currentframe == 1) {
_root.HUD.bar.time = 0;
_root.HUD.bar.duration = 0;
fuel = 0;
HUD.bar.fFuel = 1;
_root.HUD.bar.unlimited = false;
_root.carp1.yvel = 0;
_root.carp2.yvel = 0;
_root.fade.gotoAndStop(2);
}
}
function gravity(type) {
if (_root.sound) {
gravityR.start();
}
_root.gravityType = type;
_root.car.dir = type;
_root.car.flipSide = true;
}
function detail(what) {
details[what] = true;
}
function kill() {
_root.HUD.bar.time = 0;
_root.HUD.bar.duration = 0;
_root.car.dead = true;
_root.boss.ufoS.stop();
steamSide.stop();
steam.stop();
steamSideB.stop();
}
function smoke() {
var _local2 = "ball" + depthHolder;
_root.attachMovie("ball", _local2, depthHolder);
_root[_local2]._x = _root.fake._x - 40;
_root[_local2]._y = _root.fake._y - 10;
depthHolder++;
}
function fadeR() {
A = _root.minutes * 60;
B = _root.seconds * 1000;
C = hundredths * 10;
millisec = (A + B) + C;
trace(A);
trace(B);
trace(C);
trace(millisec);
max = (80000 - millisec) / 100;
if (max < 0) {
max = 0;
}
if (!_root.reset) {
_root.score = _root.score + Math.round(max);
}
_root.steamSide.stop();
_root.steam.stop();
_root.steamSideB.stop();
_root.boss.ufoS.stop();
if (_root.reset) {
_root.gotoAndPlay("reset");
return(undefined);
}
_root.HUD.bar.unlimited = false;
f1._visible = false;
f2._visible = false;
f3._visible = false;
_root.gravityType = "normal";
_root.level = _root.level + 1;
_root.fuel = 0;
_root.score = _root.score + 100;
_root.HUD.bar.fFuel = 1;
_root.HUD.bar.time = 0;
_root.HUD.bar.duration = 0;
_root.details.switch1 = false;
_root.details.switch2 = false;
_root.details.switch3 = false;
_root.details.switch4 = false;
_root.details.switch5 = false;
_root.details.switch6 = false;
_root.details.switch7 = false;
_root.details.switch8 = false;
_root.details.switch9 = false;
_root.details.switch10 = false;
_root.details.switch11 = false;
_root.nextFrame();
}
function startIt() {
if (!_root.timing) {
if (_root.paused) {
_root.startTime = getTimer() - _root.elapsedTime;
} else {
_root.startTime = getTimer();
}
_root.paused = false;
_root.timing = true;
}
}
function restart() {
if (_root.timing) {
_root.timing = false;
_root.paused = true;
}
}
stop();
_root.engineFrame = _root._currentframe - 1;
if (_root.timerN == undefined) {
_root.attachMovie("timer", "timer", 93300);
_root.timer._x = 650;
_root.timer._y = 480;
_root.timerN = 1;
}
depthHolder = 0;
fuel = 0;
level = 1;
score = 0;
gravityType = "normal";
paused = false;
_root.details = new Object();
depthHolder = 0;
HUD.onEnterFrame = function () {
with (_root.car) {
if (ySpeed > 5) {
if (_root.bg.hitTest(_x, _y + 12, true)) {
_root.cSound();
}
}
if (_root.bg.hitTest((_x - (_width / 2)) - 5, _y - 20, true)) {
if (xSpeed < -5) {
_root.cSound();
}
}
if (xSpeed > 5) {
if (_root.bg.hitTest((_x + (_width / 2)) + 5, _y - 20, true)) {
_root.cSound();
}
}
}
};
var timing = false;
var paused = false;
var remaining;
var elapsedTime;
var elapsedHours;
var elapsedM;
var elapsedS;
var elapsedH;
var startTime;
var remaining;
var hours;
var minutes;
var seconds;
var hundredths;
_root.onEnterFrame = function () {
if (timing) {
elapsedTime = getTimer() - startTime;
elapsedHours = Math.floor(elapsedTime / 3600000);
remaining = elapsedTime - (elapsedHours * 3600000);
elapsedM = Math.floor(remaining / 60000);
remaining = remaining - (elapsedM * 60000);
elapsedS = Math.floor(remaining / 1000);
remaining = remaining - (elapsedS * 1000);
elapsedH = Math.floor(remaining / 10);
if (elapsedHours < 10) {
hours = "0" + elapsedHours.toString();
} else {
hours = elapsedHours.toString();
}
if (elapsedM < 10) {
minutes = "0" + elapsedM.toString();
} else {
minutes = elapsedM.toString();
}
if (elapsedS < 10) {
seconds = "0" + elapsedS.toString();
} else {
seconds = elapsedS.toString();
}
if (elapsedH < 10) {
hundredths = "0" + elapsedH.toString();
} else {
hundredths = elapsedH.toString();
}
_root.timer_txt = (((minutes + ":") + seconds) + ":") + _root.hundredths;
}
};
startIt();
_root.car.Angle = 0;
_root.fade.gotoAndStop(1);
var lTime = 0;
var frameCount = 0;
f3.onEnterFrame = function () {
timesf = getTimer();
frameCount++;
if ((getTimer() - lTime) >= 1000) {
lTime = getTimer();
_root.fps = frameCount;
frameCount = 0;
}
};
Instance of Symbol 470 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 (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
target1 = this._name + "p1";
_root.attachMovie("p1", target1, 87778);
_root.depthHolder++;
_root[target1].parent = this;
target2 = this._name + "p2";
_root.attachMovie("p2", target2, 89798);
_root.depthHolder++;
_root[target2].parent = this;
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (ySpeed < 0) {
ySpeed++;
}
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
if (!jet) {
ySpeed = 0;
}
} else {
onfloor = false;
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
}
Instance of Symbol 448 MovieClip "f2" in Frame 14
onClipEvent (load) {
locked = true;
_visible = false;
sound = false;
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
_x = _root.fake._x;
_y = (_root.fake._y - 5);
if (_root.car.jet) {
if (_root.fuel > 0) {
if (Key.isDown(38)) {
_visible = true;
if (!sound) {
if (_root.sound) {
_root.steam.start(0, 99999);
sound = true;
}
}
}
}
}
if (((!Key.isDown(38)) or (_root.fuel < 0)) or (!_root.car.jet)) {
_visible = false;
_root.steam.stop();
sound = false;
}
}
Instance of Symbol 448 MovieClip "f3" in Frame 14
onClipEvent (load) {
locked = true;
_visible = false;
sound = false;
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
if (!_root.car.onfloor) {
if (Key.isDown(37)) {
_visible = true;
if (_root.sound) {
if (!sound) {
_root.steamSideB.start(0, 99999);
sound = true;
}
}
}
}
if ((((!Key.isDown(37)) or _root.car.onfloor) or (_root.fake._rotation < -20)) or (_root.fake._rotation > 20)) {
_visible = false;
}
if ((!Key.isDown(37)) or _root.car.onfloor) {
_root.steamSideB.stop();
sound = false;
}
_x = (_root.fake._x + 30);
_y = (_root.fake._y - 14);
}
Instance of Symbol 448 MovieClip "f1" in Frame 14
onClipEvent (load) {
locked = true;
_visible = false;
sound = false;
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
if (_root.car.dead) {
_visible = false;
return(undefined);
}
if (!_root.car.onfloor) {
if (Key.isDown(39)) {
_visible = true;
if (!sound) {
if (_root.sound) {
_root.steamSide.start(0, 99999);
sound = true;
}
}
}
}
if ((((!Key.isDown(39)) or _root.car.onfloor) or (_root.fake._rotation > 20)) or (_root.fake._rotation < -20)) {
_visible = false;
}
if ((!Key.isDown(39)) or _root.car.onfloor) {
sound = false;
_root.steamSide.stop();
}
_x = (_root.fake._x - 30);
_y = (_root.fake._y - 14);
}
Instance of Symbol 466 MovieClip "fake" in Frame 14
onClipEvent (load) {
locked = true;
}
onClipEvent (enterFrame) {
_x = _root.car._x;
_y = _root.car._y;
_rotation = _root.car.Angle;
if (_root.zoom) {
_visible = false;
}
if (_root.car.dead) {
this.gotoAndStop(2);
}
}
Instance of Symbol 735 MovieClip "HUD" in Frame 14
onClipEvent (load) {
if (_root.reset) {
_root.mmm.gotoAndPlay(2);
_root.reset = false;
}
}
onClipEvent (enterFrame) {
if (_root.car.dead) {
_root.f1._visible = false;
_root.f2._visible = false;
_root.f3._visible = false;
_root.steamSide.stop();
}
if (_root.car._x < 20) {
_root.car._x = 20;
_root.car.xSpeed++;
}
if (_root.car._x > 670) {
_root.car._x = 670;
_root.car.xSpeed--;
}
if (_root.car._y <= 30) {
if (_root.fade._currentframe == 1) {
if (_root.gravityType == "reverse") {
_root.steamSide.stop();
_root.steam.stop();
_root.steamSideB.stop();
_root.resetLvl();
_root.reset = true;
}
}
if (!(_root.gravityType === "reverse")) {
_root.car._y = 30;
_root.car.ySpeed++;
}
}
if (_root.car._y > 520) {
if (_root.fade._currentframe == 1) {
if (_root.gravityType == "normal") {
_root.resetLvl();
_root.reset = true;
_root.steamSide.stop();
_root.steam.stop();
_root.steamSideB.stop();
}
}
}
_root.smoke();
_root.m = _root.fade._currentframe;
}
onClipEvent (keyDown) {
if (Key.isDown(80)) {
if (!_root.paused) {
_root.restart();
_root.paused = true;
_root.pauser.gotoAndPlay(2);
return(undefined);
}
if (_root.paused) {
_root.startIt();
_root.paused = false;
_root.pauser.gotoAndStop(1);
return(undefined);
}
}
}
Instance of Symbol 583 MovieClip in Frame 14
onClipEvent (keyDown) {
if (Key.getCode() == 81) {
if (_quality == "HIGH") {
nQ = "MEDIUM";
}
if (_quality == "MEDIUM") {
nQ = "LOW";
}
if (_quality == "LOW") {
nQ = "HIGH";
}
_quality = nQ;
}
}
Instance of Symbol 268 MovieClip in Frame 14
on (release) {
getURL ("http://www.mofunzone.com/", "_blank");
}
on (rollOver) {
_alpha = 100;
}
on (rollOut) {
_alpha = 50;
}
Instance of Symbol 723 MovieClip in Frame 15
/* no clip actions */
Instance of Symbol 470 MovieClip "car" in Frame 15
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (ySpeed < 0) {
ySpeed++;
}
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
if (!jet) {
ySpeed = 0;
}
} else {
onfloor = false;
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
}
Instance of Symbol 466 MovieClip "fake" in Frame 15
onClipEvent (load) {
locked = true;
}
onClipEvent (enterFrame) {
_x = _root.car._x;
_y = _root.car._y;
_rotation = _root.car.Angle;
if (_root.zoom) {
_visible = false;
}
}
Instance of Symbol 749 MovieClip in Frame 16
onClipEvent (load) {
time = 80;
}
Instance of Symbol 470 MovieClip "car" in Frame 16
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (ySpeed < 0) {
ySpeed++;
}
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
if (!jet) {
ySpeed = 0;
}
} else {
onfloor = false;
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
}
Instance of Symbol 723 MovieClip in Frame 17
/* no clip actions */
Instance of Symbol 640 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 470 MovieClip "car" in Frame 17
onClipEvent (load) {
function getAngle() {
if (dead) {
return(undefined);
}
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
}
onClipEvent (enterFrame) {
if (dead) {
return(undefined);
}
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (ySpeed < 0) {
ySpeed++;
}
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
if (!jet) {
ySpeed = 0;
}
} else {
onfloor = false;
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
}
Instance of Symbol 466 MovieClip "fake" in Frame 17
onClipEvent (load) {
locked = true;
}
onClipEvent (enterFrame) {
_x = _root.car._x;
_y = _root.car._y;
_rotation = _root.car.Angle;
if (_root.zoom) {
_visible = false;
}
if (_root.car.dead) {
_rotation = 0;
this.gotoAndStop(2);
}
}
Instance of Symbol 822 MovieClip "boss" in Frame 18
onClipEvent (load) {
function changeDir() {
dir = random(2);
if (dir == 0) {
dir = "left";
}
if (dir == 1) {
dir = "right";
}
}
function bomb() {
if (_root.paused) {
return(undefined);
}
if (health <= 0) {
return(undefined);
}
c = random(3);
if (c == 0) {
type = "fuel";
}
if (c == 1) {
type = "bomb";
}
if (c == 2) {
type = "bomb";
}
var _local2 = type + i;
i++;
_root.attachMovie(type, _local2, i);
_root[_local2]._x = _x + (_width / 2);
_root[_local2]._y = _y + 50;
}
if (_root.sound) {
ufoS = new Sound(this);
ufoS.attachSound("ufo");
ufoS.setVolume(70);
ufoS.start(0, 9999);
explode1 = new Sound(this);
explode1.attachSound("explode2");
explode = new Sound(this);
explode.attachSound("explode1");
}
damage = false;
health = 100;
speed = 2;
delay = 4000;
resetTime = getTimer() + delay;
time = 0;
t = 0;
changeDir();
i = 1;
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
if (!_root.sound) {
ufoS.setVolume(0);
}
if (getTimer() > resetTime) {
changeDir();
resetTime = getTimer() + delay;
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
if (_x > 500) {
dir = "left";
}
if (_x < 100) {
dir = "right";
}
time++;
if (time > 80) {
if (_currentframe == 1) {
bomb();
time = 0;
}
}
if (!damage) {
if (this.box.hitTest(_root.car)) {
_root.cSound();
damage = true;
health = health - 20;
_root.car.ySpeed = (-_root.car.ySpeed) * 0.3;
}
}
if (damage) {
_alpha = (random(100) + 10);
t++;
if (t > 20) {
t = 0;
_alpha = 100;
damage = false;
}
}
if (_root.car.dead) {
ufoS.stop();
}
}
Instance of Symbol 470 MovieClip "car" in Frame 18
onClipEvent (load) {
function getAngle() {
if (dead) {
return(undefined);
}
if (InAirCauseJet) {
Angle = 0;
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
}
}
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
}
onClipEvent (enterFrame) {
if (dead) {
return(undefined);
}
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
_y = (_y + ySpeed);
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (ySpeed < 0) {
ySpeed++;
}
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
if (!jet) {
ySpeed = 0;
}
} else {
onfloor = false;
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
}
Frame 19
boss.ufoS.stop();
Instance of Symbol 723 MovieClip in Frame 19
/* no clip actions */
Instance of Symbol 723 MovieClip in Frame 19
/* no clip actions */
Instance of Symbol 723 MovieClip in Frame 19
/* no clip actions */
Instance of Symbol 470 MovieClip "car" in Frame 19
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle - 180;
}
}
}
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
function flip(dir) {
if (dir == "reverse") {
if (!onfloor) {
if ((!_root.fake._rotation) < 180) {
flipSide = true;
}
}
}
}
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
Angle = Angle + 6;
if (Angle > 164) {
flipSide = false;
}
}
}
Instance of Symbol 448 MovieClip "f2" in Frame 19
onClipEvent (load) {
locked = true;
_visible = false;
sound = false;
}
onClipEvent (enterFrame) {
_x = _root.fake._x;
_y = (_root.fake._y - 5);
if (_root.car.jet) {
if (_root.fuel > 0) {
if (Key.isDown(38)) {
_visible = true;
if (!sound) {
if (_root.sound) {
_root.steam.start(0, 99999);
sound = true;
}
}
}
}
}
if (((!Key.isDown(38)) or (_root.fuel < 0)) or (!_root.car.jet)) {
_visible = false;
_root.steam.stop();
sound = false;
}
if (_root.gravityType == "reverse") {
_rotation = 180;
} else {
_rotation = 0;
}
}
Instance of Symbol 448 MovieClip "f3" in Frame 19
onClipEvent (load) {
locked = true;
_visible = false;
sound = false;
}
onClipEvent (enterFrame) {
if (!_root.car.onfloor) {
if (Key.isDown(37)) {
_visible = true;
if (!sound) {
if (_root.sound) {
_root.steamSideB.start(0, 99999);
sound = true;
}
}
}
}
if (_root.gravityType == "normal") {
if ((((!Key.isDown(37)) or _root.car.onfloor) or (_root.fake._rotation < -20)) or (_root.fake._rotation > 20)) {
_visible = false;
}
}
if (_root.gravityType == "normal") {
if ((!Key.isDown(37)) or _root.car.onfloor) {
_root.steamSideB.stop();
sound = false;
}
}
if (_root.gravityType == "reverse") {
if (!Key.isDown(37)) {
_visible = false;
sound = false;
_root.steamSideB.stop();
sound = false;
}
}
_x = (_root.fake._x + 30);
if (_root.gravityType == "normal") {
_y = (_root.fake._y - 14);
}
if (_root.gravityType == "reverse") {
_y = (_root.fake._y + 10);
}
}
Instance of Symbol 448 MovieClip "f1" in Frame 19
onClipEvent (load) {
locked = true;
_visible = false;
sound = false;
}
onClipEvent (enterFrame) {
if (!_root.car.onfloor) {
if (Key.isDown(39)) {
_visible = true;
if (!sound) {
if (_root.sound) {
_root.steamSide.start(0, 99999);
sound = true;
}
}
}
}
if (_root.gravityType == "normal") {
if ((((!Key.isDown(39)) or _root.car.onfloor) or (_root.fake._rotation > 20)) or (_root.fake._rotation < -20)) {
_visible = false;
}
}
if ((!Key.isDown(39)) or _root.car.onfloor) {
sound = false;
_root.steamSide.stop();
}
if (_root.gravityType == "reverse") {
if (!Key.isDown(39)) {
_visible = false;
sound = false;
_root.steamSide.stop();
}
}
_x = (_root.fake._x - 30);
if (_root.gravityType == "normal") {
_y = (_root.fake._y - 14);
}
if (_root.gravityType == "reverse") {
_y = (_root.fake._y + 10);
}
}
Instance of Symbol 466 MovieClip "fake" in Frame 19
onClipEvent (load) {
locked = true;
}
onClipEvent (enterFrame) {
_x = _root.car._x;
if (_root.gravityType == "normal") {
_y = _root.car._y;
}
if (_root.gravityType == "reverse") {
_y = (_root.car._y - 35);
}
_rotation = _root.car.Angle;
if (_root.zoom) {
_visible = false;
}
}
Instance of Symbol 470 MovieClip "car" in Frame 20
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle - 180;
}
}
}
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 8;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 8;
if (Angle > 0) {
flipSide = false;
}
}
}
}
Instance of Symbol 466 MovieClip "fake" in Frame 20
onClipEvent (load) {
locked = true;
}
onClipEvent (enterFrame) {
_x = _root.car._x;
if (_root.gravityType == "normal") {
_y = _root.car._y;
}
if (_root.gravityType == "reverse") {
_y = (_root.car._y - 35);
}
_rotation = _root.car.Angle;
if (_root.zoom) {
_visible = false;
}
}
Instance of Symbol 448 MovieClip "f3" in Frame 20
onClipEvent (load) {
locked = true;
_visible = false;
sound = false;
}
onClipEvent (enterFrame) {
if (!_root.car.onfloor) {
if (Key.isDown(37)) {
_visible = true;
if (!sound) {
if (_root.sound) {
_root.steamSide.start(0, 99999);
sound = true;
}
}
}
}
if (_root.gravityType == "normal") {
if ((((!Key.isDown(37)) or _root.car.onfloor) or (_root.fake._rotation < -20)) or (_root.fake._rotation > 20)) {
_visible = false;
if (!_root.f1.sound) {
_root.steamSide.stop();
sound = false;
}
}
}
if (_root.gravityType == "reverse") {
if (!Key.isDown(37)) {
_visible = false;
sound = false;
if (!_root.f1.sound) {
_root.steamSide.stop();
sound = false;
}
}
}
_x = (_root.fake._x + 30);
if (_root.gravityType == "normal") {
_y = (_root.fake._y - 14);
}
if (_root.gravityType == "reverse") {
_y = (_root.fake._y + 10);
}
}
Instance of Symbol 448 MovieClip "f1" in Frame 20
onClipEvent (load) {
locked = true;
_visible = false;
sound = false;
}
onClipEvent (enterFrame) {
if (!_root.car.onfloor) {
if (Key.isDown(39)) {
_visible = true;
if (!sound) {
if (_root.sound) {
_root.steamSide.start(0, 99999);
sound = true;
}
}
}
}
if (_root.gravityType == "normal") {
if ((((!Key.isDown(39)) or _root.car.onfloor) or (_root.fake._rotation > 20)) or (_root.fake._rotation < -20)) {
_visible = false;
sound = false;
if (!_root.f3.sound) {
_root.steamSide.stop();
}
}
}
if (_root.gravityType == "reverse") {
if (!Key.isDown(39)) {
_visible = false;
sound = false;
if (!_root.f3.sound) {
_root.steamSide.stop();
}
}
}
_x = (_root.fake._x - 30);
if (_root.gravityType == "normal") {
_y = (_root.fake._y - 14);
}
if (_root.gravityType == "reverse") {
_y = (_root.fake._y + 10);
}
}
Instance of Symbol 855 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 470 MovieClip "car" in Frame 21
onClipEvent (load) {
function getAngle() {
if (dead) {
return(undefined);
}
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle + 180;
}
}
if (!flipSide) {
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
}
}
dead = false;
flipSide = false;
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (dead) {
return(undefined);
}
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 10;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 10;
if ((Angle <= 0) and (Angle > -20)) {
flipSide = false;
}
}
}
}
Instance of Symbol 466 MovieClip "fake" in Frame 21
onClipEvent (enterFrame) {
_x = _root.car._x;
if (_root.gravityType == "normal") {
_y = _root.car._y;
}
if (_root.gravityType == "reverse") {
_y = (_root.car._y - 35);
}
_rotation = _root.car.Angle;
if (_root.car.dead) {
_rotation = 0;
this.gotoAndStop(2);
}
}
Instance of Symbol 749 MovieClip in Frame 22
onClipEvent (load) {
time = 220;
}
Instance of Symbol 470 MovieClip "car" in Frame 22
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle - 180;
}
}
}
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 6;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 6;
if (Angle < -330) {
flipSide = false;
}
}
}
}
Instance of Symbol 466 MovieClip "fake" in Frame 22
onClipEvent (load) {
locked = true;
}
onClipEvent (enterFrame) {
_x = _root.car._x;
if (_root.gravityType == "normal") {
_y = _root.car._y;
}
if (_root.gravityType == "reverse") {
_y = (_root.car._y - 35);
}
_rotation = _root.car.Angle;
if (_root.zoom) {
_visible = false;
}
if (_root.car.dead) {
_rotation = 0;
this.gotoAndStop(2);
}
}
Instance of Symbol 749 MovieClip in Frame 23
onClipEvent (load) {
time = 80;
}
Instance of Symbol 466 MovieClip "fake" in Frame 23
onClipEvent (load) {
locked = true;
}
onClipEvent (enterFrame) {
_x = _root.car._x;
if (_root.gravityType == "normal") {
_y = _root.car._y;
}
if (_root.gravityType == "reverse") {
_y = (_root.car._y - 35);
}
_rotation = _root.car.Angle;
if (_root.zoom) {
_visible = false;
}
if (_root.car.dead) {
_rotation = 0;
this.gotoAndStop(2);
}
}
Instance of Symbol 448 MovieClip "f2" in Frame 23
onClipEvent (load) {
locked = true;
_visible = false;
sound = false;
}
onClipEvent (enterFrame) {
_x = _root.fake._x;
_y = (_root.fake._y - 5);
if (_root.car.jet) {
if (_root.fuel > 0) {
if (Key.isDown(38)) {
_visible = true;
if (!sound) {
if (_root.sound) {
_root.steam.start(0, 99999);
sound = true;
}
}
}
}
}
if (((!Key.isDown(38)) or (_root.fuel < 0)) or (!_root.car.jet)) {
_visible = false;
_root.steam.stop();
sound = false;
}
if (_root.gravityType == "reverse") {
_rotation = 180;
} else {
_rotation = 0;
}
}
Instance of Symbol 448 MovieClip "f3" in Frame 23
onClipEvent (load) {
locked = true;
_visible = false;
sound = false;
}
onClipEvent (enterFrame) {
if (!_root.car.onfloor) {
if (Key.isDown(37)) {
_visible = true;
if (!sound) {
if (_root.sound) {
_root.steamSide.start(0, 99999);
sound = true;
}
}
}
}
if (_root.gravityType == "normal") {
if ((((!Key.isDown(37)) or _root.car.onfloor) or (_root.fake._rotation < -20)) or (_root.fake._rotation > 20)) {
_visible = false;
if (!_root.f1.sound) {
_root.steamSide.stop();
sound = false;
}
}
}
if (_root.gravityType == "reverse") {
if (!Key.isDown(37)) {
_visible = false;
sound = false;
if (!_root.f1.sound) {
_root.steamSide.stop();
sound = false;
}
}
}
_x = (_root.fake._x + 30);
if (_root.gravityType == "normal") {
_y = (_root.fake._y - 14);
}
if (_root.gravityType == "reverse") {
_y = (_root.fake._y + 10);
}
}
Instance of Symbol 448 MovieClip "f1" in Frame 23
onClipEvent (load) {
locked = true;
_visible = false;
sound = false;
}
onClipEvent (enterFrame) {
if (!_root.car.onfloor) {
if (Key.isDown(39)) {
_visible = true;
if (!sound) {
if (_root.sound) {
_root.steamSide.start(0, 99999);
sound = true;
}
}
}
}
if (_root.gravityType == "normal") {
if ((((!Key.isDown(39)) or _root.car.onfloor) or (_root.fake._rotation > 20)) or (_root.fake._rotation < -20)) {
_visible = false;
sound = false;
if (!_root.f3.sound) {
_root.steamSide.stop();
}
}
}
if (_root.gravityType == "reverse") {
if (!Key.isDown(39)) {
_visible = false;
sound = false;
if (!_root.f3.sound) {
_root.steamSide.stop();
}
}
}
_x = (_root.fake._x - 30);
if (_root.gravityType == "normal") {
_y = (_root.fake._y - 14);
}
if (_root.gravityType == "reverse") {
_y = (_root.fake._y + 10);
}
}
Instance of Symbol 470 MovieClip "car" in Frame 23
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle - 180;
}
}
}
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 6;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 6;
if (Angle < -330) {
flipSide = false;
}
}
}
}
Instance of Symbol 869 MovieClip "boss" in Frame 24
onClipEvent (load) {
function changeDir() {
dir = random(2);
if (dir == 0) {
dir = "left";
}
if (dir == 1) {
dir = "right";
}
}
function bomb() {
if (_root.paused) {
return(undefined);
}
if (health <= 0) {
return(undefined);
}
type = "bomb2";
var _local2 = type + i;
i++;
_root.attachMovie(type, _local2, i);
_root[_local2]._x = _x;
_root[_local2]._y = _y + 50;
}
if (_root.sound) {
ufoS = new Sound(this);
ufoS.attachSound("ufo");
ufoS.setVolume(70);
ufoS.start(0, 9999);
explode1 = new Sound(this);
explode1.attachSound("explode2");
explode = new Sound(this);
explode.attachSound("explode1");
}
damage = false;
health = 100;
speed = 2;
delay = 5000;
resetTime = getTimer() + delay;
time = 0;
t = 0;
changeDir();
i = 1;
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
if (!_root.sound) {
ufoS.setVolume(0);
}
if (getTimer() > resetTime) {
changeDir();
resetTime = getTimer() + delay;
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
if (_x > 500) {
dir = "left";
}
if (_x < 100) {
dir = "right";
}
time++;
if (time > 80) {
bomb();
time = 0;
}
if (!damage) {
if (this.box.hitTest(_root.car)) {
_root.cSound();
damage = true;
health = health - 20;
_root.car.ySpeed = (-_root.car.ySpeed) * 0.3;
}
}
if (damage) {
_alpha = (random(100) + 10);
t++;
if (t > 20) {
t = 0;
_alpha = 100;
damage = false;
}
}
if (_root.car.dead) {
ufoS.stop();
}
}
Instance of Symbol 470 MovieClip "car" in Frame 24
onClipEvent (load) {
function getAngle() {
if (dead) {
return(undefined);
}
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle - 180;
}
}
}
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (dead) {
return(undefined);
}
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 6;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 6;
if (Angle < -330) {
flipSide = false;
}
}
}
}
Frame 25
boss.ufoS.stop();
Instance of Symbol 879 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (_root.car.hitTest(_x + 8, _y + 5, true)) {
_root.gravity("reverse");
}
}
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 882 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.detail("switch1");
}
if (_root.details.switch1) {
this.light.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 882 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.detail("switch2");
}
if (_root.details.switch2) {
this.light.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 879 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (_root.car.hitTest(_x + 5, _y + 5, true)) {
_root.gravity("reverse");
}
}
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 882 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.detail("switch3");
}
if (_root.details.switch3) {
this.light.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 882 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.detail("switch4");
}
if (_root.details.switch4) {
this.light.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 885 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (_root.car.hitTest(_x - 2, _y + 5, true)) {
_root.gravity("normal");
}
}
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 885 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (_root.car.hitTest(_x - 2, _y + 5, true)) {
_root.gravity("normal");
}
}
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 886 MovieClip in Frame 25
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.details.switch1) {
if (_root.details.switch2) {
if (_root.details.switch3) {
if (_root.details.switch4) {
_visible = true;
}
}
}
}
}
Instance of Symbol 470 MovieClip "car" in Frame 25
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle + 180;
}
}
if (!flipSide) {
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
}
}
flipSide = false;
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 10;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 10;
if ((Angle <= 0) and (Angle > -20)) {
flipSide = false;
}
}
}
}
Instance of Symbol 723 MovieClip in Frame 26
/* no clip actions */
Instance of Symbol 723 MovieClip in Frame 26
/* no clip actions */
Instance of Symbol 470 MovieClip "car" in Frame 26
onClipEvent (load) {
function getAngle() {
if (dead) {
return(undefined);
}
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle + 180;
}
}
if (!flipSide) {
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
}
}
dead = false;
flipSide = false;
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (dead) {
return(undefined);
}
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 10;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 10;
if ((Angle <= 0) and (Angle > -20)) {
flipSide = false;
}
}
}
}
Instance of Symbol 893 MovieClip in Frame 26
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
if (_root.paused) {
stop();
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 642 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 899 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 900 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 749 MovieClip in Frame 27
onClipEvent (load) {
time = 50;
}
Instance of Symbol 640 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 470 MovieClip "car" in Frame 27
onClipEvent (load) {
function getAngle() {
if (dead) {
return(undefined);
}
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle + 180;
}
}
if (!flipSide) {
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
}
}
dead = false;
flipSide = false;
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (dead) {
return(undefined);
}
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 10;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 10;
if ((Angle <= 0) and (Angle > -20)) {
flipSide = false;
}
}
}
}
Instance of Symbol 640 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 723 MovieClip in Frame 28
/* no clip actions */
Instance of Symbol 723 MovieClip in Frame 28
/* no clip actions */
Instance of Symbol 470 MovieClip "car" in Frame 28
onClipEvent (load) {
function getAngle() {
if (dead) {
return(undefined);
}
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle + 180;
}
}
if (!flipSide) {
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
}
}
dead = false;
flipSide = false;
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (dead) {
return(undefined);
}
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 10;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 10;
if ((Angle <= 0) and (Angle > -20)) {
flipSide = false;
}
}
}
}
Instance of Symbol 626 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.detail("switch5");
}
if (_root.details.switch5) {
this.light.gotoAndStop(2);
}
}
Instance of Symbol 640 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 723 MovieClip in Frame 29
/* no clip actions */
Instance of Symbol 723 MovieClip in Frame 29
/* no clip actions */
Instance of Symbol 723 MovieClip in Frame 29
/* no clip actions */
Instance of Symbol 749 MovieClip in Frame 29
onClipEvent (load) {
time = 60;
}
Instance of Symbol 886 MovieClip in Frame 29
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.details.switch5) {
_visible = true;
}
}
Instance of Symbol 470 MovieClip "car" in Frame 29
onClipEvent (load) {
function getAngle() {
if (dead) {
return(undefined);
}
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle + 180;
}
}
if (!flipSide) {
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
}
}
dead = false;
flipSide = false;
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (dead) {
return(undefined);
}
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 10;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 10;
if ((Angle <= 0) and (Angle > -20)) {
flipSide = false;
}
}
}
}
Instance of Symbol 640 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 749 MovieClip in Frame 30
onClipEvent (load) {
time = 80;
}
Instance of Symbol 640 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 640 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 640 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 640 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 640 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 640 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 640 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 640 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 640 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 640 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 640 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 470 MovieClip "car" in Frame 30
onClipEvent (load) {
function getAngle() {
if (dead) {
return(undefined);
}
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle + 180;
}
}
if (!flipSide) {
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
}
}
dead = false;
flipSide = false;
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (dead) {
return(undefined);
}
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 10;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 10;
if ((Angle <= 0) and (Angle > -20)) {
flipSide = false;
}
}
}
}
Instance of Symbol 749 MovieClip in Frame 31
onClipEvent (load) {
time = 80;
}
Instance of Symbol 470 MovieClip "car" in Frame 31
onClipEvent (load) {
function getAngle() {
if (dead) {
return(undefined);
}
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle + 180;
}
}
if (!flipSide) {
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
}
}
dead = false;
flipSide = false;
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (dead) {
return(undefined);
}
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 10;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 10;
if ((Angle <= 0) and (Angle > -20)) {
flipSide = false;
}
}
}
}
Instance of Symbol 470 MovieClip "car" in Frame 32
onClipEvent (load) {
function getAngle() {
if (dead) {
return(undefined);
}
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle + 180;
}
}
if (!flipSide) {
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
}
}
dead = false;
flipSide = false;
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (dead) {
return(undefined);
}
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 10;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 10;
if ((Angle <= 0) and (Angle > -20)) {
flipSide = false;
}
}
}
}
Instance of Symbol 466 MovieClip "fake" in Frame 32
onClipEvent (enterFrame) {
_x = _root.car._x;
if (_root.gravityType == "normal") {
_y = _root.car._y;
}
if (_root.gravityType == "reverse") {
_y = (_root.car._y - 35);
}
_rotation = _root.car.Angle;
if (_root.car.dead) {
_rotation = 0;
this.gotoAndStop(2);
}
}
Instance of Symbol 749 MovieClip in Frame 33
onClipEvent (load) {
time = 60;
}
Instance of Symbol 640 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 640 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 470 MovieClip "car" in Frame 33
onClipEvent (load) {
function getAngle() {
if (dead) {
return(undefined);
}
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle + 180;
}
}
if (!flipSide) {
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
}
}
dead = false;
flipSide = false;
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (dead) {
return(undefined);
}
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 10;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 10;
if ((Angle <= 0) and (Angle > -20)) {
flipSide = false;
}
}
}
}
Instance of Symbol 466 MovieClip "fake" in Frame 33
onClipEvent (load) {
locked = true;
}
onClipEvent (enterFrame) {
_x = _root.car._x;
if (_root.gravityType == "normal") {
_y = _root.car._y;
}
if (_root.gravityType == "reverse") {
_y = (_root.car._y - 35);
}
_rotation = _root.car.Angle;
if (_root.zoom) {
_visible = false;
}
if (_root.car.dead) {
_rotation = 0;
this.gotoAndStop(2);
}
}
Instance of Symbol 448 MovieClip "f2" in Frame 33
onClipEvent (load) {
locked = true;
_visible = false;
sound = false;
}
onClipEvent (enterFrame) {
_x = _root.fake._x;
_y = (_root.fake._y - 5);
if (_root.car.dead) {
_visible = false;
return(undefined);
}
if (_root.car.jet) {
if (_root.fuel > 0) {
if (Key.isDown(38)) {
_visible = true;
if (!sound) {
if (_root.sound) {
_root.steam.start(0, 99999);
sound = true;
}
}
}
}
}
if (((!Key.isDown(38)) or (_root.fuel < 0)) or (!_root.car.jet)) {
_visible = false;
_root.steam.stop();
sound = false;
}
if (_root.gravityType == "reverse") {
_rotation = 180;
} else {
_rotation = 0;
}
}
Instance of Symbol 448 MovieClip "f3" in Frame 33
onClipEvent (load) {
locked = true;
_visible = false;
sound = false;
}
onClipEvent (enterFrame) {
if (_root.car.dead) {
_visible = false;
return(undefined);
}
if (!_root.car.onfloor) {
if (Key.isDown(37)) {
_visible = true;
if (!sound) {
if (_root.sound) {
_root.steamSide.start(0, 99999);
sound = true;
}
}
}
}
if (_root.gravityType == "normal") {
if ((((!Key.isDown(37)) or _root.car.onfloor) or (_root.fake._rotation < -20)) or (_root.fake._rotation > 20)) {
_visible = false;
if (!_root.f1.sound) {
_root.steamSide.stop();
sound = false;
}
}
}
if (_root.gravityType == "reverse") {
if (!Key.isDown(37)) {
_visible = false;
sound = false;
if (!_root.f1.sound) {
_root.steamSide.stop();
sound = false;
}
}
}
_x = (_root.fake._x + 30);
if (_root.gravityType == "normal") {
_y = (_root.fake._y - 14);
}
if (_root.gravityType == "reverse") {
_y = (_root.fake._y + 10);
}
}
Instance of Symbol 448 MovieClip "f1" in Frame 33
onClipEvent (load) {
locked = true;
_visible = false;
sound = false;
}
onClipEvent (enterFrame) {
if (_root.car.dead) {
_visible = false;
return(undefined);
}
if (!_root.car.onfloor) {
if (Key.isDown(39)) {
_visible = true;
if (!sound) {
if (_root.sound) {
_root.steamSide.start(0, 99999);
sound = true;
}
}
}
}
if (_root.gravityType == "normal") {
if ((((!Key.isDown(39)) or _root.car.onfloor) or (_root.fake._rotation > 20)) or (_root.fake._rotation < -20)) {
_visible = false;
sound = false;
if (!_root.f3.sound) {
_root.steamSide.stop();
}
}
}
if (_root.gravityType == "reverse") {
if (!Key.isDown(39)) {
_visible = false;
sound = false;
if (!_root.f3.sound) {
_root.steamSide.stop();
}
}
}
_x = (_root.fake._x - 30);
if (_root.gravityType == "normal") {
_y = (_root.fake._y - 14);
}
if (_root.gravityType == "reverse") {
_y = (_root.fake._y + 10);
}
}
Instance of Symbol 626 MovieClip in Frame 34
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.detail("switch6");
}
if (_root.details.switch6) {
this.light.gotoAndStop(2);
}
}
Instance of Symbol 640 MovieClip in Frame 34
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 640 MovieClip in Frame 34
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
onClipEvent (enterFrame) {
if (_root.details.switch6) {
_x = (_x - 5);
}
}
Instance of Symbol 886 MovieClip in Frame 34
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.details.switch6) {
_visible = true;
}
}
Instance of Symbol 749 MovieClip in Frame 34
onClipEvent (load) {
time = 50;
}
Instance of Symbol 470 MovieClip "car" in Frame 34
onClipEvent (load) {
function getAngle() {
if (dead) {
return(undefined);
}
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle + 180;
}
}
if (!flipSide) {
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
}
}
dead = false;
flipSide = false;
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (dead) {
return(undefined);
}
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 10;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 10;
if ((Angle <= 0) and (Angle > -20)) {
flipSide = false;
}
}
}
}
Instance of Symbol 946 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 946 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 946 MovieClip in Frame 35
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 749 MovieClip in Frame 35
onClipEvent (load) {
time = 150;
}
Instance of Symbol 470 MovieClip "car" in Frame 35
onClipEvent (load) {
function getAngle() {
if (dead) {
return(undefined);
}
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle + 180;
}
}
if (!flipSide) {
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
}
}
dead = false;
flipSide = false;
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (dead) {
return(undefined);
}
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 10;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 10;
if ((Angle <= 0) and (Angle > -20)) {
flipSide = false;
}
}
}
}
Instance of Symbol 626 MovieClip in Frame 36
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.detail("switch8");
}
if (_root.details.switch8) {
this.light.gotoAndStop(2);
}
}
Instance of Symbol 626 MovieClip in Frame 36
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.detail("switch7");
}
if (_root.details.switch7) {
this.light.gotoAndStop(2);
}
}
Instance of Symbol 640 MovieClip in Frame 36
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 640 MovieClip in Frame 36
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 954 MovieClip in Frame 36
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.details.switch7) {
if (_root.details.switch8) {
_visible = true;
}
}
}
Instance of Symbol 723 MovieClip in Frame 36
/* no clip actions */
Instance of Symbol 723 MovieClip in Frame 36
/* no clip actions */
Instance of Symbol 723 MovieClip in Frame 36
/* no clip actions */
Instance of Symbol 723 MovieClip in Frame 36
/* no clip actions */
Instance of Symbol 470 MovieClip "car" in Frame 36
onClipEvent (load) {
function getAngle() {
if (dead) {
return(undefined);
}
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle + 180;
}
}
}
if (!flipSide) {
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
}
dead = false;
flipSide = false;
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (dead) {
return(undefined);
}
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 10;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 10;
if ((Angle <= 0) and (Angle > -20)) {
flipSide = false;
}
}
}
}
Instance of Symbol 932 MovieClip in Frame 37
onClipEvent (enterFrame) {
if (_root.car.hitTest(this)) {
play();
_root.car.ySpeed = -15;
}
}
Instance of Symbol 932 MovieClip in Frame 37
onClipEvent (enterFrame) {
if (_root.car.hitTest(this)) {
play();
_root.car.ySpeed = -15;
}
}
Instance of Symbol 470 MovieClip "car" in Frame 37
onClipEvent (load) {
function getAngle() {
if (dead) {
return(undefined);
}
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle + 180;
}
}
if (!flipSide) {
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
}
}
dead = false;
flipSide = false;
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (dead) {
return(undefined);
}
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 10;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 10;
if ((Angle <= 0) and (Angle > -20)) {
flipSide = false;
}
}
}
}
Instance of Symbol 626 MovieClip in Frame 38
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.detail("switch9");
}
if (_root.details.switch9) {
this.light.gotoAndStop(2);
}
}
Instance of Symbol 723 MovieClip in Frame 38
/* no clip actions */
Instance of Symbol 723 MovieClip in Frame 38
/* no clip actions */
Instance of Symbol 886 MovieClip in Frame 38
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.details.switch9) {
_visible = true;
}
}
Instance of Symbol 470 MovieClip "car" in Frame 38
onClipEvent (load) {
function getAngle() {
if (dead) {
return(undefined);
}
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle + 180;
}
}
if (!flipSide) {
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
}
}
dead = false;
flipSide = false;
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (dead) {
return(undefined);
}
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 10;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 10;
if ((Angle <= 0) and (Angle > -20)) {
flipSide = false;
}
}
}
}
Instance of Symbol 640 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 640 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 749 MovieClip in Frame 39
onClipEvent (load) {
time = 130;
}
Instance of Symbol 470 MovieClip "car" in Frame 39
onClipEvent (load) {
function getAngle() {
if (dead) {
return(undefined);
}
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle + 180;
}
}
if (!flipSide) {
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
}
}
dead = false;
flipSide = false;
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (dead) {
return(undefined);
}
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 10;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 10;
if ((Angle <= 0) and (Angle > -20)) {
flipSide = false;
}
}
}
}
Instance of Symbol 749 MovieClip in Frame 40
onClipEvent (load) {
time = 300;
}
Instance of Symbol 981 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 470 MovieClip "car" in Frame 40
onClipEvent (load) {
function getAngle() {
if (dead) {
return(undefined);
}
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle + 180;
}
}
if (!flipSide) {
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
}
}
dead = false;
flipSide = false;
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (dead) {
return(undefined);
}
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 10;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 10;
if ((Angle <= 0) and (Angle > -20)) {
flipSide = false;
}
}
}
}
Instance of Symbol 470 MovieClip "car" in Frame 41
onClipEvent (load) {
function getAngle() {
if (dead) {
return(undefined);
}
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle + 180;
}
}
if (!flipSide) {
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
}
}
dead = false;
flipSide = false;
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (dead) {
return(undefined);
}
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 10;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 10;
if ((Angle <= 0) and (Angle > -20)) {
flipSide = false;
}
}
}
}
Instance of Symbol 749 MovieClip in Frame 42
onClipEvent (load) {
time = 30;
}
Instance of Symbol 470 MovieClip "car" in Frame 42
onClipEvent (load) {
function getAngle() {
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle + 180;
}
}
if (!flipSide) {
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
}
}
flipSide = false;
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 10;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 10;
if ((Angle <= 0) and (Angle > -20)) {
flipSide = false;
}
}
}
}
Instance of Symbol 626 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.detail("switch10");
}
if (_root.details.switch10) {
this.light.gotoAndStop(2);
}
}
Instance of Symbol 626 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.detail("switch11");
}
if (_root.details.switch11) {
this.light.gotoAndStop(2);
}
}
Instance of Symbol 893 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
if (_root.paused) {
stop();
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 893 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
if (_root.paused) {
stop();
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 886 MovieClip in Frame 43
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.details.switch10) {
if (_root.details.switch11) {
_visible = true;
}
}
}
Instance of Symbol 470 MovieClip "car" in Frame 43
onClipEvent (load) {
function getAngle() {
if (dead) {
return(undefined);
}
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle + 180;
}
}
if (!flipSide) {
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
}
}
dead = false;
flipSide = false;
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (dead) {
return(undefined);
}
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 10;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 10;
if ((Angle <= 0) and (Angle > -20)) {
flipSide = false;
}
}
}
}
Frame 44
stop();
level = 31;
Instance of Symbol 470 MovieClip "car" in Frame 44
onClipEvent (load) {
function getAngle() {
if (dead) {
return(undefined);
}
if (InAirCauseJet) {
if (_root.gravityType == "normal") {
Angle = 0;
}
if (_root.gravityType == "reverse") {
Angle = 180;
}
return(undefined);
}
yDis = _root.carp2._y - _root.carp1._y;
deltaX = _root.carp1._x - _root.carp2._x;
deltaY = _root.carp1._y - _root.carp2._y;
angle = -Math.atan2(deltaX, deltaY);
if (_root.carp1.onfloor) {
if (_root.carp2.onfloor) {
Angle = Math.round((angle * 180) / Math.PI) - 90;
if (_root.gravityType == "reverse") {
Angle = Angle + 180;
}
}
if (!flipSide) {
if (!jet) {
if (!onfloor) {
if (!_root.carp1.onfloor) {
if (!_root.carp2.onfloor) {
if (xSpeed >= 0) {
Angle = Angle + 2;
}
if (xSpeed < 0) {
Angle = Angle - 2;
}
}
}
}
}
}
}
}
dead = false;
flipSide = false;
InAirCauseJet = false;
_visible = false;
jet = false;
xAccel = 0.8;
gravity = 0.5;
xSpeed = 0;
ySpeed = 0;
maxX = 10;
maxY = 10;
Angle = 0;
}
onClipEvent (enterFrame) {
if (dead) {
return(undefined);
}
if (_root.paused) {
return(undefined);
}
getAngle();
if (Key.isDown(39)) {
xSpeed = xSpeed + xAccel;
} else if (Key.isDown(37)) {
xSpeed = xSpeed - xAccel;
} else {
xSpeed = xSpeed * 0.9;
}
if (Key.isDown(38)) {
if (_root.fuel > 0) {
jet = true;
InAirCauseJet = true;
_root.fuel--;
}
} else {
jet = false;
}
if (_root.fuel <= 0) {
jet = false;
}
if (xSpeed > maxX) {
xSpeed = maxX;
}
if (xSpeed < (-maxX)) {
xSpeed = -maxX;
}
_x = (_x + xSpeed);
if (_root.gravityType == "normal") {
_y = (_y + ySpeed);
} else {
_y = (_y - ySpeed);
}
if (jet) {
ySpeed = ySpeed - 1;
}
while (_root.bg.hitTest(_x, _y, true)) {
_y = (_y-1);
InAirCauseJet = false;
if (_root.gravityType == "reverse") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x, _y - _height, true)) {
_y = (_y+1);
if (_root.gravityType == "normal") {
if (ySpeed < 0) {
ySpeed++;
}
}
InAirCauseJet = false;
}
while (_root.bg.hitTest(_x + (_width / 2), _y - 20, true)) {
_x = (_x-1);
if (xSpeed > 0) {
xSpeed--;
}
}
while (_root.bg.hitTest(_x - (_width / 2), _y - 20, true)) {
_x = (_x+1);
if (xSpeed < 0) {
xSpeed++;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (_root.bg.hitTest(_x, (_y - _height) - 1, true)) {
onfloor = true;
flipSide = false;
if (!jet) {
if (!flipSide) {
ySpeed = 0;
}
}
} else {
onfloor = false;
}
}
if (!onfloor) {
ySpeed = ySpeed + gravity;
}
if (flipSide) {
if (dir == "reverse") {
Angle = Angle + 10;
if (Angle > 164) {
flipSide = false;
}
}
if (dir == "normal") {
Angle = Angle - 10;
if ((Angle <= 0) and (Angle > -20)) {
flipSide = false;
}
}
}
}
Instance of Symbol 1036 MovieClip "boss" in Frame 44
onClipEvent (load) {
function changeDir() {
dir = random(2);
if (dir == 0) {
dir = "left";
}
if (dir == 1) {
dir = "right";
}
}
function bomb() {
if (_root.paused) {
return(undefined);
}
if (health <= 0) {
return(undefined);
}
dir = "wait";
type = "bomb3";
c = random(3);
if (c == 0) {
i = 0;
while (i < (random(4) + 2)) {
var _local2 = type + i;
_root.depthHolder++;
_root.attachMovie(type, _local2, random(100000));
_root[_local2]._x = _x;
_root[_local2]._y = _y + 50;
i++;
}
}
if ((c == 1) or (c == 2)) {
timeB = true;
}
}
if (_root.sound) {
begin = new Sound(this);
begin.attachSound("fboss1");
begin.start();
ufoS = new Sound(this);
ufoS.attachSound("ufo");
ufoS.start(0, 9999);
explode1 = new Sound(this);
explode1.attachSound("explode2");
explode = new Sound(this);
explode.attachSound("explode1");
}
health = 100;
damage = false;
speed = 4;
delay = 7500;
resetTime = getTimer() + delay;
time = 0;
t = 0;
changeDir();
i = 1;
_root.boss = this;
timeB = false;
bombs = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
if (timeB) {
time++;
if (time > 3) {
var b = (type + _root.depthHolder);
_root.depthHolder++;
_root.attachMovie(type, b, random(100000));
_root[b]._x = _x;
_root[b]._y = _y + 50;
if (c == 1) {
_root[b].type = "slow";
}
if (c == 2) {
_root[b].type = "homing";
}
time = 0;
bombs++;
}
if (c == 1) {
m = 10;
}
if (c == 2) {
m = 15;
}
if (bombs > m) {
bombs = 0;
timeB = false;
changeDir();
time = 0;
}
}
if (getTimer() > resetTime) {
changeDir();
resetTime = getTimer() + delay;
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
if (_x > 500) {
dir = "left";
}
if (_x < 100) {
dir = "right";
}
time++;
if (time > 200) {
bomb();
time = 0;
}
if (!damage) {
if (this.box.hitTest(_root.car)) {
_root.cSound();
damage = true;
health = health - 20;
_root.car.ySpeed = (-_root.car.ySpeed) * 0.3;
_root.gravity("reverse");
}
}
if (damage) {
_alpha = (random(100) + 10);
t++;
if (t > 20) {
t = 0;
_alpha = 100;
damage = false;
}
}
if (_root.car.dead) {
ufoS.stop();
}
}
Frame 45
_root.timer.removeMovieClip();
Frame 46
_root.fuelCollect = false;
_root.fuelFade = false;
_root.starCollect = false;
_root.details.tutswitch = false;
_root.tutorialDone = false;
_root.details.switch1 = false;
_root.details.switch2 = false;
_root.details.switch3 = false;
_root.details.switch4 = false;
_root.details.switch5 = false;
_root.details.switch6 = false;
_root.details.switch7 = false;
_root.details.switch8 = false;
_root.details.switch9 = false;
_root.details.switch10 = false;
_root.details.switch11 = false;
_root.details.switch12 = false;
_root.details.spikes = false;
_root.gravityType = "normal";
_root.steamSide.stop();
_root.steam.stop();
_root.steamSideB.stop();
Frame 47
_root.gotoAndStop(_root.level + _root.engineFrame);
Symbol 23 MovieClip [Mball] Frame 1
if (rot == undefined) {
rot = random(40);
}
_x = (_x + random(10));
_y = (_y - random(10));
_rotation = (_rotation + rot);
_alpha = (_alpha - 10);
if (_alpha < 0) {
this.removeMovieClip();
}
Symbol 23 MovieClip [Mball] Frame 2
gotoAndPlay (1);
Symbol 42 MovieClip Frame 19
stop();
Symbol 55 MovieClip Frame 20
stop();
_parent.removeMovieClip();
Symbol 56 MovieClip [bomb] Frame 1
stop();
time = 0;
g = 0.5;
v = 0;
b = new Sound(this);
b.attachSound("bomb");
if (_root.sound) {
b.start();
}
this.onEnterFrame = function () {
if (_root.paused) {
return(undefined);
}
time++;
v = v - g;
_y = (_y - v);
if (_root.bg.hitTest(_x, _y + 10, true)) {
delete onEnterFrame;
gotoAndStop (2);
}
if (time > 10) {
if (_root.boss.health > 0) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
}
if (!(_root.level === 5)) {
this.removeMovieClip();
}
if (_root.car.dead) {
this.removeMovieClip();
}
};
Symbol 56 MovieClip [bomb] Frame 2
stop();
explosion = new Sound(this);
explosion.attachSound("explosion");
explosion.setVolume(60);
if (_root.sound) {
explosion.start();
}
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 2
stop();
Symbol 62 MovieClip [fuel] Frame 1
stop();
g = 0.5;
v = 0;
this.onEnterFrame = function () {
if (_root.paused) {
return(undefined);
}
v = v - g;
_y = (_y - v);
if (_root.bg.hitTest(_x, _y + 10, true)) {
g = undefined;
}
if (_root.car.hitTest(_x, _y, true)) {
delete onEnterFrame;
gotoAndStop (2);
}
if ((!(_root.level === 5)) and (!(_root.level === 11))) {
this.removeMovieClip();
}
if (_root.car.dead) {
this.removeMovieClip();
}
};
Symbol 62 MovieClip [fuel] Frame 2
stop();
_root.HUD.bar.unlimited = true;
_root.HUD.bar.duration = 80;
_root.sfx.play();
if (_root.sound) {
_root.swallow.start();
}
Instance of Symbol 61 MovieClip in Symbol 62 MovieClip [fuel] Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 62 MovieClip [fuel] Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -10;
yb = 10;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 62 MovieClip [fuel] Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 62 MovieClip [fuel] Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 62 MovieClip [fuel] Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -10;
yb = 10;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 62 MovieClip [fuel] Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -10;
yb = 10;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Symbol 64 MovieClip [Tp1] 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;
Symbol 64 MovieClip [Tp1] Frame 2
if (_root.paused) {
return(undefined);
}
gravity = _root.car.gravity;
_x = ((parent._x - (parent._width / 2)) + 10);
if (_root.car.jet) {
onfloor = true;
yvel = 0;
yknown = undefined;
_y = _root.car._y;
return(undefined);
}
if (_root.gravityType == "normal") {
_y = (_y + yvel);
}
if (_root.gravityType == "reverse") {
_y = (_y - yvel);
}
if (!_root.bg.hitTest(_x, _y + 1, true)) {
yvel = yvel + gravity;
}
if (_root.gravityType == "normal") {
while (_root.bg.hitTest(_x, _y + 1, true)) {
this._y = this._y - 1;
onfloor = true;
yvel = 0;
yknown = undefined;
}
}
if (_root.gravityType == "reverse") {
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y = this._y + 1;
onfloor = true;
yvel = 0;
yknown = undefined;
}
}
if (_root.gravityType == "normal") {
if (!_root.bg.hitTest(_x, _y + 5, true)) {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (!_root.bg.hitTest(_x, _y - 10, true)) {
onfloor = false;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 5, true)) {
hitBg = true;
} else {
hitBg = false;
}
}
if (distance > 80) {
if (_root.carp1.onfloor) {
if (yknown == undefined) {
yknown = 1;
}
if (!_root.bg.hitTest(_x, _y + 1, true)) {
_y = _root.car._y;
}
}
}
if (_root.gravityType == "normal") {
if (distance > 200) {
if (!_root.bg.hitTest(_x, _y + 1, true)) {
_y = _root.car._y;
}
}
}
if (_root.gravityType == "reverse") {
if (distance < -200) {
if (!_root.bg.hitTest(_x, _y - 10, true)) {
_y = _root.car._y;
}
}
}
distance = _y - _root.car._y;
if (_root.gravityType == "normal") {
if (_y < _root.car._y) {
_y = _root.car._y;
}
}
if (_root.gravityType == "reverse") {
if (_y > _root.car._y) {
_y = _root.car._y;
}
}
Symbol 64 MovieClip [Tp1] Frame 3
gotoAndPlay (2);
Symbol 65 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 65 MovieClip [p1] Frame 2
if (_root.paused) {
return(undefined);
}
gravity = _root.car.gravity;
_x = ((parent._x - (parent._width / 2)) + 10);
if (_root.car.jet) {
onfloor = true;
yvel = 0;
yknown = undefined;
_y = _root.car._y;
return(undefined);
}
if (_root.gravityType == "normal") {
_y = (_y + yvel);
}
if (_root.gravityType == "reverse") {
_y = (_y - yvel);
}
if (!_root.bg.hitTest(_x, _y + 1, true)) {
yvel = yvel + gravity;
}
if (_root.gravityType == "normal") {
while (_root.bg.hitTest(_x, _y + 1, true)) {
this._y = this._y - 1;
onfloor = true;
yvel = 0;
yknown = undefined;
}
}
if (_root.gravityType == "reverse") {
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y = this._y + 1;
onfloor = true;
yvel = 0;
yknown = undefined;
}
}
if (_root.gravityType == "normal") {
if (!_root.bg.hitTest(_x, _y + 5, true)) {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (!_root.bg.hitTest(_x, _y - 10, true)) {
onfloor = false;
}
}
if (_root.gravityType == "normal") {
if (_root.bg.hitTest(_x, _y + 5, true)) {
hitBg = true;
} else {
hitBg = false;
}
}
if (distance > 80) {
if (_root.carp1.onfloor) {
if (yknown == undefined) {
yknown = 1;
}
if (!_root.bg.hitTest(_x, _y + 1, true)) {
_y = _root.car._y;
}
}
}
if (_root.gravityType == "normal") {
if (distance > 200) {
if (!_root.bg.hitTest(_x, _y + 1, true)) {
_y = _root.car._y;
}
}
}
if (_root.gravityType == "reverse") {
if (distance < -200) {
if (!_root.bg.hitTest(_x, _y - 10, true)) {
_y = _root.car._y;
}
}
}
distance = _y - _root.car._y;
if (_root.gravityType == "normal") {
if (_y < _root.car._y) {
_y = _root.car._y;
}
}
if (_root.gravityType == "reverse") {
if (_y > _root.car._y) {
_y = _root.car._y;
}
}
Symbol 65 MovieClip [p1] Frame 3
gotoAndPlay (2);
Symbol 67 MovieClip [Tp2] 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;
Symbol 67 MovieClip [Tp2] Frame 2
if (_root.paused) {
return(undefined);
}
gravity = _root.car.gravity;
_x = ((parent._x + (parent._width / 2)) - 15);
if (_root.car.jet) {
onfloor = true;
yvel = 0;
yknown = undefined;
_y = _root.car._y;
return(undefined);
}
if (_root.gravityType == "normal") {
_y = (_y + yvel);
}
if (_root.gravityType == "reverse") {
_y = (_y - yvel);
}
if (!_root.bg.hitTest(_x, _y + 1, true)) {
yvel = yvel + gravity;
}
if (_root.gravityType == "normal") {
while (_root.bg.hitTest(_x, _y + 1, true)) {
this._y = this._y - 1;
onfloor = true;
yvel = 0;
yknown = undefined;
}
}
if (_root.gravityType == "reverse") {
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y = this._y + 1;
onfloor = true;
yvel = 0;
yknown = undefined;
}
}
if (_root.gravityType == "normal") {
if (!_root.bg.hitTest(_x, _y + 5, true)) {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (!_root.bg.hitTest(_x, _y - 10, true)) {
onfloor = false;
}
}
if (_root.gravityType == "normal") {
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 (_root.gravityType == "normal") {
if (distance > 200) {
if (!_root.bg.hitTest(_x, _y + 1, true)) {
_y = _root.car._y;
}
}
}
if (_root.gravityType == "reverse") {
if (distance < -200) {
if (!_root.bg.hitTest(_x, _y - 10, true)) {
_y = _root.car._y;
}
}
}
distance = _y - _root.car._y;
if (_root.gravityType == "normal") {
if (_y < _root.car._y) {
_y = _root.car._y;
}
}
if (_root.gravityType == "reverse") {
if (_y > _root.car._y) {
_y = _root.car._y;
}
}
Symbol 67 MovieClip [Tp2] Frame 3
gotoAndPlay (2);
Symbol 68 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 68 MovieClip [p2] Frame 2
if (_root.paused) {
return(undefined);
}
gravity = _root.car.gravity;
_x = ((parent._x + (parent._width / 2)) - 15);
if (_root.car.jet) {
onfloor = true;
yvel = 0;
yknown = undefined;
_y = _root.car._y;
return(undefined);
}
if (_root.gravityType == "normal") {
_y = (_y + yvel);
}
if (_root.gravityType == "reverse") {
_y = (_y - yvel);
}
if (!_root.bg.hitTest(_x, _y + 1, true)) {
yvel = yvel + gravity;
}
if (_root.gravityType == "normal") {
while (_root.bg.hitTest(_x, _y + 1, true)) {
this._y = this._y - 1;
onfloor = true;
yvel = 0;
yknown = undefined;
}
}
if (_root.gravityType == "reverse") {
while (_root.bg.hitTest(_x, _y - 5, true)) {
this._y = this._y + 1;
onfloor = true;
yvel = 0;
yknown = undefined;
}
}
if (_root.gravityType == "normal") {
if (!_root.bg.hitTest(_x, _y + 5, true)) {
onfloor = false;
}
}
if (_root.gravityType == "reverse") {
if (!_root.bg.hitTest(_x, _y - 10, true)) {
onfloor = false;
}
}
if (_root.gravityType == "normal") {
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 (_root.gravityType == "normal") {
if (distance > 200) {
if (!_root.bg.hitTest(_x, _y + 1, true)) {
_y = _root.car._y;
}
}
}
if (_root.gravityType == "reverse") {
if (distance < -200) {
if (!_root.bg.hitTest(_x, _y - 10, true)) {
_y = _root.car._y;
}
}
}
distance = _y - _root.car._y;
if (_root.gravityType == "normal") {
if (_y < _root.car._y) {
_y = _root.car._y;
}
}
if (_root.gravityType == "reverse") {
if (_y > _root.car._y) {
_y = _root.car._y;
}
}
Symbol 68 MovieClip [p2] Frame 3
gotoAndPlay (2);
Symbol 70 MovieClip [bomb2] Frame 1
stop();
g = 0.5;
v = -15;
x1 = -10;
y1 = 10;
time = 0;
x = Math.round(Math.random() * (y1 - x1)) + x1;
this.onEnterFrame = function () {
if (_root.paused) {
return(undefined);
}
v = v - g;
if (!_root.bg.hitTest(_x, _y, true)) {
if (time <= 2) {
_y = (_y - v);
}
}
_x = (_x + x);
x = x * 0.99;
_rotation = (_rotation + (x * 2));
if (_root.bg.hitTest(_x, _y + 10, true)) {
v = -(v * 0.7);
time++;
}
if (_root.bg.hitTest(_x - (_width / 2), _y, true)) {
_x = (_x+1);
x = -x;
}
if (_root.bg.hitTest(_x + (_width / 2), _y, true)) {
_x = (_x-1);
x = -x;
}
if (this.hitTest(_root.car)) {
_root.kill();
}
if (time > 2) {
_rotation = 0;
gotoAndStop (2);
}
if (!(_root.level === 11)) {
this.removeMovieClip();
}
if (_root.car.dead) {
this.removeMovieClip();
}
};
Symbol 70 MovieClip [bomb2] Frame 2
_rotation = 0;
stop();
explosion = new Sound();
explosion.attachSound("explosion");
if (_root.sound) {
explosion.start();
}
Symbol 73 MovieClip Frame 1
stop();
Symbol 74 MovieClip [ball] Frame 1
if (_root.car.xSpeed > 0) {
_x = (_root.fake._x - 40);
}
if (_root.car.xSpeed < 0) {
_x = (_root.fake._x + 40);
}
if (rot == undefined) {
rot = random(40);
}
if (Math.round(_root.car.xSpeed) == 0) {
this.removeMovieClip();
}
Instance of Symbol 73 MovieClip in Symbol 74 MovieClip [ball] Frame 1
onClipEvent (load) {
if (_root.car.jet) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 74 MovieClip [ball] Frame 2
if (_root.car.xSpeed > 0) {
_x = (_x - random(10));
}
if (_root.car.xSpeed < 0) {
_x = (_x + random(10));
}
_y = (_y - random(10));
_rotation = (_rotation + rot);
_alpha = (_alpha - 10);
if (_alpha < 0) {
this.removeMovieClip();
}
if (_root.car.dead) {
this.removeMovieClip();
}
Symbol 74 MovieClip [ball] Frame 3
gotoAndPlay (2);
Symbol 79 MovieClip [bomb3] Frame 1
x = 100;
y = 150;
xb = -6;
yb = 6;
_xscale = (Math.round(Math.random() * (y - x)) + x);
_yscale = _xscale;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
if (!(type === "slow")) {
if (!(type === "homing")) {
if (_root.sound) {
sound = new Sound(this);
sound.attachSound("bigball");
sound.setVolume(60);
sound.start();
}
}
speed = random(4) + 2;
} else {
if (_root.sound) {
sound = new Sound(this);
sound.attachSound("energyballs");
sound.setVolume(60);
sound.start();
}
speed = 2;
}
time = random(60);
m = random(20);
if (type == "homing") {
if (_root.sound) {
sound = new Sound(this);
sound.attachSound("energyballs");
sound.setVolume(60);
sound.start();
}
lol = random(2);
if (lol == 0) {
this.removeMovieClip();
}
shotSpeed = 5;
deltaX = _x - _root.car._x;
deltaY = _y - _root.car._y;
angle = -Math.atan2(deltaX, deltaY);
ySpeed = shotSpeed * Math.cos(angle);
xSpeed = shotSpeed * Math.sin(angle);
}
Symbol 79 MovieClip [bomb3] Frame 2
if (_root.paused) {
return(undefined);
}
if (_alpha < 0) {
this.removeMovieClip();
}
if (!(type === "slow")) {
dis = Math.ceil(this._x - _root.car._x) / (random(100) + 2000);
} else {
dis = Math.ceil(this._x - _root.car._x) / 600;
}
if (!(type === "homing")) {
_y = (_y - speed);
_x = (_x + xspeed);
xspeed = xspeed - dis;
}
time++;
if (time > 120) {
if (_root.boss.dir == "wait") {
_root.boss.changeDir();
}
if (_alpha > 0) {
_alpha = (_alpha - 8);
}
}
if (this.hitTest(_root.car)) {
if (_root.boss.health > 0) {
_root.kill();
}
}
if (_y < 0) {
this.removeMovieClip();
}
if (_root.car.dead) {
time = 125;
}
if (type == "homing") {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
}
Symbol 79 MovieClip [bomb3] Frame 3
gotoAndPlay (2);
Symbol 105 MovieClip Frame 11
_parent.gotoAndStop(2);
Symbol 114 MovieClip Frame 1
this.onEnterFrame = function () {
bytesloaded = Math.round(_root.getBytesLoaded());
bytestotal = Math.round(_root.getBytesTotal());
percent = bytesloaded / bytestotal;
barmask._xscale = percent * 100;
};
Symbol 146 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 146 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 157 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 157 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 165 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 165 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 173 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 173 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 181 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 181 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 189 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 189 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 197 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 197 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 205 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 205 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 212 MovieClip Frame 133
_root.play();
Symbol 213 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 229 MovieClip Frame 104
_root.createEmptyMovieClip("menumusic", 5000);
mozart = new Sound(_root.menumusic);
mozart.attachSound("mozart");
mozart.start(0, 999);
_root.play();
Symbol 236 MovieClip Frame 101
_root.sound = true;
_root.play();
Symbol 247 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (_rotation + (_root.car.xSpeed * 2));
};
Symbol 259 MovieClip Frame 1
stop();
Symbol 264 MovieClip Frame 1
stop();
Symbol 264 MovieClip Frame 2
stop();
Symbol 271 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 10
stop();
Symbol 274 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 12
_root.gotoAndStop(_root.where);
Symbol 280 MovieClip Frame 20
stop();
Symbol 292 Button
on (press) {
if (_root.pword.text == "extra") {
_root.extra = true;
_root.menuChange("carSelection");
_root.cheat = true;
}
if (_root.pword.text == "skate") {
_root.detail("skate");
_root.menuChange("carSelection");
}
}
Symbol 318 Button
on (press) {
_root.changeSelection(1);
}
Symbol 324 Button
on (press) {
_root.changeSelection(2);
}
Symbol 329 Button
on (press) {
_root.changeSelection(3);
}
Symbol 337 Button
on (press) {
_root.changeSelection(4);
}
Symbol 342 Button
on (press) {
_root.changeSelection(5);
}
Symbol 347 Button
on (press) {
_root.changeSelection(6);
}
Symbol 354 Button
on (press) {
_root.changeSelection(7);
}
Symbol 359 Button
on (press) {
_root.changeSelection(8);
}
Symbol 365 Button
on (press) {
_root.changeSelection(9);
}
Symbol 367 Button
on (press) {
if (!(_root.carS._currentframe === 1)) {
loadVariablesNum ("http://gamefilez.mofunzone.com/game_scores/rocket_car_2/mfz2.php", 0);
_root.menuM.stop();
_root.MenuFade.gotoAndPlay(2);
if (_root.extra) {
_root.gotoAndStop("extra");
}
if (!_root.extra) {
_root.where = "tutorial";
}
}
}
Symbol 371 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (_rotation + (_root.car.xSpeed * 2));
};
Symbol 423 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (_rotation + (_root.car.xSpeed * 2));
};
Symbol 426 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
gotoAndStop(_root.num);
};
Symbol 426 MovieClip Frame 2
stop();
Symbol 426 MovieClip Frame 3
stop();
Symbol 426 MovieClip Frame 4
stop();
Symbol 426 MovieClip Frame 5
stop();
Symbol 426 MovieClip Frame 6
stop();
Symbol 426 MovieClip Frame 7
stop();
Symbol 426 MovieClip Frame 8
stop();
Symbol 426 MovieClip Frame 9
stop();
Symbol 426 MovieClip Frame 10
stop();
Symbol 427 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 2
if (_root.sound) {
begin = new Sound(this);
begin.attachSound("fboss1");
begin.setVolume(70);
begin.start();
}
Symbol 427 MovieClip Frame 11
stop();
Symbol 435 MovieClip Frame 1380
stop();
Symbol 440 MovieClip Frame 1
stop();
_alpha = 0;
this.onEnterFrame = function () {
if (_alpha < 101) {
if (_root.fuelFade) {
_alpha = (_alpha + 10);
}
}
if (_root.car.hitTest(_x, _y, true)) {
if (_root.fuelFade) {
if (_alpha >= 100) {
this.gotoAndStop(2);
}
}
}
};
Symbol 440 MovieClip Frame 2
stop();
_root.fuel = _root.fuel + 10;
_root.fC++;
if (_root.fC >= 3) {
_root.fuelCollect = true;
}
if (_root.sound) {
_root.fuelS.start();
}
Instance of Symbol 61 MovieClip in Symbol 440 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 440 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 440 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 440 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 440 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 440 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Symbol 465 MovieClip Frame 2
explosion = new Sound(this);
explosion.attachSound("rocketdeath");
explosion.setVolume(70);
if (_root.sound) {
explosion.start();
}
Symbol 465 MovieClip Frame 30
_root.reset = true;
_root.resetLvl();
stop();
Symbol 466 MovieClip Frame 1
stop();
Symbol 466 MovieClip Frame 2
stop();
Symbol 486 MovieClip Frame 15
stop();
Symbol 488 MovieClip Frame 38
_root.fadeR();
stop();
Symbol 490 MovieClip Frame 16
stop();
Symbol 495 MovieClip Frame 38
_root.fade.gotoAndStop(1);
Symbol 496 MovieClip Frame 43
stop();
Symbol 507 MovieClip Frame 19
if (this._name == "lol") {
_root.fadeR();
}
Symbol 507 MovieClip Frame 36
_root.fade.gotoAndStop(1);
Symbol 510 MovieClip Frame 16
if (this._name == "lol") {
_root.fadeR();
}
Symbol 510 MovieClip Frame 34
_root.fade.gotoAndStop(1);
Symbol 511 MovieClip Frame 19
_root.fadeR();
Symbol 511 MovieClip Frame 37
_root.fade.gotoAndStop(1);
Symbol 512 MovieClip Frame 1
stop();
Symbol 512 MovieClip Frame 2
stop();
m = random(4);
if (m == 0) {
gotoAndStop (2);
}
if (m == 1) {
gotoAndStop (3);
}
if (m == 2) {
gotoAndStop (4);
}
if (m == 3) {
gotoAndStop (5);
}
if (_root.sound) {
trans = new Sound(this);
trans.attachSound("trans");
trans.setVolume(60);
trans.start();
}
Symbol 512 MovieClip Frame 3
stop();
if (_root.sound) {
trans = new Sound(this);
trans.attachSound("trans");
trans.setVolume(60);
trans.start();
}
Symbol 512 MovieClip Frame 4
stop();
if (_root.sound) {
trans = new Sound(this);
trans.attachSound("trans");
trans.setVolume(60);
trans.start();
}
Symbol 512 MovieClip Frame 5
stop();
if (_root.sound) {
trans = new Sound(this);
trans.attachSound("trans");
trans.setVolume(60);
trans.start();
}
Symbol 546 MovieClip Frame 41
stop();
Symbol 561 MovieClip Frame 21
stop();
Symbol 575 MovieClip Frame 115
if (_root.paused) {
gotoAndPlay(_currentframe + 1);
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 575 MovieClip Frame 133
if (!_root.paused) {
gotoAndPlay(_currentframe + 1);
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 575 MovieClip Frame 176
r = false;
l = false;
Symbol 575 MovieClip Frame 177
if (_root.paused) {
return(undefined);
}
if (Key.isDown(39)) {
r = true;
}
if (Key.isDown(37)) {
l = true;
}
Symbol 575 MovieClip Frame 178
if (r and l) {
gotoAndPlay(_currentframe + 1);
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 575 MovieClip Frame 195
_root.fuelFade = true;
Symbol 575 MovieClip Frame 196
if (_root.fuelCollect) {
gotoAndPlay(_currentframe + 1);
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 575 MovieClip Frame 218
if (_root.fuel <= 0) {
gotoAndPlay(_currentframe + 1);
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 575 MovieClip Frame 459
if (!_root.paused) {
_root.nextFrame();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 575 MovieClip Frame 479
if (_root.starCollect) {
gotoAndPlay(_currentframe + 1);
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 575 MovieClip Frame 709
if (!_root.paused) {
_root.nextFrame();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 575 MovieClip Frame 711
if (_root.paused) {
return(undefined);
}
if (_root.car.hitTest(_root.hotspot)) {
gotoAndPlay(_currentframe + 1);
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 575 MovieClip Frame 959
if (!_root.paused) {
_root.nextFrame();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 575 MovieClip Frame 1018
if (_root.details.tutswitch) {
gotoAndPlay(_currentframe + 1);
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 575 MovieClip Frame 1064
if (_root.tutorialDone) {
gotoAndPlay(_currentframe + 1);
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 575 MovieClip Frame 1270
_root.fade.gotoAndStop(2);
stop();
Symbol 575 MovieClip Frame 1414
_root.fade.gotoAndStop(2);
stop();
Symbol 580 MovieClip Frame 1
stop();
Symbol 581 MovieClip Frame 1
stop();
Symbol 581 MovieClip Frame 2
play();
_root.score = _root.score - 100;
if (_root.score < 0) {
_root.score = 0;
}
_root.steamSide.stop();
_root.steam.stop();
_root.steamSideB.stop();
loadVariablesNum ("http://gamefilez.mofunzone.com/game_scores/rocket_car_2/mfz.php?" + _root.score, 0);
Symbol 583 MovieClip Frame 1
stop();
Symbol 583 MovieClip Frame 2
stop();
Symbol 587 MovieClip Frame 12
stop();
Symbol 590 MovieClip Frame 14
stop();
Symbol 593 MovieClip Frame 13
stop();
Symbol 596 MovieClip Frame 18
stop();
Symbol 599 MovieClip Frame 26
stop();
Symbol 602 MovieClip Frame 37
stop();
Symbol 603 MovieClip Frame 1
stop();
Symbol 603 MovieClip Frame 11
stop();
Symbol 608 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (this.hitTest(_root.car)) {
gotoAndStop (2);
}
};
Symbol 608 MovieClip Frame 2
stop();
_root.bar.unlimited = true;
_root.bar.duration = time;
_root.sfx.play();
_root.starCollect = true;
if (_root.sound) {
_root.swallow.start();
}
Instance of Symbol 61 MovieClip in Symbol 608 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 608 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -10;
yb = 10;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 608 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 608 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 608 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -10;
yb = 10;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 608 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -10;
yb = 10;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Symbol 619 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.paused) {
return(undefined);
}
if (this.hitTest(_root.car._x, _root.car._y + 20, true)) {
_root.car._x = _root.car._x - 4;
}
};
Symbol 625 MovieClip Frame 1
stop();
Symbol 625 MovieClip Frame 2
stop();
if (_root.sound) {
_root.button.start();
}
Symbol 633 MovieClip Frame 1
onEnterFrame = function () {
if (_visible) {
if (_root.car.hitTest(_x - 10, _y, true)) {
_root.tutorialDone = true;
}
}
};
Symbol 640 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.m.hitTest(_root.car)) {
_root.kill();
}
};
Symbol 712 MovieClip Frame 1
stop();
_visible = false;
Instance of Symbol 689 MovieClip in Symbol 712 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.level);
}
Instance of Symbol 711 MovieClip in Symbol 712 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.level);
}
Symbol 712 MovieClip Frame 2
_visible = true;
Symbol 720 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.paused) {
return(undefined);
}
if (this.hitTest(_root.car._x, _root.car._y + 20, true)) {
_root.car._x = _root.car._x - 4;
}
};
Symbol 723 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (this.hitTest(_root.car)) {
gotoAndStop (2);
}
};
Symbol 723 MovieClip Frame 2
stop();
if (_root.sound) {
_root.fuelS.start();
}
_root.fuel = _root.fuel + 8;
_root.score = _root.score + 10;
Instance of Symbol 61 MovieClip in Symbol 723 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 723 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 723 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 723 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 723 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 723 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Symbol 724 MovieClip Frame 1
onEnterFrame = function () {
if (_root.car.hitTest(_x, _y, true)) {
_root.changeLvl();
}
};
Symbol 730 MovieClip Frame 1
stop();
Symbol 730 MovieClip Frame 2
stop();
Instance of Symbol 580 MovieClip "bar" in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
fFuel = _root.fuel;
unlimited = false;
time = 0;
duration = 0;
}
onClipEvent (enterFrame) {
_root.leveltxt = "level " + _root.level;
_root.scoretxt = "score " + _root.score;
if (fFuel < _root.fuel) {
fFuel++;
}
if (fFuel > (_root.fuel + 1)) {
fFuel--;
}
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
if (unlimited) {
_root.fuel = Infinity;
fFuel = Infinity;
time++;
if (time >= duration) {
time = 0;
_root.fuel = 0;
fFuel = 1;
unlimited = false;
}
}
this.gotoAndStop(fFuel);
if (unlimited) {
this.gotoAndStop(100 - ((time / duration) * 100));
}
}
Instance of Symbol 730 MovieClip in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
if (_root.sound) {
this.gotoAndStop(1);
}
if (!_root.sound) {
this.gotoAndStop(2);
}
}
on (press) {
if (_root.sound) {
this.gotoAndStop(2);
_root.sound = false;
_root.music.setVolume(0);
_root.carEngine.setVolume(0);
return(undefined);
}
if (!_root.sound) {
this.gotoAndStop(1);
_root.sound = true;
_root.music.setVolume(100);
_root.carEngine.setVolume(100);
}
}
Instance of Symbol 733 MovieClip in Symbol 735 MovieClip Frame 1
on (press) {
_root.stopSFX();
_root.resetLvl();
_root.reset = true;
}
Instance of Symbol 734 MovieClip in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
function cP() {
p = Math.round((_root.level / 30) * 100);
_xscale = p;
}
cP();
}
onClipEvent (enterFrame) {
cP();
}
Instance of Symbol 740 MovieClip in Symbol 744 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 743 MovieClip in Symbol 744 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Symbol 749 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (this.hitTest(_root.car)) {
gotoAndStop (2);
}
};
Symbol 749 MovieClip Frame 2
stop();
_root.HUD.bar.unlimited = true;
_root.HUD.bar.duration = time;
_root.sfx.play();
_root.score = _root.score + 5;
if (_root.sound) {
_root.swallow.start();
}
Instance of Symbol 61 MovieClip in Symbol 749 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 749 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -10;
yb = 10;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 749 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 749 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 749 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -10;
yb = 10;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 749 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -10;
yb = 10;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 754 MovieClip in Symbol 756 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Symbol 762 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.paused) {
return(undefined);
}
if (this.hitTest(_root.car._x, _root.car._y + 20, true)) {
_root.car._x = _root.car._x - 4;
}
};
Symbol 783 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_root.level == 5) {
gotoAndStop (1);
}
if (_root.level == 11) {
gotoAndStop (2);
}
};
Symbol 783 MovieClip Frame 2
stop();
Symbol 796 MovieClip Frame 20
stop();
_parent.removeMovieClip();
Symbol 821 MovieClip Frame 2
if (_root.sound) {
_root.boss.explode2.start();
}
Symbol 821 MovieClip Frame 3
if (_root.sound) {
_root.ufoDead.start();
}
Symbol 821 MovieClip Frame 4
if (_root.sound) {
_root.boss.explode1.start();
}
Symbol 821 MovieClip Frame 16
if (_root.sound) {
_root.boss.explode1.start();
}
Symbol 821 MovieClip Frame 21
if (_root.sound) {
_root.boss.explode1.start();
}
Symbol 821 MovieClip Frame 36
if (_root.sound) {
_root.boss.explode1.start();
}
Symbol 821 MovieClip Frame 60
if (_root.sound) {
_root.boss.explode1.start();
}
Symbol 821 MovieClip Frame 92
if (_root.sound) {
_root.boss.explode.start();
}
Symbol 821 MovieClip Frame 167
stop();
_root.boss.ufoS.stop();
_root.changeLvl();
Symbol 822 MovieClip Frame 1
stop();
Symbol 822 MovieClip Frame 2
stop();
ufo.stop();
Instance of Symbol 824 MovieClip in Symbol 826 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _root.boss.health;
if (_root.boss.health <= 0) {
_root.boss.gotoAndStop(2);
}
if (_xscale < 0) {
_xscale = 0;
}
}
Symbol 832 MovieClip Frame 1
onEnterFrame = function () {
if (_root.car.hitTest(_x, _y + 5, true)) {
_root.gravity("reverse");
}
};
Symbol 834 MovieClip Frame 1
onEnterFrame = function () {
if (_root.car.hitTest(_x, _y, true)) {
_root.changeLvl();
}
};
Instance of Symbol 841 MovieClip in Symbol 843 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Symbol 845 MovieClip Frame 1
onEnterFrame = function () {
if (_root.car.hitTest(_x, _y, true)) {
_root.gravity("normal");
}
};
Symbol 854 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.car)) {
_root.kill();
}
};
if (_root.sound) {
if (m == undefined) {
fireball = new Sound(this);
fireball.attachSound("fireball");
fireball.start();
m = 1;
}
}
Symbol 869 MovieClip Frame 1
stop();
Symbol 869 MovieClip Frame 2
stop();
Instance of Symbol 874 MovieClip in Symbol 877 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 876 MovieClip in Symbol 877 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Symbol 881 MovieClip Frame 1
stop();
Symbol 881 MovieClip Frame 2
stop();
if (_root.sound) {
_root.button.start();
}
Symbol 886 MovieClip Frame 1
onEnterFrame = function () {
if (_visible) {
if (_root.car.hitTest(_x - 10, _y, true)) {
_root.changeLvl();
}
}
};
Instance of Symbol 891 MovieClip in Symbol 892 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 891 MovieClip in Symbol 892 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Symbol 893 MovieClip Frame 1
if (_root.sound) {
fireball = new Sound(this);
fireball.attachSound("fireball");
fireball.setVolume(60);
fireball.start();
}
Symbol 897 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.paused) {
return(undefined);
}
if (this.hitTest(_root.car._x, _root.car._y + 20, true)) {
_root.car._x = _root.car._x + 4;
}
};
Symbol 906 MovieClip Frame 1
stop();
Symbol 906 MovieClip Frame 41
stop();
Symbol 907 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.paused) {
return(undefined);
}
if (this.hitTest(_root.car._x, _root.car._y + 20, true)) {
_root.car._x = _root.car._x + 4;
}
};
Instance of Symbol 904 MovieClip in Symbol 908 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 906 MovieClip in Symbol 908 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
if (_currentframe == 1) {
this.play();
}
}
}
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
if ((!(_currentframe === 1)) and (!(_currentframe === 41))) {
play();
}
}
}
Instance of Symbol 921 MovieClip in Symbol 923 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Symbol 932 MovieClip Frame 1
stop();
Symbol 932 MovieClip Frame 2
if (_root.sound) {
boing = new Sound(this);
boing.attachSound("bounce");
boing.start();
}
Instance of Symbol 928 MovieClip in Symbol 933 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 932 MovieClip in Symbol 933 MovieClip Frame 1
onClipEvent (load) {
bounce = 0;
t = 0;
hit = false;
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
if (_root.car.hitTest(this)) {
play();
bounce = bounce + 2;
_root.car.ySpeed = _root.car.ySpeed - bounce;
hit = true;
}
}
Instance of Symbol 932 MovieClip in Symbol 941 MovieClip Frame 1
onClipEvent (load) {
bounce = 0;
t = 0;
hit = false;
}
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
if (_root.car.hitTest(this)) {
play();
bounce = bounce + 2;
_root.car.ySpeed = _root.car.ySpeed - bounce;
_root.car.xSpeed = 2;
hit = true;
}
}
Instance of Symbol 640 MovieClip in Symbol 946 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 640 MovieClip in Symbol 946 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 640 MovieClip in Symbol 946 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 640 MovieClip in Symbol 946 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Symbol 950 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.paused) {
return(undefined);
}
if (this.hitTest(_root.fake)) {
_root.car._x = _root.car._x + 4;
}
};
Symbol 951 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.paused) {
return(undefined);
}
if (this.hitTest(_root.fake)) {
_root.car._x = _root.car._x - 4;
}
};
Symbol 954 MovieClip Frame 1
onEnterFrame = function () {
if (_visible) {
if (_root.car.hitTest(_x, _y, true)) {
_root.changeLvl();
}
}
};
Instance of Symbol 959 MovieClip in Symbol 960 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.car)) {
_root.kill();
}
}
Instance of Symbol 966 MovieClip in Symbol 967 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 966 MovieClip in Symbol 967 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 891 MovieClip in Symbol 967 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 891 MovieClip in Symbol 967 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 971 MovieClip in Symbol 975 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 974 MovieClip in Symbol 975 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 984 MovieClip in Symbol 988 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 985 MovieClip in Symbol 988 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 986 MovieClip in Symbol 988 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 984 MovieClip in Symbol 988 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 985 MovieClip in Symbol 988 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 986 MovieClip in Symbol 988 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 993 MovieClip in Symbol 997 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 995 MovieClip in Symbol 997 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 993 MovieClip in Symbol 997 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 995 MovieClip in Symbol 997 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 993 MovieClip in Symbol 997 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 995 MovieClip in Symbol 997 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 993 MovieClip in Symbol 997 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 995 MovieClip in Symbol 997 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
}
if (!_root.paused) {
play();
}
}
Instance of Symbol 932 MovieClip in Symbol 1002 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
return(undefined);
}
if (_root.car.hitTest(this)) {
play();
_root.car.ySpeed = -18;
}
}
Instance of Symbol 1002 MovieClip in Symbol 1004 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.paused) {
stop();
return(undefined);
}
if (!_root.paused) {
play();
}
}
Symbol 1012 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.boss.dir == "right") {
_rotation = (_rotation + _root.boss.speed);
}
if (_root.boss.dir == "left") {
_rotation = (_rotation - _root.boss.speed);
}
};
Symbol 1034 MovieClip Frame 20
stop();
_parent.removeMovieClip();
Symbol 1035 MovieClip Frame 2
if (_root.sound) {
_root.boss.explode1.start();
}
Symbol 1035 MovieClip Frame 4
if (_root.sound) {
_root.boss.explode.start();
}
if (_root.sound) {
_root.boss.explode1.start();
}
Symbol 1035 MovieClip Frame 6
if (_root.sound) {
_root.boss.explode1.start();
}
Symbol 1035 MovieClip Frame 14
if (_root.sound) {
_root.boss.explode1.start();
}
Symbol 1035 MovieClip Frame 15
if (_root.sound) {
_root.boss.explode.start();
}
Symbol 1035 MovieClip Frame 16
if (_root.sound) {
_root.boss.explode.start();
}
Symbol 1035 MovieClip Frame 24
if (_root.sound) {
_root.boss.explode.start();
}
Symbol 1035 MovieClip Frame 59
_root.fade.gotoAndStop(2);
stop();
Symbol 1036 MovieClip Frame 1
stop();
Instance of Symbol 1037 MovieClip in Symbol 1039 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _root.boss.health;
if (_root.boss.health <= 0) {
_root.boss.gotoAndStop(2);
}
if (_xscale < 0) {
_xscale = 0;
}
}
Symbol 1046 MovieClip Frame 1
stop();
Symbol 1046 MovieClip Frame 2
stop();
Symbol 1060 MovieClip Frame 12
stop();
Instance of Symbol 1046 MovieClip in Symbol 1061 MovieClip Frame 66
on (release) {
getURL ("http://www.mofunzone.com/online_games/rocket_car_2.shtml", "_blank");
}
Symbol 1061 MovieClip Frame 114
stop();