Frame 1
gravity = 0;
points = 0;
Instance of Symbol 20 MovieClip "art" in Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
setProperty(this, _x , this._x + 0.7);
}
if (Key.isDown(Key.LEFT)) {
setProperty(this, _x , this._x - 0.7);
}
if (Key.isDown(Key.DOWN)) {
setProperty(this.gun, _rotation , this.gun._rotation + rotspeed);
xmove = xmove + 0.0275;
angle = angle - rotspeed;
if (angle < 90) {
ymove = ymove - 0.0275;
}
if (90 < angle) {
ymove = ymove + 0.0275;
}
}
if (Key.isDown(Key.UP)) {
setProperty(this.gun, _rotation , this.gun._rotation - rotspeed);
xmove = xmove - 0.0275;
angle = angle + rotspeed;
if (90 < angle) {
ymove = ymove - 0.0275;
}
if (angle < 90) {
ymove = ymove + 0.0275;
}
}
if (Key.isDown(Key.SPACE) && (150 < reload)) {
setProperty(_root.shell, _x , this._x);
setProperty(_root.shell, _y , this._y);
_root.explode = 0;
_root.shell.isfired = 1;
_root.shell.ymove = this.ymove * velocity;
_root.shell.xmove = this.xmove * velocity;
reload = 0;
tellTarget (this.gun) {
play();
};
}
}
onClipEvent (load) {
rotspeed = 0.25;
xmove = 0;
ymove = 10;
velocity = 1;
reload = 150;
angle = 90;
}
onClipEvent (enterFrame) {
reload = reload + 1;
velocity = (_root.slider._x - 20.35) / 40;
}
Instance of Symbol 22 MovieClip "shell" in Frame 1
onClipEvent (load) {
n = 1;
delay2 = 0;
flag = 0;
decay = 0;
isfired = 0;
debrisamount = 15;
smokeamount = 8;
wind = 0;
}
onClipEvent (enterFrame) {
if (isfired == 1) {
if (delay2 < 30) {
delay2++;
}
n++;
if ((this.hitTest(_root.ground) || (this.hitTest(_root.plane) && (flag == 0))) || (this.hitTest(_root.bound))) {
setProperty(_root.boom, _x , this._x);
setProperty(_root.boom, _y , this._y);
tellTarget (_root.boom) {
gotoAndPlay (1);
};
n++;
duplicateMovieClip (_root.smoke2, "smoke2" + n, n);
setProperty("_root.smoke2" + n, _x , this._x);
setProperty("_root.smoke2" + n, _y , this._y - 5);
x = 0;
while (x < debrisamount) {
n++;
duplicateMovieClip (_root.deb, "deb" + n, n);
setProperty("_root.deb" + n, _x , this._x);
setProperty("_root.deb" + n, _y , this._y);
x++;
}
x = 0;
while (x < smokeamount) {
n++;
duplicateMovieClip (_root.smoke3, "smoke3" + n, n);
setProperty("_root.smoke3" + n, _x , this._x + (random(10) - 5));
setProperty("_root.smoke3" + n, _y , (this._y + (random(10) - 5)) - 5);
x++;
}
_root.explode = 1;
setProperty(this, _y , -100);
setProperty(this, _x , -100);
delay = 0;
n = 1;
flag = 0;
decay = 0;
wind = 0;
delay2 = 0;
isfired = 0;
}
o = 0;
while (o < 10) {
if (this.hitTest("_root.building" + o) && (flag == 0)) {
setProperty(_root.boom, _x , this._x);
setProperty(_root.boom, _y , this._y);
tellTarget (_root.boom) {
gotoAndPlay (1);
};
n++;
duplicateMovieClip (_root.smoke2, "smoke2" + n, n);
setProperty("_root.smoke2" + n, _x , this._x);
setProperty("_root.smoke2" + n, _y , this._y - 5);
x = 0;
while (x < debrisamount) {
n++;
duplicateMovieClip (_root.deb, "deb" + n, n);
setProperty("_root.deb" + n, _x , this._x);
setProperty("_root.deb" + n, _y , this._y);
x++;
}
x = 0;
while (x < smokeamount) {
n++;
duplicateMovieClip (_root.smoke3, "smoke3" + n, n);
setProperty("_root.smoke3" + n, _x , this._x + (random(10) - 5));
setProperty("_root.smoke3" + n, _y , (this._y + (random(10) - 5)) - 5);
x++;
}
_root.explode = 1;
setProperty(this, _y , -100);
setProperty(this, _x , -100);
delay = 0;
n = 1;
flag = 0;
decay = 0;
wind = 0;
delay2 = 0;
isfired = 0;
}
o++;
}
this._y = ((this._y - ymove) + _root.gravity) + decay;
this._x = (this._x + xmove) + wind;
wind = wind + ((_root.slider2._x - 330) / 1000);
if (4 < delay2) {
duplicateMovieClip (_root.smoke, "smoke" + n, n);
setProperty("_root.smoke" + n, _rotation , random(360));
setProperty("_root.smoke" + n, _alpha , _root.smoke._alpha - random(5));
decay = decay + 0.1;
}
}
}
Instance of Symbol 24 MovieClip "smoke" in Frame 1
onClipEvent (load) {
setProperty(this, _x , _root.shell._x);
setProperty(this, _y , _root.shell._y);
}
onClipEvent (enterFrame) {
if (19 < this._currentframe) {
removeMovieClip(this);
}
}
Instance of Symbol 56 MovieClip "deb" in Frame 1
onClipEvent (load) {
xmove = (random(50) / 10) - 2.5;
ymove = ((random(50) / 10) + 5) * -1;
rot = random(20) + 5;
rebound = ymove / 2;
setProperty(this, _alpha , 100);
}
onClipEvent (enterFrame) {
setProperty(this, _x , this._x + xmove);
setProperty(this, _y , this._y + ymove);
setProperty(this, _rotation , this._rotation + rot);
ymove = ymove + 0.2;
if (this.hitTest(_root.ground)) {
ymove = rebound;
rebound = rebound * 0.6;
rot = rot * 0.25;
xmove = xmove * 0.5;
setProperty(this, _alpha , this._alpha - 0.5);
if (0 >= this._alpha) {
removeMovieClip(this);
}
}
}
Instance of Symbol 80 MovieClip "smoke3" in Frame 1
onClipEvent (load) {
speed = 0.1;
xmove = ((random(30) / 10) - 1.5) * speed;
ymove = (random(4) + 2) * speed;
setProperty(this, _alpha , 70);
}
onClipEvent (enterFrame) {
setProperty(this, _x , this._x + xmove);
setProperty(this, _y , this._y - ymove);
setProperty(this, _alpha , this._alpha - 1);
}
onClipEvent (enterFrame) {
if (this._alpha < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 88 MovieClip "building1" in Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.shell)) {
play();
_root.points = _root.points + 5;
}
}
Instance of Symbol 99 MovieClip "building2" in Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.shell)) {
play();
_root.points = _root.points + 2;
}
}
Instance of Symbol 106 MovieClip "plane" in Frame 1
onClipEvent (load) {
hit = 0;
drop = 0;
rot = -0.5;
speed = 5;
gotoAndStop(random(6) + 1);
n = 0;
boom = 0;
}
onClipEvent (enterFrame) {
setProperty(this, _x , this._x + speed);
setProperty(this, _y , this._y + drop);
if (this.hitTest(_root.shell)) {
drop = -1;
hit = 1;
_root.points = _root.points + 15;
}
if ((hit == 1) && (this._y < 370)) {
drop = drop + 0.04;
setProperty(this, _rotation , this._rotation + rot);
rot = rot + 0.016;
speed = speed - 0.015;
n = n + 1;
duplicateMovieClip (_root.psmoke, "psmoke" + n, n);
setProperty("_root.psmoke" + n, _rotation , random(360));
setProperty("_root.psmoke" + n, _alpha , _root.psmoke._alpha - random(5));
}
if (380 < this._y) {
hit = 0;
drop = 0;
rot = -0.5;
speed = 5;
n = n + 1;
boom = 0;
setProperty(_root.plane, _x , -100);
setProperty(_root.plane, _y , 150);
_root.nathan.delay = 0;
setProperty(this, _rotation , 180);
gotoAndStop(random(6) + 1);
}
if ((370 < this._y) && (boom == 0)) {
duplicateMovieClip (_root.boom2, "boom2" + n, n);
setProperty("_root.boom2" + n, _x , this._x);
setProperty("_root.boom2" + n, _y , this._y);
boom = 1;
x = 0;
while (x < 15) {
n = n + 1;
duplicateMovieClip (_root.pgib, "pgib" + n, n);
setProperty("_root.pgib" + n, _x , this._x);
setProperty("_root.pgib" + n, _y , this._y);
n = n + 1;
duplicateMovieClip (_root.smoket, "smoket" + n, n);
setProperty("_root.smoket" + n, _x , (this._x + random(45)) - 22.5);
setProperty("_root.smoket" + n, _y , this._y + 10);
setProperty("_root.smoket" + n, _rotation , random(360));
tellTarget ("_root.smoket" + n) {
gotoAndPlay(random(4) + 1);
};
x++;
}
}
}
Instance of Symbol 108 MovieClip "nathan" in Frame 1
onClipEvent (load) {
delay = 0;
delay2 = 0;
infantry = 5;
m = 1000000 /* 0x0F4240 */;
randomi = random(50);
}
onClipEvent (enterFrame) {
delay = delay + 1;
delay2 = delay2 + 1;
if ((300 < delay) && (_root.plane.hit == 0)) {
setProperty(_root.plane, _x , -100);
setProperty(_root.plane, _y , 150);
tellTarget (_root.plane) {
gotoAndStop(random(6) + 1);
};
delay = 0;
}
if (((250 + randomi) < delay2) && (0 < infantry)) {
m = m + 1;
duplicateMovieClip (_root.soldier, "soldier" + m, m);
setProperty("_root.soldier" + m, _x , 675);
setProperty("_root.soldier" + m, _y , 373.3);
infantry = infantry - 1;
delay2 = 0;
randomi = random(50);
}
}
Instance of Symbol 109 MovieClip "psmoke" in Frame 1
onClipEvent (load) {
setProperty(this, _x , _root.plane._x);
setProperty(this, _y , _root.plane._y);
}
onClipEvent (enterFrame) {
if (19 < this._currentframe) {
removeMovieClip(this);
}
}
Instance of Symbol 116 MovieClip "smokel" in Frame 1
onClipEvent (load) {
setProperty(this, _x , _root.shell._x);
setProperty(this, _y , _root.shell._y);
}
onClipEvent (enterFrame) {
if (19 < this._currentframe) {
removeMovieClip(this);
}
}
Instance of Symbol 117 MovieClip "pgib" in Frame 1
onClipEvent (load) {
xmove = (random(50) / 10) - 2.5;
ymove = ((random(50) / 10) + 5) * -1;
rot = random(20) + 5;
rebound = ymove / 2;
setProperty(this, _alpha , 100);
}
onClipEvent (enterFrame) {
setProperty(this, _x , this._x + xmove);
setProperty(this, _y , this._y + ymove);
setProperty(this, _rotation , this._rotation + rot);
ymove = ymove + 0.2;
setProperty(this, _alpha , this._alpha - 3);
if (0 >= this._alpha) {
removeMovieClip(this);
}
if (this.hitTest(_root.ground)) {
ymove = rebound;
rebound = rebound * 0.6;
rot = rot * 0.25;
xmove = xmove * 0.5;
}
}
Instance of Symbol 118 MovieClip "smoket" in Frame 1
onClipEvent (load) {
speed = 0.1;
xmove = ((random(30) / 10) - 1.5) * speed;
ymove = (random(4) + 0.5) * speed;
setProperty(this, _alpha , 70);
}
onClipEvent (enterFrame) {
setProperty(this, _x , this._x + xmove);
setProperty(this, _y , this._y - ymove);
setProperty(this, _alpha , this._alpha - 1);
}
onClipEvent (enterFrame) {
if (this._alpha < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 124 MovieClip "building3" in Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.shell)) {
play();
_root.points = _root.points + 7;
}
}
Instance of Symbol 133 MovieClip "building4" in Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.shell) || (this.hittest(_root.boom))) {
play();
_root.points = _root.points + 2;
}
}
Instance of Symbol 164 MovieClip "soldier" in Frame 1
onClipEvent (load) {
speed = 0.6;
alive = 1;
}
onClipEvent (enterFrame) {
if (alive == 1) {
setProperty(this, _x , this._x - speed);
if (speed == 0) {
gotoAndStop (6);
}
if ((this.hb.hitTest(_root.boom) || (this.hb.hitTest(_root.plane))) || (this.hb.hitTest(_root.art))) {
gotoAndPlay (20);
alive = 0;
}
if (this.fov.hitTest(_root.art)) {
speed = 0;
tellTarget (this.m16) {
play();
};
} else {
speed = 0.6;
play();
}
}
}
Instance of Symbol 171 MovieClip "building5" in Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.shell)) {
play();
_root.points = _root.points + 4;
}
}
Instance of Symbol 192 MovieClip "building6" in Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.shell)) {
play();
_root.points = _root.points + 6;
}
}
Symbol 18 MovieClip Frame 1
stop();
Symbol 18 MovieClip Frame 16
gotoAndStop (1);
Symbol 24 MovieClip Frame 20
stop();
removeMovieClip(this);
Symbol 30 MovieClip Frame 12
stop();
Symbol 41 MovieClip Frame 1
gotoAndStop(random(10) + 1);
Symbol 55 MovieClip Frame 1
gotoAndStop(random(10) + 1);
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 2
stop();
Symbol 56 MovieClip Frame 3
stop();
Symbol 56 MovieClip Frame 4
stop();
Symbol 62 Button
on (press) {
startDrag (_root.slider1, false, 20, 31.1, 183, 31.1);
}
on (release) {
stopDrag();
}
Symbol 69 MovieClip Frame 50
stop();
Symbol 80 MovieClip Frame 1
gotoAndStop(random(11) + 1);
Symbol 83 MovieClip Frame 20
stop();
removeMovieClip(this);
Symbol 86 MovieClip Frame 20
stop();
removeMovieClip(this);
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 2
stop();
Symbol 88 MovieClip Frame 3
stop();
Symbol 88 MovieClip Frame 4
play();
Symbol 88 MovieClip Frame 170
stop();
Symbol 88 MovieClip Frame 171
prevFrame();
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 2
stop();
Symbol 99 MovieClip Frame 21
stop();
Symbol 99 MovieClip Frame 42
stop();
Symbol 99 MovieClip Frame 43
prevFrame();
Symbol 109 MovieClip Frame 20
stop();
removeMovieClip(this);
Symbol 111 Button
on (press) {
startDrag (_root.slider2, false, 252, 31.1, 413, 31.1);
}
on (release) {
stopDrag();
}
Symbol 116 MovieClip Frame 20
stop();
removeMovieClip(this);
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 2
stop();
Symbol 117 MovieClip Frame 3
stop();
Symbol 117 MovieClip Frame 4
stop();
Symbol 118 MovieClip Frame 1
gotoAndStop(random(11) + 1);
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 2
stop();
Symbol 124 MovieClip Frame 3
stop();
Symbol 124 MovieClip Frame 4
stop();
Symbol 124 MovieClip Frame 46
stop();
Symbol 124 MovieClip Frame 47
gotoAndStop (47);
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 17
stop();
Symbol 133 MovieClip Frame 18
prevFrame();
stop();
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 91
gotoAndStop (1);
Symbol 158 MovieClip Frame 1
gotoAndStop(random(10) + 1);
Symbol 164 MovieClip Frame 19
gotoAndPlay (1);
Symbol 164 MovieClip Frame 39
stop();
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 2
stop();
Symbol 171 MovieClip Frame 3
stop();
Symbol 171 MovieClip Frame 4
stop();
Symbol 171 MovieClip Frame 5
stop();
Symbol 171 MovieClip Frame 6
prevFrame();
Symbol 192 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 2
stop();
Symbol 192 MovieClip Frame 3
stop();
Instance of Symbol 179 MovieClip in Symbol 192 MovieClip Frame 3
onClipEvent (load) {
gotoAndPlay (5);
}
Instance of Symbol 180 MovieClip in Symbol 192 MovieClip Frame 3
onClipEvent (load) {
gotoAndPlay (9);
}
Instance of Symbol 181 MovieClip in Symbol 192 MovieClip Frame 3
onClipEvent (load) {
gotoAndPlay (13);
}
Instance of Symbol 180 MovieClip in Symbol 192 MovieClip Frame 3
onClipEvent (load) {
gotoAndPlay (9);
}
Instance of Symbol 183 MovieClip in Symbol 192 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay(random(19));
}
Instance of Symbol 184 MovieClip in Symbol 192 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay (3);
}
Instance of Symbol 186 MovieClip in Symbol 192 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay (6);
}
Instance of Symbol 187 MovieClip in Symbol 192 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay (8);
}
Instance of Symbol 188 MovieClip in Symbol 192 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay (14);
}
Instance of Symbol 189 MovieClip in Symbol 192 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay (18);
}
Instance of Symbol 183 MovieClip in Symbol 192 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay(random(19));
}
Instance of Symbol 183 MovieClip in Symbol 192 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay(random(19));
}
Instance of Symbol 183 MovieClip in Symbol 192 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay(random(19));
}
Instance of Symbol 183 MovieClip in Symbol 192 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay(random(19));
}
Instance of Symbol 183 MovieClip in Symbol 192 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay(random(19));
}
Symbol 192 MovieClip Frame 20
stop();
Symbol 192 MovieClip Frame 21
stop();
Symbol 192 MovieClip Frame 22
prevFrame();