Frame 1
factor = _root.getBytesLoaded() / _root.getBytesTotal();
percent.text = Math.floor(factor * 100) + "%";
if (factor >= 1) {
_root.gotoAndStop(3);
}
Frame 2
_root.gotoAndPlay(1);
Frame 3
stop();
best = 0;
Frame 4
gotoAndPlay (1);
Frame 6
stop();
Frame 7
restart = false;
scrollSpeed = 10;
movieHeight = 300;
movieWidth = 500;
stop();
Instance of Symbol 48 MovieClip in Frame 7
onClipEvent (load) {
scrollSpeed = _root.scrollSpeed;
}
onClipEvent (enterFrame) {
if (_root.helicopter.scrollStart == true) {
this._x = this._x - scrollSpeed;
if (this.hit(_root.helicopter)) {
_root.helicopter.broken = true;
_root.helicopter.yspeed = 0;
_root.helicopter.gravity = 0;
_root.helicopter.scrollStart = false;
_root.helicopter.play();
}
if (this._x <= 0) {
this.removeMovieClip();
}
}
if (_root.restart == true) {
this.removeMovieClip();
}
}
Instance of Symbol 52 MovieClip "wallBlock" in Frame 7
onClipEvent (load) {
scrollSpeed = _root.scrollSpeed;
}
onClipEvent (enterFrame) {
if ((this._name != "wallBlock") && (_root.helicopter.scrollStart == true)) {
this._x = this._x - scrollSpeed;
if (this.hitTest(_root.helicopter)) {
_root.helicopter.broken = true;
_root.helicopter.yspeed = 0;
_root.helicopter.gravity = 0;
_root.helicopter.scrollStart = false;
_root.helicopter.play();
}
if (this._x <= -30) {
this.removeMovieClip();
}
}
if (_root.restart == true) {
this.removeMovieClip();
}
}
Instance of Symbol 56 MovieClip "blockController" in Frame 7
onClipEvent (load) {
y1 = this._y;
y1Max = (_root.movieHeight - (this._height / 2)) - 5;
y1Min = (this._height / 2) + 5;
range = y1Max - y1Min;
y2 = random(range) + (this._height / 2);
x = random(30) + 30;
ySpeed = (y2 - y1) / x;
shrinkSpeed = 0.08;
}
onClipEvent (enterFrame) {
if (_root.helicopter.scrollStart == true) {
y1 = this._y;
y1Max = (_root.movieHeight - (this._height / 2)) - 5;
y1Min = (this._height / 2) + 5;
range = y1Max - y1Min;
if (((y2 + 5) >= y1) && (y1 >= (y2 - 5))) {
y2 = random(range) + (this._height / 2);
x = random(60) + 1;
ySpeed = (y2 - y1) / x;
}
this._y = this._y + ySpeed;
if (this._height > 180) {
this._height = this._height - shrinkSpeed;
}
}
if (_root.restart == true) {
this.removeMovieClip();
}
}
Instance of Symbol 81 MovieClip "obstacle" in Frame 7
onClipEvent (load) {
scrollSpeed = _root.scrollSpeed;
}
onClipEvent (enterFrame) {
if ((this._name != "obstacle") && (_root.helicopter.scrollStart == true)) {
this._x = this._x - scrollSpeed;
if (this.hitTest(_root.helicopter)) {
this.a.play();
_root.helicopter.broken = true;
_root.helicopter.yspeed = 0;
_root.helicopter.gravity = 0;
_root.helicopter.scrollStart = false;
_root.helicopter.play();
_root.obstacle.gotoAndStop(205);
}
if (this._x <= 0) {
this.removeMovieClip();
}
}
if (_root.restart == true) {
this.removeMovieClip();
}
}
Instance of Symbol 82 MovieClip "wallA" in Frame 7
onClipEvent (load) {
scrollSpeed = _root.scrollSpeed;
}
onClipEvent (enterFrame) {
if (_root.helicopter.scrollStart == true) {
this._x = this._x - scrollSpeed;
if (this.hitTest(_root.helicopter)) {
_root.helicopter.broken = true;
_root.helicopter.yspeed = 0;
_root.helicopter.gravity = 0;
_root.helicopter.scrollStart = false;
_root.helicopter.play();
}
if (this._x <= 0) {
this.removeMovieClip();
}
}
if (_root.restart == true) {
this.removeMovieClip();
}
}
Instance of Symbol 15 MovieClip in Frame 7
onClipEvent (load) {
scrollSpeed = _root.scrollSpeed;
}
onClipEvent (enterFrame) {
if (_root.helicopter.scrollStart == true) {
this._x = this._x - scrollSpeed;
if (this._x <= 0) {
this.removeMovieClip();
}
}
if (_root.restart == true) {
this.removeMovieClip();
}
}
Instance of Symbol 83 MovieClip "WallB" in Frame 7
onClipEvent (load) {
scrollSpeed = _root.scrollSpeed;
}
onClipEvent (enterFrame) {
if (_root.helicopter.scrollStart == true) {
this._x = this._x - scrollSpeed;
if (this.hitTest(_root.helicopter)) {
_root.helicopter.broken = true;
_root.helicopter.yspeed = 0;
_root.helicopter.gravity = 0;
_root.helicopter.scrollStart = false;
_root.helicopter.play();
}
if (this._x <= 0) {
this.removeMovieClip();
}
}
if (_root.restart == true) {
this.removeMovieClip();
}
}
Instance of Symbol 92 MovieClip "helicopter" in Frame 7
onClipEvent (load) {
this.swapDepths(500);
_root.trail._visible = false;
depthCounter = 1;
gravity = 0;
friction = 0.9;
scrollx = _root.mainGround.ground._width / 2;
scrollStart = false;
maxScrollSpeed = 30;
trailStart = 10;
upSound = new Sound();
upSound.attachSound("upSound");
downSound = new Sound();
downSound.attachSound("downSound");
}
onClipEvent (mouseDown) {
fly = true;
if (broken != true) {
downSound.stop();
upSound.start();
upSound.setVolume(40);
}
}
onClipEvent (mouseUp) {
fly = false;
if (broken != true) {
upSound.stop();
downSound.start();
downSound.setVolume(5);
}
}
onClipEvent (enterFrame) {
if (broken != true) {
scrollSpeed = ((this._x / _root.mainGround.ground._width) * maxScrollSpeed) + 2;
if ((fly == true) && (crashed != true)) {
yspeed = yspeed - 2;
gravity = 1.25;
scrollStart = true;
this._rotation = -2;
}
if (fly == false) {
this._rotation = 1;
}
if (scrollStart == true) {
_root.trail.duplicateMovieClip("trail" + depthCounter, depthCounter);
_root["trail" + depthCounter]._visible = true;
_root["trail" + depthCounter]._y = this._y;
depthCounter++;
if (depthCounter >= 99) {
depthCounter = 1;
}
}
yspeed = yspeed + gravity;
yspeed = yspeed * friction;
if (((_y + yspeed) + (_height / 2)) >= _root.wall1._y) {
_y = (_root.wall1._y - (_height / 2));
broken = true;
yspeed = 0;
gravity = 0;
scrollStart = false;
this.gotoAndPlay("floor");
} else if (_root.wall3._y >= ((_y + yspeed) - (_height / 2))) {
_y = (_root.wall3._y + (_height / 2));
yspeed = -yspeed;
} else {
_y = (_y + yspeed);
}
if (((_x + xspeed) + (_width / 2)) >= _root.wall2._x) {
_x = (_root.wall2._x - (_width / 2));
xspeed = -xspeed;
} else if (_root.wall4._x >= ((_x + xspeed) - (_width / 2))) {
_x = (_root.wall4._x + (_width / 2));
xspeed = -xspeed;
} else {
_x = (_x + xspeed);
}
xspeed = xspeed * friction;
}
if (_root.restart == true) {
this.removeMovieClip();
}
}
Instance of Symbol 94 MovieClip "trail" in Frame 7
onClipEvent (load) {
trailMoveSpeed = _root.scrollSpeed;
this._y = _root.helicopter._y;
this._x = (_root.helicopter._x - (_root.helicopter._width / 2)) - 4;
}
onClipEvent (enterFrame) {
if (this._name != "trail") {
this._x = this._x - trailMoveSpeed;
if (this._x < 40) {
this.removeMovieClip();
}
}
}
Instance of Symbol 96 MovieClip in Frame 7
onClipEvent (load) {
scrollSpeed = _root.scrollSpeed;
}
onClipEvent (enterFrame) {
if (_root.helicopter.scrollStart == true) {
this._x = this._x - scrollSpeed;
if (this.hitTest(_root.helicopter)) {
_root.helicopter.broken = true;
_root.helicopter.yspeed = 0;
_root.helicopter.gravity = 0;
_root.helicopter.scrollStart = false;
_root.helicopter.play();
}
if (this._x <= 0) {
this.removeMovieClip();
}
}
if (_root.restart == true) {
this.removeMovieClip();
}
}
Instance of Symbol 98 MovieClip in Frame 7
onClipEvent (load) {
scrollSpeed = _root.scrollSpeed;
}
onClipEvent (enterFrame) {
if (_root.helicopter.scrollStart == true) {
this._x = this._x - scrollSpeed;
if (this.hitTest(_root.helicopter)) {
_root.helicopter.broken = true;
_root.helicopter.yspeed = 0;
_root.helicopter.gravity = 0;
_root.helicopter.scrollStart = false;
_root.helicopter.play();
}
if (this._x <= 0) {
this.removeMovieClip();
}
}
if (_root.restart == true) {
this.removeMovieClip();
}
}
Instance of Symbol 100 MovieClip in Frame 7
onClipEvent (load) {
depthCounter = 100;
flag = false;
}
onClipEvent (enterFrame) {
if (_root.helicopter.scrollStart == true) {
if (flag == false) {
flag = true;
_root.wallBlock.duplicateMovieClip("wallBlock" + depthCounter, depthCounter);
_root.wallBlock.duplicateMovieClip(("wallBlock" + depthCounter) + 1, depthCounter + 1);
_root["wallBlock" + depthCounter]._y = (_root.blockController._y - (_root.blockController._height / 2)) - (_root.wallBlock._height / 2);
_root[("wallBlock" + depthCounter) + 1]._y = (_root.blockController._y + (_root.blockController._height / 2)) + (_root.wallBlock._height / 2);
}
if (((_root.wallBlock._x - (0.75 * _root.wallBlock._width)) >= _root["wallBlock" + depthCounter]._x) && (_root["wallBlock" + depthCounter]._x >= (_root.wallBlock._x - (1.25 * _root.wallBlock._width)))) {
depthCounter = depthCounter + 2;
if (depthCounter >= 299) {
depthCounter = 100;
}
_root.wallBlock.duplicateMovieClip("wallBlock" + depthCounter, depthCounter);
_root.wallBlock.duplicateMovieClip(("wallBlock" + depthCounter) + 1, depthCounter + 1);
_root["wallBlock" + depthCounter]._y = (_root.blockController._y - (_root.blockController._height / 2)) - (_root.wallBlock._height / 2);
_root[("wallBlock" + depthCounter) + 1]._y = (_root.blockController._y + (_root.blockController._height / 2)) + (_root.wallBlock._height / 2);
}
}
}
Instance of Symbol 101 MovieClip in Frame 7
onClipEvent (load) {
depthCounter = 400;
flag = false;
}
onClipEvent (enterFrame) {
if (_root.helicopter.scrollStart == true) {
if (flag == false) {
flag = true;
_root.obstacle.duplicateMovieClip("obstacle" + depthCounter, depthCounter);
_root["obstacle" + depthCounter]._y = random(100) + 100;
}
if (((_root.movieWidth / 2) >= _root["obstacle" + depthCounter]._x) && (((_root.movieWidth / 2) - _root.obstacle._width) >= _root["obstacle" + depthCounter]._x)) {
depthCounter++;
if (depthCounter >= 420) {
depthCounter = 400;
}
_root.obstacle.duplicateMovieClip("obstacle" + depthCounter, depthCounter);
_root["obstacle" + depthCounter]._y = random(100) + 100;
}
}
}
Instance of Symbol 91 MovieClip in Frame 7
onClipEvent (mouseDown) {
this.nextFrame();
}
Instance of Symbol 107 MovieClip "scor" in Frame 7
onClipEvent (load) {
this.swapDepths(1000);
distance = 0;
}
onClipEvent (enterFrame) {
if (_root.helicopter.scrollStart == true) {
distance = distance + 1;
}
if (_root.restart == true) {
if (_root.best < distance) {
_root.best = distance;
}
this.removeMovieClip();
}
}
Frame 8
restart = true;
_root.score = _root.scor.distance;
Frame 9
stop();
loadMovieNum ("http://www.mili-tary.de/games/werbcop.swf", 10);
Symbol 5 MovieClip [startText] Frame 1
stop();
Symbol 5 MovieClip [startText] Frame 2
stop();
Symbol 31 Button
on (release) {
gotoAndPlay (7);
}
Symbol 39 Button
on (release) {
getURL ("http://www.mili-tary.de", "_blank");
}
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 14
stop();
Symbol 81 MovieClip Frame 70
stop();
_root.obstacle.a.play();
Symbol 91 MovieClip Frame 14
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 2
play();
downSound.stop();
upSound.stop();
Symbol 92 MovieClip Frame 15
_root.nextFrame();
Symbol 114 Button
on (release) {
play();
}
Symbol 128 Button
on (release) {
unloadMovieNum (10);
_root.gotoAndPlay(7);
}
Symbol 129 MovieClip Frame 20
stop();