Frame 1
fscommand ("allowscale", "false");
loadVariablesNum ("highscores.php3?read=yes", 0);
total = getBytesTotal();
loaded = getBytesLoaded();
if (total == loaded) {
gotoAndStop (5);
}
Frame 2
loaded = getBytesLoaded();
if (total == loaded) {
gotoAndStop (5);
}
prozent = Math.floor((loaded / total) * 100) + " % loaded";
Frame 3
gotoAndPlay(_currentframe - 1);
Frame 5
leveldesign1 = [1, 5, 1, 1, 2, 5, 2, 1, 2, 1, 0, 0, 2, 0, 1, 1, 2, 1, 2, 0, 1, 1, 2, 1, 2, 1, 5, 3, 1, 2, 1, 3, 1, 2, 1, 5, 1, 2, 0, 5, 5, 6, 1, 0, 0, 0, 0, 0, 9];
leveldesign2 = [5, 2, 1, 5, 0, 1, 5, 2, 1, 2, 4, 3, 1, 2, 1, 5, 2, 1, 1, 2, 2, 0, 1, 6, 2, 3, 1, 2, 2, 5, 1, 2, 6, 5, 2, 1, 2, 3, 5, 6, 4, 1, 2, 5, 1, 2, 8, 0, 0, 0, 9];
leveldesign3 = [4, 4, 4, 4, 4, 4, 3, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 6, 4, 5, 8, 2, 6, 5, 3, 1, 4, 8, 7, 0, 0, 0, 0, 1, 0, 2, 6, 2, 3, 4, 1, 2, 4, 4, 4, 6, 7, 0, 0, 0, 0, 0, 7, 0, 0, 5, 2, 1, 6, 0, 0, 4, 4, 4, 4, 4, 4, 3, 4, 0, 0, 0, 9];
leveldesign4 = [8, 0, 0, 8, 0, 0, 7, 2, 0, 0, 2, 3, 4, 3, 4, 3, 4, 3, 4, 1, 2, 4, 2, 6, 4, 5, 3, 7, 0, 0, 2, 3, 1, 4, 5, 3, 8, 5, 0, 0, 4, 8, 5, 0, 0, 0, 9];
leveldesign5 = [8, 0, 8, 0, 5, 3, 4, 3, 4, 3, 4, 5, 3, 4, 5, 3, 4, 5, 6, 2, 3, 1, 2, 3, 5, 6, 7, 3, 2, 6, 7, 5, 1, 0, 0, 0, 3, 2, 4, 1, 5, 4, 3, 6, 5, 3, 6, 5, 4, 2, 1, 2, 3, 4, 3, 4, 3, 7, 8, 8, 0, 0, 2, 0, 0, 0, 9];
jump = new Sound();
jump.attachSound("jump");
alien = new Sound();
alien.attachSound("alien");
shot = new Sound();
shot.attachSound("shot");
hubshotsound.attachSound("hubshotsound");
hubshotsound = new Sound();
gelocht = new Sound();
gelocht.attachSound("gelocht");
score = 0;
level = 1;
tanks = 3;
scroll = true;
Mouse.show();
stop();
Frame 25
e = 200;
Mouse.hide();
levelsound = new Sound();
levelsound.attachSound("level" + level);
levelsound.start(0, 999);
patrol.leveldesign = eval ("leveldesign" + level);
Instance of Symbol 68 MovieClip "moviebg" in Frame 25
onClipEvent (enterFrame) {
if (_parent.scroll) {
setProperty(this, _x , _x - 1);
if (_x < -300) {
setProperty(this, _x , 900);
}
}
}
Instance of Symbol 69 MovieClip "moviebg2" in Frame 25
onClipEvent (enterFrame) {
if (_parent.scroll) {
setProperty(this, _x , _x - 1);
if (_x < -300) {
setProperty(this, _x , 900);
}
}
}
Instance of Symbol 71 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (_parent.scroll) {
setProperty(this, _x , _x - 10);
if (_x < -300) {
setProperty(this, _x , 900);
}
}
}
Instance of Symbol 73 MovieClip "loch" in Frame 25
onClipEvent (load) {
setProperty("_parent.loch", _visible , false);
}
onClipEvent (enterFrame) {
if (((this.hittest(_parent.patrol) and (!_parent.patrol.jump)) and (_name ne "loch")) and _parent.scroll) {
_root.gelocht.start(0, 1);
_parent.scroll = false;
_parent.patrol.stop();
_parent.patrol;
setProperty("_parent.patrol", _x , _x - 20);
setProperty("_parent.patrol", _rotation , 45);
setProperty(this, _x , _x - 10);
} else if (_parent.scroll) {
setProperty(this, _x , _x - 10);
}
}
Instance of Symbol 74 MovieClip "tonne" in Frame 25
onClipEvent (load) {
setProperty("_parent.tonne", _visible , false);
}
onClipEvent (enterFrame) {
if (((this.hittest(_parent.patrol) and (_name ne "tonne")) and _parent.scroll) and (((_currentframe < 2) or (_currentframe == 15)) or (_currentframe >= 20))) {
_parent.scroll = false;
_parent.patrol.gotoAndPlay(13);
if (_currentframes == 15) {
removeMovieClip("_parent.patrolshot1" + i);
}
} else if ((!hit) and _parent.scroll) {
setProperty(this, _x , _x - speed);
}
i = 1;
while (i < 21) {
if (this.hittest(eval ("_parent.patrolshot1" + i)) and (_name ne "tonne")) {
if (_currentframe == 15) {
removeMovieClip("_parent.patrolshot1" + i);
}
if (_currentframe < 15) {
removeMovieClip("_parent.patrolshot1" + i);
hit = true;
play();
}
}
i++;
}
}
Instance of Symbol 75 MovieClip "hubschrauber" in Frame 25
onClipEvent (load) {
setProperty("_parent.hubschrauber", _visible , false);
hasshot = true;
}
onClipEvent (enterFrame) {
setProperty(this, _x , _x + richtung);
if ((0 < richtung) and (650 < _x)) {
removeMovieClip(_parent._name);
}
if ((richtung < 0) and (_x < -50)) {
removeMovieClip(_parent._name);
}
i = 21;
while (i < 32) {
if (this.hittest(eval ("_parent.patrolshot2" + i)) and (_name ne "hubschrauber")) {
if (_currentframe < 10) {
removeMovieClip("_parent.patrolshot2" + i);
gotoAndPlay (10);
}
if (_currentframe == 30) {
removeMovieClip("_parent.patrolshot2" + i);
gotoAndPlay (31);
}
}
i++;
}
if (((((getProperty(_parent.patrol, _x) < (_x + 5)) and ((_x - 5) < getProperty(_parent.patrol, _x))) and (_name ne "hubschrauber")) and (shotable ne "no")) and hasshot) {
hasshot = false;
_root.hubshotsound.start(0, 1);
_parent.hubshot.duplicateMovieClip("hubshot" + _parent.e, _parent.e);
removeMovieClip("_parent.hubshot" + (_parent.e + 1));
setProperty("_parent.hubshot" + _parent.e, _x , _x);
setProperty("_parent.hubshot" + _parent.e, _y , _y + 10);
_parent.e++;
}
if (222 < _parent.e) {
_parent.e = 200;
}
if (_currentframe >= 50) {
if (this.hittest(_parent.patrol)) {
_root.scroll = false;
_root.gotoAndStop(35);
_root.patrol.gotoAndStop(13);
}
}
}
Instance of Symbol 71 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (_parent.scroll) {
setProperty(this, _x , _x - 10);
if (_x < -300) {
setProperty(this, _x , 900);
}
}
}
Instance of Symbol 77 MovieClip "patrolshot1" in Frame 25
onClipEvent (load) {
setProperty("_parent.patrolshot1", _visible , false);
xpos = _x;
}
onClipEvent (enterFrame) {
setProperty(this, _x , _x + 12);
if ((xpos + 150) < _x) {
play();
}
}
Instance of Symbol 79 MovieClip "patrolshot2" in Frame 25
onClipEvent (load) {
setProperty("_parent.patrolshot2", _visible , false);
}
onClipEvent (enterFrame) {
setProperty(this, _x , _x + 8);
setProperty(this, _y , _y - 12);
if (_y < 0) {
removeMovieClip(_parent._name);
}
}
Instance of Symbol 85 MovieClip "hubshot" in Frame 25
onClipEvent (load) {
setProperty("_parent.hubshot", _visible , false);
}
onClipEvent (enterFrame) {
if (this.hittest(_root.patrol) and _root.scroll) {
_parent.scroll = false;
_root.patrol.gotoAndPlay(13);
play();
}
_parent._name;
if (346 < _y) {
play();
} else if (_name ne "hubshot") {
setProperty(this, _y , _y + 10);
}
}
Instance of Symbol 92 MovieClip "patrol" in Frame 25
onClipEvent (load) {
this.swapDepths(999);
init = -10;
ypos = _y;
i = 1;
s = 120;
q = 40;
w = 80;
item = 0;
time = 0;
frametime = getTimer();
frames = 0;
newitem = false;
}
onClipEvent (keyUp) {
pressspace = false;
}
onClipEvent (enterFrame) {
frames++;
if (20 < time) {
time = 0;
newitem = true;
nowcomes = leveldesign[item];
item++;
}
time++;
if (((nowcomes == 9) and newitem) and _parent.scroll) {
playtime = (getTimer() - frametime) / 1000;
_root.framesperseconds = Math.floor(frames / playtime) + " frames / seconds";
_root.gotoAndStop(43);
}
if (Key.isDown(38) and _parent.scroll) {
if (!jump) {
_root.jump.start(0, 1);
}
pressspace = true;
jump = true;
}
if (jump) {
calc = (init * init) - 100;
setProperty(this, _y , calc + ypos);
init++;
if (10 < init) {
jump = false;
init = -10;
}
}
if (((Key.isDown(37) and (50 < _x)) and (!jump)) and _parent.scroll) {
setProperty(this, _x , _x - 7);
}
if (((Key.isDown(39) and (_x < 500)) and (!jump)) and _parent.scroll) {
setProperty(this, _x , _x + 7);
}
if (((Key.isdown(32) and (!pressspace)) and (!jump)) and _parent.scroll) {
pressspace = true;
_root.shot.start(0, 1);
duplicateMovieClip ("_parent.patrolshot1", "patrolshot1" + i, i);
removeMovieClip("_parent.patrolshot1" + (i + 1));
setProperty("_parent.patrolshot1" + i, _x , _x + 40);
setProperty("_parent.patrolshot1" + i, _y , _y - 13);
duplicateMovieClip ("_parent.patrolshot2", "patrolshot2" + (i + 20), i + 20);
setProperty("_parent.patrolshot2" + (i + 20), _x , _x + 3);
setProperty("_parent.patrolshot2" + (i + 20), _y , _y - 30);
i++;
if (10 < i) {
i = 1;
}
}
if ((nowcomes == 1) and newitem) {
newitem = false;
duplicateMovieClip ("_parent.loch", "loch" + q, q);
removeMovieClip("_parent.loch" + (q + 1));
setProperty("_parent.loch" + q, _x , 650);
q++;
if (60 < q) {
q = 40;
}
}
if ((nowcomes == 2) and newitem) {
newitem = false;
duplicateMovieClip ("_parent.tonne", "tonne" + w, w);
removeMovieClip("_parent.tonne" + (w + 1));
setProperty("_parent.tonne" + w, _x , 650);
eval ("_parent.tonne" + w).speed = 10;
w++;
if (100 < w) {
w = 80;
}
}
if ((nowcomes == 8) and newitem) {
newitem = false;
duplicateMovieClip ("_parent.tonne", "tonne" + w, w);
removeMovieClip("_parent.tonne" + (w + 1));
setProperty("_parent.tonne" + w, _x , 650);
eval ("_parent.tonne" + w).gotoAndPlay(20);
eval ("_parent.tonne" + w).speed = 15;
w++;
if (100 < w) {
w = 80;
}
}
if ((nowcomes == 5) and newitem) {
newitem = false;
duplicateMovieClip ("_parent.tonne", "tonne" + w, w);
removeMovieClip("_parent.tonne" + (w + 1));
setProperty("_parent.tonne" + w, _x , 650);
eval ("_parent.tonne" + w).gotoAndStop(15);
w++;
if (100 < w) {
w = 80;
}
}
if ((nowcomes == 3) and newitem) {
newitem = false;
duplicateMovieClip ("_parent.hubschrauber", "hubschrauber" + s, s);
removeMovieClip("_parent.hubschrauber" + (s + 1));
setProperty("_parent.hubschrauber" + s, _x , -50);
eval ("_parent.hubschrauber" + s).richtung = 7;
s++;
}
if ((nowcomes == 4) and newitem) {
newitem = false;
duplicateMovieClip ("_parent.hubschrauber", "hubschrauber" + s, s);
setProperty("_parent.hubschrauber" + s, _x , 650);
setProperty("_parent.hubschrauber" + s, _y , 100);
setProperty("_parent.hubschrauber" + s, _xscale , -50);
eval ("_parent.hubschrauber" + s).richtung = -7;
s++;
}
if (139 < s) {
s = 120;
}
if ((nowcomes == 6) and newitem) {
newitem = false;
duplicateMovieClip ("_parent.hubschrauber", "hubschrauber" + s, s);
removeMovieClip("_parent.hubschrauber" + (s + 1));
setProperty("_parent.hubschrauber" + s, _x , -50);
eval ("_parent.hubschrauber" + s).richtung = 4;
eval ("_parent.hubschrauber" + s).shotable = "no";
eval ("_parent.hubschrauber" + s).gotoAndStop(30);
s++;
}
if ((nowcomes == 7) and newitem) {
newitem = false;
_root.alien.start(0, 1);
duplicateMovieClip ("_parent.hubschrauber", "hubschrauber" + s, s);
removeMovieClip("_parent.hubschrauber" + (s + 1));
setProperty("_parent.hubschrauber" + s, _x , 650);
eval ("_parent.hubschrauber" + s).richtung = -4;
eval ("_parent.hubschrauber" + s).shotable = "no";
eval ("_parent.hubschrauber" + s).gotoAndPlay(50);
s++;
}
if (!_root.scroll) {
_root.gotoAndPlay(35);
}
}
Frame 35
if (1 >= tanks) {
if (score2 < score) {
gotoAndStop (130);
} else {
gotoAndPlay (52);
}
}
Instance of Symbol 97 MovieClip in Frame 35
onClipEvent (load) {
time = getTimer();
pressed = false;
}
onClipEvent (keyUp) {
if (((time + 1000) < getTimer()) and (!pressed)) {
pressed = true;
i = 0;
while (i < 1000) {
removeMovieClip("_parent.hubschrauber" + i);
removeMovieClip("_parent.patrolshot1" + i);
removeMovieClip("_parent.patrolshot2" + i);
removeMovieClip("_parent.tonne" + i);
i++;
}
_root.levelsound.stop();
removeMovieClip(_parent.patrol);
play();
}
}
Frame 42
stop();
Frame 43
i = 0;
while (i < 1000) {
removeMovieClip("hubschrauber" + i);
removeMovieClip("patrolshot1" + i);
removeMovieClip("patrolshot2" + i);
removeMovieClip("tonne" + i);
removeMovieClip("patrol");
i++;
}
level++;
if (level == 6) {
level = 1;
}
stop();
Instance of Symbol 99 MovieClip in Frame 43
onClipEvent (load) {
time = getTimer();
pressed = false;
}
onClipEvent (keyUp) {
if (((time + 1000) < getTimer()) and (!pressed)) {
pressed = true;
_root.levelsound.stop();
removeMovieClip(_parent.patrol);
play();
}
}
Frame 52
i = 0;
while (i < 1000) {
removeMovieClip("hubschrauber" + i);
removeMovieClip("patrolshot1" + i);
removeMovieClip("patrolshot2" + i);
removeMovieClip("tonne" + i);
removeMovieClip("patrol");
i++;
}
_root.levelsound.stop();
Frame 125
gotoAndStop (5);
Frame 130
i = 0;
while (i < 1000) {
removeMovieClip("hubschrauber" + i);
removeMovieClip("patrolshot1" + i);
removeMovieClip("patrolshot2" + i);
removeMovieClip("tonne" + i);
removeMovieClip("patrol");
removeMovieClip("loch" + i);
i++;
}
Mouse.show();
_root.levelsound.stop();
removeMovieClip(patrol);
stop();
Symbol 17 Button
on (release) {
gotoAndStop (25);
}
Symbol 25 MovieClip Frame 12
gotoAndPlay (1);
Symbol 25 MovieClip Frame 25
stop();
Symbol 40 MovieClip Frame 9
gotoAndPlay (1);
Symbol 40 MovieClip Frame 10
_root.score = _root.score + 500;
Instance of Symbol 32 MovieClip in Symbol 40 MovieClip Frame 10
onClipEvent (load) {
if (_parent.richtung < 0) {
setProperty(this, _xscale , -100);
}
}
Symbol 40 MovieClip Frame 21
removeMovieClip(_parent._name);
stop();
Symbol 40 MovieClip Frame 30
stop();
Symbol 40 MovieClip Frame 31
_root.score = _root.score + 1000;
Symbol 40 MovieClip Frame 40
removeMovieClip(_parent._name);
stop();
Symbol 40 MovieClip Frame 95
gotoAndPlay (50);
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 2
_root.score = _root.score + 250;
Symbol 49 MovieClip Frame 10
removeMovieClip(_parent._name);
stop();
Instance of Symbol 48 MovieClip in Symbol 49 MovieClip Frame 20
onClipEvent (enterFrame) {
if (_root.scroll) {
setProperty(this, _rotation , _rotation - 20);
}
}
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 2
stop();
Symbol 68 MovieClip Frame 3
stop();
Symbol 68 MovieClip Frame 4
stop();
Symbol 68 MovieClip Frame 5
stop();
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 2
stop();
Symbol 69 MovieClip Frame 3
stop();
Symbol 69 MovieClip Frame 4
stop();
Symbol 69 MovieClip Frame 5
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 2
_root.score = _root.score + 250;
Symbol 74 MovieClip Frame 10
removeMovieClip(_parent._name);
stop();
Instance of Symbol 48 MovieClip in Symbol 74 MovieClip Frame 20
onClipEvent (enterFrame) {
if (_root.scroll) {
setProperty(this, _rotation , _rotation - 20);
}
}
Symbol 75 MovieClip Frame 9
gotoAndPlay (1);
Symbol 75 MovieClip Frame 10
_root.score = _root.score + 500;
Instance of Symbol 32 MovieClip in Symbol 75 MovieClip Frame 10
onClipEvent (load) {
if (_parent.richtung < 0) {
setProperty(this, _xscale , -100);
}
}
Symbol 75 MovieClip Frame 21
removeMovieClip(_parent._name);
stop();
Symbol 75 MovieClip Frame 30
stop();
Symbol 75 MovieClip Frame 31
_root.score = _root.score + 1000;
Symbol 75 MovieClip Frame 40
removeMovieClip(_parent._name);
stop();
Symbol 75 MovieClip Frame 95
gotoAndPlay (50);
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 7
removeMovieClip(_parent._name);
stop();
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 5
removeMovieClip(_parent._name);
Symbol 92 MovieClip Frame 12
gotoAndPlay (1);
Symbol 92 MovieClip Frame 25
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 89
i = 1;
while (i < 200) {
removeMovieClip("_root.loch" + i);
i++;
}
_root.tanks--;
_root.scroll = true;
_root.gotoAndStop(25);
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 89
_root.moviebg.nextFrame();
_root.moviebg2.nextFrame();
i = 1;
while (i < 200) {
removeMovieClip("_root.loch" + i);
i++;
}
_root.scroll = true;
_root.gotoAndStop(25);
Symbol 109 Button
on (release) {
loadVariablesNum ((("highscores.php3?name=" + name) + "&score=") + score, 0);
gotoAndStop (5);
}