Frame 1
function plus() {
kk++;
}
livesleft = 3;
planup = false;
bombup = 0;
bigcal = false;
speedup = 0;
setInterval(this, "plus", 700);
setInterval(this, "antiair", 600);
setInterval(this, "antiairship1", 600);
setInterval(this, "antiairship2", 600);
totalBytes = Math.round(getBytesTotal() / 1024);
loadedBytes = Math.round(getBytesLoaded() / 1024);
percentDone = Math.round((loadedBytes / totalBytes) * 100);
percentone = totalBytes / 100;
percent = Math.round(loadedBytes / percentone);
if (_root._framesloaded >= _root._totalframes) {
gotoAndPlay ("GAME");
}
Frame 2
gotoAndPlay (1);
Frame 7
mochi.as2.MochiAd.showInterLevelAd({id:"711677b69442e360", res:"700x550"});
Frame 8
stop();
_root._x = 0;
_root._y = 0;
kk = 2000;
_root.hus1.gotoAndStop(1);
_root.hus2.gotoAndStop(1);
_root.hus3.gotoAndStop(1);
_root.hus4.gotoAndStop(1);
bombsleft = 12 + bombup;
if (_root.level >= 1) {
gotoAndStop(_root.level + 8);
}
Instance of Symbol 149 MovieClip "gear" in Frame 8
onClipEvent (enterFrame) {
this.getNextHighestDepth;
}
Frame 9
_root.AAA.gotoAndStop(1);
_root.bomb.gotoAndStop(1);
_root.bulleti.gotoAndStop(1);
i = 0;
while (i < 10) {
_root["bomb" + i].gotoAndStop(60);
i++;
}
function krash() {
f++;
_root.junk.duplicateMovieClip("junk" + f, f);
}
function germankrash(lol) {
scale = random(100);
_root.attachMovie("smoken", "smoke" + n, n, {_x:lol._x, _y:lol._y, _rotation:-90, _xscale:scale, _yscale:scale});
n++;
}
function xplosion(lol) {
h = 0;
while (h < 25) {
_root.attachMovie("particle", "particle" + v, v, {_x:lol._x, _y:lol._y, _rotation:random(360)});
v++;
h++;
}
}
function gerbomb(lol, siffra) {
t = attachMovie("mine", "mine" + kk, kk + siffra);
t.speedy = 0;
t.speedx = -2;
t.gravity = 2;
t._x = lol._x;
t._y = lol._y;
(t.dead = false);
(t.onEnterFrame = mover);
mover = function () {
if (!this.dead) {
this.speedy = this.speedy + this.gravity;
this._y = this._y + (this.speedy / 5);
this._x = this._x + this.speedx;
if (this._rotation != 180) {
this._rotation = this._rotation - 2;
}
}
u = 0;
while (u < 8) {
if (_root["house" + u].hitTest(this._x, this._y, true)) {
this.speedy = 0;
this.speedx = 0;
_root["house" + u].gotoAndStop(2);
this.play();
this.dead = true;
}
u++;
}
if (_root.ground.hitTest(this._x, this._y, true)) {
this._rotation = 0;
if (!this.dead) {
this.play();
this.speedy = 0;
this.speedx = 0;
}
}
};
}
function antiair() {
if ((_root.plan._x - _root.AAA._x) >= -800) {
if ((_root.plan.dead == false) && (_root.AAA.dead == false)) {
duplicateMovieClip (_root.skott, "skott" + ki, ki);
ki++;
_root.AAA.gun.play();
}
}
}
function regunner() {
if (_root.plan.dead == false) {
duplicateMovieClip (_root.rearskott, "rearskott" + jj, jj);
jj++;
}
}
function fire() {
duplicateMovieClip (_root.bulleti, "bulleti" + mg, mg);
_root["bulleti" + mg]._yscale = 10;
_root["bulleti" + mg]._alpha = random(100);
mg++;
}
function cannonfire() {
duplicateMovieClip (_root.cannon, "cannon" + mg, mg);
_root["cannon" + mg]._alpha = random(100);
mg++;
}
function bomba() {
duplicateMovieClip (_root.bomb, "bomb" + k, k);
}
mg = 10;
k = 132;
j = 0;
jj = 555500 /* 0x0879EC */;
f = 1000;
n = 2000;
v = 3000;
kk = 4000;
ki = 5000;
score = 0;
level = 1;
s = 777;
bombsleft = 12 + _root.bombup;
_root.ground.gotoAndStop(1);
onEnterFrame = function () {
_root.gear.bomber = bombsleft;
_root.text._alpha = _root.text._alpha - 0.2;
_root.gear.disp = "$:" + score;
if (_root.bigcal == true) {
if (Key.isDown(67)) {
cannonfire();
_root.ljud.nextFrame();
}
}
if (_root.bigcal == false) {
if (Key.isDown(67)) {
fire();
_root.ljud.nextFrame();
}
}
j++;
if (j >= 20) {
if (Key.isDown(66)) {
if (bombsleft > 0) {
bombsleft--;
bomba();
k++;
j = 0;
}
}
}
if (mg >= 30) {
mg = 10;
}
if (jj >= 555555) {
jj = 555500 /* 0x0879EC */;
}
if (k >= 142) {
k = 132;
}
if (f > 2000) {
f = 1000;
}
if (f > 3000) {
f = 2000;
}
if (v > 4000) {
v = 3000;
}
if (kk >= 5000) {
kk = 4000;
}
if (ki >= 6000) {
ki = 5000;
}
if (_root.ground.hitTest(_root.plan._x, _root.plan._y, true)) {
_root.ljud.gotoAndStop(15);
krash();
_root.plan.speed = 0;
_root.plan.gotoAndStop(10);
if (livesleft <= 0) {
_root.gotoAndStop("dead");
}
if (livesleft > 0) {
_root.restart._x = _root.follower._x;
_root.restart._y = _root.follower._y;
_root.xplosion(_root.plan);
_root.gear.lives.nextFrame();
livesleft--;
}
}
if (_root.airfield.hitTest(_root.plan)) {
if (_root.plan.speed < 2) {
_root.plan._y = 324;
}
if (_root.plan.speed < 0.1) {
if (((_root.hus1.dead == true) & (_root.hus2.dead == true)) & (_root.hus3.dead == true)) {
_root.plan.gotoAndStop(10);
_root.plan._y = 324;
_root.gotoAndStop("shop");
}
}
}
};
Instance of Symbol 155 MovieClip "junk" in Frame 9
onClipEvent (load) {
this.swapDepths(_root.plan);
_x = _root.plan._x;
_y = _root.plan._y;
rand = random(100);
fisk = random(10);
_xscale = fisk;
_yscale = fisk;
}
onClipEvent (enterFrame) {
_alpha = rand;
rand = rand - 2;
_xscale = (_xscale + 0.1);
_yscale = (_yscale + 0.1);
_rotation = (_rotation+1);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
Instance of Symbol 165 MovieClip "enemy2" in Frame 9
onClipEvent (load) {
speed = 3;
hp = 10;
_rotation = 270;
dead = false;
}
onClipEvent (enterFrame) {
if ((_x < -72) && (_x > -550)) {
if (!dead) {
_root.gerbomb(this, 300);
}
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if (!dead) {
if (hp <= 0) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation-1);
speed = speed + 0.15;
_root.germankrash(this);
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
if (!dead) {
speed = 0;
play();
_rotation = 190;
ii++;
}
}
dx = _x - _root.plan._x;
dy = _y - _root.plan._y;
dax = dx * dx;
day = dy * dy;
alpha = day + dax;
distance = Math.sqrt(alpha);
}
Instance of Symbol 165 MovieClip "enemy3" in Frame 9
onClipEvent (load) {
speed = 3;
hp = 10;
_rotation = 270;
dead = false;
}
onClipEvent (enterFrame) {
if ((_x < -72) && (_x > -550)) {
if (!dead) {
_root.gerbomb(this, 500);
}
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if (!dead) {
if (hp <= 0) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation-1);
speed = speed + 0.15;
_root.germankrash(this);
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
if (!dead) {
speed = 0;
play();
_rotation = 190;
ii++;
}
}
dx = _x - _root.plan._x;
dy = _y - _root.plan._y;
dax = dx * dx;
day = dy * dy;
alpha = day + dax;
distance = Math.sqrt(alpha);
}
Instance of Symbol 165 MovieClip "enemy1" in Frame 9
onClipEvent (load) {
speed = 3;
hp = 10;
_rotation = 270;
dead = false;
}
onClipEvent (enterFrame) {
if ((_x < 72) && (_x > -550)) {
if (!dead) {
_root.gerbomb(this, 100);
}
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if (!dead) {
if (hp <= 0) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation-1);
speed = speed + 0.15;
_root.germankrash(this);
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
if (!dead) {
speed = 0;
play();
_rotation = 190;
ii++;
}
}
dx = _x - _root.plan._x;
dy = _y - _root.plan._y;
dax = dx * dx;
day = dy * dy;
alpha = day + dax;
distance = Math.sqrt(alpha);
}
Instance of Symbol 171 MovieClip "hus2" in Frame 9
onClipEvent (load) {
dead = false;
}
Instance of Symbol 171 MovieClip "hus1" in Frame 9
onClipEvent (load) {
dead = false;
}
Instance of Symbol 192 MovieClip "AAA" in Frame 9
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
dx = _x - _parent.plan._x;
dy = _y - _parent.plan._y;
angle = Math.atan2(dy, dx);
this.gun._rotation = ((angle * 180) / Math.PI) - 45;
}
Instance of Symbol 196 MovieClip "skott" in Frame 9
onClipEvent (load) {
_x = _root.AAA._x;
_y = _root.AAA._y;
tx = _root.plan._x;
ty = _root.plan._y;
yxa = random(100);
xxa = random(100);
dead = false;
_rotation = (_root.AAA.gun._rotation - 45);
krull = 1 + random(3);
_alpha = 100;
frasse = 20 + random(20);
rot = random(360);
this.swapDepths(_root.AAA);
}
onClipEvent (enterFrame) {
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if (_x <= tx) {
if (_y <= ty) {
dead = true;
gotoAndStop (2);
speed = 0;
_xscale = frasse;
_yscale = frasse;
_rotation = rot;
_y = (_y + yxa);
_x = (_x + xxa);
}
}
if (dead == true) {
_alpha = (_alpha - krull);
}
if (dead == false) {
speed = 30 + (rot / 100);
}
if (_alpha <= 1) {
this.removeMovieClip();
}
if (!dead) {
if (this.hitTest(_root.plan)) {
_root.xplosion(_root.plan);
_root.plan.hp--;
}
}
}
Instance of Symbol 198 MovieClip "rearskott" in Frame 9
onClipEvent (load) {
if (_root.plan.reargunner == true) {
_x = _root.plan._x;
_y = _root.plan._y;
}
rot = random(36);
dead = false;
_rotation = (_root.plan.rear._rotation - 45);
this.swapDepths(_root.plan);
}
onClipEvent (enterFrame) {
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if (dead == false) {
speed = 30 + rot;
}
if (!dead) {
i = 0;
while (i < 10) {
if (this.hitTest(_root["enemy" + i])) {
_root["enemy" + i].hp = _root["enemy" + i].hp - 0.1;
this.removeMovieClip();
}
i++;
}
}
if (!dead) {
if (_root.ground.hitTest(_x, _y, true)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 98 MovieClip "plan" in Frame 9
onClipEvent (load) {
speed = 0;
rota = 0;
speedy = 0;
grav = 2;
hp = 10;
dead = false;
_rotation = 90;
reargunner = false;
maxfart = 10 + _root.speedup;
if (_root.planup == true) {
this.gotoAndStop(11);
}
if (_root.planup == false) {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
_y = (_y + (speedy / 30));
if (!_root.airfield.hitTest(this)) {
speedy = speedy + grav;
if (speed < 1) {
_y = (_y + (speedy / 30));
speedy = speedy + grav;
}
}
if (speed > 3) {
speedy = speedy * 0.8;
}
if (speed == 10) {
speedy = 0;
}
if (!dead) {
i = 0;
while (i < 8) {
if (_root["hus" + i].hitTest(_x, _y, true)) {
_root["hus" + i].gotoAndStop(5);
hp = 0;
_root.krash();
_root.ljud.gotoAndStop(15);
}
i++;
}
}
if (!dead) {
u = 0;
while (u < 8) {
if (_root["house" + u].hitTest(_x, _y, true)) {
hp = 0;
_root.krash();
_root["house" + u].gotoAndStop(2);
_root.ljud.gotoAndStop(15);
}
u++;
}
}
if (Key.isDown(86)) {
if (this.reargunner == false) {
if (back == true) {
play();
} else if (back == false) {
play();
}
}
if (this.reargunner == true) {
if (back == true) {
play();
} else if (back == false) {
play();
}
}
}
if (_y < 300) {
if ((_rotation > 0) && (_rotation != 180)) {
if (speed < 1) {
_rotation = (_rotation+1);
}
}
} else if (speed > 2) {
_rotation = (_rotation + 0.2);
}
if (_y < 300) {
if ((_rotation < 0) && (_rotation != 180)) {
if (speed < 1) {
_rotation = (_rotation-1);
}
}
} else if (speed > 2) {
_rotation = (_rotation - 0.2);
}
if (!dead) {
if (Key.isDown(38)) {
speed = speed + 0.3;
}
if (Key.isDown(40)) {
speed = speed * 0.96;
}
}
if (!dead) {
if (Key.isDown(39)) {
if (speed < 1) {
_rotation = (_rotation + ((6 * speed) / 15));
} else {
_rotation = (_rotation + ((6 * speed) / 10));
}
speed = speed * 0.98;
}
if (Key.isDown(37)) {
if (speed < 1) {
_rotation = (_rotation - ((6 * speed) / 15));
} else {
_rotation = (_rotation - ((6 * speed) / 10));
}
speed = speed * 0.98;
}
}
d = 0;
while (d < 8) {
oscarA = _root["enemy" + d];
s = 0;
while (s < 8) {
oscarB = _root["enemy" + s];
tempA = eval (oscarA);
tempB = eval (oscarB);
if (tempA.distance < tempB.distance) {
if (_root.area.hitTest(tempA._x, tempA._y, true)) {
ddx = ((_x - tempA._x) + random(5)) - random(10);
ddy = ((_y - tempA._y) + random(5)) - random(10);
angle = Math.atan2(ddy, ddx);
this.rear._rotation = ((angle * 180) / Math.PI) - 45;
if (tempA.dead == false) {
if (this.reargunner == true) {
_root.regunner();
}
}
}
}
s++;
}
d++;
}
if (speed > maxfart) {
speed = maxfart;
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if ((this._x < (_root.ground._width - 1350)) && (this._x > ((_root.ground._width - _root.ground._width) - 500))) {
_root._x = (-_x) + 350;
_root.follower._x = _x;
_root.gear._x = _x;
}
if ((this._y > (_root.ful._height - _root.ful._height)) && (this._y < _root.ful._height)) {
_root._y = (-_y) + 200;
_root.follower._y = _y;
_root.gear._y = _y + 332;
}
if ((_rotation > -90) && (_rotation < 90)) {
speed = speed * 0.98;
if (maxfart > 9) {
maxfart = maxfart * 0.998;
}
}
if ((_rotation > 90) && (_rotation < 180)) {
maxfart = 12;
speed = speed + 0.1;
}
if ((_rotation < -90) && (_rotation > -180)) {
maxfart = 12;
speed = speed + 0.1;
}
if (hp < 1) {
dead = true;
_root.germankrash(this);
if ((_rotation > 0) && (_rotation != 180)) {
_rotation = (_rotation+1);
} else if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation-1);
}
}
}
Instance of Symbol 142 MovieClip "bomb" in Frame 9
onClipEvent (load) {
_x = _root.plan._x;
_y = (_root.plan._y + 10);
_rotation = _root.plan._rotation;
speed = _root.plan.speed;
speedy = 0;
grav = 2;
i = 0;
dead = false;
this.swapDepths(_root.plan);
}
onClipEvent (enterFrame) {
if ((_rotation != 180) && (_rotation > 0)) {
_rotation = (_rotation + 2);
}
if ((_rotation != 180) && (_rotation < 0)) {
_rotation = (_rotation - 2);
}
speed = speed * 0.9;
if (_root.ground.hitTest(this._x, this._y, true)) {
_rotation = 180;
if (!dead) {
_root.plan.shake = 2;
this.play();
speed = 0;
}
} else {
speedy = speedy + grav;
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
_y = (_y + (speedy / 5));
}
if (_root.AAA.hitTest(this)) {
if (!dead) {
_root.AAA.gotoAndPlay(2);
}
}
i = 0;
while (i < 8) {
if (_root["hus" + i].hitTest(_x, _y, true)) {
this.play();
speed = 0;
if (!dead) {
_root["hus" + i].gotoAndStop(5);
_rotation = 180;
}
}
i++;
}
u = 0;
while (u < 8) {
if (_root["house" + u].hitTest(_x, _y, true)) {
if (!dead) {
_root["house" + u].gotoAndStop(2);
this.play();
speed = 0;
_rotation = 180;
}
}
u++;
}
iu = 0;
while (iu < 3) {
if (_root["ship" + iu].hitTest(_x, _y, true)) {
if (!dead) {
_root["ship" + iu].play();
_root["ship" + iu].dead = true;
_root["ship" + iu].gun._y = _root["ship" + iu].gun._y + 1090;
this.play();
speed = 0;
_rotation = 180;
}
}
iu++;
}
}
Instance of Symbol 38 MovieClip [bullet] "bulleti" in Frame 9
onClipEvent (load) {
po = 9000;
i = 0;
_alpha = 100;
_x = _root.plan._x;
_y = _root.plan._y;
_rotation = _root.plan._rotation;
speed = (_root.plan.speed + 10) + random(10);
speedy = 0;
grav = 2;
this.swapDepths(_root.plan);
}
onClipEvent (enterFrame) {
po++;
if (po >= 10000) {
po = 9000;
}
speedy = speedy + grav;
if (_root.ground.hitTest(this._x, this._y, true)) {
speed = 0;
play();
_rotation = 0;
} else {
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
_y = (_y + (speedy / 18));
}
i = 0;
while (i < 10) {
if (_root["enemy" + i].hitTest(_x, _y, true)) {
_root["enemy" + i].hp--;
this.play();
}
i++;
}
u = 0;
while (u < 10) {
if (_root["zep" + u].hitTest(_x, _y, true)) {
_root["zep" + u].hp--;
}
u++;
}
}
Instance of Symbol 214 MovieClip "cannon" in Frame 9
onClipEvent (load) {
po = 9000;
i = 0;
_alpha = 100;
_x = _root.plan._x;
_y = _root.plan._y;
_rotation = _root.plan._rotation;
speed = (_root.plan.speed + 10) + random(10);
speedy = 0;
grav = 2;
this.swapDepths(_root.plan);
}
onClipEvent (enterFrame) {
speedy = speedy + grav;
if (_root.ground.hitTest(this._x, this._y, true)) {
speed = 0;
play();
_rotation = 0;
} else {
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
_y = (_y + (speedy / 18));
}
i = 0;
while (i < 10) {
if (_root["enemy" + i].hitTest(_x, _y, true)) {
_root["enemy" + i].hp = _root["enemy" + i].hp - 3;
}
i++;
}
u = 0;
while (u < 10) {
if (_root["zep" + u].hitTest(_x, _y, true)) {
_root["zep" + u].hp = _root["zep" + u].hp - 2;
}
u++;
}
}
Instance of Symbol 217 MovieClip "area" in Frame 9
onClipEvent (enterFrame) {
_x = _root.plan._x;
_y = _root.plan._y;
_alpha = 1;
_rotation = (_root.plan._rotation - 90);
if (_root.plan.back == true) {
_yscale = -100;
} else if (_root.plan.back == false) {
_yscale = 100;
}
}
Frame 10
_root.AAA.gotoAndStop(1);
_root.bomb.gotoAndStop(1);
_root.bulleti.gotoAndStop(1);
i = 0;
while (i < 20) {
_root["bomb" + i].gotoAndStop(60);
i++;
}
function krash() {
f++;
_root.junk.duplicateMovieClip("junk" + f, f);
}
function germankrash(lol) {
scale = random(100);
_root.attachMovie("smoken", "smoke" + n, n, {_x:lol._x, _y:lol._y, _rotation:-90, _xscale:scale, _yscale:scale});
n++;
}
function xplosion(lol) {
h = 0;
while (h < 25) {
_root.attachMovie("particle", "particle" + v, v, {_x:lol._x, _y:lol._y, _rotation:random(360)});
v++;
h++;
}
}
function gerbomb(lol, siffra) {
t = attachMovie("mine", "mine" + kk, kk + siffra);
t.speedy = 0;
t.speedx = -2;
t.gravity = 2;
t._x = lol._x;
t._y = lol._y;
(t.dead = false);
(t.onEnterFrame = mover);
mover = function () {
if (!this.dead) {
this.speedy = this.speedy + this.gravity;
this._y = this._y + (this.speedy / 5);
this._x = this._x + this.speedx;
if (this._rotation != 180) {
this._rotation = this._rotation - 2;
}
}
u = 0;
while (u < 8) {
if (_root["house" + u].hitTest(this._x, this._y, true)) {
this.speedy = 0;
this.speedx = 0;
_root["house" + u].gotoAndStop(2);
this.play();
this.dead = true;
}
u++;
}
if (_root.ground.hitTest(this._x, this._y, true)) {
this._rotation = 0;
if (!this.dead) {
this.play();
this.speedy = 0;
this.speedx = 0;
}
}
};
}
function plus() {
kk++;
}
function antiair() {
if ((_root.plan._x - _root.AAA._x) >= -800) {
if ((_root.plan.dead == false) && (_root.AAA.dead == false)) {
duplicateMovieClip (_root.skott, "skott" + ki, ki);
ki++;
_root.AAA.gun.play();
}
}
}
function fire() {
duplicateMovieClip (_root.bulleti, "bulleti" + mg, mg);
_root["bulleti" + mg]._yscale = 10;
_root["bulleti" + mg]._alpha = random(100);
mg++;
}
function cannonfire() {
duplicateMovieClip (_root.cannon, "cannon" + mg, mg);
_root["cannon" + mg]._alpha = random(100);
mg++;
}
function bomba() {
duplicateMovieClip (_root.bomb, "bomb" + k, k);
}
mg = 10;
k = 132;
j = 0;
jj = 555500 /* 0x0879EC */;
f = 1000;
n = 2000;
v = 3000;
kk = 4000;
ki = 5000;
kl = 10000000 /* 0x989680 */;
level = 2;
s = 777;
bombsleft = 12 + _root.bombup;
_root.ground.gotoAndStop(2);
onEnterFrame = function () {
_root.gear.bomber = bombsleft;
_root.text._alpha = _root.text._alpha - 0.2;
_root.gear.disp = "$:" + score;
if (_root.bigcal == true) {
if (Key.isDown(67)) {
cannonfire();
_root.ljud.nextFrame();
}
}
if (_root.bigcal == false) {
if (Key.isDown(67)) {
fire();
_root.ljud.nextFrame();
}
}
j++;
if (j >= 10) {
if (Key.isDown(66)) {
if (bombsleft > 0) {
bombsleft--;
bomba();
k++;
j = 0;
}
}
}
if (mg >= 30) {
mg = 10;
}
if (jj >= 555555) {
jj = 555500 /* 0x0879EC */;
}
if (k >= 142) {
k = 132;
}
if (f > 2000) {
f = 1000;
}
if (f > 3000) {
f = 2000;
}
if (v > 4000) {
v = 3000;
}
if (kk >= 5000) {
kk = 4000;
}
if (ki >= 6000) {
Set("k\u00F6", 5000);
}
if (_root.ground.hitTest(_root.plan._x, _root.plan._y, true)) {
_root.ljud.gotoAndStop(15);
krash();
_root.plan.speed = 0;
_root.plan.gotoAndStop(10);
if (livesleft <= 0) {
_root.gotoAndStop("dead");
}
if (livesleft > 0) {
_root.restart._x = _root.follower._x;
_root.restart._y = _root.follower._y;
_root.xplosion(_root.plan);
_root.gear.lives.nextFrame();
livesleft--;
}
}
if (_root.airfield.hitTest(_root.plan)) {
if (_root.plan.speed < 2) {
_root.plan._y = 324;
}
if (_root.plan.speed < 0.1) {
if (((_root.hus1.dead == true) & (_root.hus2.dead == true)) & (_root.hus3.dead == true)) {
_root.plan.gotoAndStop(10);
_root.plan._y = 324;
_root.gotoAndStop("shop");
}
}
}
};
Instance of Symbol 196 MovieClip "skott" in Frame 10
onClipEvent (load) {
_x = _root.AAA._x;
_y = _root.AAA._y;
tx = _root.plan._x;
ty = _root.plan._y;
yxa = random(100);
xxa = random(100);
dead = false;
_rotation = (_root.AAA.gun._rotation - 45);
krull = 1 + random(3);
_alpha = 100;
frasse = 20 + random(20);
rot = random(360);
this.swapDepths(_root.AAA);
}
onClipEvent (enterFrame) {
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if (_x <= tx) {
if (_y <= ty) {
dead = true;
gotoAndStop (2);
speed = 0;
_xscale = frasse;
_yscale = frasse;
_rotation = rot;
_y = (_y + yxa);
_x = (_x + xxa);
}
}
if (dead == true) {
_alpha = (_alpha - krull);
}
if (dead == false) {
speed = 30 + (rot / 100);
}
if (_alpha <= 1) {
this.removeMovieClip();
}
if (!dead) {
if (this.hitTest(_root.plan)) {
_root.xplosion(_root.plan);
_root.plan.hp--;
}
}
}
Instance of Symbol 165 MovieClip "enemy2" in Frame 10
onClipEvent (load) {
speed = 3;
hp = 10;
_rotation = 270;
dead = false;
}
onClipEvent (enterFrame) {
if ((_x < -72) && (_x > -550)) {
if (!dead) {
_root.gerbomb(this, 100);
}
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if (!dead) {
if (hp <= 0) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation-1);
speed = speed + 0.15;
_root.germankrash(this);
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
if (!dead) {
speed = 0;
play();
_rotation = 190;
ii++;
}
}
dx = _x - _root.plan._x;
dy = _y - _root.plan._y;
dax = dx * dx;
day = dy * dy;
alpha = day + dax;
distance = Math.sqrt(alpha);
}
Instance of Symbol 165 MovieClip "enemy4" in Frame 10
onClipEvent (load) {
speed = 3;
hp = 10;
_rotation = 270;
dead = false;
}
onClipEvent (enterFrame) {
if ((_x < -72) && (_x > -550)) {
if (!dead) {
_root.gerbomb(this, 100);
}
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if (!dead) {
if (hp <= 0) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation-1);
speed = speed + 0.15;
_root.germankrash(this);
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
if (!dead) {
speed = 0;
play();
_rotation = 190;
ii++;
}
}
dx = _x - _root.plan._x;
dy = _y - _root.plan._y;
dax = dx * dx;
day = dy * dy;
alpha = day + dax;
distance = Math.sqrt(alpha);
}
Instance of Symbol 165 MovieClip "enemy3" in Frame 10
onClipEvent (load) {
speed = 3;
hp = 10;
_rotation = 270;
dead = false;
}
onClipEvent (enterFrame) {
if ((_x < -72) && (_x > -550)) {
if (!dead) {
_root.gerbomb(this, 100);
}
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if (!dead) {
if (hp <= 0) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation-1);
speed = speed + 0.15;
_root.germankrash(this);
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
if (!dead) {
speed = 0;
play();
_rotation = 190;
ii++;
}
}
dx = _x - _root.plan._x;
dy = _y - _root.plan._y;
dax = dx * dx;
day = dy * dy;
alpha = day + dax;
distance = Math.sqrt(alpha);
}
Instance of Symbol 165 MovieClip "enemy1" in Frame 10
onClipEvent (load) {
speed = 3;
hp = 10;
_rotation = 270;
dead = false;
}
onClipEvent (enterFrame) {
if ((_x < -72) && (_x > -550)) {
if (!dead) {
_root.gerbomb(this, 100);
}
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if (!dead) {
if (hp <= 0) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation-1);
speed = speed + 0.15;
_root.germankrash(this);
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
if (!dead) {
speed = 0;
play();
_rotation = 190;
ii++;
}
}
dx = _x - _root.plan._x;
dy = _y - _root.plan._y;
dax = dx * dx;
day = dy * dy;
alpha = day + dax;
distance = Math.sqrt(alpha);
}
Instance of Symbol 227 MovieClip "zep1" in Frame 10
onClipEvent (load) {
speed = 0.5;
hp = 300;
_rotation = 270;
dead = false;
dead2 = false;
speedy = 0;
gravity = 2;
}
onClipEvent (enterFrame) {
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if ((hp <= 60) & (hp > 1)) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation - 0.1);
speed = speed + 0.02;
_root.germankrash(this);
}
}
if (hp <= 0) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation-1);
speed = speed + 0.2;
speedy = speedy + gravity;
_y = (_y + (speedy / 10));
if (!dead) {
if (!dead2) {
_root.germankrash(this);
this.play();
}
}
}
}
if (_root.ground.hitTest(this._x - 10, this._y, true)) {
speed = 0;
hp = 0;
speedy = speedy * -0.1;
if (!dead) {
this.play();
}
if (!dead2) {
this.gotoAndStop(15);
}
}
if (this.hitTest(_root.plan._x, _root.plan._y, true)) {
hp = 0;
_root.plan.hp = 0;
if (!dead) {
this.play();
}
}
}
Instance of Symbol 227 MovieClip "zep3" in Frame 10
onClipEvent (load) {
speed = 0.5;
hp = 300;
_rotation = 270;
dead = false;
dead2 = false;
speedy = 0;
gravity = 2;
}
onClipEvent (enterFrame) {
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if ((hp <= 60) & (hp > 1)) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation - 0.1);
speed = speed + 0.02;
_root.germankrash(this);
}
}
if (hp <= 0) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation-1);
speed = speed + 0.2;
speedy = speedy + gravity;
_y = (_y + (speedy / 10));
if (!dead) {
if (!dead2) {
_root.germankrash(this);
this.play();
}
}
}
}
if (_root.ground.hitTest(this._x - 10, this._y, true)) {
speed = 0;
hp = 0;
speedy = speedy * -0.1;
if (!dead) {
this.play();
}
if (!dead2) {
this.gotoAndStop(15);
}
}
if (this.hitTest(_root.plan._x, _root.plan._y, true)) {
hp = 0;
_root.plan.hp = 0;
if (!dead) {
this.play();
}
}
}
Frame 11
_root.AAA.gotoAndStop(1);
_root.bomb.gotoAndStop(1);
_root.bulleti.gotoAndStop(1);
_root.AAA._x = 3280.4;
_root.AAA._y = 343.5;
_root.skott._x = 3280.4;
_root.skott._y = 343.5;
i = 0;
while (i < 10) {
_root["bomb" + i].gotoAndStop(60);
i++;
}
function krash() {
f++;
_root.junk.duplicateMovieClip("junk" + f, f);
}
function germankrash(lol) {
scale = random(100);
_root.attachMovie("smoken", "smoke" + n, n, {_x:lol._x, _y:lol._y, _rotation:-90, _xscale:scale, _yscale:scale});
n++;
}
function xplosion(lol) {
h = 0;
while (h < 25) {
_root.attachMovie("particle", "particle" + v, v, {_x:lol._x, _y:lol._y, _rotation:random(360)});
v++;
h++;
}
}
function gerbomb(lol, siffra) {
t = attachMovie("mine", "mine" + kk, kk + siffra);
t.speedy = 0;
t.speedx = -2;
t.gravity = 2;
t._x = lol._x;
t._y = lol._y;
(t.dead = false);
(t.onEnterFrame = mover);
mover = function () {
if (!this.dead) {
this.speedy = this.speedy + this.gravity;
this._y = this._y + (this.speedy / 5);
this._x = this._x + this.speedx;
if (this._rotation != 180) {
this._rotation = this._rotation - 2;
}
}
u = 0;
while (u < 8) {
if (_root["house" + u].hitTest(this._x, this._y, true)) {
this.speedy = 0;
this.speedx = 0;
_root["house" + u].gotoAndStop(2);
this.play();
this.dead = true;
}
u++;
}
if (_root.ground.hitTest(this._x, this._y, true)) {
this._rotation = 0;
if (!this.dead) {
this.play();
this.speedy = 0;
this.speedx = 0;
}
}
};
}
function plus() {
kk++;
}
function antiair() {
if ((_root.plan._x - _root.AAA._x) >= -800) {
if ((_root.plan.dead == false) && (_root.AAA.dead == false)) {
duplicateMovieClip (_root.skott, "skott" + ki, ki);
ki++;
_root.AAA.gun.play();
}
}
}
function antiairship1() {
if ((_root.plan._x - _root.ship1._x) >= -1200) {
if ((_root.plan.dead == false) && (_root.ship1.dead == false)) {
duplicateMovieClip (_root.shipsk, "shipsk" + ki, ki);
ki++;
}
}
}
function antiairship2() {
if ((_root.plan._x - _root.ship2._x) >= -1200) {
if ((_root.plan.dead == false) && (_root.ship2.dead == false)) {
duplicateMovieClip (_root.shipsko, "shipsko" + ki, ki);
ki++;
}
}
}
function fire() {
duplicateMovieClip (_root.bulleti, "bulleti" + mg, mg);
_root["bulleti" + mg]._yscale = 10;
_root["bulleti" + mg]._alpha = random(100);
mg++;
}
function cannonfire() {
duplicateMovieClip (_root.cannon, "cannon" + mg, mg);
_root["cannon" + mg]._alpha = random(100);
mg++;
}
function bomba() {
duplicateMovieClip (_root.bomb, "bomb" + k, k);
}
mg = 10;
k = 132;
j = 0;
jj = 555500 /* 0x0879EC */;
f = 1000;
n = 2000;
v = 3000;
kk = 4000;
ki = 5000;
kl = 10000000 /* 0x989680 */;
level = 3;
s = 777;
bombsleft = 12 + _root.bombup;
_root.ground.gotoAndStop(3);
onEnterFrame = function () {
_root.gear.bomber = bombsleft;
_root.text._alpha = _root.text._alpha - 0.2;
_root.gear.disp = "$:" + score;
j++;
if (_root.bigcal == true) {
if (Key.isDown(67)) {
cannonfire();
_root.ljud.nextFrame();
}
}
if (_root.bigcal == false) {
if (Key.isDown(67)) {
fire();
_root.ljud.nextFrame();
}
}
if (j >= 10) {
if (Key.isDown(66)) {
if (bombsleft > 0) {
bombsleft--;
bomba();
k++;
j = 0;
}
}
}
if (mg >= 30) {
mg = 10;
}
if (jj >= 555555) {
jj = 555500 /* 0x0879EC */;
}
if (k >= 142) {
k = 132;
}
if (f > 2000) {
f = 1000;
}
if (f > 3000) {
f = 2000;
}
if (v > 4000) {
v = 3000;
}
if (kk >= 5000) {
kk = 4000;
}
if (ki >= 6000) {
Set("k\u00F6", 5000);
}
if (_root.ground.hitTest(_root.plan._x, _root.plan._y, true)) {
_root.ljud.gotoAndStop(15);
krash();
_root.plan.speed = 0;
_root.plan.gotoAndStop(10);
if (livesleft <= 0) {
_root.gotoAndStop("dead");
}
if (livesleft > 0) {
_root.restart._x = _root.follower._x;
_root.restart._y = _root.follower._y;
_root.xplosion(_root.plan);
_root.gear.lives.nextFrame();
livesleft--;
}
}
if (_root.airfield.hitTest(_root.plan)) {
if (_root.plan.speed < 2) {
_root.plan._y = 324;
}
if (_root.plan.speed < 0.1) {
if (((_root.hus1.dead == true) & (_root.hus2.dead == true)) & (_root.hus3.dead == true)) {
_root.plan.gotoAndStop(10);
_root.plan._y = 324;
_root.gotoAndStop("shop");
}
}
}
};
Instance of Symbol 233 MovieClip "ship2" in Frame 11
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
dx = _x - _parent.plan._x;
dy = _y - _parent.plan._y;
angle = Math.atan2(dy, dx);
this.gun._rotation = ((angle * 180) / Math.PI) - 90;
}
Instance of Symbol 233 MovieClip "ship1" in Frame 11
onClipEvent (load) {
dead = false;
this.swapDepths(_root.ground);
}
onClipEvent (enterFrame) {
dx = _x - _parent.plan._x;
dy = _y - _parent.plan._y;
angle = Math.atan2(dy, dx);
this.gun._rotation = ((angle * 180) / Math.PI) - 90;
}
Instance of Symbol 165 MovieClip "enemy2" in Frame 11
onClipEvent (load) {
speed = 3;
hp = 10;
_rotation = 270;
dead = false;
}
onClipEvent (enterFrame) {
if ((_x < -72) && (_x > -550)) {
if (!dead) {
_root.gerbomb(this, 300);
}
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if (!dead) {
if (hp <= 0) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation-1);
speed = speed + 0.15;
_root.germankrash(this);
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
if (!dead) {
speed = 0;
play();
_rotation = 190;
ii++;
}
}
dx = _x - _root.plan._x;
dy = _y - _root.plan._y;
dax = dx * dx;
day = dy * dy;
alpha = day + dax;
distance = Math.sqrt(alpha);
}
Instance of Symbol 165 MovieClip "enemy6" in Frame 11
onClipEvent (load) {
speed = 3;
hp = 10;
_rotation = 270;
dead = false;
}
onClipEvent (enterFrame) {
if ((_x < -72) && (_x > -550)) {
if (!dead) {
_root.gerbomb(this, 500);
}
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if (!dead) {
if (hp <= 0) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation-1);
speed = speed + 0.15;
_root.germankrash(this);
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
if (!dead) {
speed = 0;
play();
_rotation = 190;
ii++;
}
}
dx = _x - _root.plan._x;
dy = _y - _root.plan._y;
dax = dx * dx;
day = dy * dy;
alpha = day + dax;
distance = Math.sqrt(alpha);
}
Instance of Symbol 165 MovieClip "enemy4" in Frame 11
onClipEvent (load) {
speed = 3;
hp = 10;
_rotation = 270;
dead = false;
}
onClipEvent (enterFrame) {
if ((_x < -72) && (_x > -550)) {
if (!dead) {
_root.gerbomb(this, 100);
}
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if (!dead) {
if (hp <= 0) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation-1);
speed = speed + 0.15;
_root.germankrash(this);
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
if (!dead) {
speed = 0;
play();
_rotation = 190;
ii++;
}
}
}
Instance of Symbol 171 MovieClip "hus2" in Frame 11
onClipEvent (load) {
dead = false;
}
Instance of Symbol 171 MovieClip "hus1" in Frame 11
onClipEvent (load) {
dead = false;
}
Instance of Symbol 171 MovieClip "hus3" in Frame 11
onClipEvent (load) {
dead = false;
}
Instance of Symbol 165 MovieClip "enemy5" in Frame 11
onClipEvent (load) {
speed = 3;
hp = 10;
_rotation = 270;
dead = false;
}
onClipEvent (enterFrame) {
if ((_x < -72) && (_x > -550)) {
if (!dead) {
_root.gerbomb(this, 300);
}
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if (!dead) {
if (hp <= 0) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation-1);
speed = speed + 0.15;
_root.germankrash(this);
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
if (!dead) {
speed = 0;
play();
_rotation = 190;
ii++;
}
}
dx = _x - _root.plan._x;
dy = _y - _root.plan._y;
dax = dx * dx;
day = dy * dy;
alpha = day + dax;
distance = Math.sqrt(alpha);
}
Instance of Symbol 165 MovieClip "enemy3" in Frame 11
onClipEvent (load) {
speed = 3;
hp = 10;
_rotation = 270;
dead = false;
}
onClipEvent (enterFrame) {
if ((_x < -72) && (_x > -550)) {
if (!dead) {
_root.gerbomb(this, 500);
}
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if (!dead) {
if (hp <= 0) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation-1);
speed = speed + 0.15;
_root.germankrash(this);
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
if (!dead) {
speed = 0;
play();
_rotation = 190;
ii++;
}
}
dx = _x - _root.plan._x;
dy = _y - _root.plan._y;
dax = dx * dx;
day = dy * dy;
alpha = day + dax;
distance = Math.sqrt(alpha);
}
Instance of Symbol 165 MovieClip "enemy1" in Frame 11
onClipEvent (load) {
speed = 3;
hp = 10;
_rotation = 270;
dead = false;
}
onClipEvent (enterFrame) {
if ((_x < -72) && (_x > -550)) {
if (!dead) {
_root.gerbomb(this, 100);
}
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if (!dead) {
if (hp <= 0) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation-1);
speed = speed + 0.15;
_root.germankrash(this);
}
}
}
if (_root.ground.hitTest(this._x - 10, this._y, true)) {
if (!dead) {
speed = 0;
play();
_rotation = 190;
ii++;
}
}
dx = _x - _root.plan._x;
dy = _y - _root.plan._y;
dax = dx * dx;
day = dy * dy;
alpha = day + dax;
distance = Math.sqrt(alpha);
}
Instance of Symbol 196 MovieClip "shipsk" in Frame 11
onClipEvent (load) {
_x = _root.ship1._x;
_y = _root.ship1._y;
tx = _root.plan._x;
ty = _root.plan._y;
yxa = random(100);
xxa = random(100);
dead = false;
_rotation = _root.ship1.gun._rotation;
krull = 1 + random(3);
_alpha = 100;
frasse = 20 + random(20);
rot = random(360);
this.swapDepths(_root.ship1);
}
onClipEvent (enterFrame) {
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if (_x <= tx) {
if (_y <= ty) {
dead = true;
gotoAndStop (2);
speed = 0;
_xscale = frasse;
_yscale = frasse;
_rotation = rot;
_y = (_y + yxa);
_x = (_x + xxa);
}
}
if (dead == true) {
_alpha = (_alpha - krull);
}
if (dead == false) {
speed = 30 + (rot / 100);
}
if (_alpha <= 1) {
this.removeMovieClip();
}
if (!dead) {
if (this.hitTest(_root.plan)) {
_root.xplosion(_root.plan);
_root.plan.hp--;
}
}
}
Instance of Symbol 196 MovieClip "shipsko" in Frame 11
onClipEvent (load) {
_x = _root.ship2._x;
_y = _root.ship2._y;
tx = _root.plan._x;
ty = _root.plan._y;
yxa = random(100);
xxa = random(100);
dead = false;
_rotation = _root.ship2.gun._rotation;
krull = 1 + random(3);
_alpha = 100;
frasse = 20 + random(20);
rot = random(360);
this.swapDepths(_root.ship2);
}
onClipEvent (enterFrame) {
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if (_x <= tx) {
if (_y <= ty) {
dead = true;
gotoAndStop (2);
speed = 0;
_xscale = frasse;
_yscale = frasse;
_rotation = rot;
_y = (_y + yxa);
_x = (_x + xxa);
}
}
if (dead == true) {
_alpha = (_alpha - krull);
}
if (dead == false) {
speed = 30 + (rot / 100);
}
if (_alpha <= 1) {
this.removeMovieClip();
}
if (!dead) {
if (this.hitTest(_root.plan)) {
_root.xplosion(_root.plan);
_root.plan.hp--;
}
}
}
Instance of Symbol 227 MovieClip "zep2" in Frame 11
onClipEvent (load) {
speed = 0.5;
hp = 300;
_rotation = 270;
dead = false;
dead2 = false;
speedy = 0;
gravity = 2;
}
onClipEvent (enterFrame) {
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if ((hp <= 60) & (hp > 1)) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation - 0.1);
speed = speed + 0.02;
_root.germankrash(this);
}
}
if (hp <= 0) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation-1);
speed = speed + 0.2;
speedy = speedy + gravity;
_y = (_y + (speedy / 10));
if (!dead) {
if (!dead2) {
_root.germankrash(this);
this.play();
}
}
}
}
if (_root.ground.hitTest(this._x - 10, this._y, true)) {
speed = 0;
hp = 0;
speedy = speedy * -0.1;
if (!dead) {
this.play();
}
if (!dead2) {
this.gotoAndStop(15);
}
}
if (this.hitTest(_root.plan._x, _root.plan._y, true)) {
hp = 0;
_root.plan.hp = 0;
if (!dead) {
this.play();
}
}
}
Instance of Symbol 196 MovieClip "rearskott" in Frame 11
onClipEvent (load) {
if (_root.plan.reargunner == true) {
_x = _root.plan._x;
_y = _root.plan._y;
}
rot = random(36);
dead = false;
_rotation = (_root.plan.rear._rotation - 45);
this.swapDepths(_root.plan);
}
onClipEvent (enterFrame) {
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if (dead == false) {
speed = 30 + rot;
}
if (!dead) {
i = 0;
while (i < 10) {
if (this.hitTest(_root["enemy" + i])) {
_root["enemy" + i].hp = _root["enemy" + i].hp - 0.1;
this.removeMovieClip();
}
i++;
}
}
if (!dead) {
if (_root.ground.hitTest(_x, _y, true)) {
this.removeMovieClip();
}
}
}
Frame 12
_root.AAA.gotoAndStop(1);
_root.bomb.gotoAndStop(1);
_root.bulleti.gotoAndStop(1);
i = 0;
while (i < 10) {
_root["bomb" + i].gotoAndStop(60);
i++;
}
function krash() {
f++;
_root.junk.duplicateMovieClip("junk" + f, f);
}
function germankrash(lol) {
scale = random(100);
_root.attachMovie("smoken", "smoke" + n, n, {_x:lol._x, _y:lol._y, _rotation:-90, _xscale:scale, _yscale:scale});
n++;
}
function xplosion(lol) {
h = 0;
while (h < 25) {
_root.attachMovie("particle", "particle" + v, v, {_x:lol._x, _y:lol._y, _rotation:random(360)});
v++;
h++;
}
}
function gerbomb(lol, siffra) {
t = attachMovie("mine", "mine" + kk, kk + siffra);
t.speedy = 0;
t.speedx = -2;
t.gravity = 2;
t._x = lol._x;
t._y = lol._y;
(t.dead = false);
(t.onEnterFrame = mover);
mover = function () {
if (!this.dead) {
this.speedy = this.speedy + this.gravity;
this._y = this._y + (this.speedy / 5);
this._x = this._x + this.speedx;
if (this._rotation != 180) {
this._rotation = this._rotation - 2;
}
}
u = 0;
while (u < 8) {
if (_root["house" + u].hitTest(this._x, this._y, true)) {
this.speedy = 0;
this.speedx = 0;
_root["house" + u].gotoAndStop(2);
this.play();
this.dead = true;
}
u++;
}
if (_root.ground.hitTest(this._x, this._y, true)) {
this._rotation = 0;
if (!this.dead) {
this.play();
this.speedy = 0;
this.speedx = 0;
}
}
};
}
function plus() {
kk++;
}
function antiair() {
if ((_root.plan._x - _root.AAA._x) >= -800) {
if ((_root.plan.dead == false) && (_root.AAA.dead == false)) {
duplicateMovieClip (_root.skott, "skott" + ki, ki);
ki++;
_root.AAA.gun.play();
}
}
}
function fire() {
duplicateMovieClip (_root.bulleti, "bulleti" + mg, mg);
_root["bulleti" + mg]._yscale = 10;
_root["bulleti" + mg]._alpha = random(100);
mg++;
}
function cannonfire() {
duplicateMovieClip (_root.cannon, "cannon" + mg, mg);
_root["cannon" + mg]._alpha = random(100);
mg++;
}
function bomba() {
duplicateMovieClip (_root.bomb, "bomb" + k, k);
}
mg = 10;
k = 132;
j = 0;
jj = 555500 /* 0x0879EC */;
f = 1000;
n = 2000;
v = 3000;
kk = 4000;
ki = 5000;
kl = 10000000 /* 0x989680 */;
level = 4;
s = 777;
bombsleft = 12 + _root.bombup;
_root.ground.gotoAndStop(1);
setInterval(this, "plus", 700);
setInterval(this, "antiair", 500);
onEnterFrame = function () {
_root.gear.bomber = bombsleft;
_root.text._alpha = _root.text._alpha - 0.2;
_root.gear.disp = "$:" + score;
if (_root.bigcal == true) {
if (Key.isDown(67)) {
cannonfire();
_root.ljud.nextFrame();
}
}
if (_root.bigcal == false) {
if (Key.isDown(67)) {
fire();
_root.ljud.nextFrame();
}
}
j++;
if (j >= 10) {
if (Key.isDown(66)) {
if (bombsleft > 0) {
bombsleft--;
bomba();
k++;
j = 0;
}
}
}
if (mg >= 30) {
mg = 10;
}
if (jj >= 555555) {
jj = 555500 /* 0x0879EC */;
}
if (k >= 142) {
k = 132;
}
if (f > 2000) {
f = 1000;
}
if (f > 3000) {
f = 2000;
}
if (v > 4000) {
v = 3000;
}
if (kk >= 5000) {
kk = 4000;
}
if (ki >= 6000) {
Set("k\u00F6", 5000);
}
if (_root.ground.hitTest(_root.plan._x, _root.plan._y, true)) {
_root.ljud.gotoAndStop(15);
krash();
_root.plan.speed = 0;
_root.plan.gotoAndStop(10);
if (livesleft <= 0) {
_root.gotoAndStop("dead");
}
if (livesleft > 0) {
_root.restart._x = _root.follower._x;
_root.restart._y = _root.follower._y;
_root.xplosion(_root.plan);
_root.gear.lives.nextFrame();
livesleft--;
}
}
if (_root.airfield.hitTest(_root.plan)) {
if (_root.plan.speed < 2) {
_root.plan._y = 324;
}
if (_root.plan.speed < 0.1) {
if (((_root.hus1.dead == true) & (_root.hus2.dead == true)) & (_root.hus3.dead == true)) {
_root.plan.gotoAndStop(10);
_root.plan._y = 324;
_root.gotoAndStop("shop");
}
}
}
};
Instance of Symbol 227 MovieClip "zep1" in Frame 12
onClipEvent (load) {
speed = 0.5;
hp = 300;
_rotation = 270;
dead = false;
dead2 = false;
speedy = 0;
gravity = 2;
}
onClipEvent (enterFrame) {
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if ((hp <= 60) & (hp > 1)) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation - 0.1);
speed = speed + 0.02;
_root.germankrash(this);
}
}
if (hp <= 0) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation-1);
speed = speed + 0.2;
_root.germankrash(this);
speedy = speedy + gravity;
_y = (_y + (speedy / 10));
if (!dead) {
_root.jumper(this, 200);
this.play();
}
}
}
if (_root.ground.hitTest(this._x - 10, this._y, true)) {
speed = 0;
speedy = speedy * -0.1;
if (!dead) {
this.play();
}
if (!dead2) {
this.gotoAndStop(15);
}
}
if (this.hitTest(_root.plan._x, _root.plan._y, true)) {
hp = 0;
_root.plan.hp = 0;
if (!dead) {
this.play();
}
}
}
Instance of Symbol 227 MovieClip "zep2" in Frame 12
onClipEvent (load) {
speed = 0.5;
hp = 300;
_rotation = 270;
dead = false;
dead2 = false;
speedy = 0;
gravity = 2;
}
onClipEvent (enterFrame) {
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if ((hp <= 60) & (hp > 1)) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation - 0.1);
speed = speed + 0.02;
_root.germankrash(this);
}
}
if (hp <= 0) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation-1);
speed = speed + 0.2;
_root.germankrash(this);
speedy = speedy + gravity;
_y = (_y + (speedy / 10));
if (!dead) {
_root.jumper(this, 200);
this.play();
}
}
}
if (_root.ground.hitTest(this._x - 10, this._y, true)) {
speed = 0;
speedy = speedy * -0.1;
if (!dead) {
this.play();
}
if (!dead2) {
this.gotoAndStop(15);
}
}
if (this.hitTest(_root.plan._x, _root.plan._y, true)) {
hp = 0;
_root.plan.hp = 0;
if (!dead) {
this.play();
}
}
}
Instance of Symbol 227 MovieClip "zep3" in Frame 12
onClipEvent (load) {
speed = 0.5;
hp = 300;
_rotation = 270;
dead = false;
dead2 = false;
speedy = 0;
gravity = 2;
}
onClipEvent (enterFrame) {
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y + (Math.cos(_rotation * (Math.PI/180)) * (-speed)));
if ((hp <= 60) & (hp > 1)) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation - 0.1);
speed = speed + 0.02;
_root.germankrash(this);
}
}
if (hp <= 0) {
if ((_rotation < 0) && (_rotation != 180)) {
_rotation = (_rotation-1);
speed = speed + 0.2;
_root.germankrash(this);
speedy = speedy + gravity;
_y = (_y + (speedy / 10));
if (!dead) {
_root.jumper(this, 200);
this.play();
}
}
}
if (_root.ground.hitTest(this._x - 10, this._y, true)) {
speed = 0;
speedy = speedy * -0.1;
if (!dead) {
this.play();
}
if (!dead2) {
this.gotoAndStop(15);
}
}
if (this.hitTest(_root.plan._x, _root.plan._y, true)) {
hp = 0;
_root.plan.hp = 0;
if (!dead) {
this.play();
}
}
}
Frame 13
_root.gotoAndStop("end");
Frame 16
onEnterFrame = function () {
_root.shop["po\u00E4ng"] = "$" + _root.score;
};
stop();
_root._x = 0;
_root._y = 0;
_root.complete = (("Well done, you've finished them off! Level " + level) + " completed! $") + score;
Frame 17
stop();
_root._x = 0;
_root._y = 0;
Frame 20
stop();
Symbol 3 MovieClip [particle] Frame 1
temp = random(4) + 1;
if (temp == 1) {
gotoAndPlay ("1");
} else if (temp == 2) {
gotoAndPlay ("2");
} else if (temp == 3) {
gotoAndPlay ("3");
} else if (temp == 4) {
gotoAndPlay ("4");
}
Symbol 3 MovieClip [particle] Frame 16
gotoAndStop (56);
Symbol 3 MovieClip [particle] Frame 26
gotoAndStop (56);
Symbol 3 MovieClip [particle] Frame 39
gotoAndStop (56);
Symbol 3 MovieClip [particle] Frame 55
gotoAndStop (56);
Symbol 8 MovieClip [smoke] Frame 1
temp = random(4) + 1;
if (temp == 1) {
gotoAndPlay ("1");
} else if (temp == 2) {
gotoAndPlay ("2");
} else if (temp == 3) {
gotoAndPlay ("3");
}
Symbol 8 MovieClip [smoke] Frame 30
stop();
Symbol 8 MovieClip [smoke] Frame 50
stop();
Symbol 8 MovieClip [smoke] Frame 95
stop();
Symbol 9 MovieClip [debris] Frame 1
temp = random(3) + 1;
if (temp == 1) {
gotoAndPlay ("1");
} else if (temp == 2) {
gotoAndPlay ("2");
} else if (temp == 3) {
gotoAndPlay ("3");
}
Instance of Symbol 8 MovieClip [smoke] in Symbol 9 MovieClip [debris] Frame 4
onClipEvent (load) {
_xscale = mm;
_yscale = mm;
mm = random(7);
}
Instance of Symbol 8 MovieClip [smoke] in Symbol 9 MovieClip [debris] Frame 10
onClipEvent (load) {
_xscale = mm;
_yscale = mm;
mm = random(7);
}
Instance of Symbol 8 MovieClip [smoke] in Symbol 9 MovieClip [debris] Frame 14
onClipEvent (load) {
_xscale = mm;
_yscale = mm;
mm = random(7);
}
Symbol 9 MovieClip [debris] Frame 18
stop();
Instance of Symbol 8 MovieClip [smoke] in Symbol 9 MovieClip [debris] Frame 19
onClipEvent (load) {
_xscale = mm;
_yscale = mm;
mm = random(7);
}
Instance of Symbol 8 MovieClip [smoke] in Symbol 9 MovieClip [debris] Frame 20
onClipEvent (load) {
_xscale = mm;
_yscale = mm;
mm = random(7);
}
Instance of Symbol 8 MovieClip [smoke] in Symbol 9 MovieClip [debris] Frame 21
onClipEvent (load) {
_xscale = mm;
_yscale = mm;
mm = random(7);
}
Instance of Symbol 8 MovieClip [smoke] in Symbol 9 MovieClip [debris] Frame 22
onClipEvent (load) {
_xscale = mm;
_yscale = mm;
mm = random(7);
}
Instance of Symbol 8 MovieClip [smoke] in Symbol 9 MovieClip [debris] Frame 31
onClipEvent (load) {
_xscale = mm;
_yscale = mm;
mm = random(7);
}
Instance of Symbol 8 MovieClip [smoke] in Symbol 9 MovieClip [debris] Frame 34
onClipEvent (load) {
_xscale = mm;
_yscale = mm;
mm = random(7);
}
Instance of Symbol 8 MovieClip [smoke] in Symbol 9 MovieClip [debris] Frame 38
onClipEvent (load) {
_xscale = mm;
_yscale = mm;
mm = random(7);
}
Symbol 9 MovieClip [debris] Frame 46
stop();
Instance of Symbol 8 MovieClip [smoke] in Symbol 9 MovieClip [debris] Frame 48
onClipEvent (load) {
_xscale = mm;
_yscale = mm;
mm = random(7);
}
Instance of Symbol 8 MovieClip [smoke] in Symbol 9 MovieClip [debris] Frame 53
onClipEvent (load) {
_xscale = mm;
_yscale = mm;
mm = random(7);
}
Instance of Symbol 8 MovieClip [smoke] in Symbol 9 MovieClip [debris] Frame 57
onClipEvent (load) {
_xscale = mm;
_yscale = mm;
mm = random(7);
}
Symbol 9 MovieClip [debris] Frame 70
stop();
Symbol 11 MovieClip [mine] Frame 1
stop();
Symbol 11 MovieClip [mine] Frame 15
stop();
this.removeMovieClip();
Symbol 18 MovieClip [smoken] Frame 30
this.removeMovieClip();
Symbol 19 MovieClip [gasexpl] Frame 1
temp = random(4) + 1;
if (temp == 1) {
gotoAndPlay ("1");
} else if (temp == 2) {
gotoAndPlay ("2");
} else if (temp == 3) {
gotoAndPlay ("3");
}
Symbol 19 MovieClip [gasexpl] Frame 20
gotoAndStop (46);
Symbol 19 MovieClip [gasexpl] Frame 40
gotoAndStop (46);
Symbol 19 MovieClip [gasexpl] Frame 45
gotoAndStop (46);
Symbol 19 MovieClip [gasexpl] Frame 46
stop();
Symbol 38 MovieClip [bullet] Frame 1
stop();
Symbol 38 MovieClip [bullet] Frame 2
stop();
temp = random(3) + 1;
if (temp == 1) {
gotoAndPlay ("1");
} else if (temp == 2) {
gotoAndPlay ("2");
} else if (temp == 3) {
gotoAndPlay ("3");
}
Symbol 38 MovieClip [bullet] Frame 30
stop();
this.removeMovieClip();
Symbol 38 MovieClip [bullet] Frame 60
stop();
this.removeMovieClip();
Symbol 38 MovieClip [bullet] Frame 74
stop();
this.removeMovieClip();
Symbol 48 MovieClip Frame 35
stop();
Symbol 51 MovieClip Frame 1
this._visible = false;
Symbol 55 MovieClip Frame 1
_root.stop();
Symbol 55 MovieClip Frame 3
xyb1 = _root.getBytesLoaded();
xyb2 = _root.getBytesTotal();
xytgFrame = Math.round((xyb1 / xyb2) * 100) + 1;
prelbar.gotoAndStop(xytgFrame);
Symbol 55 MovieClip Frame 5
if ((xyb1 >= xyb2) && (xyb2 > 50)) {
stop();
_root.starter._alpha = 100;
} else {
gotoAndPlay ("xloop1");
}
Symbol 58 Button
on (release) {
getURL ("http://www.dailyfreegames.com/", "_blank");
}
Symbol 62 Button
on (press) {
_root.gotoAndStop(7);
_root.gear.j = 0;
}
Symbol 282 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("3.0 as2");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
if (_local7._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 2
stop();
Symbol 75 MovieClip Frame 3
stop();
Symbol 80 Button
on (press) {
nextFrame();
}
Symbol 91 MovieClip Frame 1
stop();
if (this._parent.back == true) {
gotoAndStop (2);
}
if (this._parent.back == false) {
gotoAndStop (1);
}
Symbol 91 MovieClip Frame 2
stop();
Symbol 98 MovieClip Frame 1
stop();
back = false;
reargunner = false;
Symbol 98 MovieClip Frame 6
stop();
back = true;
Symbol 98 MovieClip Frame 9
gotoAndStop (1);
Symbol 98 MovieClip Frame 10
stop();
this.removeMovieClip();
Symbol 98 MovieClip Frame 11
stop();
reargunner = true;
back = false;
Symbol 98 MovieClip Frame 17
stop();
back = true;
Symbol 98 MovieClip Frame 22
gotoAndStop (11);
Symbol 98 MovieClip Frame 23
stop();
reargunner = true;
back = false;
Symbol 98 MovieClip Frame 27
stop();
back = true;
Symbol 98 MovieClip Frame 31
gotoAndStop (23);
Symbol 104 Button
on (press) {
_root.info.gotoAndStop(2);
}
Symbol 112 Button
on (press) {
_root.info.gotoAndStop(1);
}
Symbol 117 Button
on (press) {
_root.info.nextFrame();
}
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 2
stop();
Symbol 130 MovieClip Frame 3
stop();
Symbol 130 MovieClip Frame 4
stop();
Symbol 130 MovieClip Frame 5
stop();
Symbol 137 MovieClip Frame 1
stop();
if (_root.livesleft == 2) {
gotoAndStop (2);
}
if (_root.livesleft == 1) {
gotoAndStop (3);
}
if (_root.livesleft == 0) {
gotoAndStop (4);
}
Symbol 137 MovieClip Frame 2
stop();
Symbol 137 MovieClip Frame 3
stop();
Symbol 137 MovieClip Frame 4
stop();
Symbol 141 MovieClip Frame 20
stop();
Symbol 142 MovieClip Frame 1
stop();
Instance of Symbol 9 MovieClip [debris] in Symbol 142 MovieClip Frame 2
onClipEvent (load) {
_xscale = mm;
_yscale = mm;
mm = random(0.7);
}
Instance of Symbol 9 MovieClip [debris] in Symbol 142 MovieClip Frame 2
onClipEvent (load) {
_xscale = mm;
_yscale = mm;
mm = random(0.7);
}
Instance of Symbol 9 MovieClip [debris] in Symbol 142 MovieClip Frame 2
onClipEvent (load) {
_xscale = mm;
_yscale = mm;
mm = random(0.7);
}
Instance of Symbol 9 MovieClip [debris] in Symbol 142 MovieClip Frame 2
onClipEvent (load) {
_xscale = mm;
_yscale = mm;
mm = random(0.7);
}
Symbol 142 MovieClip Frame 60
stop();
this.dead = true;
this.removeMovieClip();
Symbol 149 MovieClip Frame 1
loop = new Sound(this);
loop.attachSound("truth");
loop.start(0, 0);
slider.control._y = 100;
slider.control.onEnterFrame = function () {
loop.setVolume(this._y);
};
slider.control.onPress = function () {
startDrag (this, false, this._x, 0, this._x, 100);
};
slider.control.onRelease = (slider.control.onReleaseOutside = function () {
stopDrag();
});
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 2
stop();
Symbol 159 MovieClip Frame 3
stop();
Symbol 159 MovieClip Frame 4
stop();
Symbol 159 MovieClip Frame 5
stop();
Symbol 159 MovieClip Frame 6
stop();
Symbol 159 MovieClip Frame 7
stop();
Symbol 159 MovieClip Frame 8
stop();
Symbol 159 MovieClip Frame 9
stop();
Symbol 159 MovieClip Frame 10
stop();
Symbol 159 MovieClip Frame 11
gotoAndStop (2);
Symbol 159 MovieClip Frame 15
stop();
Symbol 159 MovieClip Frame 16
gotoAndStop (2);
Symbol 161 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 30
gotoAndStop (1);
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 2
dead = true;
Symbol 165 MovieClip Frame 30
stop();
_root.score = _root.score + 1;
dead = true;
this.removeMovieClip();
Symbol 171 MovieClip Frame 1
dead = false;
stop();
this.gotoAndStop(random(3) + 1);
Symbol 171 MovieClip Frame 2
stop();
dead = false;
Symbol 171 MovieClip Frame 3
stop();
dead = false;
Symbol 171 MovieClip Frame 4
stop();
dead = false;
Symbol 171 MovieClip Frame 5
_root.score = _root.score + 1;
this.dead = true;
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 2
_root.score--;
Symbol 184 Button
on (press) {
getURL ("http://www.dailyfreegames.com", "blank");
}
Symbol 188 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 2
this.dead = true;
Symbol 192 MovieClip Frame 20
_root.score++;
Symbol 192 MovieClip Frame 30
stop();
Symbol 196 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 2
stop();
Symbol 201 Button
on (press) {
_root.gotoAndStop(8);
}
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 11
stop();
this.removeMovieClip();
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 10
stop();
_root.score++;
this.dead = true;
Symbol 227 MovieClip Frame 15
stop();
this.dead2 = true;
this.removeMovieClip();
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 30
stop();
this.gun.removeMovieClip();
Symbol 234 Button
on (press) {
_root.gotoAndStop(_root.level + 9);
}
Symbol 241 Button
on (press) {
_root.shop.gotoAndStop(2);
}
Symbol 244 Button
on (press) {
_root.shop.gotoAndStop(1);
}
Symbol 248 Button
on (press) {
if (_root.score >= 6) {
if (_root.planup == false) {
_root.planup = true;
_root.score = _root.score - 6;
}
}
}
on (rollOver) {
_root.shop.desc = "new aircraft w. rear gunner $6";
}
on (rollOut) {
_root.desc = "";
}
Symbol 250 Button
on (press) {
if (_root.livesleft < 3) {
if (_root.score >= 4) {
_root.livesleft++;
_root.gear.lives.prevFrame();
_root.score = _root.score - 4;
}
}
}
on (rollOver) {
_root.shop.desc = "In times of need. HP ++, $4";
}
on (rollOut) {
_root.desc = "";
}
Symbol 255 Button
on (press) {
if (_root.score >= 2) {
_root.speedup++;
_root.score = _root.score - 2;
}
}
on (rollOver) {
_root.shop.desc = "Max Speed ++, $2";
}
on (rollOut) {
_root.desc = "";
}
Symbol 257 Button
on (press) {
if (_root.planup == true) {
_root.planup = false;
}
}
on (rollOver) {
_root.shop.desc = "good ol' standard plane";
}
on (rollOut) {
_root.desc = "";
}
Symbol 263 Button
on (press) {
if (_root.score >= 1) {
_root.bombup++;
_root.score = _root.score - 1;
}
}
on (rollOver) {
_root.shop.desc = "More bombs for the people! $1 each!";
}
on (rollOut) {
_root.desc = "";
}
Symbol 265 Button
on (press) {
if (_root.score >= 8) {
if (_root.bigcal == false) {
_root.bigcal = true;
_root.score = _root.score - 8;
}
}
}
on (rollOver) {
_root.shop.desc = "Big gun for Big boys, .30 cal, $8";
}
on (rollOut) {
_root.desc = "";
}
Symbol 266 MovieClip Frame 1
stop();
Symbol 272 Button
on (press) {
gotoAndStop (2);
livesleft = 3;
_root.gear.lives.gotoAndStop(1);
}
Symbol 275 Button
on (press) {
gotoAndStop ("main");
livesleft = 3;
level = 0;
_root.gear.lives.gotoAndStop(1);
_root.planup = false;
_root.bombup = 0;
_root.bigcal = false;
_root.score = 0;
}