Frame 1
function updateFrameRate() {
if (counter == updateRate) {
var _local2 = getTimer();
var _local3 = (_local2 - startTime) / 1000;
var _local1 = updateRate / _local3;
_local1 = Math.floor(_local1 * precision) / precision;
_level0.fps_txt.text = "FPS: " + _local1;
startTime = _local2;
counter = 1;
} else {
counter++;
}
}
var counter = 1;
var startTime = getTimer();
var updateRate = 6;
var precision = 1;
precision = Math.pow(10, precision);
_level0.createTextField("fps_txt", _level0.getNextHighestDepth(), 510, 5, 100, 22);
onEnterFrame = function () {
updateFrameRate();
};
stop();
onEnterFrame = function () {
var _local2 = 0;
if (_root.starti == 1) {
delete _root.onEnterFrame;
_root.gotoAndStop(2);
}
};
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
var link = 0;
__com_mochibot__("99ae06b9", this, 10301, true);
mochi.MochiServices.connect("c3fe62eb7c774604");
Instance of Symbol 161 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 3) {
_root.starti = 1;
}
}
Frame 2
gotoAndStop ("splash1");
Frame 3
stop();
Frame 4
function updateFrameRate() {
if (counter == updateRate) {
var _local2 = getTimer();
var _local3 = (_local2 - startTime) / 1000;
var _local1 = updateRate / _local3;
_local1 = Math.floor(_local1 * precision) / precision;
_level0.fps_txt.text = "FPS: " + _local1;
startTime = _local2;
counter = 1;
} else {
counter++;
}
}
var counter = 1;
var startTime = getTimer();
var updateRate = 6;
var precision = 1;
precision = Math.pow(10, precision);
_level0.createTextField("fps_txt", _level0.getNextHighestDepth(), 510, 5, 100, 22);
stop();
_quality = "HIGH";
Frame 5
var starting = 0;
onEnterFrame = function () {
if (_root.starting == 1) {
_root.gotoAndStop(6);
}
};
Instance of Symbol 366 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_currentframe == 230) {
_root.starting = 1;
}
}
Frame 6
function updateFrameRate() {
if (counter == updateRate) {
var _local2 = getTimer();
var _local3 = (_local2 - startTime) / 1000;
var _local1 = updateRate / _local3;
_local1 = Math.floor(_local1 * precision) / precision;
_level0.fps_txt.text = "FPS: " + _local1;
startTime = _local2;
counter = 1;
} else {
counter++;
}
}
var counter = 1;
var startTime = getTimer();
var updateRate = 6;
var precision = 1;
precision = Math.pow(10, precision);
_level0.createTextField("fps_txt", _level0.getNextHighestDepth(), 510, 5, 100, 22);
var scor = 10;
stop();
_quality = "LOW";
var POU = 0;
var lvl1 = 0;
var fir = 0;
var fir2 = 0;
var pion = 3;
var boss1life = 1000;
var boss2life = 2000;
var boss3life = 2000;
var boss4life = 2000;
var boss5life = 2000;
var boss1 = 0;
var boss2 = 0;
var boss3 = 0;
var boss4 = 0;
var boss5 = 0;
var tran2 = 0;
var tran3 = 0;
var tran4 = 0;
var missammo = 20;
var bombammo = 10;
var life = 500;
onEnterFrame = function () {
if (_root.POU == 0) {
if (_root.life < 0) {
_root.gotoAndStop(12);
stopAllSounds();
}
if ((((_root._currentframe == 12) || (_root._currentframe == 11)) || (_root._currentframe == 13)) || (_root._currentframe == 4)) {
delete _root.onEnterFrame;
}
var _local4 = 0;
if (_root.stage1 == 1) {
_root.gotoAndStop("interAd");
delete _root.onEnterFrame;
}
updateFrameRate();
if ((_root.fir == 1) & (_root.missammo > 0)) {
var mfir = _root.attachMovie("mfir", "mfir" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
mfir.onEnterFrame = function () {
if (mfir._currentframe == 1) {
mfir._x = _root.heli._x;
mfir._y = _root.heli._y;
mfir._rotation = _root.heli._rotation;
mfir.play();
}
if (mfir._currentframe == 5) {
mfir.swapDepths(5);
mfir.removeMovieClip();
}
};
if ((_root.fir == 1) & (_root.missammo > 0)) {
var miss = _root.attachMovie("miss", "miss" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
miss.onEnterFrame = function () {
var _local2 = miss._currentframe;
if (miss._currentframe == 1) {
miss._x = _root.heli._x;
miss._y = _root.heli._y;
miss._rotation = _root.heli._rotation;
_root.missammo = _root.missammo - 1;
miss.play();
}
if ((miss._y > 385) && (miss._currentframe == 2)) {
miss.gotoAndPlay(3);
}
if ((miss._currentframe != 2) & (miss._currentframe != 1)) {
miss._rotation = 90;
}
if (miss._currentframe == 16) {
miss.swapDepths(5);
miss.removeMovieClip();
}
if ((miss._currentframe == 2) || (miss._currentframe == 1)) {
if (miss.hitTest(_root.ag)) {
miss.play();
}
if (miss.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 4;
miss.play();
}
if (miss.hitTest(_root.bos2)) {
_root.boss2life = _root.boss2life - 12;
miss.gotoAndPlay(17);
}
if (miss.hitTest(_root.bos3)) {
_root.boss3life = _root.boss3life - 4;
if (_local2 < 3) {
miss.gotoAndPlay(17);
}
}
if (miss.hitTest(_root.ad)) {
miss.play();
}
if (miss.hitTest(_root.ak)) {
miss.play();
}
if (miss.hitTest(_root.ah)) {
miss.play();
}
if (miss.hitTest(_root.ag)) {
miss.play();
}
if (miss.hitTest(_root.af)) {
miss.play();
}
if (miss.hitTest(_root.al)) {
miss.play();
}
if (miss.hitTest(_root.p1)) {
miss.gotoAndPlay(17);
}
if (miss.hitTest(_root.p2)) {
miss.gotoAndPlay(17);
}
if (miss.hitTest(_root.p3)) {
miss.gotoAndPlay(17);
}
if (miss.hitTest(_root.qw)) {
miss.gotoAndPlay(17);
}
if (miss.hitTest(_root.qe)) {
miss.gotoAndPlay(17);
}
if (miss.hitTest(_root.qr)) {
miss.gotoAndPlay(17);
}
if (miss.hitTest(_root.ws)) {
miss.play();
}
}
if (miss._currentframe == 2) {
miss._y = miss._y + (28 * Math.sin(miss._rotation * (Math.PI/180)));
miss._x = miss._x + (28 * Math.cos(miss._rotation * (Math.PI/180)));
if ((miss._x > 700) || (_root._currentframe == 11)) {
miss.swapDepths(5);
miss.removeMovieClip();
}
}
};
if (_root.fir2 == 1) {
var sho = _root.attachMovie("sho", "sho" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
sho.onEnterFrame = function () {
if (sho._currentframe == 1) {
sho._x = _root.heli._x;
sho._y = _root.heli._y;
sho._rotation = _root.heli._rotation;
sho.play();
}
if ((sho._y > 372) && (sho._currentframe == 2)) {
sho.play();
}
if (sho._currentframe == 6) {
sho.swapDepths(5);
sho.removeMovieClip();
}
if (sho.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 2;
sho.play();
}
if (sho.hitTest(_root.bos2)) {
_root.boss2life = _root.boss2life - 2;
sho.play();
}
if (sho.hitTest(_root.ad)) {
sho.play();
}
if (sho.hitTest(_root.ak1)) {
sho.play();
}
if (sho.hitTest(_root.ah)) {
sho.play();
}
if (sho.hitTest(_root.ag)) {
sho.play();
}
if (sho.hitTest(_root.af1)) {
sho.play();
}
if (sho.hitTest(_root.al)) {
sho.play();
}
if (sho.hitTest(_root.p1)) {
sho.play();
}
if (sho.hitTest(_root.p2)) {
sho.play();
}
if (sho.hitTest(_root.p3)) {
sho.play();
}
if (sho.hitTest(_root.qw)) {
sho.play();
}
if (sho.hitTest(_root.qe)) {
sho.play();
}
if (sho.hitTest(_root.qr)) {
sho.play();
}
if (sho.hitTest(_root.ws)) {
sho.play();
}
if (sho._currentframe == 2) {
sho._y = sho._y + (25 * Math.sin(sho._rotation * (Math.PI/180)));
sho._x = sho._x + (25 * Math.cos(sho._rotation * (Math.PI/180)));
if ((sho._x > 650) || (_root._currentframe == 11)) {
sho.swapDepths(5);
sho.removeMovieClip();
}
}
};
if (_root.fir2 == 1) {
var shel = _root.attachMovie("shel", "shel" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
shel.onEnterFrame = function () {
if (shel._currentframe == 1) {
shel._x = _root.heli._x;
shel._y = _root.heli._y;
shel._rotation = random(360);
shel.play();
}
if (shel._currentframe == 2) {
shel._y = shel._y + (random(2) + 7);
shel._x = shel._x - (random(4) + 11);
shel._rotation = shel._rotation + random(4);
if ((shel._x < -50) || (_root._currentframe == 11)) {
shel.gotoAndStop(3);
}
if ((shel._y > 372) && (shel._currentframe == 2)) {
shel._y = 372;
shel._x = shel._x + 3;
}
if (shel._currentframe == 3) {
shel.swapDepths(5);
shel.removeMovieClip();
}
}
};
if ((_root.fir3 == 1) & (_root.bombammo > 0)) {
var mina = _root.attachMovie("mina", "mina" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
mina.onEnterFrame = function () {
if (mina._currentframe == 1) {
speed = 1;
mina._x = _root.heli._x - 5;
mina._y = _root.heli._y;
_root.bombammo = _root.bombammo - 1;
mina.play();
}
if ((mina._y > 355) && (mina._currentframe == 2)) {
mina.gotoAndPlay(3);
}
if (mina._currentframe == 16) {
mina.swapDepths(5);
mina.removeMovieClip();
}
if (mina.hitTest(_root.ag)) {
mina.play();
}
if (mina.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 4;
mina.play();
}
if (mina.hitTest(_root.ad)) {
mina.play();
}
if (mina.hitTest(_root.ak)) {
mina.play();
}
if (mina.hitTest(_root.ah)) {
mina.play();
}
if (mina.hitTest(_root.ag)) {
mina.play();
}
if (mina.hitTest(_root.af)) {
mina.play();
}
if (mina.hitTest(_root.al)) {
mina.play();
}
if (mina.hitTest(_root.p1)) {
mina.play();
}
if (mina.hitTest(_root.p2)) {
mina.play();
}
if (mina.hitTest(_root.p3)) {
mina.play();
}
if (mina.hitTest(_root.qw)) {
mina.play();
}
if (mina.hitTest(_root.qe)) {
mina.play();
}
if (mina.hitTest(_root.qr)) {
mina.play();
}
if (mina.hitTest(_root.ws)) {
mina.play();
}
if (mina._currentframe == 2) {
speed = speed + 1;
mina._y = mina._y + speed;
if (mina._rotation < 90) {
mina._rotation = mina._rotation + 5;
} else {
mina._rotation = 90;
}
if ((mina._x > 700) || (_root._currentframe == 11)) {
mina.swapDepths(5);
mina.removeMovieClip();
}
}
};
if (((_root.fir == 1) & (_root.missammo > 0)) & (_root.tran3 == 1)) {
var mis2 = _root.attachMovie("mis2", "mis2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
mis2.onEnterFrame = function () {
var _local2 = mis2._currentframe;
if (mis2._currentframe == 1) {
mis2._x = _root.heli._x;
mis2._y = _root.heli._y;
mis2._rotation = _root.heli._rotation + 90;
_root.missammo = _root.missammo - 1;
mis2.play();
}
if ((mis2._y > 385) && (mis2._currentframe == 2)) {
mis2.gotoAndPlay(3);
}
if ((mis2._currentframe != 2) & (mis2._currentframe != 1)) {
mis2._rotation = 90;
}
if (mis2._currentframe == 16) {
mis2.swapDepths(5);
mis2.removeMovieClip();
}
if ((mis2._currentframe == 2) || (mis2._currentframe == 1)) {
if (mis2.hitTest(_root.ag)) {
mis2.play();
}
if (mis2.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 4;
mis2.play();
}
if (mis2.hitTest(_root.bos2)) {
_root.boss2life = _root.boss2life - 4;
mis2.gotoAndPlay(17);
}
if (mis2.hitTest(_root.ad)) {
mis2.play();
}
if (mis2.hitTest(_root.ak)) {
mis2.play();
}
if (mis2.hitTest(_root.ah)) {
mis2.play();
}
if (mis2.hitTest(_root.ag)) {
mis2.play();
}
if (mis2.hitTest(_root.af)) {
mis2.play();
}
if (mis2.hitTest(_root.al)) {
mis2.play();
}
if (mis2.hitTest(_root.p1)) {
mis2.gotoAndPlay(17);
}
if (mis2.hitTest(_root.p2)) {
mis2.gotoAndPlay(17);
}
if (mis2.hitTest(_root.p3)) {
mis2.gotoAndPlay(17);
}
if (mis2.hitTest(_root.qw)) {
mis2.gotoAndPlay(17);
}
if (mis2.hitTest(_root.qe)) {
mis2.gotoAndPlay(17);
}
if (mis2.hitTest(_root.qr)) {
mis2.gotoAndPlay(17);
}
if (mis2.hitTest(_root.ws)) {
mis2.play();
}
}
if (mis2._currentframe == 2) {
if (mis2._rotation > -30) {
mis2._rotation = mis2._rotation - 6;
}
mis2._y = mis2._y + (15 * Math.sin(mis2._rotation * (Math.PI/180)));
mis2._x = mis2._x + (15 * Math.cos(mis2._rotation * (Math.PI/180)));
if ((mis2._x > 700) || (_root._currentframe == 11)) {
mis2.swapDepths(5);
mis2.removeMovieClip();
}
}
};
if (((_root.fir == 1) & (_root.missammo > 0)) & (_root.tran2 == 1)) {
var mis3 = _root.attachMovie("mis3", "mis3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
mis3.onEnterFrame = function () {
var _local2 = mis3._currentframe;
if (mis3._currentframe == 1) {
mis3._x = _root.heli._x;
mis3._y = _root.heli._y;
mis3._rotation = _root.heli._rotation - 90;
_root.missammo = _root.missammo - 1;
mis3.play();
}
if ((mis3._y > 385) & (mis3._currentframe == 2)) {
mis3.gotoAndPlay(3);
}
if ((mis3._currentframe != 2) & (mis3._currentframe != 1)) {
mis3._rotation = 90;
}
if (mis3._currentframe == 16) {
mis3.swapDepths(5);
mis3.removeMovieClip();
}
if ((mis3._currentframe == 2) || (mis3._currentframe == 1)) {
if (mis3.hitTest(_root.ag)) {
mis3.play();
}
if (mis3.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 4;
mis3.play();
}
if (mis3.hitTest(_root.bos2)) {
_root.boss2life = _root.boss2life - 4;
mis3.gotoAndPlay(17);
}
if (mis3.hitTest(_root.ad)) {
mis3.play();
}
if (mis3.hitTest(_root.ak)) {
mis3.play();
}
if (mis3.hitTest(_root.ah)) {
mis3.play();
}
if (mis3.hitTest(_root.ag)) {
mis3.play();
}
if (mis3.hitTest(_root.af)) {
mis3.play();
}
if (mis3.hitTest(_root.al)) {
mis3.play();
}
if (mis3.hitTest(_root.p1)) {
mis3.gotoAndPlay(17);
}
if (mis3.hitTest(_root.p2)) {
mis3.gotoAndPlay(17);
}
if (mis3.hitTest(_root.p3)) {
mis3.gotoAndPlay(17);
}
if (mis3.hitTest(_root.qw)) {
mis3.gotoAndPlay(17);
}
if (mis3.hitTest(_root.qe)) {
mis3.gotoAndPlay(17);
}
if (mis3.hitTest(_root.qr)) {
mis3.gotoAndPlay(17);
}
if (mis3.hitTest(_root.ws)) {
mis3.play();
}
}
if (mis3._currentframe == 2) {
if (mis3._rotation < 30) {
mis3._rotation = mis3._rotation + 6;
}
mis3._y = mis3._y + (15 * Math.sin(mis3._rotation * (Math.PI/180)));
mis3._x = mis3._x + (15 * Math.cos(mis3._rotation * (Math.PI/180)));
if ((mis3._x > 700) || (_root._currentframe == 11)) {
mis3.swapDepths(5);
mis3.removeMovieClip();
}
}
};
if ((((_root.fir2 == 1) & (_root.tran2 == 1)) & (_root.tran3 == 1)) & (_root.tran4 == 1)) {
var sho2 = _root.attachMovie("sho2", "sho2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
sho2.onEnterFrame = function () {
if (sho2._currentframe == 1) {
sho2._x = _root.heli._x;
sho2._y = _root.heli._y;
sho2._rotation = _root.heli._rotation;
sho2.play();
}
if ((sho2._y > 372) && (sho2._currentframe == 2)) {
sho2.play();
}
if (sho2._currentframe == 6) {
sho2.swapDepths(5);
sho2.removeMovieClip();
}
if (sho2.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 2;
sho2.play();
}
if (sho2.hitTest(_root.ad)) {
sho2.play();
}
if (sho2.hitTest(_root.ak)) {
sho2.play();
}
if (sho2.hitTest(_root.ah)) {
sho2.play();
}
if (sho2.hitTest(_root.ag)) {
sho2.play();
}
if (sho2.hitTest(_root.af)) {
sho2.play();
}
if (sho2.hitTest(_root.al)) {
sho2.play();
}
if (sho2.hitTest(_root.p1)) {
sho2.play();
}
if (sho2.hitTest(_root.p2)) {
sho2.play();
}
if (sho2.hitTest(_root.p3)) {
sho2.play();
}
if (sho2.hitTest(_root.qw)) {
sho2.play();
}
if (sho2.hitTest(_root.qe)) {
sho2.play();
}
if (sho2.hitTest(_root.qr)) {
sho2.play();
}
if (sho2.hitTest(_root.ws)) {
sho2.play();
}
if (sho2._currentframe == 2) {
sho2._y = sho2._y + (25 * Math.sin(sho2._rotation * (Math.PI/180)));
sho2._x = sho2._x + (25 * Math.cos(sho2._rotation * (Math.PI/180)));
if ((sho2._x > 650) || (_root._currentframe == 11)) {
sho2.swapDepths(5);
sho2.removeMovieClip();
}
}
};
if ((_root.fir2 == 1) & (_root.tran3 == 1)) {
var sho3 = _root.attachMovie("sho3", "sho3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
sho3.onEnterFrame = function () {
var _local2 = new Sound(sho3);
_local2.setVolume(50);
if (sho3._currentframe == 1) {
sho3._x = _root.heli._x;
sho3._y = _root.heli._y;
sho3._rotation = _root.heli._rotation;
sho3.play();
}
if ((sho3._y > 372) && (sho3._currentframe == 2)) {
sho3.play();
}
if (sho3._currentframe == 6) {
sho3.swapDepths(5);
sho3.removeMovieClip();
}
if (sho3.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 2;
_local2.start();
sho3.play();
}
if (sho3.hitTest(_root.ad)) {
_local2.start();
sho3.play();
}
if (sho3.hitTest(_root.ak)) {
_local2.start();
sho3.play();
}
if (sho3.hitTest(_root.ah)) {
_local2.start();
sho3.play();
}
if (sho3.hitTest(_root.ag)) {
_local2.start();
sho3.play();
}
if (sho3.hitTest(_root.af)) {
_local2.start();
sho3.play();
}
if (sho3.hitTest(_root.al)) {
_local2.start();
sho3.play();
}
if (sho3.hitTest(_root.p1)) {
_local2.start();
sho3.play();
}
if (sho3.hitTest(_root.p2)) {
_local2.start();
sho3.play();
}
if (sho3.hitTest(_root.p3)) {
_local2.start();
sho3.play();
}
if (sho3.hitTest(_root.qw)) {
_local2.start();
sho3.play();
}
if (sho3.hitTest(_root.qe)) {
_local2.start();
sho3.play();
}
if (sho3.hitTest(_root.qr)) {
_local2.start();
sho3.play();
}
if (sho3.hitTest(_root.ws)) {
_local2.start();
sho3.play();
}
if (sho3._currentframe == 2) {
sho3._y = sho3._y + (25 * Math.sin(sho3._rotation * (Math.PI/180)));
sho3._x = sho3._x + (25 * Math.cos(sho3._rotation * (Math.PI/180)));
if ((sho3._x > 650) || (_root._currentframe == 11)) {
sho3.swapDepths(5);
sho3.removeMovieClip();
}
}
};
if (random(1000) > 997) {
var drop1 = _root.attachMovie("drop1", "drop1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
drop1.onEnterFrame = function () {
if (drop1._currentframe == 1) {
drop1._x = random(200) + 350;
drop1._y = -70;
drop1.play();
}
if (drop1._currentframe == 2) {
drop1._y = drop1._y + 3;
drop1._x = drop1._x - 3;
if (drop1.hitTest(_root.heli)) {
drop1.gotoAndStop(6);
_root.life = 100;
}
if (drop1._y > 375) {
drop1.play();
}
}
if (drop1._currentframe == 6) {
drop1.swapDepths(5);
drop1.removeMovieClip();
}
};
if (random(1000) > 995) {
var drop2 = _root.attachMovie("drop2", "drop2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
drop2.onEnterFrame = function () {
if (drop2._currentframe == 1) {
drop2._x = random(200) + 350;
drop2._y = -70;
drop2.play();
}
if (drop2._currentframe == 2) {
drop2._y = drop2._y + 3;
drop2._x = drop2._x - 3;
if (drop2.hitTest(_root.heli)) {
drop2.gotoAndStop(6);
_root.bombammo = _root.bombammo + 5;
}
if (drop2._y > 375) {
drop2.play();
}
}
if (drop2._currentframe == 6) {
drop2.swapDepths(5);
drop2.removeMovieClip();
}
};
if (random(1000) > 995) {
var drop3 = _root.attachMovie("drop3", "drop3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
drop3.onEnterFrame = function () {
if (drop3._currentframe == 1) {
drop3._x = random(200) + 350;
drop3._y = -70;
drop3.play();
}
if (drop3._currentframe == 2) {
drop3._y = drop3._y + 3;
drop3._x = drop3._x - 3;
if (drop3.hitTest(_root.heli)) {
drop3.gotoAndStop(6);
_root.missammo = _root.missammo + 20;
}
if (drop3._y > 375) {
drop3.play();
}
}
if (drop3._currentframe == 6) {
drop3.swapDepths(5);
drop3.removeMovieClip();
}
};
if ((_root.ak._x > 0) & (random(1000) > 990)) {
var enfir = _root.attachMovie("enfir", "enfir" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
enfir.onEnterFrame = function () {
if (enfir._currentframe == 1) {
enfir._x = _root.ak._x - 70;
enfir._y = _root.ak._y - 50;
enfir._rotation = -60;
enfir.play();
}
if (enfir._currentframe == 16) {
enfir.swapDepths(5);
enfir.removeMovieClip();
}
if (enfir.hitTest(_root.heli)) {
enfir.play();
_root.life = _root.life - 1;
}
if (enfir._currentframe == 2) {
enfir._rotation = enfir._rotation + 0.2;
enfir._y = enfir._y + (8 * Math.sin(enfir._rotation * (Math.PI/180)));
enfir._x = enfir._x + (8 * Math.cos(enfir._rotation * (Math.PI/180)));
if ((enfir._x > 700) || (_root._currentframe == 11)) {
enfir.swapDepths(5);
enfir.removeMovieClip();
}
}
};
if ((_root.p2._x < 600) & (random(1000) > 990)) {
var minka1 = _root.attachMovie("minka1", "minka1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
minka1.onEnterFrame = function () {
if (minka1._currentframe == 1) {
minka1._x = _root.p2._x;
minka1._y = _root.p2._y;
minka1.play();
}
if ((minka1._y > 355) && (minka1._currentframe == 2)) {
minka1.gotoAndPlay(3);
}
if (minka1._currentframe == 16) {
minka1.swapDepths(5);
minka1.removeMovieClip();
}
if (minka1.hitTest(_root.heli)) {
minka1.play();
_root.life = _root.life - 1;
}
if (minka1._currentframe == 2) {
minka1._x = minka1._x - 3;
minka1._y = minka1._y + 1;
if ((minka1._x < -50) || (_root._currentframe == 11)) {
minka1.swapDepths(5);
minka1.removeMovieClip();
}
}
};
if ((_root.qe._x > 0) & (random(1000) > 100)) {
var minka2 = _root.attachMovie("minka2", "minka2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
minka2.onEnterFrame = function () {
if (minka2._currentframe == 1) {
minka2._x = _root.qe._x;
minka2._y = _root.qe._y;
minka2.play();
}
if ((minka2._y > 355) && (minka2._currentframe == 2)) {
minka2.gotoAndPlay(3);
}
if (minka2._currentframe == 16) {
minka2.swapDepths(5);
minka2.removeMovieClip();
}
if (minka2.hitTest(_root.heli)) {
minka2.play();
_root.life = _root.life - 1;
}
if (minka2._currentframe == 2) {
minka2._x = minka2._x - 3;
minka2._y = minka2._y + 1;
if ((minka2._x < -50) || (_root._currentframe == 11)) {
minka2.swapDepths(5);
minka2.removeMovieClip();
}
}
};
if ((_root.boss1 == 1) & (random(1000) > 980)) {
var lsr = _root.attachMovie("lsr", "lsr" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
lsr.onEnterFrame = function () {
if (lsr._currentframe == 1) {
lsr._x = _root.boss1reka._x;
lsr._y = _root.boss1reka._y;
lsr._rotation = _root.boss1reka._rotation;
lsr.play();
}
if (lsr._currentframe == 2) {
lsr._y = lsr._y + (4 * Math.sin(lsr._rotation * (Math.PI/180)));
lsr._x = lsr._x + (4 * Math.cos(lsr._rotation * (Math.PI/180)));
if (lsr.hitTest(_root.heli)) {
lsr.play();
_root.life = _root.life - 1;
}
}
if (((lsr._x > 750) || (lsr._x < -150)) || (_root._currentframe == 11)) {
lsr.swapDepths(5);
lsr.removeMovieClip();
}
if (lsr._currentframe == 17) {
lsr.swapDepths(5);
lsr.removeMovieClip();
}
};
if ((_root.boss2 == 1) & (random(1000) > 970)) {
var lsr2 = _root.attachMovie("lsr2", "lsr2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
lsr2.onEnterFrame = function () {
if (lsr2._currentframe == 1) {
lsr2._x = _root.robo2reka._x;
lsr2._y = _root.robo2reka._y;
lsr2._rotation = _root.robo2reka._rotation;
lsr2.play();
}
if (lsr2._currentframe == 2) {
lsr2._y = lsr2._y + (4 * Math.sin(lsr2._rotation * (Math.PI/180)));
lsr2._x = lsr2._x + (4 * Math.cos(lsr2._rotation * (Math.PI/180)));
if (lsr2.hitTest(_root.heli)) {
lsr2.play();
_root.life = _root.life - 1;
}
}
if (((lsr2._x > 750) || (lsr2._x < -150)) || (_root._currentframe == 11)) {
lsr2.swapDepths(5);
lsr2.removeMovieClip();
}
if (lsr2._currentframe == 17) {
lsr2.swapDepths(5);
lsr2.removeMovieClip();
}
};
if ((((_root.af._x < 600) && (random(1000) > 990)) && (_root.af._currentframe != 12)) && (_root.af._currentframe != 13)) {
var enfir2 = _root.attachMovie("enfir2", "enfir2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
enfir2.onEnterFrame = function () {
if (enfir2._currentframe == 1) {
enfir2._x = _root.af._x;
enfir2._y = _root.af._y - 35;
enfir2._rotation = -60;
enfir2.play();
}
if (enfir2._currentframe == 16) {
enfir2.swapDepths(5);
enfir2.removeMovieClip();
}
if (enfir2.hitTest(_root.heli)) {
enfir2.play();
_root.life = _root.life - 1;
}
if (enfir2._currentframe == 2) {
enfir2._rotation = enfir2._rotation + 0.2;
enfir2._y = enfir2._y + (8 * Math.sin(enfir2._rotation * (Math.PI/180)));
enfir2._x = enfir2._x + (8 * Math.cos(enfir2._rotation * (Math.PI/180)));
if ((enfir2._x > 700) || (_root._currentframe == 11)) {
enfir2.swapDepths(5);
enfir2.removeMovieClip();
}
}
};
}
};
Instance of Symbol 378 MovieClip in Frame 6
onClipEvent (enterFrame) {
_root.pion = 3;
if (Key.isDown(90) & (_root.missammo > 0)) {
if (_currentframe == 1) {
_root.fir = 1;
_root.pion = 3;
play();
}
} else {
_root.fir = 0;
_root.pion = 3;
}
if (_currentframe != 1) {
_root.fir = 0;
_root.pion = 3;
}
}
Instance of Symbol 380 MovieClip in Frame 6
onClipEvent (enterFrame) {
_root.pion = 3;
if (Key.isDown(88)) {
if (_currentframe == 1) {
_root.fir2 = 1;
_root.pion = 3;
play();
}
} else {
_root.fir2 = 0;
_root.pion = 3;
}
if (_currentframe != 1) {
_root.fir2 = 0;
_root.pion = 3;
}
}
Instance of Symbol 429 MovieClip "qr" in Frame 6
onClipEvent (enterFrame) {
if (((_currentframe == 1) & (random(1000) > 995)) & (_root.scor > 150)) {
_x = 700;
_y = random(150);
dx = Math.atan2(_root.heli._y - _y, _root.heli._x - _x) / (Math.PI/180);
xSpeed = 10 * Math.cos(dx * (Math.PI/180));
ySpeed = 10 * Math.sin(dx * (Math.PI/180));
play();
}
if ((_currentframe != 1) & (_currentframe != 20)) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (_x < -100) {
gotoAndStop (1);
}
if (_y >= 310) {
_y = 310;
_x = (_x - 10);
}
}
if (_currentframe == 20) {
_x = (_x - 1);
_y = (_y + 4);
if (_y > 360) {
play();
}
}
if ((_root.scor > 520) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
if (_currentframe == 27) {
_x = 714;
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
if ((_root.scor > 520) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
Instance of Symbol 429 MovieClip "qe" in Frame 6
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (((_currentframe == 1) & (random(1000) > 990)) & (_root.scor > 100)) {
play();
}
if ((_currentframe != 1) & (_currentframe != 20)) {
if (_y >= 170) {
_rotation = 210;
_x = (_x + 5);
_y = (_y - 1);
}
if ((_x > -200) & (_y < 170)) {
_rotation = 155;
_x = (_x - 4);
_y = (_y - 2);
}
if ((_x <= -150) & (_y < 170)) {
_x = -150;
_y = 330;
gotoAndStop (1);
}
}
if (_currentframe == 20) {
_x = (_x - 1);
_y = (_y + 4);
if (_y > 360) {
play();
}
}
if (_currentframe == 27) {
_x = -200;
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
if ((_root.scor > 530) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
Instance of Symbol 431 MovieClip in Frame 6
onClipEvent (enterFrame) {
_root.pion = 3;
if (Key.isDown(67) & (_root.bombammo > 0)) {
if (_currentframe == 1) {
_root.fir3 = 1;
_root.pion = 3;
play();
}
} else {
_root.fir3 = 0;
_root.pion = 3;
}
if (_currentframe != 1) {
_root.fir3 = 0;
_root.pion = 3;
}
}
Instance of Symbol 450 MovieClip "bos2" in Frame 6
onClipEvent (load) {
xscale = _xscale;
}
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_root.boss2 == 1) {
if (_x > 450) {
_x = (_x - 3);
}
if (_y > 210) {
_y = 210;
}
if ((_root.boss2life < 10) & (_currentframe != 17)) {
play();
}
_root.newx = _root.heli._y;
_root.newy = _root.heli._x;
var initx = _x;
var inity = _y;
loc = Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180);
_y = (_y + (5 * Math.sin(loc * (Math.PI/180))));
if (_x < _root.heli._x) {
_xscale = (-xscale);
} else {
_xscale = xscale;
}
}
if (_currentframe == 9) {
_x = 800;
if (_root.scor > 520) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 453 MovieClip "robo2reka" in Frame 6
onClipEvent (load) {
xscale = _xscale;
yscale = _yscale;
}
onClipEvent (enterFrame) {
if (_root.boss2life > 10) {
_x = _root.bos2._x;
_y = _root.bos2._y;
_root.newx = _root.heli._y;
_root.newy = _root.heli._x;
var initx = _x;
var inity = _y;
_rotation = (Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180));
if (_x < _root.heli._x) {
_yscale = (-yscale);
} else {
_yscale = yscale;
}
}
if (_root.boss2life < 10) {
_rotation = 0;
_y = (_y + 5);
if (_y > 380) {
_y = 380;
_x = (_x - 3);
}
if (_x < -150) {
if (_root.scor > 520) {
this.swapDepths(5);
this.removeMovieClip();
}
_x = _root.bos2._x;
_y = _root.bos2._y;
_root.bos2.gotoAndStop(1);
_root.boss2life = 3000;
}
}
}
Instance of Symbol 477 MovieClip "ag" in Frame 6
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
if ((random(10000) > 9860) & (_root.scor > 100)) {
play();
}
}
if (_currentframe != 1) {
_x = (_x - 2);
_x - 2;
}
if (_x < -100) {
_x = (random(850) + 650);
gotoAndStop (1);
}
if (_currentframe == 12) {
_x = (random(850) + 650);
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
if ((_root.scor > 510) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
Instance of Symbol 501 MovieClip "ad" in Frame 6
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
if (random(100) > 50) {
play();
}
}
if (_currentframe != 1) {
_x = (_x - 1);
_x - 1;
}
if (_x < -100) {
_x = (random(850) + 650);
gotoAndStop (1);
}
if (_currentframe == 20) {
_x = (random(850) + 650);
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
if ((_root.scor > 500) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
Instance of Symbol 537 MovieClip "p3" in Frame 6
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (((_currentframe == 1) & (random(1000) > 998)) & (_root.scor > 250)) {
fx = Math.atan2(_root.heli._y - _y, _root.heli._x - _x) / (Math.PI/180);
_rotation = fx;
xSpeed = 11 * Math.cos(fx * (Math.PI/180));
ySpeed = 11 * Math.sin(fx * (Math.PI/180));
play();
}
if (_currentframe != 1) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (_y >= 310) {
_rotation = 0;
_y = 310;
_x = (_x + 11);
}
}
if (_x > 600) {
_x = ((random(400) * -1) - 100);
_y = 100;
gotoAndStop (1);
}
if (_currentframe == 11) {
_x = (_x + 3);
_y = (_y + 7);
if (_y > 370) {
_y = 370;
play();
}
}
if (_currentframe == 18) {
_x = 714;
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
if ((_root.scor > 520) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
Instance of Symbol 539 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_currentframe != 1551) {
_root.boss1 = 0;
} else {
_root.boss1 = 1;
}
if ((_root.boss1life < 10) && (_currentframe == 1551)) {
gotoAndPlay (1);
}
}
Instance of Symbol 541 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_currentframe != 3200) {
_root.boss2 = 0;
} else {
_root.boss2 = 1;
}
if ((_root.boss2life < 10) && (_currentframe == 3200)) {
gotoAndPlay (1);
}
}
Instance of Symbol 543 MovieClip "p31" in Frame 6
onClipEvent (enterFrame) {
_x = _root.p3._x;
_y = _root.p3._y;
_rotation = _root.p3._rotation;
_visible = false;
}
Instance of Symbol 545 MovieClip "ad1" in Frame 6
onClipEvent (enterFrame) {
_x = _root.ad._x;
_visible = false;
}
Instance of Symbol 556 MovieClip "ak" in Frame 6
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
play();
}
if (_currentframe != 1) {
_x = (_x + 2);
_x + 2;
}
if (_x > 680) {
_x = (-1 * random(600));
gotoAndStop (1);
}
if (_currentframe == 11) {
_x = ((-1 * random(800)) - 100);
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
if ((_root.scor > 500) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
Instance of Symbol 585 MovieClip "ao" in Frame 6
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
if (_root.scor > 110) {
if (random(1000) > 750) {
play();
}
}
}
if (_currentframe != 1) {
_x = (_x + 2);
_x + 2;
}
if (_x < -100) {
_x = (random(550) + 650);
gotoAndStop (1);
}
if (_currentframe == 13) {
_x = ((-1 * random(800)) - 100);
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
if ((_root.scor > 520) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
Instance of Symbol 545 MovieClip "ak1" in Frame 6
onClipEvent (enterFrame) {
_x = _root.ak._x;
_visible = false;
}
Instance of Symbol 585 MovieClip "af" in Frame 6
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
if (_root.scor > 180) {
if (random(1000) > 750) {
play();
}
}
}
if (_currentframe != 1) {
_x = (_x - 2);
_x - 2;
}
if (_x < -100) {
_x = (random(550) + 650);
gotoAndStop (1);
}
if (_currentframe == 13) {
_x = (random(850) + 650);
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
if ((_root.scor > 520) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
Instance of Symbol 592 MovieClip "bos1" in Frame 6
onClipEvent (load) {
xscale = _xscale;
}
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_root.boss1 == 1) {
_root.newx = _root.heli._y;
_root.newy = _root.heli._x;
var initx = _x;
var inity = _y;
loc = Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180);
_x = (_x + (5 * Math.cos(loc * (Math.PI/180))));
if (_x < _root.heli._x) {
_xscale = (-xscale);
} else {
_xscale = xscale;
}
}
if (_currentframe == 33) {
_x = 1000;
if (_root.scor > 520) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 595 MovieClip "boss1reka" in Frame 6
onClipEvent (load) {
xscale = _xscale;
yscale = _yscale;
}
onClipEvent (enterFrame) {
if (_root.boss1life > 10) {
_x = _root.bos1._x;
_root.newx = _root.heli._y;
_root.newy = _root.heli._x;
var initx = _x;
var inity = _y;
_rotation = (Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180));
if (_x < _root.heli._x) {
_yscale = (-yscale);
} else {
_yscale = yscale;
}
}
if (_root.boss1life < 10) {
_rotation = 0;
_y = (_y + 5);
if (_y > 380) {
_y = 380;
_x = (_x - 3);
}
if (_x < -150) {
_root.boss1life = 1000;
if (_root.scor > 520) {
this.swapDepths(5);
this.removeMovieClip();
}
_x = _root.bos1._x;
_y = 303;
_root.bos1.gotoAndPlay(1);
}
}
}
Instance of Symbol 610 MovieClip "ws" in Frame 6
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
if ((random(1000) > 998) & (_root.scor > 100)) {
play();
}
}
if (_currentframe != 1) {
_x = (_x - 10);
}
if (_x < -100) {
_x = (random(1650) + 650);
gotoAndStop (1);
}
if (_currentframe == 20) {
_x = (random(850) + 650);
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
if ((_root.scor > 500) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
Instance of Symbol 637 MovieClip "p2" in Frame 6
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
_y = random(150);
if ((random(1000) > 989) & (_root.scor > 120)) {
play();
}
}
if (_currentframe != 1) {
_x = (_x - 8);
}
if (_x < -100) {
_x = 803;
gotoAndStop (1);
}
if (_currentframe == 17) {
_x = (_x - 3);
_y = (_y + 7);
if (_y > 370) {
_y = 370;
play();
}
}
if (_currentframe == 24) {
_x = 803;
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
if ((_root.scor > 520) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
Instance of Symbol 653 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_currentframe == 1) {
_x = _root.bos2._x;
_y = _root.bos2._y;
if ((_root.tran2 == 0) & (_root.boss2life < 10)) {
gotoAndStop (2);
}
}
if (_currentframe == 2) {
_root.newx = _root.heli._y;
_root.newy = _root.heli._x;
var initx = _x;
var inity = _y;
var loco = (Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180));
_y = (_y + (4 * Math.sin(loco * (Math.PI/180))));
_x = (_x + (2 * Math.cos(loco * (Math.PI/180))));
if (hitTest(_root.heli)) {
gotoAndPlay (3);
_root.tran2 = 1;
}
}
if (_currentframe == 14) {
this.swapDepths(5);
this.removeMovieClip();
}
}
Instance of Symbol 710 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (((_root.tran2 == 1) & (_currentframe == 1)) & (_root.scor > 500)) {
gotoAndPlay (2);
}
if (_currentframe == 200) {
_root.stage1 = 1;
}
}
Instance of Symbol 716 MovieClip "pause" in Frame 6
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.POU = 1;
}
if (_root.POU == 1) {
gotoAndStop (2);
_visible = true;
}
if (_root.POU == 0) {
gotoAndStop (1);
_visible = false;
}
}
Instance of Symbol 760 MovieClip "heli" in Frame 6
onClipEvent (load) {
x = 0.1;
}
onClipEvent (enterFrame) {
if ((_root._currentframe == 7) || (_root._currentframe == 9)) {
_y = 250;
}
if (_root.POU == 0) {
yspeed = yspeed + 0.1;
if ((_root.tran2 == 1) & (_currentframe != 58)) {
play();
}
if ((_root.tran3 == 1) & (_currentframe != 118)) {
play();
}
if ((_root.tran4 == 1) & (_currentframe != 179)) {
play();
}
if (_y > 375) {
_y = (_y - 10);
}
if (Key.isDown(39)) {
if (_rotation < 45) {
_rotation = (_rotation + (5 + random(2)));
}
if (x < 0) {
x = x + 0.6;
xspeed = x;
} else {
x = x + 0.3;
xspeed = x;
}
} else {
if (x > 0) {
x = x - 0.4;
}
if (_rotation > 0) {
_rotation = (_rotation - (5 + random(2)));
}
}
if (Key.isDown(37)) {
if (_rotation > -10) {
_rotation = (_rotation - (5 + random(2)));
}
if (x > 0) {
x = x - 0.6;
xspeed = x;
} else {
x = x - 0.3;
xspeed = x;
}
} else {
if (x < 0) {
x = x + 0.4;
}
if (_rotation < 0) {
_rotation = (_rotation + (5 + random(2)));
}
}
_x = (_x + xspeed);
if (Key.isDown(40)) {
yspeed = 3.5;
} else if (Key.isDown(38)) {
yspeed = -3.5;
}
if (yspeed > 0) {
yspeed = yspeed - 0.05;
} else if (yspeed < 0) {
yspeed = yspeed + 0.1;
}
_y = (_y + yspeed);
if (_y < 0) {
_y = 0;
}
if (_x > 600) {
xspeed = -1;
_x = 550;
}
if (_x < 0) {
xspeed = 1;
_x = 0;
}
if (_y > 400) {
_root.life = _root.life - 30;
}
}
}
Instance of Symbol 763 MovieClip in Frame 6
onClipEvent (enterFrame) {
_x = _root.heli._x;
_y = _root.heli._y;
_rotation = _root.heli._rotation;
if (_root.fir2 == 1) {
play();
}
}
Instance of Symbol 775 MovieClip in Frame 6
onClipEvent (enterFrame) {
this.getNextHighestDepth();
}
Instance of Symbol 543 MovieClip "qe1" in Frame 6
onClipEvent (enterFrame) {
_x = _root.qe._x;
_y = _root.qe._y;
_rotation = _root.qe._rotation;
_visible = false;
}
Instance of Symbol 543 MovieClip "qr1" in Frame 6
onClipEvent (enterFrame) {
_x = _root.qr._x;
_y = _root.qr._y;
_rotation = _root.qr._rotation;
_visible = false;
}
Instance of Symbol 543 MovieClip "p21" in Frame 6
onClipEvent (enterFrame) {
_x = _root.p2._x;
_y = _root.p2._y;
_rotation = _root.p2._rotation;
_visible = false;
}
Frame 7
var starting2 = 0;
_root.life = 500;
onEnterFrame = function () {
if (_root.starting2 == 1) {
delete _root.onEnterFrame;
_root.gotoAndStop(8);
}
};
stop();
Instance of Symbol 906 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_currentframe == 210) {
_root.starting2 = 1;
}
}
Frame 8
onEnterFrame = function () {
if (_root.POU == 0) {
if (_root.life < 0) {
_root.gotoAndStop(12);
stopAllSounds();
}
if ((((_root._currentframe == 12) || (_root._currentframe == 11)) || (_root._currentframe == 13)) || (_root._currentframe == 4)) {
delete _root.onEnterFrame;
}
var _local2 = 0;
if (_root.stage2 == 1) {
_root.gotoAndStop(9);
delete _root.onEnterFrame;
}
updateFrameRate();
if ((_root.fir == 1) & (_root.missammo > 0)) {
var mfir = _root.attachMovie("mfir", "mfir" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
mfir.onEnterFrame = function () {
if (mfir._currentframe == 1) {
mfir._x = _root.heli._x;
mfir._y = _root.heli._y;
mfir._rotation = _root.heli._rotation;
mfir.play();
}
if (mfir._currentframe == 5) {
mfir.swapDepths(5);
mfir.removeMovieClip();
}
};
if ((_root.fir == 1) & (_root.missammo > 0)) {
var miss = _root.attachMovie("miss", "miss" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
miss.onEnterFrame = function () {
var _local2 = miss._currentframe;
if (miss._currentframe == 1) {
miss._x = _root.heli._x;
miss._y = _root.heli._y;
_root.missammo = _root.missammo - 1;
miss._rotation = _root.heli._rotation;
miss.play();
}
if ((miss._y > 385) && (miss._currentframe == 2)) {
miss.gotoAndPlay(3);
}
if ((miss._currentframe != 2) & (miss._currentframe != 1)) {
miss._rotation = 90;
}
if (miss._currentframe == 16) {
miss.swapDepths(5);
miss.removeMovieClip();
}
if ((miss._currentframe == 2) || (miss._currentframe == 1)) {
if (miss.hitTest(_root.ag)) {
miss.play();
}
if (miss.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 4;
miss.play();
}
if (miss.hitTest(_root.bos2)) {
_root.boss2life = _root.boss2life - 4;
miss.gotoAndPlay(17);
}
if (miss.hitTest(_root.bos3)) {
_root.boss3life = _root.boss3life - 4;
miss.gotoAndPlay(17);
}
if (miss.hitTest(_root.ad)) {
miss.play();
}
if (miss.hitTest(_root.ak)) {
miss.play();
}
if (miss.hitTest(_root.ah)) {
miss.play();
}
if (miss.hitTest(_root.ag)) {
miss.play();
}
if (miss.hitTest(_root.af)) {
miss.play();
}
if (miss.hitTest(_root.al)) {
miss.play();
}
if (miss.hitTest(_root.p1)) {
miss.gotoAndPlay(17);
}
if (miss.hitTest(_root.p2)) {
miss.gotoAndPlay(17);
}
if (miss.hitTest(_root.p3)) {
miss.gotoAndPlay(17);
}
if (miss.hitTest(_root.qw)) {
miss.gotoAndPlay(17);
}
if (miss.hitTest(_root.qe)) {
miss.gotoAndPlay(17);
}
if (miss.hitTest(_root.qr)) {
miss.gotoAndPlay(17);
}
if (miss.hitTest(_root.ws)) {
miss.play();
}
}
if (miss._currentframe == 2) {
miss._y = miss._y + (28 * Math.sin(miss._rotation * (Math.PI/180)));
miss._x = miss._x + (28 * Math.cos(miss._rotation * (Math.PI/180)));
if ((miss._x > 700) || (_root._currentframe == 11)) {
miss.swapDepths(5);
miss.removeMovieClip();
}
}
};
if (_root.fir2 == 1) {
var sho = _root.attachMovie("sho", "sho" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
sho.onEnterFrame = function () {
if (sho._currentframe == 1) {
sho._x = _root.heli._x;
sho._y = _root.heli._y;
sho._rotation = _root.heli._rotation;
sho.play();
}
if ((sho._y > 372) && (sho._currentframe == 2)) {
sho.play();
}
if (sho._currentframe == 6) {
sho.swapDepths(5);
sho.removeMovieClip();
}
if (sho.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 2;
sho.play();
}
if (sho.hitTest(_root.bos3)) {
_root.boss3life = _root.boss3life - 4;
sho.gotoAndPlay(17);
}
if (sho.hitTest(_root.bos4)) {
_root.boss4life = _root.boss4life - 4;
sho.gotoAndPlay(17);
}
if (sho.hitTest(_root.ad)) {
sho.play();
}
if (sho.hitTest(_root.ak1)) {
sho.play();
}
if (sho.hitTest(_root.ah)) {
sho.play();
}
if (sho.hitTest(_root.ag)) {
sho.play();
}
if (sho.hitTest(_root.af1)) {
sho.play();
}
if (sho.hitTest(_root.al)) {
sho.play();
}
if (sho.hitTest(_root.p1)) {
sho.play();
}
if (sho.hitTest(_root.p2)) {
sho.play();
}
if (sho.hitTest(_root.p3)) {
sho.play();
}
if (sho.hitTest(_root.qw)) {
sho.play();
}
if (sho.hitTest(_root.qe)) {
sho.play();
}
if (sho.hitTest(_root.qr)) {
sho.play();
}
if (sho.hitTest(_root.ws)) {
sho.play();
}
if (sho._currentframe == 2) {
sho._y = sho._y + (25 * Math.sin(sho._rotation * (Math.PI/180)));
sho._x = sho._x + (25 * Math.cos(sho._rotation * (Math.PI/180)));
if ((sho._x > 650) || (_root._currentframe == 11)) {
sho.swapDepths(5);
sho.removeMovieClip();
}
}
};
if (_root.fir2 == 1) {
var shel = _root.attachMovie("shel", "shel" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
shel.onEnterFrame = function () {
if (shel._currentframe == 1) {
shel._x = _root.heli._x;
shel._y = _root.heli._y;
shel._rotation = random(360);
shel.play();
}
if (shel._currentframe == 2) {
shel._y = shel._y + (random(2) + 7);
shel._x = shel._x - (random(4) + 11);
shel._rotation = shel._rotation + random(4);
if ((shel._x < -50) || (_root._currentframe == 11)) {
shel.gotoAndStop(3);
}
if ((shel._y > 372) && (shel._currentframe == 2)) {
shel._y = 372;
shel._x = shel._x + 3;
}
if (shel._currentframe == 3) {
shel.swapDepths(5);
shel.removeMovieClip();
}
}
};
if ((_root.fir3 == 1) & (_root.bombammo > 0)) {
var mina = _root.attachMovie("mina", "mina" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
mina.onEnterFrame = function () {
if (mina._currentframe == 1) {
speed = 1;
mina._x = _root.heli._x - 5;
mina._y = _root.heli._y;
_root.bombammo = _root.bombammo - 1;
mina.play();
}
if ((mina._y > 355) && (mina._currentframe == 2)) {
mina.gotoAndPlay(3);
}
if (mina._currentframe == 16) {
mina.swapDepths(5);
mina.removeMovieClip();
}
if (mina.hitTest(_root.ag)) {
mina.play();
}
if (mina.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 4;
mina.play();
}
if (mina.hitTest(_root.bos3)) {
_root.boss3life = _root.boss3life - 15;
mina.play();
}
if (mina.hitTest(_root.bos4)) {
_root.boss4life = _root.boss4life - 15;
mina.play();
}
if (mina.hitTest(_root.ad)) {
mina.play();
}
if (mina.hitTest(_root.ak)) {
mina.play();
}
if (mina.hitTest(_root.ah)) {
mina.play();
}
if (mina.hitTest(_root.ag)) {
mina.play();
}
if (mina.hitTest(_root.af)) {
mina.play();
}
if (mina.hitTest(_root.al)) {
mina.play();
}
if (mina.hitTest(_root.p1)) {
mina.play();
}
if (mina.hitTest(_root.p2)) {
mina.play();
}
if (mina.hitTest(_root.p3)) {
mina.play();
}
if (mina.hitTest(_root.qw)) {
mina.play();
}
if (mina.hitTest(_root.qe)) {
mina.play();
}
if (mina.hitTest(_root.qr)) {
mina.play();
}
if (mina.hitTest(_root.ws)) {
mina.play();
}
if (mina._currentframe == 2) {
speed = speed + 1;
mina._y = mina._y + speed;
if (mina._rotation < 90) {
mina._rotation = mina._rotation + 5;
} else {
mina._rotation = 90;
}
if ((mina._x > 700) || (_root._currentframe == 11)) {
mina.swapDepths(5);
mina.removeMovieClip();
}
}
};
if (((_root.fir == 1) & (_root.missammo > 0)) & ((_root.tran3 == 1) || (_root.tran4 == 1))) {
var mis2 = _root.attachMovie("mis2", "mis2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
mis2.onEnterFrame = function () {
var _local2 = mis2._currentframe;
if (mis2._currentframe == 1) {
mis2._x = _root.heli._x;
mis2._y = _root.heli._y;
mis2._rotation = _root.heli._rotation + 90;
_root.missammo = _root.missammo - 1;
mis2.play();
}
if ((mis2._y > 385) & (mis2._currentframe == 2)) {
mis2.gotoAndPlay(3);
}
if ((mis2._currentframe != 2) & (mis2._currentframe != 1)) {
mis2._rotation = 90;
}
if (mis2._currentframe == 16) {
mis2.swapDepths(5);
mis2.removeMovieClip();
}
if ((mis2._currentframe == 2) || (mis2._currentframe == 1)) {
if (mis2.hitTest(_root.ag)) {
mis2.play();
}
if (mis2.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 4;
mis2.play();
}
if (mis2.hitTest(_root.bos3)) {
_root.boss3life = _root.boss3life - 10;
mis2.gotoAndPlay(17);
}
if (mis2.hitTest(_root.bos4)) {
_root.boss4life = _root.boss4life - 10;
mis2.gotoAndPlay(17);
}
if (mis2.hitTest(_root.ad)) {
mis2.play();
}
if (mis2.hitTest(_root.ak)) {
mis2.play();
}
if (mis2.hitTest(_root.ah)) {
mis2.play();
}
if (mis2.hitTest(_root.ag)) {
mis2.play();
}
if (mis2.hitTest(_root.af)) {
mis2.play();
}
if (mis2.hitTest(_root.al)) {
mis2.play();
}
if (mis2.hitTest(_root.p1)) {
mis2.gotoAndPlay(17);
}
if (mis2.hitTest(_root.p2)) {
mis2.gotoAndPlay(17);
}
if (mis2.hitTest(_root.p3)) {
mis2.gotoAndPlay(17);
}
if (mis2.hitTest(_root.qw)) {
mis2.gotoAndPlay(17);
}
if (mis2.hitTest(_root.qe)) {
mis2.gotoAndPlay(17);
}
if (mis2.hitTest(_root.qr)) {
mis2.gotoAndPlay(17);
}
if (mis2.hitTest(_root.ws)) {
mis2.play();
}
}
if (mis2._currentframe == 2) {
if (mis2._rotation > -30) {
mis2._rotation = mis2._rotation - 6;
}
mis2._y = mis2._y + (15 * Math.sin(mis2._rotation * (Math.PI/180)));
mis2._x = mis2._x + (15 * Math.cos(mis2._rotation * (Math.PI/180)));
if ((mis2._x > 700) || (_root._currentframe == 11)) {
mis2.swapDepths(5);
mis2.removeMovieClip();
}
}
};
if (((_root.fir == 1) & (_root.missammo > 0)) & (((_root.tran2 == 1) || (_root.tran3 == 1)) || (_root.tran4 == 1))) {
var mis3 = _root.attachMovie("mis3", "mis3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
mis3.onEnterFrame = function () {
var _local2 = mis3._currentframe;
if (mis3._currentframe == 1) {
mis3._x = _root.heli._x;
mis3._y = _root.heli._y;
_root.missammo = _root.missammo - 1;
mis3._rotation = _root.heli._rotation - 90;
mis3.play();
}
if ((mis3._y > 385) && (mis3._currentframe == 2)) {
mis3.gotoAndPlay(3);
}
if ((mis3._currentframe != 2) & (mis3._currentframe != 1)) {
mis3._rotation = 90;
}
if (mis3._currentframe == 16) {
mis3.swapDepths(5);
mis3.removeMovieClip();
}
if ((mis3._currentframe == 2) || (mis3._currentframe == 3)) {
if (mis3.hitTest(_root.ag)) {
mis3.play();
}
if (mis3.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 4;
mis3.play();
}
if (mis3.hitTest(_root.bos3)) {
_root.boss3life = _root.boss3life - 10;
mis3.gotoAndPlay(17);
}
if (mis3.hitTest(_root.bos4)) {
_root.boss4life = _root.boss4life - 10;
mis3.play();
}
if (mis3.hitTest(_root.ad)) {
mis3.play();
}
if (mis3.hitTest(_root.ak)) {
mis3.play();
}
if (mis3.hitTest(_root.ah)) {
mis3.play();
}
if (mis3.hitTest(_root.ag)) {
mis3.play();
}
if (mis3.hitTest(_root.af)) {
mis3.play();
}
if (mis3.hitTest(_root.al)) {
mis3.play();
}
if (mis3.hitTest(_root.p1)) {
mis3.gotoAndPlay(17);
}
if (mis3.hitTest(_root.p2)) {
mis3.gotoAndPlay(17);
}
if (mis3.hitTest(_root.p3)) {
mis3.gotoAndPlay(17);
}
if (mis3.hitTest(_root.qw)) {
mis3.gotoAndPlay(17);
}
if (mis3.hitTest(_root.qe)) {
mis3.gotoAndPlay(17);
}
if (mis3.hitTest(_root.qr)) {
mis3.gotoAndPlay(17);
}
if (mis3.hitTest(_root.ws)) {
mis3.play();
}
}
if (mis3._currentframe == 2) {
if (mis3._rotation < 30) {
mis3._rotation = mis3._rotation + 6;
}
mis3._y = mis3._y + (15 * Math.sin(mis3._rotation * (Math.PI/180)));
mis3._x = mis3._x + (15 * Math.cos(mis3._rotation * (Math.PI/180)));
if ((mis3._x > 700) || (_root._currentframe == 11)) {
mis3.swapDepths(5);
mis3.removeMovieClip();
}
}
};
if ((_root.fir2 == 1) & (((_root.tran2 == 1) || (_root.tran3 == 1)) || (_root.tran4 == 1))) {
var sho2 = _root.attachMovie("sho2", "sho2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
sho2.onEnterFrame = function () {
if (sho2._currentframe == 1) {
sho2._x = _root.heli._x;
sho2._y = _root.heli._y;
sho2._rotation = _root.heli._rotation;
sho2.play();
}
if ((sho2._y > 372) && (sho2._currentframe == 2)) {
sho2.play();
}
if (sho2._currentframe == 6) {
sho2.swapDepths(5);
sho2.removeMovieClip();
}
if (sho2.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 2;
sho2.play();
}
if (sho2.hitTest(_root.bos3)) {
_root.boss3life = _root.boss3life - 4;
sho2.play();
}
if (sho2.hitTest(_root.bos4)) {
_root.boss4life = _root.boss4life - 4;
sho2.play();
}
if (sho2.hitTest(_root.ad)) {
sho2.play();
}
if (sho2.hitTest(_root.ak)) {
sho2.play();
}
if (sho2.hitTest(_root.ah)) {
sho2.play();
}
if (sho2.hitTest(_root.ag)) {
sho2.play();
}
if (sho2.hitTest(_root.af)) {
sho2.play();
}
if (sho2.hitTest(_root.al)) {
sho2.play();
}
if (sho2.hitTest(_root.p1)) {
sho2.play();
}
if (sho2.hitTest(_root.p2)) {
sho2.play();
}
if (sho2.hitTest(_root.p3)) {
sho2.play();
}
if (sho2.hitTest(_root.qw)) {
sho2.play();
}
if (sho2.hitTest(_root.qe)) {
sho2.play();
}
if (sho2.hitTest(_root.qr)) {
sho2.play();
}
if (sho2.hitTest(_root.ws)) {
sho2.play();
}
if (sho2._currentframe == 2) {
sho2._y = sho2._y + (25 * Math.sin(sho2._rotation * (Math.PI/180)));
sho2._x = sho2._x + (25 * Math.cos(sho2._rotation * (Math.PI/180)));
if ((sho2._x > 650) || (_root._currentframe == 11)) {
sho2.swapDepths(5);
sho2.removeMovieClip();
}
}
};
if ((_root.fir2 == 1) & ((_root.tran3 == 1) || (_root.tran4 == 1))) {
var sho3 = _root.attachMovie("sho3", "sho3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
sho3.onEnterFrame = function () {
if (sho3._currentframe == 1) {
sho3._x = _root.heli._x;
sho3._y = _root.heli._y;
sho3._rotation = _root.heli._rotation;
sho3.play();
}
if ((sho3._y > 372) && (sho3._currentframe == 2)) {
sho3.play();
}
if (sho3._currentframe == 6) {
sho3.swapDepths(5);
sho3.removeMovieClip();
}
if (sho3.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 2;
sho3.play();
}
if (sho3.hitTest(_root.bos3)) {
_root.boss3life = _root.boss3life - 4;
sho3.play();
}
if (sho3.hitTest(_root.bos4)) {
_root.boss4life = _root.boss4life - 4;
sho3.play();
}
if (sho3.hitTest(_root.ad)) {
sho3.play();
}
if (sho3.hitTest(_root.ak)) {
sho3.play();
}
if (sho3.hitTest(_root.ah)) {
sho3.play();
}
if (sho3.hitTest(_root.ag)) {
sho3.play();
}
if (sho3.hitTest(_root.af)) {
sho3.play();
}
if (sho3.hitTest(_root.al)) {
sho3.play();
}
if (sho3.hitTest(_root.p1)) {
sho3.play();
}
if (sho3.hitTest(_root.p2)) {
sho3.play();
}
if (sho3.hitTest(_root.p3)) {
sho3.play();
}
if (sho3.hitTest(_root.qw)) {
sho3.play();
}
if (sho3.hitTest(_root.qe)) {
sho3.play();
}
if (sho3.hitTest(_root.qr)) {
sho3.play();
}
if (sho3.hitTest(_root.ws)) {
sho3.play();
}
if (sho3._currentframe == 2) {
sho3._y = sho3._y + (25 * Math.sin(sho3._rotation * (Math.PI/180)));
sho3._x = sho3._x + (25 * Math.cos(sho3._rotation * (Math.PI/180)));
if ((sho3._x > 650) || (_root._currentframe == 11)) {
sho3.swapDepths(5);
sho3.removeMovieClip();
}
}
};
if (random(1000) > 998) {
var drop1 = _root.attachMovie("drop1", "drop1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
drop1.onEnterFrame = function () {
if (drop1._currentframe == 1) {
drop1._x = random(200) + 350;
drop1._y = -70;
drop1.play();
}
if (drop1._currentframe == 2) {
drop1._y = drop1._y + 3;
drop1._x = drop1._x - 3;
if (drop1.hitTest(_root.heli)) {
drop1.gotoAndStop(6);
_root.life = 100;
}
if (drop1._y > 375) {
drop1.play();
}
}
if (drop1._currentframe == 6) {
drop1.swapDepths(5);
drop1.removeMovieClip();
}
};
if (random(1000) > 995) {
var drop2 = _root.attachMovie("drop2", "drop2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
drop2.onEnterFrame = function () {
if (drop2._currentframe == 1) {
drop2._x = random(200) + 350;
drop2._y = -70;
drop2.play();
}
if (drop2._currentframe == 2) {
drop2._y = drop2._y + 3;
drop2._x = drop2._x - 3;
if (drop2.hitTest(_root.heli)) {
drop2.gotoAndStop(6);
_root.bombammo = _root.bombammo + 5;
}
if (drop2._y > 375) {
drop2.play();
}
}
if (drop2._currentframe == 6) {
drop2.swapDepths(5);
drop2.removeMovieClip();
}
};
if (random(1000) > 995) {
var drop3 = _root.attachMovie("drop3", "drop3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
drop3.onEnterFrame = function () {
if (drop3._currentframe == 1) {
drop3._x = random(200) + 350;
drop3._y = -70;
drop3.play();
}
if (drop3._currentframe == 2) {
drop3._y = drop3._y + 3;
drop3._x = drop3._x - 3;
if (drop3.hitTest(_root.heli)) {
drop3.gotoAndStop(6);
_root.missammo = _root.missammo + 15;
}
if (drop3._y > 375) {
drop3.play();
}
}
if (drop3._currentframe == 6) {
drop3.swapDepths(5);
drop3.removeMovieClip();
}
};
if (((_root.ak._x < 600) & (random(1000) > 990)) & (_root.scor < 1300)) {
var enfir = _root.attachMovie("enfir", "enfir" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
enfir.onEnterFrame = function () {
if (enfir._currentframe == 1) {
enfir._x = _root.ak._x - 50;
enfir._y = _root.ak._y - 30;
enfir._rotation = -60;
enfir.play();
}
if (enfir._currentframe == 2) {
enfir._rotation = enfir._rotation + 0.2;
enfir._y = enfir._y + (8 * Math.sin(enfir._rotation * (Math.PI/180)));
enfir._x = enfir._x + (8 * Math.cos(enfir._rotation * (Math.PI/180)));
if (enfir.hitTest(_root.heli)) {
enfir.play();
_root.life = _root.life - 1;
}
if ((enfir._x > 700) || (_root._currentframe == 11)) {
enfir.swapDepths(5);
enfir.removeMovieClip();
}
}
if (enfir._currentframe == 16) {
enfir.swapDepths(5);
enfir.removeMovieClip();
}
};
if ((_root.p2._x < 600) & (random(1000) > 990)) {
var minka1 = _root.attachMovie("minka1", "minka1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
minka1.onEnterFrame = function () {
if (minka1._currentframe == 1) {
minka1._x = _root.p2._x;
minka1._y = _root.p2._y;
minka1.play();
}
if ((minka1._y > 355) && (minka1._currentframe == 2)) {
minka1.gotoAndPlay(3);
}
if (minka1._currentframe == 16) {
minka1.swapDepths(5);
minka1.removeMovieClip();
}
if (minka1.hitTest(_root.heli)) {
minka1.play();
_root.life = _root.life - 1;
}
if (minka1._currentframe == 2) {
minka1._x = minka1._x - 3;
minka1._y = minka1._y + 1;
if ((minka1._x > 700) || (_root._currentframe == 11)) {
minka1.swapDepths(5);
minka1.removeMovieClip();
}
}
};
if ((_root.qe._x > 0) & (random(1000) > 960)) {
var minka2 = _root.attachMovie("minka2", "minka2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
minka2.onEnterFrame = function () {
if (minka2._currentframe == 1) {
minka2._x = _root.qe._x;
minka2._y = _root.qe._y;
minka2.play();
}
if ((minka2._y > 355) && (minka2._currentframe == 2)) {
minka2.gotoAndPlay(3);
}
if (minka2._currentframe == 16) {
minka2.swapDepths(5);
minka2.removeMovieClip();
}
if (minka2.hitTest(_root.heli)) {
minka2.play();
_root.life = _root.life - 1;
}
if (minka2._currentframe == 2) {
minka2._x = minka2._x - 3;
minka2._y = minka2._y + 1;
if ((minka2._x > 700) || (_root._currentframe == 11)) {
minka2.swapDepths(5);
minka2.removeMovieClip();
}
}
};
if ((_root.qr._x > 0) & (random(1000) > 970)) {
var minka3 = _root.attachMovie("minka3", "minka3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
minka3.onEnterFrame = function () {
if (minka3._currentframe == 1) {
minka3._x = _root.qr._x;
minka3._y = _root.qr._y;
minka3.play();
}
if ((minka3._y > 355) && (minka3._currentframe == 2)) {
minka3.gotoAndPlay(3);
}
if (minka3._currentframe == 16) {
minka3.swapDepths(5);
minka3.removeMovieClip();
}
if (minka3.hitTest(_root.heli)) {
minka3.play();
_root.life = _root.life - 1;
}
if (minka3._currentframe == 2) {
minka3._x = minka3._x - 3;
minka3._y = minka3._y + 1;
if ((minka3._x > 700) || (_root._currentframe == 11)) {
minka3.swapDepths(5);
minka3.removeMovieClip();
}
}
};
if ((_root.qw._x > 0) & (random(1000) > 980)) {
var minka4 = _root.attachMovie("minka4", "minka4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
minka4.onEnterFrame = function () {
if (minka4._currentframe == 1) {
minka4._x = _root.qw._x;
minka4._y = _root.qw._y;
minka4.play();
}
if ((minka4._y > 355) && (minka4._currentframe == 2)) {
minka4.gotoAndPlay(3);
}
if (minka4._currentframe == 16) {
minka4.swapDepths(5);
minka4.removeMovieClip();
}
if (minka4.hitTest(_root.heli)) {
minka4.play();
_root.life = _root.life - 1;
}
if (minka4._currentframe == 2) {
minka4._x = minka4._x - 3;
minka4._y = minka4._y + 1;
if ((minka4._x > 700) || (_root._currentframe == 11)) {
minka4.swapDepths(5);
minka4.removeMovieClip();
}
}
};
if ((_root.boss3 == 1) & (random(1000) > 980)) {
var lsr = _root.attachMovie("lsr", "lsr" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
lsr.onEnterFrame = function () {
if (lsr._currentframe == 1) {
lsr._x = _root.robo3reka._x;
lsr._y = _root.robo3reka._y;
lsr._rotation = _root.robo3reka._rotation;
lsr.play();
}
if (lsr._currentframe == 2) {
lsr._y = lsr._y + (4 * Math.sin(lsr._rotation * (Math.PI/180)));
lsr._x = lsr._x + (4 * Math.cos(lsr._rotation * (Math.PI/180)));
if (lsr.hitTest(_root.heli)) {
lsr.play();
_root.life = _root.life - 1;
}
if (((lsr._x > 750) || (lsr._x < -150)) || (_root._currentframe == 11)) {
lsr.swapDepths(5);
lsr.removeMovieClip();
}
}
if (lsr._currentframe == 16) {
lsr.swapDepths(5);
lsr.removeMovieClip();
}
};
if ((_root.boss4 == 1) & (random(1000) > 975)) {
var lsr2 = _root.attachMovie("lsr2", "lsr2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
lsr2.onEnterFrame = function () {
if (lsr2._currentframe == 1) {
lsr2._x = _root.robo4reka._x;
lsr2._y = _root.robo4reka._y;
lsr2._rotation = _root.robo4reka._rotation;
lsr2.play();
}
if (lsr2._currentframe == 2) {
lsr2._y = lsr2._y + (4 * Math.sin(lsr2._rotation * (Math.PI/180)));
lsr2._x = lsr2._x + (4 * Math.cos(lsr2._rotation * (Math.PI/180)));
if (lsr2.hitTest(_root.heli)) {
lsr2.play();
_root.life = _root.life - 1;
}
if (((lsr2._x > 750) || (lsr2._x < -150)) || (_root._currentframe == 11)) {
lsr2.swapDepths(5);
lsr2.removeMovieClip();
}
}
if (lsr2._currentframe == 16) {
lsr2.swapDepths(5);
lsr2.removeMovieClip();
}
};
if ((((_root.af._x < 600) && (random(1000) > 990)) && (_root.af._currentframe != 12)) && (_root.af._currentframe != 13)) {
var enfir2 = _root.attachMovie("enfir2", "enfir2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
enfir2.onEnterFrame = function () {
if (enfir2._currentframe == 1) {
enfir2._x = _root.af._x;
enfir2._y = _root.af._y - 50;
enfir2._rotation = -60;
enfir2.play();
}
if (enfir2._currentframe == 2) {
enfir2._rotation = enfir2._rotation + 0.2;
enfir2._y = enfir2._y + (8 * Math.sin(enfir2._rotation * (Math.PI/180)));
enfir2._x = enfir2._x + (8 * Math.cos(enfir2._rotation * (Math.PI/180)));
if (enfir2.hitTest(_root.heli)) {
enfir2.play();
_root.life = _root.life - 1;
}
if ((enfir2._x > 700) || (_root._currentframe == 11)) {
enfir2.swapDepths(5);
enfir2.removeMovieClip();
}
}
if (enfir2._currentframe == 16) {
enfir2.swapDepths(5);
enfir2.removeMovieClip();
}
};
if ((((_root.ah._x < 600) & (random(1000) > 990)) && (_root.ah._currentframe != 15)) && (_root.ah._currentframe != 16)) {
var enfir3 = _root.attachMovie("enfir3", "enfir3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
enfir3.onEnterFrame = function () {
if (enfir3._currentframe == 1) {
enfir3._x = _root.ah._x + 50;
enfir3._y = _root.ah._y - 50;
enfir3._rotation = -60;
enfir3.play();
}
if (enfir3._currentframe == 2) {
enfir3._rotation = enfir3._rotation + 0.2;
enfir3._y = enfir3._y + (8 * Math.sin(enfir3._rotation * (Math.PI/180)));
enfir3._x = enfir3._x + (8 * Math.cos(enfir3._rotation * (Math.PI/180)));
if (enfir3.hitTest(_root.heli)) {
enfir3.play();
_root.life = _root.life - 1;
}
if ((enfir3._x > 700) || (_root._currentframe == 11)) {
enfir3.swapDepths(5);
enfir3.removeMovieClip();
}
}
if (enfir3._currentframe == 16) {
enfir3.swapDepths(5);
enfir3.removeMovieClip();
}
};
if ((((_root.al._x > 0) && (random(1000) > 990)) && (_root.al._currentframe != 15)) && (_root.al._currentframe != 16)) {
var enfir4 = _root.attachMovie("enfir4", "enfir4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
enfir4.onEnterFrame = function () {
if (enfir4._currentframe == 1) {
enfir4._x = _root.al._x - 50;
enfir4._y = _root.al._y - 50;
enfir4._rotation = 60;
enfir4.gotoAndPlay(3);
}
if (enfir4._currentframe == 2) {
enfir4._rotation = enfir4._rotation - 0.2;
enfir4._y = enfir4._y + (8 * Math.sin(enfir4._rotation * (Math.PI/180)));
enfir4._x = enfir4._x + (8 * Math.cos(enfir4._rotation * (Math.PI/180)));
if (enfir4.hitTest(_root.heli)) {
enfir4.play();
_root.life = _root.life - 1;
}
if ((enfir4._x < -70) || (_root._currentframe == 11)) {
enfir4.swapDepths(5);
enfir4.removeMovieClip();
}
}
if (enfir4._currentframe == 16) {
enfir4.swapDepths(5);
enfir4.removeMovieClip();
}
};
}
};
Instance of Symbol 378 MovieClip in Frame 8
onClipEvent (enterFrame) {
_root.pion = 3;
if (Key.isDown(90)) {
if (_currentframe == 1) {
_root.fir = 1;
_root.pion = 3;
play();
}
} else {
_root.fir = 0;
_root.pion = 3;
}
if (_currentframe != 1) {
_root.fir = 0;
_root.pion = 3;
}
}
Instance of Symbol 380 MovieClip in Frame 8
onClipEvent (enterFrame) {
_root.pion = 3;
if (Key.isDown(88)) {
if (_currentframe == 1) {
_root.fir2 = 1;
_root.pion = 3;
play();
}
} else {
_root.fir2 = 0;
_root.pion = 3;
}
if (_currentframe != 1) {
_root.fir2 = 0;
_root.pion = 3;
}
}
Instance of Symbol 429 MovieClip "qr" in Frame 8
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if ((_currentframe == 1) & (random(1000) > 995)) {
_x = 850;
_y = random(150);
dx = Math.atan2(_root.heli._y - _y, _root.heli._x - _x) / (Math.PI/180);
xSpeed = 10 * Math.cos(dx * (Math.PI/180));
ySpeed = 10 * Math.sin(dx * (Math.PI/180));
play();
}
if ((_currentframe != 1) & (_currentframe != 20)) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (_x < -100) {
gotoAndStop (1);
}
if (_y >= 310) {
_y = 310;
_x = (_x - 10);
}
}
if (_currentframe == 20) {
_x = (_x - 1);
_y = (_y + 4);
if (_y > 360) {
play();
}
}
if (_currentframe == 27) {
_x = 714;
_root.scor = _root.scor + 5;
gotoAndStop (1);
}
if ((_root.scor > 1300) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
Instance of Symbol 429 MovieClip "qe" in Frame 8
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (((_currentframe == 1) & (random(1000) > 990)) & (_root.scor > 600)) {
play();
var loco = 90;
}
if ((_currentframe != 1) & (_currentframe != 20)) {
loco = loco - 1;
_y = (_y + (5 * Math.sin(loco * (Math.PI/180))));
_x = (_x + (5 * Math.cos(loco * (Math.PI/180))));
if ((_x > 700) & (_y < -50)) {
_x = -150;
_y = -50;
gotoAndStop (1);
}
}
if (_currentframe == 20) {
_x = (_x - 1);
_y = (_y + 4);
if (_y > 360) {
play();
}
}
if (_currentframe == 27) {
_x = (random(200) - 70);
_y = -65;
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
if ((_root.scor > 1300) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
Instance of Symbol 431 MovieClip in Frame 8
onClipEvent (enterFrame) {
_root.pion = 3;
if (Key.isDown(67)) {
if (_currentframe == 1) {
_root.fir3 = 1;
_root.pion = 3;
play();
}
} else {
_root.fir3 = 0;
_root.pion = 3;
}
if (_currentframe != 1) {
_root.fir3 = 0;
_root.pion = 3;
}
}
Instance of Symbol 501 MovieClip "ad" in Frame 8
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if ((_currentframe == 1) & (_root.scor > 560)) {
if (random(100) > 60) {
play();
}
}
if (_currentframe != 1) {
_x = (_x + 2);
_x + 2;
}
if (_x > 680) {
_x = ((-1 * random(1000)) - 200);
gotoAndStop (1);
}
if (_currentframe == 20) {
_x = ((-1 * random(1000)) - 200);
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
if ((_root.scor > 1300) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
Instance of Symbol 585 MovieClip "af" in Frame 8
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
if (random(1000) > 750) {
play();
}
}
if (_currentframe != 1) {
_x = (_x + 2);
_x + 2;
}
if (_x > 700) {
_x = ((-1 * random(1000)) - 200);
gotoAndStop (1);
}
if (_currentframe == 13) {
_x = ((-1 * random(1000)) - 200);
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
if ((_root.scor > 1300) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
Instance of Symbol 944 MovieClip "ah" in Frame 8
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if ((_currentframe == 1) & (_root.scor > 800)) {
if (random(1000) > 950) {
play();
}
}
if (_currentframe != 1) {
_x = (_x - 2);
_x - 2;
}
if (_x < -100) {
_x = (random(850) + 650);
gotoAndStop (1);
}
if (_currentframe == 16) {
_x = (random(850) + 650);
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
if ((_root.scor > 1300) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
Instance of Symbol 556 MovieClip "ak" in Frame 8
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
play();
}
if (_currentframe != 1) {
_x = (_x - 1);
_x - 1;
}
if (_x < -100) {
_x = (850 + random(600));
gotoAndStop (1);
}
if (_currentframe == 11) {
_x = (850 + random(600));
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
if ((_root.scor > 1350) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
Instance of Symbol 537 MovieClip "p3" in Frame 8
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (((_currentframe == 1) & (random(1000) > 998)) & (_root.scor > 820)) {
fx = 0;
_rotation = fx;
play();
}
if ((_currentframe != 1) & (_currentframe != 11)) {
if (fx < 355) {
fx = fx + 2;
}
_y = (_y + (6 * Math.sin(fx * (Math.PI/180))));
_x = (_x + (6 * Math.cos(fx * (Math.PI/180))));
if (_y >= 310) {
fx = 0;
_y = 310;
_x = (_x + 11);
}
}
if (_x > 600) {
_x = (random(400) * -1);
_y = 100;
gotoAndStop (1);
}
if (_currentframe == 11) {
_x = (_x + 3);
_y = (_y + 7);
if (_y > 370) {
_y = 370;
play();
}
}
if (_currentframe == 18) {
_x = -150;
_root.scor = _root.scor + 5;
gotoAndStop (1);
}
if ((_root.scor > 1300) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
Instance of Symbol 944 MovieClip "al" in Frame 8
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if ((_currentframe == 1) & (_root.scor > 700)) {
play();
}
if (_currentframe != 1) {
_x = (_x + 2);
_x + 2;
}
if (_x > 680) {
_x = (-1 * random(800));
gotoAndStop (1);
}
if (_currentframe == 16) {
_x = (-1 * random(800));
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
if ((_root.scor > 1300) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
Instance of Symbol 610 MovieClip "ws" in Frame 8
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
if ((random(1000) > 99) & (_root.scor > 720)) {
play();
}
}
if (_currentframe != 1) {
_x = (_x - 10);
}
if (_x < -100) {
_x = (random(850) + 650);
gotoAndStop (1);
}
if (_currentframe == 20) {
_x = (random(1000) + 650);
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
if ((_root.scor > 1300) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
Instance of Symbol 429 MovieClip "qw" in Frame 8
onClipEvent (enterFrame) {
if (((_currentframe == 1) & (random(1000) > 990)) & (_root.scor > 700)) {
var loco = 180;
play();
}
if ((_currentframe != 1) & (_currentframe != 20)) {
(loco = loco - 1);
_y = (_y + (4 * Math.sin(loco * (Math.PI/180))));
_x = (_x + (4 * Math.cos(loco * (Math.PI/180))));
if ((_x > 700) & (_y < -50)) {
_x = (random(300) + 300);
_y = -100;
gotoAndStop (1);
}
}
if (_currentframe == 20) {
_x = (_x - 1);
_y = (_y + 4);
if (_y > 360) {
play();
}
}
if (_currentframe == 27) {
_x = random(450);
_y = -100;
_root.scor = _root.scor + 5;
gotoAndStop (1);
}
if ((_root.scor > 1300) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
Instance of Symbol 637 MovieClip "p1" in Frame 8
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (((_currentframe == 1) & (random(1000) > 990)) & (_root.scor > 900)) {
play();
_rotation = 55;
}
if ((_currentframe != 1) & (_currentframe != 17)) {
_rotation = (_rotation - 1);
_y = (_y + (8 * Math.sin(_rotation * (Math.PI/180))));
_x = (_x + (8 * Math.cos(_rotation * (Math.PI/180))));
}
if (_x > 750) {
_x = ((random(400) * -1) - 100);
_y = 150;
if (_currentframe == 17) {
_root.scor = _root.scor + 5;
}
gotoAndStop (1);
}
if (_currentframe == 17) {
_x = (_x + 3);
_y = (_y + 7);
if (_y > 370) {
_y = 370;
play();
}
}
if (_currentframe == 24) {
_x = -170;
_y = 120;
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
if ((_root.scor > 1300) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
Instance of Symbol 948 MovieClip "bos3" in Frame 8
onClipEvent (load) {
xscale = _xscale;
}
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_root.boss3 == 1) {
if (_x > 450) {
_x = (_x - 3);
}
if (_y > 210) {
_y = 210;
}
if ((_root.boss3life < 10) & (_currentframe != 17)) {
play();
}
_root.newx = _root.heli._y;
_root.newy = _root.heli._x;
var initx = _x;
var inity = _y;
loc = Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180);
_y = (_y + (5 * Math.sin(loc * (Math.PI/180))));
if (_x < _root.heli._x) {
_xscale = (-xscale);
} else {
_xscale = xscale;
}
}
if (_currentframe == 17) {
_x = 1000;
if ((_root.scor > 1300) & (_root.boss3 != 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 951 MovieClip "robo3reka" in Frame 8
onClipEvent (load) {
xscale = _xscale;
yscale = _yscale;
}
onClipEvent (enterFrame) {
if (_root.boss3life > 10) {
_x = _root.bos3._x;
_y = _root.bos3._y;
_root.newx = _root.heli._y;
_root.newy = _root.heli._x;
var initx = _x;
var inity = _y;
_rotation = (Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180));
if (_x < _root.heli._x) {
_yscale = (-yscale);
} else {
_yscale = yscale;
}
}
if (_root.boss3life < 10) {
_rotation = 0;
_y = (_y + 5);
if (_y > 380) {
_y = 380;
_x = (_x - 3);
}
if (_x < -150) {
_root.boss3life = 3000;
if (_root.scor > 520) {
this.swapDepths(5);
this.removeMovieClip();
}
_x = _root.boss3._x;
_y = _root.boss3._y;
_root.bos3.gotoAndStop(1);
}
}
}
Instance of Symbol 953 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_currentframe != 4000) {
_root.boss3 = 0;
} else {
_root.boss3 = 1;
}
if ((_root.boss3life < 10) && (_currentframe == 4000)) {
gotoAndPlay (1);
}
}
Instance of Symbol 727 MovieClip "bos4" in Frame 8
onClipEvent (load) {
xscale = _xscale;
}
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_root.boss4 == 1) {
if (_root.boss4 == 1) {
_root.newx = _root.heli._y;
_root.newy = _root.heli._x;
var initx = _x;
var inity = _y;
loc = Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180);
_x = (_x + (5 * Math.cos(loc * (Math.PI/180))));
}
if ((_root.boss4life < 10) & (_currentframe != 30)) {
play();
}
}
if (_currentframe == 30) {
_x = 1000;
if ((_root.scor > 1300) & (_root.boss4 != 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 956 MovieClip "robo5reka" in Frame 8
onClipEvent (load) {
xscale = _xscale;
yscale = _yscale;
}
onClipEvent (enterFrame) {
if (_root.boss4life > 10) {
_x = _root.bos4._x;
_y = _root.bos4._y;
_root.newx = _root.heli._y;
_root.newy = _root.heli._x;
var initx = _x;
var inity = _y;
_rotation = (Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180));
if (_x < _root.heli._x) {
_yscale = (-yscale);
} else {
_yscale = yscale;
}
}
if (_root.boss4life < 10) {
_rotation = 0;
_y = (_y + 5);
if (_y > 380) {
_y = 380;
_x = (_x - 3);
}
if (_x < -150) {
_root.boss4life = 3000;
if (_root.scor > 1400) {
this.swapDepths(5);
this.removeMovieClip();
}
_x = _root.boss4._x;
_y = _root.boss4._y;
_root.bos4.gotoAndStop(1);
}
}
}
Instance of Symbol 960 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_currentframe != 2300) {
_root.boss4 = 0;
} else {
_root.boss4 = 1;
}
if ((_root.boss4life < 10) && (_currentframe == 2300)) {
gotoAndPlay (1);
}
}
Instance of Symbol 637 MovieClip "p2" in Frame 8
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
_y = random(150);
if ((random(1000) > 989) & (_root.scor > 700)) {
play();
}
}
if ((_currentframe != 1) & (_currentframe != 17)) {
_x = (_x - 8);
}
if (_x < -100) {
_x = 803;
gotoAndStop (1);
}
if (_currentframe == 17) {
_x = (_x - 3);
_y = (_y + 7);
if (_y > 370) {
_y = 370;
play();
}
}
if (_currentframe == 24) {
_x = 803;
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
if ((_root.scor > 520) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
if ((_root.scor > 1300) & (_currentframe == 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
Instance of Symbol 710 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (((_root.scor > 1320) & (_currentframe == 1)) & (_root.tran3 == 1)) {
gotoAndPlay (2);
}
if (_currentframe == 200) {
_root.stage2 = 1;
}
}
Instance of Symbol 653 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_currentframe == 1) {
_x = _root.bos3._x;
_y = _root.bos3._y;
if ((_root.tran3 == 0) & (_root.boss3life < 10)) {
gotoAndStop (2);
}
}
if (_currentframe == 2) {
_root.newx = _root.heli._y;
_root.newy = _root.heli._x;
var initx = _x;
var inity = _y;
var loco = (Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180));
_y = (_y + (4 * Math.sin(loco * (Math.PI/180))));
_x = (_x + (2 * Math.cos(loco * (Math.PI/180))));
if (hitTest(_root.heli)) {
gotoAndPlay (3);
_root.tran2 = 0;
_root.tran3 = 1;
}
}
if (_currentframe == 14) {
this.swapDepths(5);
this.removeMovieClip();
}
}
Instance of Symbol 716 MovieClip "pause" in Frame 8
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.POU = 1;
}
if (_root.POU == 1) {
gotoAndStop (2);
_visible = true;
}
if (_root.POU == 0) {
gotoAndStop (1);
_visible = false;
}
}
Frame 9
var starting3 = 0;
onEnterFrame = function () {
if (_root.starting3 == 1) {
_root.gotoAndStop(10);
}
};
stop();
Instance of Symbol 1023 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (_currentframe == 160) {
_root.starting3 = 1;
}
}
Frame 10
onEnterFrame = function () {
if (_root.POU == 0) {
if (_root.life < 0) {
_root.gotoAndStop(12);
stopAllSounds();
}
if ((((_root._currentframe == 12) || (_root._currentframe == 11)) || (_root._currentframe == 13)) || (_root._currentframe == 4)) {
delete _root.onEnterFrame;
}
var _local2 = 0;
if ((_root._currentframe == 11) && (_root._currentframe == 12)) {
delete _root.onEnterFrame;
}
updateFrameRate();
if ((_root.fir == 1) & (_root.missammo > 0)) {
var mfir = _root.attachMovie("mfir", "mfir" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
mfir.onEnterFrame = function () {
if (mfir._currentframe == 1) {
mfir._x = _root.heli._x;
mfir._y = _root.heli._y;
mfir._rotation = _root.heli._rotation;
mfir.play();
}
if (mfir._currentframe == 5) {
mfir.swapDepths(5);
mfir.removeMovieClip();
}
};
if ((_root.fir == 1) & (_root.missammo > 0)) {
var miss = _root.attachMovie("miss", "miss" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
miss.onEnterFrame = function () {
var _local2 = miss._currentframe;
if (miss._currentframe == 1) {
miss._x = _root.heli._x;
miss._y = _root.heli._y;
_root.missammo = _root.missammo - 1;
miss._rotation = _root.heli._rotation;
miss.play();
}
if ((miss._y > 385) && (miss._currentframe == 2)) {
miss.gotoAndPlay(3);
}
if ((miss._currentframe != 2) & (miss._currentframe != 1)) {
miss._rotation = 90;
}
if (miss._currentframe == 16) {
miss.swapDepths(5);
miss.removeMovieClip();
}
if ((miss._currentframe == 2) || (miss._currentframe == 1)) {
if (miss.hitTest(_root.ag)) {
miss.play();
}
if (miss.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 4;
miss.play();
}
if (miss.hitTest(_root.bos2)) {
_root.boss2life = _root.boss2life - 4;
miss.play();
}
if (miss.hitTest(_root.bos3)) {
_root.boss3life = _root.boss3life - 4;
miss.play();
}
if (miss.hitTest(_root.bos4)) {
_root.boss4life = _root.boss4life - 4;
miss.play();
}
if (miss.hitTest(_root.bos5)) {
_root.boss5life = _root.boss5life - 4;
miss.play();
}
if (miss.hitTest(_root.ad)) {
miss.play();
}
if (miss.hitTest(_root.ak)) {
miss.play();
}
if (miss.hitTest(_root.ah)) {
miss.play();
}
if (miss.hitTest(_root.ag)) {
miss.play();
}
if (miss.hitTest(_root.af)) {
miss.play();
}
if (miss.hitTest(_root.al)) {
miss.play();
}
if (miss.hitTest(_root.p1)) {
miss.gotoAndPlay(17);
}
if (miss.hitTest(_root.p2)) {
miss.gotoAndPlay(17);
}
if (miss.hitTest(_root.p3)) {
miss.gotoAndPlay(17);
}
if (miss.hitTest(_root.qw)) {
miss.gotoAndPlay(17);
}
if (miss.hitTest(_root.qe)) {
miss.gotoAndPlay(17);
}
if (miss.hitTest(_root.qr)) {
miss.gotoAndPlay(17);
}
if (miss.hitTest(_root.ws)) {
miss.play();
}
}
if (miss._currentframe == 2) {
miss._y = miss._y + (28 * Math.sin(miss._rotation * (Math.PI/180)));
miss._x = miss._x + (28 * Math.cos(miss._rotation * (Math.PI/180)));
if ((miss._x > 700) || (_root._currentframe == 11)) {
miss.swapDepths(5);
miss.removeMovieClip();
}
}
};
if (_root.fir2 == 1) {
var sho = _root.attachMovie("sho", "sho" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
sho.onEnterFrame = function () {
if (sho._currentframe == 1) {
sho._x = _root.heli._x;
sho._y = _root.heli._y;
sho._rotation = _root.heli._rotation;
sho.play();
}
if ((sho._y > 372) && (sho._currentframe == 2)) {
sho.play();
}
if (sho._currentframe == 6) {
sho.swapDepths(5);
sho.removeMovieClip();
}
if (sho.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 2;
sho.play();
}
if (sho.hitTest(_root.bos3)) {
_root.boss3life = _root.boss3life - 4;
sho.play();
}
if (sho.hitTest(_root.bos4)) {
_root.boss4life = _root.boss4life - 4;
sho.play();
}
if (sho.hitTest(_root.bos5)) {
_root.boss5life = _root.boss5life - 4;
sho.play();
}
if (sho.hitTest(_root.ad)) {
sho.play();
}
if (sho.hitTest(_root.ak1)) {
sho.play();
}
if (sho.hitTest(_root.ah)) {
sho.play();
}
if (sho.hitTest(_root.ag)) {
sho.play();
}
if (sho.hitTest(_root.af1)) {
sho.play();
}
if (sho.hitTest(_root.al)) {
sho.play();
}
if (sho.hitTest(_root.p1)) {
sho.play();
}
if (sho.hitTest(_root.p2)) {
sho.play();
}
if (sho.hitTest(_root.p3)) {
sho.play();
}
if (sho.hitTest(_root.qw)) {
sho.play();
}
if (sho.hitTest(_root.qe)) {
sho.play();
}
if (sho.hitTest(_root.qr)) {
sho.play();
}
if (sho.hitTest(_root.ws)) {
sho.play();
}
if (sho._currentframe == 2) {
sho._y = sho._y + (25 * Math.sin(sho._rotation * (Math.PI/180)));
sho._x = sho._x + (25 * Math.cos(sho._rotation * (Math.PI/180)));
if ((sho._x > 650) || (_root._currentframe == 11)) {
sho.swapDepths(5);
sho.removeMovieClip();
}
}
};
if (_root.fir2 == 1) {
var shel = _root.attachMovie("shel", "shel" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
shel.onEnterFrame = function () {
if (shel._currentframe == 1) {
shel._x = _root.heli._x;
shel._y = _root.heli._y;
shel._rotation = random(360);
shel.play();
}
if (shel._currentframe == 2) {
shel._y = shel._y + (random(2) + 7);
shel._x = shel._x - (random(4) + 11);
shel._rotation = shel._rotation + random(4);
if ((shel._x < -50) || (_root._currentframe == 11)) {
shel.gotoAndStop(3);
}
if ((shel._y > 372) && (shel._currentframe == 2)) {
shel._y = 372;
shel._x = shel._x + 3;
}
if (shel._currentframe == 3) {
shel.swapDepths(5);
shel.removeMovieClip();
}
}
};
if ((_root.fir3 == 1) & (_root.bombammo > 0)) {
var mina = _root.attachMovie("mina", "mina" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
mina.onEnterFrame = function () {
if (mina._currentframe == 1) {
speed = 1;
mina._x = _root.heli._x - 5;
mina._y = _root.heli._y;
_root.bombammo = _root.bombammo - 1;
mina.play();
}
if ((mina._y > 355) && (mina._currentframe == 2)) {
mina.gotoAndPlay(3);
}
if (mina._currentframe == 16) {
mina.swapDepths(5);
mina.removeMovieClip();
}
if (mina.hitTest(_root.ag)) {
mina.play();
}
if (mina.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 4;
mina.play();
}
if (mina.hitTest(_root.bos3)) {
_root.boss3life = _root.boss3life - 15;
mina.play();
}
if (mina.hitTest(_root.bos4)) {
_root.boss4life = _root.boss4life - 15;
mina.play();
}
if (mina.hitTest(_root.bos5)) {
_root.boss5life = _root.boss5life - 15;
mina.play();
}
if (mina.hitTest(_root.ad)) {
mina.play();
}
if (mina.hitTest(_root.ak)) {
mina.play();
}
if (mina.hitTest(_root.ah)) {
mina.play();
}
if (mina.hitTest(_root.ag)) {
mina.play();
}
if (mina.hitTest(_root.af)) {
mina.play();
}
if (mina.hitTest(_root.al)) {
mina.play();
}
if (mina.hitTest(_root.p1)) {
mina.play();
}
if (mina.hitTest(_root.p2)) {
mina.play();
}
if (mina.hitTest(_root.p3)) {
mina.play();
}
if (mina.hitTest(_root.qw)) {
mina.play();
}
if (mina.hitTest(_root.qe)) {
mina.play();
}
if (mina.hitTest(_root.qr)) {
mina.play();
}
if (mina.hitTest(_root.ws)) {
mina.play();
}
if (mina._currentframe == 2) {
speed = speed + 1;
mina._y = mina._y + speed;
if (mina._rotation < 90) {
mina._rotation = mina._rotation + 5;
} else {
mina._rotation = 90;
}
if ((mina._x > 700) || (_root._currentframe == 11)) {
mina.swapDepths(5);
mina.removeMovieClip();
}
}
};
if (((_root.fir == 1) & (_root.missammo > 0)) & ((_root.tran3 == 1) || (_root.tran4 == 1))) {
var mis2 = _root.attachMovie("mis2", "mis2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
mis2.onEnterFrame = function () {
var _local2 = mis2._currentframe;
if (mis2._currentframe == 1) {
mis2._x = _root.heli._x;
mis2._y = _root.heli._y;
mis2._rotation = _root.heli._rotation + 90;
_root.missammo = _root.missammo - 1;
mis2.play();
}
if ((mis2._y > 385) & (mis2._currentframe == 2)) {
mis2.gotoAndPlay(3);
}
if ((mis2._currentframe != 2) & (mis2._currentframe != 1)) {
mis2._rotation = 90;
}
if (mis2._currentframe == 16) {
mis2.swapDepths(5);
mis2.removeMovieClip();
}
if ((mis2._currentframe == 2) || (mis2._currentframe == 1)) {
if (mis2.hitTest(_root.ag)) {
mis2.play();
}
if (mis2.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 4;
mis2.play();
}
if (mis2.hitTest(_root.bos3)) {
_root.boss3life = _root.boss3life - 10;
mis2.play();
}
if (mis2.hitTest(_root.bos4)) {
_root.boss4life = _root.boss4life - 10;
mis2.play();
}
if (mis2.hitTest(_root.bos5)) {
_root.boss5life = _root.boss5life - 10;
mis2.play();
}
if (mis2.hitTest(_root.ad)) {
mis2.play();
}
if (mis2.hitTest(_root.ak)) {
mis2.play();
}
if (mis2.hitTest(_root.ah)) {
mis2.play();
}
if (mis2.hitTest(_root.ag)) {
mis2.play();
}
if (mis2.hitTest(_root.af)) {
mis2.play();
}
if (mis2.hitTest(_root.al)) {
mis2.play();
}
if (mis2.hitTest(_root.p1)) {
mis2.gotoAndPlay(17);
}
if (mis2.hitTest(_root.p2)) {
mis2.gotoAndPlay(17);
}
if (mis2.hitTest(_root.p3)) {
mis2.gotoAndPlay(17);
}
if (mis2.hitTest(_root.qw)) {
mis2.gotoAndPlay(17);
}
if (mis2.hitTest(_root.qe)) {
mis2.gotoAndPlay(17);
}
if (mis2.hitTest(_root.qr)) {
mis2.gotoAndPlay(17);
}
if (mis2.hitTest(_root.ws)) {
mis2.play();
}
}
if (mis2._currentframe == 2) {
if (mis2._rotation > -30) {
mis2._rotation = mis2._rotation - 6;
}
mis2._y = mis2._y + (15 * Math.sin(mis2._rotation * (Math.PI/180)));
mis2._x = mis2._x + (15 * Math.cos(mis2._rotation * (Math.PI/180)));
if ((mis2._x > 700) || (_root._currentframe == 11)) {
mis2.swapDepths(5);
mis2.removeMovieClip();
}
}
};
if (((_root.fir == 1) & (_root.missammo > 0)) & (((_root.tran2 == 1) || (_root.tran3 == 1)) || (_root.tran4 == 1))) {
var mis3 = _root.attachMovie("mis3", "mis3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
mis3.onEnterFrame = function () {
var _local2 = mis3._currentframe;
if (mis3._currentframe == 1) {
mis3._x = _root.heli._x;
mis3._y = _root.heli._y;
mis3._rotation = _root.heli._rotation - 90;
_root.missammo = _root.missammo - 1;
mis3.play();
}
if ((mis3._y > 385) && (mis3._currentframe == 2)) {
mis3.gotoAndPlay(3);
}
if ((mis3._currentframe != 2) & (mis3._currentframe != 1)) {
mis3._rotation = 90;
}
if (mis3._currentframe == 16) {
mis3.swapDepths(5);
mis3.removeMovieClip();
}
if ((mis3._currentframe == 2) || (mis3._currentframe == 3)) {
if (mis3.hitTest(_root.ag)) {
mis3.play();
}
if (mis3.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 4;
mis3.play();
}
if (mis3.hitTest(_root.bos3)) {
_root.boss3life = _root.boss3life - 10;
mis3.play();
}
if (mis3.hitTest(_root.bos4)) {
_root.boss4life = _root.boss4life - 10;
mis3.play();
}
if (mis3.hitTest(_root.bos5)) {
_root.boss5life = _root.boss5life - 10;
mis3.play();
}
if (mis3.hitTest(_root.ad)) {
mis3.play();
}
if (mis3.hitTest(_root.ak)) {
mis3.play();
}
if (mis3.hitTest(_root.ah)) {
mis3.play();
}
if (mis3.hitTest(_root.ag)) {
mis3.play();
}
if (mis3.hitTest(_root.af)) {
mis3.play();
}
if (mis3.hitTest(_root.al)) {
mis3.play();
}
if (mis3.hitTest(_root.p1)) {
mis3.gotoAndPlay(17);
}
if (mis3.hitTest(_root.p2)) {
mis3.gotoAndPlay(17);
}
if (mis3.hitTest(_root.p3)) {
mis3.gotoAndPlay(17);
}
if (mis3.hitTest(_root.qw)) {
mis3.gotoAndPlay(17);
}
if (mis3.hitTest(_root.qe)) {
mis3.gotoAndPlay(17);
}
if (mis3.hitTest(_root.qr)) {
mis3.gotoAndPlay(17);
}
if (mis3.hitTest(_root.ws)) {
mis3.play();
}
}
if (mis3._currentframe == 2) {
if (mis3._rotation < 30) {
mis3._rotation = mis3._rotation + 6;
}
mis3._y = mis3._y + (15 * Math.sin(mis3._rotation * (Math.PI/180)));
mis3._x = mis3._x + (15 * Math.cos(mis3._rotation * (Math.PI/180)));
if ((mis3._x > 700) || (_root._currentframe == 11)) {
mis3.swapDepths(5);
mis3.removeMovieClip();
}
}
};
if ((_root.fir2 == 1) & (((_root.tran2 == 1) || (_root.tran3 == 1)) || (_root.tran4 == 1))) {
var sho2 = _root.attachMovie("sho2", "sho2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
sho2.onEnterFrame = function () {
if (sho2._currentframe == 1) {
sho2._x = _root.heli._x;
sho2._y = _root.heli._y;
sho2._rotation = _root.heli._rotation;
sho2.play();
}
if ((sho2._y > 372) && (sho2._currentframe == 2)) {
sho2.play();
}
if (sho2._currentframe == 6) {
sho2.swapDepths(5);
sho2.removeMovieClip();
}
if (sho2.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 2;
sho2.play();
}
if (sho2.hitTest(_root.bos3)) {
_root.boss3life = _root.boss3life - 4;
sho2.play();
}
if (sho2.hitTest(_root.bos4)) {
_root.boss4life = _root.boss4life - 4;
sho2.play();
}
if (sho2.hitTest(_root.bos5)) {
_root.boss5life = _root.boss5life - 4;
sho2.play();
}
if (sho2.hitTest(_root.ad)) {
sho2.play();
}
if (sho2.hitTest(_root.ak)) {
sho2.play();
}
if (sho2.hitTest(_root.ah)) {
sho2.play();
}
if (sho2.hitTest(_root.ag)) {
sho2.play();
}
if (sho2.hitTest(_root.af)) {
sho2.play();
}
if (sho2.hitTest(_root.al)) {
sho2.play();
}
if (sho2.hitTest(_root.p1)) {
sho2.play();
}
if (sho2.hitTest(_root.p2)) {
sho2.play();
}
if (sho2.hitTest(_root.p3)) {
sho2.play();
}
if (sho2.hitTest(_root.qw)) {
sho2.play();
}
if (sho2.hitTest(_root.qe)) {
sho2.play();
}
if (sho2.hitTest(_root.qr)) {
sho2.play();
}
if (sho2.hitTest(_root.ws)) {
sho2.play();
}
if (sho2._currentframe == 2) {
sho2._y = sho2._y + (25 * Math.sin(sho2._rotation * (Math.PI/180)));
sho2._x = sho2._x + (25 * Math.cos(sho2._rotation * (Math.PI/180)));
if ((sho2._x > 650) || (_root._currentframe == 11)) {
sho2.swapDepths(5);
sho2.removeMovieClip();
}
}
};
if ((_root.fir2 == 1) & ((_root.tran3 == 1) || (_root.tran4 == 1))) {
var sho3 = _root.attachMovie("sho3", "sho3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
sho3.onEnterFrame = function () {
if (sho3._currentframe == 1) {
sho3._x = _root.heli._x;
sho3._y = _root.heli._y;
sho3._rotation = _root.heli._rotation;
sho3.play();
}
if ((sho3._y > 372) && (sho3._currentframe == 2)) {
sho3.play();
}
if (sho3._currentframe == 6) {
sho3.swapDepths(5);
sho3.removeMovieClip();
}
if (sho3.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 2;
sho3.play();
}
if (sho3.hitTest(_root.bos3)) {
_root.boss3life = _root.boss3life - 4;
sho3.play();
}
if (sho3.hitTest(_root.bos4)) {
_root.boss4life = _root.boss4life - 4;
sho3.play();
}
if (sho3.hitTest(_root.bos5)) {
_root.boss5life = _root.boss5life - 4;
sho3.play();
}
if (sho3.hitTest(_root.ad)) {
sho3.play();
}
if (sho3.hitTest(_root.ak)) {
sho3.play();
}
if (sho3.hitTest(_root.ah)) {
sho3.play();
}
if (sho3.hitTest(_root.ag)) {
sho3.play();
}
if (sho3.hitTest(_root.af)) {
sho3.play();
}
if (sho3.hitTest(_root.al)) {
sho3.play();
}
if (sho3.hitTest(_root.p1)) {
sho3.play();
}
if (sho3.hitTest(_root.p2)) {
sho3.play();
}
if (sho3.hitTest(_root.p3)) {
sho3.play();
}
if (sho3.hitTest(_root.qw)) {
sho3.play();
}
if (sho3.hitTest(_root.qe)) {
sho3.play();
}
if (sho3.hitTest(_root.qr)) {
sho3.play();
}
if (sho3.hitTest(_root.ws)) {
sho3.play();
}
if (sho3._currentframe == 2) {
sho3._y = sho3._y + (25 * Math.sin(sho3._rotation * (Math.PI/180)));
sho3._x = sho3._x + (25 * Math.cos(sho3._rotation * (Math.PI/180)));
if ((sho3._x > 650) || (_root._currentframe == 11)) {
sho3.swapDepths(5);
sho3.removeMovieClip();
}
}
};
if (random(1000) > 998) {
var drop1 = _root.attachMovie("drop1", "drop1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
drop1.onEnterFrame = function () {
if (drop1._currentframe == 1) {
drop1._x = random(200) + 350;
drop1._y = -70;
drop1.play();
}
if (drop1._currentframe == 2) {
drop1._y = drop1._y + 3;
drop1._x = drop1._x - 3;
if (drop1.hitTest(_root.heli)) {
drop1.gotoAndStop(6);
_root.life = 100;
}
if (drop1._y > 375) {
drop1.play();
}
}
if (drop1._currentframe == 6) {
drop1.swapDepths(5);
drop1.removeMovieClip();
}
};
if (random(1000) > 995) {
var drop2 = _root.attachMovie("drop2", "drop2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
drop2.onEnterFrame = function () {
if (drop2._currentframe == 1) {
drop2._x = random(200) + 350;
drop2._y = -70;
drop2.play();
}
if (drop2._currentframe == 2) {
drop2._y = drop2._y + 3;
drop2._x = drop2._x - 3;
if (drop2.hitTest(_root.heli)) {
drop2.gotoAndStop(6);
_root.bombammo = _root.bombammo + 5;
}
if (drop2._y > 375) {
drop2.play();
}
}
if (drop2._currentframe == 6) {
drop2.swapDepths(5);
drop2.removeMovieClip();
}
};
if (random(1000) > 995) {
var drop3 = _root.attachMovie("drop3", "drop3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
drop3.onEnterFrame = function () {
if (drop3._currentframe == 1) {
drop3._x = random(200) + 350;
drop3._y = -70;
drop3.play();
}
if (drop3._currentframe == 2) {
drop3._y = drop3._y + 3;
drop3._x = drop3._x - 3;
if (drop3.hitTest(_root.heli)) {
drop3.gotoAndStop(6);
_root.missammo = _root.missammo + 15;
}
if (drop3._y > 375) {
drop3.play();
}
}
if (drop3._currentframe == 6) {
drop3.swapDepths(5);
drop3.removeMovieClip();
}
};
if (((_root.ak._x > 0) & (random(1000) > 990)) & (_root.scor > 1400)) {
var enfir = _root.attachMovie("enfir", "enfir" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
enfir.onEnterFrame = function () {
if (enfir._currentframe == 1) {
enfir._x = _root.ak._x - 50;
enfir._y = _root.ak._y - 30;
enfir._rotation = -60;
enfir.play();
}
if (enfir._currentframe == 2) {
enfir._rotation = enfir._rotation + 0.2;
enfir._y = enfir._y + (8 * Math.sin(enfir._rotation * (Math.PI/180)));
enfir._x = enfir._x + (8 * Math.cos(enfir._rotation * (Math.PI/180)));
if (enfir.hitTest(_root.heli)) {
enfir.play();
_root.life = _root.life - 1;
}
if ((enfir._x > 700) || (_root._currentframe == 11)) {
enfir.swapDepths(5);
enfir.removeMovieClip();
}
}
if (enfir._currentframe == 16) {
enfir.swapDepths(5);
enfir.removeMovieClip();
}
};
if ((_root.p2._x < 600) & (random(1000) > 990)) {
var minka1 = _root.attachMovie("minka1", "minka1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
minka1.onEnterFrame = function () {
if (minka1._currentframe == 1) {
minka1._x = _root.p2._x;
minka1._y = _root.p2._y;
minka1.play();
}
if ((minka1._y > 355) && (minka1._currentframe == 2)) {
minka1.gotoAndPlay(3);
}
if (minka1._currentframe == 16) {
minka1.swapDepths(5);
minka1.removeMovieClip();
}
if (minka1.hitTest(_root.heli)) {
minka1.play();
_root.life = _root.life - 1;
}
if (minka1._currentframe == 2) {
minka1._x = minka1._x - 3;
minka1._y = minka1._y + 1;
if ((minka1._x > 700) || (_root._currentframe == 11)) {
minka1.swapDepths(5);
minka1.removeMovieClip();
}
}
};
if ((_root.qe._x > 0) & (random(1000) > 100)) {
var minka2 = _root.attachMovie("minka2", "minka2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
minka2.onEnterFrame = function () {
if (minka2._currentframe == 1) {
minka2._x = _root.qe._x;
minka2._y = _root.qe._y;
minka2.play();
}
if ((minka2._y > 355) && (minka2._currentframe == 2)) {
minka2.gotoAndPlay(3);
}
if (minka2._currentframe == 16) {
minka2.swapDepths(5);
minka2.removeMovieClip();
}
if (minka2.hitTest(_root.heli)) {
minka2.play();
_root.life = _root.life - 1;
}
if (minka2._currentframe == 2) {
minka2._x = minka2._x - 3;
minka2._y = minka2._y + 1;
if ((minka2._x > 700) || (_root._currentframe == 11)) {
minka2.swapDepths(5);
minka2.removeMovieClip();
}
}
};
if ((_root.boss3 == 1) & (random(1000) > 980)) {
var lsr = _root.attachMovie("lsr", "lsr" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
lsr.onEnterFrame = function () {
if (lsr._currentframe == 1) {
lsr._x = _root.robo3reka._x;
lsr._y = _root.robo3reka._y;
lsr._rotation = _root.robo3reka._rotation;
lsr.play();
}
if (lsr._currentframe == 2) {
lsr._y = lsr._y + (5 * Math.sin(lsr._rotation * (Math.PI/180)));
lsr._x = lsr._x + (5 * Math.cos(lsr._rotation * (Math.PI/180)));
if (lsr.hitTest(_root.heli)) {
lsr.play();
_root.life = _root.life - 1;
}
if (((lsr._x > 750) || (lsr._x < -150)) || (_root._currentframe == 11)) {
lsr.swapDepths(5);
lsr.removeMovieClip();
}
if (lsr._currentframe == 16) {
lsr.swapDepths(5);
lsr.removeMovieClip();
}
}
};
if ((_root.boss4 == 1) & (random(1000) > 980)) {
var lsr2 = _root.attachMovie("lsr2", "lsr2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
lsr2.onEnterFrame = function () {
if (lsr2._currentframe == 1) {
lsr2._x = _root.robo4reka._x;
lsr2._y = _root.robo4reka._y;
lsr2._rotation = _root.robo4reka._rotation;
lsr2.play();
}
if (lsr2._currentframe == 2) {
lsr2._y = lsr2._y + (4 * Math.sin(lsr2._rotation * (Math.PI/180)));
lsr2._x = lsr2._x + (4 * Math.cos(lsr2._rotation * (Math.PI/180)));
if (lsr2.hitTest(_root.heli)) {
lsr2.play();
_root.life = _root.life - 1;
}
if (((lsr2._x > 750) || (lsr2._x < -150)) || (_root._currentframe == 11)) {
lsr2.swapDepths(5);
lsr2.removeMovieClip();
}
if (lsr2._currentframe == 16) {
lsr2.swapDepths(5);
lsr2.removeMovieClip();
}
}
};
if ((_root.boss5 == 1) & (random(1000) > 975)) {
var lsr3 = _root.attachMovie("lsr3", "lsr3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
lsr3.onEnterFrame = function () {
if (lsr3._currentframe == 1) {
lsr3._x = _root.robo5reka._x;
lsr3._y = _root.robo5reka._y;
lsr3._rotation = _root.robo5reka._rotation;
lsr3.play();
}
if (lsr3._currentframe == 2) {
lsr3._y = lsr3._y + (5 * Math.sin(lsr3._rotation * (Math.PI/180)));
lsr3._x = lsr3._x + (5 * Math.cos(lsr3._rotation * (Math.PI/180)));
if (lsr3.hitTest(_root.heli)) {
lsr3.play();
_root.life = _root.life - 1;
}
if (((lsr3._x > 750) || (lsr3._x < -150)) || (_root._currentframe == 11)) {
lsr3.swapDepths(5);
lsr3.removeMovieClip();
}
if (lsr3._currentframe == 16) {
lsr3.swapDepths(5);
lsr3.removeMovieClip();
}
}
};
if ((((_root.af._x < 600) & (random(1000) > 990)) && (_root.af._currentframe != 13)) && (_root.af._currentframe != 12)) {
var enfir2 = _root.attachMovie("enfir2", "enfir2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
enfir2.onEnterFrame = function () {
if (enfir2._currentframe == 1) {
enfir2._x = _root.af._x;
enfir2._y = _root.af._y - 50;
enfir2._rotation = -60;
enfir2.play();
}
if (enfir2._currentframe == 2) {
enfir2._rotation = enfir2._rotation + 0.2;
enfir2._y = enfir2._y + (8 * Math.sin(enfir2._rotation * (Math.PI/180)));
enfir2._x = enfir2._x + (8 * Math.cos(enfir2._rotation * (Math.PI/180)));
if (enfir2.hitTest(_root.heli)) {
enfir2.play();
_root.life = _root.life - 1;
}
if ((enfir2._x > 700) || (_root._currentframe == 11)) {
enfir2.swapDepths(5);
enfir2.removeMovieClip();
}
}
if (enfir2._currentframe == 16) {
enfir2.swapDepths(5);
enfir2.removeMovieClip();
}
};
if ((((_root.ah._x < 600) && (random(1000) > 990)) && (_root.ah._currentframe != 15)) && (_root.ah._currentframe != 16)) {
var enfir3 = _root.attachMovie("enfir3", "enfir3" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
enfir3.onEnterFrame = function () {
if (enfir3._currentframe == 1) {
enfir3._x = _root.ah._x + 50;
enfir3._y = _root.ah._y - 50;
enfir3._rotation = -60;
enfir3.play();
}
if (enfir3._currentframe == 2) {
enfir3._rotation = enfir3._rotation + 0.2;
enfir3._y = enfir3._y + (8 * Math.sin(enfir3._rotation * (Math.PI/180)));
enfir3._x = enfir3._x + (8 * Math.cos(enfir3._rotation * (Math.PI/180)));
if (enfir3.hitTest(_root.heli)) {
enfir3.play();
_root.life = _root.life - 1;
}
if ((enfir3._x > 700) || (_root._currentframe == 11)) {
enfir3.swapDepths(5);
enfir3.removeMovieClip();
}
}
if (enfir3._currentframe == 16) {
enfir3.swapDepths(5);
enfir3.removeMovieClip();
}
};
if ((_root.fir4 == 1) & (_root.missammo > 0)) {
var laserm = _root.attachMovie("laserm", "laserm" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
laserm.onEnterFrame = function () {
var _local2 = laserm._currentframe;
if (laserm._currentframe == 1) {
laserm._x = _root.heli._x;
laserm._y = _root.heli._y;
laserm._rotation = _root.heli._rotation;
_root.missammo = _root.missammo - 1;
laserm.gotoAndPlay(2);
}
if (laserm._currentframe == 16) {
laserm.swapDepths(5);
laserm.removeMovieClip();
}
if ((laserm._currentframe != 16) || (laserm._currentframe != 1)) {
if (laserm.hitTest(_root.ag)) {
laserm.play();
}
if (laserm.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 5;
}
if (laserm.hitTest(_root.bos2)) {
_root.boss2life = _root.boss2life - 5;
}
if (laserm.hitTest(_root.bos3)) {
_root.boss3life = _root.boss3life - 5;
}
if (laserm.hitTest(_root.bos5)) {
_root.boss5life = _root.boss5life - 5;
}
if (laserm.hitTest(_root.bos5)) {
_root.boss5life = _root.boss5life - 5;
}
if (laserm.hitTest(_root.ad)) {
laserm.play();
}
if (laserm.hitTest(_root.ak)) {
laserm.play();
}
if (laserm.hitTest(_root.ah)) {
laserm.play();
}
if (laserm.hitTest(_root.ag)) {
laserm.play();
}
if (laserm.hitTest(_root.af)) {
laserm.play();
}
if (laserm.hitTest(_root.al)) {
laserm.play();
}
if (laserm.hitTest(_root.p1)) {
laserm.gotoAndPlay(17);
}
if (laserm.hitTest(_root.p2)) {
laserm.gotoAndPlay(17);
}
if (laserm.hitTest(_root.p3)) {
laserm.gotoAndPlay(17);
}
if (laserm.hitTest(_root.qw)) {
laserm.gotoAndPlay(17);
}
if (laserm.hitTest(_root.qe)) {
laserm.gotoAndPlay(17);
}
if (laserm.hitTest(_root.qr)) {
laserm.gotoAndPlay(17);
}
if (laserm.hitTest(_root.ws)) {
laserm.play();
}
}
};
if ((((_root.al._x > 0) && (random(1000) > 990)) && (_root.al._currentframe != 15)) && (_root.al._currentframe != 16)) {
var enfir4 = _root.attachMovie("enfir4", "enfir4" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
enfir4.onEnterFrame = function () {
if (enfir4._currentframe == 1) {
enfir4._x = _root.al._x - 50;
enfir4._y = _root.al._y - 50;
enfir4._rotation = 240;
enfir4.play();
}
if (enfir4._currentframe == 2) {
enfir4._rotation = enfir4._rotation - 0.2;
enfir4._y = enfir4._y + (8 * Math.sin(enfir4._rotation * (Math.PI/180)));
enfir4._x = enfir4._x + (8 * Math.cos(enfir4._rotation * (Math.PI/180)));
if (enfir4.hitTest(_root.heli)) {
enfir4.play();
_root.life = _root.life - 1;
}
if ((enfir4._x < -70) || (_root._currentframe == 11)) {
enfir4.swapDepths(5);
enfir4.removeMovieClip();
}
}
if (enfir4._currentframe == 16) {
enfir4.swapDepths(5);
enfir4.removeMovieClip();
}
};
}
};
Instance of Symbol 653 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_currentframe == 1) {
_x = _root.bos5._x;
_y = _root.bos5._y;
if ((_root.tran4 == 0) & (_root.boss5life < 10)) {
gotoAndStop (2);
}
}
if (_currentframe == 2) {
_root.newx = _root.heli._y;
_root.newy = _root.heli._x;
var initx = _x;
var inity = _y;
var loco = (Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180));
_y = (_y + (4 * Math.sin(loco * (Math.PI/180))));
_x = (_x + (2 * Math.cos(loco * (Math.PI/180))));
if (hitTest(_root.heli)) {
gotoAndPlay (3);
_root.tran2 = 0;
_root.tran3 = 0;
_root.tran4 = 1;
}
}
if (_currentframe == 14) {
this.swapDepths(5);
this.removeMovieClip();
}
}
Instance of Symbol 429 MovieClip "qw" in Frame 10
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if ((_currentframe == 1) & (random(1000) > 992)) {
play();
}
if (_y > 200) {
_y = 200;
}
if ((_currentframe != 1) & (_currentframe != 20)) {
if ((_x >= 70) & (_y <= 200)) {
_x = (_x - (random(3) - 3));
_y = (_y + (random(3) + 3));
} else {
_x = (_x - 6);
}
if (_x < -100) {
_x = (random(600) + 200);
_y = -55;
gotoAndStop (1);
}
}
if (_currentframe == 20) {
_x = (_x - 1);
_y = (_y + 4);
if (_y > 360) {
play();
}
}
if (_currentframe == 27) {
_x = 714;
_root.scor = _root.scor + 5;
gotoAndStop (1);
}
}
}
Instance of Symbol 378 MovieClip in Frame 10
onClipEvent (enterFrame) {
_root.pion = 3;
if (Key.isDown(90)) {
if (_currentframe == 1) {
_root.fir = 1;
_root.pion = 3;
play();
}
} else {
_root.fir = 0;
_root.pion = 3;
}
if (_currentframe != 1) {
_root.fir = 0;
_root.pion = 3;
}
}
Instance of Symbol 380 MovieClip in Frame 10
onClipEvent (enterFrame) {
_root.pion = 3;
if (Key.isDown(88)) {
if (_currentframe == 1) {
_root.fir2 = 1;
_root.pion = 3;
play();
}
} else {
_root.fir2 = 0;
_root.pion = 3;
}
if (_currentframe != 1) {
_root.fir2 = 0;
_root.pion = 3;
}
}
Instance of Symbol 429 MovieClip "qr" in Frame 10
onClipEvent (enterFrame) {
if ((_currentframe == 1) & (random(1000) > 995)) {
_x = 700;
_y = random(150);
dx = Math.atan2(_root.heli._y - _y, _root.heli._x - _x) / (Math.PI/180);
xSpeed = 10 * Math.cos(dx * (Math.PI/180));
ySpeed = 10 * Math.sin(dx * (Math.PI/180));
play();
}
if ((_currentframe != 1) & (_currentframe != 20)) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (_x < -100) {
gotoAndStop (1);
}
}
if (_currentframe == 20) {
_x = (_x - 1);
_y = (_y + 4);
if (_y > 360) {
play();
}
}
if (_currentframe == 27) {
_x = 714;
_root.scor = _root.scor + 5;
gotoAndStop (1);
}
}
Instance of Symbol 429 MovieClip "qe" in Frame 10
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (((_currentframe == 1) & (random(1000) > 990)) & (_root.scor > 1420)) {
play();
}
if ((_currentframe != 1) & (_currentframe != 20)) {
_rotation = 210;
_y = (_y - 2);
_x = (_x + 6);
if ((_x > 750) & (_y < -100)) {
_x = -200;
_y = (random(230) + 100);
gotoAndStop (1);
}
}
if (_currentframe == 20) {
_rotation = 0;
_x = (_x - 1);
_y = (_y + 6);
if (_y > 360) {
play();
}
}
if (_currentframe == 27) {
_x = 714;
_root.scor = _root.scor + 5;
gotoAndStop (1);
}
}
}
Instance of Symbol 431 MovieClip in Frame 10
onClipEvent (enterFrame) {
_root.pion = 3;
if (Key.isDown(67)) {
if (_currentframe == 1) {
_root.fir3 = 1;
_root.pion = 3;
play();
}
} else {
_root.fir3 = 0;
_root.pion = 3;
}
if (_currentframe != 1) {
_root.fir3 = 0;
_root.pion = 3;
}
}
Instance of Symbol 477 MovieClip "ag" in Frame 10
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
if (random(10000) > 9860) {
play();
}
}
if (_currentframe != 1) {
_x = (_x - 2);
_x - 2;
}
if (_x < -100) {
_x = (random(850) + 650);
gotoAndStop (1);
}
if (_currentframe == 12) {
_x = (random(850) + 650);
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
}
}
Instance of Symbol 501 MovieClip "ad" in Frame 10
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
if (random(100) > 60) {
play();
}
}
if (_currentframe != 1) {
_x = (_x - 1);
_x - 1;
}
if (_x < -100) {
_x = (random(850) + 650);
gotoAndStop (1);
}
if (_currentframe == 20) {
_x = (random(850) + 650);
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
}
}
Instance of Symbol 585 MovieClip "af" in Frame 10
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
if ((random(1000) > 750) & (_root.scor > 1550)) {
play();
}
}
if (_currentframe != 1) {
_x = (_x - 2);
_x - 2;
}
if (_x < -100) {
_x = (random(850) + 650);
gotoAndStop (1);
}
if (_currentframe == 13) {
_x = (random(850) + 650);
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
}
}
Instance of Symbol 944 MovieClip "ah" in Frame 10
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
if ((random(1000) > 950) & (_root.scor > 1500)) {
play();
}
}
if (_currentframe != 1) {
_x = (_x - 2);
_x - 2;
}
if (_x < -100) {
_x = (random(850) + 650);
gotoAndStop (1);
}
if (_currentframe == 20) {
_x = (random(850) + 650);
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
}
}
Instance of Symbol 556 MovieClip "ak" in Frame 10
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
play();
}
if (_currentframe != 1) {
_x = (_x + 2);
_x + 2;
}
if (_x > 680) {
_x = (-1 * random(600));
gotoAndStop (1);
}
if (_currentframe == 11) {
_x = (-1 * random(600));
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
}
}
Instance of Symbol 537 MovieClip "p3" in Frame 10
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (((_currentframe == 1) & (random(1000) > 995)) & (_root.scor > 1500)) {
fx = Math.atan2(_root.heli._y - _y, _root.heli._x - _x) / (Math.PI/180);
_rotation = fx;
xSpeed = 9 * Math.cos(fx * (Math.PI/180));
ySpeed = 9 * Math.sin(fx * (Math.PI/180));
play();
}
if (_currentframe != 1) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (_y >= 310) {
_rotation = 0;
_y = 310;
_x = (_x + 11);
}
}
if (_x > 600) {
_x = ((random(400) * -1) - 150);
_y = 100;
gotoAndStop (1);
}
if (_currentframe == 11) {
_x = (_x + 3);
_y = (_y + 7);
if (_y > 370) {
_y = 370;
play();
}
}
if (_currentframe == 18) {
_x = 714;
_root.scor = _root.scor + 5;
gotoAndStop (1);
}
}
}
Instance of Symbol 637 MovieClip "p1" in Frame 10
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if ((_currentframe == 1) & (random(1000) > 998)) {
play();
}
if (_currentframe != 1) {
_x = (_x + 6);
_y = (_y + 0);
_y + 0;
}
if (_x > 600) {
_x = ((random(400) * -1) - 100);
_y = 150;
gotoAndStop (1);
}
if (_currentframe == 17) {
_x = (_x + 3);
_y = (_y + 7);
if (_y > 370) {
_y = 370;
play();
}
}
if (_currentframe == 24) {
_x = 714;
_root.scor = _root.scor + 5;
gotoAndStop (1);
}
}
}
Instance of Symbol 944 MovieClip "al" in Frame 10
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if ((_currentframe == 1) & (_root.scor > 1450)) {
play();
}
if (_currentframe != 1) {
_x = (_x + 2);
_x + 2;
}
if (_x > 680) {
_x = (-1 * random(600));
gotoAndStop (1);
}
if (_currentframe == 20) {
_x = (-1 * random(600));
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
}
}
Instance of Symbol 610 MovieClip "ws" in Frame 10
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
if (random(1000) > 99) {
play();
}
}
if (_currentframe != 1) {
_x = (_x - 10);
}
if (_x < -100) {
_x = (random(1200) + 900);
gotoAndStop (1);
}
if (_currentframe == 20) {
_x = (random(1200) + 900);
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
if (_root.scor > 320) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
Instance of Symbol 1032 MovieClip "bos5" in Frame 10
onClipEvent (load) {
xscale = _xscale;
}
onClipEvent (enterFrame) {
if (_root.boss5 == 1) {
if (_root.boss5 == 1) {
_root.newx = _root.heli._y;
_root.newy = _root.heli._x;
var initx = _x;
var inity = _y;
loc = Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180);
_x = (_x + (5 * Math.cos(loc * (Math.PI/180))));
}
}
if ((_root.boss5life < 10) & (_currentframe != 30)) {
play();
}
if (_currentframe == 30) {
_x = 1000;
}
}
Instance of Symbol 637 MovieClip "p2" in Frame 10
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
_rotation = 180;
_y = random(150);
if ((random(1000) > 989) & (_root.scor > 1420)) {
play();
}
}
if ((_currentframe != 1) & (_currentframe != 17)) {
_x = (_x - 8);
if ((_x < 500) & (_rotation <= 210)) {
_rotation = (_rotation + 1);
}
_y = (_y + (6 * Math.sin(_rotation * (Math.PI/180))));
_x = (_x + (7 * Math.cos(_rotation * (Math.PI/180))));
if (_x < -100) {
_x = 803;
_y = (random(100) + 200);
gotoAndStop (1);
}
}
if (_currentframe == 17) {
_x = (_x - 3);
_y = (_y + 7);
if (_y > 370) {
_y = 370;
play();
}
}
if (_currentframe == 24) {
_x = 803;
_root.scor = _root.scor + 20;
gotoAndStop (1);
}
}
}
Instance of Symbol 1034 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe != 3000) {
_root.boss5 = 0;
} else {
_root.boss5 = 1;
}
if ((_root.boss5life < 10) && (_currentframe == 3000)) {
gotoAndPlay (1);
}
}
}
Instance of Symbol 1036 MovieClip "robo5reka" in Frame 10
onClipEvent (load) {
xscale = _xscale;
yscale = _yscale;
}
onClipEvent (enterFrame) {
if (_root.boss5life > 10) {
_x = _root.bos5._x;
_y = _root.bos5._y;
_root.newx = _root.heli._y;
_root.newy = _root.heli._x;
var initx = _x;
var inity = _y;
_rotation = (Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180));
if (_x < _root.heli._x) {
_yscale = (-yscale);
} else {
_yscale = yscale;
}
}
if (_root.boss5life < 10) {
_rotation = 0;
_y = (_y + 5);
if (_y > 380) {
_y = 380;
_x = (_x - 3);
}
if (_x < -150) {
_root.boss5life = 3000;
_x = _root.boss5._x;
_y = _root.boss5._y;
_root.bos5.gotoAndStop(1);
}
}
}
Instance of Symbol 960 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe != 2300) {
_root.boss4 = 0;
} else {
_root.boss4 = 1;
}
if ((_root.boss4life < 10) && (_currentframe == 2300)) {
gotoAndPlay (1);
}
}
}
Instance of Symbol 948 MovieClip "bos3" in Frame 10
onClipEvent (load) {
xscale = _xscale;
}
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_root.boss3 == 1) {
if (_x > 450) {
_x = (_x - 3);
}
if (_y > 210) {
_y = 210;
}
if ((_root.boss3life < 10) & (_currentframe != 17)) {
play();
}
_root.newx = _root.heli._y;
_root.newy = _root.heli._x;
var initx = _x;
var inity = _y;
loc = Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180);
_y = (_y + (5 * Math.sin(loc * (Math.PI/180))));
if (_x < _root.heli._x) {
_xscale = (-xscale);
} else {
_xscale = xscale;
}
}
if (_currentframe == 17) {
_x = 1000;
if ((_root.scor > 1300) & (_root.boss3 != 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 951 MovieClip "robo3reka" in Frame 10
onClipEvent (load) {
xscale = _xscale;
yscale = _yscale;
}
onClipEvent (enterFrame) {
if (_root.boss3life > 10) {
_x = _root.bos3._x;
_y = _root.bos3._y;
_root.newx = _root.heli._y;
_root.newy = _root.heli._x;
var initx = _x;
var inity = _y;
_rotation = (Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180));
if (_x < _root.heli._x) {
_yscale = (-yscale);
} else {
_yscale = yscale;
}
}
if (_root.boss3life < 10) {
_rotation = 0;
_y = (_y + 5);
if (_y > 380) {
_y = 380;
_x = (_x - 3);
}
if (_x < -150) {
_root.boss3life = 3000;
if (_root.scor > 520) {
this.swapDepths(5);
this.removeMovieClip();
}
_x = _root.boss3._x;
_y = _root.boss3._y;
_root.bos3.gotoAndStop(1);
}
}
}
Instance of Symbol 953 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe != 4000) {
_root.boss3 = 0;
} else {
_root.boss3 = 1;
}
if ((_root.boss3life < 10) && (_currentframe == 4000)) {
gotoAndPlay (1);
}
}
}
Instance of Symbol 727 MovieClip "bos4" in Frame 10
onClipEvent (load) {
xscale = _xscale;
}
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_root.boss4 == 1) {
if (_root.boss4 == 1) {
_root.newx = _root.heli._y;
_root.newy = _root.heli._x;
var initx = _x;
var inity = _y;
loc = Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180);
_x = (_x + (5 * Math.cos(loc * (Math.PI/180))));
}
if ((_root.boss4life < 10) & (_currentframe != 30)) {
play();
}
}
if (_currentframe == 30) {
_x = 1000;
if ((_root.scor > 1300) & (_root.boss4 != 1)) {
this.swapDepths(5);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 956 MovieClip "robo4reka" in Frame 10
onClipEvent (load) {
xscale = _xscale;
yscale = _yscale;
}
onClipEvent (enterFrame) {
if (_root.boss4life > 10) {
_x = _root.bos4._x;
_y = _root.bos4._y;
_root.newx = _root.heli._y;
_root.newy = _root.heli._x;
var initx = _x;
var inity = _y;
_rotation = (Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180));
if (_x < _root.heli._x) {
_yscale = (-yscale);
} else {
_yscale = yscale;
}
}
if (_root.boss4life < 10) {
_rotation = 0;
_y = (_y + 5);
if (_y > 380) {
_y = 380;
_x = (_x - 3);
}
if (_x < -150) {
_root.boss4life = 3000;
if (_root.scor > 1400) {
this.swapDepths(5);
this.removeMovieClip();
}
_x = _root.boss4._x;
_y = _root.boss4._y;
_root.bos4.gotoAndStop(1);
}
}
}
Instance of Symbol 1076 MovieClip in Frame 10
onClipEvent (enterFrame) {
if ((_root.scor > 1820) & (_currentframe == 1)) {
gotoAndPlay (2);
}
}
Instance of Symbol 716 MovieClip "pause" in Frame 10
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.POU = 1;
}
if (_root.POU == 1) {
gotoAndStop (2);
_visible = true;
}
if (_root.POU == 0) {
gotoAndStop (1);
_visible = false;
}
}
Frame 11
function updateFrameRate() {
if (counter == updateRate) {
var _local2 = getTimer();
var _local3 = (_local2 - startTime) / 1000;
var _local1 = updateRate / _local3;
_local1 = Math.floor(_local1 * precision) / precision;
_level0.fps_txt.text = "FPS: " + _local1;
startTime = _local2;
counter = 1;
} else {
counter++;
}
}
var counter = 1;
var startTime = getTimer();
var updateRate = 6;
var precision = 1;
precision = Math.pow(10, precision);
_level0.createTextField("fps_txt", _level0.getNextHighestDepth(), 510, 5, 100, 22);
onEnterFrame = function () {
stop();
var _local2 = 0;
if (_root.kon == 1) {
_root.gotoAndStop(4);
}
};
stop();
stopAllSounds();
_quality = "HIGH";
Frame 12
stop();
_quality = "HIGH";
Frame 16
MochiAd.showInterLevelAd({id:"c3fe62eb7c774604", res:"600x400", ad_finished:function () {
_root.gotoAndStop(7);
}});
Frame 25
stop();
stopAllSounds();
Frame 35
MochiAd.showPreGameAd({id:"c3fe62eb7c774604", res:"600x400"});
Frame 45
_root.gotoAndStop(4);
Symbol 23 MovieClip [luska] Frame 1
stop();
Symbol 23 MovieClip [luska] Frame 25
stop();
Symbol 23 MovieClip [luska] Frame 59
stop();
Symbol 23 MovieClip [luska] Frame 90
stop();
Symbol 27 MovieClip Frame 11
Symbol 35 MovieClip [minka4] Frame 1
stop();
Symbol 35 MovieClip [minka4] Frame 2
stop();
Symbol 35 MovieClip [minka4] Frame 16
stop();
Symbol 36 MovieClip [minka3] Frame 1
stop();
Symbol 36 MovieClip [minka3] Frame 2
stop();
Symbol 36 MovieClip [minka3] Frame 16
stop();
Symbol 41 MovieClip [enfir4] Frame 1
stop();
Symbol 41 MovieClip [enfir4] Frame 2
stop();
Symbol 41 MovieClip [enfir4] Frame 16
stop();
Symbol 44 MovieClip [enfir3] Frame 1
stop();
Symbol 44 MovieClip [enfir3] Frame 2
stop();
Symbol 44 MovieClip [enfir3] Frame 16
stop();
Symbol 48 MovieClip [lsr3] Frame 1
stop();
Symbol 48 MovieClip [lsr3] Frame 2
stop();
Symbol 48 MovieClip [lsr3] Frame 17
stop();
Symbol 55 MovieClip [laserm] Frame 1
stop();
Instance of Symbol 51 MovieClip in Symbol 55 MovieClip [laserm] Frame 2
onClipEvent (enterFrame) {
if (hitTest(_root.ad)) {
var adc = _root.ad._currentframe;
if (adc < 7) {
_root.ad.gotoAndPlay(7);
}
}
if (hitTest(_root.ak)) {
var akc = _root.ak._currentframe;
if (akc < 7) {
_root.ak.gotoAndPlay(7);
}
}
if (hitTest(_root.qw)) {
_root.qw.gotoAndStop(20);
}
if (hitTest(_root.qr)) {
_root.qr.gotoAndStop(20);
}
if (hitTest(_root.qe)) {
_root.qe.gotoAndStop(20);
}
if (hitTest(_root.af)) {
_root.af.gotoAndStop(12);
}
if (hitTest(_root.ah)) {
_root.ah.gotoAndStop(15);
}
if (hitTest(_root.al)) {
_root.al.gotoAndStop(15);
}
if (hitTest(_root.ws)) {
_root.ws.gotoAndStop(8);
}
if (hitTest(_root.al)) {
_root.al.gotoAndStop(15);
}
if (hitTest(_root.ag)) {
_root.ag.gotoAndStop(11);
}
if (hitTest(_root.p1)) {
_root.p1.gotoAndStop(17);
}
if (hitTest(_root.p2)) {
_root.p2.gotoAndStop(17);
}
if (hitTest(_root.p3)) {
_root.p3.gotoAndStop(11);
}
}
Instance of Symbol 54 MovieClip in Symbol 55 MovieClip [laserm] Frame 9
onClipEvent (enterFrame) {
if (hitTest(_root.ad)) {
var adc = _root.ad._currentframe;
if (adc < 7) {
_root.ad.gotoAndPlay(7);
}
}
if (hitTest(_root.ak)) {
var akc = _root.ak._currentframe;
if (akc < 7) {
_root.ak.gotoAndPlay(7);
}
}
if (hitTest(_root.qw)) {
_root.qw.gotoAndStop(20);
}
if (hitTest(_root.qr)) {
_root.qr.gotoAndStop(20);
}
if (hitTest(_root.qe)) {
_root.qe.gotoAndStop(20);
}
if (hitTest(_root.af)) {
_root.af.gotoAndStop(12);
}
if (hitTest(_root.ah)) {
_root.ah.gotoAndStop(15);
}
if (hitTest(_root.al)) {
_root.al.gotoAndStop(15);
}
if (hitTest(_root.ws)) {
_root.ws.gotoAndStop(8);
}
if (hitTest(_root.al)) {
_root.al.gotoAndStop(15);
}
if (hitTest(_root.ag)) {
_root.ag.gotoAndStop(11);
}
if (hitTest(_root.p1)) {
_root.p1.gotoAndStop(17);
}
if (hitTest(_root.p2)) {
_root.p2.gotoAndStop(17);
}
if (hitTest(_root.p3)) {
_root.p3.gotoAndStop(11);
}
}
Symbol 55 MovieClip [laserm] Frame 16
stop();
Symbol 59 MovieClip Frame 1
stop();
Symbol 66 MovieClip [sho3] Frame 1
stop();
Symbol 66 MovieClip [sho3] Frame 2
stop();
Instance of Symbol 59 MovieClip in Symbol 66 MovieClip [sho3] Frame 2
onClipEvent (enterFrame) {
if (hitTest(_root.ad)) {
_root.ad.play();
}
if (hitTest(_root.ak)) {
_root.ak.play();
}
if (hitTest(_root.qw)) {
if (_root.qw._currentframe != 20) {
_root.qw.play();
}
}
if (hitTest(_root.af)) {
if (_root.af._currentframe != 12) {
_root.af.play();
}
}
if (hitTest(_root.ah)) {
if (_root.ah._currentframe != 15) {
_root.ah.play();
}
}
if (hitTest(_root.al)) {
if (_root.al._currentframe != 15) {
_root.al.play();
}
}
if (hitTest(_root.ws)) {
if (_root.ws._currentframe != 8) {
_root.ws.play();
}
}
if (hitTest(_root.al)) {
if (_root.al._currentframe != 15) {
_root.al.play();
}
}
if (hitTest(_root.ag)) {
if (_root.ag._currentframe != 11) {
_root.ag.play();
}
}
if (hitTest(_root.p1)) {
if (_root.p1._currentframe != 17) {
_root.p1.play();
}
}
if (hitTest(_root.p2)) {
if (_root.p2._currentframe != 17) {
_root.p2.play();
}
}
if (hitTest(_root.p3)) {
if (_root.p3._currentframe != 11) {
_root.p3.play();
}
}
}
Symbol 66 MovieClip [sho3] Frame 6
stop();
Symbol 69 MovieClip [sho2] Frame 1
stop();
Symbol 69 MovieClip [sho2] Frame 2
stop();
Instance of Symbol 59 MovieClip in Symbol 69 MovieClip [sho2] Frame 2
onClipEvent (enterFrame) {
if (hitTest(_root.ad)) {
_root.ad.play();
}
if (hitTest(_root.ak)) {
_root.ak.play();
}
if (hitTest(_root.qw)) {
if (_root.qw._currentframe != 20) {
_root.qw.play();
}
}
if (hitTest(_root.af)) {
if (_root.af._currentframe != 12) {
_root.af.play();
}
}
if (hitTest(_root.ah)) {
if (_root.ah._currentframe != 15) {
_root.ah.play();
}
}
if (hitTest(_root.al)) {
if (_root.al._currentframe != 15) {
_root.al.play();
}
}
if (hitTest(_root.ws)) {
if (_root.ws._currentframe != 8) {
_root.ws.play();
}
}
if (hitTest(_root.al)) {
if (_root.al._currentframe != 15) {
_root.al.play();
}
}
if (hitTest(_root.ag)) {
if (_root.ag._currentframe != 11) {
_root.ag.play();
}
}
if (hitTest(_root.p1)) {
if (_root.p1._currentframe != 17) {
_root.p1.play();
}
}
if (hitTest(_root.p2)) {
if (_root.p2._currentframe != 17) {
_root.p2.play();
}
}
if (hitTest(_root.p3)) {
if (_root.p3._currentframe != 11) {
_root.p3.play();
}
}
}
Symbol 69 MovieClip [sho2] Frame 6
stop();
Symbol 72 MovieClip [shel] Frame 1
stop();
Symbol 72 MovieClip [shel] Frame 2
stop();
Symbol 72 MovieClip [shel] Frame 3
stop();
Symbol 75 MovieClip [sho] Frame 1
stop();
Symbol 75 MovieClip [sho] Frame 2
stop();
Instance of Symbol 59 MovieClip in Symbol 75 MovieClip [sho] Frame 2
onClipEvent (enterFrame) {
if (hitTest(_root.ad)) {
this.play();
_root.ad.play();
}
if (hitTest(_root.ak)) {
this.play();
_root.ak.play();
}
if (hitTest(_root.qw)) {
this.play();
if (_root.qw._currentframe != 20) {
_root.qw.play();
}
}
if (hitTest(_root.qw)) {
this.play();
}
if (hitTest(_root.bos1)) {
this.play();
}
if (hitTest(_root.bos2)) {
this.play();
}
if (hitTest(_root.bos3)) {
this.play();
}
if (hitTest(_root.bos4)) {
this.play();
}
if (hitTest(_root.bos5)) {
this.play();
}
if (hitTest(_root.af)) {
this.play();
if (_root.af._currentframe != 12) {
_root.af.play();
}
}
if (hitTest(_root.ah)) {
this.play();
if (_root.ah._currentframe != 15) {
_root.ah.play();
}
}
if (hitTest(_root.al)) {
this.play();
if (_root.al._currentframe != 15) {
_root.al.play();
}
}
if (hitTest(_root.ws)) {
this.play();
if (_root.ws._currentframe != 8) {
_root.ws.play();
}
}
if (hitTest(_root.al)) {
this.play();
if (_root.al._currentframe != 15) {
_root.al.play();
}
}
if (hitTest(_root.ag)) {
this.play();
if (_root.ag._currentframe != 11) {
_root.ag.play();
}
}
if (hitTest(_root.p1)) {
this.play();
if (_root.p1._currentframe != 17) {
_root.p1.play();
}
}
if (hitTest(_root.p2)) {
this.play();
if (_root.p2._currentframe != 17) {
_root.p2.play();
}
}
if (hitTest(_root.p3)) {
this.play();
if (_root.p3._currentframe != 11) {
_root.p3.play();
}
}
}
Symbol 75 MovieClip [sho] Frame 6
stop();
Symbol 79 MovieClip [enfir2] Frame 1
stop();
Symbol 79 MovieClip [enfir2] Frame 2
stop();
Symbol 79 MovieClip [enfir2] Frame 16
stop();
Symbol 85 MovieClip [lsr2] Frame 1
stop();
Symbol 85 MovieClip [lsr2] Frame 2
stop();
Symbol 85 MovieClip [lsr2] Frame 17
stop();
Symbol 87 MovieClip [lsr] Frame 1
stop();
Symbol 87 MovieClip [lsr] Frame 2
stop();
Symbol 87 MovieClip [lsr] Frame 17
stop();
Symbol 88 MovieClip [minka1] Frame 1
stop();
Symbol 88 MovieClip [minka1] Frame 2
stop();
Symbol 88 MovieClip [minka1] Frame 16
stop();
Symbol 91 MovieClip [enfir] Frame 1
stop();
Symbol 91 MovieClip [enfir] Frame 2
stop();
Symbol 91 MovieClip [enfir] Frame 16
stop();
Symbol 102 MovieClip [drop2] Frame 1
stop();
Symbol 102 MovieClip [drop2] Frame 2
stop();
Symbol 102 MovieClip [drop2] Frame 6
stop();
Symbol 107 MovieClip [drop1] Frame 1
stop();
Symbol 107 MovieClip [drop1] Frame 2
stop();
Symbol 107 MovieClip [drop1] Frame 6
stop();
Symbol 111 MovieClip [drop3] Frame 1
stop();
Symbol 111 MovieClip [drop3] Frame 2
stop();
Symbol 111 MovieClip [drop3] Frame 6
stop();
Symbol 124 MovieClip [mis3] Frame 1
stop();
Symbol 124 MovieClip [mis3] Frame 2
stop();
Instance of Symbol 123 MovieClip in Symbol 124 MovieClip [mis3] Frame 2
onClipEvent (enterFrame) {
if (hitTest(_root.ad)) {
var adc = _root.ad._currentframe;
if (adc < 7) {
_root.ad.gotoAndPlay(7);
}
}
if (hitTest(_root.ak)) {
var akc = _root.ak._currentframe;
if (akc < 7) {
_root.ak.gotoAndPlay(7);
}
}
if (hitTest(_root.qw)) {
_root.qw.gotoAndStop(20);
}
if (hitTest(_root.qr)) {
_root.qr.gotoAndStop(20);
}
if (hitTest(_root.qe)) {
_root.qe.gotoAndStop(20);
}
if (hitTest(_root.af)) {
_root.af.gotoAndStop(12);
}
if (hitTest(_root.ah)) {
_root.ah.gotoAndStop(15);
}
if (hitTest(_root.al)) {
_root.al.gotoAndStop(15);
}
if (hitTest(_root.ws)) {
_root.ws.gotoAndStop(8);
}
if (hitTest(_root.al)) {
_root.al.gotoAndStop(15);
}
if (hitTest(_root.ag)) {
_root.ag.gotoAndStop(11);
}
if (hitTest(_root.p1)) {
_root.p1.gotoAndStop(17);
}
if (hitTest(_root.p2)) {
_root.p2.gotoAndStop(17);
}
if (hitTest(_root.p3)) {
_root.p3.gotoAndStop(11);
}
}
Symbol 124 MovieClip [mis3] Frame 16
stop();
Symbol 124 MovieClip [mis3] Frame 17
play();
Symbol 124 MovieClip [mis3] Frame 30
stop();
gotoAndStop (16);
Symbol 125 MovieClip [mis2] Frame 1
stop();
Symbol 125 MovieClip [mis2] Frame 2
stop();
Instance of Symbol 123 MovieClip in Symbol 125 MovieClip [mis2] Frame 2
onClipEvent (enterFrame) {
if (hitTest(_root.ad)) {
var adc = _root.ad._currentframe;
if (adc < 7) {
_root.ad.gotoAndPlay(7);
}
}
if (hitTest(_root.ak)) {
var akc = _root.ak._currentframe;
if (akc < 7) {
_root.ak.gotoAndPlay(7);
}
}
if (hitTest(_root.qw)) {
_root.qw.gotoAndStop(20);
}
if (hitTest(_root.qr)) {
_root.qr.gotoAndStop(20);
}
if (hitTest(_root.qe)) {
_root.qe.gotoAndStop(20);
}
if (hitTest(_root.af)) {
_root.af.gotoAndStop(12);
}
if (hitTest(_root.ah)) {
_root.ah.gotoAndStop(15);
}
if (hitTest(_root.al)) {
_root.al.gotoAndStop(15);
}
if (hitTest(_root.ws)) {
_root.ws.gotoAndStop(8);
}
if (hitTest(_root.al)) {
_root.al.gotoAndStop(15);
}
if (hitTest(_root.ag)) {
_root.ag.gotoAndStop(11);
}
if (hitTest(_root.p1)) {
_root.p1.gotoAndStop(17);
}
if (hitTest(_root.p2)) {
_root.p2.gotoAndStop(17);
}
if (hitTest(_root.p3)) {
_root.p3.gotoAndStop(11);
}
}
Symbol 125 MovieClip [mis2] Frame 16
stop();
Symbol 125 MovieClip [mis2] Frame 17
play();
Symbol 125 MovieClip [mis2] Frame 30
stop();
gotoAndStop (16);
Symbol 130 MovieClip [mina] Frame 1
stop();
Symbol 130 MovieClip [mina] Frame 2
stop();
Instance of Symbol 129 MovieClip in Symbol 130 MovieClip [mina] Frame 2
onClipEvent (enterFrame) {
if (hitTest(_root.ad)) {
var adc = _root.ad._currentframe;
if (adc < 7) {
_root.ad.gotoAndPlay(7);
}
}
if (hitTest(_root.ak)) {
var akc = _root.ak._currentframe;
if (akc < 7) {
_root.ak.gotoAndPlay(7);
}
}
if (hitTest(_root.qw)) {
_root.qw.gotoAndStop(20);
}
if (hitTest(_root.qr)) {
_root.qr.gotoAndStop(20);
}
if (hitTest(_root.qe)) {
_root.qe.gotoAndStop(20);
}
if (hitTest(_root.af)) {
_root.af.gotoAndStop(12);
}
if (hitTest(_root.ah)) {
_root.ah.gotoAndStop(15);
}
if (hitTest(_root.al)) {
_root.al.gotoAndStop(15);
}
if (hitTest(_root.ws)) {
_root.ws.gotoAndStop(8);
}
if (hitTest(_root.al)) {
_root.al.gotoAndStop(15);
}
if (hitTest(_root.ag)) {
_root.ag.gotoAndStop(11);
}
if (hitTest(_root.p1)) {
_root.p1.gotoAndStop(17);
}
if (hitTest(_root.p2)) {
_root.p2.gotoAndStop(17);
}
if (hitTest(_root.p3)) {
_root.p3.gotoAndStop(11);
}
}
Symbol 130 MovieClip [mina] Frame 16
stop();
Symbol 133 MovieClip [plus20] Frame 11
stop();
Symbol 134 MovieClip [miss] Frame 1
stop();
Symbol 134 MovieClip [miss] Frame 2
stop();
Instance of Symbol 123 MovieClip in Symbol 134 MovieClip [miss] Frame 2
onClipEvent (enterFrame) {
if (hitTest(_root.ad)) {
var adc = _root.ad._currentframe;
if (adc < 7) {
_root.ad.gotoAndPlay(7);
}
}
if (hitTest(_root.ak)) {
var akc = _root.ak._currentframe;
if (akc < 7) {
_root.ak.gotoAndPlay(7);
}
}
if (hitTest(_root.qw)) {
_root.qw.gotoAndStop(20);
}
if (hitTest(_root.qr)) {
_root.qr.gotoAndStop(20);
}
if (hitTest(_root.qe)) {
_root.qe.gotoAndStop(20);
}
if (hitTest(_root.af)) {
_root.af.gotoAndStop(12);
}
if (hitTest(_root.ah)) {
_root.ah.gotoAndStop(15);
}
if (hitTest(_root.al)) {
_root.al.gotoAndStop(15);
}
if (hitTest(_root.ws)) {
_root.ws.gotoAndStop(8);
}
if (hitTest(_root.al)) {
_root.al.gotoAndStop(15);
}
if (hitTest(_root.ag)) {
_root.ag.gotoAndStop(11);
}
if (hitTest(_root.p1)) {
_root.p1.gotoAndStop(17);
}
if (hitTest(_root.p2)) {
_root.p2.gotoAndStop(17);
}
if (hitTest(_root.p3)) {
_root.p3.gotoAndStop(11);
}
}
Symbol 134 MovieClip [miss] Frame 16
stop();
Symbol 134 MovieClip [miss] Frame 17
play();
Symbol 134 MovieClip [miss] Frame 30
stop();
gotoAndStop (16);
Symbol 139 MovieClip [mfir] Frame 1
stop();
Symbol 139 MovieClip [mfir] Frame 5
stop();
Symbol 161 MovieClip Frame 1
Percentloaded = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (Percentloaded != 100) {
bar._xscale = Percentloaded;
} else {
_root.gotoAndStop("splash1");
}
Symbol 161 MovieClip Frame 2
gotoAndPlay (1);
Symbol 161 MovieClip Frame 3
stop();
Symbol 1127 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.31");
}
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 get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 1128 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 1129 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
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 _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.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 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_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 _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
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;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_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 showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:10, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
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_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;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
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) {
_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 showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(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 _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
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 _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
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;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_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);
}
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++;
}
}
return(_local4);
}
}
Symbol 170 Button
on (release) {
_root.gotoAndStop(5);
}
Symbol 205 Button
on (release) {
stopAllSounds();
_root.gotoAndStop(3);
}
Symbol 208 Button
on (release) {
stopAllSounds();
_root.gotoAndStop(3);
}
Symbol 211 Button
on (release) {
mochi.MochiScores.showLeaderboard({boardID:"c1871bdd3d7ddff3", onClose:function () {
}});
}
Symbol 215 Button
on (release) {
getURL ("http://www.yougame.com", "_top");
}
Symbol 219 Button
on (release) {
getURL ("http://www.yougame.com", "_top");
}
Symbol 366 MovieClip Frame 230
stop();
Symbol 378 MovieClip Frame 1
stop();
Symbol 380 MovieClip Frame 1
stop();
Symbol 429 MovieClip Frame 1
stop();
Symbol 429 MovieClip Frame 2
stop();
Symbol 429 MovieClip Frame 3
stop();
Symbol 429 MovieClip Frame 4
stop();
Symbol 429 MovieClip Frame 5
stop();
Symbol 429 MovieClip Frame 6
stop();
Symbol 429 MovieClip Frame 7
stop();
Symbol 429 MovieClip Frame 8
stop();
Symbol 429 MovieClip Frame 9
stop();
Symbol 429 MovieClip Frame 10
stop();
Symbol 429 MovieClip Frame 11
stop();
Symbol 429 MovieClip Frame 12
stop();
Symbol 429 MovieClip Frame 13
stop();
Symbol 429 MovieClip Frame 14
stop();
Symbol 429 MovieClip Frame 15
stop();
Symbol 429 MovieClip Frame 16
stop();
Symbol 429 MovieClip Frame 17
stop();
Symbol 429 MovieClip Frame 18
stop();
Symbol 429 MovieClip Frame 19
stop();
Symbol 429 MovieClip Frame 20
stop();
Symbol 429 MovieClip Frame 27
stop();
Symbol 431 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 2
stop();
Symbol 446 MovieClip Frame 3
stop();
Symbol 446 MovieClip Frame 4
stop();
Symbol 446 MovieClip Frame 5
stop();
Symbol 450 MovieClip Frame 1
stop();
if (_root.boss2life < 10) {
play();
}
Instance of Symbol 446 MovieClip in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.boss2life <= 2500) && (_root.boss2life > 2000)) {
gotoAndStop (2);
}
if ((_root.boss2life <= 2000) && (_root.boss2life > 1500)) {
gotoAndStop (3);
}
if ((_root.boss2life <= 1500) && (_root.boss2life > 700)) {
gotoAndStop (4);
}
if ((_root.boss2life <= 700) && (_root.boss2life > 10)) {
gotoAndStop (5);
}
}
Instance of Symbol 446 MovieClip in Symbol 450 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((_root.boss1life <= 800) && (_root.boss1life > 600)) {
gotoAndStop (2);
}
if ((_root.boss1life <= 600) && (_root.boss1life > 400)) {
gotoAndStop (3);
}
if ((_root.boss1life <= 400) && (_root.boss1life > 200)) {
gotoAndStop (4);
}
if ((_root.boss1life <= 200) && (_root.boss1life > 10)) {
gotoAndStop (5);
}
}
Symbol 450 MovieClip Frame 9
stop();
Symbol 476 MovieClip Frame 8
stop();
Symbol 477 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 2
stop();
Symbol 477 MovieClip Frame 3
stop();
Symbol 477 MovieClip Frame 4
stop();
Symbol 477 MovieClip Frame 5
stop();
Symbol 477 MovieClip Frame 6
stop();
Symbol 477 MovieClip Frame 7
stop();
Symbol 477 MovieClip Frame 8
stop();
Symbol 477 MovieClip Frame 9
stop();
Symbol 477 MovieClip Frame 10
stop();
Symbol 477 MovieClip Frame 11
stop();
if (_root.czl2._currentframe == 8) {
gotoAndStop (12);
}
Symbol 477 MovieClip Frame 12
stop();
Symbol 501 MovieClip Frame 1
stop();
Symbol 501 MovieClip Frame 2
stop();
Symbol 501 MovieClip Frame 3
stop();
Symbol 501 MovieClip Frame 4
stop();
Symbol 501 MovieClip Frame 5
stop();
Symbol 501 MovieClip Frame 6
stop();
Symbol 501 MovieClip Frame 20
stop();
Symbol 511 MovieClip Frame 5
stop();
Symbol 530 MovieClip Frame 9
stop();
Symbol 537 MovieClip Frame 1
stop();
Symbol 537 MovieClip Frame 2
stop();
Symbol 537 MovieClip Frame 3
stop();
Symbol 537 MovieClip Frame 4
stop();
Symbol 537 MovieClip Frame 5
stop();
Symbol 537 MovieClip Frame 6
stop();
Symbol 537 MovieClip Frame 7
stop();
Symbol 537 MovieClip Frame 8
stop();
Symbol 537 MovieClip Frame 9
stop();
Symbol 537 MovieClip Frame 10
stop();
Symbol 537 MovieClip Frame 11
stop();
Symbol 537 MovieClip Frame 18
stop();
Symbol 539 MovieClip Frame 1551
stop();
Symbol 541 MovieClip Frame 3200
stop();
Symbol 556 MovieClip Frame 1
stop();
Symbol 556 MovieClip Frame 2
stop();
Symbol 556 MovieClip Frame 3
stop();
Symbol 556 MovieClip Frame 4
stop();
Symbol 556 MovieClip Frame 5
stop();
Symbol 556 MovieClip Frame 6
stop();
Symbol 556 MovieClip Frame 11
stop();
Symbol 566 MovieClip Frame 6
stop();
Symbol 584 MovieClip Frame 14
stop();
Symbol 585 MovieClip Frame 1
stop();
Symbol 585 MovieClip Frame 2
stop();
Symbol 585 MovieClip Frame 3
stop();
Symbol 585 MovieClip Frame 4
stop();
Symbol 585 MovieClip Frame 5
stop();
Symbol 585 MovieClip Frame 6
stop();
Symbol 585 MovieClip Frame 7
stop();
Symbol 585 MovieClip Frame 8
stop();
Symbol 585 MovieClip Frame 9
stop();
Symbol 585 MovieClip Frame 10
stop();
Symbol 585 MovieClip Frame 11
stop();
Symbol 585 MovieClip Frame 12
stop();
if (_root.czl1._currentframe == 14) {
gotoAndStop (13);
}
Symbol 585 MovieClip Frame 13
stop();
Instance of Symbol 446 MovieClip in Symbol 592 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.boss1life <= 800) && (_root.boss1life > 600)) {
gotoAndStop (2);
}
if ((_root.boss1life <= 600) && (_root.boss1life > 400)) {
gotoAndStop (3);
}
if ((_root.boss1life <= 400) && (_root.boss1life > 200)) {
gotoAndStop (4);
}
if ((_root.boss1life <= 200) && (_root.boss1life > 10)) {
gotoAndStop (5);
}
}
Symbol 592 MovieClip Frame 25
if (_root.boss1life < 10) {
play();
} else {
gotoAndPlay (1);
}
Symbol 592 MovieClip Frame 33
stop();
Symbol 609 MovieClip Frame 6
stop();
Symbol 610 MovieClip Frame 1
stop();
Symbol 610 MovieClip Frame 2
stop();
Symbol 610 MovieClip Frame 3
stop();
Symbol 610 MovieClip Frame 4
stop();
Symbol 610 MovieClip Frame 5
stop();
Symbol 610 MovieClip Frame 6
stop();
Symbol 610 MovieClip Frame 7
stop();
Symbol 610 MovieClip Frame 8
stop();
if (_root.czl5._currentframe == 6) {
gotoAndStop (9);
}
Symbol 610 MovieClip Frame 9
stop();
Symbol 633 MovieClip Frame 5
stop();
Symbol 637 MovieClip Frame 1
stop();
Symbol 637 MovieClip Frame 2
stop();
Symbol 637 MovieClip Frame 3
stop();
Symbol 637 MovieClip Frame 4
stop();
Symbol 637 MovieClip Frame 5
stop();
Symbol 637 MovieClip Frame 6
stop();
Symbol 637 MovieClip Frame 7
stop();
Symbol 637 MovieClip Frame 8
stop();
Symbol 637 MovieClip Frame 9
stop();
Symbol 637 MovieClip Frame 10
stop();
Symbol 637 MovieClip Frame 11
stop();
Symbol 637 MovieClip Frame 12
stop();
Symbol 637 MovieClip Frame 13
stop();
Symbol 637 MovieClip Frame 14
stop();
Symbol 637 MovieClip Frame 15
stop();
Symbol 637 MovieClip Frame 16
stop();
Symbol 637 MovieClip Frame 17
stop();
Symbol 637 MovieClip Frame 24
stop();
Symbol 653 MovieClip Frame 1
stop();
Symbol 653 MovieClip Frame 2
stop();
Symbol 653 MovieClip Frame 14
stop();
Symbol 710 MovieClip Frame 1
stop();
Symbol 710 MovieClip Frame 200
stop();
Symbol 713 Button
on (release) {
_root.POU = 0;
}
Symbol 716 MovieClip Frame 1
stop();
Symbol 716 MovieClip Frame 2
stop();
Symbol 727 MovieClip Frame 1
stop();
Symbol 727 MovieClip Frame 30
stop();
Symbol 732 MovieClip Frame 1
stop();
Symbol 732 MovieClip Frame 4
_root.life = _root.life - 1;
Symbol 740 MovieClip Frame 1
stop();
Symbol 740 MovieClip Frame 4
_root.life = _root.life - 1;
Symbol 746 MovieClip Frame 1
stop();
Symbol 746 MovieClip Frame 4
_root.life = _root.life - 1;
Symbol 758 MovieClip Frame 1
stop();
Symbol 759 MovieClip Frame 1
stop();
Symbol 759 MovieClip Frame 4
_root.life = _root.life - 1;
Symbol 760 MovieClip Frame 1
stop();
Instance of Symbol 732 MovieClip in Symbol 760 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.heli._y > 375) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ag)) {
miss.play();
}
if (_root.heli.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 4;
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.bos2)) {
_root.boss2life = _root.boss2life - 4;
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ad)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ak1)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ah)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ag)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.af1)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.al)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.p1)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.p2)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.p3)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.qw)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.qe)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.qr)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ws)) {
gotoAndPlay (2);
}
}
Symbol 760 MovieClip Frame 58
stop();
Instance of Symbol 740 MovieClip in Symbol 760 MovieClip Frame 58
onClipEvent (enterFrame) {
if (_root.heli._y > 375) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ag)) {
miss.play();
}
if (_root.heli.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 4;
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.bos2)) {
_root.boss2life = _root.boss2life - 4;
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ad)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ak1)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ah)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ag)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.af1)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.al)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.p1)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.p2)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.p3)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.qw)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.qe)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.qr)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ws)) {
gotoAndPlay (2);
}
}
Symbol 760 MovieClip Frame 118
stop();
Instance of Symbol 746 MovieClip in Symbol 760 MovieClip Frame 118
onClipEvent (enterFrame) {
if (_root.heli._y > 375) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ag)) {
miss.play();
}
if (_root.heli.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 4;
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.bos2)) {
_root.boss2life = _root.boss2life - 4;
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ad)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ak1)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ah)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ag)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.af1)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.al)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.p1)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.p2)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.p3)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.qw)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.qe)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.qr)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ws)) {
gotoAndPlay (2);
}
}
Symbol 760 MovieClip Frame 179
stop();
Instance of Symbol 758 MovieClip in Symbol 760 MovieClip Frame 179
onClipEvent (enterFrame) {
_root.pion = 3;
if (Key.isDown(90)) {
if (_currentframe == 1) {
_root.fir4 = 1;
_root.pion = 3;
play();
}
} else {
_root.fir4 = 0;
_root.pion = 3;
}
if (_currentframe != 1) {
_root.fir4 = 0;
_root.pion = 3;
}
}
Instance of Symbol 759 MovieClip in Symbol 760 MovieClip Frame 179
onClipEvent (enterFrame) {
if (_root.heli._y > 375) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ag)) {
miss.play();
}
if (_root.heli.hitTest(_root.bos1)) {
_root.boss1life = _root.boss1life - 4;
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.bos2)) {
_root.boss2life = _root.boss2life - 4;
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ad)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ak1)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ah)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ag)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.af1)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.al)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.p1)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.p2)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.p3)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.qw)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.qe)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.qr)) {
gotoAndPlay (2);
}
if (_root.heli.hitTest(_root.ws)) {
gotoAndPlay (2);
}
}
Symbol 763 MovieClip Frame 1
stop();
Symbol 763 MovieClip Frame 3
stop();
Instance of Symbol 769 MovieClip in Symbol 775 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_root.heli._y + 300);
}
Symbol 781 MovieClip Frame 1
stop();
Instance of Symbol 778 MovieClip in Symbol 781 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _root.life;
}
Symbol 789 Button
on (release) {
my_sound = new Sound();
my_sound.setVolume(0);
gotoAndStop (2);
}
Symbol 791 Button
on (release) {
my_sound = new Sound();
my_sound.setVolume(100);
gotoAndStop (1);
}
Symbol 792 MovieClip Frame 1
stop();
Symbol 792 MovieClip Frame 2
stop();
Symbol 906 MovieClip Frame 210
stop();
Symbol 943 MovieClip Frame 15
stop();
Symbol 944 MovieClip Frame 1
stop();
Symbol 944 MovieClip Frame 2
stop();
Symbol 944 MovieClip Frame 3
stop();
Symbol 944 MovieClip Frame 4
stop();
Symbol 944 MovieClip Frame 5
stop();
Symbol 944 MovieClip Frame 6
stop();
Symbol 944 MovieClip Frame 7
stop();
Symbol 944 MovieClip Frame 8
stop();
Symbol 944 MovieClip Frame 9
stop();
Symbol 944 MovieClip Frame 10
stop();
Symbol 944 MovieClip Frame 11
stop();
Symbol 944 MovieClip Frame 12
stop();
Symbol 944 MovieClip Frame 13
stop();
Symbol 944 MovieClip Frame 14
stop();
Symbol 944 MovieClip Frame 15
stop();
if (_root.czl4._currentframe == 15) {
gotoAndStop (16);
}
Symbol 944 MovieClip Frame 16
stop();
Symbol 948 MovieClip Frame 1
stop();
if (_root.boss3life < 10) {
play();
}
Symbol 948 MovieClip Frame 17
stop();
Symbol 953 MovieClip Frame 4000
stop();
Symbol 960 MovieClip Frame 2300
stop();
Symbol 1023 MovieClip Frame 160
stop();
Symbol 1032 MovieClip Frame 1
stop();
Symbol 1032 MovieClip Frame 30
stop();
Symbol 1034 MovieClip Frame 3000
stop();
Symbol 1076 MovieClip Frame 1
stop();
Symbol 1076 MovieClip Frame 326
stop();
Symbol 1088 MovieClip Frame 400
_root.kon = 1;
Symbol 1096 Button
on (release) {
gotoAndStop (13);
}
Symbol 1098 Button
on (release) {
_root.scor = 10;
gotoAndStop (4);
}
Symbol 1105 Button
on (release) {
mochi.MochiScores.showLeaderboard({boardID:"c1871bdd3d7ddff3", score:scor, name:playerName, onClose:function () {
_root.scor = 10;
_root.gotoAndStop(4);
}});
}
Symbol 1106 Button
on (release) {
_root.scor = 10;
gotoAndStop (4);
}
Symbol 1126 MovieClip Frame 1
Symbol 1126 MovieClip Frame 198
_root.gotoAndStop("splash2");