Frame 100
if (_framesloaded >= _totalframes) {
gotoAndPlay (101);
} else {
gotoAndPlay (1);
}
Frame 102
stop();
Frame 103
shipscore = "100";
hitstatus = 100;
rootSound = new Sound(_root);
rootSound.attachSound("background");
rootSound.start(0, 999);
function shipparent() {
this.rotation = 90;
this.xpos = 10;
this.ypos = 110;
this.xlration = 0;
this.rockets = 1;
this.xspeed = 0;
this.yspeed = 0;
}
function rocketparent() {
this.rotation = 0;
this.xpos = -50;
this.ypos = -50;
this.xlration = 0;
this.distancetravelled = 0;
this.xspeedship = 0;
this.yspeedship = 0;
this.xspeed = 0;
this.yspeed = 0;
}
function ltlight() {
_root.car.sidelight1.gotoAndPlay(2);
_root.car.sidelight2.gotoAndStop(1);
}
function rtlight() {
_root.car.sidelight2.gotoAndPlay(2);
_root.car.sidelight1.gotoAndStop(1);
}
function lightstop() {
_root.car.sidelight2.gotoAndStop(1);
_root.car.sidelight1.gotoAndStop(1);
}
function lightminus1_1() {
if (_root.car.sidelight1.lightlight.hitTest(_root.lightminus1) && (_root.car.sidelight2.rtlightlight.hitTest(_root.lightminus1))) {
lmflag = lmflag + 1;
if (lmflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function safearea1_1() {
if (_root.car.sidelight1.safeminus.hitTest(_root.safearea1)) {
saflag = saflag + 1;
if (saflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function rtlightminus1_1() {
if (_root.car.sidelight2.rtsafearea.hitTest(_root.lightminus1) && (_root.car.sidelight1.lightlight.hitTest(_root.lightminus1))) {
rtlmflag = rtlmflag + 1;
if (rtlmflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function rtlightminus1_2() {
if (_root.car.sidelight2.rtsafearea.hitTest(_root.safearea1)) {
rtslmflag = rtslmflag + 1;
if (rtslmflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function rtsafearea1_1() {
if (_root.car.sidelight2.rtlightlight.hitTest(_root.safearea1)) {
rtsaflag = rtsaflag + 1;
if (rtsaflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function rightturn() {
ship.rotation = ship.rotation + 1;
}
function leftturn() {
ship.rotation = ship.rotation - 1;
}
function forward() {
tellTarget (car) {
gotoAndPlay (5);
};
if (5 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function slowdown() {
if (ship.xlration >= -5) {
ship.xlration = ship.xlration - 1;
}
}
function bbreak() {
ship.xlration = 0;
}
function fastdown() {
tellTarget (car) {
gotoAndPlay (5);
};
if (10 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function stopline1_1() {
if (_root.car.hitTest(_root.stopline1)) {
ship.xlration = 0;
}
}
function stopline2_1() {
if (_root.car.hitTest(_root.stopline2)) {
ship.xlration = 0;
}
}
function sideline1() {
if (_root.car.hitTest(_root.side1)) {
flag = flag + 1;
if (flag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
flag = 0;
}
}
function sideline2() {
if (_root.car.hitTest(_root.side2)) {
flag2 = flag2 + 1;
if (flag2 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
flag2 = 0;
}
}
function centerline1() {
if (_root.car.hitTest(_root.centerline)) {
flag3_1 = flag3_1 + 1;
if (flag3_1 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
flag3_1 = 0;
}
}
function gotonextframe() {
if (_root.car.hitTest(_root.nextframe1)) {
this.gotoAndPlay("b");
_root.map.gotoAndPlay(151);
}
}
function verticalline() {
if (0 < ship.xlration) {
flag4 = 1;
}
if (_root.car.hitTest(_root.vline)) {
if (ship.xlration == 0) {
if (flag4 == 1) {
linecheck1 = 2;
flag4 = 0;
}
}
lineincheck = 1;
} else {
if ((linecheck1 != 2) && (lineincheck == 1)) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
lineincheck = 0;
linecheck1 = 0;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
if ((linecheck1 == 2) && (lineincheck == 1)) {
lineincheck = 0;
linecheck1 = 0;
}
}
if (100 < linecheck1) {
linecheck = 3;
}
}
function moveship() {
dir = car._rotation + 180;
ship.xspeed = newsin[dir] * (-ship.xlration);
ship.yspeed = newcos[dir] * ship.xlration;
ship.xpos = ship.xpos + ship.xspeed;
ship.ypos = ship.ypos + ship.yspeed;
if (ship.xpos >= 800) {
ship.xpos = 800;
} else if (0 >= ship.xpos) {
ship.xpos = 0;
}
if (ship.ypos >= 600) {
ship.ypos = 600;
} else if (0 >= ship.ypos) {
ship.ypos = 0;
}
setProperty(car, _rotation , ship.rotation);
setProperty(car, _x , ship.xpos);
setProperty(car, _y , ship.ypos);
}
function out() {
if (hitstatus < 80) {
gotoAndStop (249);
}
}
function handlertturn() {
rttmp = 100;
rot = 0;
rot = _root.handle._rotation;
if ((rot >= (-rttmp)) && (rttmp >= rot)) {
rot = rot + 5;
if (rot == (rttmp + 5)) {
rot = rttmp;
}
_root.handle._rotation = rot;
}
}
function handleltturn() {
lttmp = 100;
rot = 0;
rot = _root.handle._rotation;
if ((rot >= (-lttmp)) && (lttmp >= rot)) {
rot = rot - 5;
if (rot == (-(lttmp + 5))) {
rot = -lttmp;
}
_root.handle._rotation = rot;
}
}
function handletrue() {
if ((((ship.rotation == 90) || (ship.rotation == 0)) || (ship.rotation == -90)) || (ship.rotation == 180)) {
_root.handle._rotation = 0;
}
}
ship = new shipparent();
i = 1;
while (50 >= i) {
rocket[i] = new rocketparent();
duplicateMovieClip (rocket, "rocket" add i, i);
i++;
}
rtsaflag = 0;
rtlmflag = 0;
saflag = 0;
lmflag = 0;
statecounter = 0;
statelength = 0;
newsin = [];
newcos = [];
flag = 0;
flag2 = 0;
flag3 = 0;
flag3_1 = 0;
flag4 = 0;
lineincheck = 0;
linecheck1 = 0;
rtslmflag = 0;
i = 1;
while (360 >= i) {
newsin[i] = Math.sin((Math.PI/180) * i);
newcos[i] = Math.cos((Math.PI/180) * i);
i++;
}
Instance of Symbol 75 MovieClip "car" in Frame 103
onClipEvent (load) {
updateAfterEvent();
}
Instance of Symbol 126 MovieClip "handle" in Frame 103
onClipEvent (load) {
updateAfterEvent();
}
Frame 106
if (Key.isDown(Key.RIGHT) == true) {
rightturn();
handlertturn();
}
if (Key.isDown(Key.LEFT) == true) {
leftturn();
handleltturn();
}
if (Key.isDown(Key.UP) == true) {
forward();
}
if (Key.isDown(Key.DOWN) == true) {
slowdown();
}
if (Key.isDown(Key.SPACE) == true) {
fastdown();
}
if (Key.isDown(66) == true) {
bbreak();
}
if (Key.isDown(49) == true) {
ltlight();
}
if (Key.isDown(51) == true) {
rtlight();
}
if (Key.isDown(50) == true) {
lightstop();
}
if (0 < ship.xlration) {
ship.xlration = ship.xlration - 0.5;
}
if (ship.xlration < 0) {
ship.xlration = ship.xlration + 0.5;
}
if ((0.5 < ship.xlration) && (ship.xlration < 0.5)) {
ship.xlration = 0;
}
handletrue();
rtlightminus1_1();
safearea1_1();
lightminus1_1();
rtlightminus1_2();
sideline1();
sideline2();
verticalline();
centerline1();
gotonextframe();
moveship();
stopline1_1();
stopline2_1();
out();
Frame 107
gotoAndPlay (106);
Frame 110
function shipparent() {
this.rotation = 90;
this.xpos = 10;
this.ypos = 110;
this.xlration = 0;
this.rockets = 1;
this.xspeed = 0;
this.yspeed = 0;
}
function rocketparent() {
this.rotation = 0;
this.xpos = -50;
this.ypos = -50;
this.xlration = 0;
this.distancetravelled = 0;
this.xspeedship = 0;
this.yspeedship = 0;
this.xspeed = 0;
this.yspeed = 0;
}
function rightturn() {
ship.rotation = ship.rotation + 1;
}
function leftturn() {
ship.rotation = ship.rotation - 1;
}
function forward() {
tellTarget (car) {
gotoAndPlay (5);
};
if (5 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function slowdown() {
if (ship.xlration >= -5) {
ship.xlration = ship.xlration - 1;
}
}
function bbreak() {
ship.xlration = 0;
}
function fastdown() {
tellTarget (car) {
gotoAndPlay (5);
};
if (10 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function slowback1() {
if (_root.car.hitTest(_root.slowback)) {
if (Key.isDown(Key.SPACE) == true) {
ship.xlration >= 0;
} else {
ship.xlration = ship.xlration - 1;
}
}
}
function sideline1() {
if (_root.car.hitTest(_root.side1)) {
flag = flag + 1;
if (flag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
flag = 0;
}
}
function sideline2() {
if (_root.car.hitTest(_root.side2)) {
flag2 = flag2 + 1;
if (flag2 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
flag2 = 0;
}
}
function centerline1() {
if (_root.car.hitTest(_root.centerline)) {
flag3_1 = flag3_1 + 1;
if (flag3_1 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
flag3_1 = 0;
}
}
function gotonextframe2() {
if (_root.car.hitTest(_root.nextframe2)) {
gotoAndPlay (117);
_root.map.gotoAndPlay(331);
}
}
function verticalline() {
if (0 < ship.xlration) {
flag4 = 1;
}
if (_root.car.hitTest(_root.vline2)) {
if (ship.xlration == 0) {
if (flag4 == 1) {
linecheck1 = 2;
flag4 = 0;
}
}
lineincheck = 1;
} else {
if ((linecheck1 != 2) && (lineincheck == 1)) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
lineincheck = 0;
linecheck1 = 0;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
if ((linecheck1 == 2) && (lineincheck == 1)) {
lineincheck = 0;
linecheck1 = 0;
}
}
if (100 < linecheck1) {
linecheck = 3;
}
}
ship = new shipparent();
rocketsleft = 49;
rocketarray = [];
statecounter = 0;
statelength = 0;
newsin = [];
newcos = [];
flag = 0;
flag2 = 0;
flag3 = 0;
flag3_1 = 0;
flag4 = 0;
lineincheck = 0;
linecheck1 = 0;
i = 1;
while (360 >= i) {
newsin[i] = Math.sin((Math.PI/180) * i);
newcos[i] = Math.cos((Math.PI/180) * i);
i++;
}
Frame 113
if (Key.isDown(Key.RIGHT) == true) {
rightturn();
handlertturn();
}
if (Key.isDown(Key.LEFT) == true) {
leftturn();
handleltturn();
}
if (Key.isDown(Key.UP) == true) {
forward();
}
if (Key.isDown(Key.DOWN) == true) {
slowdown();
}
if (Key.isDown(Key.SPACE) == true) {
fastdown();
}
if (Key.isDown(66) == true) {
bbreak();
}
if (Key.isDown(49) == true) {
ltlight();
}
if (Key.isDown(51) == true) {
rtlight();
}
if (Key.isDown(50) == true) {
lightstop();
}
if (0 < ship.xlration) {
ship.xlration = ship.xlration - 0.5;
}
if (ship.xlration < 0) {
ship.xlration = ship.xlration + 0.5;
}
if ((0.5 < ship.xlration) && (ship.xlration < 0.5)) {
ship.xlration = 0;
}
handletrue();
sideline1();
sideline2();
verticalline();
centerline1();
gotonextframe2();
moveship();
slowback1();
stopline1_1();
stopline2_1();
safearea1_1();
rtlightminus1_2();
out();
Frame 114
gotoAndPlay (113);
Frame 117
function shipparent() {
this.rotation = -90;
this.xpos = 700;
this.ypos = 115;
this.xlration = 0;
this.rockets = 1;
this.xspeed = 0;
this.yspeed = 0;
}
function rocketparent() {
this.rotation = 0;
this.xpos = -50;
this.ypos = -50;
this.xlration = 0;
this.distancetravelled = 0;
this.xspeedship = 0;
this.yspeedship = 0;
this.xspeed = 0;
this.yspeed = 0;
}
function rightturn() {
ship.rotation = ship.rotation + 2;
}
function leftturn() {
ship.rotation = ship.rotation - 2;
}
function brightturn() {
ship.rotation = ship.rotation - 2;
}
function bleftturn() {
ship.rotation = ship.rotation + 2;
}
function forward() {
tellTarget (car) {
gotoAndPlay (5);
};
if (5 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function slowdown() {
if (ship.xlration >= -5) {
ship.xlration = ship.xlration - 1;
}
}
function bbreak() {
ship.xlration = 0;
}
function fastdown() {
tellTarget (car) {
gotoAndPlay (5);
};
if (10 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function lsideline1() {
if (_root.car.hitTest(_root.lside1)) {
lflag = lflag + 1;
if (lflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
lflag = 0;
}
}
function lsideline2() {
if (_root.car.hitTest(_root.lside2)) {
lflag2 = lflag2 + 1;
if (lflag2 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
lflag2 = 0;
}
}
function lsideline3() {
if (_root.car.hitTest(_root.lside3)) {
lflag3 = lflag3 + 1;
if (lflag3 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
lflag3 = 0;
}
}
function lsideline4() {
if (_root.car.hitTest(_root.lside4)) {
lflag4 = lflag4 + 1;
if (lflag4 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
lflag4 = 0;
}
}
function lsideline5() {
if (_root.car.hitTest(_root.lside5)) {
lflag5 = lflag5 + 1;
if (lflag5 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
lflag5 = 0;
}
}
function lsideline6() {
if (_root.car.hitTest(_root.lside6)) {
lflag6 = lflag6 + 1;
if (lflag6 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
lflag6 = 0;
}
}
function gotonextframe3() {
if (_root.car.hitTest(_root.nextframe3)) {
gotoAndPlay (124);
_root.map.gotoAndPlay(574);
}
}
function stopline3_1() {
if (_root.car.hitTest(_root.stopline3)) {
ship.xlration = 0;
}
}
function stopline4_1() {
if (_root.car.hitTest(_root.stopline4)) {
ship.xlration = 0;
}
}
function handletrue3() {
if ((((ship.rotation == 90) || (ship.rotation == 0)) || (ship.rotation == -90)) || (ship.rotation == 180)) {
_root.handle._rotation = 0;
}
}
ship = new shipparent();
rocketsleft = 49;
rocketarray = [];
statecounter = 0;
statelength = 0;
newsin = [];
newcos = [];
lflag = 0;
lflag2 = 0;
lflag3 = 0;
lflag4 = 0;
lflag5 = 0;
lflag6 = 0;
i = 1;
while (360 >= i) {
newsin[i] = Math.sin((Math.PI/180) * i);
newcos[i] = Math.cos((Math.PI/180) * i);
i++;
}
Frame 120
if ((Key.isDown(Key.RIGHT) == true) && (Key.isDown(Key.UP) == true)) {
rightturn();
handlertturn();
}
if ((Key.isDown(Key.LEFT) == true) && (Key.isDown(Key.UP) == true)) {
leftturn();
handleltturn();
}
if ((Key.isDown(Key.LEFT) == true) && (Key.isDown(Key.DOWN) == true)) {
brightturn();
handleltturn();
}
if ((Key.isDown(Key.RIGHT) == true) && (Key.isDown(Key.DOWN) == true)) {
bleftturn();
handlertturn();
}
if (Key.isDown(Key.UP) == true) {
forward();
}
if (Key.isDown(Key.DOWN) == true) {
slowdown();
}
if (Key.isDown(Key.SPACE) == true) {
fastdown();
}
if (Key.isDown(66) == true) {
bbreak();
}
if (Key.isDown(49) == true) {
ltlight();
}
if (Key.isDown(51) == true) {
rtlight();
}
if (Key.isDown(50) == true) {
lightstop();
}
if (0 < ship.xlration) {
ship.xlration = ship.xlration - 0.5;
}
if (ship.xlration < 0) {
ship.xlration = ship.xlration + 0.5;
}
if ((0.5 < ship.xlration) && (ship.xlration < 0.5)) {
ship.xlration = 0;
}
lsideline1();
lsideline2();
lsideline3();
lsideline4();
lsideline5();
lsideline6();
gotonextframe3();
moveship();
stopline1_1();
stopline2_1();
stopline3_1();
stopline4_1();
safearea1_1();
rtlightminus1_2();
handletrue3();
out();
Frame 121
gotoAndPlay (120);
Frame 124
function shipparent() {
this.rotation = 0;
this.xpos = 440;
this.ypos = 600;
this.xlration = 0;
this.rockets = 1;
this.xspeed = 0;
this.yspeed = 0;
}
function rocketparent() {
this.rotation = 0;
this.xpos = -50;
this.ypos = -50;
this.xlration = 0;
this.distancetravelled = 0;
this.xspeedship = 0;
this.yspeedship = 0;
this.xspeed = 0;
this.yspeed = 0;
}
function rightturn() {
ship.rotation = ship.rotation + 1;
}
function leftturn() {
ship.rotation = ship.rotation - 1;
}
function forward() {
tellTarget (car) {
gotoAndPlay (5);
};
if (5 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function slowdown() {
if (ship.xlration >= -5) {
ship.xlration = ship.xlration - 1;
}
}
function bbreak() {
ship.xlration = 0;
}
function fastdown() {
tellTarget (car) {
gotoAndPlay (5);
};
if (10 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function fsideliner1() {
if (_root.car.hitTest(_root.fsideliner)) {
fflag = fflag + 1;
ship.xlration = 0;
if (fflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
fflag = 0;
}
}
function sideline2() {
if (_root.car.hitTest(_root.side2)) {
flag2 = flag2 + 1;
if (flag2 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
flag2 = 0;
}
}
function fcenterline1() {
if (_root.car.hitTest(_root.fcenterline)) {
fflag3_1 = fflag3_1 + 1;
if (fflag3_1 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
fflag3_1 = 0;
}
}
function sgotonextframe() {
if (_root.car.hitTest(_root.nextframes)) {
this.gotoAndPlay("e");
_root.map.gotoAndPlay(671);
}
}
function fourgo() {
if (_root.car.hitTest(_root.ss)) {
go = go + 1;
if (go < 2) {
_root.four.gotoAndPlay(2);
}
}
}
function light() {
if (thernd == 0) {
_root.mlight.gotoAndPlay(1);
} else {
_root.mlight.gotoAndStop(122);
}
}
function minus() {
if (thernd == 0) {
if (_root.car.hitTest(_root.overline)) {
Oflag2 = Oflag2 + 1;
if (Oflag2 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
Oflag2 = 0;
}
} else {
thernd == 1;
}
}
function frtsafearea1_1() {
if (_root.car.sidelight2.rtsafearea.hitTest(_root.four)) {
rtssaflag = rtssaflag + 1;
if (rtssaflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function fsafearea1_1() {
if (_root.car.sidelight1.safeminus.hitTest(_root.four)) {
ssaflag = ssaflag + 1;
if (ssaflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function fstopline1() {
if (_root.car.hitTest(_root.fstopline)) {
fflag5 = fflag5 + 1;
ship.xlration = 0;
if (fflag5 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
fflag5 = 0;
}
}
function lose1_1() {
if (_root.car.hitTest(_root.lose1)) {
this.gotoAndStop(147);
}
}
function lose2_1() {
if (_root.car.hitTest(_root.lose2)) {
this.gotoAndStop(147);
}
}
ship = new shipparent();
i = 1;
while (50 >= i) {
rocket[i] = new rocketparent();
duplicateMovieClip (rocket, "rocket" add i, i);
i++;
}
statecounter = 0;
statelength = 0;
newsin = [];
newcos = [];
fflag = 0;
fflag2 = 0;
fflag3 = 0;
fflag3_1 = 0;
fflag4 = 0;
fflag5 = 0;
thernd = random(2);
go = 0;
Oflag2 = 0;
rtssaflag = 0;
ssaflag = 0;
i = 1;
while (360 >= i) {
newsin[i] = Math.sin((Math.PI/180) * i);
newcos[i] = Math.cos((Math.PI/180) * i);
i++;
}
Frame 126
light();
Frame 127
if (Key.isDown(Key.RIGHT) == true) {
rightturn();
handlertturn();
}
if (Key.isDown(Key.LEFT) == true) {
leftturn();
handleltturn();
}
if (Key.isDown(Key.UP) == true) {
forward();
}
if (Key.isDown(Key.DOWN) == true) {
slowdown();
}
if (Key.isDown(Key.SPACE) == true) {
fastdown();
}
if (Key.isDown(66) == true) {
bbreak();
}
if (Key.isDown(49) == true) {
ltlight();
}
if (Key.isDown(51) == true) {
rtlight();
}
if (Key.isDown(50) == true) {
lightstop();
}
if (0 < ship.xlration) {
ship.xlration = ship.xlration - 0.5;
}
if (ship.xlration < 0) {
ship.xlration = ship.xlration + 0.5;
}
if ((0.5 < ship.xlration) && (ship.xlration < 0.5)) {
ship.xlration = 0;
}
fsideliner1();
sideline2();
verticalline();
fcenterline1();
sgotonextframe();
moveship();
fourgo();
frtsafearea1_1();
fsafearea1_1();
fstopline1();
minus();
lose2_1();
lose1_1();
out();
handletrue();
Instance of Symbol 170 MovieClip "car" in Frame 127
onClipEvent (load) {
updateAfterEvent();
}
Frame 128
gotoAndPlay (127);
Frame 131
function shipparent() {
this.rotation = 180;
this.xpos = 100;
this.ypos = 10;
this.xlration = 0;
this.xspeed = 0;
this.yspeed = 0;
}
function rocketparent() {
this.rotation = 0;
this.xpos = -50;
this.ypos = -50;
this.xlration = 0;
this.distancetravelled = 0;
this.xspeedship = 0;
this.yspeedship = 0;
this.xspeed = 0;
this.yspeed = 0;
}
function rightturn() {
ship.rotation = ship.rotation + 2;
}
function leftturn() {
ship.rotation = ship.rotation - 2;
}
function brightturn() {
ship.rotation = ship.rotation - 2;
}
function bleftturn() {
ship.rotation = ship.rotation + 2;
}
function forward() {
tellTarget (car) {
gotoAndPlay (5);
};
if (5 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function slowdown() {
if (ship.xlration >= -5) {
ship.xlration = ship.xlration - 1;
}
}
function bbreak() {
ship.xlration = 0;
}
function fastdown() {
tellTarget (car) {
gotoAndPlay (5);
};
if (10 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function ssideline1() {
if (_root.car.hitTest(122.2, 147.8, _root.sside1)) {
sflag = sflag + 1;
ship.xlration = 0;
if (sflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag = 0;
}
}
function ssideline2() {
if (_root.car.hitTest(120.7, 204.2, _root.sside2)) {
ship.xlration = 0;
sflag2 = sflag2 + 1;
if (sflag2 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag2 = 0;
}
}
function ssideline3() {
if (_root.car.hitTest(157.2, 256.5, _root.sside3)) {
ship.xlration = 0;
sflag3 = sflag3 + 1;
if (sflag3 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag3 = 0;
}
}
function ssideline4() {
if (_root.car.hitTest(214.8, 219.6, _root.sside4)) {
ship.xlration = 0;
sflag4 = sflag4 + 1;
if (sflag4 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag4 = 0;
}
}
function ssideline5() {
if (_root.car.hitTest(275.1, 240.8, _root.sside5)) {
ship.xlration = 0;
sflag5 = sflag5 + 1;
if (sflag5 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag5 = 0;
}
}
function ssideline6() {
if (_root.car.hitTest(303.9, 188.6, _root.sside6)) {
ship.xlration = 0;
sflag6 = sflag6 + 1;
if (sflag6 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag6 = 0;
}
}
function ssideline7() {
if (_root.car.hitTest(331.4, 134.8, _root.sside7)) {
ship.xlration = 0;
sflag7 = sflag7 + 1;
if (sflag7 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag7 = 0;
}
}
function ssideline8() {
if (_root.car.hitTest(374.5, 77.3, _root.sside8)) {
ship.xlration = 0;
sflag8 = sflag8 + 1;
if (sflag8 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag8 = 0;
}
}
function ssideline9() {
if (_root.car.hitTest(436, 44.5, _root.sside9)) {
ship.xlration = 0;
sflag9 = sflag9 + 1;
if (sflag9 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag9 = 0;
}
}
function ssideline10() {
if (_root.car.hitTest(498.9, 35.4, _root.sside10)) {
ship.xlration = 0;
sflag10 = sflag10 + 1;
if (sflag10 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag10 = 0;
}
}
function ssideline11() {
if (_root.car.hitTest(587.8, 52.4, _root.sside11)) {
ship.xlration = 0;
sflag11 = sflag11 + 1;
if (sflag11 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag11 = 0;
}
}
function ssideline12() {
if (_root.car.hitTest(657.1, 102.1, _root.sside12)) {
ship.xlration = 0;
sflag12 = sflag12 + 1;
if (sflag12 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag12 = 0;
}
}
function ssideline13() {
if (_root.car.hitTest(691.1, 167.5, _root.sside13)) {
ship.xlration = 0;
sflag13 = sflag13 + 1;
if (sflag13 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag13 = 0;
}
}
function ssideline14() {
if (_root.car.hitTest(693.8, 244.7, _root.sside14)) {
ship.xlration = 0;
sflag14 = sflag14 + 1;
if (sflag14 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag14 = 0;
}
}
function ssideline15() {
if (_root.car.hitTest(8.2, 151.8, _root.sside15)) {
ship.xlration = 0;
sflag15 = sflag15 + 1;
if (sflag15 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag15 = 0;
}
}
function ssideline16() {
if (_root.car.hitTest(8.1, 223.8, _root.sside16)) {
ship.xlration = 0;
sflag16 = sflag16 + 1;
if (sflag16 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag16 = 0;
}
}
function ssideline17() {
if (_root.car.hitTest(40.8, 293.1, _root.sside17)) {
ship.xlration = 0;
sflag17 = sflag17 + 1;
if (sflag17 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag17 = 0;
}
}
function ssideline18() {
if (_root.car.hitTest(97, 341.6, _root.sside18)) {
ship.xlration = 0;
sflag18 = sflag18 + 1;
if (sflag18 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag18 = 0;
}
}
function ssideline19() {
if (_root.car.hitTest(166.5, 366.5, _root.sside6)) {
ship.xlration = 0;
sflag19 = sflag19 + 1;
if (sflag19 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag19 = 0;
}
}
function ssideline20() {
if (_root.car.hitTest(256.8, 370.4, _root.sside20)) {
ship.xlration = 0;
sflag20 = sflag20 + 1;
if (sflag20 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag20 = 0;
}
}
function ssideline21() {
if (_root.car.hitTest(339.2, 342.9, _root.sside21)) {
ship.xlration = 0;
sflag21 = sflag21 + 1;
if (sflag21 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag21 = 0;
}
}
function ssideline22() {
if (_root.car.hitTest(391.6, 285.4, _root.sside22)) {
ship.xlration = 0;
sflag22 = sflag22 + 1;
if (sflag22 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag22 = 0;
}
}
function ssideline23() {
if (_root.car.hitTest(420.4, 215.9, _root.sside6)) {
ship.xlration = 0;
sflag23 = sflag23 + 1;
if (sflag23 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag23 = 0;
}
}
function ssideline24() {
if (_root.car.hitTest(480.6, 141.4, _root.sside24)) {
ship.xlration = 0;
sflag24 = sflag24 + 1;
if (sflag24 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag24 = 0;
}
}
function ssideline25() {
if (_root.car.hitTest(574.6, 166.2, _root.sside25)) {
ship.xlration = 0;
sflag25 = sflag25 + 1;
if (sflag25 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag25 = 0;
}
}
function ssideline26() {
if (_root.car.hitTest(589, 243.4, _root.sside26)) {
ship.xlration = 0;
sflag26 = sflag26 + 1;
if (sflag26 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag26 = 0;
}
}
function gotonextframe3() {
if (_root.car.hitTest(_root.nextframef)) {
gotoAndPlay (152);
_root.map.gotoAndPlay(761);
}
}
function ssafearea1_1() {
if (_root.car.sidelight1.safeminus.hitTest(_root.scourse)) {
scaflag = scaflag + 1;
if (scaflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function srtsafearea1_1() {
if (_root.car.sidelight2.rtsafearea.hitTest(_root.scourse)) {
rtscaflag = rtscaflag + 1;
if (rtscaflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
ship = new shipparent();
statecounter = 0;
statelength = 0;
newsin = [];
newcos = [];
sflag = 0;
sflag2 = 0;
sflag3 = 0;
sflag4 = 0;
sflag5 = 0;
sflag6 = 0;
sflag7 = 0;
sflag8 = 0;
sflag9 = 0;
sflag10 = 0;
sflag11 = 0;
sflag12 = 0;
sflag13 = 0;
sflag14 = 0;
sflag15 = 0;
sflag16 = 0;
sflag17 = 0;
sflag18 = 0;
sflag19 = 0;
sflag20 = 0;
sflag21 = 0;
sflag22 = 0;
sflag23 = 0;
sflag24 = 0;
sflag25 = 0;
sflag26 = 0;
scaflag = 0;
rtscaflag = 0;
hitstatus = hitstatus + 5;
i = 1;
while (360 >= i) {
newsin[i] = Math.sin((Math.PI/180) * i);
newcos[i] = Math.cos((Math.PI/180) * i);
i++;
}
Frame 134
if ((Key.isDown(Key.RIGHT) == true) && (Key.isDown(Key.UP) == true)) {
rightturn();
handlertturn();
}
if ((Key.isDown(Key.LEFT) == true) && (Key.isDown(Key.UP) == true)) {
leftturn();
handleltturn();
}
if ((Key.isDown(Key.LEFT) == true) && (Key.isDown(Key.DOWN) == true)) {
brightturn();
handleltturn();
}
if ((Key.isDown(Key.RIGHT) == true) && (Key.isDown(Key.DOWN) == true)) {
bleftturn();
handlertturn();
}
if (Key.isDown(Key.UP) == true) {
forward();
}
if (Key.isDown(Key.DOWN) == true) {
slowdown();
}
if (Key.isDown(Key.SPACE) == true) {
fastdown();
}
if (Key.isDown(66) == true) {
bbreak();
}
if (Key.isDown(49) == true) {
ltlight();
}
if (Key.isDown(51) == true) {
rtlight();
}
if (Key.isDown(50) == true) {
lightstop();
}
if (0 < ship.xlration) {
ship.xlration = ship.xlration - 0.5;
}
if (ship.xlration < 0) {
ship.xlration = ship.xlration + 0.5;
}
if ((0.5 < ship.xlration) && (ship.xlration < 0.5)) {
ship.xlration = 0;
}
handletrue();
out();
ssideline1();
ssideline2();
ssideline3();
ssideline4();
ssideline5();
ssideline6();
ssideline7();
ssideline8();
ssideline9();
ssideline10();
ssideline11();
ssideline12();
ssideline13();
ssideline14();
ssideline15();
ssideline16();
ssideline17();
ssideline18();
ssideline19();
ssideline20();
ssideline21();
ssideline22();
ssideline23();
ssideline24();
ssideline25();
ssideline26();
gotonextframe3();
moveship();
ssafearea1_1();
srtsafearea1_1();
Frame 135
gotoAndPlay (134);
Frame 152
function shipparent() {
this.rotation = -90;
this.xpos = 800;
this.ypos = 220;
this.xlration = 0;
this.rockets = 1;
this.xspeed = 0;
this.yspeed = 0;
}
function rocketparent() {
this.rotation = 0;
this.xpos = -50;
this.ypos = -50;
this.xlration = 0;
this.distancetravelled = 0;
this.xspeedship = 0;
this.yspeedship = 0;
this.xspeed = 0;
this.yspeed = 0;
}
function rightturn() {
ship.rotation = ship.rotation + 1;
}
function leftturn() {
ship.rotation = ship.rotation - 1;
}
function forward() {
tellTarget (car) {
gotoAndPlay (5);
};
if (5 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function slowdown() {
if (ship.xlration >= -5) {
ship.xlration = ship.xlration - 1;
}
}
function bbreak() {
ship.xlration = 0;
}
function fastdown() {
tellTarget (car) {
gotoAndPlay (5);
};
if (10 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function ftsideline1() {
if (_root.car.hitTest(_root.ftsideline)) {
ship.xlration = 0.1;
ftflag = ftflag + 1;
if (ftflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
ftflag = 0;
}
}
function ftsideline2_1() {
if (_root.car.hitTest(_root.ftsideline2)) {
ship.xlration = 0.1;
ftlflag2 = ftlflag2 + 1;
if (ftflag2 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
ftlflag2 = 0;
}
}
function ftcenterline1() {
if (_root.car.hitTest(_root.ftcenterline)) {
ftflag3_1 = ftflag3_1 + 1;
if (ftflag3_1 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
ftflag3_1 = 0;
}
}
function tgotonextframe() {
if (_root.car.hitTest(_root.nextframet)) {
this.gotoAndPlay("g");
_root.map.gotoAndPlay(851);
}
}
function ftfourgo() {
if (_root.car.hitTest(_root.ftss)) {
ftgo = ftgo + 1;
if (ftgo < 2) {
_root.ftfour.gotoAndPlay(2);
}
}
}
function mtlight2() {
if (ftthernd == 0) {
_root.mtlight.gotoAndPlay(1);
} else {
_root.mtlight.gotoAndStop(122);
}
}
function ftminus() {
if (ftthernd == 0) {
if (_root.car.hitTest(_root.ftoverline)) {
ftoflag2 = ftoflag2 + 1;
if (ftoflag2 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
ftoflag2 = 0;
}
} else {
ftthernd == 1;
}
}
ship = new shipparent();
i = 1;
while (50 >= i) {
rocket[i] = new rocketparent();
duplicateMovieClip (rocket, "rocket" add i, i);
i++;
}
hitstatus = hitstatus + 5;
statecounter = 0;
statelength = 0;
newsin = [];
newcos = [];
ftlflag2 = 0;
ftflag = 0;
ftflag2 = 0;
ftflag3 = 0;
ftflag3_1 = 0;
ftflag4 = 0;
ftthernd = random(2);
ftgo = 0;
ftoflag2 = 0;
i = 1;
while (360 >= i) {
newsin[i] = Math.sin((Math.PI/180) * i);
newcos[i] = Math.cos((Math.PI/180) * i);
i++;
}
Frame 154
mtlight2();
Frame 155
if (Key.isDown(Key.RIGHT) == true) {
rightturn();
handlertturn();
}
if (Key.isDown(Key.LEFT) == true) {
leftturn();
handleltturn();
}
if (Key.isDown(Key.UP) == true) {
forward();
}
if (Key.isDown(Key.DOWN) == true) {
slowdown();
}
if (Key.isDown(Key.SPACE) == true) {
fastdown();
}
if (Key.isDown(66) == true) {
bbreak();
}
if (0 < ship.xlration) {
ship.xlration = ship.xlration - 0.5;
}
if (ship.xlration < 0) {
ship.xlration = ship.xlration + 0.5;
}
if ((0.5 < ship.xlration) && (ship.xlration < 0.5)) {
ship.xlration = 0;
}
if (Key.isDown(49) == true) {
ltlight();
}
if (Key.isDown(51) == true) {
rtlight();
}
if (Key.isDown(50) == true) {
lightstop();
}
ftsideline2_1();
ftsideline1();
sideline2();
ftcenterline1();
tgotonextframe();
moveship();
ftfourgo();
ftminus();
safearea1_1();
rtlightminus1_2();
lose2_1();
lose1_1();
out();
handletrue();
Frame 156
gotoAndPlay (155);
Frame 163
function shipparent() {
this.rotation = 0;
this.xpos = 450;
this.ypos = 600;
this.xlration = 0;
this.rockets = 1;
this.xspeed = 0;
this.yspeed = 0;
}
function rocketparent() {
this.rotation = 0;
this.xpos = -50;
this.ypos = -50;
this.xlration = 0;
this.distancetravelled = 0;
this.xspeedship = 0;
this.yspeedship = 0;
this.xspeed = 0;
this.yspeed = 0;
}
function rightturn() {
ship.rotation = ship.rotation + 2;
}
function leftturn() {
ship.rotation = ship.rotation - 2;
}
function brightturn() {
ship.rotation = ship.rotation - 2;
}
function bleftturn() {
ship.rotation = ship.rotation + 2;
}
function forward() {
tellTarget (car) {
gotoAndPlay (5);
};
if (5 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function slowdown() {
if (ship.xlration >= -5) {
ship.xlration = ship.xlration - 1;
}
}
function bbreak() {
ship.xlration = 0;
}
function fastdown() {
tellTarget (car) {
gotoAndPlay (5);
};
if (10 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function closeline1() {
if (_root.car.hitTest(_root.closeline)) {
tfrag = tfrag + 1;
if (tfrag < 2) {
_root.openline.gotoAndStop(2);
} else {
tfrag = 0;
}
}
}
function confirml() {
if (_root.car.hitTest(_root.confirmline)) {
tfrag2 = tfrag2 + 1;
if (tfrag2 < 2) {
_root.frnextframe.gotoAndStop(2);
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
} else {
tfrag2 = 0;
}
}
}
function openlineout() {
if (_root.car.hitTest(_root.openline)) {
tflag3 = tflag3 + 1;
if (tflag3 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function tsidelinet1() {
if (_root.car.hitTest(_root.tsideline1)) {
tflag4 = tflag4 + 1;
if (tflag4 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
tflag4 = 0;
}
}
function tsidelinet2() {
if (_root.car.hitTest(_root.tsideline2)) {
tflag5 = tflag5 + 1;
if (tflag5 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
tflag5 = 0;
}
}
function tsidelinet3() {
if (_root.car.hitTest(_root.tsideline3)) {
tflag6 = tflag6 + 1;
if (tflag6 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
tflag6 = 0;
}
}
function tsidelinet4() {
if (_root.car.hitTest(_root.tsideline4)) {
tflag7 = tflag7 + 1;
if (tflag7 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
tflag7 = 0;
}
}
function tsidelinet5() {
if (_root.car.hitTest(_root.tsideline5)) {
tflag8 = tflag8 + 1;
if (tflag8 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
tflag8 = 0;
}
}
function tsidelinet6() {
if (_root.car.hitTest(_root.tsideline6)) {
tflag9 = tflag9 + 1;
if (tflag9 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
tflag9 = 0;
}
}
function tsidelinet7() {
if (_root.car.hitTest(_root.tsideline7)) {
tflag10 = tflag10 + 1;
if (tflag10 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
tflag10 = 0;
}
}
function tsidedott1() {
if (_root.car.hitTest(360.9, 236.5, _root.tsidedot1)) {
tflag11 = tflag11 + 1;
if (tflag11 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
tflag11 = 0;
}
}
function tsidedott2() {
if (_root.car.hitTest(352.9, 338.5, _root.tsidedot2)) {
tflag12 = tflag12 + 1;
if (tflag12 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
tflag12 = 0;
}
}
function gotonextframer() {
if (_root.car.hitTest(_root.frnextframe)) {
gotoAndPlay (172);
_root.map.gotoAndPlay(986);
}
}
function tcourse1_2() {
if (_root.car.sidelight2.rtsafearea.hitTest(_root.tcourse)) {
rtsatflag = rtsatflag + 1;
if (rtsatflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function tcourse1_1() {
if (_root.car.sidelight1.safeminus.hitTest(_root.tcourse)) {
satflag = satflag + 1;
if (satflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function tstop3_1() {
if (_root.car.hitTest(_root.tstop3)) {
ship.xlration = 0;
}
}
function tstop2_1() {
if (_root.car.hitTest(_root.tstop2)) {
ship.xlration = 0;
}
}
function tstop1_1() {
if (_root.car.hitTest(_root.tstop1)) {
ship.xlration = 0;
}
}
ship = new shipparent();
rocketsleft = 49;
rocketarray = [];
statecounter = 0;
statelength = 0;
newsin = [];
newcos = [];
tflag = 0;
tflag2 = 0;
tflag3 = 0;
tflag4 = 0;
tflag5 = 0;
tflag6 = 0;
tflag7 = 0;
tflag8 = 0;
tflag9 = 0;
tflag10 = 0;
tflag11 = 0;
tflag12 = 0;
hitstatus = hitstatus + 10;
satflag = 0;
rtsatflag = 0;
i = 1;
while (360 >= i) {
newsin[i] = Math.sin((Math.PI/180) * i);
newcos[i] = Math.cos((Math.PI/180) * i);
i++;
}
Frame 165
Frame 166
if ((Key.isDown(Key.RIGHT) == true) && (Key.isDown(Key.UP) == true)) {
rightturn();
handlertturn();
}
if ((Key.isDown(Key.LEFT) == true) && (Key.isDown(Key.UP) == true)) {
leftturn();
handleltturn();
}
if ((Key.isDown(Key.LEFT) == true) && (Key.isDown(Key.DOWN) == true)) {
brightturn();
handleltturn();
}
if ((Key.isDown(Key.RIGHT) == true) && (Key.isDown(Key.DOWN) == true)) {
bleftturn();
handlertturn();
}
if (Key.isDown(Key.UP) == true) {
forward();
}
if (Key.isDown(Key.DOWN) == true) {
slowdown();
}
if (Key.isDown(Key.SPACE) == true) {
fastdown();
}
if (Key.isDown(66) == true) {
bbreak();
}
if (Key.isDown(49) == true) {
ltlight();
}
if (Key.isDown(51) == true) {
rtlight();
}
if (Key.isDown(50) == true) {
lightstop();
}
if (0 < ship.xlration) {
ship.xlration = ship.xlration - 0.5;
}
if (ship.xlration < 0) {
ship.xlration = ship.xlration + 0.5;
}
if ((0.5 < ship.xlration) && (ship.xlration < 0.5)) {
ship.xlration = 0;
}
handletrue();
closeline1();
confirml();
openlineout();
tsidelinet1();
tsidelinet2();
tsidelinet3();
tsidelinet4();
tsidelinet5();
tsidelinet6();
tsidelinet7();
tsidedott2();
tsidedott1();
gotonextframer();
moveship();
tcourse1_2();
tcourse1_1();
tstop1_1();
tstop2_1();
tstop3_1();
out();
Frame 167
gotoAndPlay (166);
Frame 172
function shipparent() {
this.rotation = 180;
this.xpos = 300;
this.ypos = 5;
this.xlration = 0;
this.rockets = 1;
this.xspeed = 0;
this.yspeed = 0;
}
function rocketparent() {
this.rotation = 0;
this.xpos = -50;
this.ypos = -50;
this.xlration = 0;
this.distancetravelled = 0;
this.xspeedship = 0;
this.yspeedship = 0;
this.xspeed = 0;
this.yspeed = 0;
}
function rightturn() {
ship.rotation = ship.rotation + 2;
}
function leftturn() {
ship.rotation = ship.rotation - 2;
}
function brightturn() {
ship.rotation = ship.rotation - 2;
}
function bleftturn() {
ship.rotation = ship.rotation + 2;
}
function forward() {
tellTarget (car) {
gotoAndPlay (5);
};
if (5 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function slowdown() {
if (ship.xlration >= -5) {
ship.xlration = ship.xlration - 1;
}
}
function bbreak() {
ship.xlration = 0;
}
function fastdown() {
tellTarget (car) {
gotoAndPlay (5);
};
if (10 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function frsideline1_1() {
if (_root.car.hitTest(_root.frsideline1)) {
frflag = frflag + 1;
if (frflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
frflag = 0;
}
}
function frsideline2_1() {
if (_root.car.hitTest(_root.frsideline2)) {
frflag3_9 = frflag3_9 + 1;
if (frflag3_9 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
frflag3_9 = 0;
}
}
function ftsideline2() {
if (_root.car.hitTest(_root.side2)) {
flag2 = flag2 + 1;
if (flag2 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
flag2 = 0;
}
}
function frcenterline1() {
if (_root.car.hitTest(_root.frcenterline)) {
frflag3_7 = frflag3_7 + 1;
if (frflag3_7 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
frflag3_7 = 0;
}
}
function frcenterline2_1() {
if (_root.car.hitTest(_root.frcenterline2)) {
frflag3_8 = frflag3_8 + 1;
if (frflag3_8 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
frflag3_8 = 0;
}
}
function touchdot1() {
if (_root.car.hitTest(332.5, 334.9, _root.touch1)) {
frflag3_1 = frflag3_1 + 1;
if (frflag3_1 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
frflag3_1 = 0;
}
}
function touchdot2() {
if (_root.car.hitTest(345.9, 373.4, _root.touch2)) {
frflag3_2 = frflag3_2 + 1;
if (frflag3_2 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
frflag3_2 = 0;
}
}
function touchdot3() {
if (_root.car.hitTest(366.9, 410.4, _root.touch3)) {
frflag3_3 = frflag3_3 + 1;
if (frflag3_3 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
frflag3_3 = 0;
}
}
function touchdot4() {
if (_root.car.hitTest(400.9, 445.4, _root.touch4)) {
frflag3_4 = frflag3_4 + 1;
if (frflag3_4 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
frflag3_4 = 0;
}
}
function touchdot5() {
if (_root.car.hitTest(449.9, 471.4, _root.touch5)) {
frflag3_5 = frflag3_5 + 1;
if (frflag3_5 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
frflag3_5 = 0;
}
}
function touchdot6() {
if (_root.car.hitTest(506.9, 483.4, _root.touch6)) {
frflag3_6 = frflag3_6 + 1;
if (frflag3_6 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
frflag3_6 = 0;
}
}
function rgotonextframe() {
if (_root.car.hitTest(_root.rnextframe)) {
this.gotoAndPlay("i");
_root.map.gotoAndPlay(1151);
}
}
function rfourline1() {
if (_root.car.hitTest(_root.rfourline)) {
rtgo = rtgo + 1;
if (rtgo < 2) {
_root.rfour.gotoAndPlay(2);
}
}
}
function frminus() {
if (frthernd == 0) {
if (_root.car.hitTest(_root.frsafeline)) {
froflag2 = froflag2 + 1;
if (froflag2 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
froflag2 = 0;
}
} else {
frthernd == 1;
}
}
function mrlight2() {
if (frthernd == 0) {
_root.mrlight.gotoAndPlay(1);
} else {
_root.mrlight.gotoAndStop(121);
}
}
function stopt1_1() {
if (_root.car.hitTest(_root.stopt1)) {
ship.xlration = 0;
}
}
function stopt2_1() {
if (_root.car.hitTest(_root.stopt2)) {
ship.xlration = 0;
}
}
function llightminus1_1() {
if (_root.car.sidelight1.lightlight.hitTest(_root.lightminus2) && (_root.car.sidelight2.rtlightlight.hitTest(_root.lightminus2))) {
lmflag1 = lmflag1 + 1;
if (lmflag1 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function lrtlightminus1_1() {
if (_root.car.sidelight2.rtsafearea.hitTest(_root.lightminus2) && (_root.car.sidelight1.lightlight.hitTest(_root.lightminus2))) {
rtlmflag1 = rtlmflag1 + 1;
if (rtlmflag1 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function lrtlightminus1_2() {
if (_root.car.sidelight2.rtsafearea.hitTest(_root.safearea2)) {
rtslmflag1 = rtslmflag1 + 1;
if (rtslmflag1 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function lsafearea1_1() {
if (_root.car.sidelight1.safeminus.hitTest(_root.safearea2)) {
saflag1 = saflag1 + 1;
if (saflag1 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
ship = new shipparent();
i = 1;
while (50 >= i) {
rocket[i] = new rocketparent();
duplicateMovieClip (rocket, "rocket" add i, i);
i++;
}
hitstatus = hitstatus;
statecounter = 0;
statelength = 0;
newsin = [];
newcos = [];
frflag = 0;
frflag2 = 0;
frflag3 = 0;
frflag3_1 = 0;
frflag3_2 = 0;
frflag3_3 = 0;
frflag3_4 = 0;
frflag3_5 = 0;
frflag3_6 = 0;
frflag3_7 = 0;
frflag3_8 = 0;
frflag3_9 = 0;
frflag4 = 0;
frthernd = random(2);
rtgo = 0;
froflag2 = 0;
rtlmflag1 = 0;
lmflag1 = 0;
rtslmflag1 = 0;
saflag1 = 0;
i = 1;
while (360 >= i) {
newsin[i] = Math.sin((Math.PI/180) * i);
newcos[i] = Math.cos((Math.PI/180) * i);
i++;
}
Frame 174
mrlight2();
Frame 175
if ((Key.isDown(Key.RIGHT) == true) && (Key.isDown(Key.UP) == true)) {
rightturn();
handlertturn();
}
if ((Key.isDown(Key.LEFT) == true) && (Key.isDown(Key.UP) == true)) {
leftturn();
handleltturn();
}
if ((Key.isDown(Key.LEFT) == true) && (Key.isDown(Key.DOWN) == true)) {
brightturn();
handleltturn();
}
if ((Key.isDown(Key.RIGHT) == true) && (Key.isDown(Key.DOWN) == true)) {
bleftturn();
handlertturn();
}
if (Key.isDown(Key.UP) == true) {
forward();
}
if (Key.isDown(Key.DOWN) == true) {
slowdown();
}
if (Key.isDown(Key.SPACE) == true) {
fastdown();
}
if (Key.isDown(66) == true) {
bbreak();
}
if (Key.isDown(49) == true) {
ltlight();
}
if (Key.isDown(51) == true) {
rtlight();
}
if (Key.isDown(50) == true) {
lightstop();
}
if (0 < ship.xlration) {
ship.xlration = ship.xlration - 0.5;
}
if (ship.xlration < 0) {
ship.xlration = ship.xlration + 0.5;
}
if ((0.5 < ship.xlration) && (ship.xlration < 0.5)) {
ship.xlration = 0;
}
handletrue();
rfourline1();
frsideline1_1();
frsideline2_1();
sideline2();
frcenterline1();
frcenterline2_1();
rgotonextframe();
moveship();
ftfourgo();
touchdot1();
touchdot2();
touchdot3();
touchdot4();
touchdot5();
touchdot6();
frminus();
lose2_1();
lose1_1();
stopt2_1();
stopt1_1();
lrtlightminus1_1();
lsafearea1_1();
llightminus1_1();
lrtlightminus1_2();
out();
Frame 176
gotoAndPlay (175);
Frame 182
function shipparent() {
this.rotation = 0;
this.xpos = 430;
this.ypos = 599;
this.xlration = 0;
this.rockets = 1;
this.xspeed = 0;
this.yspeed = 0;
}
function rocketparent() {
this.rotation = 0;
this.xpos = -50;
this.ypos = -50;
this.xlration = 0;
this.distancetravelled = 0;
this.xspeedship = 0;
this.yspeedship = 0;
this.xspeed = 0;
this.yspeed = 0;
}
function rightturn() {
ship.rotation = ship.rotation + 1;
}
function leftturn() {
ship.rotation = ship.rotation - 1;
}
function forward() {
tellTarget (car) {
gotoAndPlay (5);
};
if (5 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function slowdown() {
if (ship.xlration >= -5) {
ship.xlration = ship.xlration - 1;
}
}
function bbreak() {
ship.xlration = 0;
}
function fastdown() {
tellTarget (car) {
gotoAndPlay (5);
};
if (10 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function railsideline1_1() {
if (_root.car.hitTest(_root.railsideline1)) {
rflag2 = rflag2 + 1;
ship.xlration = 0;
if (rflag2 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
rflag2 = 0;
}
}
function railsideline2_1() {
if (_root.car.hitTest(_root.railsideline2)) {
rflag3 = rflag3 + 1;
ship.xlration = 0;
if (rflag3 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
rflag3 = 0;
}
}
function railcenterline1() {
if (_root.car.hitTest(_root.railcenterline)) {
rflag3_1 = rflag3_1 + 1;
if (rflag3_1 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
rflag3_1 = 0;
}
}
function gotonextframej() {
if (_root.car.hitTest(_root.nextframej)) {
this.gotoAndPlay("j");
_root.map.gotoAndPlay(1226);
}
}
function rverticalline() {
if (0 < ship.xlration) {
rflag4 = 1;
}
if (_root.car.hitTest(_root.roverline)) {
if (ship.xlration == 0) {
if (rflag4 == 1) {
rlinecheck1 = 2;
rflag4 = 0;
}
}
rlineincheck = 1;
} else {
if ((rlinecheck1 != 2) && (rlineincheck == 1)) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rlineincheck = 0;
rlinecheck1 = 0;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
if ((rlinecheck1 == 2) && (rlineincheck == 1)) {
rlineincheck = 0;
rlinecheck1 = 0;
}
}
if (100 < rlinecheck1) {
rlinecheck = 3;
}
}
function rslowback() {
if (_root.car.hitTest(_root.railroad)) {
if (Key.isDown(Key.SPACE) == true) {
ship.xlration >= 0;
} else {
ship.xlration = ship.xlration - 1;
}
}
}
function rsafearea1_1() {
if (_root.car.sidelight1.safeminus.hitTest(_root.rsafearea1)) {
sarflag = sarflag + 1;
if (sarflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function rtrsafearea1_1() {
if (_root.car.sidelight2.rtsafearea.hitTest(_root.rsafearea1)) {
rtrsaflag = rtrsaflag + 1;
if (rtrsaflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
ship = new shipparent();
i = 1;
while (50 >= i) {
rocket[i] = new rocketparent();
duplicateMovieClip (rocket, "rocket" add i, i);
i++;
}
statecounter = 0;
statelength = 0;
newsin = [];
newcos = [];
rflag = 0;
rflag2 = 0;
rflag3 = 0;
rflag3_1 = 0;
rflag4 = 0;
rlineincheck = 0;
rlinecheck1 = 0;
sarflag = 0;
rtrsaflag = 0;
i = 1;
while (360 >= i) {
newsin[i] = Math.sin((Math.PI/180) * i);
newcos[i] = Math.cos((Math.PI/180) * i);
i++;
}
Frame 184
Frame 185
if (Key.isDown(Key.RIGHT) == true) {
rightturn();
handlertturn();
}
if (Key.isDown(Key.LEFT) == true) {
leftturn();
handleltturn();
}
if (Key.isDown(Key.UP) == true) {
forward();
}
if (Key.isDown(Key.DOWN) == true) {
slowdown();
}
if (Key.isDown(Key.SPACE) == true) {
fastdown();
}
if (Key.isDown(66) == true) {
bbreak();
}
if (Key.isDown(49) == true) {
ltlight();
}
if (Key.isDown(51) == true) {
rtlight();
}
if (Key.isDown(50) == true) {
lightstop();
}
if (0 < ship.xlration) {
ship.xlration = ship.xlration - 0.5;
}
if (ship.xlration < 0) {
ship.xlration = ship.xlration + 0.5;
}
if ((0.5 < ship.xlration) && (ship.xlration < 0.5)) {
ship.xlration = 0;
}
railcenterline1();
railsideline1_1();
railsideline2_1();
rverticalline();
centerline1();
gotonextframej();
moveship();
rslowback();
rsafearea1_1();
rtrsafearea1_1();
out();
handletrue();
Frame 186
gotoAndPlay (185);
Frame 202
function shipparent() {
this.rotation = -90;
this.xpos = 800;
this.ypos = 220;
this.xlration = 0;
this.rockets = 1;
this.xspeed = 0;
this.yspeed = 0;
}
function rocketparent() {
this.rotation = 0;
this.xpos = -50;
this.ypos = -50;
this.xlration = 0;
this.distancetravelled = 0;
this.xspeedship = 0;
this.yspeedship = 0;
this.xspeed = 0;
this.yspeed = 0;
}
function rightturn() {
ship.rotation = ship.rotation + 1;
}
function leftturn() {
ship.rotation = ship.rotation - 1;
}
function forward() {
tellTarget (car) {
gotoAndPlay (5);
};
if (5 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function slowdown() {
if (ship.xlration >= -5) {
ship.xlration = ship.xlration - 1;
}
}
function bbreak() {
ship.xlration = 0;
}
function fastdown() {
tellTarget (car) {
gotoAndPlay (5);
};
if (10 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function forward1() {
if (_root.car.hitTest(_root.forwardr)) {
aflag = aflag + 1;
if (aflag < 2) {
_root.fastroad.gotoAndPlay(2);
}
}
}
function speedside1() {
if (_root.car.hitTest(_root.speedside)) {
aflag3 = aflag3 + 1;
ship.xlration = 0;
if (aflag3 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
aflag3 = 0;
}
}
function speedside2_1() {
if (_root.car.hitTest(_root.speedside2)) {
ship.xlration = 0;
aflag4 = aflag4 + 1;
if (aflag4 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
aflag4 = 0;
}
}
function gotonextframep() {
if (_root.car.hitTest(_root.nextframep)) {
this.gotoAndPlay("k");
_root.map.gotoAndPlay(1281);
}
}
function speedcheck() {
if (_root.car.hitTest(_root.forwardr)) {
aflag2 = aflag2 + 1;
if (aflag2 < 2) {
if (8 >= ship.xlration) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
_root.car.minuslight.gotoAndPlay(2);
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
} else {
aflag2 = 0;
}
}
}
}
function fsafearea1_1() {
if (_root.car.sidelight1.safeminus.hitTest(_root.fastroad)) {
safflag = safflag + 1;
if (safflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function rtfsafearea1_1() {
if (_root.car.sidelight2.rtsafearea.hitTest(_root.fastroad)) {
rtfsaflag = rtfsaflag + 1;
if (rtfsaflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
ship = new shipparent();
i = 1;
while (50 >= i) {
rocket[i] = new rocketparent();
duplicateMovieClip (rocket, "rocket" add i, i);
i++;
}
safflag = 0;
rtfsaflag = 0;
statecounter = 0;
statelength = 0;
newsin = [];
newcos = [];
aflag = 0;
aflag2 = 0;
aflag3 = 0;
rflag3_1 = 0;
rflag4 = 0;
rlineincheck = 0;
rlinecheck1 = 0;
i = 1;
while (360 >= i) {
newsin[i] = Math.sin((Math.PI/180) * i);
newcos[i] = Math.cos((Math.PI/180) * i);
i++;
}
Frame 204
Frame 205
if (Key.isDown(Key.RIGHT) == true) {
rightturn();
handlertturn();
}
if (Key.isDown(Key.LEFT) == true) {
leftturn();
handleltturn();
}
if (Key.isDown(Key.UP) == true) {
forward();
}
if (Key.isDown(Key.DOWN) == true) {
slowdown();
}
if (Key.isDown(Key.SPACE) == true) {
fastdown();
}
if (Key.isDown(66) == true) {
bbreak();
}
if (Key.isDown(49) == true) {
ltlight();
}
if (Key.isDown(51) == true) {
rtlight();
}
if (Key.isDown(50) == true) {
lightstop();
}
if (0 < ship.xlration) {
ship.xlration = ship.xlration - 0.5;
}
if (ship.xlration < 0) {
ship.xlration = ship.xlration + 0.5;
}
if ((0.5 < ship.xlration) && (ship.xlration < 0.5)) {
ship.xlration = 0;
}
handletrue();
railcenterline1();
railsideline1_1();
railsideline2_1();
rverticalline();
centerline1();
gotonextframep();
moveship();
speedcheck();
forward1();
speedside1();
speedside2_1();
rtfsafearea1_1();
fsafearea1_1();
out();
Frame 206
gotoAndPlay (205);
Frame 213
function shipparent() {
this.rotation = 90;
this.xpos = 10;
this.ypos = 150;
this.xlration = 0;
this.rockets = 1;
this.xspeed = 0;
this.yspeed = 0;
}
function rocketparent() {
this.rotation = 0;
this.xpos = -50;
this.ypos = -50;
this.xlration = 0;
this.distancetravelled = 0;
this.xspeedship = 0;
this.yspeedship = 0;
this.xspeed = 0;
this.yspeed = 0;
}
function rightturn() {
ship.rotation = ship.rotation + 2;
}
function leftturn() {
ship.rotation = ship.rotation - 2;
}
function brightturn() {
ship.rotation = ship.rotation - 2;
}
function bleftturn() {
ship.rotation = ship.rotation + 2;
}
function forward() {
tellTarget (car) {
gotoAndPlay (5);
};
if (5 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function slowdown() {
if (ship.xlration >= -5) {
ship.xlration = ship.xlration - 1;
}
}
function bbreak() {
ship.xlration = 0;
}
function fastdown() {
tellTarget (car) {
gotoAndPlay (5);
};
if (10 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function touchline1_1() {
if (_root.car.hitTest(_root.touchline1)) {
pfrag = pfrag + 1;
if (pfrag < 2) {
_root.pminus.gotoAndStop(2);
}
}
}
function nextlastfour1() {
if (_root.car.hitTest(_root.nextlastfour)) {
plflag9 = plflag9 + 1;
if (plflag9 < 2) {
_root.nextframefr.gotoAndStop(2);
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
}
} else {
plflag9 = 0;
}
}
function touchline2_1() {
if (_root.car.hitTest(_root.touchline2)) {
pfrag1 = pfrag1 + 1;
if (pfrag1 < 2) {
_root.pminus.gotoAndStop(1);
}
}
}
function pminus1() {
if (_root.car.hitTest(_root.pminus)) {
pflag3 = pflag3 + 1;
if (pflag3 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function pdot1_1() {
if (_root.car.hitTest(232.9, 288.5, _root.pdot1)) {
pflag4 = pflag4 + 1;
if (pflag4 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
pflag4 = 0;
}
}
function pdot2_1() {
if (_root.car.hitTest(232.9, 321.5, _root.pdot2)) {
pflag5 = pflag5 + 1;
if (pflag5 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
pflag5 = 0;
}
}
function pdot3_1() {
if (_root.car.hitTest(232.9, 358.4, _root.pdot3)) {
pflag6 = pflag6 + 1;
if (pflag6 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
pflag6 = 0;
}
}
function pdot4_1() {
if (_root.car.hitTest(283.9, 358.4, _root.pdot4)) {
pflag7 = pflag7 + 1;
if (pflag7 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
pflag7 = 0;
}
}
function pdot6_1() {
if (_root.car.hitTest(381.9, 358.4, _root.pdot6)) {
pflag9 = pflag9 + 1;
if (pflag9 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
pflag9 = 0;
}
}
function pdot7_1() {
if (_root.car.hitTest(436.9, 355.4, _root.pdot7)) {
pflag10 = pflag10 + 1;
if (pflag10 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
pflag10 = 0;
}
}
function pdot8_1() {
if (_root.car.hitTest(436.9, 321.4, _root.pdot8)) {
pflag11 = pflag11 + 1;
if (pflag11 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
pflag11 = 0;
}
}
function pdot9_1() {
if (_root.car.hitTest(436.9, 287.5, _root.pdot9)) {
pflag12 = pflag12 + 1;
if (pflag12 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
pflag12 = 0;
}
}
function psideline1_1() {
if (_root.car.hitTest(_root.psideline1)) {
pflag13 = pflag13 + 1;
if (pflag13 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
pflag13 = 0;
}
}
function psideline2_1() {
if (_root.car.hitTest(_root.psideline2)) {
pflag14 = pflag14 + 1;
if (pflag14 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
pflag14 = 0;
}
}
function psideline3_1() {
if (_root.car.hitTest(_root.psideline3)) {
ship.xlration = 0;
pflag15 = pflag15 + 1;
if (pflag15 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
pflag15 = 0;
}
}
function gotonextframefr() {
if (_root.car.hitTest(_root.nextframefr)) {
gotoAndPlay (227);
_root.map.gotoAndPlay(1431);
}
}
function pstop1_1() {
if (_root.car.hitTest(_root.pstop1)) {
ship.xlration = 0;
}
}
function pstop2_1() {
if (_root.car.hitTest(_root.pstop2)) {
ship.xlration = 0;
}
}
function psafe1_1() {
if (_root.car.hitTest(_root.psafe1)) {
ship.xlration = 0;
}
}
function psafearea1_1() {
if (_root.car.sidelight1.safeminus.hitTest(_root.parking)) {
sapflag = sapflag + 1;
if (sapflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function rtpsafearea1_1() {
if (_root.car.sidelight2.rtsafearea.hitTest(_root.parking)) {
rtpsaflag = rtpsaflag + 1;
if (rtpsaflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
ship = new shipparent();
rocketsleft = 49;
rocketarray = [];
statecounter = 0;
statelength = 0;
newsin = [];
newcos = [];
pflag = 0;
pflag1 = 0;
pflag2 = 0;
pflag3 = 0;
pflag4 = 0;
pflag5 = 0;
pflag6 = 0;
pflag7 = 0;
pflag8 = 0;
pflag9 = 0;
pflag10 = 0;
pflag11 = 0;
pflag12 = 0;
pflag13 = 0;
pflag14 = 0;
pflag15 = 0;
sapflag = 0;
rtpsaflag = 0;
plflag9 = 0;
i = 1;
while (360 >= i) {
newsin[i] = Math.sin((Math.PI/180) * i);
newcos[i] = Math.cos((Math.PI/180) * i);
i++;
}
Frame 214
Frame 215
if ((Key.isDown(Key.RIGHT) == true) && (Key.isDown(Key.UP) == true)) {
rightturn();
handlertturn();
}
if ((Key.isDown(Key.LEFT) == true) && (Key.isDown(Key.UP) == true)) {
leftturn();
handleltturn();
}
if ((Key.isDown(Key.LEFT) == true) && (Key.isDown(Key.DOWN) == true)) {
brightturn();
handleltturn();
}
if ((Key.isDown(Key.RIGHT) == true) && (Key.isDown(Key.DOWN) == true)) {
bleftturn();
handlertturn();
}
if (Key.isDown(Key.UP) == true) {
forward();
}
if (Key.isDown(Key.DOWN) == true) {
slowdown();
}
if (Key.isDown(Key.SPACE) == true) {
fastdown();
}
if (Key.isDown(66) == true) {
bbreak();
}
if (Key.isDown(49) == true) {
ltlight();
}
if (Key.isDown(51) == true) {
rtlight();
}
if (Key.isDown(50) == true) {
lightstop();
}
if (0 < ship.xlration) {
ship.xlration = ship.xlration - 0.5;
}
if (ship.xlration < 0) {
ship.xlration = ship.xlration + 0.5;
}
if ((0.5 < ship.xlration) && (ship.xlration < 0.5)) {
ship.xlration = 0;
}
handletrue();
moveship();
touchline2_1();
touchline1_1();
pminus1();
pdot1_1();
pdot2_1();
pdot3_1();
pdot4_1();
pdot5_1();
pdot6_1();
pdot7_1();
pdot8_1();
pdot9_1();
psideline1_1();
psideline2_1();
psideline3_1();
gotonextframefr();
nextlastfour1();
pstop2_1();
pstop1_1();
psafe1_1();
rtpsafearea1_1();
psafearea1_1();
out();
Frame 216
gotoAndPlay (215);
Frame 227
function shipparent() {
this.rotation = 90;
this.xpos = 0;
this.ypos = 280;
this.xlration = 0;
this.rockets = 1;
this.xspeed = 0;
this.yspeed = 0;
}
function rocketparent() {
this.rotation = 0;
this.xpos = -50;
this.ypos = -50;
this.xlration = 0;
this.distancetravelled = 0;
this.xspeedship = 0;
this.yspeedship = 0;
this.xspeed = 0;
this.yspeed = 0;
}
function rightturn() {
ship.rotation = ship.rotation + 2;
}
function leftturn() {
ship.rotation = ship.rotation - 2;
}
function brightturn() {
ship.rotation = ship.rotation - 2;
}
function bleftturn() {
ship.rotation = ship.rotation + 2;
}
function forward() {
tellTarget (car) {
gotoAndPlay (5);
};
if (5 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function slowdown() {
if (ship.xlration >= -5) {
ship.xlration = ship.xlration - 1;
}
}
function bbreak() {
ship.xlration = 0;
}
function fastdown() {
tellTarget (car) {
gotoAndPlay (5);
};
if (10 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function lastline1_1() {
if (_root.car.hitTest(_root.lastline1)) {
flflag = flflag + 1;
if (flflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
flflag = 0;
}
}
function lastline2_1() {
if (_root.car.hitTest(_root.lastline2)) {
flflag2 = flflag2 + 1;
if (flflag2 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
flflag2 = 0;
}
}
function lastline3_1() {
if (_root.car.hitTest(_root.lastline3)) {
flflag3 = flflag3 + 1;
if (flflag3 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
flflag3 = 0;
}
}
function lastline4_1() {
if (_root.car.hitTest(_root.lastline4)) {
flflag4 = flflag4 + 1;
if (flflag4 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
flflag4 = 0;
}
}
function ldot1_1() {
if (_root.car.hitTest(244.9, 323.5, _root.ldot1)) {
flflag3_1 = flflag3_1 + 1;
if (flflag3_1 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
flflag3_1 = 0;
}
}
function ldot2_1() {
if (_root.car.hitTest(295.9, 346.5, _root.ldot2)) {
flflag3_2 = flflag3_2 + 1;
if (flflag3_2 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
flflag3_2 = 0;
}
}
function ldot3_1() {
if (_root.car.hitTest(329.9, 394.5, _root.ldot3)) {
flflag3_3 = flflag3_3 + 1;
if (flflag3_3 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
flflag3_3 = 0;
}
}
function ldot4_1() {
if (_root.car.hitTest(275.9, 228.5, _root.ldot4)) {
flflag3_4 = flflag3_4 + 1;
if (flflag3_4 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
flflag3_4 = 0;
}
}
function ldot5_1() {
if (_root.car.hitTest(325.9, 244.5, _root.ldot5)) {
flflag3_5 = flflag3_5 + 1;
if (flflag3_5 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
flflag3_5 = 0;
}
}
function ldot6_1() {
if (_root.car.hitTest(373.9, 275.5, _root.ldot2)) {
flflag3_6 = flflag3_6 + 1;
if (flflag3_6 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
flflag3_6 = 0;
}
}
function ldot7_1() {
if (_root.car.hitTest(411.9, 327.5, _root.ldot2)) {
flflag3_7 = flflag3_7 + 1;
if (flflag3_7 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
flflag3_7 = 0;
}
}
function gotonextframeend() {
if (_root.car.hitTest(_root.nextframeend)) {
this.gotoAndPlay("m");
_root.map.gotoAndPlay(1471);
}
}
function fllight2() {
if (flthernd == 0) {
_root.lastlight.gotoAndPlay(1);
} else {
_root.lastlight.gotoAndStop(121);
}
}
function lastfour1_1() {
if (_root.car.sidelight1.safeminus.hitTest(_root.lastfour) && (_root.car.sidelight2.rtlightlight.hitTest(_root.lastfour))) {
salflag = salflag + 1;
if (salflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function lastfour1_2() {
if (_root.car.sidelight2.rtlightlight.hitTest(_root.lastfour) && (_root.car.sidelight1.lightlight.hitTest(_root.lastfour))) {
rtlsaflag = rtlsaflag + 1;
if (rtlsaflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function endfour1_1() {
if (_root.car.sidelight1.safeminus.hitTest(_root.endlight)) {
saeflag = saeflag + 1;
if (saeflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function endfour1_2() {
if (_root.car.sidelight2.rtsafearea.hitTest(_root.endlight)) {
rtesaflag = rtesaflag + 1;
if (rtesaflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
ship = new shipparent();
i = 1;
while (50 >= i) {
rocket[i] = new rocketparent();
duplicateMovieClip (rocket, "rocket" add i, i);
i++;
}
statecounter = 0;
statelength = 0;
newsin = [];
newcos = [];
flflag = 0;
flflag2 = 0;
flflag3 = 0;
flflag4 = 0;
flflag3_1 = 0;
flflag3_2 = 0;
flflag3_3 = 0;
flflag3_4 = 0;
flflag3_5 = 0;
flflag3_6 = 0;
flflag3_7 = 0;
rtlsaflag = 0;
salflag = 0;
saeflag = 0;
rtesaflag = 0;
flthernd = random(2);
rtgo = 0;
froflag2 = 0;
i = 1;
while (360 >= i) {
newsin[i] = Math.sin((Math.PI/180) * i);
newcos[i] = Math.cos((Math.PI/180) * i);
i++;
}
Frame 229
mrlight2();
Frame 230
if ((Key.isDown(Key.RIGHT) == true) && (Key.isDown(Key.UP) == true)) {
rightturn();
handlertturn();
}
if ((Key.isDown(Key.LEFT) == true) && (Key.isDown(Key.UP) == true)) {
leftturn();
handleltturn();
}
if ((Key.isDown(Key.LEFT) == true) && (Key.isDown(Key.DOWN) == true)) {
brightturn();
handleltturn();
}
if ((Key.isDown(Key.RIGHT) == true) && (Key.isDown(Key.DOWN) == true)) {
bleftturn();
handlertturn();
}
if (Key.isDown(Key.UP) == true) {
forward();
}
if (Key.isDown(Key.DOWN) == true) {
slowdown();
}
if (Key.isDown(Key.SPACE) == true) {
fastdown();
}
if (Key.isDown(66) == true) {
bbreak();
}
if (Key.isDown(49) == true) {
ltlight();
}
if (Key.isDown(51) == true) {
rtlight();
}
if (Key.isDown(50) == true) {
lightstop();
}
if (0 < ship.xlration) {
ship.xlration = ship.xlration - 0.5;
}
if (ship.xlration < 0) {
ship.xlration = ship.xlration + 0.5;
}
if ((0.5 < ship.xlration) && (ship.xlration < 0.5)) {
ship.xlration = 0;
}
handletrue();
lastline1_1();
lastline2_1();
lastline3_1();
lastline4_1();
ldot1_1();
ldot2_1();
ldot3_1();
ldot4_1();
ldot5_1();
ldot6_1();
ldot7_1();
gotonextframeend();
moveship();
fllight2();
lastfour1_2();
lastfour1_1();
endfour1_1();
endfour1_2();
out();
lose2_1();
lose1_1();
Frame 231
gotoAndPlay (230);
Frame 242
function shipparent() {
this.rotation = -90;
this.xpos = 800;
this.ypos = 250;
this.xlration = 0;
this.rockets = 1;
this.xspeed = 0;
this.yspeed = 0;
}
function rocketparent() {
this.rotation = 0;
this.xpos = -50;
this.ypos = -50;
this.xlration = 0;
this.distancetravelled = 0;
this.xspeedship = 0;
this.yspeedship = 0;
this.xspeed = 0;
this.yspeed = 0;
}
function rightturn() {
ship.rotation = ship.rotation + 1;
}
function leftturn() {
ship.rotation = ship.rotation - 1;
}
function forward() {
tellTarget (car) {
gotoAndPlay (5);
};
if (5 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function slowdown() {
if (ship.xlration >= -5) {
ship.xlration = ship.xlration - 1;
}
}
function bbreak() {
ship.xlration = 0;
}
function fastdown() {
tellTarget (car) {
gotoAndPlay (5);
};
if (10 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function endsideline1_1() {
if (_root.car.hitTest(_root.endsideline1)) {
endflag = endflag + 1;
ship.xlration = 0;
if (endflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
endflag = 0;
}
}
function endsideline2_1() {
if (_root.car.hitTest(_root.endsideline2)) {
endflag2 = endflag2 + 1;
ship.xlration = 0;
if (endflag2 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
endflag2 = 0;
}
}
function endlinee1() {
if (_root.car.hitTest(_root.endline1)) {
gotoAndStop (248);
}
}
function endcheck1_1() {
if (_root.car.sidelight1.safeminus.hitTest(_root.endcheckline) && (_root.car.sidelight2.rtlightlight.hitTest(_root.endcheckline))) {
saeflag = saeflag + 1;
if (saeflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function endcheck1_2() {
if (_root.car.sidelight2.rtlightlight.hitTest(_root.endcheckline) && (_root.car.sidelight1.lightlight.hitTest(_root.endcheckline))) {
rtesaflag = rtesaflag + 1;
if (rtesaflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
ship = new shipparent();
i = 1;
while (50 >= i) {
rocket[i] = new rocketparent();
duplicateMovieClip (rocket, "rocket" add i, i);
i++;
}
saeflag = 0;
rtesaflag = 0;
statecounter = 0;
statelength = 0;
newsin = [];
newcos = [];
endflag = 0;
endflag2 = 0;
flag3 = 0;
flag3_1 = 0;
flag4 = 0;
lineincheck = 0;
linecheck1 = 0;
i = 1;
while (360 >= i) {
newsin[i] = Math.sin((Math.PI/180) * i);
newcos[i] = Math.cos((Math.PI/180) * i);
i++;
}
Instance of Symbol 170 MovieClip "car" in Frame 242
onClipEvent (load) {
updateAfterEvent();
}
Frame 244
Frame 245
if (Key.isDown(Key.RIGHT) == true) {
rightturn();
handlertturn();
}
if (Key.isDown(Key.LEFT) == true) {
leftturn();
handleltturn();
}
if (Key.isDown(Key.UP) == true) {
forward();
}
if (Key.isDown(Key.DOWN) == true) {
slowdown();
}
if (Key.isDown(Key.SPACE) == true) {
fastdown();
}
if (Key.isDown(66) == true) {
bbreak();
}
if (Key.isDown(49) == true) {
ltlight();
}
if (Key.isDown(51) == true) {
rtlight();
}
if (Key.isDown(50) == true) {
lightstop();
}
if (0 < ship.xlration) {
ship.xlration = ship.xlration - 0.5;
}
if (ship.xlration < 0) {
ship.xlration = ship.xlration + 0.5;
}
if ((0.5 < ship.xlration) && (ship.xlration < 0.5)) {
ship.xlration = 0;
}
handletrue();
endsideline1_1();
endsideline2_1();
endlinee1();
moveship();
endcheck1_2();
endcheck1_1();
out();
Frame 246
gotoAndPlay (245);
Frame 248
_root.timeresult.gotoAndStop(2);
Instance of Symbol 347 MovieClip "car" in Frame 248
onClipEvent (enterFrame) {
_root.car._alpha = 0;
}
Frame 249
_root.timeresult.gotoAndStop(2);
Frame 250
shipscore = "100";
hitstatus = 100;
_root.map.gotoAndPlay(331);
function shipparent() {
this.rotation = -90;
this.xpos = 700;
this.ypos = 115;
this.xlration = 0;
this.rockets = 1;
this.xspeed = 0;
this.yspeed = 0;
}
function rocketparent() {
this.rotation = 0;
this.xpos = -50;
this.ypos = -50;
this.xlration = 0;
this.distancetravelled = 0;
this.xspeedship = 0;
this.yspeedship = 0;
this.xspeed = 0;
this.yspeed = 0;
}
function rightturn() {
ship.rotation = ship.rotation + 2;
}
function leftturn() {
ship.rotation = ship.rotation - 2;
}
function brightturn() {
ship.rotation = ship.rotation - 2;
}
function bleftturn() {
ship.rotation = ship.rotation + 2;
}
function forward() {
tellTarget (car) {
gotoAndPlay (5);
};
if (5 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function slowdown() {
if (ship.xlration >= -5) {
ship.xlration = ship.xlration - 1;
}
}
function bbreak() {
ship.xlration = 0;
}
function fastdown() {
tellTarget (car) {
gotoAndPlay (5);
};
if (10 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function lsideline1() {
if (_root.car.hitTest(_root.lside1)) {
lflag = lflag + 1;
if (lflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
lflag = 0;
}
}
function lsideline2() {
if (_root.car.hitTest(_root.lside2)) {
lflag2 = lflag2 + 1;
if (lflag2 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
lflag2 = 0;
}
}
function lsideline3() {
if (_root.car.hitTest(_root.lside3)) {
lflag3 = lflag3 + 1;
if (lflag3 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
lflag3 = 0;
}
}
function lsideline4() {
if (_root.car.hitTest(_root.lside4)) {
lflag4 = lflag4 + 1;
if (lflag4 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
lflag4 = 0;
}
}
function lsideline5() {
if (_root.car.hitTest(_root.lside5)) {
lflag5 = lflag5 + 1;
if (lflag5 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
lflag5 = 0;
}
}
function lsideline6() {
if (_root.car.hitTest(_root.lside6)) {
lflag6 = lflag6 + 1;
if (lflag6 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
lflag6 = 0;
}
}
function gotonextframe3() {
if (_root.car.hitTest(_root.nextframe3)) {
gotoAndPlay (250);
}
}
function stopline3_1() {
if (_root.car.hitTest(_root.stopline3)) {
ship.xlration = 0;
}
}
function stopline4_1() {
if (_root.car.hitTest(_root.stopline4)) {
ship.xlration = 0;
}
}
function moveship() {
dir = car._rotation + 180;
ship.xspeed = newsin[dir] * (-ship.xlration);
ship.yspeed = newcos[dir] * ship.xlration;
ship.xpos = ship.xpos + ship.xspeed;
ship.ypos = ship.ypos + ship.yspeed;
if (ship.xpos >= 800) {
ship.xpos = 800;
} else if (0 >= ship.xpos) {
ship.xpos = 0;
}
if (ship.ypos >= 600) {
ship.ypos = 600;
} else if (0 >= ship.ypos) {
ship.ypos = 0;
}
setProperty(car, _rotation , ship.rotation);
setProperty(car, _x , ship.xpos);
setProperty(car, _y , ship.ypos);
}
ship = new shipparent();
rocketsleft = 49;
rocketarray = [];
statecounter = 0;
statelength = 0;
newsin = [];
newcos = [];
lflag = 0;
lflag2 = 0;
lflag3 = 0;
lflag4 = 0;
lflag5 = 0;
lflag6 = 0;
i = 1;
while (360 >= i) {
newsin[i] = Math.sin((Math.PI/180) * i);
newcos[i] = Math.cos((Math.PI/180) * i);
i++;
}
Frame 252
Frame 253
if ((Key.isDown(Key.RIGHT) == true) && (Key.isDown(Key.UP) == true)) {
rightturn();
}
if ((Key.isDown(Key.LEFT) == true) && (Key.isDown(Key.UP) == true)) {
leftturn();
}
if ((Key.isDown(Key.LEFT) == true) && (Key.isDown(Key.DOWN) == true)) {
brightturn();
}
if ((Key.isDown(Key.RIGHT) == true) && (Key.isDown(Key.DOWN) == true)) {
bleftturn();
}
if (Key.isDown(Key.UP) == true) {
forward();
}
if (Key.isDown(Key.DOWN) == true) {
slowdown();
}
if (Key.isDown(Key.SPACE) == true) {
fastdown();
}
if (Key.isDown(66) == true) {
bbreak();
}
if (Key.isDown(49) == true) {
ltlight();
}
if (Key.isDown(51) == true) {
rtlight();
}
if (Key.isDown(50) == true) {
lightstop();
}
if (0 < ship.xlration) {
ship.xlration = ship.xlration - 0.5;
}
if (ship.xlration < 0) {
ship.xlration = ship.xlration + 0.5;
}
if ((0.5 < ship.xlration) && (ship.xlration < 0.5)) {
ship.xlration = 0;
}
lsideline1();
lsideline2();
lsideline3();
lsideline4();
lsideline5();
lsideline6();
gotonextframe3();
moveship();
stopline1_1();
stopline2_1();
stopline3_1();
stopline4_1();
safearea1_1();
rtlightminus1_2();
out();
Frame 254
gotoAndPlay (253);
Frame 256
_root.map.gotoAndPlay(671);
function shipparent() {
this.rotation = -170;
this.xpos = 100;
this.ypos = 10;
this.xlration = 0;
this.xspeed = 0;
this.yspeed = 0;
}
function rocketparent() {
this.rotation = 0;
this.xpos = -50;
this.ypos = -50;
this.xlration = 0;
this.distancetravelled = 0;
this.xspeedship = 0;
this.yspeedship = 0;
this.xspeed = 0;
this.yspeed = 0;
}
function rightturn() {
ship.rotation = ship.rotation + 2;
}
function leftturn() {
ship.rotation = ship.rotation - 2;
}
function brightturn() {
ship.rotation = ship.rotation - 2;
}
function bleftturn() {
ship.rotation = ship.rotation + 2;
}
function forward() {
tellTarget (car) {
gotoAndPlay (5);
};
if (5 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function slowdown() {
if (ship.xlration >= -5) {
ship.xlration = ship.xlration - 1;
}
}
function bbreak() {
ship.xlration = 0;
}
function fastdown() {
tellTarget (car) {
gotoAndPlay (5);
};
if (10 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function ssideline1() {
if (_root.car.hitTest(122.2, 147.8, _root.sside1)) {
sflag = sflag + 1;
ship.xlration = 0;
if (sflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag = 0;
}
}
function ssideline2() {
if (_root.car.hitTest(120.7, 204.2, _root.sside2)) {
ship.xlration = 0;
sflag2 = sflag2 + 1;
if (sflag2 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag2 = 0;
}
}
function ssideline3() {
if (_root.car.hitTest(157.2, 256.5, _root.sside3)) {
ship.xlration = 0;
sflag3 = sflag3 + 1;
if (sflag3 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag3 = 0;
}
}
function ssideline4() {
if (_root.car.hitTest(214.8, 219.6, _root.sside4)) {
ship.xlration = 0;
sflag4 = sflag4 + 1;
if (sflag4 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag4 = 0;
}
}
function ssideline5() {
if (_root.car.hitTest(275.1, 240.8, _root.sside5)) {
ship.xlration = 0;
sflag5 = sflag5 + 1;
if (sflag5 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag5 = 0;
}
}
function ssideline6() {
if (_root.car.hitTest(303.9, 188.6, _root.sside6)) {
ship.xlration = 0;
sflag6 = sflag6 + 1;
if (sflag6 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag6 = 0;
}
}
function ssideline7() {
if (_root.car.hitTest(331.4, 134.8, _root.sside7)) {
ship.xlration = 0;
sflag7 = sflag7 + 1;
if (sflag7 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag7 = 0;
}
}
function ssideline8() {
if (_root.car.hitTest(374.5, 77.3, _root.sside8)) {
ship.xlration = 0;
sflag8 = sflag8 + 1;
if (sflag8 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag8 = 0;
}
}
function ssideline9() {
if (_root.car.hitTest(436, 44.5, _root.sside9)) {
ship.xlration = 0;
sflag9 = sflag9 + 1;
if (sflag9 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag9 = 0;
}
}
function ssideline10() {
if (_root.car.hitTest(498.9, 35.4, _root.sside10)) {
ship.xlration = 0;
sflag10 = sflag10 + 1;
if (sflag10 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag10 = 0;
}
}
function ssideline11() {
if (_root.car.hitTest(587.8, 52.4, _root.sside11)) {
ship.xlration = 0;
sflag11 = sflag11 + 1;
if (sflag11 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag11 = 0;
}
}
function ssideline12() {
if (_root.car.hitTest(657.1, 102.1, _root.sside12)) {
ship.xlration = 0;
sflag12 = sflag12 + 1;
if (sflag12 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag12 = 0;
}
}
function ssideline13() {
if (_root.car.hitTest(691.1, 167.5, _root.sside13)) {
ship.xlration = 0;
sflag13 = sflag13 + 1;
if (sflag13 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag13 = 0;
}
}
function ssideline14() {
if (_root.car.hitTest(693.8, 244.7, _root.sside14)) {
ship.xlration = 0;
sflag14 = sflag14 + 1;
if (sflag14 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag14 = 0;
}
}
function ssideline15() {
if (_root.car.hitTest(8.2, 151.8, _root.sside15)) {
ship.xlration = 0;
sflag15 = sflag15 + 1;
if (sflag15 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag15 = 0;
}
}
function ssideline16() {
if (_root.car.hitTest(8.1, 223.8, _root.sside16)) {
ship.xlration = 0;
sflag16 = sflag16 + 1;
if (sflag16 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag16 = 0;
}
}
function ssideline17() {
if (_root.car.hitTest(40.8, 293.1, _root.sside17)) {
ship.xlration = 0;
sflag17 = sflag17 + 1;
if (sflag17 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag17 = 0;
}
}
function ssideline18() {
if (_root.car.hitTest(97, 341.6, _root.sside18)) {
ship.xlration = 0;
sflag18 = sflag18 + 1;
if (sflag18 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag18 = 0;
}
}
function ssideline19() {
if (_root.car.hitTest(166.5, 366.5, _root.sside6)) {
ship.xlration = 0;
sflag19 = sflag19 + 1;
if (sflag19 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag19 = 0;
}
}
function ssideline20() {
if (_root.car.hitTest(256.8, 370.4, _root.sside20)) {
ship.xlration = 0;
sflag20 = sflag20 + 1;
if (sflag20 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag20 = 0;
}
}
function ssideline21() {
if (_root.car.hitTest(339.2, 342.9, _root.sside21)) {
ship.xlration = 0;
sflag21 = sflag21 + 1;
if (sflag21 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag21 = 0;
}
}
function ssideline22() {
if (_root.car.hitTest(391.6, 285.4, _root.sside22)) {
ship.xlration = 0;
sflag22 = sflag22 + 1;
if (sflag22 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag22 = 0;
}
}
function ssideline23() {
if (_root.car.hitTest(420.4, 215.9, _root.sside6)) {
ship.xlration = 0;
sflag23 = sflag23 + 1;
if (sflag23 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag23 = 0;
}
}
function ssideline24() {
if (_root.car.hitTest(480.6, 141.4, _root.sside24)) {
ship.xlration = 0;
sflag24 = sflag24 + 1;
if (sflag24 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag24 = 0;
}
}
function ssideline25() {
if (_root.car.hitTest(574.6, 166.2, _root.sside25)) {
ship.xlration = 0;
sflag25 = sflag25 + 1;
if (sflag25 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag25 = 0;
}
}
function ssideline26() {
if (_root.car.hitTest(589, 243.4, _root.sside26)) {
ship.xlration = 0;
sflag26 = sflag26 + 1;
if (sflag26 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
sflag26 = 0;
}
}
function gotonextframe3() {
if (_root.car.hitTest(_root.nextframef)) {
gotoAndPlay (256);
}
}
function ssafearea1_1() {
if (_root.car.sidelight1.safeminus.hitTest(_root.scourse)) {
scaflag = scaflag + 1;
if (scaflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function srtsafearea1_1() {
if (_root.car.sidelight2.rtsafearea.hitTest(_root.scourse)) {
rtscaflag = rtscaflag + 1;
if (rtscaflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function moveship() {
dir = car._rotation + 180;
ship.xspeed = newsin[dir] * (-ship.xlration);
ship.yspeed = newcos[dir] * ship.xlration;
ship.xpos = ship.xpos + ship.xspeed;
ship.ypos = ship.ypos + ship.yspeed;
if (ship.xpos >= 800) {
ship.xpos = 800;
} else if (0 >= ship.xpos) {
ship.xpos = 0;
}
if (ship.ypos >= 600) {
ship.ypos = 600;
} else if (0 >= ship.ypos) {
ship.ypos = 0;
}
setProperty(car, _rotation , ship.rotation);
setProperty(car, _x , ship.xpos);
setProperty(car, _y , ship.ypos);
}
ship = new shipparent();
statecounter = 0;
statelength = 0;
newsin = [];
newcos = [];
sflag = 0;
sflag2 = 0;
sflag3 = 0;
sflag4 = 0;
sflag5 = 0;
sflag6 = 0;
sflag7 = 0;
sflag8 = 0;
sflag9 = 0;
sflag10 = 0;
sflag11 = 0;
sflag12 = 0;
sflag13 = 0;
sflag14 = 0;
sflag15 = 0;
sflag16 = 0;
sflag17 = 0;
sflag18 = 0;
sflag19 = 0;
sflag20 = 0;
sflag21 = 0;
sflag22 = 0;
sflag23 = 0;
sflag24 = 0;
sflag25 = 0;
sflag26 = 0;
scaflag = 0;
rtscaflag = 0;
hitstatus = hitstatus + 5;
i = 1;
while (360 >= i) {
newsin[i] = Math.sin((Math.PI/180) * i);
newcos[i] = Math.cos((Math.PI/180) * i);
i++;
}
Frame 258
Frame 259
if ((Key.isDown(Key.RIGHT) == true) && (Key.isDown(Key.UP) == true)) {
rightturn();
}
if ((Key.isDown(Key.LEFT) == true) && (Key.isDown(Key.UP) == true)) {
leftturn();
}
if ((Key.isDown(Key.LEFT) == true) && (Key.isDown(Key.DOWN) == true)) {
brightturn();
}
if ((Key.isDown(Key.RIGHT) == true) && (Key.isDown(Key.DOWN) == true)) {
bleftturn();
}
if (Key.isDown(Key.UP) == true) {
forward();
}
if (Key.isDown(Key.DOWN) == true) {
slowdown();
}
if (Key.isDown(Key.SPACE) == true) {
fastdown();
}
if (Key.isDown(66) == true) {
bbreak();
}
if (Key.isDown(49) == true) {
ltlight();
}
if (Key.isDown(51) == true) {
rtlight();
}
if (Key.isDown(50) == true) {
lightstop();
}
if (0 < ship.xlration) {
ship.xlration = ship.xlration - 0.5;
}
if (ship.xlration < 0) {
ship.xlration = ship.xlration + 0.5;
}
if ((0.5 < ship.xlration) && (ship.xlration < 0.5)) {
ship.xlration = 0;
}
out();
ssideline1();
ssideline2();
ssideline3();
ssideline4();
ssideline5();
ssideline6();
ssideline7();
ssideline8();
ssideline9();
ssideline10();
ssideline11();
ssideline12();
ssideline13();
ssideline14();
ssideline15();
ssideline16();
ssideline17();
ssideline18();
ssideline19();
ssideline20();
ssideline21();
ssideline22();
ssideline23();
ssideline24();
ssideline25();
ssideline26();
gotonextframe3();
moveship();
ssafearea1_1();
srtsafearea1_1();
Frame 260
gotoAndPlay (259);
Frame 262
_root.map.gotoAndPlay(851);
_root.frnextframe.gotoAndStop(1);
function shipparent() {
this.rotation = 0;
this.xpos = 450;
this.ypos = 600;
this.xlration = 0;
this.rockets = 1;
this.xspeed = 0;
this.yspeed = 0;
}
function rocketparent() {
this.rotation = 0;
this.xpos = -50;
this.ypos = -50;
this.xlration = 0;
this.distancetravelled = 0;
this.xspeedship = 0;
this.yspeedship = 0;
this.xspeed = 0;
this.yspeed = 0;
}
function rightturn() {
ship.rotation = ship.rotation + 2;
}
function leftturn() {
ship.rotation = ship.rotation - 2;
}
function brightturn() {
ship.rotation = ship.rotation - 2;
}
function bleftturn() {
ship.rotation = ship.rotation + 2;
}
function forward() {
tellTarget (car) {
gotoAndPlay (5);
};
if (5 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function slowdown() {
if (ship.xlration >= -5) {
ship.xlration = ship.xlration - 1;
}
}
function bbreak() {
ship.xlration = 0;
}
function fastdown() {
tellTarget (car) {
gotoAndPlay (5);
};
if (10 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function closeline1() {
if (_root.car.hitTest(_root.closeline)) {
tfrag = tfrag + 1;
if (tfrag < 2) {
_root.openline.gotoAndStop(2);
} else {
tfrag = 0;
}
}
}
function confirml() {
if (_root.car.hitTest(_root.confirmline)) {
tfrag2 = tfrag2 + 1;
if (tfrag2 < 2) {
_root.frnextframe.gotoAndStop(2);
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
} else {
tfrag2 = 0;
}
}
}
function openlineout() {
if (_root.car.hitTest(_root.openline)) {
tflag3 = tflag3 + 1;
if (tflag3 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function tsidelinet1() {
if (_root.car.hitTest(_root.tsideline1)) {
tflag4 = tflag4 + 1;
if (tflag4 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
tflag4 = 0;
}
}
function tsidelinet2() {
if (_root.car.hitTest(_root.tsideline2)) {
tflag5 = tflag5 + 1;
if (tflag5 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
tflag5 = 0;
}
}
function tsidelinet3() {
if (_root.car.hitTest(_root.tsideline3)) {
tflag6 = tflag6 + 1;
if (tflag6 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
tflag6 = 0;
}
}
function tsidelinet4() {
if (_root.car.hitTest(_root.tsideline4)) {
tflag7 = tflag7 + 1;
if (tflag7 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
tflag7 = 0;
}
}
function tsidelinet5() {
if (_root.car.hitTest(_root.tsideline5)) {
tflag8 = tflag8 + 1;
if (tflag8 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
tflag8 = 0;
}
}
function tsidelinet6() {
if (_root.car.hitTest(_root.tsideline6)) {
tflag9 = tflag9 + 1;
if (tflag9 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
tflag9 = 0;
}
}
function tsidelinet7() {
if (_root.car.hitTest(_root.tsideline7)) {
tflag10 = tflag10 + 1;
if (tflag10 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
tflag10 = 0;
}
}
function tsidedott1() {
if (_root.car.hitTest(360.9, 236.5, _root.tsidedot1)) {
tflag11 = tflag11 + 1;
if (tflag11 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
tflag11 = 0;
}
}
function tsidedott2() {
if (_root.car.hitTest(352.9, 338.5, _root.tsidedot2)) {
tflag12 = tflag12 + 1;
if (tflag12 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
tflag12 = 0;
}
}
function gotonextframer() {
if (_root.car.hitTest(_root.frnextframe)) {
gotoAndPlay (262);
}
}
function tcourse1_2() {
if (_root.car.sidelight2.rtsafearea.hitTest(_root.tcourse)) {
rtsatflag = rtsatflag + 1;
if (rtsatflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function tcourse1_1() {
if (_root.car.sidelight1.safeminus.hitTest(_root.tcourse)) {
satflag = satflag + 1;
if (satflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function tstop3_1() {
if (_root.car.hitTest(_root.tstop3)) {
ship.xlration = 0;
}
}
function tstop2_1() {
if (_root.car.hitTest(_root.tstop2)) {
ship.xlration = 0;
}
}
function tstop1_1() {
if (_root.car.hitTest(_root.tstop1)) {
ship.xlration = 0;
}
}
function moveship() {
dir = car._rotation + 180;
ship.xspeed = newsin[dir] * (-ship.xlration);
ship.yspeed = newcos[dir] * ship.xlration;
ship.xpos = ship.xpos + ship.xspeed;
ship.ypos = ship.ypos + ship.yspeed;
if (ship.xpos >= 800) {
ship.xpos = 800;
} else if (0 >= ship.xpos) {
ship.xpos = 0;
}
if (ship.ypos >= 600) {
ship.ypos = 600;
} else if (0 >= ship.ypos) {
ship.ypos = 0;
}
setProperty(car, _rotation , ship.rotation);
setProperty(car, _x , ship.xpos);
setProperty(car, _y , ship.ypos);
}
ship = new shipparent();
rocketsleft = 49;
rocketarray = [];
statecounter = 0;
statelength = 0;
newsin = [];
newcos = [];
tflag = 0;
tflag2 = 0;
tflag3 = 0;
tflag4 = 0;
tflag5 = 0;
tflag6 = 0;
tflag7 = 0;
tflag8 = 0;
tflag9 = 0;
tflag10 = 0;
tflag11 = 0;
tflag12 = 0;
hitstatus = hitstatus + 10;
satflag = 0;
rtsatflag = 0;
i = 1;
while (360 >= i) {
newsin[i] = Math.sin((Math.PI/180) * i);
newcos[i] = Math.cos((Math.PI/180) * i);
i++;
}
Frame 264
Frame 265
if ((Key.isDown(Key.RIGHT) == true) && (Key.isDown(Key.UP) == true)) {
rightturn();
}
if ((Key.isDown(Key.LEFT) == true) && (Key.isDown(Key.UP) == true)) {
leftturn();
}
if ((Key.isDown(Key.LEFT) == true) && (Key.isDown(Key.DOWN) == true)) {
brightturn();
}
if ((Key.isDown(Key.RIGHT) == true) && (Key.isDown(Key.DOWN) == true)) {
bleftturn();
}
if (Key.isDown(Key.UP) == true) {
forward();
}
if (Key.isDown(Key.DOWN) == true) {
slowdown();
}
if (Key.isDown(Key.SPACE) == true) {
fastdown();
}
if (Key.isDown(66) == true) {
bbreak();
}
if (Key.isDown(49) == true) {
ltlight();
}
if (Key.isDown(51) == true) {
rtlight();
}
if (Key.isDown(50) == true) {
lightstop();
}
if (0 < ship.xlration) {
ship.xlration = ship.xlration - 0.5;
}
if (ship.xlration < 0) {
ship.xlration = ship.xlration + 0.5;
}
if ((0.5 < ship.xlration) && (ship.xlration < 0.5)) {
ship.xlration = 0;
}
closeline1();
confirml();
openlineout();
tsidelinet1();
tsidelinet2();
tsidelinet3();
tsidelinet4();
tsidelinet5();
tsidelinet6();
tsidelinet7();
tsidedott2();
tsidedott1();
gotonextframer();
moveship();
tcourse1_2();
tcourse1_1();
tstop1_1();
tstop2_1();
tstop3_1();
out();
Frame 266
gotoAndPlay (265);
Frame 271
_root.map.gotoAndPlay(851);
function shipparent() {
this.rotation = 90;
this.xpos = 10;
this.ypos = 150;
this.xlration = 0;
this.rockets = 1;
this.xspeed = 0;
this.yspeed = 0;
}
function rocketparent() {
this.rotation = 0;
this.xpos = -50;
this.ypos = -50;
this.xlration = 0;
this.distancetravelled = 0;
this.xspeedship = 0;
this.yspeedship = 0;
this.xspeed = 0;
this.yspeed = 0;
}
function rightturn() {
ship.rotation = ship.rotation + 2;
}
function leftturn() {
ship.rotation = ship.rotation - 2;
}
function brightturn() {
ship.rotation = ship.rotation - 2;
}
function bleftturn() {
ship.rotation = ship.rotation + 2;
}
function forward() {
tellTarget (car) {
gotoAndPlay (5);
};
if (5 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function slowdown() {
if (ship.xlration >= -5) {
ship.xlration = ship.xlration - 1;
}
}
function bbreak() {
ship.xlration = 0;
}
function fastdown() {
tellTarget (car) {
gotoAndPlay (5);
};
if (10 >= ship.xlration) {
ship.xlration = ship.xlration + 1;
}
}
function touchline1_1() {
if (_root.car.hitTest(_root.touchline1)) {
pfrag = pfrag + 1;
if (pfrag < 2) {
_root.pminus.gotoAndStop(2);
}
}
}
function nextlastfour1() {
if (_root.car.hitTest(_root.nextlastfour)) {
plflag9 = plflag9 + 1;
if (plflag9 < 2) {
_root.nextframefr.gotoAndStop(2);
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
}
} else {
plflag9 = 0;
}
}
function touchline2_1() {
if (_root.car.hitTest(_root.touchline2)) {
pfrag1 = pfrag1 + 1;
if (pfrag1 < 2) {
_root.pminus.gotoAndStop(1);
}
}
}
function pminus1() {
if (_root.car.hitTest(_root.pminus)) {
pflag3 = pflag3 + 1;
if (pflag3 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function pdot1_1() {
if (_root.car.hitTest(232.9, 288.5, _root.pdot1)) {
pflag4 = pflag4 + 1;
if (pflag4 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
pflag4 = 0;
}
}
function pdot2_1() {
if (_root.car.hitTest(232.9, 321.5, _root.pdot2)) {
pflag5 = pflag5 + 1;
if (pflag5 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
pflag5 = 0;
}
}
function pdot3_1() {
if (_root.car.hitTest(232.9, 358.4, _root.pdot3)) {
pflag6 = pflag6 + 1;
if (pflag6 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
pflag6 = 0;
}
}
function pdot4_1() {
if (_root.car.hitTest(283.9, 358.4, _root.pdot4)) {
pflag7 = pflag7 + 1;
if (pflag7 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
pflag7 = 0;
}
}
function pdot6_1() {
if (_root.car.hitTest(381.9, 358.4, _root.pdot6)) {
pflag9 = pflag9 + 1;
if (pflag9 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
pflag9 = 0;
}
}
function pdot7_1() {
if (_root.car.hitTest(436.9, 355.4, _root.pdot7)) {
pflag10 = pflag10 + 1;
if (pflag10 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
pflag10 = 0;
}
}
function pdot8_1() {
if (_root.car.hitTest(436.9, 321.4, _root.pdot8)) {
pflag11 = pflag11 + 1;
if (pflag11 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
pflag11 = 0;
}
}
function pdot9_1() {
if (_root.car.hitTest(436.9, 287.5, _root.pdot9)) {
pflag12 = pflag12 + 1;
if (pflag12 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
pflag12 = 0;
}
}
function psideline1_1() {
if (_root.car.hitTest(_root.psideline1)) {
pflag13 = pflag13 + 1;
if (pflag13 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
pflag13 = 0;
}
}
function psideline2_1() {
if (_root.car.hitTest(_root.psideline2)) {
pflag14 = pflag14 + 1;
if (pflag14 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
pflag14 = 0;
}
}
function psideline3_1() {
if (_root.car.hitTest(_root.psideline3)) {
ship.xlration = 0;
pflag15 = pflag15 + 1;
if (pflag15 < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
} else {
pflag15 = 0;
}
}
function gotonextframefr() {
if (_root.car.hitTest(_root.nextframefr)) {
gotoAndPlay (271);
}
}
function pstop1_1() {
if (_root.car.hitTest(_root.pstop1)) {
ship.xlration = 0;
}
}
function pstop2_1() {
if (_root.car.hitTest(_root.pstop2)) {
ship.xlration = 0;
}
}
function psafe1_1() {
if (_root.car.hitTest(_root.psafe1)) {
ship.xlration = 0;
}
}
function psafearea1_1() {
if (_root.car.sidelight1.safeminus.hitTest(_root.parking)) {
sapflag = sapflag + 1;
if (sapflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function rtpsafearea1_1() {
if (_root.car.sidelight2.rtsafearea.hitTest(_root.parking)) {
rtpsaflag = rtpsaflag + 1;
if (rtpsaflag < 2) {
hitstatus = hitstatus - 5;
shipscore = hitstatus;
rootSound = new Sound(_root);
rootSound.attachSound("linesound");
rootSound.start();
_root.car.minuslight.gotoAndPlay(2);
}
}
}
function moveship() {
dir = car._rotation + 180;
ship.xspeed = newsin[dir] * (-ship.xlration);
ship.yspeed = newcos[dir] * ship.xlration;
ship.xpos = ship.xpos + ship.xspeed;
ship.ypos = ship.ypos + ship.yspeed;
if (ship.xpos >= 800) {
ship.xpos = 800;
} else if (0 >= ship.xpos) {
ship.xpos = 0;
}
if (ship.ypos >= 600) {
ship.ypos = 600;
} else if (0 >= ship.ypos) {
ship.ypos = 0;
}
setProperty(car, _rotation , ship.rotation);
setProperty(car, _x , ship.xpos);
setProperty(car, _y , ship.ypos);
}
ship = new shipparent();
rocketsleft = 49;
rocketarray = [];
statecounter = 0;
statelength = 0;
newsin = [];
newcos = [];
pflag = 0;
pflag1 = 0;
pflag2 = 0;
pflag3 = 0;
pflag4 = 0;
pflag5 = 0;
pflag6 = 0;
pflag7 = 0;
pflag8 = 0;
pflag9 = 0;
pflag10 = 0;
pflag11 = 0;
pflag12 = 0;
pflag13 = 0;
pflag14 = 0;
pflag15 = 0;
sapflag = 0;
rtpsaflag = 0;
plflag9 = 0;
i = 1;
while (360 >= i) {
newsin[i] = Math.sin((Math.PI/180) * i);
newcos[i] = Math.cos((Math.PI/180) * i);
i++;
}
Frame 272
Frame 273
if ((Key.isDown(Key.RIGHT) == true) && (Key.isDown(Key.UP) == true)) {
rightturn();
}
if ((Key.isDown(Key.LEFT) == true) && (Key.isDown(Key.UP) == true)) {
leftturn();
}
if ((Key.isDown(Key.LEFT) == true) && (Key.isDown(Key.DOWN) == true)) {
brightturn();
}
if ((Key.isDown(Key.RIGHT) == true) && (Key.isDown(Key.DOWN) == true)) {
bleftturn();
}
if (Key.isDown(Key.UP) == true) {
forward();
}
if (Key.isDown(Key.DOWN) == true) {
slowdown();
}
if (Key.isDown(Key.SPACE) == true) {
fastdown();
}
if (Key.isDown(66) == true) {
bbreak();
}
if (Key.isDown(49) == true) {
ltlight();
}
if (Key.isDown(51) == true) {
rtlight();
}
if (Key.isDown(50) == true) {
lightstop();
}
if (0 < ship.xlration) {
ship.xlration = ship.xlration - 0.5;
}
if (ship.xlration < 0) {
ship.xlration = ship.xlration + 0.5;
}
if ((0.5 < ship.xlration) && (ship.xlration < 0.5)) {
ship.xlration = 0;
}
moveship();
touchline2_1();
touchline1_1();
pminus1();
pdot1_1();
pdot2_1();
pdot3_1();
pdot4_1();
pdot5_1();
pdot6_1();
pdot7_1();
pdot8_1();
pdot9_1();
psideline1_1();
psideline2_1();
psideline3_1();
gotonextframefr();
nextlastfour1();
pstop2_1();
pstop1_1();
psafe1_1();
rtpsafearea1_1();
psafearea1_1();
out();
Frame 274
gotoAndPlay (273);
Symbol 14 Button
on (rollOver) {
_root.a._alpha = 100;
}
on (rollOut) {
_root.a._alpha = 30;
}
on (release) {
gotoAndPlay (250);
}
Symbol 15 Button
on (rollOver) {
_root.b._alpha = 100;
}
on (rollOut) {
_root.b._alpha = 30;
}
on (release) {
gotoAndPlay (256);
}
Symbol 16 Button
on (rollOver) {
_root.c._alpha = 100;
}
on (rollOut) {
_root.c._alpha = 30;
}
on (release) {
gotoAndPlay (262);
}
Symbol 17 Button
on (rollOver) {
_root.d._alpha = 100;
}
on (rollOut) {
_root.d._alpha = 30;
}
on (release) {
gotoAndPlay (271);
}
Symbol 18 Button
on (rollOver) {
_root.e._alpha = 100;
}
on (rollOut) {
_root.e._alpha = 30;
}
on (release) {
gotoAndPlay (103);
}
Symbol 38 MovieClip Frame 5
stop();
Symbol 42 Button
on (press) {
getURL ("mailto:webmater@songwon.co.kr");
}
Symbol 47 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 150
gotoAndPlay (1);
Symbol 52 MovieClip Frame 330
gotoAndPlay (151);
Symbol 52 MovieClip Frame 573
this.gotoAndPlay(331);
Symbol 52 MovieClip Frame 670
gotoAndPlay (574);
Symbol 52 MovieClip Frame 760
gotoAndPlay (671);
Symbol 52 MovieClip Frame 850
gotoAndPlay (761);
Symbol 52 MovieClip Frame 985
gotoAndPlay (851);
Symbol 52 MovieClip Frame 1150
gotoAndPlay (986);
Symbol 52 MovieClip Frame 1225
gotoAndPlay (1151);
Symbol 52 MovieClip Frame 1280
gotoAndPlay (1226);
Symbol 52 MovieClip Frame 1430
gotoAndPlay (1281);
Symbol 52 MovieClip Frame 1470
gotoAndPlay (1431);
Symbol 52 MovieClip Frame 1500
gotoAndPlay (1471);
Symbol 58 MovieClip Frame 1
sec = sec1;
min = min1;
sec1 = 0;
min1 = 0;
Symbol 58 MovieClip Frame 2
function ttime() {
if (sec1 < 60) {
sec1 = sec1 + 1;
}
if (sec1 >= 60) {
min1 = min1 + 1;
sec1 = 0;
}
}
sec = sec1;
min = min1;
Symbol 58 MovieClip Frame 3
Symbol 58 MovieClip Frame 50
ttime();
gotoAndPlay (2);
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 21
gotoAndPlay (2);
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 21
gotoAndPlay (2);
Symbol 73 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 2
stop();
Symbol 138 MovieClip Frame 10
stop();
Symbol 141 MovieClip Frame 10
stop();
Symbol 150 MovieClip Frame 10
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 15
stop();
Symbol 161 MovieClip Frame 120
stop();
_parent.overline.gotoAndStop(2);
Symbol 169 MovieClip Frame 10
stop();
Symbol 170 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 10
stop();
Symbol 182 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 15
stop();
Symbol 185 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 2
stop();
Symbol 189 MovieClip Frame 120
stop();
_parent.ftoverline.gotoAndStop(2);
Symbol 189 MovieClip Frame 122
stop();
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 2
stop();
Symbol 199 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 2
stop();
Symbol 209 MovieClip Frame 10
stop();
Symbol 213 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 15
stop();
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 2
stop();
Symbol 221 MovieClip Frame 120
_parent.frsafeline.gotoAndStop(2);
Symbol 221 MovieClip Frame 121
stop();
Symbol 233 MovieClip Frame 10
stop();
Symbol 245 MovieClip Frame 10
stop();
Symbol 253 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 10
stop();
Symbol 257 MovieClip Frame 10
stop();
Symbol 262 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 2
stop();
Symbol 275 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 2
stop();
Symbol 277 MovieClip Frame 10
stop();
Symbol 291 MovieClip Frame 10
stop();
Symbol 304 MovieClip Frame 10
stop();
Symbol 314 Button
on (release) {
gotoAndPlay (103);
_root.timeresult.gotoAndPlay(1);
_root.nextframefr.gotoAndStop(1);
}
Symbol 345 MovieClip Frame 314
stop();
Symbol 347 MovieClip Frame 1
stop();
Symbol 349 Button
on (release) {
gotoAndPlay (103);
_root.timeresult.gotoAndPlay(1);
_root.nextframefr.gotoAndStop(1);
}
Symbol 351 MovieClip Frame 1
stop();
Symbol 360 MovieClip Frame 999
stop();
Symbol 376 MovieClip Frame 150
gotoAndPlay (1);
Symbol 376 MovieClip Frame 330
gotoAndPlay (151);
Symbol 376 MovieClip Frame 573
this.gotoAndPlay(331);
Symbol 376 MovieClip Frame 670
gotoAndPlay (574);
Symbol 376 MovieClip Frame 760
gotoAndPlay (671);
Symbol 376 MovieClip Frame 850
gotoAndPlay (761);
Symbol 376 MovieClip Frame 985
gotoAndPlay (851);
Symbol 376 MovieClip Frame 1150
gotoAndPlay (986);
Symbol 376 MovieClip Frame 1225
gotoAndPlay (1151);
Symbol 376 MovieClip Frame 1280
gotoAndPlay (1226);
Symbol 376 MovieClip Frame 1430
gotoAndPlay (1281);
Symbol 376 MovieClip Frame 1470
gotoAndPlay (1431);
Symbol 376 MovieClip Frame 1500
gotoAndPlay (1471);
Symbol 381 Button
on (release) {
gotoAndPlay (250);
}
Symbol 386 Button
on (release) {
gotoAndPlay (256);
}
Symbol 390 Button
on (release) {
gotoAndPlay (262);
}
Symbol 395 Button
on (release) {
gotoAndPlay (271);
}
Symbol 400 Button
on (release) {
gotoAndPlay (103);
}