Frame 2
_root.totalscore = 0;
_root.level1done = 0;
_root.level2done = 0;
_root.level3done = 0;
_root.level4done = 0;
_root.level5done = 0;
_root.recruits = 3;
mouse.show();
stop();
Frame 5
_root.ready = 1;
_root.offsetx1 = 380;
_root.offsety1 = -30;
_root.offsetx2 = 780;
_root.offsety2 = -320;
_root.building1blown = 0;
_root.building2blown = 0;
_root.background1.enemy.gotoAndStop(1);
_root.background1.enemy1.gotoAndStop(1);
_root.background1.enemy2.gotoAndStop(1);
_root.background1.enemy3.gotoAndStop(1);
_root.background1.enemy4.gotoAndStop(1);
_root.background1.enemy5.gotoAndStop(1);
_root.background1.enemy6.gotoAndStop(1);
_root.background1.enemy7.gotoAndStop(1);
_root.background1.enemy8.gotoAndStop(1);
_root.background1.enemy9.gotoAndStop(1);
_root.background1.enemy10.gotoAndStop(1);
_root.background1.enemy11.gotoAndStop(1);
_root.background1.enemy12.gotoAndStop(1);
_root.background1.enemy13.gotoAndStop(1);
_root.background1.enemy14.gotoAndStop(1);
_root.background1.enemy15.gotoAndStop(1);
_root.background1.enemy16.gotoAndStop(1);
_root.background1.enemy17.gotoAndStop(1);
_root.background1.enemy18.gotoAndStop(1);
_root.background1.enemy19.gotoAndStop(1);
_root.background1.enemy20.gotoAndStop(1);
stop();
_root.blood.gotoAndStop(1);
_root.stamina = 100;
_root.shots = 0;
_root.armed = 0;
_root.man.stop();
_root.begin = 0;
_root.score = 0;
_root.weapon = "machinegun";
_root.car1hp = 10;
_root.car2hp = 10;
_root.car3hp = 10;
_root.planted = 0;
_root.building1hp = 3000;
_root.building2hp = 3000;
_root.dead = 0;
_root.dead1 = 0;
_root.dead2 = 0;
_root.dead3 = 0;
_root.dead4 = 0;
_root.dead5 = 0;
_root.dead6 = 0;
_root.dead7 = 0;
_root.dead8 = 0;
_root.dead9 = 0;
_root.dead10 = 0;
_root.dead11 = 0;
_root.dead12 = 0;
_root.dead13 = 0;
_root.dead14 = 0;
_root.dead15 = 0;
_root.dead16 = 0;
_root.dead17 = 0;
_root.dead18 = 0;
_root.dead19 = 0;
_root.dead20 = 0;
_root.killed = 0;
_root.hit = 0;
_root.man.matey.stop();
_root.walking = 0;
_root.autofire = 0;
_root.ammo = 200;
_root.life = 100;
d = 0;
_global.rotMouse = function () {
var _local3 = _root._xmouse - this._x;
var _local1 = _root._ymouse - this._y;
var _local2 = Math.atan2(_local1, _local3);
var ang = ((_local2 / Math.PI) * 180);
return(ang);
};
_global.enemyshoot = function (speed, mc) {
var _local1 = this;
var _local2 = _root;
var _local3 = mc;
if (_local3.hitTest(_local2.stage)) {
ak = new Sound(_local2.stage);
ak.attachSound("ak");
ak.start(0, 1);
d++;
ebullet = _local2.background1.attachMovie("bullet", "be" + d, d);
var angle = Math.atan2(((_local2.man._y - _local2.background1._y) - _local3._y) - 20, ((_local2.man._x - _local2.background1._x) - _local3._x) + 20);
var xdist = (Math.cos(angle) * speed);
var ydist = (Math.sin(angle) * speed);
ebullet.xv = xdist;
ebullet.yv = ydist;
ebullet._x = _local3._x - 15;
ebullet._y = _local3._y + 20;
ebullet._rotation = rotMouse();
ebullet.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._x = _local1._x + _local1.xv;
_local1._y = _local1._y + _local1.yv;
if (_local1.hitTest(_local2.stage)) {
} else {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.man)) {
_local2.man.matey.gotoAndPlay("hurt");
_local2.blood.gotoAndPlay(2);
_local2.life = _local2.life - _local2.difficulty;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman1)) {
_local2.background1.building.snowman1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman2)) {
_local2.background1.building.snowman2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman3)) {
_local2.background1.building.snowman3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman4)) {
_local2.background1.building.snowman4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman5)) {
_local2.background1.building.snowman5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman6)) {
_local2.background1.building.snowman6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree1)) {
_local2.background1.tree.tree1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree2)) {
_local2.background1.tree.tree2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree3)) {
_local2.background1.tree.tree3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree4)) {
_local2.background1.tree.tree4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree5)) {
_local2.background1.tree.tree5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree6)) {
_local2.background1.tree.tree6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree7)) {
_local2.background1.tree.tree7.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree8)) {
_local2.background1.tree.tree8.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree9)) {
_local2.background1.tree.tree9.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree10)) {
_local2.background1.tree.tree10.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree11)) {
_local2.background1.tree.tree11.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree12)) {
_local2.background1.tree.tree12.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree13)) {
_local2.background1.tree.tree13.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree14)) {
_local2.background1.tree.tree14.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree15)) {
_local2.background1.tree.tree15.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree16)) {
_local2.background1.tree.tree16.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree17)) {
_local2.background1.tree.tree17.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree18)) {
_local2.background1.tree.tree18.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree19)) {
_local2.background1.tree.tree19.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree20)) {
_local2.background1.tree.tree20.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree20)) {
_local2.background1.tree.tree20.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.building1)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.building2)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car1)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car2)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car3)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
};
}
};
_global.shoot = function (speed, mc) {
var _local1 = _root;
var _local2 = this;
var _local3 = mc;
d++;
bullet = _local1.attachMovie("bullet", "b" + d, d);
var angle = Math.atan2(_local1._ymouse - _local3._y, _local1._xmouse - _local3._x);
var xdist = (Math.cos(angle) * speed);
var ydist = (Math.sin(angle) * speed);
bullet.xv = xdist;
bullet.yv = ydist;
bullet._x = _local3._x;
bullet._y = _local3._y;
bullet._rotation = rotMouse();
bullet.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._x = _local1._x + _local1.xv;
_local1._y = _local1._y + _local1.yv;
if (_local1.hitTest(_local2.stage)) {
} else {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.enemy)) {
_local2.background1.enemy.play();
if (_local2.dead == 0) {
_local2.dead = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy1)) {
_local2.background1.enemy1.play();
if (_local2.dead1 == 0) {
_local2.dead1 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy2)) {
_local2.background1.enemy2.play();
if (_local2.dead2 == 0) {
_local2.dead2 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy3)) {
_local2.background1.enemy3.play();
if (_local2.dead3 == 0) {
_local2.dead3 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy4)) {
_local2.background1.enemy4.play();
if (_local2.dead4 == 0) {
_local2.dead4 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy5)) {
_local2.background1.enemy5.play();
if (_local2.dead5 == 0) {
_local2.dead5 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy6)) {
_local2.background1.enemy6.play();
if (_local2.dead6 == 0) {
_local2.dead6 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy7)) {
_local2.background1.enemy7.play();
if (_local2.dead7 == 0) {
_local2.dead7 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy8)) {
_local2.background1.enemy8.play();
if (_local2.dead8 == 0) {
_local2.dead8 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy9)) {
_local2.background1.enemy9.play();
if (_local2.dead9 == 0) {
_local2.dead9 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy10)) {
_local2.background1.enemy10.play();
if (_local2.dead10 == 0) {
_local2.dead10 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy11)) {
_local2.background1.enemy11.play();
if (_local2.dead11 == 0) {
_local2.dead11 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy12)) {
_local2.background1.enemy12.play();
if (_local2.dead12 == 0) {
_local2.dead12 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy13)) {
_local2.background1.enemy13.play();
if (_local2.dead13 == 0) {
_local2.dead13 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy14)) {
_local2.background1.enemy14.play();
if (_local2.dead14 == 0) {
_local2.dead14 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy15)) {
_local2.background1.enemy15.play();
if (_local2.dead15 == 0) {
_local2.dead15 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy16)) {
_local2.background1.enemy16.play();
if (_local2.dead16 == 0) {
_local2.dead16 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy17)) {
_local2.background1.enemy17.play();
if (_local2.dead17 == 0) {
_local2.dead17 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy18)) {
_local2.background1.enemy18.play();
if (_local2.dead18 == 0) {
_local2.dead18 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy19)) {
_local2.background1.enemy19.play();
if (_local2.dead19 == 0) {
_local2.dead19 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy20)) {
_local2.background1.enemy20.play();
if (_local2.dead20 == 0) {
_local2.dead20 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.snowman1)) {
_local2.background1.building.snowman1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman2)) {
_local2.background1.building.snowman2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman3)) {
_local2.background1.building.snowman3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman4)) {
_local2.background1.building.snowman4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman5)) {
_local2.background1.building.snowman5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman6)) {
_local2.background1.building.snowman6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree1)) {
_local2.background1.tree.tree1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree2)) {
_local2.background1.tree.tree2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree3)) {
_local2.background1.tree.tree3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree4)) {
_local2.background1.tree.tree4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree5)) {
_local2.background1.tree.tree5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree6)) {
_local2.background1.tree.tree6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree7)) {
_local2.background1.tree.tree7.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree8)) {
_local2.background1.tree.tree8.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree9)) {
_local2.background1.tree.tree9.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree10)) {
_local2.background1.tree.tree10.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree11)) {
_local2.background1.tree.tree11.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree12)) {
_local2.background1.tree.tree12.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree13)) {
_local2.background1.tree.tree13.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree14)) {
_local2.background1.tree.tree14.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree15)) {
_local2.background1.tree.tree15.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree16)) {
_local2.background1.tree.tree16.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree17)) {
_local2.background1.tree.tree17.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree18)) {
_local2.background1.tree.tree18.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree19)) {
_local2.background1.tree.tree19.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree20)) {
_local2.background1.tree.tree20.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car1)) {
if (_local2.car1hp < 1) {
_local2.background1.building.car1.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car1hp = _local2.car1hp - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.car2)) {
if (_local2.car2hp < 1) {
_local2.background1.building.car2.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car2hp = _local2.car2hp - 1;
_local2.background1.building.car2._alpha = _local2.background1.building.car2._alpha - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.car3)) {
if (_local2.car3hp < 1) {
_local2.background1.building.car3.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car3hp = _local2.car3hp - 1;
_local2.background1.building.car3._alpha = _local2.background1.building.car3._alpha - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.building1)) {
if (_local2.autofire == 1) {
if (_local2.building1hp < 1) {
_local2.background1.building.building1.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.building1hp = _local2.building1hp - 1;
}
}
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.building2)) {
if (_local2.autofire == 1) {
if (_local2.building2hp < 1) {
_local2.background1.building.building2.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.building2hp = _local2.building2hp - 1;
}
}
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
};
};
_global.shoot1 = function (speed, mc) {
var _local1 = _root;
var _local2 = this;
var _local3 = mc;
d++;
bullet = _local1.attachMovie("bullet", "b" + d, d);
var angle = Math.atan2(_local1._ymouse - _local3._y, _local1._xmouse - _local3._x);
var xdist = (Math.cos(angle) * speed);
var ydist = (Math.sin(angle) * speed);
bullet.xv = xdist;
bullet.yv = ydist;
bullet._x = _local3._x;
bullet._y = _local3._y;
bullet._rotation = rotMouse();
bullet.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._x = _local1._x + (_local1.xv + 2);
_local1._y = _local1._y + (_local1.yv + 2);
if (_local1.hitTest(_local2.stage)) {
} else {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.enemy)) {
_local2.background1.enemy.play();
if (_local2.dead == 0) {
_local2.dead = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy1)) {
_local2.background1.enemy1.play();
if (_local2.dead1 == 0) {
_local2.dead1 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy2)) {
_local2.background1.enemy2.play();
if (_local2.dead2 == 0) {
_local2.dead2 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy3)) {
_local2.background1.enemy3.play();
if (_local2.dead3 == 0) {
_local2.dead3 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy4)) {
_local2.background1.enemy4.play();
if (_local2.dead4 == 0) {
_local2.dead4 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy5)) {
_local2.background1.enemy5.play();
if (_local2.dead5 == 0) {
_local2.dead5 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy6)) {
_local2.background1.enemy6.play();
if (_local2.dead6 == 0) {
_local2.dead6 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy7)) {
_local2.background1.enemy7.play();
if (_local2.dead7 == 0) {
_local2.dead7 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy8)) {
_local2.background1.enemy8.play();
if (_local2.dead8 == 0) {
_local2.dead8 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy9)) {
_local2.background1.enemy9.play();
if (_local2.dead9 == 0) {
_local2.dead9 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy10)) {
_local2.background1.enemy10.play();
if (_local2.dead10 == 0) {
_local2.dead10 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy11)) {
_local2.background1.enemy11.play();
if (_local2.dead11 == 0) {
_local2.dead11 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy12)) {
_local2.background1.enemy12.play();
if (_local2.dead12 == 0) {
_local2.dead12 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy13)) {
_local2.background1.enemy13.play();
if (_local2.dead13 == 0) {
_local2.dead13 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy14)) {
_local2.background1.enemy14.play();
if (_local2.dead14 == 0) {
_local2.dead14 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy15)) {
_local2.background1.enemy15.play();
if (_local2.dead15 == 0) {
_local2.dead15 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy16)) {
_local2.background1.enemy16.play();
if (_local2.dead16 == 0) {
_local2.dead16 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy17)) {
_local2.background1.enemy17.play();
if (_local2.dead17 == 0) {
_local2.dead17 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy18)) {
_local2.background1.enemy18.play();
if (_local2.dead18 == 0) {
_local2.dead18 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy19)) {
_local2.background1.enemy19.play();
if (_local2.dead19 == 0) {
_local2.dead19 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy20)) {
_local2.background1.enemy20.play();
if (_local2.dead20 == 0) {
_local2.dead20 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.snowman1)) {
_local2.background1.building.snowman1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman2)) {
_local2.background1.building.snowman2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman3)) {
_local2.background1.building.snowman3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman4)) {
_local2.background1.building.snowman4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman5)) {
_local2.background1.building.snowman5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman6)) {
_local2.background1.building.snowman6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree1)) {
_local2.background1.tree.tree1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree2)) {
_local2.background1.tree.tree2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree3)) {
_local2.background1.tree.tree3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree4)) {
_local2.background1.tree.tree4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree5)) {
_local2.background1.tree.tree5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree6)) {
_local2.background1.tree.tree6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree7)) {
_local2.background1.tree.tree7.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree8)) {
_local2.background1.tree.tree8.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree9)) {
_local2.background1.tree.tree9.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree10)) {
_local2.background1.tree.tree10.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree11)) {
_local2.background1.tree.tree11.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree12)) {
_local2.background1.tree.tree12.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree13)) {
_local2.background1.tree.tree13.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree14)) {
_local2.background1.tree.tree14.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree15)) {
_local2.background1.tree.tree15.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree16)) {
_local2.background1.tree.tree16.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree17)) {
_local2.background1.tree.tree17.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree18)) {
_local2.background1.tree.tree18.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree19)) {
_local2.background1.tree.tree19.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree20)) {
_local2.background1.tree.tree20.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car1)) {
if (_local2.car1hp < 1) {
_local2.background1.building.car1.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car1hp = _local2.car1hp - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.car2)) {
if (_local2.car2hp < 1) {
_local2.background1.building.car2.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car2hp = _local2.car2hp - 1;
_local2.background1.building.car2._alpha = _local2.background1.building.car2._alpha - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.car3)) {
if (_local2.car3hp < 1) {
_local2.background1.building.car3.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car3hp = _local2.car3hp - 1;
_local2.background1.building.car3._alpha = _local2.background1.building.car3._alpha - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.building1)) {
if (_local2.autofire == 1) {
if (_local2.building1hp < 1) {
_local2.background1.building.building1.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.building1hp = _local2.building1hp - 1;
}
}
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.building2)) {
if (_local2.autofire == 1) {
if (_local2.building2hp < 1) {
_local2.background1.building.building2.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.building2hp = _local2.building2hp - 1;
}
}
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
};
};
_global.shoot2 = function (speed, mc) {
var _local1 = _root;
var _local2 = this;
var _local3 = mc;
d++;
bullet = _local1.attachMovie("bullet", "b" + d, d);
var angle = Math.atan2(_local1._ymouse - _local3._y, _local1._xmouse - _local3._x);
var xdist = (Math.cos(angle) * speed);
var ydist = (Math.sin(angle) * speed);
bullet.xv = xdist;
bullet.yv = ydist;
bullet._x = _local3._x;
bullet._y = _local3._y;
bullet._rotation = rotMouse();
bullet.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._x = _local1._x + (_local1.xv - 2);
_local1._y = _local1._y + (_local1.yv - 2);
if (_local1.hitTest(_local2.stage)) {
} else {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.enemy)) {
_local2.background1.enemy.play();
if (_local2.dead == 0) {
_local2.dead = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy1)) {
_local2.background1.enemy1.play();
if (_local2.dead1 == 0) {
_local2.dead1 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy2)) {
_local2.background1.enemy2.play();
if (_local2.dead2 == 0) {
_local2.dead2 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy3)) {
_local2.background1.enemy3.play();
if (_local2.dead3 == 0) {
_local2.dead3 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy4)) {
_local2.background1.enemy4.play();
if (_local2.dead4 == 0) {
_local2.dead4 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy5)) {
_local2.background1.enemy5.play();
if (_local2.dead5 == 0) {
_local2.dead5 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy6)) {
_local2.background1.enemy6.play();
if (_local2.dead6 == 0) {
_local2.dead6 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy7)) {
_local2.background1.enemy7.play();
if (_local2.dead7 == 0) {
_local2.dead7 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy8)) {
_local2.background1.enemy8.play();
if (_local2.dead8 == 0) {
_local2.dead8 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy9)) {
_local2.background1.enemy9.play();
if (_local2.dead9 == 0) {
_local2.dead9 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy10)) {
_local2.background1.enemy10.play();
if (_local2.dead10 == 0) {
_local2.dead10 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy11)) {
_local2.background1.enemy11.play();
if (_local2.dead11 == 0) {
_local2.dead11 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy12)) {
_local2.background1.enemy12.play();
if (_local2.dead12 == 0) {
_local2.dead12 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy13)) {
_local2.background1.enemy13.play();
if (_local2.dead13 == 0) {
_local2.dead13 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy14)) {
_local2.background1.enemy14.play();
if (_local2.dead14 == 0) {
_local2.dead14 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy15)) {
_local2.background1.enemy15.play();
if (_local2.dead15 == 0) {
_local2.dead15 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy16)) {
_local2.background1.enemy16.play();
if (_local2.dead16 == 0) {
_local2.dead16 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy17)) {
_local2.background1.enemy17.play();
if (_local2.dead17 == 0) {
_local2.dead17 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy18)) {
_local2.background1.enemy18.play();
if (_local2.dead18 == 0) {
_local2.dead18 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy19)) {
_local2.background1.enemy19.play();
if (_local2.dead19 == 0) {
_local2.dead19 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy20)) {
_local2.background1.enemy20.play();
if (_local2.dead20 == 0) {
_local2.dead20 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.snowman1)) {
_local2.background1.building.snowman1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman2)) {
_local2.background1.building.snowman2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman3)) {
_local2.background1.building.snowman3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman4)) {
_local2.background1.building.snowman4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman5)) {
_local2.background1.building.snowman5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman6)) {
_local2.background1.building.snowman6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree1)) {
_local2.background1.tree.tree1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree2)) {
_local2.background1.tree.tree2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree3)) {
_local2.background1.tree.tree3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree4)) {
_local2.background1.tree.tree4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree5)) {
_local2.background1.tree.tree5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree6)) {
_local2.background1.tree.tree6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree7)) {
_local2.background1.tree.tree7.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree8)) {
_local2.background1.tree.tree8.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree9)) {
_local2.background1.tree.tree9.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree10)) {
_local2.background1.tree.tree10.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree11)) {
_local2.background1.tree.tree11.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree12)) {
_local2.background1.tree.tree12.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree13)) {
_local2.background1.tree.tree13.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree14)) {
_local2.background1.tree.tree14.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree15)) {
_local2.background1.tree.tree15.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree16)) {
_local2.background1.tree.tree16.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree17)) {
_local2.background1.tree.tree17.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree18)) {
_local2.background1.tree.tree18.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree19)) {
_local2.background1.tree.tree19.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree20)) {
_local2.background1.tree.tree20.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car1)) {
if (_local2.car1hp < 1) {
_local2.background1.building.car1.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car1hp = _local2.car1hp - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.car2)) {
if (_local2.car2hp < 1) {
_local2.background1.building.car2.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car2hp = _local2.car2hp - 1;
_local2.background1.building.car2._alpha = _local2.background1.building.car2._alpha - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.car3)) {
if (_local2.car3hp < 1) {
_local2.background1.building.car3.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car3hp = _local2.car3hp - 1;
_local2.background1.building.car3._alpha = _local2.background1.building.car3._alpha - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.building1)) {
if (_local2.autofire == 1) {
if (_local2.building1hp < 1) {
_local2.background1.building.building1.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.building1hp = _local2.building1hp - 1;
}
}
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.building2)) {
if (_local2.autofire == 1) {
if (_local2.building2hp < 1) {
_local2.background1.building.building2.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.building2hp = _local2.building2hp - 1;
}
}
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
};
};
Instance of Symbol 408 MovieClip "man" in Frame 5
onClipEvent (enterFrame) {
if (((((((((((((((((((((_root.dead == 1) and (_root.dead1 == 1)) and (_root.dead2 == 1)) and (_root.dead3 == 1)) and (_root.dead4 == 1)) and (_root.dead5 == 1)) and (_root.dead6 == 1)) and (_root.dead7 == 1)) and (_root.dead8 == 1)) and (_root.dead9 == 1)) and (_root.dead10 == 1)) and (_root.dead11 == 1)) and (_root.dead12 == 1)) and (_root.dead13 == 1)) and (_root.dead14 == 1)) and (_root.dead15 == 1)) and (_root.dead16 == 1)) and (_root.dead17 == 1)) and (_root.dead18 == 1)) and (_root.dead19 == 1)) and (_root.dead20 == 1)) {
_root.instructions._visible = 1;
}
if (((((((((((((((((((((((_root.dead == 1) and (_root.dead1 == 1)) and (_root.dead2 == 1)) and (_root.dead3 == 1)) and (_root.dead4 == 1)) and (_root.dead5 == 1)) and (_root.dead6 == 1)) and (_root.dead7 == 1)) and (_root.dead8 == 1)) and (_root.dead9 == 1)) and (_root.dead10 == 1)) and (_root.dead11 == 1)) and (_root.dead12 == 1)) and (_root.dead13 == 1)) and (_root.dead14 == 1)) and (_root.dead15 == 1)) and (_root.dead16 == 1)) and (_root.dead17 == 1)) and (_root.dead18 == 1)) and (_root.dead19 == 1)) and (_root.dead20 == 1)) and (_root.building1blown == 1)) and (_root.building2blown == 1)) {
_root.level1done = 1;
_root.instructions._visible = 0;
_root.gotoAndPlay("endlevel");
}
if (_root.life < 1) {
_root.recruits = _root.recruits - 1;
_root.gotoAndPlay("endlevel");
}
var dx = this._xmouse;
var dy = this._ymouse;
angle = Math.atan2(dy, dx);
frameNbr = (Math.round(8 + ((4 * angle) / Math.PI)) % 8) + 1;
this.gotoAndStop(frameNbr);
myBounce = 6;
if (_root.background1.building.hitTest(getBounds(_root).xMax, _y, true)) {
_root.background1._x = _root.background1._x + myBounce;
}
if (_root.background1.building.hitTest(getBounds(_root).xMin, _y, true)) {
_root.background1._x = _root.background1._x - myBounce;
}
if (_root.background1.building.hitTest(_x, getBounds(_root).yMax, true)) {
_root.background1._y = _root.background1._y + myBounce;
}
if (_root.background1.building.hitTest(_x, getBounds(_root).yMin, true)) {
_root.background1._y = _root.background1._y - myBounce;
}
if (_root.background1.tree.hitTest(getBounds(_root).xMax, _y, true)) {
_root.background1._x = _root.background1._x + myBounce;
}
if (_root.background1.tree.hitTest(getBounds(_root).xMin, _y, true)) {
_root.background1._x = _root.background1._x - myBounce;
}
if (_root.background1.tree.hitTest(_x, getBounds(_root).yMax, true)) {
_root.background1._y = _root.background1._y + myBounce;
}
if (_root.background1.tree.hitTest(_x, getBounds(_root).yMin, true)) {
_root.background1._y = _root.background1._y - myBounce;
}
if (_root.background1.ammocrate.hitTest(getBounds(_root).xMax, _y, true)) {
_root.ammo = _root.ammo + 200;
_root.background1.ammocrate._x = -400;
}
if (_root.background1.ammocrate.hitTest(getBounds(_root).xMin, _y, true)) {
_root.ammo = _root.ammo + 200;
_root.background1.ammocrate._x = -400;
}
if (_root.background1.ammocrate.hitTest(_x, getBounds(_root).yMax, true)) {
_root.ammo = _root.ammo + 200;
_root.background1.ammocrate._x = -400;
}
if (_root.background1.ammocrate.hitTest(_x, getBounds(_root).yMin, true)) {
_root.ammo = _root.ammo + 200;
_root.background1.ammocrate._x = -400;
}
}
onClipEvent (mouseDown) {
function wait() {
_root.ready = 1;
clearInterval(myTimer);
}
if (_root.ready == 1) {
_root.man.matey.gotoAndPlay("firing");
if (_root.autofire == 0) {
if (_root.ammo > 0) {
autofiresound = new Sound(_root);
autofiresound.attachSound("shotgun");
autofiresound.start(0, 1);
shoot(35, this);
shoot1(35, this);
shoot2(35, this);
myTimer = setInterval(wait, 1000);
_root.ready = 0;
_root.ammo = _root.ammo - 2;
_root.autofire = 1;
}
}
}
}
onClipEvent (mouseUp) {
_root.autofire = 0;
}
Instance of Symbol 411 MovieClip "instructions" in Frame 5
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 426 MovieClip "sight" in Frame 5
onClipEvent (keyUp) {
_root.tempspeed = 1.5;
}
onClipEvent (load) {
speed = 3;
_root.tempspeed = 1.5;
}
onClipEvent (keyUp) {
_root.walking = 0;
}
onClipEvent (enterFrame) {
if (_root.autofire == 1) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(21);
}
if (key.isdown(16)) {
if (_root.walking == 1) {
run = 1;
}
}
if (run == 1) {
if (_root.stamina > 0) {
_root.stamina = _root.stamina - 3;
}
if (_root.stamina >= 10) {
speed = 5;
} else {
speed = 3;
}
}
if (_root.stamina <= 99) {
_root.stamina = _root.stamina + 1;
}
this._x = _root._xmouse;
this._y = _root._ymouse;
Mouse.hide();
if (key.isdown(68) or key.isdown(39)) {
_root.begin = 1;
_root.background1._x = _root.background1._x - _root.tempspeed;
_root.man.matey.play();
_root.snowing._rotation = 20;
_root.walking = 1;
if (_root.tempspeed < speed) {
_root.tempspeed = _root.tempspeed + 0.5;
}
}
if (key.isdown(65) or key.isdown(37)) {
_root.background1._x = _root.background1._x + _root.tempspeed;
_root.man.matey.play();
_root.snowing._rotation = 330;
_root.walking = 1;
if (_root.tempspeed < speed) {
_root.tempspeed = _root.tempspeed + 0.5;
}
}
if (key.isdown(87) or key.isdown(38)) {
_root.background1._y = _root.background1._y + _root.tempspeed;
_root.man.matey.play();
_root.walking = 1;
if (_root.tempspeed < speed) {
_root.tempspeed = _root.tempspeed + 0.5;
}
}
if (key.isdown(32)) {
if (_root.weapon == "c4") {
if (_root.man.hitTest(_root.background1.building.building1)) {
_root.planted = 1;
trace("plant zone");
}
if (_root.man.hitTest(_root.background1.building.building2)) {
_root.planted = 1;
trace("plant zone2");
}
} else {
_root.weapon = "c4";
}
}
if (key.isdown(83) or key.isdown(40)) {
_root.background1._y = _root.background1._y - _root.tempspeed;
_root.man.matey.play();
_root.walking = 1;
if (_root.tempspeed < speed) {
_root.tempspeed = _root.tempspeed + 0.5;
}
}
}
on (keyPress "e") {
if (_root.weapon == "c4") {
if (_root.man.hitTest(_root.background1.building.building1)) {
_root.planted = 1;
trace("plant zone");
}
if (_root.man.hitTest(_root.background1.building.building2)) {
_root.planted = 1;
trace("plant zone2");
}
} else {
_root.weapon = "c4";
}
}
on (keyPress "E") {
if (_root.weapon == "c4") {
if (_root.man.hitTest(_root.background1.building.building1)) {
_root.planted = 1;
trace("plant zone");
}
if (_root.man.hitTest(_root.background1.building.building2)) {
_root.planted = 1;
trace("plant zone2");
}
} else {
_root.weapon = "c4";
}
}
onClipEvent (keyUp) {
run = 0;
speed = 3;
_root.man.matey.gotoAndStop(1);
if (_root.armed == 0) {
_root.planted = 0;
}
}
onClipEvent (keyDown) {
trace(Key.getCode());
}
Instance of Symbol 432 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.weapon == "c4") {
if (_root.armed == 0) {
this._x = _root.man._x + 13;
this._y = _root.man._y + 7;
} else {
if (_root.buildingcheck == 1) {
this._x = _root.background1._x + _root.offsetx1;
this._y = _root.background1._y + _root.offsety1;
_root.building1blown = 1;
}
if (_root.buildingcheck == 2) {
this._x = _root.background1._x + _root.offsetx2;
this._y = _root.background1._y + _root.offsety2;
_root.building2blown = 1;
}
}
} else {
this._x = -178.3;
this._y = 73;
}
if (_root.planted == 1) {
if (_root.armed == 1) {
} else {
this.play();
}
} else {
gotoAndStop (1);
}
}
Frame 6
_root.offsetx1 = 390;
_root.offsety1 = -30;
_root.offsetx2 = 790;
_root.offsety2 = -320;
_root.building1blown = 0;
_root.building2blown = 0;
_root.background1.enemy.gotoAndStop(1);
_root.background1.enemy1.gotoAndStop(1);
_root.background1.enemy2.gotoAndStop(1);
_root.background1.enemy3.gotoAndStop(1);
_root.background1.enemy4.gotoAndStop(1);
_root.background1.enemy5.gotoAndStop(1);
_root.background1.enemy6.gotoAndStop(1);
_root.background1.enemy7.gotoAndStop(1);
_root.background1.enemy8.gotoAndStop(1);
_root.background1.enemy9.gotoAndStop(1);
_root.background1.enemy10.gotoAndStop(1);
_root.background1.enemy11.gotoAndStop(1);
_root.background1.enemy12.gotoAndStop(1);
_root.background1.enemy13.gotoAndStop(1);
_root.background1.enemy14.gotoAndStop(1);
_root.background1.enemy15.gotoAndStop(1);
_root.background1.enemy16.gotoAndStop(1);
_root.background1.enemy17.gotoAndStop(1);
_root.background1.enemy18.gotoAndStop(1);
_root.background1.enemy19.gotoAndStop(1);
_root.background1.enemy20.gotoAndStop(1);
stop();
_root.blood.gotoAndStop(1);
_root.stamina = 100;
_root.shots = 0;
_root.armed = 0;
_root.man.stop();
_root.begin = 0;
_root.score = 0;
_root.weapon = "machinegun";
_root.car1hp = 10;
_root.car2hp = 10;
_root.car3hp = 10;
_root.planted = 0;
_root.building1hp = 3000;
_root.building2hp = 3000;
_root.dead = 0;
_root.dead1 = 0;
_root.dead2 = 0;
_root.dead3 = 0;
_root.dead4 = 0;
_root.dead5 = 0;
_root.dead6 = 0;
_root.dead7 = 0;
_root.dead8 = 0;
_root.dead9 = 0;
_root.dead10 = 0;
_root.dead11 = 0;
_root.dead12 = 0;
_root.dead13 = 0;
_root.dead14 = 0;
_root.dead15 = 0;
_root.dead16 = 0;
_root.dead17 = 0;
_root.dead18 = 0;
_root.dead19 = 0;
_root.dead20 = 0;
_root.killed = 0;
_root.hit = 0;
_root.man.matey.stop();
_root.walking = 0;
_root.autofire = 0;
_root.ammo = 1000;
_root.life = 100;
d = 0;
_global.rotMouse = function () {
var _local3 = _root._xmouse - this._x;
var _local1 = _root._ymouse - this._y;
var _local2 = Math.atan2(_local1, _local3);
var ang = ((_local2 / Math.PI) * 180);
return(ang);
};
_global.enemyshoot = function (speed, mc) {
var _local1 = this;
var _local2 = _root;
var _local3 = mc;
if (_local3.hitTest(_local2.stage)) {
ak = new Sound(_local2.stage);
ak.attachSound("ak");
ak.start(0, 1);
d++;
ebullet = _local2.background1.attachMovie("bullet", "be" + d, d);
var angle = Math.atan2(((_local2.man._y - _local2.background1._y) - _local3._y) - 20, ((_local2.man._x - _local2.background1._x) - _local3._x) + 20);
var xdist = (Math.cos(angle) * speed);
var ydist = (Math.sin(angle) * speed);
ebullet.xv = xdist;
ebullet.yv = ydist;
ebullet._x = _local3._x - 15;
ebullet._y = _local3._y + 20;
ebullet._rotation = rotMouse();
ebullet.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._x = _local1._x + _local1.xv;
_local1._y = _local1._y + _local1.yv;
if (_local1.hitTest(_local2.stage)) {
} else {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.man)) {
_local2.man.matey.GotoAndPlay("hurt");
_local2.blood.gotoAndPlay(2);
_local2.life = _local2.life - _local2.difficulty;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman1)) {
_local2.background1.building.snowman1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman2)) {
_local2.background1.building.snowman2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman3)) {
_local2.background1.building.snowman3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman4)) {
_local2.background1.building.snowman4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman5)) {
_local2.background1.building.snowman5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman6)) {
_local2.background1.building.snowman6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree1)) {
_local2.background1.tree.tree1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree2)) {
_local2.background1.tree.tree2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree3)) {
_local2.background1.tree.tree3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree4)) {
_local2.background1.tree.tree4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree5)) {
_local2.background1.tree.tree5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree6)) {
_local2.background1.tree.tree6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree7)) {
_local2.background1.tree.tree7.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree8)) {
_local2.background1.tree.tree8.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree9)) {
_local2.background1.tree.tree9.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree10)) {
_local2.background1.tree.tree10.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree11)) {
_local2.background1.tree.tree11.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree12)) {
_local2.background1.tree.tree12.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree13)) {
_local2.background1.tree.tree13.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree14)) {
_local2.background1.tree.tree14.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree15)) {
_local2.background1.tree.tree15.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree16)) {
_local2.background1.tree.tree16.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree17)) {
_local2.background1.tree.tree17.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree18)) {
_local2.background1.tree.tree18.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree19)) {
_local2.background1.tree.tree19.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree20)) {
_local2.background1.tree.tree20.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree20)) {
_local2.background1.tree.tree20.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.building1)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.building2)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car1)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car2)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car3)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
};
}
};
_global.shoot = function (speed, mc) {
var _local1 = _root;
var _local2 = this;
var _local3 = mc;
d++;
bullet = _local1.attachMovie("bullet", "b" + d, d);
var angle = Math.atan2(_local1._ymouse - _local3._y, _local1._xmouse - _local3._x);
var xdist = (Math.cos(angle) * speed);
var ydist = (Math.sin(angle) * speed);
bullet.xv = xdist;
bullet.yv = ydist;
bullet._x = _local3._x;
bullet._y = _local3._y;
bullet._rotation = rotMouse();
bullet.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._x = _local1._x + _local1.xv;
_local1._y = _local1._y + _local1.yv;
if (_local1.hitTest(_local2.stage)) {
} else {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.enemy)) {
_local2.background1.enemy.play();
if (_local2.dead == 0) {
_local2.dead = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy1)) {
_local2.background1.enemy1.play();
if (_local2.dead1 == 0) {
_local2.dead1 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy2)) {
_local2.background1.enemy2.play();
if (_local2.dead2 == 0) {
_local2.dead2 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy3)) {
_local2.background1.enemy3.play();
if (_local2.dead3 == 0) {
_local2.dead3 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy4)) {
_local2.background1.enemy4.play();
if (_local2.dead4 == 0) {
_local2.dead4 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy5)) {
_local2.background1.enemy5.play();
if (_local2.dead5 == 0) {
_local2.dead5 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy6)) {
_local2.background1.enemy6.play();
if (_local2.dead6 == 0) {
_local2.dead6 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy7)) {
_local2.background1.enemy7.play();
if (_local2.dead7 == 0) {
_local2.dead7 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy8)) {
_local2.background1.enemy8.play();
if (_local2.dead8 == 0) {
_local2.dead8 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy9)) {
_local2.background1.enemy9.play();
if (_local2.dead9 == 0) {
_local2.dead9 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy10)) {
_local2.background1.enemy10.play();
if (_local2.dead10 == 0) {
_local2.dead10 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy11)) {
_local2.background1.enemy11.play();
if (_local2.dead11 == 0) {
_local2.dead11 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy12)) {
_local2.background1.enemy12.play();
if (_local2.dead12 == 0) {
_local2.dead12 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy13)) {
_local2.background1.enemy13.play();
if (_local2.dead13 == 0) {
_local2.dead13 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy14)) {
_local2.background1.enemy14.play();
if (_local2.dead14 == 0) {
_local2.dead14 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy15)) {
_local2.background1.enemy15.play();
if (_local2.dead15 == 0) {
_local2.dead15 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy16)) {
_local2.background1.enemy16.play();
if (_local2.dead16 == 0) {
_local2.dead16 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy17)) {
_local2.background1.enemy17.play();
if (_local2.dead17 == 0) {
_local2.dead17 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy18)) {
_local2.background1.enemy18.play();
if (_local2.dead18 == 0) {
_local2.dead18 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy19)) {
_local2.background1.enemy19.play();
if (_local2.dead19 == 0) {
_local2.dead19 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy20)) {
_local2.background1.enemy20.play();
if (_local2.dead20 == 0) {
_local2.dead20 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.snowman1)) {
_local2.background1.building.snowman1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman2)) {
_local2.background1.building.snowman2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman3)) {
_local2.background1.building.snowman3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman4)) {
_local2.background1.building.snowman4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman5)) {
_local2.background1.building.snowman5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman6)) {
_local2.background1.building.snowman6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree1)) {
_local2.background1.tree.tree1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree2)) {
_local2.background1.tree.tree2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree3)) {
_local2.background1.tree.tree3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree4)) {
_local2.background1.tree.tree4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree5)) {
_local2.background1.tree.tree5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree6)) {
_local2.background1.tree.tree6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree7)) {
_local2.background1.tree.tree7.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree8)) {
_local2.background1.tree.tree8.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree9)) {
_local2.background1.tree.tree9.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree10)) {
_local2.background1.tree.tree10.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree11)) {
_local2.background1.tree.tree11.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree12)) {
_local2.background1.tree.tree12.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree13)) {
_local2.background1.tree.tree13.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree14)) {
_local2.background1.tree.tree14.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree15)) {
_local2.background1.tree.tree15.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree16)) {
_local2.background1.tree.tree16.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree17)) {
_local2.background1.tree.tree17.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree18)) {
_local2.background1.tree.tree18.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree19)) {
_local2.background1.tree.tree19.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree20)) {
_local2.background1.tree.tree20.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car1)) {
if (_local2.car1hp < 1) {
_local2.background1.building.car1.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car1hp = _local2.car1hp - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.car2)) {
if (_local2.car2hp < 1) {
_local2.background1.building.car2.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car2hp = _local2.car2hp - 1;
_local2.background1.building.car2._alpha = _local2.background1.building.car2._alpha - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.car3)) {
if (_local2.car3hp < 1) {
_local2.background1.building.car3.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car3hp = _local2.car3hp - 1;
_local2.background1.building.car3._alpha = _local2.background1.building.car3._alpha - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.building1)) {
if (_local2.autofire == 1) {
if (_local2.building1hp < 1) {
_local2.background1.building.building1.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.building1hp = _local2.building1hp - 1;
}
}
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.building2)) {
if (_local2.autofire == 1) {
if (_local2.building2hp < 1) {
_local2.background1.building.building2.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.building2hp = _local2.building2hp - 1;
}
}
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
};
};
Instance of Symbol 408 MovieClip "man" in Frame 6
onClipEvent (enterFrame) {
if (((((((((((((((((((((_root.dead == 1) and (_root.dead1 == 1)) and (_root.dead2 == 1)) and (_root.dead3 == 1)) and (_root.dead4 == 1)) and (_root.dead5 == 1)) and (_root.dead6 == 1)) and (_root.dead7 == 1)) and (_root.dead8 == 1)) and (_root.dead9 == 1)) and (_root.dead10 == 1)) and (_root.dead11 == 1)) and (_root.dead12 == 1)) and (_root.dead13 == 1)) and (_root.dead14 == 1)) and (_root.dead15 == 1)) and (_root.dead16 == 1)) and (_root.dead17 == 1)) and (_root.dead18 == 1)) and (_root.dead19 == 1)) and (_root.dead20 == 1)) {
_root.instructions._visible = 1;
}
if (((((((((((((((((((((((_root.dead == 1) and (_root.dead1 == 1)) and (_root.dead2 == 1)) and (_root.dead3 == 1)) and (_root.dead4 == 1)) and (_root.dead5 == 1)) and (_root.dead6 == 1)) and (_root.dead7 == 1)) and (_root.dead8 == 1)) and (_root.dead9 == 1)) and (_root.dead10 == 1)) and (_root.dead11 == 1)) and (_root.dead12 == 1)) and (_root.dead13 == 1)) and (_root.dead14 == 1)) and (_root.dead15 == 1)) and (_root.dead16 == 1)) and (_root.dead17 == 1)) and (_root.dead18 == 1)) and (_root.dead19 == 1)) and (_root.dead20 == 1)) and (_root.building1blown == 1)) and (_root.building2blown == 1)) {
_root.level4done = 1;
_root.instructions._visible = 0;
_root.gotoAndPlay("endlevel");
}
if (_root.life < 1) {
_root.recruits = _root.recruits - 1;
_root.gotoAndPlay("endlevel");
}
var dx = this._xmouse;
var dy = this._ymouse;
angle = Math.atan2(dy, dx);
frameNbr = (Math.round(8 + ((4 * angle) / Math.PI)) % 8) + 1;
this.gotoAndStop(frameNbr);
myBounce = 5;
if (_root.background1.building.hitTest(getBounds(_root).xMax, _y, true)) {
_root.background1._x = _root.background1._x + myBounce;
}
if (_root.background1.building.hitTest(getBounds(_root).xMin, _y, true)) {
_root.background1._x = _root.background1._x - myBounce;
}
if (_root.background1.building.hitTest(_x, getBounds(_root).yMax, true)) {
_root.background1._y = _root.background1._y + myBounce;
}
if (_root.background1.building.hitTest(_x, getBounds(_root).yMin, true)) {
_root.background1._y = _root.background1._y - myBounce;
}
if (_root.background1.tree.hitTest(getBounds(_root).xMax, _y, true)) {
_root.background1._x = _root.background1._x + myBounce;
}
if (_root.background1.tree.hitTest(getBounds(_root).xMin, _y, true)) {
_root.background1._x = _root.background1._x - myBounce;
}
if (_root.background1.tree.hitTest(_x, getBounds(_root).yMax, true)) {
_root.background1._y = _root.background1._y + myBounce;
}
if (_root.background1.tree.hitTest(_x, getBounds(_root).yMin, true)) {
_root.background1._y = _root.background1._y - myBounce;
}
if (_root.background1.ammocrate.hitTest(getBounds(_root).xMax, _y, true)) {
_root.ammo = _root.ammo + 200;
_root.background1.ammocrate._x = -400;
}
if (_root.background1.ammocrate.hitTest(getBounds(_root).xMin, _y, true)) {
_root.ammo = _root.ammo + 200;
_root.background1.ammocrate._x = -400;
}
if (_root.background1.ammocrate.hitTest(_x, getBounds(_root).yMax, true)) {
_root.ammo = _root.ammo + 200;
_root.background1.ammocrate._x = -400;
}
if (_root.background1.ammocrate.hitTest(_x, getBounds(_root).yMin, true)) {
_root.ammo = _root.ammo + 200;
_root.background1.ammocrate._x = -400;
}
if (_root.autofire == 1) {
this.matey.gotoAndPlay("firing");
if (_root.ammo > 0) {
autofiresound = new Sound(_root);
autofiresound.attachSound("firing2");
autofiresound.start(0, 1);
shoot(35, this);
_root.ammo = _root.ammo - 1;
_root.shots = _root.shots + 1;
}
}
}
onClipEvent (mouseDown) {
_root.man.matey.gotoAndPlay("firing");
if (_root.autofire == 0) {
if (_root.ammo > 0) {
_root.autofire = 1;
}
}
}
onClipEvent (mouseUp) {
_root.autofire = 0;
}
Frame 7
_root.ready = 1;
_root.offsetx1 = 1220;
_root.offsety1 = -1000;
_root.offsetx2 = 330;
_root.offsety2 = -1780;
_root.building1hp = 3000;
_root.building2hp = 3000;
_root.building1blown = 0;
_root.building2blown = 0;
_root.background1.enemy.gotoAndStop(1);
_root.background1.enemy1.gotoAndStop(1);
_root.background1.enemy2.gotoAndStop(1);
_root.background1.enemy3.gotoAndStop(1);
_root.background1.enemy4.gotoAndStop(1);
_root.background1.enemy5.gotoAndStop(1);
_root.background1.enemy6.gotoAndStop(1);
_root.background1.enemy7.gotoAndStop(1);
_root.background1.enemy8.gotoAndStop(1);
_root.background1.enemy9.gotoAndStop(1);
_root.background1.enemy10.gotoAndStop(1);
_root.background1.enemy11.gotoAndStop(1);
_root.background1.enemy12.gotoAndStop(1);
_root.background1.enemy13.gotoAndStop(1);
_root.background1.enemy14.gotoAndStop(1);
_root.background1.enemy15.gotoAndStop(1);
_root.background1.enemy16.gotoAndStop(1);
_root.background1.enemy17.gotoAndStop(1);
_root.background1.enemy18.gotoAndStop(1);
_root.background1.enemy19.gotoAndStop(1);
_root.background1.enemy20.gotoAndStop(1);
stop();
_root.blood.gotoAndStop(1);
_root.stamina = 100;
_root.shots = 0;
_root.armed = 0;
_root.man.stop();
_root.begin = 0;
_root.score = 0;
_root.weapon = "machinegun";
_root.car1hp = 10;
_root.car2hp = 10;
_root.car3hp = 10;
_root.planted = 0;
_root.dead = 0;
_root.dead1 = 0;
_root.dead2 = 0;
_root.dead3 = 0;
_root.dead4 = 0;
_root.dead5 = 0;
_root.dead6 = 0;
_root.dead7 = 0;
_root.dead8 = 0;
_root.dead9 = 0;
_root.dead10 = 0;
_root.dead11 = 0;
_root.dead12 = 0;
_root.dead13 = 0;
_root.dead14 = 0;
_root.dead15 = 0;
_root.dead16 = 0;
_root.dead17 = 0;
_root.dead18 = 0;
_root.dead19 = 0;
_root.dead20 = 0;
_root.killed = 0;
_root.hit = 0;
_root.man.matey.stop();
_root.walking = 0;
_root.autofire = 0;
_root.ammo = 200;
_root.life = 100;
d = 0;
_global.rotMouse = function () {
var _local3 = _root._xmouse - this._x;
var _local1 = _root._ymouse - this._y;
var _local2 = Math.atan2(_local1, _local3);
var ang = ((_local2 / Math.PI) * 180);
return(ang);
};
_global.enemyshoot = function (speed, mc) {
var _local1 = this;
var _local2 = _root;
var _local3 = mc;
if (_local3.hitTest(_local2.stage)) {
ak = new Sound(_local2.stage);
ak.attachSound("ak");
ak.start(0, 1);
d++;
ebullet = _local2.background1.attachMovie("bullet", "be" + d, d);
var angle = Math.atan2(((_local2.man._y - _local2.background1._y) - _local3._y) - 20, ((_local2.man._x - _local2.background1._x) - _local3._x) + 20);
var xdist = (Math.cos(angle) * speed);
var ydist = (Math.sin(angle) * speed);
ebullet.xv = xdist;
ebullet.yv = ydist;
ebullet._x = _local3._x - 15;
ebullet._y = _local3._y + 20;
ebullet._rotation = rotMouse();
ebullet.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._x = _local1._x + _local1.xv;
_local1._y = _local1._y + _local1.yv;
if (_local1.hitTest(_local2.stage)) {
} else {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.man)) {
_local2.man.matey.GotoAndPlay("hurt");
_local2.blood.gotoAndPlay(2);
_local2.life = _local2.life - _local2.difficulty;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman1)) {
_local2.background1.building.snowman1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman2)) {
_local2.background1.building.snowman2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman3)) {
_local2.background1.building.snowman3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman4)) {
_local2.background1.building.snowman4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman5)) {
_local2.background1.building.snowman5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman6)) {
_local2.background1.building.snowman6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree1)) {
_local2.background1.tree.tree1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree2)) {
_local2.background1.tree.tree2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree3)) {
_local2.background1.tree.tree3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree4)) {
_local2.background1.tree.tree4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree5)) {
_local2.background1.tree.tree5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree6)) {
_local2.background1.tree.tree6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree7)) {
_local2.background1.tree.tree7.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree8)) {
_local2.background1.tree.tree8.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree9)) {
_local2.background1.tree.tree9.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree10)) {
_local2.background1.tree.tree10.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree11)) {
_local2.background1.tree.tree11.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree12)) {
_local2.background1.tree.tree12.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree13)) {
_local2.background1.tree.tree13.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree14)) {
_local2.background1.tree.tree14.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree15)) {
_local2.background1.tree.tree15.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree16)) {
_local2.background1.tree.tree16.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree17)) {
_local2.background1.tree.tree17.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree18)) {
_local2.background1.tree.tree18.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree19)) {
_local2.background1.tree.tree19.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree20)) {
_local2.background1.tree.tree20.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree20)) {
_local2.background1.tree.tree20.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.building1)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.building2)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car1)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car2)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car3)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
};
}
};
_global.shoot = function (speed, mc) {
var _local1 = this;
var _local2 = _root;
var _local3 = mc;
d++;
bullet = _local2.attachMovie("bullet", "b" + d, d);
var angle = Math.atan2(_local2._ymouse - _local3._y, _local2._xmouse - _local3._x);
var xdist = (Math.cos(angle) * speed);
var ydist = (Math.sin(angle) * speed);
bullet.xv = xdist;
bullet.yv = ydist;
bullet._x = _local3._x;
bullet._y = _local3._y;
bullet._rotation = rotMouse();
bullet.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._x = _local1._x + _local1.xv;
_local1._y = _local1._y + _local1.yv;
if (_local1.hitTest(_local2.stage)) {
} else {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.enemy)) {
_local2.background1.enemy.play();
if (_local2.dead == 0) {
_local2.dead = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy1)) {
_local2.background1.enemy1.play();
if (_local2.dead1 == 0) {
_local2.dead1 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy2)) {
_local2.background1.enemy2.play();
if (_local2.dead2 == 0) {
_local2.dead2 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy3)) {
_local2.background1.enemy3.play();
if (_local2.dead3 == 0) {
_local2.dead3 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy4)) {
_local2.background1.enemy4.play();
if (_local2.dead4 == 0) {
_local2.dead4 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy5)) {
_local2.background1.enemy5.play();
if (_local2.dead5 == 0) {
_local2.dead5 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy6)) {
_local2.background1.enemy6.play();
if (_local2.dead6 == 0) {
_local2.dead6 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy7)) {
_local2.background1.enemy7.play();
if (_local2.dead7 == 0) {
_local2.dead7 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy8)) {
_local2.background1.enemy8.play();
if (_local2.dead8 == 0) {
_local2.dead8 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy9)) {
_local2.background1.enemy9.play();
if (_local2.dead9 == 0) {
_local2.dead9 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy10)) {
_local2.background1.enemy10.play();
if (_local2.dead10 == 0) {
_local2.dead10 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy11)) {
_local2.background1.enemy11.play();
if (_local2.dead11 == 0) {
_local2.dead11 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy12)) {
_local2.background1.enemy12.play();
if (_local2.dead12 == 0) {
_local2.dead12 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy13)) {
_local2.background1.enemy13.play();
if (_local2.dead13 == 0) {
_local2.dead13 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy14)) {
_local2.background1.enemy14.play();
if (_local2.dead14 == 0) {
_local2.dead14 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy15)) {
_local2.background1.enemy15.play();
if (_local2.dead15 == 0) {
_local2.dead15 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy16)) {
_local2.background1.enemy16.play();
if (_local2.dead16 == 0) {
_local2.dead16 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy17)) {
_local2.background1.enemy17.play();
if (_local2.dead17 == 0) {
_local2.dead17 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy18)) {
_local2.background1.enemy18.play();
if (_local2.dead18 == 0) {
_local2.dead18 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy19)) {
_local2.background1.enemy19.play();
if (_local2.dead19 == 0) {
_local2.dead19 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy20)) {
_local2.background1.enemy20.play();
if (_local2.dead20 == 0) {
_local2.dead20 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.snowman1)) {
_local2.background1.building.snowman1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman2)) {
_local2.background1.building.snowman2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman3)) {
_local2.background1.building.snowman3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman4)) {
_local2.background1.building.snowman4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman5)) {
_local2.background1.building.snowman5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman6)) {
_local2.background1.building.snowman6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree1)) {
_local2.background1.tree.tree1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree2)) {
_local2.background1.tree.tree2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree3)) {
_local2.background1.tree.tree3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree4)) {
_local2.background1.tree.tree4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree5)) {
_local2.background1.tree.tree5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree6)) {
_local2.background1.tree.tree6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree7)) {
_local2.background1.tree.tree7.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree8)) {
_local2.background1.tree.tree8.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree9)) {
_local2.background1.tree.tree9.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree10)) {
_local2.background1.tree.tree10.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree11)) {
_local2.background1.tree.tree11.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree12)) {
_local2.background1.tree.tree12.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree13)) {
_local2.background1.tree.tree13.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree14)) {
_local2.background1.tree.tree14.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree15)) {
_local2.background1.tree.tree15.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree16)) {
_local2.background1.tree.tree16.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree17)) {
_local2.background1.tree.tree17.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree18)) {
_local2.background1.tree.tree18.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree19)) {
_local2.background1.tree.tree19.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree20)) {
_local2.background1.tree.tree20.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car1)) {
if (_local2.car1hp < 1) {
_local2.background1.building.car1.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car1hp = _local2.car1hp - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.car2)) {
if (_local2.car2hp < 1) {
_local2.background1.building.car2.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car2hp = _local2.car2hp - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.car3)) {
if (_local2.car3hp < 1) {
_local2.background1.building.car3.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car3hp = _local2.car3hp - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.building1)) {
if (_local2.autofire == 1) {
if (_local2.building1hp < 1) {
_local2.background1.building.building1.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.building1hp = _local2.building1hp - 1;
}
}
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.building2)) {
if (_local2.autofire == 1) {
if (_local2.building2hp < 1) {
_local2.background1.building.building2.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.building2hp = _local2.building2hp - 1;
}
}
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
};
};
_global.shoot1 = function (speed, mc) {
var _local1 = this;
var _local2 = _root;
var _local3 = mc;
d++;
bullet = _local2.attachMovie("bullet", "b" + d, d);
var angle = Math.atan2(_local2._ymouse - _local3._y, _local2._xmouse - _local3._x);
var xdist = (Math.cos(angle) * speed);
var ydist = (Math.sin(angle) * speed);
bullet.xv = xdist;
bullet.yv = ydist;
bullet._x = _local3._x;
bullet._y = _local3._y;
bullet._rotation = rotMouse();
bullet.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._x = _local1._x + (_local1.xv + 1);
_local1._y = _local1._y + (_local1.yv + 1);
if (_local1.hitTest(_local2.stage)) {
} else {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.enemy)) {
_local2.background1.enemy.play();
if (_local2.dead == 0) {
_local2.dead = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy1)) {
_local2.background1.enemy1.play();
if (_local2.dead1 == 0) {
_local2.dead1 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy2)) {
_local2.background1.enemy2.play();
if (_local2.dead2 == 0) {
_local2.dead2 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy3)) {
_local2.background1.enemy3.play();
if (_local2.dead3 == 0) {
_local2.dead3 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy4)) {
_local2.background1.enemy4.play();
if (_local2.dead4 == 0) {
_local2.dead4 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy5)) {
_local2.background1.enemy5.play();
if (_local2.dead5 == 0) {
_local2.dead5 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy6)) {
_local2.background1.enemy6.play();
if (_local2.dead6 == 0) {
_local2.dead6 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy7)) {
_local2.background1.enemy7.play();
if (_local2.dead7 == 0) {
_local2.dead7 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy8)) {
_local2.background1.enemy8.play();
if (_local2.dead8 == 0) {
_local2.dead8 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy9)) {
_local2.background1.enemy9.play();
if (_local2.dead9 == 0) {
_local2.dead9 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy10)) {
_local2.background1.enemy10.play();
if (_local2.dead10 == 0) {
_local2.dead10 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy11)) {
_local2.background1.enemy11.play();
if (_local2.dead11 == 0) {
_local2.dead11 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy12)) {
_local2.background1.enemy12.play();
if (_local2.dead12 == 0) {
_local2.dead12 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy13)) {
_local2.background1.enemy13.play();
if (_local2.dead13 == 0) {
_local2.dead13 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy14)) {
_local2.background1.enemy14.play();
if (_local2.dead14 == 0) {
_local2.dead14 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy15)) {
_local2.background1.enemy15.play();
if (_local2.dead15 == 0) {
_local2.dead15 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy16)) {
_local2.background1.enemy16.play();
if (_local2.dead16 == 0) {
_local2.dead16 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy17)) {
_local2.background1.enemy17.play();
if (_local2.dead17 == 0) {
_local2.dead17 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy18)) {
_local2.background1.enemy18.play();
if (_local2.dead18 == 0) {
_local2.dead18 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy19)) {
_local2.background1.enemy19.play();
if (_local2.dead19 == 0) {
_local2.dead19 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy20)) {
_local2.background1.enemy20.play();
if (_local2.dead20 == 0) {
_local2.dead20 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.snowman1)) {
_local2.background1.building.snowman1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman2)) {
_local2.background1.building.snowman2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman3)) {
_local2.background1.building.snowman3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman4)) {
_local2.background1.building.snowman4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman5)) {
_local2.background1.building.snowman5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman6)) {
_local2.background1.building.snowman6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree1)) {
_local2.background1.tree.tree1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree2)) {
_local2.background1.tree.tree2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree3)) {
_local2.background1.tree.tree3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree4)) {
_local2.background1.tree.tree4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree5)) {
_local2.background1.tree.tree5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree6)) {
_local2.background1.tree.tree6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree7)) {
_local2.background1.tree.tree7.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree8)) {
_local2.background1.tree.tree8.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree9)) {
_local2.background1.tree.tree9.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree10)) {
_local2.background1.tree.tree10.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree11)) {
_local2.background1.tree.tree11.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree12)) {
_local2.background1.tree.tree12.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree13)) {
_local2.background1.tree.tree13.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree14)) {
_local2.background1.tree.tree14.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree15)) {
_local2.background1.tree.tree15.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree16)) {
_local2.background1.tree.tree16.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree17)) {
_local2.background1.tree.tree17.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree18)) {
_local2.background1.tree.tree18.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree19)) {
_local2.background1.tree.tree19.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree20)) {
_local2.background1.tree.tree20.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car1)) {
if (_local2.car1hp < 1) {
_local2.background1.building.car1.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car1hp = _local2.car1hp - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.car2)) {
if (_local2.car2hp < 1) {
_local2.background1.building.car2.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car2hp = _local2.car2hp - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.car3)) {
if (_local2.car3hp < 1) {
_local2.background1.building.car3.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car3hp = _local2.car3hp - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.building1)) {
if (_local2.autofire == 1) {
if (_local2.building1hp < 1) {
_local2.background1.building.building1.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.building1hp = _local2.building1hp - 1;
}
}
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.building2)) {
if (_local2.autofire == 1) {
if (_local2.building2hp < 1) {
_local2.background1.building.building2.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.building2hp = _local2.building2hp - 1;
}
}
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
};
};
_global.shoot2 = function (speed, mc) {
var _local1 = this;
var _local2 = _root;
var _local3 = mc;
d++;
bullet = _local2.attachMovie("bullet", "b" + d, d);
var angle = Math.atan2(_local2._ymouse - _local3._y, _local2._xmouse - _local3._x);
var xdist = (Math.cos(angle) * speed);
var ydist = (Math.sin(angle) * speed);
bullet.xv = xdist;
bullet.yv = ydist;
bullet._x = _local3._x;
bullet._y = _local3._y;
bullet._rotation = rotMouse();
bullet.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._x = _local1._x + (_local1.xv - 1);
_local1._y = _local1._y + (_local1.yv - 1);
if (_local1.hitTest(_local2.stage)) {
} else {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.enemy)) {
_local2.background1.enemy.play();
if (_local2.dead == 0) {
_local2.dead = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy1)) {
_local2.background1.enemy1.play();
if (_local2.dead1 == 0) {
_local2.dead1 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy2)) {
_local2.background1.enemy2.play();
if (_local2.dead2 == 0) {
_local2.dead2 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy3)) {
_local2.background1.enemy3.play();
if (_local2.dead3 == 0) {
_local2.dead3 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy4)) {
_local2.background1.enemy4.play();
if (_local2.dead4 == 0) {
_local2.dead4 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy5)) {
_local2.background1.enemy5.play();
if (_local2.dead5 == 0) {
_local2.dead5 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy6)) {
_local2.background1.enemy6.play();
if (_local2.dead6 == 0) {
_local2.dead6 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy7)) {
_local2.background1.enemy7.play();
if (_local2.dead7 == 0) {
_local2.dead7 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy8)) {
_local2.background1.enemy8.play();
if (_local2.dead8 == 0) {
_local2.dead8 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy9)) {
_local2.background1.enemy9.play();
if (_local2.dead9 == 0) {
_local2.dead9 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy10)) {
_local2.background1.enemy10.play();
if (_local2.dead10 == 0) {
_local2.dead10 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy11)) {
_local2.background1.enemy11.play();
if (_local2.dead11 == 0) {
_local2.dead11 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy12)) {
_local2.background1.enemy12.play();
if (_local2.dead12 == 0) {
_local2.dead12 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy13)) {
_local2.background1.enemy13.play();
if (_local2.dead13 == 0) {
_local2.dead13 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy14)) {
_local2.background1.enemy14.play();
if (_local2.dead14 == 0) {
_local2.dead14 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy15)) {
_local2.background1.enemy15.play();
if (_local2.dead15 == 0) {
_local2.dead15 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy16)) {
_local2.background1.enemy16.play();
if (_local2.dead16 == 0) {
_local2.dead16 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy17)) {
_local2.background1.enemy17.play();
if (_local2.dead17 == 0) {
_local2.dead17 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy18)) {
_local2.background1.enemy18.play();
if (_local2.dead18 == 0) {
_local2.dead18 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy19)) {
_local2.background1.enemy19.play();
if (_local2.dead19 == 0) {
_local2.dead19 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy20)) {
_local2.background1.enemy20.play();
if (_local2.dead20 == 0) {
_local2.dead20 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.snowman1)) {
_local2.background1.building.snowman1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman2)) {
_local2.background1.building.snowman2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman3)) {
_local2.background1.building.snowman3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman4)) {
_local2.background1.building.snowman4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman5)) {
_local2.background1.building.snowman5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman6)) {
_local2.background1.building.snowman6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree1)) {
_local2.background1.tree.tree1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree2)) {
_local2.background1.tree.tree2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree3)) {
_local2.background1.tree.tree3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree4)) {
_local2.background1.tree.tree4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree5)) {
_local2.background1.tree.tree5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree6)) {
_local2.background1.tree.tree6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree7)) {
_local2.background1.tree.tree7.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree8)) {
_local2.background1.tree.tree8.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree9)) {
_local2.background1.tree.tree9.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree10)) {
_local2.background1.tree.tree10.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree11)) {
_local2.background1.tree.tree11.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree12)) {
_local2.background1.tree.tree12.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree13)) {
_local2.background1.tree.tree13.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree14)) {
_local2.background1.tree.tree14.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree15)) {
_local2.background1.tree.tree15.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree16)) {
_local2.background1.tree.tree16.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree17)) {
_local2.background1.tree.tree17.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree18)) {
_local2.background1.tree.tree18.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree19)) {
_local2.background1.tree.tree19.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree20)) {
_local2.background1.tree.tree20.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car1)) {
if (_local2.car1hp < 1) {
_local2.background1.building.car1.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car1hp = _local2.car1hp - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.car2)) {
if (_local2.car2hp < 1) {
_local2.background1.building.car2.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car2hp = _local2.car2hp - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.car3)) {
if (_local2.car3hp < 1) {
_local2.background1.building.car3.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car3hp = _local2.car3hp - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.building1)) {
if (_local2.autofire == 1) {
if (_local2.building1hp < 1) {
_local2.background1.building.building1.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.building1hp = _local2.building1hp - 1;
}
}
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.building2)) {
if (_local2.autofire == 1) {
if (_local2.building2hp < 1) {
_local2.background1.building.building2.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.building2hp = _local2.building2hp - 1;
}
}
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
};
};
Instance of Symbol 408 MovieClip "man" in Frame 7
onClipEvent (enterFrame) {
if (((((((((((((((((((((_root.dead == 1) and (_root.dead1 == 1)) and (_root.dead2 == 1)) and (_root.dead3 == 1)) and (_root.dead4 == 1)) and (_root.dead5 == 1)) and (_root.dead6 == 1)) and (_root.dead7 == 1)) and (_root.dead8 == 1)) and (_root.dead9 == 1)) and (_root.dead10 == 1)) and (_root.dead11 == 1)) and (_root.dead12 == 1)) and (_root.dead13 == 1)) and (_root.dead14 == 1)) and (_root.dead15 == 1)) and (_root.dead16 == 1)) and (_root.dead17 == 1)) and (_root.dead18 == 1)) and (_root.dead19 == 1)) and (_root.dead20 == 1)) {
_root.instructions._visible = 1;
}
if (((((((((((((((((((((((_root.dead == 1) and (_root.dead1 == 1)) and (_root.dead2 == 1)) and (_root.dead3 == 1)) and (_root.dead4 == 1)) and (_root.dead5 == 1)) and (_root.dead6 == 1)) and (_root.dead7 == 1)) and (_root.dead8 == 1)) and (_root.dead9 == 1)) and (_root.dead10 == 1)) and (_root.dead11 == 1)) and (_root.dead12 == 1)) and (_root.dead13 == 1)) and (_root.dead14 == 1)) and (_root.dead15 == 1)) and (_root.dead16 == 1)) and (_root.dead17 == 1)) and (_root.dead18 == 1)) and (_root.dead19 == 1)) and (_root.dead20 == 1)) and (_root.building1blown == 1)) and (_root.building2blown == 1)) {
_root.level5done = 1;
_root.instructions._visible = 0;
_root.gotoAndPlay("endlevel");
}
if (_root.life < 1) {
_root.recruits = _root.recruits - 1;
_root.gotoAndPlay("endlevel");
}
var dx = this._xmouse;
var dy = this._ymouse;
angle = Math.atan2(dy, dx);
frameNbr = (Math.round(8 + ((4 * angle) / Math.PI)) % 8) + 1;
this.gotoAndStop(frameNbr);
myBounce = 6;
if (_root.background1.building.hitTest(getBounds(_root).xMax, _y, true)) {
_root.background1._x = _root.background1._x + myBounce;
}
if (_root.background1.building.hitTest(getBounds(_root).xMin, _y, true)) {
_root.background1._x = _root.background1._x - myBounce;
}
if (_root.background1.building.hitTest(_x, getBounds(_root).yMax, true)) {
_root.background1._y = _root.background1._y + myBounce;
}
if (_root.background1.building.hitTest(_x, getBounds(_root).yMin, true)) {
_root.background1._y = _root.background1._y - myBounce;
}
if (_root.background1.tree.hitTest(getBounds(_root).xMax, _y, true)) {
_root.background1._x = _root.background1._x + myBounce;
}
if (_root.background1.tree.hitTest(getBounds(_root).xMin, _y, true)) {
_root.background1._x = _root.background1._x - myBounce;
}
if (_root.background1.tree.hitTest(_x, getBounds(_root).yMax, true)) {
_root.background1._y = _root.background1._y + myBounce;
}
if (_root.background1.tree.hitTest(_x, getBounds(_root).yMin, true)) {
_root.background1._y = _root.background1._y - myBounce;
}
if (_root.background1.ammocrate.hitTest(getBounds(_root).xMax, _y, true)) {
_root.ammo = _root.ammo + 200;
_root.background1.ammocrate._x = -400;
}
if (_root.background1.ammocrate.hitTest(getBounds(_root).xMin, _y, true)) {
_root.ammo = _root.ammo + 200;
_root.background1.ammocrate._x = -400;
}
if (_root.background1.ammocrate.hitTest(_x, getBounds(_root).yMax, true)) {
_root.ammo = _root.ammo + 200;
_root.background1.ammocrate._x = -400;
}
if (_root.background1.ammocrate.hitTest(_x, getBounds(_root).yMin, true)) {
_root.ammo = _root.ammo + 200;
_root.background1.ammocrate._x = -400;
}
}
onClipEvent (mouseDown) {
function wait() {
_root.ready = 1;
clearInterval(myTimer);
}
if (_root.ready == 1) {
_root.man.matey.gotoAndPlay("firing");
if (_root.autofire == 0) {
if (_root.ammo > 0) {
autofiresound = new Sound(_root);
autofiresound.attachSound("shotgun");
autofiresound.start(0, 1);
shoot(35, this);
shoot1(35, this);
shoot2(35, this);
myTimer = setInterval(wait, 1000);
_root.ready = 0;
_root.ammo = _root.ammo - 2;
_root.autofire = 1;
}
}
}
}
onClipEvent (mouseUp) {
_root.autofire = 0;
}
Frame 8
_root.offsetx1 = 390;
_root.offsety1 = -30;
_root.offsetx2 = 790;
_root.offsety2 = -320;
_root.building1blown = 0;
_root.building2blown = 0;
_root.background1.enemy.gotoAndStop(1);
_root.background1.enemy1.gotoAndStop(1);
_root.background1.enemy2.gotoAndStop(1);
_root.background1.enemy3.gotoAndStop(1);
_root.background1.enemy4.gotoAndStop(1);
_root.background1.enemy5.gotoAndStop(1);
_root.background1.enemy6.gotoAndStop(1);
_root.background1.enemy7.gotoAndStop(1);
_root.background1.enemy8.gotoAndStop(1);
_root.background1.enemy9.gotoAndStop(1);
_root.background1.enemy10.gotoAndStop(1);
_root.background1.enemy11.gotoAndStop(1);
_root.background1.enemy12.gotoAndStop(1);
_root.background1.enemy13.gotoAndStop(1);
_root.background1.enemy14.gotoAndStop(1);
_root.background1.enemy15.gotoAndStop(1);
_root.background1.enemy16.gotoAndStop(1);
_root.background1.enemy17.gotoAndStop(1);
_root.background1.enemy18.gotoAndStop(1);
_root.background1.enemy19.gotoAndStop(1);
_root.background1.enemy20.gotoAndStop(1);
stop();
_root.blood.gotoAndStop(1);
_root.stamina = 100;
_root.shots = 0;
_root.armed = 0;
_root.man.stop();
_root.begin = 0;
_root.score = 0;
_root.weapon = "machinegun";
_root.car1hp = 10;
_root.car2hp = 10;
_root.car3hp = 10;
_root.planted = 0;
_root.building1hp = 3000;
_root.building2hp = 3000;
_root.dead = 0;
_root.dead1 = 0;
_root.dead2 = 0;
_root.dead3 = 0;
_root.dead4 = 0;
_root.dead5 = 0;
_root.dead6 = 0;
_root.dead7 = 0;
_root.dead8 = 0;
_root.dead9 = 0;
_root.dead10 = 0;
_root.dead11 = 0;
_root.dead12 = 0;
_root.dead13 = 0;
_root.dead14 = 0;
_root.dead15 = 0;
_root.dead16 = 0;
_root.dead17 = 0;
_root.dead18 = 0;
_root.dead19 = 0;
_root.dead20 = 0;
_root.killed = 0;
_root.hit = 0;
_root.man.matey.stop();
_root.walking = 0;
_root.autofire = 0;
_root.ammo = 1000;
_root.life = 100;
d = 0;
_global.rotMouse = function () {
var _local3 = _root._xmouse - this._x;
var _local1 = _root._ymouse - this._y;
var _local2 = Math.atan2(_local1, _local3);
var ang = ((_local2 / Math.PI) * 180);
return(ang);
};
_global.enemyshoot = function (speed, mc) {
var _local1 = this;
var _local2 = _root;
var _local3 = mc;
if (_local3.hitTest(_local2.stage)) {
ak = new Sound(_local2.stage);
ak.attachSound("ak");
ak.start(0, 1);
d++;
ebullet = _local2.background1.attachMovie("bullet", "be" + d, d);
var angle = Math.atan2(((_local2.man._y - _local2.background1._y) - _local3._y) - 20, ((_local2.man._x - _local2.background1._x) - _local3._x) + 20);
var xdist = (Math.cos(angle) * speed);
var ydist = (Math.sin(angle) * speed);
ebullet.xv = xdist;
ebullet.yv = ydist;
ebullet._x = _local3._x - 15;
ebullet._y = _local3._y + 20;
ebullet._rotation = rotMouse();
ebullet.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._x = _local1._x + _local1.xv;
_local1._y = _local1._y + _local1.yv;
if (_local1.hitTest(_local2.stage)) {
} else {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.man)) {
_local2.man.matey.GotoAndPlay("hurt");
_local2.blood.gotoAndPlay(2);
_local2.life = _local2.life - _local2.difficulty;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman1)) {
_local2.background1.building.snowman1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman2)) {
_local2.background1.building.snowman2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman3)) {
_local2.background1.building.snowman3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman4)) {
_local2.background1.building.snowman4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman5)) {
_local2.background1.building.snowman5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman6)) {
_local2.background1.building.snowman6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree1)) {
_local2.background1.tree.tree1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree2)) {
_local2.background1.tree.tree2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree3)) {
_local2.background1.tree.tree3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree4)) {
_local2.background1.tree.tree4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree5)) {
_local2.background1.tree.tree5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree6)) {
_local2.background1.tree.tree6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree7)) {
_local2.background1.tree.tree7.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree8)) {
_local2.background1.tree.tree8.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree9)) {
_local2.background1.tree.tree9.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree10)) {
_local2.background1.tree.tree10.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree11)) {
_local2.background1.tree.tree11.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree12)) {
_local2.background1.tree.tree12.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree13)) {
_local2.background1.tree.tree13.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree14)) {
_local2.background1.tree.tree14.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree15)) {
_local2.background1.tree.tree15.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree16)) {
_local2.background1.tree.tree16.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree17)) {
_local2.background1.tree.tree17.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree18)) {
_local2.background1.tree.tree18.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree19)) {
_local2.background1.tree.tree19.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree20)) {
_local2.background1.tree.tree20.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree20)) {
_local2.background1.tree.tree20.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.building1)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.building2)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car1)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car2)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car3)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
};
}
};
_global.shoot = function (speed, mc) {
var _local1 = this;
var _local2 = _root;
var _local3 = mc;
d++;
bullet = _local2.attachMovie("bullet", "b" + d, d);
var angle = Math.atan2(_local2._ymouse - _local3._y, _local2._xmouse - _local3._x);
var xdist = (Math.cos(angle) * speed);
var ydist = (Math.sin(angle) * speed);
bullet.xv = xdist;
bullet.yv = ydist;
bullet._x = _local3._x;
bullet._y = _local3._y;
bullet._rotation = rotMouse();
bullet.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._x = _local1._x + _local1.xv;
_local1._y = _local1._y + _local1.yv;
if (_local1.hitTest(_local2.stage)) {
} else {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.enemy)) {
_local2.background1.enemy.play();
if (_local2.dead == 0) {
_local2.dead = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy1)) {
_local2.background1.enemy1.play();
if (_local2.dead1 == 0) {
_local2.dead1 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy2)) {
_local2.background1.enemy2.play();
if (_local2.dead2 == 0) {
_local2.dead2 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy3)) {
_local2.background1.enemy3.play();
if (_local2.dead3 == 0) {
_local2.dead3 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy4)) {
_local2.background1.enemy4.play();
if (_local2.dead4 == 0) {
_local2.dead4 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy5)) {
_local2.background1.enemy5.play();
if (_local2.dead5 == 0) {
_local2.dead5 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy6)) {
_local2.background1.enemy6.play();
if (_local2.dead6 == 0) {
_local2.dead6 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy7)) {
_local2.background1.enemy7.play();
if (_local2.dead7 == 0) {
_local2.dead7 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy8)) {
_local2.background1.enemy8.play();
if (_local2.dead8 == 0) {
_local2.dead8 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy9)) {
_local2.background1.enemy9.play();
if (_local2.dead9 == 0) {
_local2.dead9 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy10)) {
_local2.background1.enemy10.play();
if (_local2.dead10 == 0) {
_local2.dead10 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy11)) {
_local2.background1.enemy11.play();
if (_local2.dead11 == 0) {
_local2.dead11 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy12)) {
_local2.background1.enemy12.play();
if (_local2.dead12 == 0) {
_local2.dead12 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy13)) {
_local2.background1.enemy13.play();
if (_local2.dead13 == 0) {
_local2.dead13 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy14)) {
_local2.background1.enemy14.play();
if (_local2.dead14 == 0) {
_local2.dead14 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy15)) {
_local2.background1.enemy15.play();
if (_local2.dead15 == 0) {
_local2.dead15 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy16)) {
_local2.background1.enemy16.play();
if (_local2.dead16 == 0) {
_local2.dead16 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy17)) {
_local2.background1.enemy17.play();
if (_local2.dead17 == 0) {
_local2.dead17 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy18)) {
_local2.background1.enemy18.play();
if (_local2.dead18 == 0) {
_local2.dead18 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy19)) {
_local2.background1.enemy19.play();
if (_local2.dead19 == 0) {
_local2.dead19 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy20)) {
_local2.background1.enemy20.play();
if (_local2.dead20 == 0) {
_local2.dead20 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.snowman1)) {
_local2.background1.building.snowman1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman2)) {
_local2.background1.building.snowman2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman3)) {
_local2.background1.building.snowman3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman4)) {
_local2.background1.building.snowman4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman5)) {
_local2.background1.building.snowman5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman6)) {
_local2.background1.building.snowman6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree1)) {
_local2.background1.tree.tree1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree2)) {
_local2.background1.tree.tree2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree3)) {
_local2.background1.tree.tree3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree4)) {
_local2.background1.tree.tree4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree5)) {
_local2.background1.tree.tree5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree6)) {
_local2.background1.tree.tree6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree7)) {
_local2.background1.tree.tree7.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree8)) {
_local2.background1.tree.tree8.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree9)) {
_local2.background1.tree.tree9.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree10)) {
_local2.background1.tree.tree10.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree11)) {
_local2.background1.tree.tree11.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree12)) {
_local2.background1.tree.tree12.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree13)) {
_local2.background1.tree.tree13.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree14)) {
_local2.background1.tree.tree14.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree15)) {
_local2.background1.tree.tree15.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree16)) {
_local2.background1.tree.tree16.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree17)) {
_local2.background1.tree.tree17.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree18)) {
_local2.background1.tree.tree18.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree19)) {
_local2.background1.tree.tree19.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree20)) {
_local2.background1.tree.tree20.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car1)) {
if (_local2.car1hp < 1) {
_local2.background1.building.car1.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car1hp = _local2.car1hp - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.car2)) {
if (_local2.car2hp < 1) {
_local2.background1.building.car2.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car2hp = _local2.car2hp - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.car3)) {
if (_local2.car3hp < 1) {
_local2.background1.building.car3.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car3hp = _local2.car3hp - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.building1)) {
if (_local2.autofire == 1) {
if (_local2.building1hp < 1) {
_local2.background1.building.building1.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.building1hp = _local2.building1hp - 1;
}
}
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.building2)) {
if (_local2.autofire == 1) {
if (_local2.building2hp < 1) {
_local2.background1.building.building2.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.building2hp = _local2.building2hp - 1;
}
}
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
};
};
Instance of Symbol 408 MovieClip "man" in Frame 8
onClipEvent (enterFrame) {
if (((((((((((((((((((((_root.dead == 1) and (_root.dead1 == 1)) and (_root.dead2 == 1)) and (_root.dead3 == 1)) and (_root.dead4 == 1)) and (_root.dead5 == 1)) and (_root.dead6 == 1)) and (_root.dead7 == 1)) and (_root.dead8 == 1)) and (_root.dead9 == 1)) and (_root.dead10 == 1)) and (_root.dead11 == 1)) and (_root.dead12 == 1)) and (_root.dead13 == 1)) and (_root.dead14 == 1)) and (_root.dead15 == 1)) and (_root.dead16 == 1)) and (_root.dead17 == 1)) and (_root.dead18 == 1)) and (_root.dead19 == 1)) and (_root.dead20 == 1)) {
_root.instructions._visible = 1;
}
if (((((((((((((((((((((((_root.dead == 1) and (_root.dead1 == 1)) and (_root.dead2 == 1)) and (_root.dead3 == 1)) and (_root.dead4 == 1)) and (_root.dead5 == 1)) and (_root.dead6 == 1)) and (_root.dead7 == 1)) and (_root.dead8 == 1)) and (_root.dead9 == 1)) and (_root.dead10 == 1)) and (_root.dead11 == 1)) and (_root.dead12 == 1)) and (_root.dead13 == 1)) and (_root.dead14 == 1)) and (_root.dead15 == 1)) and (_root.dead16 == 1)) and (_root.dead17 == 1)) and (_root.dead18 == 1)) and (_root.dead19 == 1)) and (_root.dead20 == 1)) and (_root.building1blown == 1)) and (_root.building2blown == 1)) {
_root.level2done = 1;
_root.instructions._visible = 0;
_root.gotoAndPlay("endlevel");
}
if (_root.life < 1) {
_root.recruits = _root.recruits - 1;
_root.gotoAndPlay("endlevel");
}
var dx = this._xmouse;
var dy = this._ymouse;
angle = Math.atan2(dy, dx);
frameNbr = (Math.round(8 + ((4 * angle) / Math.PI)) % 8) + 1;
this.gotoAndStop(frameNbr);
myBounce = 5;
if (_root.background1.building.hitTest(getBounds(_root).xMax, _y, true)) {
_root.background1._x = _root.background1._x + myBounce;
}
if (_root.background1.building.hitTest(getBounds(_root).xMin, _y, true)) {
_root.background1._x = _root.background1._x - myBounce;
}
if (_root.background1.building.hitTest(_x, getBounds(_root).yMax, true)) {
_root.background1._y = _root.background1._y + myBounce;
}
if (_root.background1.building.hitTest(_x, getBounds(_root).yMin, true)) {
_root.background1._y = _root.background1._y - myBounce;
}
if (_root.background1.tree.hitTest(getBounds(_root).xMax, _y, true)) {
_root.background1._x = _root.background1._x + myBounce;
}
if (_root.background1.tree.hitTest(getBounds(_root).xMin, _y, true)) {
_root.background1._x = _root.background1._x - myBounce;
}
if (_root.background1.tree.hitTest(_x, getBounds(_root).yMax, true)) {
_root.background1._y = _root.background1._y + myBounce;
}
if (_root.background1.tree.hitTest(_x, getBounds(_root).yMin, true)) {
_root.background1._y = _root.background1._y - myBounce;
}
if (_root.background1.ammocrate.hitTest(getBounds(_root).xMax, _y, true)) {
_root.ammo = _root.ammo + 200;
_root.background1.ammocrate._x = -400;
}
if (_root.background1.ammocrate.hitTest(getBounds(_root).xMin, _y, true)) {
_root.ammo = _root.ammo + 200;
_root.background1.ammocrate._x = -400;
}
if (_root.background1.ammocrate.hitTest(_x, getBounds(_root).yMax, true)) {
_root.ammo = _root.ammo + 200;
_root.background1.ammocrate._x = -400;
}
if (_root.background1.ammocrate.hitTest(_x, getBounds(_root).yMin, true)) {
_root.ammo = _root.ammo + 200;
_root.background1.ammocrate._x = -400;
}
if (_root.autofire == 1) {
this.matey.gotoAndPlay("firing");
if (_root.ammo > 0) {
autofiresound = new Sound(_root);
autofiresound.attachSound("firing2");
autofiresound.start(0, 1);
shoot(35, this);
_root.ammo = _root.ammo - 1;
_root.shots = _root.shots + 1;
}
}
}
onClipEvent (mouseDown) {
_root.man.matey.gotoAndPlay("firing");
if (_root.autofire == 0) {
if (_root.ammo > 0) {
_root.autofire = 1;
}
}
}
onClipEvent (mouseUp) {
_root.autofire = 0;
}
Frame 9
_root.ready = 1;
_root.pistol = 7;
_root.offsetx1 = 390;
_root.offsety1 = -30;
_root.offsetx2 = 790;
_root.offsety2 = -320;
_root.building1blown = 0;
_root.building2blown = 0;
_root.background1.enemy.gotoAndStop(1);
_root.background1.enemy1.gotoAndStop(1);
_root.background1.enemy2.gotoAndStop(1);
_root.background1.enemy3.gotoAndStop(1);
_root.background1.enemy4.gotoAndStop(1);
_root.background1.enemy5.gotoAndStop(1);
_root.background1.enemy6.gotoAndStop(1);
_root.background1.enemy7.gotoAndStop(1);
_root.background1.enemy8.gotoAndStop(1);
_root.background1.enemy9.gotoAndStop(1);
_root.background1.enemy10.gotoAndStop(1);
_root.background1.enemy11.gotoAndStop(1);
_root.background1.enemy12.gotoAndStop(1);
_root.background1.enemy13.gotoAndStop(1);
_root.background1.enemy14.gotoAndStop(1);
_root.background1.enemy15.gotoAndStop(1);
_root.background1.enemy16.gotoAndStop(1);
_root.background1.enemy17.gotoAndStop(1);
_root.background1.enemy18.gotoAndStop(1);
_root.background1.enemy19.gotoAndStop(1);
_root.background1.enemy20.gotoAndStop(1);
stop();
_root.blood.gotoAndStop(1);
_root.stamina = 100;
_root.shots = 0;
_root.armed = 0;
_root.man.stop();
_root.begin = 0;
_root.score = 0;
_root.weapon = "machinegun";
_root.car1hp = 10;
_root.car2hp = 10;
_root.car3hp = 10;
_root.planted = 0;
_root.building1hp = 3000;
_root.building2hp = 3000;
_root.dead = 0;
_root.dead1 = 0;
_root.dead2 = 0;
_root.dead3 = 0;
_root.dead4 = 0;
_root.dead5 = 0;
_root.dead6 = 0;
_root.dead7 = 0;
_root.dead8 = 0;
_root.dead9 = 0;
_root.dead10 = 0;
_root.dead11 = 0;
_root.dead12 = 0;
_root.dead13 = 0;
_root.dead14 = 0;
_root.dead15 = 0;
_root.dead16 = 0;
_root.dead17 = 0;
_root.dead18 = 0;
_root.dead19 = 0;
_root.dead20 = 0;
_root.killed = 0;
_root.hit = 0;
_root.man.matey.stop();
_root.walking = 0;
_root.autofire = 0;
_root.ammo = 300;
_root.life = 100;
d = 0;
_global.rotMouse = function () {
var _local3 = _root._xmouse - this._x;
var _local1 = _root._ymouse - this._y;
var _local2 = Math.atan2(_local1, _local3);
var ang = ((_local2 / Math.PI) * 180);
return(ang);
};
_global.enemyshoot = function (speed, mc) {
var _local1 = this;
var _local2 = _root;
var _local3 = mc;
if (_local3.hitTest(_local2.stage)) {
ak = new Sound(_local2.stage);
ak.attachSound("ak");
ak.start(0, 1);
d++;
ebullet = _local2.background1.attachMovie("bullet", "be" + d, d);
var angle = Math.atan2(((_local2.man._y - _local2.background1._y) - _local3._y) - 20, ((_local2.man._x - _local2.background1._x) - _local3._x) + 20);
var xdist = (Math.cos(angle) * speed);
var ydist = (Math.sin(angle) * speed);
ebullet.xv = xdist;
ebullet.yv = ydist;
ebullet._x = _local3._x - 15;
ebullet._y = _local3._y + 20;
ebullet._rotation = rotMouse();
ebullet.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._x = _local1._x + _local1.xv;
_local1._y = _local1._y + _local1.yv;
if (_local1.hitTest(_local2.stage)) {
} else {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.man)) {
_local2.man.matey.GotoAndPlay("hurt");
_local2.blood.gotoAndPlay(2);
_local2.life = _local2.life - _local2.difficulty;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman1)) {
_local2.background1.building.snowman1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman2)) {
_local2.background1.building.snowman2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman3)) {
_local2.background1.building.snowman3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman4)) {
_local2.background1.building.snowman4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman5)) {
_local2.background1.building.snowman5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman6)) {
_local2.background1.building.snowman6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree1)) {
_local2.background1.tree.tree1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree2)) {
_local2.background1.tree.tree2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree3)) {
_local2.background1.tree.tree3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree4)) {
_local2.background1.tree.tree4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree5)) {
_local2.background1.tree.tree5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree6)) {
_local2.background1.tree.tree6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree7)) {
_local2.background1.tree.tree7.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree8)) {
_local2.background1.tree.tree8.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree9)) {
_local2.background1.tree.tree9.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree10)) {
_local2.background1.tree.tree10.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree11)) {
_local2.background1.tree.tree11.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree12)) {
_local2.background1.tree.tree12.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree13)) {
_local2.background1.tree.tree13.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree14)) {
_local2.background1.tree.tree14.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree15)) {
_local2.background1.tree.tree15.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree16)) {
_local2.background1.tree.tree16.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree17)) {
_local2.background1.tree.tree17.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree18)) {
_local2.background1.tree.tree18.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree19)) {
_local2.background1.tree.tree19.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree20)) {
_local2.background1.tree.tree20.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree20)) {
_local2.background1.tree.tree20.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.building1)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.building2)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car1)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car2)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car3)) {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
};
}
};
_global.shoot = function (speed, mc) {
var _local1 = _root;
var _local2 = this;
var _local3 = mc;
d++;
bullet = _local1.attachMovie("bullet", "b" + d, d);
var angle = Math.atan2(_local1._ymouse - _local3._y, _local1._xmouse - _local3._x);
var xdist = (Math.cos(angle) * speed);
var ydist = (Math.sin(angle) * speed);
bullet.xv = xdist;
bullet.yv = ydist;
bullet._x = _local3._x;
bullet._y = _local3._y;
bullet._rotation = rotMouse();
bullet.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._x = _local1._x + _local1.xv;
_local1._y = _local1._y + _local1.yv;
if (_local1.hitTest(_local2.stage)) {
} else {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.enemy)) {
_local2.background1.enemy.play();
if (_local2.dead == 0) {
_local2.dead = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy1)) {
_local2.background1.enemy1.play();
if (_local2.dead1 == 0) {
_local2.dead1 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy2)) {
_local2.background1.enemy2.play();
if (_local2.dead2 == 0) {
_local2.dead2 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy3)) {
_local2.background1.enemy3.play();
if (_local2.dead3 == 0) {
_local2.dead3 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy4)) {
_local2.background1.enemy4.play();
if (_local2.dead4 == 0) {
_local2.dead4 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy5)) {
_local2.background1.enemy5.play();
if (_local2.dead5 == 0) {
_local2.dead5 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy6)) {
_local2.background1.enemy6.play();
if (_local2.dead6 == 0) {
_local2.dead6 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy7)) {
_local2.background1.enemy7.play();
if (_local2.dead7 == 0) {
_local2.dead7 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy8)) {
_local2.background1.enemy8.play();
if (_local2.dead8 == 0) {
_local2.dead8 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy9)) {
_local2.background1.enemy9.play();
if (_local2.dead9 == 0) {
_local2.dead9 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy10)) {
_local2.background1.enemy10.play();
if (_local2.dead10 == 0) {
_local2.dead10 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy11)) {
_local2.background1.enemy11.play();
if (_local2.dead11 == 0) {
_local2.dead11 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy12)) {
_local2.background1.enemy12.play();
if (_local2.dead12 == 0) {
_local2.dead12 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy13)) {
_local2.background1.enemy13.play();
if (_local2.dead13 == 0) {
_local2.dead13 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy14)) {
_local2.background1.enemy14.play();
if (_local2.dead14 == 0) {
_local2.dead14 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy15)) {
_local2.background1.enemy15.play();
if (_local2.dead15 == 0) {
_local2.dead15 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy16)) {
_local2.background1.enemy16.play();
if (_local2.dead16 == 0) {
_local2.dead16 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy17)) {
_local2.background1.enemy17.play();
if (_local2.dead17 == 0) {
_local2.dead17 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy18)) {
_local2.background1.enemy18.play();
if (_local2.dead18 == 0) {
_local2.dead18 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy19)) {
_local2.background1.enemy19.play();
if (_local2.dead19 == 0) {
_local2.dead19 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy20)) {
_local2.background1.enemy20.play();
if (_local2.dead20 == 0) {
_local2.dead20 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.snowman1)) {
_local2.background1.building.snowman1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman2)) {
_local2.background1.building.snowman2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman3)) {
_local2.background1.building.snowman3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman4)) {
_local2.background1.building.snowman4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman5)) {
_local2.background1.building.snowman5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman6)) {
_local2.background1.building.snowman6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree1)) {
_local2.background1.tree.tree1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree2)) {
_local2.background1.tree.tree2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree3)) {
_local2.background1.tree.tree3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree4)) {
_local2.background1.tree.tree4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree5)) {
_local2.background1.tree.tree5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree6)) {
_local2.background1.tree.tree6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree7)) {
_local2.background1.tree.tree7.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree8)) {
_local2.background1.tree.tree8.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree9)) {
_local2.background1.tree.tree9.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree10)) {
_local2.background1.tree.tree10.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree11)) {
_local2.background1.tree.tree11.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree12)) {
_local2.background1.tree.tree12.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree13)) {
_local2.background1.tree.tree13.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree14)) {
_local2.background1.tree.tree14.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree15)) {
_local2.background1.tree.tree15.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree16)) {
_local2.background1.tree.tree16.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree17)) {
_local2.background1.tree.tree17.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree18)) {
_local2.background1.tree.tree18.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree19)) {
_local2.background1.tree.tree19.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree20)) {
_local2.background1.tree.tree20.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car1)) {
if (_local2.car1hp < 1) {
_local2.background1.building.car1.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car1hp = _local2.car1hp - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.car2)) {
if (_local2.car2hp < 1) {
_local2.background1.building.car2.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car2hp = _local2.car2hp - 1;
_local2.background1.building.car2._alpha = _local2.background1.building.car2._alpha - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.car3)) {
if (_local2.car3hp < 1) {
_local2.background1.building.car3.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car3hp = _local2.car3hp - 1;
_local2.background1.building.car3._alpha = _local2.background1.building.car3._alpha - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.building1)) {
if (_local2.autofire == 1) {
if (_local2.building1hp < 1) {
_local2.background1.building.building1.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.building1hp = _local2.building1hp - 1;
}
}
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.building2)) {
if (_local2.autofire == 1) {
if (_local2.building2hp < 1) {
_local2.background1.building.building2.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.building2hp = _local2.building2hp - 1;
}
}
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
};
};
_global.shoot1 = function (speed, mc) {
var _local1 = _root;
var _local2 = this;
var _local3 = mc;
d++;
bullet = _local1.attachMovie("bullet", "b" + d, d);
var angle = Math.atan2(_local1._ymouse - _local3._y, _local1._xmouse - _local3._x);
var xdist = (Math.cos(angle) * speed);
var ydist = (Math.sin(angle) * speed);
bullet.xv = xdist;
bullet.yv = ydist;
bullet._x = _local3._x;
bullet._y = _local3._y;
bullet._rotation = rotMouse();
bullet.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._x = _local1._x + (_local1.xv + 1);
_local1._y = _local1._y + (_local1.yv + 1);
if (_local1.hitTest(_local2.stage)) {
} else {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.enemy)) {
_local2.background1.enemy.play();
if (_local2.dead == 0) {
_local2.dead = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy1)) {
_local2.background1.enemy1.play();
if (_local2.dead1 == 0) {
_local2.dead1 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy2)) {
_local2.background1.enemy2.play();
if (_local2.dead2 == 0) {
_local2.dead2 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy3)) {
_local2.background1.enemy3.play();
if (_local2.dead3 == 0) {
_local2.dead3 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy4)) {
_local2.background1.enemy4.play();
if (_local2.dead4 == 0) {
_local2.dead4 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy5)) {
_local2.background1.enemy5.play();
if (_local2.dead5 == 0) {
_local2.dead5 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy6)) {
_local2.background1.enemy6.play();
if (_local2.dead6 == 0) {
_local2.dead6 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy7)) {
_local2.background1.enemy7.play();
if (_local2.dead7 == 0) {
_local2.dead7 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy8)) {
_local2.background1.enemy8.play();
if (_local2.dead8 == 0) {
_local2.dead8 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy9)) {
_local2.background1.enemy9.play();
if (_local2.dead9 == 0) {
_local2.dead9 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy10)) {
_local2.background1.enemy10.play();
if (_local2.dead10 == 0) {
_local2.dead10 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy11)) {
_local2.background1.enemy11.play();
if (_local2.dead11 == 0) {
_local2.dead11 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy12)) {
_local2.background1.enemy12.play();
if (_local2.dead12 == 0) {
_local2.dead12 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy13)) {
_local2.background1.enemy13.play();
if (_local2.dead13 == 0) {
_local2.dead13 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy14)) {
_local2.background1.enemy14.play();
if (_local2.dead14 == 0) {
_local2.dead14 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy15)) {
_local2.background1.enemy15.play();
if (_local2.dead15 == 0) {
_local2.dead15 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy16)) {
_local2.background1.enemy16.play();
if (_local2.dead16 == 0) {
_local2.dead16 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy17)) {
_local2.background1.enemy17.play();
if (_local2.dead17 == 0) {
_local2.dead17 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy18)) {
_local2.background1.enemy18.play();
if (_local2.dead18 == 0) {
_local2.dead18 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy19)) {
_local2.background1.enemy19.play();
if (_local2.dead19 == 0) {
_local2.dead19 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy20)) {
_local2.background1.enemy20.play();
if (_local2.dead20 == 0) {
_local2.dead20 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.snowman1)) {
_local2.background1.building.snowman1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman2)) {
_local2.background1.building.snowman2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman3)) {
_local2.background1.building.snowman3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman4)) {
_local2.background1.building.snowman4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman5)) {
_local2.background1.building.snowman5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman6)) {
_local2.background1.building.snowman6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree1)) {
_local2.background1.tree.tree1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree2)) {
_local2.background1.tree.tree2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree3)) {
_local2.background1.tree.tree3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree4)) {
_local2.background1.tree.tree4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree5)) {
_local2.background1.tree.tree5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree6)) {
_local2.background1.tree.tree6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree7)) {
_local2.background1.tree.tree7.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree8)) {
_local2.background1.tree.tree8.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree9)) {
_local2.background1.tree.tree9.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree10)) {
_local2.background1.tree.tree10.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree11)) {
_local2.background1.tree.tree11.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree12)) {
_local2.background1.tree.tree12.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree13)) {
_local2.background1.tree.tree13.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree14)) {
_local2.background1.tree.tree14.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree15)) {
_local2.background1.tree.tree15.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree16)) {
_local2.background1.tree.tree16.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree17)) {
_local2.background1.tree.tree17.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree18)) {
_local2.background1.tree.tree18.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree19)) {
_local2.background1.tree.tree19.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree20)) {
_local2.background1.tree.tree20.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car1)) {
if (_local2.car1hp < 1) {
_local2.background1.building.car1.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car1hp = _local2.car1hp - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.car2)) {
if (_local2.car2hp < 1) {
_local2.background1.building.car2.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car2hp = _local2.car2hp - 1;
_local2.background1.building.car2._alpha = _local2.background1.building.car2._alpha - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.car3)) {
if (_local2.car3hp < 1) {
_local2.background1.building.car3.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car3hp = _local2.car3hp - 1;
_local2.background1.building.car3._alpha = _local2.background1.building.car3._alpha - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.building1)) {
if (_local2.autofire == 1) {
if (_local2.building1hp < 1) {
_local2.background1.building.building1.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.building1hp = _local2.building1hp - 1;
}
}
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.building2)) {
if (_local2.autofire == 1) {
if (_local2.building2hp < 1) {
_local2.background1.building.building2.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.building2hp = _local2.building2hp - 1;
}
}
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
};
};
_global.shoot2 = function (speed, mc) {
var _local1 = _root;
var _local2 = this;
var _local3 = mc;
d++;
bullet = _local1.attachMovie("bullet", "b" + d, d);
var angle = Math.atan2(_local1._ymouse - _local3._y, _local1._xmouse - _local3._x);
var xdist = (Math.cos(angle) * speed);
var ydist = (Math.sin(angle) * speed);
bullet.xv = xdist;
bullet.yv = ydist;
bullet._x = _local3._x;
bullet._y = _local3._y;
bullet._rotation = rotMouse();
bullet.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._x = _local1._x + (_local1.xv - 1);
_local1._y = _local1._y + (_local1.yv - 1);
if (_local1.hitTest(_local2.stage)) {
} else {
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.enemy)) {
_local2.background1.enemy.play();
if (_local2.dead == 0) {
_local2.dead = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy1)) {
_local2.background1.enemy1.play();
if (_local2.dead1 == 0) {
_local2.dead1 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy2)) {
_local2.background1.enemy2.play();
if (_local2.dead2 == 0) {
_local2.dead2 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy3)) {
_local2.background1.enemy3.play();
if (_local2.dead3 == 0) {
_local2.dead3 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy4)) {
_local2.background1.enemy4.play();
if (_local2.dead4 == 0) {
_local2.dead4 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy5)) {
_local2.background1.enemy5.play();
if (_local2.dead5 == 0) {
_local2.dead5 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy6)) {
_local2.background1.enemy6.play();
if (_local2.dead6 == 0) {
_local2.dead6 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy7)) {
_local2.background1.enemy7.play();
if (_local2.dead7 == 0) {
_local2.dead7 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy8)) {
_local2.background1.enemy8.play();
if (_local2.dead8 == 0) {
_local2.dead8 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy9)) {
_local2.background1.enemy9.play();
if (_local2.dead9 == 0) {
_local2.dead9 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy10)) {
_local2.background1.enemy10.play();
if (_local2.dead10 == 0) {
_local2.dead10 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy11)) {
_local2.background1.enemy11.play();
if (_local2.dead11 == 0) {
_local2.dead11 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy12)) {
_local2.background1.enemy12.play();
if (_local2.dead12 == 0) {
_local2.dead12 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy13)) {
_local2.background1.enemy13.play();
if (_local2.dead13 == 0) {
_local2.dead13 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy14)) {
_local2.background1.enemy14.play();
if (_local2.dead14 == 0) {
_local2.dead14 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy15)) {
_local2.background1.enemy15.play();
if (_local2.dead15 == 0) {
_local2.dead15 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy16)) {
_local2.background1.enemy16.play();
if (_local2.dead16 == 0) {
_local2.dead16 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy17)) {
_local2.background1.enemy17.play();
if (_local2.dead17 == 0) {
_local2.dead17 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy18)) {
_local2.background1.enemy18.play();
if (_local2.dead18 == 0) {
_local2.dead18 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy19)) {
_local2.background1.enemy19.play();
if (_local2.dead19 == 0) {
_local2.dead19 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.enemy20)) {
_local2.background1.enemy20.play();
if (_local2.dead20 == 0) {
_local2.dead20 = 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.snowman1)) {
_local2.background1.building.snowman1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman2)) {
_local2.background1.building.snowman2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman3)) {
_local2.background1.building.snowman3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman4)) {
_local2.background1.building.snowman4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman5)) {
_local2.background1.building.snowman5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.snowman6)) {
_local2.background1.building.snowman6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree1)) {
_local2.background1.tree.tree1.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree2)) {
_local2.background1.tree.tree2.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree3)) {
_local2.background1.tree.tree3.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree4)) {
_local2.background1.tree.tree4.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree5)) {
_local2.background1.tree.tree5.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree6)) {
_local2.background1.tree.tree6.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree7)) {
_local2.background1.tree.tree7.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree8)) {
_local2.background1.tree.tree8.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree9)) {
_local2.background1.tree.tree9.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree10)) {
_local2.background1.tree.tree10.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree11)) {
_local2.background1.tree.tree11.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree12)) {
_local2.background1.tree.tree12.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree13)) {
_local2.background1.tree.tree13.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree14)) {
_local2.background1.tree.tree14.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree15)) {
_local2.background1.tree.tree15.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree16)) {
_local2.background1.tree.tree16.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree17)) {
_local2.background1.tree.tree17.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree18)) {
_local2.background1.tree.tree18.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree19)) {
_local2.background1.tree.tree19.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.tree.tree20)) {
_local2.background1.tree.tree20.play();
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.car1)) {
if (_local2.car1hp < 1) {
_local2.background1.building.car1.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car1hp = _local2.car1hp - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.car2)) {
if (_local2.car2hp < 1) {
_local2.background1.building.car2.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car2hp = _local2.car2hp - 1;
_local2.background1.building.car2._alpha = _local2.background1.building.car2._alpha - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.car3)) {
if (_local2.car3hp < 1) {
_local2.background1.building.car3.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.car3hp = _local2.car3hp - 1;
_local2.background1.building.car3._alpha = _local2.background1.building.car3._alpha - 1;
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
}
if (_local1.hitTest(_local2.background1.building.building1)) {
if (_local2.autofire == 1) {
if (_local2.building1hp < 1) {
_local2.background1.building.building1.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.building1hp = _local2.building1hp - 1;
}
}
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
if (_local1.hitTest(_local2.background1.building.building2)) {
if (_local2.autofire == 1) {
if (_local2.building2hp < 1) {
_local2.background1.building.building2.play();
} else {
autofiresound = new Sound(_local1);
autofiresound.attachSound("ric2");
autofiresound.start(0, 1);
_local2.building2hp = _local2.building2hp - 1;
}
}
delete _local1.onEnterFrame;
removeMovieClip(_local1);
}
};
};
Instance of Symbol 408 MovieClip "man" in Frame 9
onClipEvent (enterFrame) {
if (((((((((((((((((((((_root.dead == 1) and (_root.dead1 == 1)) and (_root.dead2 == 1)) and (_root.dead3 == 1)) and (_root.dead4 == 1)) and (_root.dead5 == 1)) and (_root.dead6 == 1)) and (_root.dead7 == 1)) and (_root.dead8 == 1)) and (_root.dead9 == 1)) and (_root.dead10 == 1)) and (_root.dead11 == 1)) and (_root.dead12 == 1)) and (_root.dead13 == 1)) and (_root.dead14 == 1)) and (_root.dead15 == 1)) and (_root.dead16 == 1)) and (_root.dead17 == 1)) and (_root.dead18 == 1)) and (_root.dead19 == 1)) and (_root.dead20 == 1)) {
_root.instructions._visible = 1;
}
if (((((((((((((((((((((((_root.dead == 1) and (_root.dead1 == 1)) and (_root.dead2 == 1)) and (_root.dead3 == 1)) and (_root.dead4 == 1)) and (_root.dead5 == 1)) and (_root.dead6 == 1)) and (_root.dead7 == 1)) and (_root.dead8 == 1)) and (_root.dead9 == 1)) and (_root.dead10 == 1)) and (_root.dead11 == 1)) and (_root.dead12 == 1)) and (_root.dead13 == 1)) and (_root.dead14 == 1)) and (_root.dead15 == 1)) and (_root.dead16 == 1)) and (_root.dead17 == 1)) and (_root.dead18 == 1)) and (_root.dead19 == 1)) and (_root.dead20 == 1)) and (_root.building1blown == 1)) and (_root.building2blown == 1)) {
_root.level3done = 1;
_root.instructions._visible = 0;
_root.gotoAndPlay("endlevel");
}
if (_root.life < 1) {
_root.recruits = _root.recruits - 1;
_root.gotoAndPlay("endlevel");
}
var dx = this._xmouse;
var dy = this._ymouse;
angle = Math.atan2(dy, dx);
frameNbr = (Math.round(8 + ((4 * angle) / Math.PI)) % 8) + 1;
this.gotoAndStop(frameNbr);
myBounce = 6;
if (_root.background1.building.hitTest(getBounds(_root).xMax, _y, true)) {
_root.background1._x = _root.background1._x + myBounce;
}
if (_root.background1.building.hitTest(getBounds(_root).xMin, _y, true)) {
_root.background1._x = _root.background1._x - myBounce;
}
if (_root.background1.building.hitTest(_x, getBounds(_root).yMax, true)) {
_root.background1._y = _root.background1._y + myBounce;
}
if (_root.background1.building.hitTest(_x, getBounds(_root).yMin, true)) {
_root.background1._y = _root.background1._y - myBounce;
}
if (_root.background1.tree.hitTest(getBounds(_root).xMax, _y, true)) {
_root.background1._x = _root.background1._x + myBounce;
}
if (_root.background1.tree.hitTest(getBounds(_root).xMin, _y, true)) {
_root.background1._x = _root.background1._x - myBounce;
}
if (_root.background1.tree.hitTest(_x, getBounds(_root).yMax, true)) {
_root.background1._y = _root.background1._y + myBounce;
}
if (_root.background1.tree.hitTest(_x, getBounds(_root).yMin, true)) {
_root.background1._y = _root.background1._y - myBounce;
}
if (_root.background1.ammocrate.hitTest(getBounds(_root).xMax, _y, true)) {
_root.ammo = _root.ammo + 200;
_root.background1.ammocrate._x = -400;
}
if (_root.background1.ammocrate.hitTest(getBounds(_root).xMin, _y, true)) {
_root.ammo = _root.ammo + 200;
_root.background1.ammocrate._x = -400;
}
if (_root.background1.ammocrate.hitTest(_x, getBounds(_root).yMax, true)) {
_root.ammo = _root.ammo + 200;
_root.background1.ammocrate._x = -400;
}
if (_root.background1.ammocrate.hitTest(_x, getBounds(_root).yMin, true)) {
_root.ammo = _root.ammo + 200;
_root.background1.ammocrate._x = -400;
}
}
onClipEvent (mouseDown) {
function wait() {
_root.ready = 1;
clearInterval(myTimer);
}
if (_root.ready == 1) {
if (_root.pistol > 0) {
_root.man.matey.gotoAndPlay("firing");
if (_root.autofire == 0) {
if (_root.ammo > 0) {
autofiresound = new Sound(_root);
autofiresound.attachSound("pistol");
autofiresound.start(0, 1);
shoot(35, this);
_root.ammo = _root.ammo - 1;
_root.pistol = _root.pistol - 1;
_root.autofire = 1;
}
}
} else {
myTimer = setInterval(wait, 1000);
reloadsound = new Sound(_root);
reloadsound.attachSound("reload");
reloadsound.start(0, 1);
_root.ready = 0;
_root.pistol = 7;
}
}
}
onClipEvent (mouseUp) {
_root.autofire = 0;
}
Frame 10
stop();
mouse.show();
if (_root.recruits < 1) {
_root.gotoAndPlay("submitscore");
}
if (level1done == 1) {
_root.level1.gotoAndStop(21);
}
if (level2done == 1) {
_root.level2.gotoAndStop(21);
}
if (level3done == 1) {
_root.level3.gotoAndStop(21);
}
if (level4done == 1) {
_root.level4.gotoAndStop(21);
}
if (level5done == 1) {
_root.level5.gotoAndStop(21);
}
Instance of Symbol 468 MovieClip in Frame 10
/* no clip actions */
Instance of Symbol 471 MovieClip "recruit1" in Frame 10
onClipEvent (load) {
if (_root.recruits > 2) {
this._visible = 1;
} else {
this._visible = 0;
}
}
Instance of Symbol 471 MovieClip "recruit1" in Frame 10
onClipEvent (load) {
if (_root.recruits > 1) {
this._visible = 1;
} else {
this._visible = 0;
}
}
Instance of Symbol 471 MovieClip "recruit1" in Frame 10
onClipEvent (load) {
if (_root.recruits > 0) {
this._visible = 1;
}
}
Frame 11
stop();
mouse.show();
Instance of Symbol 501 MovieClip in Frame 11
onClipEvent (load) {
_root.myvalue = (_root.totalscore + (1 + ((_root.life / 5) * _root.difficulty))) + (_root.ammo + _root.score);
_root.proceed._visible = 0;
}
onClipEvent (enterFrame) {
if (_root.life < 0) {
_root.life = 0;
}
if (_root.totalscore < _root.myvalue) {
point = new Sound(_root);
point.attachSound("point");
point.start(0, 1);
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
onClipEvent (enterFrame) {
if (_root.totalscore < _root.myvalue) {
_root.totalscore = _root.totalscore + 1;
} else {
_root.proceed._visible = 1;
}
}
Frame 12
stop();
mouse.show();
_root.totalscore = _root.totalscore + (_root.recruits * 500);
Frame 13
stop();
Symbol 22 MovieClip [Defaults] Frame 1
#initclip 1
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 23 MovieClip [UIObjectExtensions] Frame 1
#initclip 2
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 24 MovieClip [UIObject] Frame 1
#initclip 3
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 27 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 28 MovieClip [FocusRect] Frame 1
#initclip 4
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 29 MovieClip [FocusManager] Frame 1
#initclip 5
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 30 MovieClip [UIComponentExtensions] Frame 1
#initclip 6
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 31 MovieClip [UIComponent] Frame 1
#initclip 7
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 33 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 35 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 38 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 40 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 43 MovieClip [SimpleButton] Frame 1
#initclip 8
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 46 MovieClip [Border] Frame 1
#initclip 9
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 47 MovieClip [RectBorder] Frame 1
#initclip 10
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 48 MovieClip [TextInput] Frame 1
#initclip 11
Object.registerClass("TextInput", mx.controls.TextInput);
#endinitclip
stop();
Symbol 49 MovieClip [ComboBase] Frame 1
#initclip 12
mx.controls.listclasses.DataSelector.Initialize(Object(mx.controls.ComboBase).prototype);
Object.registerClass("ComboBase", mx.controls.ComboBase);
#endinitclip
stop();
Instance of Symbol 43 MovieClip [SimpleButton] in Symbol 49 MovieClip [ComboBase] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 48 MovieClip [TextInput] in Symbol 49 MovieClip [ComboBase] Frame 2
//component parameters
onClipEvent (initialize) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "null";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 50 MovieClip [DataProvider] Frame 1
#initclip 13
Object.registerClass("DataProvider", mx.controls.listclasses.DataProvider);
#endinitclip
stop();
Symbol 51 MovieClip [DataSelector] Frame 1
#initclip 14
Object.registerClass("DataSelector", mx.controls.listclasses.DataSelector);
#endinitclip
stop();
Symbol 52 MovieClip [SelectableRow] Frame 1
#initclip 15
Object.registerClass("SelectableRow", mx.controls.listclasses.SelectableRow);
#endinitclip
stop();
Symbol 53 MovieClip [ButtonSkin] Frame 1
#initclip 16
Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin);
#endinitclip
Symbol 54 MovieClip [Button] Frame 1
#initclip 17
Object.registerClass("Button", mx.controls.Button);
#endinitclip
stop();
Instance of Symbol 43 MovieClip [SimpleButton] in Symbol 54 MovieClip [Button] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 55 MovieClip [CustomBorder] Frame 1
#initclip 18
Object.registerClass("CustomBorder", mx.skins.CustomBorder);
mx.skins.SkinElement.registerElement("CustomBorder", mx.skins.CustomBorder);
#endinitclip
Symbol 67 MovieClip [ScrollThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 69 MovieClip [ScrollThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 80 MovieClip [ThumbThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 82 MovieClip [ThumbThemeColor3] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 89 MovieClip [ThumbThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 110 MovieClip [BtnDownArrow] Frame 1
#initclip 19
Object.registerClass("BtnDownArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 111 MovieClip [BtnUpArrow] Frame 1
#initclip 20
Object.registerClass("BtnUpArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 113 MovieClip [HScrollBar] Frame 1
#initclip 21
Object.registerClass("HScrollBar", mx.controls.HScrollBar);
#endinitclip
stop();
Instance of Symbol 54 MovieClip [Button] in Symbol 113 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 43 MovieClip [SimpleButton] in Symbol 113 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 114 MovieClip [VScrollBar] Frame 1
#initclip 22
Object.registerClass("VScrollBar", mx.controls.VScrollBar);
#endinitclip
stop();
Instance of Symbol 54 MovieClip [Button] in Symbol 114 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 43 MovieClip [SimpleButton] in Symbol 114 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 115 MovieClip [View] Frame 1
#initclip 23
Object.registerClass("View", mx.core.View);
#endinitclip
stop();
Symbol 116 MovieClip [ScrollView] Frame 1
#initclip 24
Object.registerClass("ScrollView", mx.core.ScrollView);
#endinitclip
stop();
Instance of Symbol 113 MovieClip [HScrollBar] in Symbol 116 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 114 MovieClip [VScrollBar] in Symbol 116 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 117 MovieClip [ScrollSelectList] Frame 1
#initclip 25
Object.registerClass("ScrollSelectList", mx.controls.listclasses.ScrollSelectList);
#endinitclip
stop();
Symbol 118 MovieClip [List] Frame 1
#initclip 26
Object.registerClass("List", mx.controls.List);
#endinitclip
stop();
Symbol 124 MovieClip [ComboDownArrowDisabled] Frame 1
#initclip 27
Object.registerClass("ComboDownArrowDisabled", mx.controls.SimpleButton);
#endinitclip
Symbol 126 MovieClip [ComboThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 129 MovieClip [ComboAssets] Frame 1
#initclip 28
mx.controls.ComboBox.prototype.downArrowUpName = "ComboDownArrowUp";
mx.controls.ComboBox.prototype.downArrowDownName = "ComboDownArrowDown";
mx.controls.ComboBox.prototype.downArrowOverName = "ComboDownArrowOver";
mx.controls.ComboBox.prototype.downArrowDisabledName = "ComboDownArrowDisabled";
mx.controls.ComboBox.prototype.wrapDownArrowButton = false;
mx.controls.ComboBox.prototype.dropDownBorderStyle = "solid";
mx.controls.ComboBox.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, {bl:0, tl:0, tr:5, br:5}, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
#endinitclip
Symbol 130 MovieClip [ComboBox] Frame 1
#initclip 29
Object.registerClass("ComboBox", mx.controls.ComboBox);
#endinitclip
stop();
Instance of Symbol 118 MovieClip [List] in Symbol 130 MovieClip [ComboBox] Frame 2
//component parameters
onClipEvent (initialize) {
multipleSelection = false;
rowHeight = 20;
}
Symbol 174 MovieClip [originalbullet] Frame 1
Symbol 184 MovieClip Frame 5
gotoAndPlay (1);
Symbol 185 MovieClip [matey_back_right] Frame 1
stop();
Symbol 185 MovieClip [matey_back_right] Frame 15
gotoAndPlay (2);
Symbol 185 MovieClip [matey_back_right] Frame 16
play();
Symbol 187 MovieClip [matey_back_left] Frame 1
stop();
Symbol 187 MovieClip [matey_back_left] Frame 15
gotoAndPlay (2);
Symbol 187 MovieClip [matey_back_left] Frame 16
play();
Symbol 194 MovieClip [matey_left] Frame 1
stop();
stop();
Symbol 194 MovieClip [matey_left] Frame 14
gotoAndPlay (2);
Symbol 194 MovieClip [matey_left] Frame 15
play();
Symbol 198 MovieClip [matey_front_left] Frame 1
stop();
Symbol 198 MovieClip [matey_front_left] Frame 10
gotoAndPlay (2);
Symbol 198 MovieClip [matey_front_left] Frame 11
play();
Symbol 202 MovieClip [matey_front_right] Frame 1
stop();
Symbol 202 MovieClip [matey_front_right] Frame 10
gotoAndPlay (2);
Symbol 202 MovieClip [matey_front_right] Frame 11
play();
Symbol 208 MovieClip [matey_right] Frame 1
stop();
Symbol 208 MovieClip [matey_right] Frame 16
gotoAndPlay (2);
Symbol 208 MovieClip [matey_right] Frame 17
play();
Symbol 208 MovieClip [matey_right] Frame 18
if (_root.autofire == 1) {
gotoAndPlay ("firing");
} else {
gotoAndStop (1);
}
Symbol 208 MovieClip [matey_right] Frame 19
gotoAndPlay ("firing");
Symbol 213 MovieClip [tree] Frame 1
stop();
this.dead = 0;
Symbol 213 MovieClip [tree] Frame 94
stop();
Symbol 213 MovieClip [tree] Frame 95
gotoAndStop (94);
Symbol 222 MovieClip Frame 1
if (_root.walking == 0) {
stop();
}
if (_root.walking == 0) {
stop();
}
Symbol 222 MovieClip Frame 2
_root.score = _root.score + 50;
_root.killed = _root.killed + 1;
ouch = new Sound(this);
ouch.attachSound("ouch");
ouch.start(0, 1);
Symbol 222 MovieClip Frame 12
stop();
Symbol 222 MovieClip Frame 13
gotoAndPlay (12);
Symbol 230 MovieClip Frame 1
stop();
Instance of Symbol 225 MovieClip in Symbol 230 MovieClip Frame 1
onClipEvent (load) {
if (_root.nextlevel == 1) {
gotoAndStop (1);
}
}
Symbol 230 MovieClip Frame 2
_root.score = _root.score + 50;
_root.killed = _root.killed + 1;
ouch = new Sound(this);
ouch.attachSound("ouch");
ouch.start(0, 1);
Symbol 230 MovieClip Frame 7
stop();
Symbol 230 MovieClip Frame 8
gotoAndPlay (7);
Symbol 237 MovieClip Frame 1
loops = 0;
_root.target_x = Math.random() * 300;
_root.target_y = Math.random() * 100;
_root.target_x1 = Math.random() * 250;
_root.target_y1 = Math.random() * 150;
_root.target_x2 = Math.random() * 200;
_root.target_y2 = Math.random() * 100;
_root.target_x - _root.background1;
_root.xdiv = enemy._x / 50;
_root.ydiv = (_root.target_y - _root.background1.enemy._y) / 50;
_root.target_x1 - _root.background1;
_root.xdiv1 = enemy._x / 50;
_root.target_y1 - _root.background1;
_root.ydiv1 = enemy._y / 50;
_root.target_x2 - _root.background1;
_root.xdiv2 = enemy._x / 50;
_root.target_y2 - _root.background1;
_root.ydiv2 = enemy._y / 50;
Symbol 237 MovieClip Frame 2
loops++;
if (_root.begin == 1) {
if (_root.dead == 0) {
_root.background1.enemy._x = _root.background1.enemy._x + _root.xdiv;
_root.background1.enemy._y = _root.background1.enemy._y + _root.ydiv;
}
if (_root.dead1 == 0) {
_root.background1.enemy1._x = _root.background1.enemy1._x + _root.xdiv1;
_root.background1.enemy1._y = _root.background1.enemy1._y + _root.ydiv1;
}
if (_root.dead2 == 0) {
_root.background1.enemy2._x = _root.background1.enemy2._x + _root.xdiv2;
_root.background1.enemy2._y = _root.background1.enemy2._y + _root.ydiv2;
}
if (_root.dead3 == 0) {
_root.background1.enemy3._x = _root.background1.enemy3._x + _root.xdiv;
_root.background1.enemy3._y = _root.background1.enemy3._y + _root.ydiv;
}
}
Symbol 237 MovieClip Frame 3
loops++;
_root.enemy._x = _root.enemy._x + _root.xdiv;
_root.enemy._y = _root.enemy._y + _root.ydiv;
_root.enemy1._x = _root.enemy1._x + _root.xdiv2;
_root.enemy1._y = _root.enemy1._y + _root.ydiv2;
_root.enemy2._x = _root.enemy2._x + _root.xdiv1;
_root.enemy2._y = _root.enemy2._y + _root.ydiv1;
_root.enemy3._x = _root.enemy3._x + _root.xdiv1;
_root.enemy3._y = _root.enemy3._y + _root.ydiv1;
if (loops < 20) {
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}
Symbol 242 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 15
stop();
Symbol 252 MovieClip Frame 16
gotoAndPlay (15);
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 2
_root.score = _root.score + 20;
bomb = new Sound(this);
bomb.attachSound("bomb");
bomb.start(0, 1);
Symbol 282 MovieClip Frame 29
stop();
Symbol 282 MovieClip Frame 30
gotoAndPlay (29);
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 3
_root.score = _root.score + 1000;
Symbol 297 MovieClip Frame 29
_root.armed = 0;
_root.planted = 0;
_root.weapon = "machinegun";
stop();
Symbol 297 MovieClip Frame 30
gotoAndPlay (29);
Symbol 302 MovieClip [map] Frame 1
Instance of Symbol 222 MovieClip "enemy13" in Symbol 302 MovieClip [map] Frame 1
onClipEvent (enterFrame) {
if (_root.dead13 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy3" in Symbol 302 MovieClip [map] Frame 1
onClipEvent (enterFrame) {
if (_root.dead3 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy1" in Symbol 302 MovieClip [map] Frame 1
onClipEvent (enterFrame) {
if (_root.dead1 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy" in Symbol 302 MovieClip [map] Frame 1
onClipEvent (enterFrame) {
if (_root.dead == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy20" in Symbol 302 MovieClip [map] Frame 1
onClipEvent (enterFrame) {
if (_root.dead20 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy16" in Symbol 302 MovieClip [map] Frame 1
onClipEvent (enterFrame) {
if (_root.dead16 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy17" in Symbol 302 MovieClip [map] Frame 1
onClipEvent (enterFrame) {
if (_root.dead17 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy18" in Symbol 302 MovieClip [map] Frame 1
onClipEvent (enterFrame) {
if (_root.dead18 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy19" in Symbol 302 MovieClip [map] Frame 1
onClipEvent (enterFrame) {
if (_root.dead19 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy15" in Symbol 302 MovieClip [map] Frame 1
onClipEvent (enterFrame) {
if (_root.dead15 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy12" in Symbol 302 MovieClip [map] Frame 1
onClipEvent (enterFrame) {
if (_root.dead12 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy14" in Symbol 302 MovieClip [map] Frame 1
onClipEvent (enterFrame) {
if (_root.dead14 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy11" in Symbol 302 MovieClip [map] Frame 1
onClipEvent (enterFrame) {
if (_root.dead11 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy10" in Symbol 302 MovieClip [map] Frame 1
onClipEvent (enterFrame) {
if (_root.dead10 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy5" in Symbol 302 MovieClip [map] Frame 1
onClipEvent (enterFrame) {
if (_root.dead5 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy9" in Symbol 302 MovieClip [map] Frame 1
onClipEvent (enterFrame) {
if (_root.dead9 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy8" in Symbol 302 MovieClip [map] Frame 1
onClipEvent (enterFrame) {
if (_root.dead8 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy6" in Symbol 302 MovieClip [map] Frame 1
onClipEvent (enterFrame) {
if (_root.dead6 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy7" in Symbol 302 MovieClip [map] Frame 1
onClipEvent (enterFrame) {
if (_root.dead7 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy4" in Symbol 302 MovieClip [map] Frame 1
onClipEvent (enterFrame) {
if (_root.dead4 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy2" in Symbol 302 MovieClip [map] Frame 1
onClipEvent (enterFrame) {
if (_root.dead2 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Symbol 308 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 313 Button
on (release) {
getURL ("http://www.thorgaming.com/highscores/", "_blank");
}
Symbol 320 Button
on (release) {
getURL ("mailto:info@globalrevise.com");
}
Symbol 324 Button
on (release) {
getURL ("mailto:tom.thornton@btconnect.com");
}
Symbol 347 MovieClip Frame 40
stop();
Symbol 348 MovieClip Frame 12
stop();
Instance of Symbol 348 MovieClip in Symbol 354 MovieClip Frame 116
on (release) {
getURL ("http://www.thorgaming.com", "_blank");
}
Instance of Symbol 353 MovieClip in Symbol 354 MovieClip Frame 240
on (release) {
getURL ("mailto:info@globalrevise.com");
}
Instance of Symbol 353 MovieClip in Symbol 354 MovieClip Frame 247
on (release) {
getURL ("www.flipmonroe.com");
}
Instance of Symbol 353 MovieClip in Symbol 354 MovieClip Frame 287
on (release) {
getURL ("mailto:info@globalrevise.com");
}
Symbol 354 MovieClip Frame 303
gotoAndPlay (1);
Instance of Symbol 353 MovieClip in Symbol 354 MovieClip Frame 303
on (release) {
getURL ("mailto:info@globalrevise.co.uk");
}
Symbol 360 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded * 1.69);
} else {
_root.startbutton._alpha = 100;
_root.startbutton._y = 320;
setProperty(bar, _xscale , PercentLoaded * 1.69);
_root.loading._alpha = 0;
}
Symbol 360 MovieClip Frame 2
gotoAndPlay (1);
Symbol 364 Button
on (release) {
welcome = new Sound(_root);
welcome.attachSound("welcome");
welcome.start(0, 1);
_root.gotoAndPlay(2);
}
Symbol 369 Button
on (release) {
welcome = new Sound(_root);
welcome.attachSound("welcome");
welcome.start(0, 1);
_root.gotoAndStop("options");
}
Symbol 372 Button
on (release) {
welcome = new Sound(_root);
welcome.attachSound("welcome");
welcome.start(0, 1);
_root.gotoAndStop("instructions");
}
Symbol 373 Button
on (release) {
welcome = new Sound(_root);
welcome.attachSound("welcome");
welcome.start(0, 1);
_root.gotoAndPlay("difficultyselect");
}
Symbol 384 Button
on (release) {
welcome = new Sound(_root);
welcome.attachSound("welcome");
welcome.start(0, 1);
_root.gotoAndStop(2);
}
Symbol 387 Button
on (release) {
_quality = "HIGH";
}
Symbol 390 Button
on (release) {
_quality = "MEDIUM";
}
Symbol 393 Button
on (release) {
_quality = "LOW";
}
Symbol 403 MovieClip Frame 46
stop();
Symbol 405 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 9
gotoAndPlay (2);
Symbol 405 MovieClip Frame 10
play();
Symbol 407 MovieClip Frame 1
stop();
Symbol 407 MovieClip Frame 11
gotoAndPlay (2);
Symbol 407 MovieClip Frame 12
play();
Symbol 408 MovieClip Frame 1
stop();
Symbol 411 MovieClip Frame 20
gotoAndPlay (1);
Instance of Symbol 413 MovieClip "sprintbar" in Symbol 415 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = _root.stamina;
}
Symbol 426 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 21
gotoAndPlay (1);
Symbol 426 MovieClip Frame 40
gotoAndPlay (1);
Symbol 432 MovieClip Frame 1
stop();
Symbol 432 MovieClip Frame 87
if (_root.man.hitTest(_root.background1.building.building1)) {
_root.buildingcheck = 1;
} else if (_root.man.hitTest(_root.background1.building.building2)) {
_root.buildingcheck = 2;
}
Symbol 432 MovieClip Frame 88
_root.armed = 1;
Symbol 432 MovieClip Frame 241
if (this.hitTest(_root.background1.building.building1)) {
_root.background1.building.building1.play();
if (_root.man.hitTest(_root.background1.building.building1)) {
trace(" die from explosion");
_root.life = 0;
}
}
if (this.hitTest(_root.background1.building.building2)) {
_root.background1.building.building2.play();
if (_root.man.hitTest(_root.background1.building.building2)) {
trace(" die from explosion");
_root.life = 0;
}
}
gotoAndStop (1);
Symbol 437 MovieClip Frame 1
stop();
Symbol 437 MovieClip Frame 10
gotoAndStop (1);
Symbol 441 MovieClip Frame 46
stop();
Symbol 445 MovieClip Frame 1
Instance of Symbol 222 MovieClip "enemy13" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead13 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy3" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead3 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy1" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead1 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy20" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead20 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy16" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead16 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy17" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead17 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy18" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead18 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy19" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead19 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy15" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead15 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy12" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead12 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy14" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead14 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy11" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead11 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy10" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead10 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy5" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead5 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy9" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead9 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy8" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead8 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy6" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead6 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy7" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead7 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy4" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead4 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy2" in Symbol 445 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead2 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Symbol 450 MovieClip Frame 1
Instance of Symbol 222 MovieClip "enemy13" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead13 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy3" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead3 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy1" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead1 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy20" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead20 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy16" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead16 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy17" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead17 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy18" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead18 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy19" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead19 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy15" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead15 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy12" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead12 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy14" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead14 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy11" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead11 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy10" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead10 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy5" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead5 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy9" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead9 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy8" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead8 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy6" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead6 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy7" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead7 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy4" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead4 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy2" in Symbol 450 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead2 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 242 MovieClip in Symbol 453 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 242 MovieClip in Symbol 453 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 252 MovieClip "snowman6" in Symbol 453 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 252 MovieClip "snowman3" in Symbol 453 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 252 MovieClip "snowman5" in Symbol 453 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 252 MovieClip "snowman1" in Symbol 453 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 282 MovieClip "car3" in Symbol 453 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 282 MovieClip "car1" in Symbol 453 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 282 MovieClip "car2" in Symbol 453 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 297 MovieClip "building1" in Symbol 453 MovieClip Frame 1
/* no clip actions */
Symbol 455 MovieClip Frame 1
Instance of Symbol 222 MovieClip "enemy13" in Symbol 455 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead13 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy3" in Symbol 455 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead3 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy1" in Symbol 455 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead1 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy" in Symbol 455 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy20" in Symbol 455 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead20 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy16" in Symbol 455 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead16 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy17" in Symbol 455 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead17 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy18" in Symbol 455 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead18 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy19" in Symbol 455 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead19 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy15" in Symbol 455 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead15 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy12" in Symbol 455 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead12 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy14" in Symbol 455 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead14 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy11" in Symbol 455 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead11 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy10" in Symbol 455 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead10 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy5" in Symbol 455 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead5 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy9" in Symbol 455 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead9 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy8" in Symbol 455 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead8 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy6" in Symbol 455 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead6 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy7" in Symbol 455 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead7 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy4" in Symbol 455 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead4 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy2" in Symbol 455 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead2 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Symbol 457 MovieClip Frame 46
stop();
Symbol 461 MovieClip Frame 1
Instance of Symbol 222 MovieClip "enemy13" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead13 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy3" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead3 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy1" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead1 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy20" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead20 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy16" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead16 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy17" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead17 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy18" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead18 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy19" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead19 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy15" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead15 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy12" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead12 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy14" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead14 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy11" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead11 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy10" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead10 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 222 MovieClip "enemy5" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead5 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy9" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead9 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy8" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead8 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy6" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead6 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy7" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead7 == 0) {
if (Math.round(Math.random() * 10) >= 9) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy4" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead4 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 230 MovieClip "enemy2" in Symbol 461 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.dead2 == 0) {
if (Math.round(Math.random() * 20) >= 19) {
enemyshoot(12, this);
}
}
}
Instance of Symbol 463 MovieClip in Symbol 466 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 60;
}
Symbol 467 MovieClip Frame 1
stop();
Instance of Symbol 466 MovieClip in Symbol 467 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((((_root.level1done == 1) and (_root.level2done == 1)) and (_root.level3done == 1)) and (_root.level4done == 1)) and (_root.level5done == 1)) {
_root.gotoAndPlay("submitscore");
}
}
onClipEvent (keyDown) {
if (_root.level1done == 0) {
if (this.hitTest(_root.level1)) {
_root.level1.gotoAndPlay("over");
} else {
_root.level1.gotoAndPlay(1);
}
}
if (_root.level2done == 0) {
if (this.hitTest(_root.level2)) {
_root.level2.gotoAndPlay("over");
} else {
_root.level2.gotoAndPlay(1);
}
}
if (_root.level3done == 0) {
if (this.hitTest(_root.level3)) {
_root.level3.gotoAndPlay("over");
} else {
_root.level3.gotoAndPlay(1);
}
}
if (_root.level4done == 0) {
if (this.hitTest(_root.level4)) {
_root.level4.gotoAndPlay("over");
} else {
_root.level4.gotoAndPlay(1);
}
}
if (_root.level5done == 0) {
if (this.hitTest(_root.level5)) {
_root.level5.gotoAndPlay("over");
} else {
_root.level5.gotoAndPlay(1);
}
}
}
Symbol 467 MovieClip Frame 15
if (_root.level1done == 0) {
if (this.hitTest(_root.level1)) {
_root.gotoAndStop("level1");
}
} else {
_root.level1.gotoAndStop(21);
}
if (_root.level2done == 0) {
if (this.hitTest(_root.level2)) {
_root.gotoAndStop("level2");
}
} else {
_root.level2.gotoAndStop(21);
}
if (_root.level3done == 0) {
if (this.hitTest(_root.level3)) {
_root.gotoAndStop("level3");
}
} else {
_root.level3.gotoAndStop(21);
}
if (_root.level4done == 0) {
if (this.hitTest(_root.level4)) {
_root.gotoAndStop("level4");
}
} else {
_root.level4.gotoAndStop(21);
}
if (_root.level5done == 0) {
if (this.hitTest(_root.level5)) {
_root.gotoAndStop("level5");
}
} else {
_root.level5.gotoAndStop(21);
}
Symbol 467 MovieClip Frame 30
gotoAndStop (1);
Symbol 468 MovieClip Frame 30
stop();
Instance of Symbol 467 MovieClip "helicopter" in Symbol 468 MovieClip Frame 30
onClipEvent (enterFrame) {
if (this._x > 350) {
this._x = this._x - 20;
}
if (this._y > 400) {
this._y = this._y - 20;
}
if (this._x < -1050) {
this._x = this._x + 20;
}
if (this._y < -500) {
this._y = this._y + 20;
}
if (key.isdown(32)) {
this.play();
}
if (key.isdown(68) or key.isdown(39)) {
this._x = this._x + 15;
this._rotation = 90;
}
if (key.isdown(65) or key.isdown(37)) {
this._x = this._x - 15;
this._rotation = 270;
}
if (key.isdown(87) or key.isdown(38)) {
this._y = this._y - 15;
this._rotation = 0;
}
if (key.isdown(83) or key.isdown(40)) {
this._y = this._y + 15;
this._rotation = 180;
}
}
Symbol 471 MovieClip Frame 1
stop();
Symbol 471 MovieClip Frame 20
gotoAndPlay (2);
Symbol 479 MovieClip Frame 20
gotoAndPlay (1);
Symbol 479 MovieClip Frame 29
gotoAndPlay ("over");
Symbol 490 Button
on (release) {
welcome = new Sound(_root);
welcome.attachSound("welcome");
welcome.start(0, 1);
_root.gotoAndPlay("mapzone");
}
Symbol 508 Button
on (release) {
welcome = new Sound(_root);
welcome.attachSound("welcome");
welcome.start(0, 1);
if (_root.difficulty == 1) {
_root.serverList = new LoadVars();
_root.serverList.load((((("http://www.thorgaming.com/highscores/submit.php?op=Submit&game_id=2&game_name=" + _root.name) + "&game_score=") + _root.totalscore) + "&game_diff=1&nocache=") + random(65000));
_root.serverList.onLoad = function (true) {
if (_root.serverList.result == "ok") {
gotoAndPlay (1);
} else {
gotoAndPlay (1);
}
};
}
if (_root.difficulty == 5) {
_root.serverList = new LoadVars();
_root.serverList.load((((("http://www.thorgaming.com/highscores/submit.php?op=Submit&game_id=2&game_name=" + _root.name) + "&game_score=") + _root.totalscore) + "&game_diff=2&nocache=") + random(65000));
_root.serverList.onLoad = function (true) {
if (_root.serverList.result == "ok") {
gotoAndPlay (1);
} else {
gotoAndPlay (1);
}
};
}
if (_root.difficulty == 10) {
_root.serverList = new LoadVars();
_root.serverList.load((((("http://www.thorgaming.com/highscores/submit.php?op=Submit&game_id=2&game_name=" + _root.name) + "&game_score=") + _root.totalscore) + "&game_diff=3&nocache=") + random(65000));
_root.serverList.onLoad = function (true) {
if (_root.serverList.result == "ok") {
gotoAndPlay (1);
} else {
gotoAndPlay (1);
}
};
}
getURL ("http://www.thorgaming.com/highscores/", "_blank");
}
Symbol 519 Button
on (release) {
welcome = new Sound(_root);
welcome.attachSound("welcome");
welcome.start(0, 1);
gotoAndPlay (1);
}
Symbol 524 Button
on (release) {
welcome = new Sound(_root);
welcome.attachSound("welcome");
welcome.start(0, 1);
_root.difficulty = 10;
gotoAndPlay ("mapzone");
}
Symbol 527 Button
on (release) {
welcome = new Sound(_root);
welcome.attachSound("welcome");
welcome.start(0, 1);
_root.difficulty = 5;
gotoAndPlay ("mapzone");
}
Symbol 530 Button
on (release) {
welcome = new Sound(_root);
welcome.attachSound("welcome");
welcome.start(0, 1);
_root.difficulty = 1;
gotoAndPlay ("mapzone");
}