Frame 1
fscommand ("allowscale", false);
fscommand ("showmenu", false);
var MochiAd = {getVersion:function () {
return("2.1");
}, showPreGameAd:function (options) {
var _local1 = this;
var DEFAULTS = {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 = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var _local3 = wh[0];
var h = wh[1];
mc._x = _local3 * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local3 * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
bar._x = 10;
bar._y = h - 20;
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(_local3 - 20, 0);
backing.lineTo(_local3 - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var _local2 = bar.createEmptyMovieClip("_inside", 2);
_local2.beginFill(bar_color);
_local2.moveTo(0, 0);
_local2.lineTo(_local3 - 20, 0);
_local2.lineTo(_local3 - 20, 10);
_local2.lineTo(0, 10);
_local2.lineTo(0, 0);
_local2.endFill();
_local2._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(_local3 - 20, 0);
outline.lineTo(_local3 - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local1 = this;
var _clip = _local1._parent._parent;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local3 = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = ((100 * clip_loaded) / clip_total);
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = _local1._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
_local2 = Math.max(_local1.last_pcnt, _local2);
_local1.last_pcnt = _local2;
_inside._xscale = _local2;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
_local3 = true;
}
}
if (elapsed > chk.ad_msec) {
_local3 = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = chk.fadeFunction;
}
}
};
}
}, showInterLevelAd:function (options) {
var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local1 = this;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local2 = false;
if (!chk.showing) {
var _local3 = ad_clip.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
_local2 = true;
}
}
if (elapsed > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = _local1.fadeFunction;
}
}
};
}
}, showTimedAd:function (options) {
MochiAd.showInterLevelAd(options);
}, showPreloaderAd:function (options) {
MochiAd.showPreGameAd(options);
}, _allowDomains:function (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);
}, _loadCommunicator:function (options) {
var _local2 = options;
var _local3 = arguments;
var DEFAULTS = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
_local2 = MochiAd._parseOptions(_local2, DEFAULTS);
_local2.swfv = _local2.clip.getSWFVersion() || 6;
_local2.mav = MochiAd.getVersion();
var clip = _local2.clip;
var clipname = ("_mochiad_com_" + _local2.id);
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip[clipname]) {
return(clip[clipname].lc);
}
var server = (_local2.com_server + _local2.id);
MochiAd._allowDomains(server);
delete _local2.id;
delete _local2.com_server;
var depth = _local2.depth;
delete _local2.depth;
var mc = clip.createEmptyMovieClip(clipname, depth);
var lv = mc.createEmptyMovieClip("_mochiad_com", 1);
for (var k in _local2) {
lv[k] = _local2[k];
}
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lc._id = 0;
lc._queue = [];
lc.rpcResult = function (cb_arg) {
var cb = parseInt(cb_arg);
var _local2 = this._callbacks[cb];
if (!_local2) {
} else {
delete this._callbacks[cb];
var _local3 = [];
var _local1 = 2;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
_local1 = 1;
while (_local1 < arguments.length) {
_local3.push(arguments[_local1]);
_local1++;
}
var method = _local2[1];
var obj = _local2[0];
if (obj && (typeof(method) == "string")) {
method = obj[method];
}
if (method) {
method.apply(obj, _local3);
}
}
};
lc._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local3 = this._queue;
delete this._queue;
var ds = this.doSend;
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3[_local1];
ds.apply(this, _local2);
_local1++;
}
};
lc.doSend = function (args, cbobj, cbfn) {
var _local2 = arguments;
if (this._endpoint == null) {
var _local3 = [];
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
this._queue.push(_local3);
} else {
this._id = this._id + 1;
var id = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[id] = [cbobj, cbfn];
var slc = new LocalConnection();
var ss = slc.send(this._endpoint, "rpc", id, args);
}
};
lc._callbacks = {};
lc._callbacks[0] = [lc, "_didConnect"];
lv.st = getTimer();
lv.loadMovie(server + ".swf", "POST");
return(lc);
}, fetchHighScores:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["fetchHighScores", _local2];
_local1.doSend(["fetchHighScores", _local2], callbackObj, callbackMethod);
return(true);
}, sendHighScore:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["sendHighScore", _local2];
_local1.doSend(["sendHighScore", _local2], callbackObj, callbackMethod);
return(true);
}, load:function (options) {
var _local1 = options;
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
_local1 = MochiAd._parseOptions(_local1, DEFAULTS);
_local1.swfv = _local1.clip.getSWFVersion() || 6;
_local1.mav = MochiAd.getVersion();
var clip = _local1.clip;
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = _local1.depth;
delete _local1.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = MochiAd._getRes(_local1);
_local1.res = (wh[0] + "x") + wh[1];
_local1.server = _local1.server + _local1.id;
delete _local1.id;
clip._mochiad_loaded = true;
var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in _local1) {
_local2[k] = _local1[k];
}
var server = _local2.server;
delete _local2.server;
var hostname = MochiAd._allowDomains(server);
mc.onEnterFrame = function () {
var _local1 = this;
if (_local1._mochiad_ctr._url != _local1._url) {
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1._mochiad_ctr) {
delete _local1.onEnterFrame;
MochiAd.unload(_local1._parent);
}
};
}
};
var _local3 = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local3.mc = mc;
_local3.name = name;
_local3.hostname = hostname;
_local3.allowDomain = function (d) {
return(true);
};
_local3.allowInsecureDomain = _local3.allowDomain;
_local3.connect(name);
mc.lc = _local3;
_local2.lc = name;
_local2.st = getTimer();
_local2.loadMovie(server + ".swf", "POST");
return(mc);
}, unload:function (clip) {
var _local1 = clip;
if (typeof(_local1) == "undefined") {
_local1 = _root;
}
if (_local1.clip && (_local1.clip._mochiad)) {
_local1 = _local1.clip;
}
if (!_local1._mochiad) {
return(false);
}
_local1._mochiad.removeMovieClip();
delete _local1._mochiad_loaded;
delete _local1._mochiad;
return(true);
}, _isNetworkAvailable:function () {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}, _getRes:function (options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
_local2 = parseFloat(xy[0]);
_local1 = parseFloat(xy[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]);
}, _parseOptions:function (options, defaults) {
var _local3 = {};
for (var k in defaults) {
_local3[k] = defaults[k];
}
if (options) {
for (var k in options) {
_local3[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var _local1 = 0;
while (_local1 < pairs.length) {
var _local2 = pairs[_local1].split("=");
_local3[unescape(_local2[0])] = unescape(_local2[1]);
_local1++;
}
}
return(_local3);
}, _:null};
MochiAd.showPreGameAd({id:"a1234316c8d03f2e", res:"700x550", background:0, color:16750848, outline:16777215, no_bg:true});
Frame 2
Mouse.show();
Frame 3
gotoAndPlay (61);
Frame 20
stopAllSounds();
Mouse.show();
Frame 21
_root.score = 0;
_root.health = 150;
_root.e_die = 0;
_root.ammo = 10;
_root.t_shoot = 0;
_root.t_hit = 0;
stop();
var savefile = SharedObject.getLocal("flashgunner");
Frame 24
stop();
_root.health = 150;
_root.e_die = 0;
_root.death = 0;
_root.ammo = 10;
_root.t_shoot = 0;
_root.t_hit = 0;
_root.cur1 = 0;
_root.qual = 1;
Instance of Symbol 269 MovieClip "shot_mc" in Frame 24
onClipEvent (load) {
speed = 30;
damageMin = 50;
damageMax = 50;
_alpha = 0;
hit = false;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_root.shot_mc.hit = true;
_root.shot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
_alpha = (_alpha + 15);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else {
i = 1;
while (i <= _root.enemyCount) {
if (this.hitTest(_root["enemy_mc" + i].actual)) {
_root.t_hit = Number(_root.t_hit + 1);
hitFunc();
_root["enemy_mc" + i].health = _root["enemy_mc" + i].health - (damageMin + random(damageMax - damageMin));
break;
}
i++;
}
}
}
}
Instance of Symbol 273 MovieClip "enemyshot_mc" in Frame 24
onClipEvent (load) {
speed = 20;
damageMin = 5;
damageMax = 5;
_alpha = -20;
hit = false;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_root.enemyshot_mc.hit = true;
_root.enemyshot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
_alpha = (_alpha + 15);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (_root.shield_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (this.hitTest(_root.player_mc.actual)) {
hitFunc();
_root.player_mc.health = _root.player_mc.health - (damageMin + random(damageMax - damageMin));
_root.health = _root.health - (damageMin + random(damageMax - damageMin));
_root.hscreen_mc.gotoAndPlay(2);
}
}
}
Instance of Symbol 275 MovieClip "tank_mc" in Frame 24
onClipEvent (load) {
health = 75;
refireInterval = 100;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._y = 700;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._y = this._y - enemySpeed;
if (this._y <= 400) {
this._y = 400;
}
}
}
Instance of Symbol 292 MovieClip "player_mc" in Frame 24
onClipEvent (load) {
healthMax = 150;
speedMax = 7;
manuverSpeed = 5;
accel = 3;
decay = 0.9;
bounce = 0.75;
collideDamage = 0.1;
shotMax = 10;
health = healthMax;
xSpeed = 0;
ySpeed = 0;
speed = 0;
shotCount = 0;
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
speed = speed * decay;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
speed = -(speed * bounce);
}
if (Key.isDown(32)) {
}
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
if (_x < 0) {
_x = 10;
}
if (_x > 640) {
_x = 630;
}
if (_y < 0) {
_y = 10;
}
if (_y > 480) {
_y = 470;
}
}
}
onClipEvent (mouseDown) {
if (((!death) && (_root.ammo >= 1)) && (_root.e_die < 13)) {
_root.ammo = _root.ammo - 1;
this.turret_mc.gotoAndPlay("shoot");
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.shot_mc.duplicateMovieClip("shot_mc" + shotCount, shotCount);
_root["shot_mc" + shotCount]._x = this._x;
_root["shot_mc" + shotCount]._y = this._y;
_root["shot_mc" + shotCount]._rotation = this.turret_mc._rotation + this._rotation;
}
}
Instance of Symbol 156 MovieClip [enemy_mc3] "tank_mc" in Frame 24
onClipEvent (load) {
health = 75;
refireInterval = 200;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount > shotMax) {
shotCount = 1;
refireInterval = 100;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (enterFrame) {
if (_root.health >= 0) {
if (_root.actual.hitTest(this.actual2)) {
_root.actual._visible = true;
tellTarget (_root.one1) {
death = 1;
_root.score = Number(_root.score) + 200;
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
function reset() {
this._x = 1000;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._x = this._x - enemySpeed;
if (this._x <= 500) {
this._x = 500;
}
}
}
Instance of Symbol 275 MovieClip "tank_mc" in Frame 24
onClipEvent (load) {
health = 75;
refireInterval = 255;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount > shotMax) {
shotCount = 1;
refireInterval = 25;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._y = 1000;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._y = this._y - enemySpeed;
if (this._y <= 500) {
this._y = 500;
}
}
}
Instance of Symbol 275 MovieClip "tank_mc" in Frame 24
onClipEvent (load) {
this.turret_mc._x = -5;
this.turret_mc._y = 10;
health = 75;
refireInterval = 100;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._y = -500;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._y = this._y + enemySpeed;
if (this._y >= 100) {
this._y = 100;
}
}
}
Instance of Symbol 156 MovieClip [enemy_mc3] "tank_mc" in Frame 24
onClipEvent (load) {
health = 75;
refireInterval = 200;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount > shotMax) {
shotCount = 1;
refireInterval = 100;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (enterFrame) {
if (_root.health >= 0) {
if (_root.actual.hitTest(this.actual2)) {
_root.actual._visible = true;
tellTarget (_root.one1) {
death = 1;
_root.score = Number(_root.score) + 200;
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
function reset() {
this._x = 1500;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._x = this._x - enemySpeed;
if (this._x <= 500) {
this._x = 500;
}
}
}
Instance of Symbol 275 MovieClip "tank_mc" in Frame 24
onClipEvent (load) {
this.turret_mc._x = 7;
this.turret_mc._y = 10;
health = 75;
refireInterval = 200;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._y = -900;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._y = this._y + enemySpeed;
if (this._y >= 100) {
this._y = 100;
}
}
}
Instance of Symbol 275 MovieClip "tank_mc" in Frame 24
onClipEvent (load) {
this.turret_mc._x = -5;
this.turret_mc._y = 15;
health = 75;
refireInterval = 200;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._y = -1000;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._y = this._y + enemySpeed;
if (this._y >= 250) {
this._y = 250;
}
}
}
Instance of Symbol 156 MovieClip [enemy_mc3] "tank_mc" in Frame 24
onClipEvent (load) {
this.turret_mc._x = 7;
this.turret_mc._y = 20;
health = 75;
refireInterval = 200;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount > shotMax) {
shotCount = 1;
refireInterval = 100;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._x = -1050;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._x = this._x + enemySpeed;
if (this._x >= 100) {
this._x = 100;
}
}
}
Instance of Symbol 156 MovieClip [enemy_mc3] "tank_mc" in Frame 24
onClipEvent (load) {
this.turret_mc._x = -5;
this.turret_mc._y = 15;
health = 75;
refireInterval = 200;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount > shotMax) {
shotCount = 1;
refireInterval = 100;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._x = 1900;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._x = this._x - enemySpeed;
if (this._x <= 500) {
this._x = 500;
}
}
}
Instance of Symbol 131 MovieClip [enemy_mc4] in Frame 24
onClipEvent (load) {
health = 200;
refireInterval = 50;
shotMax = 100;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(76);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay(2);
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
function reset() {
this._y = 2000;
enemySpeed = 2;
this.gotoAndPlay(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._y = this._y - enemySpeed;
if (this._y <= 200) {
this._y = 200;
}
}
}
Instance of Symbol 131 MovieClip [enemy_mc4] in Frame 24
onClipEvent (load) {
health = 200;
refireInterval = 50;
shotMax = 100;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(76);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay(2);
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
function reset() {
this._x = 2200;
enemySpeed = 2;
this.gotoAndPlay(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._x = this._x - enemySpeed;
if (this._x <= 400) {
this._x = 400;
}
}
}
Instance of Symbol 98 MovieClip [ammos_bar] in Frame 24
onClipEvent (enterFrame) {
if (_root.ammo == 10) {
gotoAndStop (1);
}
if (_root.ammo == 9) {
gotoAndStop (2);
}
if (_root.ammo == 8) {
gotoAndStop (3);
}
if (_root.ammo == 7) {
gotoAndStop (4);
}
if (_root.ammo == 6) {
gotoAndStop (5);
}
if (_root.ammo == 5) {
gotoAndStop (6);
}
if (_root.ammo == 4) {
gotoAndStop (7);
}
if (_root.ammo == 3) {
gotoAndStop (8);
}
if (_root.ammo == 2) {
gotoAndStop (9);
}
if (_root.ammo == 1) {
gotoAndStop (10);
}
if (_root.ammo == 0) {
gotoAndStop (11);
}
}
Instance of Symbol 93 MovieClip [health_bar] "healthbar" in Frame 24
onClipEvent (enterFrame) {
_width = _root.health;
if (_root.health < 0) {
_width = 0;
_root.health = 0;
}
if (_root.health >= 150) {
_width = 150;
_root.health = 150;
}
}
Instance of Symbol 90 MovieClip [graphics_quality] in Frame 24
onClipEvent (keyDown) {
if (Key.isDown(81)) {
if (_root.qual == 0) {
_quality = "high";
_root.qual = 1;
this.gotoAndPlay(33);
} else if (_root.qual == 1) {
_quality = "low";
_root.qual = 0;
this.gotoAndPlay(2);
} else if (_root.qual == 2) {
_quality = "high";
_root.qual = 1;
this.gotoAndPlay(33);
}
}
}
Instance of Symbol 275 MovieClip "tank_mc" in Frame 24
onClipEvent (load) {
health = 75;
refireInterval = 100;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if ((!death) && (_root.e_die >= 11)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._y = 700;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if ((death == 0) && (_root.e_die >= 11)) {
this._y = this._y - enemySpeed;
if (this._y <= 400) {
this._y = 400;
}
}
}
Instance of Symbol 304 MovieClip "enemyshot_mc2" in Frame 24
onClipEvent (load) {
speed = 10;
damageMin = 15;
damageMax = 15;
_alpha = -20;
hit = false;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_root.enemyshot_mc.hit = true;
_root.enemyshot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit2");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
_alpha = (_alpha + 15);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (this.hitTest(_root.player_mc.actual)) {
hitFunc();
_root.player_mc.health = _root.player_mc.health - (damageMin + random(damageMax - damageMin));
_root.health = _root.health - (damageMin + random(damageMax - damageMin));
_root.hscreen_mc.gotoAndPlay(2);
}
}
}
Instance of Symbol 275 MovieClip "tank_mc" in Frame 24
onClipEvent (load) {
health = 75;
refireInterval = 100;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if ((!death) && (_root.e_die >= 11)) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._y = 800;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if ((death == 0) && (_root.e_die >= 11)) {
this._y = this._y - enemySpeed;
if (this._y <= 500) {
this._y = 500;
}
}
}
Instance of Symbol 312 MovieClip in Frame 24
onClipEvent (load) {
health = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndPlay(23);
_root.player_mc.health = _root.player_mc.health + 50;
_root.health = _root.health + 50;
health = 5;
death = true;
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this.gotoAndPlay(3);
}
if ((death == false) && (_root.e_die >= 11)) {
reset();
}
}
Instance of Symbol 322 MovieClip in Frame 24
onClipEvent (load) {
health = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndPlay(23);
_root.shield_mc.gotoAndPlay(2);
health = 5;
death = true;
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this.gotoAndPlay(3);
}
if ((death == false) && (_root.e_die >= 11)) {
reset();
}
}
Instance of Symbol 78 MovieClip [clouds1] in Frame 24
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = random(550) + 40;
_local1._y = -100;
enemySpeed = 4;
_local1.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y + enemySpeed;
if (this._y > 720) {
reset();
}
}
Instance of Symbol 76 MovieClip [clouds2] in Frame 24
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = random(550) + 40;
_local1._y = -100;
enemySpeed = 3;
_local1.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y + enemySpeed;
if (this._y > 720) {
reset();
}
}
Instance of Symbol 330 MovieClip in Frame 24
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (load) {
i = 0;
}
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_root.cur1 == 1) {
gotoAndStop (55);
}
if (_root.ammo == 0) {
gotoAndPlay (3);
}
if ((i % 2) == 0) {
}
i++;
}
onClipEvent (mouseDown) {
if (_root.cur1 == 1) {
gotoAndStop (55);
}
}
onClipEvent (mouseUp) {
}
onClipEvent (mouseDown) {
}
onClipEvent (enterFrame) {
Mouse.hide();
startDrag (this, true);
}
onClipEvent (mouseDown) {
if (_root.ammo >= 1) {
gotoAndPlay (2);
_root.t_shoot = Number(_root.t_shoot + 1);
}
}
onClipEvent (mouseUp) {
if (_root.ammo >= 1) {
gotoAndPlay (1);
}
}
Frame 30
stop();
_root.health = 150;
_root.e_die = 0;
_root.ammo = 10;
_root.t_shoot = 0;
_root.t_hit = 0;
_root.cur1 = 0;
_root.qual = 1;
Instance of Symbol 269 MovieClip "shot_mc" in Frame 30
onClipEvent (load) {
speed = 30;
damageMin = 50;
damageMax = 50;
_alpha = 0;
hit = false;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_root.shot_mc.hit = true;
_root.shot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
_alpha = (_alpha + 15);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else {
i = 1;
while (i <= _root.enemyCount) {
if (this.hitTest(_root["enemy_mc" + i].actual)) {
_root.t_hit = Number(_root.t_hit + 1);
hitFunc();
_root["enemy_mc" + i].health = _root["enemy_mc" + i].health - (damageMin + random(damageMax - damageMin));
break;
}
i++;
}
}
}
}
Instance of Symbol 273 MovieClip "enemyshot_mc" in Frame 30
onClipEvent (load) {
speed = 20;
damageMin = 5;
damageMax = 5;
_alpha = -20;
hit = false;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_root.enemyshot_mc.hit = true;
_root.enemyshot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
_alpha = (_alpha + 15);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (_root.shield_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (this.hitTest(_root.player_mc.actual)) {
hitFunc();
_root.player_mc.health = _root.player_mc.health - (damageMin + random(damageMax - damageMin));
_root.health = _root.health - (damageMin + random(damageMax - damageMin));
_root.hscreen_mc.gotoAndPlay(2);
}
}
}
Instance of Symbol 90 MovieClip [graphics_quality] in Frame 30
onClipEvent (keyDown) {
if (Key.isDown(81)) {
if (_root.qual == 0) {
_quality = "high";
_root.qual = 1;
this.gotoAndPlay(33);
} else if (_root.qual == 1) {
_quality = "low";
_root.qual = 0;
this.gotoAndPlay(2);
} else if (_root.qual == 2) {
_quality = "high";
_root.qual = 1;
this.gotoAndPlay(33);
}
}
}
Instance of Symbol 304 MovieClip "enemyshot_mc2" in Frame 30
onClipEvent (load) {
speed = 10;
damageMin = 15;
damageMax = 15;
_alpha = -20;
hit = false;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_root.enemyshot_mc.hit = true;
_root.enemyshot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit2");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
_alpha = (_alpha + 15);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (this.hitTest(_root.player_mc.actual)) {
hitFunc();
_root.player_mc.health = _root.player_mc.health - (damageMin + random(damageMax - damageMin));
_root.health = _root.health - (damageMin + random(damageMax - damageMin));
_root.hscreen_mc.gotoAndPlay(2);
}
}
}
Instance of Symbol 275 MovieClip "tank_mc" in Frame 30
onClipEvent (load) {
health = 75;
refireInterval = 100;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._y = 800;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._y = this._y - enemySpeed;
if (this._y <= 400) {
this._y = 400;
}
}
}
Instance of Symbol 292 MovieClip "player_mc" in Frame 30
onClipEvent (load) {
healthMax = 150;
speedMax = 7;
manuverSpeed = 5;
accel = 3;
decay = 0.9;
bounce = 0.75;
collideDamage = 0.1;
shotMax = 10;
health = healthMax;
xSpeed = 0;
ySpeed = 0;
speed = 0;
shotCount = 0;
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
speed = speed * decay;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
speed = -(speed * bounce);
}
if (Key.isDown(32)) {
}
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
if (_x < 0) {
_x = 10;
}
if (_x > 640) {
_x = 630;
}
if (_y < 0) {
_y = 10;
}
if (_y > 480) {
_y = 470;
}
}
}
onClipEvent (mouseDown) {
if (((!death) && (_root.ammo >= 1)) && (_root.e_die < 13)) {
_root.ammo = _root.ammo - 1;
this.turret_mc.gotoAndPlay("shoot");
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.shot_mc.duplicateMovieClip("shot_mc" + shotCount, shotCount);
_root["shot_mc" + shotCount]._x = this._x;
_root["shot_mc" + shotCount]._y = this._y;
_root["shot_mc" + shotCount]._rotation = this.turret_mc._rotation + this._rotation;
}
}
Instance of Symbol 131 MovieClip [enemy_mc4] in Frame 30
onClipEvent (load) {
health = 200;
refireInterval = 50;
shotMax = 100;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(76);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay(2);
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
function reset() {
this._y = 700;
enemySpeed = 2;
this.gotoAndPlay(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._y = this._y - enemySpeed;
if (this._y <= 200) {
this._y = 200;
}
}
}
Instance of Symbol 275 MovieClip "tank_mc" in Frame 30
onClipEvent (load) {
health = 75;
refireInterval = 100;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._y = 1000;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._y = this._y - enemySpeed;
if (this._y <= 500) {
this._y = 500;
}
}
}
Instance of Symbol 131 MovieClip [enemy_mc4] in Frame 30
onClipEvent (load) {
health = 200;
refireInterval = 50;
shotMax = 100;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(76);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay(2);
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
function reset() {
this._y = -400;
enemySpeed = 2;
this.gotoAndPlay(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._y = this._y + enemySpeed;
if (this._y >= 100) {
this._y = 100;
}
}
}
Instance of Symbol 131 MovieClip [enemy_mc4] in Frame 30
onClipEvent (load) {
health = 200;
refireInterval = 50;
shotMax = 100;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(76);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay(2);
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
function reset() {
this._y = 1300;
enemySpeed = 2;
this.gotoAndPlay(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._y = this._y - enemySpeed;
if (this._y <= 400) {
this._y = 400;
}
}
}
Instance of Symbol 156 MovieClip [enemy_mc3] "tank_mc" in Frame 30
onClipEvent (load) {
this.turret_mc._x = 7;
this.turret_mc._y = 20;
health = 75;
refireInterval = 200;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount > shotMax) {
shotCount = 1;
refireInterval = 100;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._x = -600;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._x = this._x + enemySpeed;
if (this._x >= 100) {
this._x = 100;
}
}
}
Instance of Symbol 275 MovieClip "tank_mc" in Frame 30
onClipEvent (load) {
this.turret_mc._x = 7;
this.turret_mc._y = 10;
health = 75;
refireInterval = 200;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._y = -900;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._y = this._y + enemySpeed;
if (this._y >= 100) {
this._y = 100;
}
}
}
Instance of Symbol 275 MovieClip "tank_mc" in Frame 30
onClipEvent (load) {
this.turret_mc._x = -5;
this.turret_mc._y = 15;
health = 75;
refireInterval = 200;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._y = -1000;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._y = this._y + enemySpeed;
if (this._y >= 250) {
this._y = 250;
}
}
}
Instance of Symbol 131 MovieClip [enemy_mc4] in Frame 30
onClipEvent (load) {
health = 200;
refireInterval = 50;
shotMax = 100;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(76);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay(2);
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
function reset() {
this._x = 2100;
enemySpeed = 2;
this.gotoAndPlay(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._x = this._x - enemySpeed;
if (this._x <= 500) {
this._x = 500;
}
}
}
Instance of Symbol 156 MovieClip [enemy_mc3] "tank_mc" in Frame 30
onClipEvent (load) {
this.turret_mc._x = -5;
this.turret_mc._y = 15;
health = 75;
refireInterval = 200;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount > shotMax) {
shotCount = 1;
refireInterval = 100;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._x = 1950;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._x = this._x - enemySpeed;
if (this._x <= 500) {
this._x = 500;
}
}
}
Instance of Symbol 338 MovieClip in Frame 30
onClipEvent (load) {
health = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndPlay(23);
_root.player_mc.health = _root.player_mc.health + 50;
_root.health = _root.health + 50;
health = 5;
death = true;
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this.gotoAndPlay(3);
}
if ((death == false) && (_root.e_die >= 5)) {
reset();
}
}
Instance of Symbol 339 MovieClip in Frame 30
onClipEvent (load) {
health = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndPlay(23);
_root.player_mc.health = _root.player_mc.health + 50;
_root.health = _root.health + 50;
health = 5;
death = true;
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this.gotoAndPlay(3);
}
if ((death == false) && (_root.e_die >= 10)) {
reset();
}
}
Instance of Symbol 275 MovieClip "tank_mc" in Frame 30
onClipEvent (load) {
health = 75;
refireInterval = 100;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._y = 800;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if ((death == 0) && (_root.e_die >= 10)) {
this._y = this._y - enemySpeed;
if (this._y <= 400) {
this._y = 400;
}
}
}
Instance of Symbol 275 MovieClip "tank_mc" in Frame 30
onClipEvent (load) {
health = 75;
refireInterval = 100;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._y = 900;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if ((death == 0) && (_root.e_die >= 10)) {
this._y = this._y - enemySpeed;
if (this._y <= 400) {
this._y = 400;
}
}
}
Instance of Symbol 131 MovieClip [enemy_mc4] in Frame 30
onClipEvent (load) {
health = 200;
refireInterval = 50;
shotMax = 100;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(76);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay(2);
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
function reset() {
this._y = 700;
enemySpeed = 2;
this.gotoAndPlay(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if ((death == 0) && (_root.e_die >= 10)) {
this._y = this._y - enemySpeed;
if (this._y <= 200) {
this._y = 200;
}
}
}
Instance of Symbol 98 MovieClip [ammos_bar] in Frame 30
onClipEvent (enterFrame) {
if (_root.ammo == 10) {
gotoAndStop (1);
}
if (_root.ammo == 9) {
gotoAndStop (2);
}
if (_root.ammo == 8) {
gotoAndStop (3);
}
if (_root.ammo == 7) {
gotoAndStop (4);
}
if (_root.ammo == 6) {
gotoAndStop (5);
}
if (_root.ammo == 5) {
gotoAndStop (6);
}
if (_root.ammo == 4) {
gotoAndStop (7);
}
if (_root.ammo == 3) {
gotoAndStop (8);
}
if (_root.ammo == 2) {
gotoAndStop (9);
}
if (_root.ammo == 1) {
gotoAndStop (10);
}
if (_root.ammo == 0) {
gotoAndStop (11);
}
}
Instance of Symbol 322 MovieClip in Frame 30
onClipEvent (load) {
health = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndPlay(23);
_root.shield_mc.gotoAndPlay(2);
health = 5;
death = true;
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this.gotoAndPlay(3);
}
if ((death == false) && (_root.e_die >= 11)) {
reset();
}
}
Instance of Symbol 78 MovieClip [clouds1] in Frame 30
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = random(550) + 40;
_local1._y = -100;
enemySpeed = 4;
_local1.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y + enemySpeed;
if (this._y > 720) {
reset();
}
}
Instance of Symbol 76 MovieClip [clouds2] in Frame 30
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = random(550) + 40;
_local1._y = -100;
enemySpeed = 3;
_local1.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y + enemySpeed;
if (this._y > 720) {
reset();
}
}
Instance of Symbol 330 MovieClip in Frame 30
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (load) {
i = 0;
}
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_root.cur1 == 1) {
gotoAndStop (55);
}
if (_root.ammo == 0) {
gotoAndPlay (3);
}
if ((i % 2) == 0) {
}
i++;
}
onClipEvent (mouseDown) {
if (_root.cur1 == 1) {
gotoAndStop (55);
}
}
onClipEvent (mouseUp) {
}
onClipEvent (mouseDown) {
}
onClipEvent (enterFrame) {
Mouse.hide();
startDrag (this, true);
}
onClipEvent (mouseDown) {
if (_root.ammo >= 1) {
gotoAndPlay (2);
_root.t_shoot = Number(_root.t_shoot + 1);
}
}
onClipEvent (mouseUp) {
if (_root.ammo >= 1) {
gotoAndPlay (1);
}
}
Instance of Symbol 93 MovieClip [health_bar] "healthbar" in Frame 30
onClipEvent (enterFrame) {
_width = _root.health;
if (_root.health < 0) {
_width = 0;
_root.health = 0;
}
if (_root.health >= 150) {
_width = 150;
_root.health = 150;
}
}
Frame 36
stop();
_root.health = 150;
_root.e_die = 0;
_root.ammo = 10;
_root.t_shoot = 0;
_root.t_hit = 0;
_root.cur1 = 0;
_root.qual = 1;
Instance of Symbol 269 MovieClip "shot_mc" in Frame 36
onClipEvent (load) {
speed = 30;
damageMin = 50;
damageMax = 50;
_alpha = 0;
hit = false;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_root.shot_mc.hit = true;
_root.shot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
_alpha = (_alpha + 15);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else {
i = 1;
while (i <= _root.enemyCount) {
if (this.hitTest(_root["enemy_mc" + i].actual)) {
_root.t_hit = Number(_root.t_hit + 1);
hitFunc();
_root["enemy_mc" + i].health = _root["enemy_mc" + i].health - (damageMin + random(damageMax - damageMin));
break;
}
i++;
}
}
}
}
Instance of Symbol 273 MovieClip "enemyshot_mc" in Frame 36
onClipEvent (load) {
speed = 20;
damageMin = 5;
damageMax = 5;
_alpha = -20;
hit = false;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_root.enemyshot_mc.hit = true;
_root.enemyshot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
_alpha = (_alpha + 15);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (_root.shield_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (this.hitTest(_root.player_mc.actual)) {
hitFunc();
_root.player_mc.health = _root.player_mc.health - (damageMin + random(damageMax - damageMin));
_root.health = _root.health - (damageMin + random(damageMax - damageMin));
_root.hscreen_mc.gotoAndPlay(2);
}
}
}
Instance of Symbol 304 MovieClip "enemyshot_mc2" in Frame 36
onClipEvent (load) {
speed = 10;
damageMin = 15;
damageMax = 15;
_alpha = -20;
hit = false;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_root.enemyshot_mc.hit = true;
_root.enemyshot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit2");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
_alpha = (_alpha + 15);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (this.hitTest(_root.player_mc.actual)) {
hitFunc();
_root.player_mc.health = _root.player_mc.health - (damageMin + random(damageMax - damageMin));
_root.health = _root.health - (damageMin + random(damageMax - damageMin));
_root.hscreen_mc.gotoAndPlay(2);
}
}
}
Instance of Symbol 275 MovieClip "tank_mc" in Frame 36
onClipEvent (load) {
health = 75;
refireInterval = 100;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._y = 800;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._y = this._y - enemySpeed;
if (this._y <= 400) {
this._y = 400;
}
}
}
Instance of Symbol 292 MovieClip "player_mc" in Frame 36
onClipEvent (load) {
healthMax = 150;
speedMax = 7;
manuverSpeed = 5;
accel = 3;
decay = 0.9;
bounce = 0.75;
collideDamage = 0.1;
shotMax = 10;
health = healthMax;
xSpeed = 0;
ySpeed = 0;
speed = 0;
shotCount = 0;
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
speed = speed * decay;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
speed = -(speed * bounce);
}
if (Key.isDown(32)) {
}
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
if (_x < 0) {
_x = 10;
}
if (_x > 640) {
_x = 630;
}
if (_y < 0) {
_y = 10;
}
if (_y > 480) {
_y = 470;
}
}
}
onClipEvent (mouseDown) {
if (((!death) && (_root.ammo >= 1)) && (_root.e_die < 15)) {
_root.ammo = _root.ammo - 1;
this.turret_mc.gotoAndPlay("shoot");
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.shot_mc.duplicateMovieClip("shot_mc" + shotCount, shotCount);
_root["shot_mc" + shotCount]._x = this._x;
_root["shot_mc" + shotCount]._y = this._y;
_root["shot_mc" + shotCount]._rotation = this.turret_mc._rotation + this._rotation;
}
}
Instance of Symbol 275 MovieClip "tank_mc" in Frame 36
onClipEvent (load) {
health = 75;
refireInterval = 100;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._y = 1000;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._y = this._y - enemySpeed;
if (this._y <= 500) {
this._y = 500;
}
}
}
Instance of Symbol 156 MovieClip [enemy_mc3] "tank_mc" in Frame 36
onClipEvent (load) {
this.turret_mc._x = 7;
this.turret_mc._y = 20;
health = 75;
refireInterval = 200;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount > shotMax) {
shotCount = 1;
refireInterval = 100;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._x = -600;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._x = this._x + enemySpeed;
if (this._x >= 100) {
this._x = 100;
}
}
}
Instance of Symbol 275 MovieClip "tank_mc" in Frame 36
onClipEvent (load) {
this.turret_mc._x = 7;
this.turret_mc._y = 10;
health = 75;
refireInterval = 200;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._y = -900;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._y = this._y + enemySpeed;
if (this._y >= 100) {
this._y = 100;
}
}
}
Instance of Symbol 275 MovieClip "tank_mc" in Frame 36
onClipEvent (load) {
this.turret_mc._x = -5;
this.turret_mc._y = 15;
health = 75;
refireInterval = 200;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._y = -1000;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._y = this._y + enemySpeed;
if (this._y >= 250) {
this._y = 250;
}
}
}
Instance of Symbol 156 MovieClip [enemy_mc3] "tank_mc" in Frame 36
onClipEvent (load) {
this.turret_mc._x = -5;
this.turret_mc._y = 15;
health = 75;
refireInterval = 200;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount > shotMax) {
shotCount = 1;
refireInterval = 100;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._x = 1950;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._x = this._x - enemySpeed;
if (this._x <= 500) {
this._x = 500;
}
}
}
Instance of Symbol 338 MovieClip in Frame 36
onClipEvent (load) {
health = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndPlay(23);
_root.player_mc.health = _root.player_mc.health + 50;
_root.health = _root.health + 50;
health = 5;
death = true;
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this.gotoAndPlay(3);
}
if ((death == false) && (_root.e_die >= 5)) {
reset();
}
}
Instance of Symbol 339 MovieClip in Frame 36
onClipEvent (load) {
health = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndPlay(23);
_root.player_mc.health = _root.player_mc.health + 50;
_root.health = _root.health + 50;
health = 5;
death = true;
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this.gotoAndPlay(3);
}
if ((death == false) && (_root.e_die >= 10)) {
reset();
}
}
Instance of Symbol 275 MovieClip "tank_mc" in Frame 36
onClipEvent (load) {
health = 75;
refireInterval = 100;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._y = 800;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if ((death == 0) && (_root.e_die >= 10)) {
this._y = this._y - enemySpeed;
if (this._y <= 400) {
this._y = 400;
}
}
}
Instance of Symbol 275 MovieClip "tank_mc" in Frame 36
onClipEvent (load) {
health = 75;
refireInterval = 100;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._y = 900;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if ((death == 0) && (_root.e_die >= 10)) {
this._y = this._y - enemySpeed;
if (this._y <= 400) {
this._y = 400;
}
}
}
Instance of Symbol 98 MovieClip [ammos_bar] in Frame 36
onClipEvent (enterFrame) {
if (_root.ammo == 10) {
gotoAndStop (1);
}
if (_root.ammo == 9) {
gotoAndStop (2);
}
if (_root.ammo == 8) {
gotoAndStop (3);
}
if (_root.ammo == 7) {
gotoAndStop (4);
}
if (_root.ammo == 6) {
gotoAndStop (5);
}
if (_root.ammo == 5) {
gotoAndStop (6);
}
if (_root.ammo == 4) {
gotoAndStop (7);
}
if (_root.ammo == 3) {
gotoAndStop (8);
}
if (_root.ammo == 2) {
gotoAndStop (9);
}
if (_root.ammo == 1) {
gotoAndStop (10);
}
if (_root.ammo == 0) {
gotoAndStop (11);
}
}
Instance of Symbol 322 MovieClip in Frame 36
onClipEvent (load) {
health = 5;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.gotoAndPlay(23);
_root.shield_mc.gotoAndPlay(2);
health = 5;
death = true;
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this.gotoAndPlay(3);
}
if ((death == false) && (_root.e_die >= 11)) {
reset();
}
}
Instance of Symbol 78 MovieClip [clouds1] in Frame 36
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = random(550) + 40;
_local1._y = -100;
enemySpeed = 4;
_local1.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y + enemySpeed;
if (this._y > 720) {
reset();
}
}
Instance of Symbol 76 MovieClip [clouds2] in Frame 36
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = random(550) + 40;
_local1._y = -100;
enemySpeed = 3;
_local1.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y + enemySpeed;
if (this._y > 720) {
reset();
}
}
Instance of Symbol 90 MovieClip [graphics_quality] in Frame 36
onClipEvent (keyDown) {
if (Key.isDown(81)) {
if (_root.qual == 0) {
_quality = "high";
_root.qual = 1;
this.gotoAndPlay(33);
} else if (_root.qual == 1) {
_quality = "low";
_root.qual = 0;
this.gotoAndPlay(2);
} else if (_root.qual == 2) {
_quality = "high";
_root.qual = 1;
this.gotoAndPlay(33);
}
}
}
Instance of Symbol 371 MovieClip "enemyshot_mc3" in Frame 36
onClipEvent (load) {
speed = 20;
damageMin = 5;
damageMax = 5;
_alpha = -20;
hit = false;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_root.enemyshot_mc.hit = true;
_root.enemyshot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
_alpha = (_alpha + 15);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (_root.shield_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (this.hitTest(_root.player_mc.actual)) {
hitFunc();
_root.player_mc.health = _root.player_mc.health - (damageMin + random(damageMax - damageMin));
_root.health = _root.health - (damageMin + random(damageMax - damageMin));
_root.hscreen_mc.gotoAndPlay(2);
}
}
}
Instance of Symbol 156 MovieClip [enemy_mc3] "tank_mc" in Frame 36
onClipEvent (load) {
health = 75;
refireInterval = 200;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount > shotMax) {
shotCount = 1;
refireInterval = 100;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (enterFrame) {
if (_root.health >= 0) {
if (_root.actual.hitTest(this.actual2)) {
_root.actual._visible = true;
tellTarget (_root.one1) {
death = 1;
_root.score = Number(_root.score) + 200;
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
function reset() {
this._x = 1000;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._x = this._x - enemySpeed;
if (this._x <= 500) {
this._x = 500;
}
}
}
Instance of Symbol 156 MovieClip [enemy_mc3] "tank_mc" in Frame 36
onClipEvent (load) {
health = 75;
refireInterval = 200;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount > shotMax) {
shotCount = 1;
refireInterval = 100;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (enterFrame) {
if (_root.health >= 0) {
if (_root.actual.hitTest(this.actual2)) {
_root.actual._visible = true;
tellTarget (_root.one1) {
death = 1;
_root.score = Number(_root.score) + 200;
gotoAndPlay (2);
};
}
}
}
onClipEvent (load) {
function reset() {
this._x = 1500;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._x = this._x - enemySpeed;
if (this._x <= 500) {
this._x = 500;
}
}
}
Instance of Symbol 156 MovieClip [enemy_mc3] "tank_mc" in Frame 36
onClipEvent (load) {
this.turret_mc._x = -5;
this.turret_mc._y = 15;
health = 75;
refireInterval = 200;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(101);
if (shotCount > shotMax) {
shotCount = 1;
refireInterval = 100;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
death = 0;
}
onClipEvent (load) {
function reset() {
this._x = 1900;
enemySpeed = 2;
this.gotoAndStop(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._x = this._x - enemySpeed;
if (this._x <= 500) {
this._x = 500;
}
}
}
Instance of Symbol 131 MovieClip [enemy_mc4] in Frame 36
onClipEvent (load) {
health = 200;
refireInterval = 50;
shotMax = 100;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(76);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay(2);
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
function reset() {
this._y = 700;
enemySpeed = 2;
this.gotoAndPlay(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._y = this._y - enemySpeed;
if (this._y <= 200) {
this._y = 200;
}
}
}
Instance of Symbol 131 MovieClip [enemy_mc4] in Frame 36
onClipEvent (load) {
health = 200;
refireInterval = 50;
shotMax = 100;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(76);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay(2);
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
function reset() {
this._y = 700;
enemySpeed = 2;
this.gotoAndPlay(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if ((death == 0) && (_root.e_die >= 10)) {
this._y = this._y - enemySpeed;
if (this._y <= 200) {
this._y = 200;
}
}
}
Instance of Symbol 131 MovieClip [enemy_mc4] in Frame 36
onClipEvent (load) {
health = 200;
refireInterval = 50;
shotMax = 100;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(76);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay(2);
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
function reset() {
this._y = 1300;
enemySpeed = 2;
this.gotoAndPlay(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._y = this._y - enemySpeed;
if (this._y <= 400) {
this._y = 400;
}
}
}
Instance of Symbol 131 MovieClip [enemy_mc4] in Frame 36
onClipEvent (load) {
health = 200;
refireInterval = 50;
shotMax = 100;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
this.turret_mc.gotoAndPlay(76);
if (shotCount >= shotMax) {
shotCount = 1;
refireInterval = 50;
}
_root.enemyshot_mc2.duplicateMovieClip((("enemyshot_mc2" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc2" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay(2);
_root.e_die = Number(_root.e_die + 1);
death = true;
}
}
}
onClipEvent (load) {
function reset() {
this._y = -400;
enemySpeed = 2;
this.gotoAndPlay(1);
}
if (death == 0) {
reset();
}
}
onClipEvent (enterFrame) {
if (death == 0) {
this._y = this._y + enemySpeed;
if (this._y >= 100) {
this._y = 100;
}
}
}
Instance of Symbol 330 MovieClip in Frame 36
onClipEvent (load) {
Mouse.hide();
gotoAndStop (1);
}
onClipEvent (load) {
i = 0;
}
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_root.cur1 == 1) {
gotoAndStop (55);
}
if (_root.ammo == 0) {
gotoAndPlay (3);
}
if ((i % 2) == 0) {
}
i++;
}
onClipEvent (mouseDown) {
if (_root.cur1 == 1) {
gotoAndStop (55);
}
}
onClipEvent (mouseUp) {
}
onClipEvent (mouseDown) {
}
onClipEvent (enterFrame) {
Mouse.hide();
startDrag (this, true);
}
onClipEvent (mouseDown) {
if (_root.ammo >= 1) {
gotoAndPlay (2);
_root.t_shoot = Number(_root.t_shoot + 1);
}
}
onClipEvent (mouseUp) {
if (_root.ammo >= 1) {
gotoAndPlay (1);
}
}
Instance of Symbol 93 MovieClip [health_bar] "healthbar" in Frame 36
onClipEvent (enterFrame) {
_width = _root.health;
if (_root.health < 0) {
_width = 0;
_root.health = 0;
}
if (_root.health >= 150) {
_width = 150;
_root.health = 150;
}
}
Frame 37
gotoAndPlay (55);
Frame 42
stop();
Frame 55
stop();
_root.cur1 = 1;
Mouse.show();
Frame 57
stop();
_root.cur1 = 1;
Mouse.show();
Frame 60
Instance of Symbol 269 MovieClip "shot_mc" in Frame 60
onClipEvent (load) {
speed = 13;
damageMin = 25;
damageMax = 50;
_alpha = 0;
hit = false;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_root.shot_mc.hit = true;
_root.shot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
_alpha = (_alpha + 15);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else {
i = 1;
while (i <= _root.enemyCount) {
if (this.hitTest(_root["enemy_mc" + i])) {
hitFunc();
_root["enemy_mc" + i].health = _root["enemy_mc" + i].health - (damageMin + random(damageMax - damageMin));
break;
}
i++;
}
}
}
}
Instance of Symbol 273 MovieClip "enemyshot_mc" in Frame 60
onClipEvent (load) {
speed = 13;
damageMin = 5;
damageMax = 25;
hit = false;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_root.enemyshot_mc.hit = true;
_root.enemyshot_mc._visible = false;
hitFunc = function () {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
this.gotoAndPlay("hit");
hit = true;
};
}
onClipEvent (enterFrame) {
if (!hit) {
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
hitFunc();
} else if (this.hitTest(_root.player_mc.actual)) {
hitFunc();
_root.player_mc.health = _root.player_mc.health - (damageMin + random(damageMax - damageMin));
}
}
}
Instance of Symbol 275 MovieClip in Frame 60
onClipEvent (load) {
health = 100;
refireInterval = 15;
shotMax = 3;
_root.enemyCount++;
ID = _root.enemyCount;
_name = ("enemy_mc" + ID);
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
delta_x = _x - _root.player_mc._x;
delta_y = _y - _root.player_mc._y;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
refire++;
if (refire >= refireInterval) {
refire = 0;
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.enemyshot_mc.duplicateMovieClip((("enemyshot_mc" + ID) + "_") + shotCount, -((3 * ID) + shotCount));
with (_root[(("enemyshot_mc" + ID) + "_") + shotCount]) {
_x = this._x;
_y = this._y;
_rotation = this.turret_mc._rotation;
}
}
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
}
}
Instance of Symbol 292 MovieClip "player_mc" in Frame 60
onClipEvent (load) {
healthMax = 100;
speedMax = 7;
manuverSpeed = 5;
accel = 3;
decay = 0.9;
bounce = 0.75;
collideDamage = 0.1;
shotMax = 10;
health = healthMax;
xSpeed = 0;
ySpeed = 0;
speed = 0;
shotCount = 0;
death = false;
}
onClipEvent (enterFrame) {
if (!death) {
speed = speed * decay;
xSpeed = speed * Math.sin(_rotation * (Math.PI/180));
ySpeed = speed * Math.cos(_rotation * (Math.PI/180));
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_root.level_mc.hitTest(this._x, this._y, true)) {
_y = (_y + ySpeed);
_x = (_x - xSpeed);
speed = -(speed * bounce);
}
if (Key.isDown(37)) {
this._rotation = this._rotation - manuverSpeed;
} else if (Key.isDown(39)) {
this._rotation = this._rotation + manuverSpeed;
}
if (Key.isDown(38)) {
if (speed < speedMax) {
speed = speed + accel;
}
} else if (Key.isDown(40)) {
if (speed > (-speedMax)) {
speed = speed - accel;
}
} else if (Key.isDown(67)) {
gotoAndPlay (8);
}
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
this.turret_mc._rotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
this.turret_mc._rotation = this.turret_mc._rotation - this._rotation;
if (health <= 0) {
this.gotoAndPlay("death");
death = true;
}
if (_x < 0) {
_x = 10;
}
if (_x > 640) {
_x = 630;
}
if (_y < 0) {
_y = 10;
}
if (_y > 480) {
_y = 470;
}
}
}
onClipEvent (mouseDown) {
if (!death) {
this.turret_mc.gotoAndPlay("shoot");
shotCount++;
if (shotCount > shotMax) {
shotCount = 1;
}
_root.shot_mc.duplicateMovieClip("shot_mc" + shotCount, shotCount);
_root["shot_mc" + shotCount]._x = this._x;
_root["shot_mc" + shotCount]._y = this._y;
_root["shot_mc" + shotCount]._rotation = this.turret_mc._rotation + this._rotation;
}
}
Instance of Symbol 330 MovieClip in Frame 60
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (load) {
i = 0;
}
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if ((i % 2) == 0) {
_rotation = (_rotation + 5);
}
i++;
}
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (mouseDown) {
}
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Instance of Symbol 78 MovieClip [clouds1] in Frame 60
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = random(550) + 40;
_local1._y = -100;
enemySpeed = 4;
_local1.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y + enemySpeed;
if (this._y > 720) {
reset();
}
}
Instance of Symbol 76 MovieClip [clouds2] in Frame 60
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = random(550) + 40;
_local1._y = -100;
enemySpeed = 3;
_local1.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y + enemySpeed;
if (this._y > 720) {
reset();
}
}
Frame 61
Mouse.show();
Frame 339
gotoAndPlay (20);
Instance of Symbol 21 MovieClip in Symbol 22 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + 4);
if (_y > 60) {
_y = (_y - 128);
}
}
Symbol 36 MovieClip Frame 1
function showFlame() {
frmNum = random(3);
if (frmNum == 0) {
frmNum = "flame1";
} else if (frmNum == 1) {
frmNum = "flame2";
} else if (frmNum == 2) {
frmNum = "flame3";
}
gotoAndPlay(frmNum);
}
showFlame();
Symbol 36 MovieClip Frame 49
showFlame();
Symbol 36 MovieClip Frame 97
showFlame();
Symbol 36 MovieClip Frame 145
showFlame();
Symbol 41 MovieClip [chopper_sound] Frame 1
stop();
Symbol 42 Button [start_game]
on (release) {
gotoAndPlay (20);
}
Symbol 43 Button [start_game]
on (release) {
gotoAndPlay (41);
}
Symbol 44 Button [start_game]
on (release) {
gotoAndPlay (41);
}
Symbol 52 MovieClip [wave2_mov] Frame 90
stop();
Symbol 53 Button [start_game]
on (release) {
gotoAndPlay (41);
}
Symbol 74 MovieClip [fade_lvlcomp] Frame 1
if (_root.e_die >= 13) {
gotoAndPlay (4);
}
if (_root.death == 1) {
gotoAndPlay (81);
}
Symbol 74 MovieClip [fade_lvlcomp] Frame 2
gotoAndPlay (1);
Symbol 74 MovieClip [fade_lvlcomp] Frame 40
_root.acc = int((_root.t_hit / _root.t_shoot) * 100);
_root.bonus = Number(_root.acc * 10);
_root.score = Number(_root.score + _root.bonus);
stop();
_root.cur1 = 1;
var savefile = SharedObject.getLocal("flashgunner");
savefile.data.score = _root.score;
savefile.data.level = 2;
savefile.flush();
Symbol 74 MovieClip [fade_lvlcomp] Frame 80
_root.play();
Symbol 74 MovieClip [fade_lvlcomp] Frame 143
stop();
_root.death = 0;
_root.gotoAndPlay("gameover");
Symbol 81 MovieClip [health_red_glow] Frame 1
stop();
Symbol 81 MovieClip [health_red_glow] Frame 31
gotoAndStop (1);
Symbol 90 MovieClip [graphics_quality] Frame 1
stop();
Symbol 90 MovieClip [graphics_quality] Frame 32
stop();
Symbol 90 MovieClip [graphics_quality] Frame 66
stop();
Symbol 98 MovieClip [ammos_bar] Frame 1
stop();
Symbol 98 MovieClip [ammos_bar] Frame 2
stop();
Symbol 98 MovieClip [ammos_bar] Frame 3
stop();
Symbol 98 MovieClip [ammos_bar] Frame 4
stop();
Symbol 98 MovieClip [ammos_bar] Frame 5
stop();
Symbol 98 MovieClip [ammos_bar] Frame 6
stop();
Symbol 98 MovieClip [ammos_bar] Frame 7
stop();
Symbol 98 MovieClip [ammos_bar] Frame 8
stop();
Symbol 98 MovieClip [ammos_bar] Frame 9
stop();
Symbol 98 MovieClip [ammos_bar] Frame 10
stop();
Symbol 98 MovieClip [ammos_bar] Frame 11
stop();
Instance of Symbol 108 MovieClip in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
if ((i % 2) == 0) {
_rotation = (_rotation + 5);
}
i++;
}
Symbol 114 MovieClip Frame 1
stop();
Instance of Symbol 108 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
if ((i % 2) == 0) {
_rotation = (_rotation + 5);
}
i++;
}
Symbol 115 MovieClip Frame 37
stop();
Symbol 128 MovieClip Frame 9
stop();
Symbol 131 MovieClip [enemy_mc4] Frame 1
stop();
Symbol 131 MovieClip [enemy_mc4] Frame 2
_root.score = Number(_root.score + 500);
death = true;
Symbol 131 MovieClip [enemy_mc4] Frame 60
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 105
gotoAndPlay (1);
Symbol 156 MovieClip [enemy_mc3] Frame 1
stop();
Symbol 156 MovieClip [enemy_mc3] Frame 2
_root.score = Number(_root.score + 200);
Symbol 156 MovieClip [enemy_mc3] Frame 21
stop();
Symbol 159 MovieClip [white_ring_fade] Frame 11
stop();
Symbol 179 Button
on (release) {
Mouse.hide();
_root.play();
}
Symbol 180 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 180 MovieClip Frame 2
gotoAndPlay (1);
Symbol 207 Button
on (release) {
var savefile = SharedObject.getLocal("flashgunner");
if (savefile.data.score == undefined) {
_root.score = 0;
_root.level = 1;
gotoAndPlay ("wave1");
} else {
_root.score = savefile.data.score;
_root.level = savefile.data.level;
if (_root.level == 1) {
gotoAndPlay ("wave1");
} else if (_root.level == 2) {
gotoAndPlay ("wave2");
} else if (_root.level == 3) {
gotoAndPlay ("wave3");
} else {
gotoAndPlay ("wave1");
}
}
}
Symbol 210 Button
on (release) {
gotoAndPlay (2);
}
Symbol 211 Button
on (release) {
play();
}
Symbol 212 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 5
_root.play();
Symbol 216 Button
on (release) {
getURL ("http://www.fungamelinks.com", "_blank");
}
Symbol 219 Button
on (release) {
getURL ("http://www.fungamelinks.com", "_blank");
}
Symbol 222 Button
on (release) {
gotoAndStop (2);
}
Symbol 225 Button
on (release) {
gotoAndStop (3);
}
Symbol 230 Button
on (release) {
gotoAndStop (1);
}
Symbol 241 Button
on (release) {
getURL ("http://www.soundclick.com/killeroftrolls", "_blank");
}
Symbol 256 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 2
stop();
Symbol 256 MovieClip Frame 3
stop();
Symbol 259 Button
on (release) {
getURL ("http://www.fungamelinks.com/freegames.html", "_blank");
}
Symbol 260 MovieClip Frame 37
stop();
Symbol 269 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 11
stop();
this.removeMovieClip();
Symbol 273 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 7
stop();
this.removeMovieClip();
Symbol 275 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 2
_root.score = Number(_root.score + 200);
Symbol 275 MovieClip Frame 21
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 1
stop();
Instance of Symbol 280 MovieClip "cannon_mc" in Symbol 284 MovieClip Frame 1
onClipEvent (mouseDown) {
gotoAndPlay (2);
}
onClipEvent (mouseUp) {
gotoAndPlay (1);
}
Symbol 292 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 14
stop();
_root.death = 1;
Symbol 292 MovieClip Frame 15
this._rotation = 0;
Symbol 292 MovieClip Frame 43
gotoAndStop (1);
_x = 300;
_y = 400;
Symbol 304 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 11
stop();
this.removeMovieClip();
Symbol 307 MovieClip Frame 80
stop();
Symbol 312 MovieClip Frame 1
if (_root.e_die >= 7) {
gotoAndPlay (3);
}
Symbol 312 MovieClip Frame 2
gotoAndPlay (1);
Symbol 312 MovieClip Frame 22
stop();
Symbol 312 MovieClip Frame 24
stop();
Symbol 319 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 403
stop();
Symbol 322 MovieClip Frame 1
if (_root.e_die >= 5) {
gotoAndPlay (3);
}
Symbol 322 MovieClip Frame 2
gotoAndPlay (1);
Symbol 322 MovieClip Frame 22
stop();
Symbol 322 MovieClip Frame 24
stop();
Symbol 328 MovieClip Frame 61
stop();
_root.ammo = 10;
Symbol 330 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 2
stop();
Symbol 330 MovieClip Frame 54
gotoAndStop (1);
Symbol 330 MovieClip Frame 55
stop();
mouse.show();
Symbol 338 MovieClip Frame 1
if (_root.e_die >= 7) {
gotoAndPlay (3);
}
Symbol 338 MovieClip Frame 2
gotoAndPlay (1);
Symbol 338 MovieClip Frame 22
stop();
Symbol 338 MovieClip Frame 24
stop();
Symbol 339 MovieClip Frame 1
if (_root.e_die >= 10) {
gotoAndPlay (3);
}
Symbol 339 MovieClip Frame 2
gotoAndPlay (1);
Symbol 339 MovieClip Frame 22
stop();
Symbol 339 MovieClip Frame 24
stop();
Symbol 353 MovieClip Frame 1
if (_root.e_die >= 13) {
gotoAndPlay (4);
}
if (_root.death == 1) {
gotoAndPlay (81);
}
Symbol 353 MovieClip Frame 2
gotoAndPlay (1);
Symbol 353 MovieClip Frame 40
_root.acc = int((_root.t_hit / _root.t_shoot) * 100);
_root.bonus = Number(_root.acc * 10);
_root.score = Number(_root.score + _root.bonus);
stop();
_root.cur1 = 1;
var savefile = SharedObject.getLocal("flashgunner");
savefile.data.score = _root.score;
savefile.data.level = 3;
savefile.flush();
Symbol 353 MovieClip Frame 80
_root.play();
Symbol 353 MovieClip Frame 143
stop();
_root.death = 0;
_root.gotoAndPlay("gameover");
Symbol 362 MovieClip Frame 91
stop();
Symbol 371 MovieClip Frame 1
stop();
Symbol 371 MovieClip Frame 7
stop();
this.removeMovieClip();
Symbol 382 MovieClip Frame 1
if (_root.e_die >= 15) {
gotoAndPlay (4);
}
if (_root.death == 1) {
gotoAndPlay (81);
}
Symbol 382 MovieClip Frame 2
gotoAndPlay (1);
Symbol 382 MovieClip Frame 40
_root.acc = int((_root.t_hit / _root.t_shoot) * 100);
_root.bonus = Number(_root.acc * 10);
_root.score = Number(_root.score + _root.bonus);
stop();
_root.cur1 = 1;
Symbol 382 MovieClip Frame 80
_root.play();
Symbol 382 MovieClip Frame 143
stop();
_root.death = 0;
_root.gotoAndPlay("gameover");