Frame 1
debug = false;
gameID = 239;
gameName = "the_lost_warrior";
stop();
fscommand ("showmenu", "false");
prel.onEnterFrame = function () {
prel.procent.text = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
prel.gotoAndStop(prel.procent.text);
if (Number(prel.procent.text) > 99) {
play();
delete this.onEnterFrame;
}
};
Frame 2
stop();
Frame 3
if (!okToPlay) {
gotoAndStop (2);
}
Frame 4
stop();
Frame 5
stop();
Frame 6
stop();
Frame 7
function resetheli(thename) {
delete _root.arena.players[thename].havepil;
delete _root.arena.players[thename].havegun;
delete _root.arena.players[thename].live;
delete _root.arena.players[thename].fly;
delete _root.arena.players[thename].ship;
delete _root.arena.players[thename].tower;
delete _root.arena.players[thename].jeep;
delete _root.arena.players[thename].army;
delete _root.arena.players[thename].shipowner;
delete _root.arena.players[thename].owner;
delete _root.arena.players[thename].go;
delete _root.arena.players[thename].gox;
delete _root.arena.players[thename].goy;
delete _root.arena.players[thename].landing;
delete _root.arena.players[thename].goaway;
delete _root.arena.players[thename].skiplanding;
delete _root.arena.players[thename].landingdelay;
delete _root.arena.players[thename].awaydelay;
delete _root.arena.players[thename].onprogress;
}
function resetparachute(thename) {
delete _root.arena.players[thename].para;
delete _root.arena.players[thename].owner;
delete _root.arena.players[thename].guntype;
}
usesound = true;
usesound1 = true;
stop();
if (usesound) {
var bgsound = new Sound();
bgsound.attachSound("bgsound");
bgsound.setVolume(20);
bgsound.start(0, 99999);
var gameoversound = new Sound();
gameoversound.attachSound("gameoversound");
gameoversound.setVolume(100);
var winsound = new Sound();
winsound.attachSound("winsound");
winsound.setVolume(100);
var helisound = new Sound(arena.players);
helisound.attachSound("helisound");
helisound.setVolume(0);
helisound.start(0, 99999);
var pistolsound = new Sound(arena.bullets);
pistolsound.attachSound("pistolsound");
pistolsound.setVolume(100);
var shotgunsound = new Sound(arena.bullets);
shotgunsound.attachSound("shotgunsound");
shotgunsound.setVolume(100);
var uzysound = new Sound(arena.bullets);
uzysound.attachSound("uzysound");
uzysound.setVolume(100);
var machinegunsound = new Sound(arena.bullets);
machinegunsound.attachSound("machinegunsound");
machinegunsound.setVolume(100);
var canonsound = new Sound(arena.bullets);
canonsound.attachSound("canonsound");
canonsound.setVolume(100);
var heligunsound = new Sound(arena.bullets);
heligunsound.attachSound("heligunsound");
heligunsound.setVolume(100);
var blowsound = new Sound(arena.smokes);
blowsound.attachSound("blow");
blowsound.setVolume(100);
var smallblow = new Sound(arena.smokes);
smallblow.attachSound("smallblow");
smallblow.setVolume(100);
var smokesound = new Sound(arena.spots);
smokesound.attachSound("smokesound");
smokesound.setVolume(100);
var pain1 = new Sound(arena.spots);
pain1.attachSound("pain1");
pain1.setVolume(100);
var pain2 = new Sound(arena.spots);
pain2.attachSound("pain2");
pain2.setVolume(100);
var pain3 = new Sound(arena.spots);
pain3.attachSound("pain3");
pain3.setVolume(100);
var pain4 = new Sound(arena.spots);
pain4.attachSound("pain4");
pain4.setVolume(100);
var pain5 = new Sound(arena.spots);
pain5.attachSound("pain5");
pain5.setVolume(100);
}
helisound.onSoundComplete = function () {
helisound.start();
};
bgsound.onSoundComplete = function () {
bgsound.start();
};
var onbar;
var starttime = getTimer();
var troopskilled = 0;
var heliskilled = 0;
var heliscore = 0;
var troopscore = 0;
var healthbonus = 0;
var sumscore = 0;
var bulletdepth = 0;
var playerdepth = 0;
var mapdepth = 0;
var basedepth = 0;
var smokedepth = 0;
var spotdepth = 0;
var helibardepth = 0;
var isPause;
var armycount = 0;
var levelmax = 5;
var level2max = 10;
var helimax = Array(0, 0, 3, 9, 12, 14);
var heli2max = Array(0, 3, 3);
var towermax = Array(0, 0, 0, 3, 0, 3);
var heli3max = Array(0, 0, 0, 0, 2, 4);
var tankmax = Array(0, 0, 0, 0, 0, 3);
var tower3Num = 0;
var tower3ypos = new Array(250, 400, 550);
var tower5Num = 0;
var tower5ypos = new Array(400, 550, 600);
var heli3ypos = 280;
var heli3xpos = -50;
var heli4ypos = 245;
var helicount = 0;
var heli2count = 0;
var towercount = 0;
var spscount = 0;
var heli3count = 0;
var tankcount = 0;
var helinow = 0;
var heli2now = 0;
var towernow = 0;
var spsnow = 0;
var heli3now = 0;
var tanknow = 0;
var plevel = 1;
var currentgun = 1;
var gun2bullets = 100;
var gun3bullets = 50;
var gun4bullets = 0;
var gun5bullets = 0;
var gun1power = 250;
var gun2power = 500;
var gun3power = 750;
var gun4power = 1000;
var gun5power = 2000;
var gunreload = 0;
var gun2everyload = 300;
var gun3everyload = 250;
var gun4everyload = 200;
var gun5everyload = 150;
var healthtimer = 1150;
var guntimer = 900;
var plive = 3;
var thescore = 0;
var totalscore = 0;
var helispeed = Array(0, 60, 55, 50, 45, 40, 0, 0, 0, 0, 0);
var heli2speed = Array(0, 80, 70, 0, 80, 70);
var delayhelishot = Array(0, 16, 12, 8, 2, 1, 0, 0, 0, 0, 0);
var enemydefense = Array(0, 20, 25, 30, 45, 55, 15, 20, 30, 35, 40);
var killscore = Array(0, 10, 20, 35, 50, 75, 100, 150, 200, 350, 500);
depth = playerdepth++;
newplayer = "theplayer";
arena.players.attachMovie("player1", newplayer, depth, {_x:370, _y:400});
arena.players[newplayer].owner = "player";
arena.players[newplayer].commander = true;
arena.players[newplayer].live = 100;
arena.players[newplayer].gotoAndStop(1);
depth = basedepth++;
arena.barrier.pbarriers.attachMovie("pbarrier", arena.players[newplayer]._name, depth, {_x:370, _y:400});
delete depth;
delete newplayer;
Instance of Symbol 2560 MovieClip "arena" in Frame 7
onClipEvent (load) {
var ypos = 0;
var xpos = 0;
}
onClipEvent (enterFrame) {
if (!_root.onPause) {
if (_root.plevel == 1) {
if (_root.stage1Count > 0) {
_root.stage1Count--;
} else {
_root.stage1Count = 0;
}
if ((_root.heli2now < 1) && (_root.heli2count < _root.heli2max[_root.plevel])) {
var heli2ypos = 70;
var heli2xpos = Array(850, 630, 200);
for (var i in heli2xpos) {
var collide2 = true;
do {
collide2 = _root.arena.barrier.helibarriers.hitTest(heli2xpos[i] + _root.arena._x, heli2ypos + _root.arena._y, true);
} while (collide2);
var depth = (_root.playerdepth++);
var newheli2 = ("newheli2" + depth);
_root.arena.players.attachMovie("ship1", newheli2, depth, {_x:heli2xpos[i], _y:heli2ypos, _xscale:30, _yscale:30});
_root.arena.players[newheli2].fly = true;
_root.arena.players[newheli2].ship = true;
_root.arena.players[newheli2].armytotal = 10;
_root.arena.players[newheli2].shipowner = "blue";
_root.arena.players[newheli2].owner = "enemy";
_root.arena.players[newheli2].live = 150;
depth = _root.helibardepth++;
_root.arena.barrier.helibarriers.attachMovie("helibar1", newheli2, depth, {_x:heli2xpos[i], _y:heli2ypos, _xscale:30, _yscale:30});
_root.heli2now++;
_root.heli2count++;
}
} else if (_root.troopskilled == 30) {
if (_root.plevel < _root.levelmax) {
_root.menunextlevel.gotoAndPlay(2);
} else {
_root.menuwin.gotoAndPlay(2);
}
}
} else if (_root.plevel == 2) {
if ((_root.heli2now < 1) && (_root.heli2count < _root.heli2max[_root.plevel])) {
var heli2ypos = 70;
var heli2xpos = Array(830, 630, 200);
for (var i in heli2xpos) {
var collide2 = true;
do {
collide2 = _root.arena.barrier.helibarriers.hitTest(heli2xpos[i] + _root.arena._x, heli2ypos + _root.arena._y, true);
} while (collide2);
var depth = (_root.playerdepth++);
var newheli2 = ("newheli2" + depth);
_root.arena.players.attachMovie("ship2", newheli2, depth, {_x:heli2xpos[i], _y:heli2ypos, _xscale:30, _yscale:30});
_root.arena.players[newheli2].fly = true;
_root.arena.players[newheli2].ship = true;
_root.arena.players[newheli2].shipowner = "red";
_root.arena.players[newheli2].armytotal = 10;
_root.arena.players[newheli2].owner = "enemy";
_root.arena.players[newheli2].live = 200;
depth = _root.helibardepth++;
_root.arena.barrier.helibarriers.attachMovie("helibar1", newheli2, depth, {_x:heli2xpos[i], _y:heli2ypos, _xscale:30, _yscale:30});
_root.heli2now++;
_root.heli2count++;
}
} else if ((_root.helinow < 1) && (_root.helicount < _root.helimax[_root.plevel])) {
var helixpos = 1600;
var heliypos = 0;
var collide = true;
do {
helixpos = 200 + random(_root.arena.bg._width - 100);
collide = _root.arena.barrier.helibarriers.hitTest(helixpos + _root.arena._x, heliypos + _root.arena._y, true);
} while (collide);
var depth = (_root.playerdepth++);
var newheli = ("newheli" + depth);
_root.arena.players.attachMovie("heli1", newheli, depth, {_x:helixpos, _y:heliypos});
_root.arena.players[newheli].fly = true;
_root.arena.players[newheli].owner = "enemy";
_root.arena.players[newheli].live = 150;
if (_root.bonusgun) {
_root.arena.players[newheli].havegun = _root.bonusgun;
delete _root.bonusgun;
} else if (_root.bonushealth) {
_root.arena.players[newheli].havepil = true;
delete _root.bonushealth;
}
depth = _root.helibardepth++;
_root.arena.barrier.helibarriers.attachMovie("helibar", newheli, depth, {_x:helixpos, _y:heliypos});
_root.helinow++;
_root.helicount++;
} else if (((_root.armycount <= 0) && (_root.helinow <= 0)) && (_root.helicount >= _root.helimax[_root.plevel])) {
if (_root.plevel < _root.levelmax) {
_root.menunextlevel.gotoAndPlay(2);
} else {
_root.menuwin.gotoAndPlay(2);
}
}
} else if (_root.plevel == 3) {
if ((_root.helinow < 1) && (_root.helicount < _root.helimax[_root.plevel])) {
var helixpos = 0;
var heliypos = 0;
var collide = true;
do {
helixpos = 100 + random(_root.arena.bg._width - 200);
collide = _root.arena.barrier.helibarriers.hitTest(helixpos + _root.arena._x, heliypos + _root.arena._y, true);
} while (collide);
var depth = (_root.playerdepth++);
var newheli = ("newheli" + depth);
_root.arena.players.attachMovie("heli1", newheli, depth, {_x:helixpos, _y:heliypos});
_root.arena.players[newheli].fly = true;
_root.arena.players[newheli].owner = "enemy";
_root.arena.players[newheli].live = 100;
if (_root.bonusgun) {
_root.arena.players[newheli].havegun = _root.bonusgun;
delete _root.bonusgun;
} else if (_root.bonushealth) {
_root.arena.players[newheli].havepil = true;
delete _root.bonushealth;
}
depth = _root.helibardepth++;
_root.arena.barrier.helibarriers.attachMovie("helibar", newheli, depth, {_x:helixpos, _y:heliypos});
_root.helinow++;
_root.helicount++;
} else if (_root.towercount < _root.towermax[_root.plevel]) {
thex = 1355;
they = _root.tower3ypos[_root.tower3Num];
depth = _root.playerdepth++;
newtower = "tower" + depth;
_root.arena.players.attachMovie("towernew", newtower, depth, {_x:thex, _y:they});
_root.arena.players[newtower].owner = "enemy";
_root.arena.players[newtower].live = 150;
_root.arena.players[newtower].tower = true;
depth = _root.basedepth++;
_root.arena.barrier.pbarriers.attachMovie("pbarrier1", _root.arena.players[newtower]._name, depth, {_x:thex, _y:they});
delete thex;
delete they;
delete depth;
delete newtower;
_root.tower3Num++;
_root.towernow++;
_root.towercount++;
} else if (((_root.armycount <= 0) && (_root.helinow <= 0)) && (_root.helicount >= _root.helimax[_root.plevel])) {
if (_root.plevel < _root.levelmax) {
_root.menunextlevel.gotoAndPlay(2);
} else {
_root.menuwin.gotoAndPlay(2);
}
}
} else if (_root.plevel == 4) {
if ((_root.heli3now < 1) && (_root.heli3count < _root.heli3max[_root.plevel])) {
var depth = (_root.playerdepth++);
var newheli3 = ("newheli33" + depth);
_root.arena.players.attachMovie("jeep", newheli3, depth, {_x:_root.heli3xpos, _y:_root.heli3ypos});
_root.arena.players[newheli3].fly = true;
_root.arena.players[newheli3].ship = true;
_root.arena.players[newheli3].jeep = true;
_root.arena.players[newheli3].goalX = 600;
_root.arena.players[newheli3].owner = "enemy";
_root.arena.players[newheli3].live = 100;
depth = _root.helibardepth++;
_root.arena.barrier.helibarriers.attachMovie("helibar3", newheli3, depth, {_x:_root.heli3xpos, _y:_root.heli3ypos});
_root.heli3now++;
_root.heli3count++;
} else if ((_root.helinow < 3) && (_root.helicount < _root.helimax[_root.plevel])) {
var helixpos = 1600;
var heliypos = 0;
var collide = true;
do {
helixpos = 100 + random(_root.arena.bg._width + 200);
collide = _root.arena.barrier.helibarriers.hitTest(helixpos + _root.arena._x, heliypos + _root.arena._y, true);
} while (collide);
var depth = (_root.playerdepth++);
var newheli = ("newheli" + depth);
_root.arena.players.attachMovie("heli1", newheli, depth, {_x:helixpos, _y:heliypos});
_root.arena.players[newheli].fly = true;
_root.arena.players[newheli].owner = "enemy";
_root.arena.players[newheli].live = 100;
if (_root.bonusgun) {
_root.arena.players[newheli].havegun = _root.bonusgun;
delete _root.bonusgun;
} else if (_root.bonushealth) {
_root.arena.players[newheli].havepil = true;
delete _root.bonushealth;
}
depth = _root.helibardepth++;
_root.arena.barrier.helibarriers.attachMovie("helibar", newheli, depth, {_x:helixpos, _y:heliypos});
_root.helinow++;
_root.helicount++;
} else if (((((_root.armycount <= 0) && (_root.heli3now <= 0)) && (_root.heli3count >= _root.heli3max[_root.plevel])) && ((_root.armycount <= 0) && (_root.helinow <= 0))) && (_root.helicount >= _root.helimax[_root.plevel])) {
if (_root.plevel < _root.levelmax) {
_root.menunextlevel.gotoAndPlay(2);
} else {
_root.menuwin.gotoAndPlay(2);
}
}
} else if (_root.plevel == 5) {
if ((_root.helinow < 2) && (_root.helicount < _root.helimax[_root.plevel])) {
var helixpos = 1600;
var heliypos = 0;
var collide = true;
do {
helixpos = 500 + random(_root.arena.bg._width - 600);
collide = _root.arena.barrier.helibarriers.hitTest(helixpos + _root.arena._x, heliypos + _root.arena._y, true);
} while (collide);
var depth = (_root.playerdepth++);
var newheli = ("newheli" + depth);
_root.arena.players.attachMovie("heli1", newheli, depth, {_x:helixpos, _y:heliypos});
_root.arena.players[newheli].fly = true;
_root.arena.players[newheli].owner = "enemy";
_root.arena.players[newheli].live = 100;
if (_root.bonusgun) {
_root.arena.players[newheli].havegun = _root.bonusgun;
delete _root.bonusgun;
} else if (_root.bonushealth) {
_root.arena.players[newheli].havepil = true;
delete _root.bonushealth;
}
depth = _root.helibardepth++;
_root.arena.barrier.helibarriers.attachMovie("helibar", newheli, depth, {_x:helixpos, _y:heliypos});
_root.helinow++;
_root.helicount++;
} else if (_root.towercount < _root.towermax[_root.plevel]) {
thex = 1000;
they = _root.tower5ypos[_root.tower5Num];
depth = _root.playerdepth++;
newtower = "tower" + depth;
_root.arena.players.attachMovie("towernew", newtower, depth, {_x:thex, _y:they});
_root.arena.players[newtower].owner = "enemy";
_root.arena.players[newtower].live = 200;
_root.arena.players[newtower].tower = true;
depth = _root.basedepth++;
_root.arena.barrier.pbarriers.attachMovie("pbarrier1", _root.arena.players[newtower]._name, depth, {_x:thex, _y:they});
delete thex;
delete they;
delete depth;
delete newtower;
_root.tower5Num++;
_root.towernow++;
_root.towercount++;
} else if ((_root.heli3now < 1) && (_root.heli3count < _root.heli3max[_root.plevel])) {
var depth = (_root.playerdepth++);
var newheli3 = ("newheli33" + depth);
_root.arena.players.attachMovie("jeep", newheli3, depth, {_x:_root.heli3xpos, _y:_root.heli4ypos});
_root.arena.players[newheli3].fly = true;
_root.arena.players[newheli3].ship = true;
_root.arena.players[newheli3].jeep = true;
_root.arena.players[newheli3].goalX = 400;
_root.arena.players[newheli3].owner = "enemy";
_root.arena.players[newheli3].live = 100;
depth = _root.helibardepth++;
_root.arena.barrier.helibarriers.attachMovie("helibar3", newheli3, depth, {_x:_root.heli3xpos, _y:_root.heli4ypos});
_root.heli3now++;
_root.heli3count++;
} else if ((_root.tanknow < 2) && (_root.tankcount < _root.tankmax[_root.plevel])) {
thex = 100 + random(_root.arena.bg._width - 200);
they = 250;
depth = _root.playerdepth++;
newtank = "tank" + depth;
_root.arena.players.attachMovie("tank", newtank, depth, {_x:thex, _y:they});
_root.arena.players[newtank].owner = "enemy";
_root.arena.players[newtank]._xscale = 150;
_root.arena.players[newtank]._yscale = 150;
_root.arena.players[newtank].live = 2000;
_root.arena.players[newtank].tank = true;
depth = _root.basedepth++;
_root.arena.barrier.pbarriers.attachMovie("tankbarrier", _root.arena.players[newtank]._name, depth, {_x:thex, _y:they});
_root.arena.players[newtank].gox = thex;
_root.arena.players[newtank].goy = _root.arena.players.theplayer._y;
_root.arena.players[newtank].go = true;
delete thex;
delete they;
delete depth;
delete newtank;
_root.tanknow++;
_root.tankcount++;
} else if ((((_root.armycount <= 0) && (_root.helinow <= 0)) && (_root.helicount >= _root.helimax[_root.plevel])) && (_root.tanknow == 0)) {
if (_root.plevel < _root.levelmax) {
_root.menunextlevel.gotoAndPlay(2);
} else {
_root.menuwin.gotoAndPlay(2);
}
}
}
if (_root.gunreload < _root.guntimer) {
_root.gunreload++;
} else if (_root.gunreload >= _root.guntimer) {
_root.gunreload = 0;
_root.bonusgun = 2 + random(4);
}
if (_root.healthreload < _root.healthtimer) {
_root.healthreload++;
} else if (_root.healthreload >= _root.healthtimer) {
_root.healthreload = 0;
_root.bonushealth = true;
}
if (xpos > 0) {
xpos = 0;
}
if (ypos > 0) {
ypos = 0;
}
var checkxpos = (-((bg._width - 640) / 3.41));
var checkypos = (-((bg._height - 480) / 3.41));
if (xpos < checkxpos) {
xpos = checkxpos;
}
if (ypos < checkypos) {
ypos = checkypos;
}
var countx = ((0.707106781186547 * _x) + xpos);
var county = ((0.707106781186547 * _y) + ypos);
_y = county;
_x = countx;
if (_root.scorebar.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.onbar = true;
} else if (_root.onbar) {
_root.onbar = false;
}
if (Key.isDown(81)) {
if (!haschange) {
haschange = true;
if (_root.currentgun == 1) {
if (_root.gun2bullets > 0) {
_root.currentgun = 2;
_root.arena.players.theplayer.gotoAndStop(2);
_root.scorebar.gunbar.gotoAndStop(2);
} else if (_root.gun3bullets > 0) {
_root.currentgun = 3;
_root.arena.players.theplayer.gotoAndStop(3);
_root.scorebar.gunbar.gotoAndStop(3);
} else if (_root.gun4bullets > 0) {
_root.currentgun = 4;
_root.arena.players.theplayer.gotoAndStop(4);
_root.scorebar.gunbar.gotoAndStop(4);
} else if (_root.gun5bullets > 0) {
_root.currentgun = 5;
_root.arena.players.theplayer.gotoAndStop(5);
_root.scorebar.gunbar.gotoAndStop(5);
}
} else if (_root.currentgun == 2) {
if (_root.gun3bullets > 0) {
_root.currentgun = 3;
_root.arena.players.theplayer.gotoAndStop(3);
_root.scorebar.gunbar.gotoAndStop(3);
} else if (_root.gun4bullets > 0) {
_root.currentgun = 4;
_root.arena.players.theplayer.gotoAndStop(4);
_root.scorebar.gunbar.gotoAndStop(4);
} else if (_root.gun5bullets > 0) {
_root.currentgun = 5;
_root.arena.players.theplayer.gotoAndStop(5);
_root.scorebar.gunbar.gotoAndStop(5);
} else {
_root.currentgun = 1;
_root.arena.players.theplayer.gotoAndStop(1);
_root.scorebar.gunbar.gotoAndStop(1);
}
} else if (_root.currentgun == 3) {
if (_root.gun4bullets > 0) {
_root.currentgun = 4;
_root.arena.players.theplayer.gotoAndStop(4);
_root.scorebar.gunbar.gotoAndStop(4);
} else if (_root.gun5bullets > 0) {
_root.currentgun = 5;
_root.arena.players.theplayer.gotoAndStop(5);
_root.scorebar.gunbar.gotoAndStop(5);
} else {
_root.currentgun = 1;
_root.arena.players.theplayer.gotoAndStop(1);
_root.scorebar.gunbar.gotoAndStop(1);
}
} else if (_root.currentgun == 4) {
if (_root.gun5bullets > 0) {
_root.currentgun = 5;
_root.arena.players.theplayer.gotoAndStop(5);
_root.scorebar.gunbar.gotoAndStop(5);
} else {
_root.currentgun = 1;
_root.arena.players.theplayer.gotoAndStop(1);
_root.scorebar.gunbar.gotoAndStop(1);
}
} else if (_root.currentgun == 5) {
_root.currentgun = 1;
_root.arena.players.theplayer.gotoAndStop(1);
_root.scorebar.gunbar.gotoAndStop(1);
}
}
} else if (Key.isDown(49) || (Key.isDown(97))) {
if (_root.currentgun != 1) {
_root.currentgun = 1;
_root.arena.players.theplayer.gotoAndStop(1);
_root.scorebar.gunbar.gotoAndStop(1);
}
} else if (Key.isDown(50) || (Key.isDown(98))) {
if ((_root.currentgun != 2) && (_root.gun2bullets > 0)) {
_root.currentgun = 2;
_root.arena.players.theplayer.gotoAndStop(2);
_root.scorebar.gunbar.gotoAndStop(2);
}
} else if (Key.isDown(51) || (Key.isDown(99))) {
if ((_root.currentgun != 3) && (_root.gun3bullets > 0)) {
_root.currentgun = 3;
_root.arena.players.theplayer.gotoAndStop(3);
_root.scorebar.gunbar.gotoAndStop(3);
}
} else if (Key.isDown(52) || (Key.isDown(100))) {
if ((_root.currentgun != 4) && (_root.gun4bullets > 0)) {
_root.currentgun = 4;
_root.arena.players.theplayer.gotoAndStop(4);
_root.scorebar.gunbar.gotoAndStop(4);
}
} else if (Key.isDown(53) || (Key.isDown(101))) {
if ((_root.currentgun != 5) && (_root.gun5bullets > 0)) {
_root.currentgun = 5;
_root.arena.players.theplayer.gotoAndStop(5);
_root.scorebar.gunbar.gotoAndStop(5);
}
} else if (Key.isDown(80)) {
if (!haschange) {
haschange = true;
if (!_root.isPause) {
_root.isPause = true;
_root.menuplay.gotoAndPlay(2);
_root.scorebar.bar.pbutton.gotoAndStop(2);
} else {
_root.isPause = false;
_root.menuplay.gotoAndStop(1);
_root.scorebar.bar.pbutton.gotoAndStop(1);
}
}
} else if (haschange) {
delete haschange;
}
}
}
Frame 8
stop();
Frame 9
stop();
Instance of Symbol 2818 MovieClip [TMP6pbk6uzm9i] in Frame 9
//component parameters
onClipEvent (construct) {
gameID = 239;
}
Instance of Symbol 2823 MovieClip [TMP6ojzjuzm8i] in Frame 9
//component parameters
onClipEvent (construct) {
gameID = 239;
}
Instance of Symbol 2454 MovieClip in Frame 9
on (release) {
_root.gotoAndPlay("mainmenu");
}
Symbol 88 MovieClip Frame 16
stop();
Symbol 101 MovieClip Frame 7
stop();
Symbol 105 MovieClip [newtowerexp] Frame 4
_root.arena.players.shaketime = 5;
_root.arena.players.shake = 20;
Symbol 105 MovieClip [newtowerexp] Frame 9
_root.arena.players.shaketime = 4;
_root.arena.players.shake = 10;
Symbol 105 MovieClip [newtowerexp] Frame 14
_root.arena.players.shaketime = 3;
_root.arena.players.shake = 5;
Symbol 105 MovieClip [newtowerexp] Frame 26
removeMovieClip(this);
Symbol 108 MovieClip Frame 1
this._visible = false;
Symbol 120 MovieClip Frame 8
gotoAndPlay (1);
Symbol 120 MovieClip Frame 10
gotoAndPlay (1);
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 2
stop();
Symbol 121 MovieClip Frame 3
stop();
Symbol 121 MovieClip Frame 4
stop();
Symbol 121 MovieClip Frame 5
stop();
Symbol 121 MovieClip Frame 6
stop();
Symbol 121 MovieClip Frame 7
stop();
Symbol 121 MovieClip Frame 8
stop();
Symbol 121 MovieClip Frame 9
stop();
Symbol 121 MovieClip Frame 10
stop();
Symbol 121 MovieClip Frame 11
stop();
Symbol 121 MovieClip Frame 12
stop();
Symbol 121 MovieClip Frame 13
stop();
Symbol 121 MovieClip Frame 14
stop();
Symbol 121 MovieClip Frame 15
stop();
Symbol 121 MovieClip Frame 16
stop();
Symbol 121 MovieClip Frame 17
stop();
Symbol 121 MovieClip Frame 18
stop();
Symbol 121 MovieClip Frame 19
stop();
Symbol 121 MovieClip Frame 20
stop();
Symbol 121 MovieClip Frame 21
stop();
Symbol 121 MovieClip Frame 22
stop();
Symbol 121 MovieClip Frame 23
stop();
Symbol 121 MovieClip Frame 24
stop();
Symbol 121 MovieClip Frame 25
stop();
Symbol 121 MovieClip Frame 26
stop();
Symbol 121 MovieClip Frame 27
stop();
Symbol 121 MovieClip Frame 28
stop();
Symbol 121 MovieClip Frame 29
stop();
Symbol 121 MovieClip Frame 30
stop();
Symbol 121 MovieClip Frame 31
stop();
Symbol 121 MovieClip Frame 32
stop();
Symbol 127 MovieClip Frame 1
stop();
this.gotoAndStop(_parent.live / 10);
Symbol 127 MovieClip Frame 2
stop();
Symbol 127 MovieClip Frame 3
stop();
Symbol 127 MovieClip Frame 4
stop();
Symbol 127 MovieClip Frame 5
stop();
Symbol 127 MovieClip Frame 6
stop();
Symbol 127 MovieClip Frame 7
stop();
Symbol 127 MovieClip Frame 8
stop();
Symbol 127 MovieClip Frame 9
stop();
Symbol 127 MovieClip Frame 10
stop();
Symbol 128 MovieClip [towernew] Frame 1
stop();
Symbol 128 MovieClip [towernew] Frame 2
stop();
Symbol 198 MovieClip Frame 16
stop();
Symbol 232 MovieClip Frame 22
stop();
Symbol 233 MovieClip Frame 4
_root.arena.players.shaketime = 5;
_root.arena.players.shake = 20;
Symbol 233 MovieClip Frame 9
_root.arena.players.shaketime = 4;
_root.arena.players.shake = 10;
Symbol 233 MovieClip Frame 14
_root.arena.players.shaketime = 3;
_root.arena.players.shake = 5;
Symbol 233 MovieClip Frame 27
stop();
removeMovieClip(this);
Symbol 255 MovieClip Frame 4
_root.arena.players.shaketime = 5;
_root.arena.players.shake = 20;
Symbol 255 MovieClip Frame 9
_root.arena.players.shaketime = 4;
_root.arena.players.shake = 10;
Symbol 255 MovieClip Frame 14
_root.arena.players.shaketime = 3;
_root.arena.players.shake = 5;
Symbol 255 MovieClip Frame 27
stop();
removeMovieClip(this);
Symbol 277 MovieClip Frame 4
_root.arena.players.shaketime = 5;
_root.arena.players.shake = 20;
Symbol 277 MovieClip Frame 9
_root.arena.players.shaketime = 4;
_root.arena.players.shake = 10;
Symbol 277 MovieClip Frame 14
_root.arena.players.shaketime = 3;
_root.arena.players.shake = 5;
Symbol 277 MovieClip Frame 27
stop();
removeMovieClip(this);
Symbol 299 MovieClip Frame 4
_root.arena.players.shaketime = 5;
_root.arena.players.shake = 20;
Symbol 299 MovieClip Frame 9
_root.arena.players.shaketime = 4;
_root.arena.players.shake = 10;
Symbol 299 MovieClip Frame 14
_root.arena.players.shaketime = 3;
_root.arena.players.shake = 5;
Symbol 299 MovieClip Frame 27
stop();
removeMovieClip(this);
Symbol 321 MovieClip Frame 4
_root.arena.players.shaketime = 5;
_root.arena.players.shake = 20;
Symbol 321 MovieClip Frame 9
_root.arena.players.shaketime = 4;
_root.arena.players.shake = 10;
Symbol 321 MovieClip Frame 14
_root.arena.players.shaketime = 3;
_root.arena.players.shake = 5;
Symbol 321 MovieClip Frame 27
stop();
removeMovieClip(this);
Symbol 346 MovieClip Frame 4
_root.arena.players.shaketime = 5;
_root.arena.players.shake = 20;
Symbol 346 MovieClip Frame 9
_root.arena.players.shaketime = 4;
_root.arena.players.shake = 10;
Symbol 346 MovieClip Frame 14
_root.arena.players.shaketime = 3;
_root.arena.players.shake = 5;
Symbol 346 MovieClip Frame 27
stop();
removeMovieClip(this);
Symbol 365 MovieClip Frame 4
_root.arena.players.shaketime = 5;
_root.arena.players.shake = 20;
Symbol 365 MovieClip Frame 9
_root.arena.players.shaketime = 4;
_root.arena.players.shake = 10;
Symbol 365 MovieClip Frame 14
_root.arena.players.shaketime = 3;
_root.arena.players.shake = 5;
Symbol 365 MovieClip Frame 27
stop();
removeMovieClip(this);
Symbol 386 MovieClip Frame 4
_root.arena.players.shaketime = 5;
_root.arena.players.shake = 20;
Symbol 386 MovieClip Frame 9
_root.arena.players.shaketime = 4;
_root.arena.players.shake = 10;
Symbol 386 MovieClip Frame 14
_root.arena.players.shaketime = 3;
_root.arena.players.shake = 5;
Symbol 386 MovieClip Frame 26
stop();
removeMovieClip(this);
Symbol 405 MovieClip Frame 4
_root.arena.players.shaketime = 5;
_root.arena.players.shake = 20;
Symbol 405 MovieClip Frame 9
_root.arena.players.shaketime = 4;
_root.arena.players.shake = 10;
Symbol 405 MovieClip Frame 14
_root.arena.players.shaketime = 3;
_root.arena.players.shake = 5;
Symbol 405 MovieClip Frame 26
stop();
removeMovieClip(this);
Symbol 406 MovieClip [helinewexplode] Frame 1
stop();
Symbol 406 MovieClip [helinewexplode] Frame 2
stop();
Symbol 406 MovieClip [helinewexplode] Frame 3
stop();
Symbol 406 MovieClip [helinewexplode] Frame 4
stop();
Symbol 406 MovieClip [helinewexplode] Frame 5
stop();
Symbol 406 MovieClip [helinewexplode] Frame 6
stop();
Symbol 406 MovieClip [helinewexplode] Frame 7
stop();
Symbol 406 MovieClip [helinewexplode] Frame 8
stop();
Symbol 406 MovieClip [helinewexplode] Frame 9
stop();
Symbol 408 MovieClip Frame 1
this._visible = false;
Symbol 417 MovieClip Frame 8
gotoAndPlay (1);
Symbol 417 MovieClip Frame 10
gotoAndPlay (1);
Symbol 418 MovieClip Frame 1
stop();
Symbol 418 MovieClip Frame 2
stop();
Symbol 418 MovieClip Frame 3
stop();
Symbol 418 MovieClip Frame 4
stop();
Symbol 418 MovieClip Frame 5
stop();
Symbol 418 MovieClip Frame 6
stop();
Symbol 418 MovieClip Frame 7
stop();
Symbol 418 MovieClip Frame 8
stop();
Symbol 418 MovieClip Frame 9
stop();
Symbol 418 MovieClip Frame 10
stop();
Symbol 418 MovieClip Frame 11
stop();
Symbol 418 MovieClip Frame 12
stop();
Symbol 418 MovieClip Frame 13
stop();
Symbol 418 MovieClip Frame 14
stop();
Symbol 418 MovieClip Frame 15
stop();
Symbol 418 MovieClip Frame 16
stop();
Symbol 418 MovieClip Frame 17
stop();
Symbol 418 MovieClip Frame 18
stop();
Symbol 418 MovieClip Frame 19
stop();
Symbol 418 MovieClip Frame 20
stop();
Symbol 418 MovieClip Frame 21
stop();
Symbol 418 MovieClip Frame 22
stop();
Symbol 418 MovieClip Frame 23
stop();
Symbol 418 MovieClip Frame 24
stop();
Symbol 418 MovieClip Frame 25
stop();
Symbol 418 MovieClip Frame 26
stop();
Symbol 418 MovieClip Frame 27
stop();
Symbol 418 MovieClip Frame 28
stop();
Symbol 418 MovieClip Frame 29
stop();
Symbol 418 MovieClip Frame 30
stop();
Symbol 418 MovieClip Frame 31
stop();
Symbol 418 MovieClip Frame 32
stop();
Symbol 423 MovieClip Frame 1
stop();
this.gotoAndStop(_parent.live / 10);
Symbol 423 MovieClip Frame 2
stop();
Symbol 423 MovieClip Frame 3
stop();
Symbol 423 MovieClip Frame 4
stop();
Symbol 423 MovieClip Frame 5
stop();
Symbol 423 MovieClip Frame 6
stop();
Symbol 423 MovieClip Frame 7
stop();
Symbol 423 MovieClip Frame 8
stop();
Symbol 423 MovieClip Frame 9
stop();
Symbol 423 MovieClip Frame 10
stop();
Symbol 424 MovieClip [soldier7] Frame 1
stop();
Symbol 424 MovieClip [soldier7] Frame 2
stop();
Symbol 497 MovieClip Frame 16
stop();
Symbol 499 MovieClip [jeepexplode2] Frame 4
_root.arena.players.shaketime = 5;
_root.arena.players.shake = 20;
Symbol 499 MovieClip [jeepexplode2] Frame 9
_root.arena.players.shaketime = 4;
_root.arena.players.shake = 10;
Symbol 499 MovieClip [jeepexplode2] Frame 14
_root.arena.players.shaketime = 3;
_root.arena.players.shake = 5;
Symbol 499 MovieClip [jeepexplode2] Frame 26
removeMovieClip(this);
Symbol 502 MovieClip Frame 1
stop();
Symbol 502 MovieClip Frame 2
stop();
Symbol 502 MovieClip Frame 3
stop();
Symbol 502 MovieClip Frame 4
stop();
Symbol 502 MovieClip Frame 5
stop();
Symbol 502 MovieClip Frame 6
stop();
Symbol 502 MovieClip Frame 7
stop();
Symbol 502 MovieClip Frame 8
stop();
Symbol 502 MovieClip Frame 9
stop();
Symbol 503 MovieClip [helibar3] Frame 1
stop();
Symbol 503 MovieClip [helibar3] Frame 2
stop();
Symbol 504 MovieClip Frame 1
stop();
Symbol 504 MovieClip Frame 2
stop();
Symbol 504 MovieClip Frame 3
stop();
Symbol 504 MovieClip Frame 4
stop();
Symbol 504 MovieClip Frame 5
stop();
Symbol 504 MovieClip Frame 6
stop();
Symbol 504 MovieClip Frame 7
stop();
Symbol 504 MovieClip Frame 8
stop();
Symbol 504 MovieClip Frame 9
stop();
Symbol 505 MovieClip [helibar2] Frame 1
stop();
Symbol 505 MovieClip [helibar2] Frame 2
stop();
Symbol 506 MovieClip [jeepexplode] Frame 4
_root.arena.players.shaketime = 5;
_root.arena.players.shake = 20;
Symbol 506 MovieClip [jeepexplode] Frame 9
_root.arena.players.shaketime = 4;
_root.arena.players.shake = 10;
Symbol 506 MovieClip [jeepexplode] Frame 14
_root.arena.players.shaketime = 3;
_root.arena.players.shake = 5;
Symbol 506 MovieClip [jeepexplode] Frame 26
removeMovieClip(this);
Symbol 508 MovieClip Frame 1
this._visible = false;
Symbol 578 MovieClip Frame 8
gotoAndPlay (1);
Symbol 578 MovieClip Frame 10
gotoAndPlay (1);
Symbol 579 MovieClip Frame 1
stop();
Symbol 579 MovieClip Frame 9
thex = (_x + _parent._x) + _parent._parent._x;
they = (_y + _parent._y) + _parent._parent._y;
depth = _root.playerdepth++;
newplayer = "player" + depth;
_root.arena.players.attachMovie("soldier4", newplayer, depth, {_x:thex, _y:they});
_root.arena.players[newplayer].owner = "enemy";
_root.arena.players[newplayer].army = "big";
_root.arena.players[newplayer]._xscale = 90;
_root.arena.players[newplayer]._yscale = 90;
_root.arena.players[newplayer].live = 100;
if (_root.bonusgun) {
_root.arena.players[newplayer].havegun = _root.bonusgun;
delete _root.bonusgun;
} else if (_root.bonushealth) {
_root.arena.players[newplayer].havepil = true;
delete _root.bonushealth;
}
depth = _root.basedepth++;
_root.arena.barrier.pbarriers.attachMovie("pbarrier", _root.arena.players[newplayer]._name, depth, {_x:thex, _y:they});
_root.arena.players[newplayer].gox = random(_root.arena.bg._width);
_root.arena.players[newplayer].goy = _root.arena.players.theplayer._y;
_root.arena.players[newplayer].go = true;
_root.armycount++;
_parent._parent.countarmydown++;
delete thex;
delete they;
delete depth;
delete newplayer;
Symbol 579 MovieClip Frame 30
delete _parent._parent.onprogress;
Symbol 580 MovieClip Frame 1
stop();
Symbol 580 MovieClip Frame 2
stop();
Symbol 580 MovieClip Frame 3
stop();
Symbol 580 MovieClip Frame 4
stop();
Symbol 580 MovieClip Frame 5
stop();
Symbol 580 MovieClip Frame 6
stop();
Symbol 580 MovieClip Frame 7
stop();
Symbol 580 MovieClip Frame 8
stop();
Symbol 580 MovieClip Frame 9
stop();
Symbol 585 MovieClip Frame 1
stop();
this.gotoAndStop(_parent.live / 10);
Symbol 585 MovieClip Frame 2
stop();
Symbol 585 MovieClip Frame 3
stop();
Symbol 585 MovieClip Frame 4
stop();
Symbol 585 MovieClip Frame 5
stop();
Symbol 585 MovieClip Frame 6
stop();
Symbol 585 MovieClip Frame 7
stop();
Symbol 585 MovieClip Frame 8
stop();
Symbol 585 MovieClip Frame 9
stop();
Symbol 585 MovieClip Frame 10
stop();
Symbol 586 MovieClip [jeep] Frame 1
stop();
Symbol 586 MovieClip [jeep] Frame 2
stop();
Symbol 589 MovieClip [tankbarrier] Frame 1
stop();
Symbol 589 MovieClip [tankbarrier] Frame 2
stop();
Symbol 591 MovieClip [pbarrier1] Frame 1
stop();
Symbol 591 MovieClip [pbarrier1] Frame 2
stop();
Symbol 593 MovieClip Frame 1
this._visible = false;
Symbol 602 MovieClip Frame 8
gotoAndPlay (1);
Symbol 602 MovieClip Frame 10
gotoAndPlay (1);
Symbol 603 MovieClip Frame 1
stop();
Symbol 603 MovieClip Frame 2
stop();
Symbol 603 MovieClip Frame 3
stop();
Symbol 603 MovieClip Frame 4
stop();
Symbol 603 MovieClip Frame 5
stop();
Symbol 603 MovieClip Frame 6
stop();
Symbol 603 MovieClip Frame 7
stop();
Symbol 603 MovieClip Frame 8
stop();
Symbol 603 MovieClip Frame 9
stop();
Symbol 603 MovieClip Frame 10
stop();
Symbol 603 MovieClip Frame 11
stop();
Symbol 603 MovieClip Frame 12
stop();
Symbol 603 MovieClip Frame 13
stop();
Symbol 603 MovieClip Frame 14
stop();
Symbol 603 MovieClip Frame 15
stop();
Symbol 603 MovieClip Frame 16
stop();
Symbol 603 MovieClip Frame 17
stop();
Symbol 603 MovieClip Frame 18
stop();
Symbol 603 MovieClip Frame 19
stop();
Symbol 603 MovieClip Frame 20
stop();
Symbol 603 MovieClip Frame 21
stop();
Symbol 603 MovieClip Frame 22
stop();
Symbol 603 MovieClip Frame 23
stop();
Symbol 603 MovieClip Frame 24
stop();
Symbol 603 MovieClip Frame 25
stop();
Symbol 603 MovieClip Frame 26
stop();
Symbol 603 MovieClip Frame 27
stop();
Symbol 603 MovieClip Frame 28
stop();
Symbol 603 MovieClip Frame 29
stop();
Symbol 603 MovieClip Frame 30
stop();
Symbol 603 MovieClip Frame 31
stop();
Symbol 603 MovieClip Frame 32
stop();
Symbol 608 MovieClip Frame 1
stop();
this.gotoAndStop(_parent.live / 10);
Symbol 608 MovieClip Frame 2
stop();
Symbol 608 MovieClip Frame 3
stop();
Symbol 608 MovieClip Frame 4
stop();
Symbol 608 MovieClip Frame 5
stop();
Symbol 608 MovieClip Frame 6
stop();
Symbol 608 MovieClip Frame 7
stop();
Symbol 608 MovieClip Frame 8
stop();
Symbol 608 MovieClip Frame 9
stop();
Symbol 608 MovieClip Frame 10
stop();
Symbol 609 MovieClip [soldier6] Frame 1
stop();
Symbol 609 MovieClip [soldier6] Frame 2
stop();
Symbol 679 MovieClip Frame 16
stop();
Symbol 681 MovieClip [ship2explode] Frame 4
_root.arena.players.shaketime = 5;
_root.arena.players.shake = 20;
Symbol 681 MovieClip [ship2explode] Frame 9
_root.arena.players.shaketime = 4;
_root.arena.players.shake = 10;
Symbol 681 MovieClip [ship2explode] Frame 14
_root.arena.players.shaketime = 3;
_root.arena.players.shake = 5;
Symbol 681 MovieClip [ship2explode] Frame 26
removeMovieClip(this);
Symbol 683 MovieClip Frame 1
this._visible = false;
Symbol 720 MovieClip Frame 8
gotoAndPlay (1);
Symbol 720 MovieClip Frame 10
gotoAndPlay (1);
Symbol 721 MovieClip Frame 1
stop();
Symbol 721 MovieClip Frame 9
thex = (_x + _parent._x) + _parent._parent._x;
they = (_y + _parent._y) + _parent._parent._y;
depth = _root.playerdepth++;
newplayer = "player" + depth;
_root.arena.players.attachMovie("soldier2", newplayer, depth, {_x:thex, _y:they});
_root.arena.players[newplayer].owner = "enemy";
_root.arena.players[newplayer].army = "red";
_root.arena.players[newplayer].live = 100;
if (_root.bonusgun) {
_root.arena.players[newplayer].havegun = _root.bonusgun;
delete _root.bonusgun;
} else if (_root.bonushealth) {
_root.arena.players[newplayer].havepil = true;
delete _root.bonushealth;
}
depth = _root.basedepth++;
_root.arena.barrier.pbarriers.attachMovie("pbarrier", _root.arena.players[newplayer]._name, depth, {_x:thex, _y:they});
_root.arena.players[newplayer].gox = random(_root.arena.bg._width);
_root.arena.players[newplayer].goy = 400 + random(_root.arena.bg._height - 400);
_root.arena.players[newplayer].go = true;
_root.armycount++;
_parent._parent.countarmydown++;
_parent._parent.armytotal--;
delete thex;
delete they;
delete depth;
delete newplayer;
Symbol 721 MovieClip Frame 30
delete _parent._parent.onprogress;
Symbol 722 MovieClip Frame 1
stop();
Symbol 727 MovieClip Frame 1
stop();
this.gotoAndStop(_parent.live / 10);
Symbol 727 MovieClip Frame 2
stop();
Symbol 727 MovieClip Frame 3
stop();
Symbol 727 MovieClip Frame 4
stop();
Symbol 727 MovieClip Frame 5
stop();
Symbol 727 MovieClip Frame 6
stop();
Symbol 727 MovieClip Frame 7
stop();
Symbol 727 MovieClip Frame 8
stop();
Symbol 727 MovieClip Frame 9
stop();
Symbol 727 MovieClip Frame 10
stop();
Symbol 728 MovieClip [ship2] Frame 1
stop();
Symbol 728 MovieClip [ship2] Frame 2
stop();
Symbol 731 MovieClip Frame 1
stop();
Symbol 731 MovieClip Frame 2
stop();
Symbol 731 MovieClip Frame 3
stop();
Symbol 731 MovieClip Frame 4
stop();
Symbol 731 MovieClip Frame 5
stop();
Symbol 731 MovieClip Frame 6
stop();
Symbol 731 MovieClip Frame 7
stop();
Symbol 731 MovieClip Frame 8
stop();
Symbol 731 MovieClip Frame 9
stop();
Symbol 732 MovieClip [helibar1] Frame 1
stop();
Symbol 732 MovieClip [helibar1] Frame 2
stop();
Symbol 799 MovieClip Frame 16
stop();
Symbol 800 MovieClip [ship1explode] Frame 4
_root.arena.players.shaketime = 5;
_root.arena.players.shake = 20;
Symbol 800 MovieClip [ship1explode] Frame 9
_root.arena.players.shaketime = 4;
_root.arena.players.shake = 10;
Symbol 800 MovieClip [ship1explode] Frame 14
_root.arena.players.shaketime = 3;
_root.arena.players.shake = 5;
Symbol 800 MovieClip [ship1explode] Frame 26
removeMovieClip(this);
Symbol 802 MovieClip Frame 1
this._visible = false;
Symbol 839 MovieClip Frame 8
gotoAndPlay (1);
Symbol 839 MovieClip Frame 10
gotoAndPlay (1);
Symbol 840 MovieClip Frame 1
stop();
Symbol 840 MovieClip Frame 9
thex = (_x + _parent._x) + _parent._parent._x;
they = (_y + _parent._y) + _parent._parent._y;
depth = _root.playerdepth++;
newplayer = "player" + depth;
_root.arena.players.attachMovie("soldier3", newplayer, depth, {_x:thex, _y:they});
_root.arena.players[newplayer].owner = "enemy";
_root.arena.players[newplayer].live = 100;
_root.arena.players[newplayer].army = "blue";
if (_root.bonusgun) {
_root.arena.players[newplayer].havegun = _root.bonusgun;
delete _root.bonusgun;
} else if (_root.bonushealth) {
_root.arena.players[newplayer].havepil = true;
delete _root.bonushealth;
}
depth = _root.basedepth++;
_root.arena.barrier.pbarriers.attachMovie("pbarrier", _root.arena.players[newplayer]._name, depth, {_x:thex, _y:they});
_root.arena.players[newplayer].gox = random(_root.arena.bg._width);
_root.arena.players[newplayer].goy = 400 + random(_root.arena.bg._height - 400);
_root.arena.players[newplayer].go = true;
_root.armycount++;
_parent._parent.armytotal--;
_parent._parent.countarmydown++;
delete thex;
delete they;
delete depth;
delete newplayer;
Symbol 840 MovieClip Frame 30
delete _parent._parent.onprogress;
Symbol 841 MovieClip Frame 1
stop();
Symbol 846 MovieClip Frame 1
stop();
this.gotoAndStop(_parent.live / 10);
Symbol 846 MovieClip Frame 2
stop();
Symbol 846 MovieClip Frame 3
stop();
Symbol 846 MovieClip Frame 4
stop();
Symbol 846 MovieClip Frame 5
stop();
Symbol 846 MovieClip Frame 6
stop();
Symbol 846 MovieClip Frame 7
stop();
Symbol 846 MovieClip Frame 8
stop();
Symbol 846 MovieClip Frame 9
stop();
Symbol 846 MovieClip Frame 10
stop();
Symbol 847 MovieClip [ship1] Frame 1
stop();
Symbol 847 MovieClip [ship1] Frame 2
stop();
Symbol 849 MovieClip Frame 1
this._visible = false;
Symbol 870 MovieClip Frame 8
gotoAndPlay (1);
Symbol 870 MovieClip Frame 10
gotoAndPlay (1);
Symbol 886 MovieClip Frame 8
gotoAndPlay (1);
Symbol 886 MovieClip Frame 10
gotoAndPlay (1);
Symbol 902 MovieClip Frame 8
gotoAndPlay (1);
Symbol 902 MovieClip Frame 10
gotoAndPlay (1);
Symbol 918 MovieClip Frame 8
gotoAndPlay (1);
Symbol 918 MovieClip Frame 10
gotoAndPlay (1);
Symbol 934 MovieClip Frame 5
gotoAndPlay (1);
Symbol 934 MovieClip Frame 7
gotoAndPlay (1);
Symbol 935 MovieClip Frame 1
stop();
Symbol 935 MovieClip Frame 2
stop();
Symbol 935 MovieClip Frame 3
stop();
Symbol 935 MovieClip Frame 4
stop();
Symbol 935 MovieClip Frame 5
stop();
Symbol 935 MovieClip Frame 6
stop();
Symbol 935 MovieClip Frame 7
stop();
Symbol 935 MovieClip Frame 8
stop();
Symbol 935 MovieClip Frame 9
stop();
Symbol 935 MovieClip Frame 10
stop();
Symbol 935 MovieClip Frame 11
stop();
Symbol 935 MovieClip Frame 12
stop();
Symbol 935 MovieClip Frame 13
stop();
Symbol 935 MovieClip Frame 14
stop();
Symbol 935 MovieClip Frame 15
stop();
Symbol 935 MovieClip Frame 16
stop();
Symbol 935 MovieClip Frame 17
stop();
Symbol 935 MovieClip Frame 18
stop();
Symbol 935 MovieClip Frame 19
stop();
Symbol 935 MovieClip Frame 20
stop();
Symbol 935 MovieClip Frame 21
stop();
Symbol 935 MovieClip Frame 22
stop();
Symbol 935 MovieClip Frame 23
stop();
Symbol 935 MovieClip Frame 24
stop();
Symbol 935 MovieClip Frame 25
stop();
Symbol 935 MovieClip Frame 26
stop();
Symbol 935 MovieClip Frame 27
stop();
Symbol 935 MovieClip Frame 28
stop();
Symbol 935 MovieClip Frame 29
stop();
Symbol 935 MovieClip Frame 30
stop();
Symbol 935 MovieClip Frame 31
stop();
Symbol 935 MovieClip Frame 32
stop();
Symbol 940 MovieClip Frame 1
stop();
this.gotoAndStop(_parent.live / 10);
Symbol 940 MovieClip Frame 2
stop();
Symbol 940 MovieClip Frame 3
stop();
Symbol 940 MovieClip Frame 4
stop();
Symbol 940 MovieClip Frame 5
stop();
Symbol 940 MovieClip Frame 6
stop();
Symbol 940 MovieClip Frame 7
stop();
Symbol 940 MovieClip Frame 8
stop();
Symbol 940 MovieClip Frame 9
stop();
Symbol 940 MovieClip Frame 10
stop();
Symbol 941 MovieClip [soldier3] Frame 1
stop();
Symbol 941 MovieClip [soldier3] Frame 2
stop();
Symbol 943 MovieClip Frame 1
this._visible = false;
Symbol 964 MovieClip Frame 8
gotoAndPlay (1);
Symbol 964 MovieClip Frame 10
gotoAndPlay (1);
Symbol 980 MovieClip Frame 8
gotoAndPlay (1);
Symbol 980 MovieClip Frame 10
gotoAndPlay (1);
Symbol 996 MovieClip Frame 8
gotoAndPlay (1);
Symbol 996 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1012 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1012 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1028 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1028 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1029 MovieClip Frame 1
stop();
Symbol 1029 MovieClip Frame 2
stop();
Symbol 1029 MovieClip Frame 3
stop();
Symbol 1029 MovieClip Frame 4
stop();
Symbol 1029 MovieClip Frame 5
stop();
Symbol 1029 MovieClip Frame 6
stop();
Symbol 1029 MovieClip Frame 7
stop();
Symbol 1029 MovieClip Frame 8
stop();
Symbol 1029 MovieClip Frame 9
stop();
Symbol 1029 MovieClip Frame 10
stop();
Symbol 1029 MovieClip Frame 11
stop();
Symbol 1029 MovieClip Frame 12
stop();
Symbol 1029 MovieClip Frame 13
stop();
Symbol 1029 MovieClip Frame 14
stop();
Symbol 1029 MovieClip Frame 15
stop();
Symbol 1029 MovieClip Frame 16
stop();
Symbol 1029 MovieClip Frame 17
stop();
Symbol 1029 MovieClip Frame 18
stop();
Symbol 1029 MovieClip Frame 19
stop();
Symbol 1029 MovieClip Frame 20
stop();
Symbol 1029 MovieClip Frame 21
stop();
Symbol 1029 MovieClip Frame 22
stop();
Symbol 1029 MovieClip Frame 23
stop();
Symbol 1029 MovieClip Frame 24
stop();
Symbol 1029 MovieClip Frame 25
stop();
Symbol 1029 MovieClip Frame 26
stop();
Symbol 1029 MovieClip Frame 27
stop();
Symbol 1029 MovieClip Frame 28
stop();
Symbol 1029 MovieClip Frame 29
stop();
Symbol 1029 MovieClip Frame 30
stop();
Symbol 1029 MovieClip Frame 31
stop();
Symbol 1029 MovieClip Frame 32
stop();
Symbol 1034 MovieClip Frame 1
stop();
this.gotoAndStop(_parent.live / 10);
Symbol 1034 MovieClip Frame 2
stop();
Symbol 1034 MovieClip Frame 3
stop();
Symbol 1034 MovieClip Frame 4
stop();
Symbol 1034 MovieClip Frame 5
stop();
Symbol 1034 MovieClip Frame 6
stop();
Symbol 1034 MovieClip Frame 7
stop();
Symbol 1034 MovieClip Frame 8
stop();
Symbol 1034 MovieClip Frame 9
stop();
Symbol 1034 MovieClip Frame 10
stop();
Symbol 1035 MovieClip [soldier4] Frame 1
stop();
Symbol 1035 MovieClip [soldier4] Frame 2
stop();
Symbol 1037 MovieClip Frame 1
this._visible = false;
Symbol 1058 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1058 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1074 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1074 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1090 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1090 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1106 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1106 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1122 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1122 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1123 MovieClip Frame 1
stop();
Symbol 1123 MovieClip Frame 2
stop();
Symbol 1123 MovieClip Frame 3
stop();
Symbol 1123 MovieClip Frame 4
stop();
Symbol 1123 MovieClip Frame 5
stop();
Symbol 1123 MovieClip Frame 6
stop();
Symbol 1123 MovieClip Frame 7
stop();
Symbol 1123 MovieClip Frame 8
stop();
Symbol 1123 MovieClip Frame 9
stop();
Symbol 1123 MovieClip Frame 10
stop();
Symbol 1123 MovieClip Frame 11
stop();
Symbol 1123 MovieClip Frame 12
stop();
Symbol 1123 MovieClip Frame 13
stop();
Symbol 1123 MovieClip Frame 14
stop();
Symbol 1123 MovieClip Frame 15
stop();
Symbol 1123 MovieClip Frame 16
stop();
Symbol 1123 MovieClip Frame 17
stop();
Symbol 1123 MovieClip Frame 18
stop();
Symbol 1123 MovieClip Frame 19
stop();
Symbol 1123 MovieClip Frame 20
stop();
Symbol 1123 MovieClip Frame 21
stop();
Symbol 1123 MovieClip Frame 22
stop();
Symbol 1123 MovieClip Frame 23
stop();
Symbol 1123 MovieClip Frame 24
stop();
Symbol 1123 MovieClip Frame 25
stop();
Symbol 1123 MovieClip Frame 26
stop();
Symbol 1123 MovieClip Frame 27
stop();
Symbol 1123 MovieClip Frame 28
stop();
Symbol 1123 MovieClip Frame 29
stop();
Symbol 1123 MovieClip Frame 30
stop();
Symbol 1123 MovieClip Frame 31
stop();
Symbol 1123 MovieClip Frame 32
stop();
Symbol 1128 MovieClip Frame 1
stop();
this.gotoAndStop(_parent.live / 10);
Symbol 1128 MovieClip Frame 2
stop();
Symbol 1128 MovieClip Frame 3
stop();
Symbol 1128 MovieClip Frame 4
stop();
Symbol 1128 MovieClip Frame 5
stop();
Symbol 1128 MovieClip Frame 6
stop();
Symbol 1128 MovieClip Frame 7
stop();
Symbol 1128 MovieClip Frame 8
stop();
Symbol 1128 MovieClip Frame 9
stop();
Symbol 1128 MovieClip Frame 10
stop();
Symbol 1129 MovieClip [soldier2] Frame 1
stop();
Symbol 1129 MovieClip [soldier2] Frame 2
stop();
Symbol 1131 MovieClip Frame 1
this._visible = false;
Symbol 1152 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1152 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1168 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1168 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1185 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1185 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1201 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1201 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1215 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1215 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1216 MovieClip Frame 1
stop();
Symbol 1216 MovieClip Frame 2
stop();
Symbol 1216 MovieClip Frame 3
stop();
Symbol 1216 MovieClip Frame 4
stop();
Symbol 1216 MovieClip Frame 5
stop();
Symbol 1216 MovieClip Frame 6
stop();
Symbol 1216 MovieClip Frame 7
stop();
Symbol 1216 MovieClip Frame 8
stop();
Symbol 1216 MovieClip Frame 9
stop();
Symbol 1216 MovieClip Frame 10
stop();
Symbol 1216 MovieClip Frame 11
stop();
Symbol 1216 MovieClip Frame 12
stop();
Symbol 1216 MovieClip Frame 13
stop();
Symbol 1216 MovieClip Frame 14
stop();
Symbol 1216 MovieClip Frame 15
stop();
Symbol 1216 MovieClip Frame 16
stop();
Symbol 1216 MovieClip Frame 17
stop();
Symbol 1216 MovieClip Frame 18
stop();
Symbol 1216 MovieClip Frame 19
stop();
Symbol 1216 MovieClip Frame 20
stop();
Symbol 1216 MovieClip Frame 21
stop();
Symbol 1216 MovieClip Frame 22
stop();
Symbol 1216 MovieClip Frame 23
stop();
Symbol 1216 MovieClip Frame 24
stop();
Symbol 1216 MovieClip Frame 25
stop();
Symbol 1216 MovieClip Frame 26
stop();
Symbol 1216 MovieClip Frame 27
stop();
Symbol 1216 MovieClip Frame 28
stop();
Symbol 1216 MovieClip Frame 29
stop();
Symbol 1216 MovieClip Frame 30
stop();
Symbol 1216 MovieClip Frame 31
stop();
Symbol 1216 MovieClip Frame 32
stop();
Symbol 1221 MovieClip Frame 1
stop();
this.gotoAndStop(_parent.live / 10);
Symbol 1221 MovieClip Frame 2
stop();
Symbol 1221 MovieClip Frame 3
stop();
Symbol 1221 MovieClip Frame 4
stop();
Symbol 1221 MovieClip Frame 5
stop();
Symbol 1221 MovieClip Frame 6
stop();
Symbol 1221 MovieClip Frame 7
stop();
Symbol 1221 MovieClip Frame 8
stop();
Symbol 1221 MovieClip Frame 9
stop();
Symbol 1221 MovieClip Frame 10
stop();
Symbol 1222 MovieClip [soldier1] Frame 1
stop();
Symbol 1222 MovieClip [soldier1] Frame 2
stop();
Symbol 1240 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1240 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1258 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1258 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1276 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1276 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1292 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1292 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1308 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1308 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1309 MovieClip Frame 1
stop();
Symbol 1309 MovieClip Frame 2
stop();
Symbol 1309 MovieClip Frame 3
stop();
Symbol 1309 MovieClip Frame 4
stop();
Symbol 1309 MovieClip Frame 5
stop();
Symbol 1309 MovieClip Frame 6
stop();
Symbol 1309 MovieClip Frame 7
stop();
Symbol 1309 MovieClip Frame 8
stop();
Symbol 1309 MovieClip Frame 9
stop();
Symbol 1309 MovieClip Frame 10
stop();
Symbol 1309 MovieClip Frame 11
stop();
Symbol 1309 MovieClip Frame 12
stop();
Symbol 1309 MovieClip Frame 13
stop();
Symbol 1309 MovieClip Frame 14
stop();
Symbol 1309 MovieClip Frame 15
stop();
Symbol 1309 MovieClip Frame 16
stop();
Symbol 1309 MovieClip Frame 17
stop();
Symbol 1309 MovieClip Frame 18
stop();
Symbol 1309 MovieClip Frame 19
stop();
Symbol 1309 MovieClip Frame 20
stop();
Symbol 1309 MovieClip Frame 21
stop();
Symbol 1309 MovieClip Frame 22
stop();
Symbol 1309 MovieClip Frame 23
stop();
Symbol 1309 MovieClip Frame 24
stop();
Symbol 1309 MovieClip Frame 25
stop();
Symbol 1309 MovieClip Frame 26
stop();
Symbol 1309 MovieClip Frame 27
stop();
Symbol 1309 MovieClip Frame 28
stop();
Symbol 1309 MovieClip Frame 29
stop();
Symbol 1309 MovieClip Frame 30
stop();
Symbol 1309 MovieClip Frame 31
stop();
Symbol 1309 MovieClip Frame 32
stop();
Symbol 1310 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1310 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1315 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1315 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1318 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1318 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1321 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1321 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1322 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1322 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1324 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1324 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1326 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1326 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1328 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1328 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1329 MovieClip Frame 1
stop();
Symbol 1329 MovieClip Frame 2
stop();
Symbol 1329 MovieClip Frame 3
stop();
Symbol 1329 MovieClip Frame 4
stop();
Symbol 1329 MovieClip Frame 5
stop();
Symbol 1329 MovieClip Frame 6
stop();
Symbol 1329 MovieClip Frame 7
stop();
Symbol 1329 MovieClip Frame 8
stop();
Symbol 1329 MovieClip Frame 9
stop();
Symbol 1329 MovieClip Frame 10
stop();
Symbol 1329 MovieClip Frame 11
stop();
Symbol 1329 MovieClip Frame 12
stop();
Symbol 1329 MovieClip Frame 13
stop();
Symbol 1329 MovieClip Frame 14
stop();
Symbol 1329 MovieClip Frame 15
stop();
Symbol 1329 MovieClip Frame 16
stop();
Symbol 1329 MovieClip Frame 17
stop();
Symbol 1329 MovieClip Frame 18
stop();
Symbol 1329 MovieClip Frame 19
stop();
Symbol 1329 MovieClip Frame 20
stop();
Symbol 1329 MovieClip Frame 21
stop();
Symbol 1329 MovieClip Frame 22
stop();
Symbol 1329 MovieClip Frame 23
stop();
Symbol 1329 MovieClip Frame 24
stop();
Symbol 1329 MovieClip Frame 25
stop();
Symbol 1329 MovieClip Frame 26
stop();
Symbol 1329 MovieClip Frame 27
stop();
Symbol 1329 MovieClip Frame 28
stop();
Symbol 1329 MovieClip Frame 29
stop();
Symbol 1329 MovieClip Frame 30
stop();
Symbol 1329 MovieClip Frame 31
stop();
Symbol 1329 MovieClip Frame 32
stop();
Symbol 1332 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1332 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1341 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1341 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1344 MovieClip Frame 1
stop();
Symbol 1344 MovieClip Frame 2
stop();
Symbol 1344 MovieClip Frame 3
stop();
Symbol 1344 MovieClip Frame 4
stop();
Symbol 1344 MovieClip Frame 5
stop();
Symbol 1344 MovieClip Frame 6
stop();
Symbol 1344 MovieClip Frame 7
stop();
Symbol 1344 MovieClip Frame 8
stop();
Symbol 1344 MovieClip Frame 9
stop();
Symbol 1344 MovieClip Frame 10
stop();
Symbol 1344 MovieClip Frame 11
stop();
Symbol 1344 MovieClip Frame 12
stop();
Symbol 1344 MovieClip Frame 13
stop();
Symbol 1344 MovieClip Frame 14
stop();
Symbol 1344 MovieClip Frame 15
stop();
Symbol 1344 MovieClip Frame 16
stop();
Symbol 1344 MovieClip Frame 17
stop();
Symbol 1344 MovieClip Frame 18
stop();
Symbol 1344 MovieClip Frame 19
stop();
Symbol 1344 MovieClip Frame 20
stop();
Symbol 1344 MovieClip Frame 21
stop();
Symbol 1344 MovieClip Frame 22
stop();
Symbol 1344 MovieClip Frame 23
stop();
Symbol 1344 MovieClip Frame 24
stop();
Symbol 1344 MovieClip Frame 25
stop();
Symbol 1344 MovieClip Frame 26
stop();
Symbol 1344 MovieClip Frame 27
stop();
Symbol 1344 MovieClip Frame 28
stop();
Symbol 1344 MovieClip Frame 29
stop();
Symbol 1344 MovieClip Frame 30
stop();
Symbol 1344 MovieClip Frame 31
stop();
Symbol 1344 MovieClip Frame 32
stop();
Symbol 1345 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1345 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1348 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1348 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1351 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1351 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1356 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1356 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1358 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1358 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1360 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1360 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1362 MovieClip Frame 1
stop();
Symbol 1362 MovieClip Frame 2
stop();
Symbol 1362 MovieClip Frame 3
stop();
Symbol 1362 MovieClip Frame 4
stop();
Symbol 1362 MovieClip Frame 5
stop();
Symbol 1362 MovieClip Frame 6
stop();
Symbol 1362 MovieClip Frame 7
stop();
Symbol 1362 MovieClip Frame 8
stop();
Symbol 1362 MovieClip Frame 9
stop();
Symbol 1362 MovieClip Frame 10
stop();
Symbol 1362 MovieClip Frame 11
stop();
Symbol 1362 MovieClip Frame 12
stop();
Symbol 1362 MovieClip Frame 13
stop();
Symbol 1362 MovieClip Frame 14
stop();
Symbol 1362 MovieClip Frame 15
stop();
Symbol 1362 MovieClip Frame 16
stop();
Symbol 1362 MovieClip Frame 17
stop();
Symbol 1362 MovieClip Frame 18
stop();
Symbol 1362 MovieClip Frame 19
stop();
Symbol 1362 MovieClip Frame 20
stop();
Symbol 1362 MovieClip Frame 21
stop();
Symbol 1362 MovieClip Frame 22
stop();
Symbol 1362 MovieClip Frame 23
stop();
Symbol 1362 MovieClip Frame 24
stop();
Symbol 1362 MovieClip Frame 25
stop();
Symbol 1362 MovieClip Frame 26
stop();
Symbol 1362 MovieClip Frame 27
stop();
Symbol 1362 MovieClip Frame 28
stop();
Symbol 1362 MovieClip Frame 29
stop();
Symbol 1362 MovieClip Frame 30
stop();
Symbol 1362 MovieClip Frame 31
stop();
Symbol 1362 MovieClip Frame 32
stop();
Symbol 1365 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1365 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1368 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1368 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1375 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1375 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1377 MovieClip Frame 1
stop();
Symbol 1377 MovieClip Frame 2
stop();
Symbol 1377 MovieClip Frame 3
stop();
Symbol 1377 MovieClip Frame 4
stop();
Symbol 1377 MovieClip Frame 5
stop();
Symbol 1377 MovieClip Frame 6
stop();
Symbol 1377 MovieClip Frame 7
stop();
Symbol 1377 MovieClip Frame 8
stop();
Symbol 1377 MovieClip Frame 9
stop();
Symbol 1377 MovieClip Frame 10
stop();
Symbol 1377 MovieClip Frame 11
stop();
Symbol 1377 MovieClip Frame 12
stop();
Symbol 1377 MovieClip Frame 13
stop();
Symbol 1377 MovieClip Frame 14
stop();
Symbol 1377 MovieClip Frame 15
stop();
Symbol 1377 MovieClip Frame 16
stop();
Symbol 1377 MovieClip Frame 17
stop();
Symbol 1377 MovieClip Frame 18
stop();
Symbol 1377 MovieClip Frame 19
stop();
Symbol 1377 MovieClip Frame 20
stop();
Symbol 1377 MovieClip Frame 21
stop();
Symbol 1377 MovieClip Frame 22
stop();
Symbol 1377 MovieClip Frame 23
stop();
Symbol 1377 MovieClip Frame 24
stop();
Symbol 1377 MovieClip Frame 25
stop();
Symbol 1377 MovieClip Frame 26
stop();
Symbol 1377 MovieClip Frame 27
stop();
Symbol 1377 MovieClip Frame 28
stop();
Symbol 1377 MovieClip Frame 29
stop();
Symbol 1377 MovieClip Frame 30
stop();
Symbol 1377 MovieClip Frame 31
stop();
Symbol 1377 MovieClip Frame 32
stop();
Symbol 1378 MovieClip [player1] Frame 1
stop();
movie.gotoAndStop(rotnumber);
Symbol 1378 MovieClip [player1] Frame 2
stop();
movie.gotoAndStop(rotnumber);
Symbol 1378 MovieClip [player1] Frame 3
stop();
movie.gotoAndStop(rotnumber);
Symbol 1378 MovieClip [player1] Frame 4
stop();
movie.gotoAndStop(rotnumber);
Symbol 1378 MovieClip [player1] Frame 5
stop();
movie.gotoAndStop(rotnumber);
Symbol 1380 MovieClip Frame 1
this._visible = false;
Symbol 1411 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1411 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1434 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1434 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1462 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1462 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1485 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1485 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1507 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1507 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1530 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1530 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1554 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1554 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1574 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1574 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1595 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1595 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1615 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1615 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1639 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1639 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1662 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1662 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1686 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1686 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1709 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1709 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1733 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1733 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1756 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1756 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1757 MovieClip Frame 1
stop();
Symbol 1757 MovieClip Frame 2
stop();
Symbol 1757 MovieClip Frame 3
stop();
Symbol 1757 MovieClip Frame 4
stop();
Symbol 1757 MovieClip Frame 5
stop();
Symbol 1757 MovieClip Frame 6
stop();
Symbol 1757 MovieClip Frame 7
stop();
Symbol 1757 MovieClip Frame 8
stop();
Symbol 1757 MovieClip Frame 9
stop();
Symbol 1757 MovieClip Frame 10
stop();
Symbol 1757 MovieClip Frame 11
stop();
Symbol 1757 MovieClip Frame 12
stop();
Symbol 1757 MovieClip Frame 13
stop();
Symbol 1757 MovieClip Frame 14
stop();
Symbol 1757 MovieClip Frame 15
stop();
Symbol 1757 MovieClip Frame 16
stop();
Symbol 1757 MovieClip Frame 17
stop();
Symbol 1757 MovieClip Frame 18
stop();
Symbol 1757 MovieClip Frame 19
stop();
Symbol 1757 MovieClip Frame 20
stop();
Symbol 1757 MovieClip Frame 21
stop();
Symbol 1757 MovieClip Frame 22
stop();
Symbol 1757 MovieClip Frame 23
stop();
Symbol 1757 MovieClip Frame 24
stop();
Symbol 1757 MovieClip Frame 25
stop();
Symbol 1757 MovieClip Frame 26
stop();
Symbol 1757 MovieClip Frame 27
stop();
Symbol 1757 MovieClip Frame 28
stop();
Symbol 1757 MovieClip Frame 29
stop();
Symbol 1757 MovieClip Frame 30
stop();
Symbol 1757 MovieClip Frame 31
stop();
Symbol 1757 MovieClip Frame 32
stop();
Symbol 1762 MovieClip Frame 1
stop();
this.gotoAndStop(int(_parent.live / 200));
Symbol 1762 MovieClip Frame 2
stop();
Symbol 1762 MovieClip Frame 3
stop();
Symbol 1762 MovieClip Frame 4
stop();
Symbol 1762 MovieClip Frame 5
stop();
Symbol 1762 MovieClip Frame 6
stop();
Symbol 1762 MovieClip Frame 7
stop();
Symbol 1762 MovieClip Frame 8
stop();
Symbol 1762 MovieClip Frame 9
stop();
Symbol 1762 MovieClip Frame 10
stop();
Symbol 1763 MovieClip [tank] Frame 1
stop();
Symbol 1763 MovieClip [tank] Frame 2
stop();
Symbol 1769 MovieClip [box] Frame 1
stop();
Symbol 1769 MovieClip [box] Frame 2
stop();
Symbol 1775 MovieClip [parachute] Frame 1
stop();
if (guntype) {
movie.inparachute.box.gotoAndStop(2);
} else {
movie.inparachute.box.gotoAndStop(1);
}
Symbol 1775 MovieClip [parachute] Frame 2
stop();
Symbol 1790 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1790 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1791 MovieClip Frame 1
stop();
Symbol 1791 MovieClip Frame 9
thex = (_x + _parent._x) + _parent._parent._x;
they = (_y + _parent._y) + _parent._parent._y;
depth = _root.playerdepth++;
newplayer = "player" + depth;
_root.arena.players.attachMovie("soldier1", newplayer, depth, {_x:thex, _y:they});
_root.arena.players[newplayer].owner = "enemy";
_root.arena.players[newplayer].live = 100;
if (_root.bonusgun) {
_root.arena.players[newplayer].havegun = _root.bonusgun;
delete _root.bonusgun;
} else if (_root.bonushealth) {
_root.arena.players[newplayer].havepil = true;
delete _root.bonushealth;
}
depth = _root.basedepth++;
_root.arena.barrier.pbarriers.attachMovie("pbarrier", _root.arena.players[newplayer]._name, depth, {_x:thex, _y:they});
_root.arena.players[newplayer].gox = random(_root.arena.bg._width);
_root.arena.players[newplayer].goy = 400 + random(_root.arena.bg._height - 400);
_root.arena.players[newplayer].go = true;
_root.armycount++;
_parent._parent.countarmydown++;
delete thex;
delete they;
delete depth;
delete newplayer;
Symbol 1791 MovieClip Frame 30
delete _parent._parent.onprogress;
Symbol 1824 MovieClip Frame 1
stop();
Symbol 1824 MovieClip Frame 2
stop();
Symbol 1824 MovieClip Frame 3
stop();
Symbol 1824 MovieClip Frame 4
stop();
Symbol 1824 MovieClip Frame 5
stop();
Symbol 1824 MovieClip Frame 6
stop();
Symbol 1824 MovieClip Frame 7
stop();
Symbol 1824 MovieClip Frame 8
stop();
Symbol 1824 MovieClip Frame 9
stop();
Symbol 1825 MovieClip [heli1] Frame 1
stop();
Symbol 1825 MovieClip [heli1] Frame 2
stop();
Symbol 1871 MovieClip Frame 16
stop();
Symbol 1872 MovieClip [explode2] Frame 4
_root.arena.players.shaketime = 5;
_root.arena.players.shake = 15;
Symbol 1872 MovieClip [explode2] Frame 27
removeMovieClip(this);
Symbol 1900 MovieClip Frame 1
stop();
Symbol 1900 MovieClip Frame 2
stop();
Symbol 1900 MovieClip Frame 3
stop();
Symbol 1900 MovieClip Frame 4
stop();
Symbol 1900 MovieClip Frame 5
stop();
Symbol 1901 MovieClip [bullet] Frame 1
onEnterFrame = function () {
if (_currentframe > 1) {
xwidth = this.hit._x;
yheight = (Math.sin(this._rotation * (Math.PI/180)) * this.hit._x) / 1;
thisy = (((this.hit._y + _parent._y) + _root.players._y) + yheight) - 1;
countx = Math.sqrt((xwidth * xwidth) - (yheight * yheight));
thisx = (_parent._x + _root.players._x) + countx;
if ((this._rotation > 90) || (this._rotation < -90)) {
thisx = (_parent._x + _root.players._x) - countx;
}
if (_root.arena.barrier.hitTest(thisx, thisy, true)) {
removeMovieClip(this);
}
}
if (_root.enemies.hitTest(thisx, thisy, true)) {
for (var _local4 in _root.enemies) {
if ((((typeof(_root.enemies[_local4]) == "movieclip") && (this.hitTest(_root.enemies[_local4].hit))) && (_root.enemies[_local4]._currentframe != 9)) && (_root.enemies[_local4]._visible == true)) {
_root.enemies[_local4].gotoAndStop("melt");
_root.enemies[_local4]._root.theScore = _root.theScore + 10;
removeMovieClip(this);
}
}
}
};
Symbol 1901 MovieClip [bullet] Frame 17
stop();
removeMovieClip(this);
Symbol 1914 MovieClip Frame 131
unloadMovie (_parent);
Symbol 1929 MovieClip Frame 5
stop();
Symbol 1930 MovieClip Frame 1
stop();
Symbol 1930 MovieClip Frame 2
stop();
Symbol 1930 MovieClip Frame 3
stop();
Symbol 1930 MovieClip Frame 4
stop();
Symbol 1930 MovieClip Frame 5
stop();
Symbol 1930 MovieClip Frame 6
stop();
Symbol 1930 MovieClip Frame 7
stop();
Symbol 1930 MovieClip Frame 8
stop();
Symbol 1930 MovieClip Frame 9
stop();
Symbol 1930 MovieClip Frame 10
stop();
Symbol 1930 MovieClip Frame 11
stop();
Symbol 1930 MovieClip Frame 12
stop();
Symbol 1930 MovieClip Frame 13
stop();
Symbol 1930 MovieClip Frame 14
stop();
Symbol 1930 MovieClip Frame 15
stop();
Symbol 1930 MovieClip Frame 16
stop();
Symbol 1930 MovieClip Frame 17
stop();
Symbol 1930 MovieClip Frame 18
stop();
Symbol 1930 MovieClip Frame 19
stop();
Symbol 1930 MovieClip Frame 20
stop();
Symbol 1930 MovieClip Frame 21
stop();
Symbol 1930 MovieClip Frame 22
stop();
Symbol 1930 MovieClip Frame 23
stop();
Symbol 1930 MovieClip Frame 24
stop();
Symbol 1930 MovieClip Frame 25
stop();
Symbol 1930 MovieClip Frame 26
stop();
Symbol 1930 MovieClip Frame 27
stop();
Symbol 1930 MovieClip Frame 28
stop();
Symbol 1930 MovieClip Frame 29
stop();
Symbol 1930 MovieClip Frame 30
stop();
Symbol 1930 MovieClip Frame 31
stop();
Symbol 1930 MovieClip Frame 32
stop();
Symbol 1941 MovieClip Frame 5
stop();
Symbol 1942 MovieClip Frame 1
stop();
Symbol 1942 MovieClip Frame 2
stop();
Symbol 1942 MovieClip Frame 3
stop();
Symbol 1942 MovieClip Frame 4
stop();
Symbol 1942 MovieClip Frame 5
stop();
Symbol 1942 MovieClip Frame 6
stop();
Symbol 1942 MovieClip Frame 7
stop();
Symbol 1942 MovieClip Frame 8
stop();
Symbol 1942 MovieClip Frame 9
stop();
Symbol 1942 MovieClip Frame 10
stop();
Symbol 1942 MovieClip Frame 11
stop();
Symbol 1942 MovieClip Frame 12
stop();
Symbol 1942 MovieClip Frame 13
stop();
Symbol 1942 MovieClip Frame 14
stop();
Symbol 1942 MovieClip Frame 15
stop();
Symbol 1942 MovieClip Frame 16
stop();
Symbol 1942 MovieClip Frame 17
stop();
Symbol 1942 MovieClip Frame 18
stop();
Symbol 1942 MovieClip Frame 19
stop();
Symbol 1942 MovieClip Frame 20
stop();
Symbol 1942 MovieClip Frame 21
stop();
Symbol 1942 MovieClip Frame 22
stop();
Symbol 1942 MovieClip Frame 23
stop();
Symbol 1942 MovieClip Frame 24
stop();
Symbol 1942 MovieClip Frame 25
stop();
Symbol 1942 MovieClip Frame 26
stop();
Symbol 1942 MovieClip Frame 27
stop();
Symbol 1942 MovieClip Frame 28
stop();
Symbol 1942 MovieClip Frame 29
stop();
Symbol 1942 MovieClip Frame 30
stop();
Symbol 1942 MovieClip Frame 31
stop();
Symbol 1942 MovieClip Frame 32
stop();
Symbol 1956 MovieClip Frame 5
stop();
Symbol 1957 MovieClip Frame 1
stop();
Symbol 1957 MovieClip Frame 2
stop();
Symbol 1957 MovieClip Frame 3
stop();
Symbol 1957 MovieClip Frame 4
stop();
Symbol 1957 MovieClip Frame 5
stop();
Symbol 1957 MovieClip Frame 6
stop();
Symbol 1957 MovieClip Frame 7
stop();
Symbol 1957 MovieClip Frame 8
stop();
Symbol 1957 MovieClip Frame 9
stop();
Symbol 1957 MovieClip Frame 10
stop();
Symbol 1957 MovieClip Frame 11
stop();
Symbol 1957 MovieClip Frame 12
stop();
Symbol 1957 MovieClip Frame 13
stop();
Symbol 1957 MovieClip Frame 14
stop();
Symbol 1957 MovieClip Frame 15
stop();
Symbol 1957 MovieClip Frame 16
stop();
Symbol 1957 MovieClip Frame 17
stop();
Symbol 1957 MovieClip Frame 18
stop();
Symbol 1957 MovieClip Frame 19
stop();
Symbol 1957 MovieClip Frame 20
stop();
Symbol 1957 MovieClip Frame 21
stop();
Symbol 1957 MovieClip Frame 22
stop();
Symbol 1957 MovieClip Frame 23
stop();
Symbol 1957 MovieClip Frame 24
stop();
Symbol 1957 MovieClip Frame 25
stop();
Symbol 1957 MovieClip Frame 26
stop();
Symbol 1957 MovieClip Frame 27
stop();
Symbol 1957 MovieClip Frame 28
stop();
Symbol 1957 MovieClip Frame 29
stop();
Symbol 1957 MovieClip Frame 30
stop();
Symbol 1957 MovieClip Frame 31
stop();
Symbol 1957 MovieClip Frame 32
stop();
Symbol 1968 MovieClip Frame 5
stop();
Symbol 1969 MovieClip Frame 1
stop();
Symbol 1969 MovieClip Frame 2
stop();
Symbol 1969 MovieClip Frame 3
stop();
Symbol 1969 MovieClip Frame 4
stop();
Symbol 1969 MovieClip Frame 5
stop();
Symbol 1969 MovieClip Frame 6
stop();
Symbol 1969 MovieClip Frame 7
stop();
Symbol 1969 MovieClip Frame 8
stop();
Symbol 1969 MovieClip Frame 9
stop();
Symbol 1969 MovieClip Frame 10
stop();
Symbol 1969 MovieClip Frame 11
stop();
Symbol 1969 MovieClip Frame 12
stop();
Symbol 1969 MovieClip Frame 13
stop();
Symbol 1969 MovieClip Frame 14
stop();
Symbol 1969 MovieClip Frame 15
stop();
Symbol 1969 MovieClip Frame 16
stop();
Symbol 1969 MovieClip Frame 17
stop();
Symbol 1969 MovieClip Frame 18
stop();
Symbol 1969 MovieClip Frame 19
stop();
Symbol 1969 MovieClip Frame 20
stop();
Symbol 1969 MovieClip Frame 21
stop();
Symbol 1969 MovieClip Frame 22
stop();
Symbol 1969 MovieClip Frame 23
stop();
Symbol 1969 MovieClip Frame 24
stop();
Symbol 1969 MovieClip Frame 25
stop();
Symbol 1969 MovieClip Frame 26
stop();
Symbol 1969 MovieClip Frame 27
stop();
Symbol 1969 MovieClip Frame 28
stop();
Symbol 1969 MovieClip Frame 29
stop();
Symbol 1969 MovieClip Frame 30
stop();
Symbol 1969 MovieClip Frame 31
stop();
Symbol 1969 MovieClip Frame 32
stop();
Symbol 1980 MovieClip Frame 5
stop();
Symbol 1981 MovieClip Frame 1
stop();
Symbol 1981 MovieClip Frame 2
stop();
Symbol 1981 MovieClip Frame 3
stop();
Symbol 1981 MovieClip Frame 4
stop();
Symbol 1981 MovieClip Frame 5
stop();
Symbol 1981 MovieClip Frame 6
stop();
Symbol 1981 MovieClip Frame 7
stop();
Symbol 1981 MovieClip Frame 8
stop();
Symbol 1981 MovieClip Frame 9
stop();
Symbol 1981 MovieClip Frame 10
stop();
Symbol 1981 MovieClip Frame 11
stop();
Symbol 1981 MovieClip Frame 12
stop();
Symbol 1981 MovieClip Frame 13
stop();
Symbol 1981 MovieClip Frame 14
stop();
Symbol 1981 MovieClip Frame 15
stop();
Symbol 1981 MovieClip Frame 16
stop();
Symbol 1981 MovieClip Frame 17
stop();
Symbol 1981 MovieClip Frame 18
stop();
Symbol 1981 MovieClip Frame 19
stop();
Symbol 1981 MovieClip Frame 20
stop();
Symbol 1981 MovieClip Frame 21
stop();
Symbol 1981 MovieClip Frame 22
stop();
Symbol 1981 MovieClip Frame 23
stop();
Symbol 1981 MovieClip Frame 24
stop();
Symbol 1981 MovieClip Frame 25
stop();
Symbol 1981 MovieClip Frame 26
stop();
Symbol 1981 MovieClip Frame 27
stop();
Symbol 1981 MovieClip Frame 28
stop();
Symbol 1981 MovieClip Frame 29
stop();
Symbol 1981 MovieClip Frame 30
stop();
Symbol 1981 MovieClip Frame 31
stop();
Symbol 1981 MovieClip Frame 32
stop();
Symbol 1990 MovieClip Frame 5
stop();
Symbol 1991 MovieClip Frame 1
stop();
Symbol 1991 MovieClip Frame 2
stop();
Symbol 1991 MovieClip Frame 3
stop();
Symbol 1991 MovieClip Frame 4
stop();
Symbol 1991 MovieClip Frame 5
stop();
Symbol 1991 MovieClip Frame 6
stop();
Symbol 1991 MovieClip Frame 7
stop();
Symbol 1991 MovieClip Frame 8
stop();
Symbol 1991 MovieClip Frame 9
stop();
Symbol 1991 MovieClip Frame 10
stop();
Symbol 1991 MovieClip Frame 11
stop();
Symbol 1991 MovieClip Frame 12
stop();
Symbol 1991 MovieClip Frame 13
stop();
Symbol 1991 MovieClip Frame 14
stop();
Symbol 1991 MovieClip Frame 15
stop();
Symbol 1991 MovieClip Frame 16
stop();
Symbol 1991 MovieClip Frame 17
stop();
Symbol 1991 MovieClip Frame 18
stop();
Symbol 1991 MovieClip Frame 19
stop();
Symbol 1991 MovieClip Frame 20
stop();
Symbol 1991 MovieClip Frame 21
stop();
Symbol 1991 MovieClip Frame 22
stop();
Symbol 1991 MovieClip Frame 23
stop();
Symbol 1991 MovieClip Frame 24
stop();
Symbol 1991 MovieClip Frame 25
stop();
Symbol 1991 MovieClip Frame 26
stop();
Symbol 1991 MovieClip Frame 27
stop();
Symbol 1991 MovieClip Frame 28
stop();
Symbol 1991 MovieClip Frame 29
stop();
Symbol 1991 MovieClip Frame 30
stop();
Symbol 1991 MovieClip Frame 31
stop();
Symbol 1991 MovieClip Frame 32
stop();
Symbol 2058 MovieClip Frame 16
stop();
Symbol 2059 MovieClip Frame 4
_root.arena.players.shaketime = 5;
_root.arena.players.shake = 20;
Symbol 2059 MovieClip Frame 9
_root.arena.players.shaketime = 4;
_root.arena.players.shake = 10;
Symbol 2059 MovieClip Frame 14
_root.arena.players.shaketime = 3;
_root.arena.players.shake = 5;
Symbol 2059 MovieClip Frame 26
stop();
removeMovieClip(this);
Symbol 2081 MovieClip Frame 4
_root.arena.players.shaketime = 5;
_root.arena.players.shake = 20;
Symbol 2081 MovieClip Frame 9
_root.arena.players.shaketime = 4;
_root.arena.players.shake = 10;
Symbol 2081 MovieClip Frame 14
_root.arena.players.shaketime = 3;
_root.arena.players.shake = 5;
Symbol 2081 MovieClip Frame 26
stop();
removeMovieClip(this);
Symbol 2103 MovieClip Frame 4
_root.arena.players.shaketime = 5;
_root.arena.players.shake = 20;
Symbol 2103 MovieClip Frame 9
_root.arena.players.shaketime = 4;
_root.arena.players.shake = 10;
Symbol 2103 MovieClip Frame 14
_root.arena.players.shaketime = 3;
_root.arena.players.shake = 5;
Symbol 2103 MovieClip Frame 26
stop();
removeMovieClip(this);
Symbol 2104 MovieClip [tankboom] Frame 1
stop();
Symbol 2104 MovieClip [tankboom] Frame 2
stop();
Symbol 2104 MovieClip [tankboom] Frame 3
stop();
Symbol 2104 MovieClip [tankboom] Frame 4
stop();
Symbol 2104 MovieClip [tankboom] Frame 5
stop();
Symbol 2104 MovieClip [tankboom] Frame 6
stop();
Symbol 2104 MovieClip [tankboom] Frame 7
stop();
Symbol 2104 MovieClip [tankboom] Frame 8
stop();
Symbol 2104 MovieClip [tankboom] Frame 9
stop();
Symbol 2104 MovieClip [tankboom] Frame 10
stop();
Symbol 2104 MovieClip [tankboom] Frame 11
stop();
Symbol 2104 MovieClip [tankboom] Frame 12
stop();
Symbol 2104 MovieClip [tankboom] Frame 13
stop();
Symbol 2104 MovieClip [tankboom] Frame 14
stop();
Symbol 2104 MovieClip [tankboom] Frame 15
stop();
Symbol 2104 MovieClip [tankboom] Frame 16
stop();
Symbol 2104 MovieClip [tankboom] Frame 17
stop();
Symbol 2104 MovieClip [tankboom] Frame 18
stop();
Symbol 2104 MovieClip [tankboom] Frame 19
stop();
Symbol 2104 MovieClip [tankboom] Frame 20
stop();
Symbol 2104 MovieClip [tankboom] Frame 21
stop();
Symbol 2104 MovieClip [tankboom] Frame 22
stop();
Symbol 2104 MovieClip [tankboom] Frame 23
stop();
Symbol 2104 MovieClip [tankboom] Frame 24
stop();
Symbol 2104 MovieClip [tankboom] Frame 25
stop();
Symbol 2104 MovieClip [tankboom] Frame 26
stop();
Symbol 2104 MovieClip [tankboom] Frame 27
stop();
Symbol 2104 MovieClip [tankboom] Frame 28
stop();
Symbol 2104 MovieClip [tankboom] Frame 29
stop();
Symbol 2104 MovieClip [tankboom] Frame 30
stop();
Symbol 2104 MovieClip [tankboom] Frame 31
stop();
Symbol 2104 MovieClip [tankboom] Frame 32
stop();
Symbol 2105 MovieClip Frame 1
stop();
if (_root.usesound) {
var pain = (1 + random(4));
_root["pain" + pain].start(0, 1);
}
Symbol 2105 MovieClip Frame 2
stop();
Symbol 2105 MovieClip Frame 3
stop();
Symbol 2105 MovieClip Frame 4
stop();
Symbol 2105 MovieClip Frame 5
stop();
Symbol 2105 MovieClip Frame 6
stop();
Symbol 2105 MovieClip Frame 7
stop();
Symbol 2116 MovieClip Frame 6
stop();
Symbol 2117 MovieClip Frame 100
unloadMovie (_parent);
Symbol 2118 MovieClip [spot3] Frame 1
stop();
Symbol 2118 MovieClip [spot3] Frame 2
stop();
Symbol 2119 MovieClip [spot] Frame 1
stop();
Symbol 2119 MovieClip [spot] Frame 2
stop();
Symbol 2145 MovieClip [smoke] Frame 1
if (_root.usesound) {
_root.smokesound.start(0, 1);
}
Symbol 2145 MovieClip [smoke] Frame 7
removeMovieClip(this);
Symbol 2147 MovieClip [pbarrier] Frame 1
stop();
Symbol 2147 MovieClip [pbarrier] Frame 2
stop();
Symbol 2157 MovieClip [bomb] Frame 1
onEnterFrame = function () {
if (_currentframe > 1) {
for (var _local16 in _root.arena.players) {
var _local13 = _root.arena.players[_local16].hit.hitTest(hit1);
if (_local13) {
var _local8 = (_xscale / 100) * hit1._x;
var _local12 = (_yscale / 100) * hit1._y;
var _local10 = _local8;
var _local5 = (Math.sin(_rotation * (Math.PI/180)) * _local8) / 1;
var _local7 = (_y + _local12) + _local5;
var _local11 = Math.sqrt((_local10 * _local10) - (_local5 * _local5));
var _local6 = _x + _local11;
if ((_rotation > 90) || (_rotation < -90)) {
_local6 = _x - _local11;
}
var _local3 = _root.smokedepth++;
if (_local3 > 100) {
_root.smokedepth = 0;
_local3 = 0;
}
var _local4 = "newexplode" + _local3;
_root.arena.smokes.attachMovie("explode2", _local4, _local3, {_x:_local6, _y:_local7 + 20});
_root.arena.smokes[_local4]._xscale = (_root.arena.smokes[_local4]._yscale = 75);
if (_root.usesound) {
_root.smallblow.start(0, 1);
}
_root.getshot.gotoAndPlay(2);
_root.arena.players[_local16].movie.clip.gotoAndPlay("hit");
_root.arena.players[_local16].live = _root.arena.players.players[_local16] - 500;
var _local9 = int(_root.arena.players.theplayer.live / 2);
if (_local9 > 0) {
_root.scorebar.bar.livebar.live.gotoAndStop(_local9);
} else {
_root.scorebar.bar.livebar.live._visible = false;
}
if (_root.arena.players.theplayer.live < 1) {
_root.lastpx = _root.arena.players.theplayer._x;
_root.lastpy = _root.arena.players.theplayer._y;
_local3 = _root.spotdepth++;
if (_local3 > 100) {
_root.spotdepth = 0;
_local3 = 0;
}
_root.arena.spots.attachMovie("spot", "newspot" + _local3, _local3, {_x:_root.arena.players.theplayer._x, _y:_root.arena.players.theplayer._y});
_root.arena.spots["newspot" + _local3].gotoAndStop(2);
_root.arena.spots["newspot" + _local3].blood.bloodani.deadbody.gotoAndStop(1);
_root.arena.spots["newspot" + _local3].blood.bloodani.deadbody.movie.gotoAndStop(_root.arena.players.theplayer.rotnumber);
removeMovieClip(_root.arena.barrier.pbarriers[_root.arena.players.theplayer._name]);
removeMovieClip(_root.arena.players.theplayer);
if (_root.plive > 1) {
_root.isPause = true;
_root.curtain.gotoAndPlay(2);
} else {
_root.menudeath.gotoAndPlay(2);
_root.plive = 0;
}
} else {
_local3 = _root.spotdepth++;
if (_local3 > 100) {
_root.spotdepth = 0;
_local3 = 0;
}
_root.arena.spots.attachMovie("spot", "newspot" + _local3, _local3, {_x:_root.arena.players.theplayer._x, _y:_root.arena.players.theplayer._y});
_root.arena.spots["newspot" + _local3].gotoAndStop(1);
}
removeMovieClip(this);
} else if (_currentframe >= 9) {
var _local8 = (_xscale / 100) * hit1._x;
var _local12 = (_yscale / 100) * hit1._y;
var _local10 = _local8;
var _local5 = (Math.sin(_rotation * (Math.PI/180)) * _local8) / 1;
var _local7 = (_y + _local12) + _local5;
var _local11 = Math.sqrt((_local10 * _local10) - (_local5 * _local5));
var _local6 = _x + _local11;
if ((_rotation > 90) || (_rotation < -90)) {
_local6 = _x - _local11;
}
var _local3 = _root.smokedepth++;
if (_local3 > 100) {
_root.smokedepth = 0;
_local3 = 0;
}
_root.arena.smokes.attachMovie("smoke", "newsmoke" + _local3, _local3, {_x:_local6, _y:_local7});
if (_currentframe == 14) {
_local3 = _root.smokedepth++;
if (_local3 > 100) {
_root.smokedepth = 0;
_local3 = 0;
}
var _local4 = "newexplode" + _local3;
_root.arena.smokes.attachMovie("explode2", _local4, _local3, {_x:_local6, _y:_local7 + 20});
_root.arena.smokes[_local4]._xscale = (_root.arena.smokes[_local4]._yscale = 20);
if (_root.usesound) {
_root.smallblow.start(0, 1);
}
}
}
}
}
};
onEnterFrame = function () {
if (_currentframe > 1) {
var fromx = ((_xscale / 100) * hit1._x);
var fromy = ((_yscale / 100) * hit1._y);
var xwidth = fromx;
var yheight = ((Math.sin(_rotation * (Math.PI/180)) * fromx) / 1);
var hity = ((_y + fromy) + yheight);
var countx = Math.sqrt((xwidth * xwidth) - (yheight * yheight));
var hitx = (_x + countx);
if ((_rotation > 90) || (_rotation < -90)) {
hitx = _x - countx;
}
if (((_rotation < 0) && (_rotation > -180)) && (_root.arena.barrier.barrieroutside.hitTest(hitx + _root.arena._x, hity + _root.arena._y, true))) {
_xscale = (_xscale - 4);
_yscale = (_yscale - 4);
}
if (hit1._currentframe == 5) {
var depth = (_root.smokedepth++);
if (depth > 100) {
_root.smokedepth = 0;
depth = 0;
}
var newsmoke = ("newsmoke" + depth);
_root.arena.smokes.attachMovie("smoke", newsmoke, depth, {_x:hitx, _y:hity});
_root.arena.smokes[newsmoke]._xscale = (_root.arena.smokes[newsmoke]._yscale = 50);
}
if (_root.arena.players.hitTest(hitx + _root.arena._x, hity + _root.arena._y, true)) {
for (var index in _root.arena.players) {
if (typeof(_root.arena.players[index]) == "movieclip") {
if (((owner == "enemy") && (_root.arena.players[index].owner == "player")) || ((owner == "player") && (_root.arena.players[index].owner == "enemy"))) {
if ((((!_root.arena.players[index].para) && (!_root.arena.players[index].fly)) && (!_root.arena.players[index].inrange)) && (!_root.arena.players[index].inorder)) {
var thisx = _root.arena.players[index]._x;
var thisy = _root.arena.players[index]._y;
var gox = eval (author)._x;
var goy = eval (author)._y;
var xwidth = (thisx - gox);
var yheight = (thisy - goy);
var cangle = Math.sqrt((xwidth * xwidth) + (yheight * yheight));
if (cangle <= 400) {
_root.arena.players[index].targetattack = eval (author);
_root.arena.players[index].go = true;
}
}
if (_root.arena.players[index].fly) {
var hitarea = _root.arena.players[index].movie.hit.hitTest(hit1);
} else {
var hitarea = _root.arena.players[index].hit.hitTest(hit1);
}
if (hitarea) {
if (hit1._currentframe == 5) {
var depth = (_root.smokedepth++);
if (depth > 100) {
_root.smokedepth = 0;
depth = 0;
}
var newexplode = ("newexplode" + depth);
_root.arena.smokes.attachMovie("explode2", newexplode, depth, {_x:hitx, _y:hity});
_root.arena.smokes[newexplode]._xscale = (_root.arena.smokes[newexplode]._yscale = _root.arena.players[index]._xscale);
if (_root.usesound) {
_root.smallblow.start(0, 1);
}
} else if (hit1._currentframe == 4) {
var depth = (_root.smokedepth++);
if (depth > 100) {
_root.smokedepth = 0;
depth = 0;
}
_root.arena.smokes.attachMovie("smoke", "newsmoke" + depth, depth, {_x:hitx, _y:hity});
}
_root.arena.players[index].movie.clip.gotoAndPlay("hit");
if (_root.arena.players[index].owner == "player") {
_root.arena.players[index].live = _root.arena.players[index].live - tosub;
_root.getshot.gotoAndPlay(2);
var countscore = int(_root.arena.players[index].live / 2);
if (countscore > 0) {
_root.scorebar.bar.livebar.live.gotoAndStop(countscore);
} else {
_root.scorebar.bar.livebar.live._visible = false;
}
} else {
if (!_root.arena.players[index].fly) {
var tosub = (_root[("gun" + _root.currentgun) + "power"] / _root.enemydefense[_root.plevel]);
} else {
var tosub = ((_root[("gun" + _root.currentgun) + "power"] / _root.enemydefense[_root.plevel]) / 10);
}
_root.arena.players[index].live = _root.arena.players[index].live - tosub;
var countscore = int(_root.arena.players[index].live / 10);
_root.arena.players[index].bar.gotoAndStop(countscore);
}
if (((!_root.arena.players[index].box) && (!_root.arena.players[index].para)) && (_root.arena.players[index].live < 1)) {
if (_root.arena.players[index].owner == "player") {
_root.lastpx = _root.arena.players.theplayer._x;
_root.lastpy = _root.arena.players.theplayer._y;
if (_root.plive > 1) {
_root.isPause = true;
_root.curtain.gotoAndPlay(2);
} else {
_root.menudeath.gotoAndPlay(2);
_root.plive = 0;
}
} else {
var addscore = int(_root.killscore[_root.plevel]);
_root.thescore = _root.thescore + addscore;
if (!_root.arena.players[index].fly) {
if (_root.arena.players[index].havepil) {
var depth = (_root.playerdepth++);
var newbox = ("newbox" + depth);
_root.arena.players.attachMovie("box", newbox, depth, {_x:_root.arena.players[index]._x, _y:_root.arena.players[index]._y});
_root.arena.players[newbox].box = true;
_root.arena.players[newbox].owner = "enemy";
depth = _root.basedepth++;
_root.arena.barrier.pbarriers.attachMovie("boxbarrier", newbox, depth, {_x:_root.arena.players[index]._x, _y:_root.arena.players[index]._y});
} else if (_root.arena.players[index].havegun) {
var depth = (_root.playerdepth++);
var newbox = ("newbox" + depth);
_root.arena.players.attachMovie("box", newbox, depth, {_x:_root.arena.players[index]._x, _y:_root.arena.players[index]._y});
_root.arena.players[newbox].gotoAndStop(2);
_root.arena.players[newbox].box = true;
_root.arena.players[newbox].owner = "enemy";
_root.arena.players[newbox].havegun = _root.arena.players[index].havegun;
depth = _root.basedepth++;
_root.arena.barrier.pbarriers.attachMovie("boxbarrier", newbox, depth, {_x:_root.arena.players[index]._x, _y:_root.arena.players[index]._y});
}
}
}
if (_root.arena.players[index].fly) {
delete _root.heliahead;
_root.heliskilled++;
_root.thescore = _root.thescore + (addscore * 5);
var depth = (_root.spotdepth++);
if (depth > 100) {
_root.spotdepth = 0;
depth = 0;
}
_root.arena.smokes.attachMovie("explode", "newexplode" + depth, depth, {_x:_root.arena.players[index]._x, _y:_root.arena.players[index]._y});
_root.arena.smokes["newexplode" + depth]._xscale = (_root.arena.smokes["newexplode" + depth]._yscale = _root.arena.players[index]._xscale);
if (_root.arena.players[index].havepil) {
var depth = (_root.playerdepth++);
var newparachute = ("newparachute" + depth);
_root.arena.players.attachMovie("parachute", newparachute, depth, {_x:_root.arena.players[index]._x, _y:0});
_root.arena.players[newparachute].movie.inparachute.box.gotoAndStop(1);
_root.arena.players[newparachute].para = true;
_root.arena.players[newparachute].owner = "enemy";
} else if (_root.arena.players[index].havegun) {
var depth = (_root.playerdepth++);
var newparachute = ("newparachute" + depth);
_root.arena.players.attachMovie("parachute", newparachute, depth, {_x:_root.arena.players[index]._x, _y:0});
_root.arena.players[newparachute].movie.inparachute.box.gotoAndStop(2);
_root.arena.players[newparachute].para = true;
_root.arena.players[newparachute].owner = "enemy";
_root.arena.players[newparachute].guntype = _root.arena.players[index].havegun;
}
_root.resetheli(_root.arena.players[index]._name);
removeMovieClip(_root.arena.barrier.helibarriers[_root.arena.players[index]._name]);
removeMovieClip(_root.arena.players[index]);
_root.helinow--;
if (_root.usesound) {
_root.blowsound.start(0, 1);
}
} else {
var depth = (_root.spotdepth++);
if (depth > 100) {
_root.spotdepth = 0;
depth = 0;
}
_root.arena.spots.attachMovie("spot", "newspot" + depth, depth, {_x:_root.arena.players[index]._x, _y:_root.arena.players[index]._y});
_root.arena.spots["newspot" + depth].gotoAndStop(2);
if (_root.arena.players[index].owner == "player") {
_root.arena.spots["newspot" + depth].blood.bloodani.deadbody.gotoAndStop(1);
} else {
_root.arena.spots["newspot" + depth].blood.bloodani.deadbody.gotoAndStop(2);
_root.troopskilled++;
}
_root.arena.spots["newspot" + depth].blood.bloodani.deadbody.movie.gotoAndStop(_root.arena.players[index].rotnumber);
removeMovieClip(_root.arena.barrier.pbarriers[_root.arena.players[index]._name]);
removeMovieClip(_root.arena.players[index]);
_root.armycount--;
}
} else if ((_root.arena.players[index].fly || (_root.arena.players[index].para)) || (_root.arena.players[index].box)) {
var depth = (_root.smokedepth++);
if (depth > 100) {
_root.smokedepth = 0;
depth = 0;
}
_root.arena.smokes.attachMovie("smoke", "newsmoke" + depth, depth, {_x:hitx, _y:hity});
if (_root.arena.players[index].para) {
if (_root.arena.players[index].movie.inparachute.box._currentframe == 1) {
_root.arena.players.theplayer.live = 100;
_root.scorebar.bar.livebar.live.gotoAndStop(50);
} else if (_root.arena.players[index].movie.inparachute.box._currentframe == 2) {
if (_root.arena.players[index].guntype == 2) {
_root.gun2bullets = _root.gun2bullets + _root.gun2everyload;
} else if (_root.arena.players[index].guntype == 3) {
_root.gun3bullets = _root.gun3bullets + _root.gun3everyload;
} else if (_root.arena.players[index].guntype == 4) {
_root.gun4bullets = _root.gun4bullets + _root.gun4everyload;
} else if (_root.arena.players[index].guntype == 5) {
_root.gun5bullets = _root.gun5bullets + _root.gun5everyload;
}
}
_root.resetparachute(_root.arena.players[index]._name);
removeMovieClip(_root.arena.players[index]);
} else if (_root.arena.players[index].box) {
if (_root.arena.players[index]._currentframe == 1) {
_root.arena.players.theplayer.live = 100;
_root.scorebar.bar.livebar.live.gotoAndStop(50);
} else if (_root.arena.players[index]._currentframe == 2) {
if (_root.arena.players[index].havegun == 2) {
_root.gun2bullets = _root.gun2bullets + _root.gun2everyload;
} else if (_root.arena.players[index].havegun == 3) {
_root.gun3bullets = _root.gun3bullets + _root.gun3everyload;
} else if (_root.arena.players[index].havegun == 4) {
_root.gun4bullets = _root.gun4bullets + _root.gun4everyload;
} else if (_root.arena.players[index].havegun == 5) {
_root.gun5bullets = _root.gun5bullets + _root.gun5everyload;
}
}
removeMovieClip(_root.arena.barrier.pbarriers[_root.arena.players[index]._name]);
removeMovieClip(_root.arena.players[index]);
}
} else {
var depth = (_root.spotdepth++);
if (depth > 100) {
_root.spotdepth = 0;
depth = 0;
}
_root.arena.spots.attachMovie("spot", "newspot" + depth, depth, {_x:_root.arena.players[index]._x, _y:_root.arena.players[index]._y});
_root.arena.spots["newspot" + depth].gotoAndStop(1);
}
removeMovieClip(this);
}
}
}
}
}
}
};
Symbol 2157 MovieClip [bomb] Frame 15
onEnterFrame = null;
stop();
removeMovieClip(this);
Symbol 2163 MovieClip [tankbullet] Frame 1
onEnterFrame = function () {
if (_currentframe > 1) {
var _local13 = _root.arena.players.theplayer.hit.hitTest(hit1);
if (_local13) {
var _local8 = (_xscale / 100) * hit1._x;
var _local12 = (_yscale / 100) * hit1._y;
var _local10 = _local8;
var _local5 = (Math.sin(_rotation * (Math.PI/180)) * _local8) / 1;
var _local7 = (_y + _local12) + _local5;
var _local11 = Math.sqrt((_local10 * _local10) - (_local5 * _local5));
var _local6 = _x + _local11;
if ((_rotation > 90) || (_rotation < -90)) {
_local6 = _x - _local11;
}
var _local3 = _root.smokedepth++;
if (_local3 > 100) {
_root.smokedepth = 0;
_local3 = 0;
}
var _local4 = "newexplode" + _local3;
_root.arena.smokes.attachMovie("explode2", _local4, _local3, {_x:_local6, _y:_local7 + 20});
_root.arena.smokes[_local4]._xscale = (_root.arena.smokes[_local4]._yscale = 75);
if (_root.usesound) {
_root.smallblow.start(0, 1);
}
_root.getshot.gotoAndPlay(2);
_root.arena.players.theplayer.movie.clip.gotoAndPlay("hit");
_root.arena.players.theplayer.live = _root.arena.players.theplayer.live - 20;
var _local9 = int(_root.arena.players.theplayer.live / 2);
if (_local9 > 0) {
_root.scorebar.bar.livebar.live.gotoAndStop(_local9);
} else {
_root.scorebar.bar.livebar.live._visible = false;
}
if (_root.arena.players.theplayer.live < 1) {
_root.lastpx = _root.arena.players.theplayer._x;
_root.lastpy = _root.arena.players.theplayer._y;
_local3 = _root.spotdepth++;
if (_local3 > 100) {
_root.spotdepth = 0;
_local3 = 0;
}
_root.arena.spots.attachMovie("spot", "newspot" + _local3, _local3, {_x:_root.arena.players.theplayer._x, _y:_root.arena.players.theplayer._y});
_root.arena.spots["newspot" + _local3].gotoAndStop(2);
_root.arena.spots["newspot" + _local3].blood.bloodani.deadbody.gotoAndStop(1);
_root.arena.spots["newspot" + _local3].blood.bloodani.deadbody.movie.gotoAndStop(_root.arena.players.theplayer.rotnumber);
removeMovieClip(_root.arena.barrier.pbarriers[_root.arena.players.theplayer._name]);
removeMovieClip(_root.arena.players.theplayer);
if (_root.plive > 1) {
_root.isPause = true;
_root.curtain.gotoAndPlay(2);
} else {
_root.menudeath.gotoAndPlay(2);
_root.plive = 0;
}
} else {
_local3 = _root.spotdepth++;
if (_local3 > 100) {
_root.spotdepth = 0;
_local3 = 0;
}
_root.arena.spots.attachMovie("spot", "newspot" + _local3, _local3, {_x:_root.arena.players.theplayer._x, _y:_root.arena.players.theplayer._y});
_root.arena.spots["newspot" + _local3].gotoAndStop(1);
}
removeMovieClip(this);
} else if (_currentframe >= 9) {
var _local8 = (_xscale / 100) * hit1._x;
var _local12 = (_yscale / 100) * hit1._y;
var _local10 = _local8;
var _local5 = (Math.sin(_rotation * (Math.PI/180)) * _local8) / 1;
var _local7 = (_y + _local12) + _local5;
var _local11 = Math.sqrt((_local10 * _local10) - (_local5 * _local5));
var _local6 = _x + _local11;
if ((_rotation > 90) || (_rotation < -90)) {
_local6 = _x - _local11;
}
var _local3 = _root.smokedepth++;
if (_local3 > 100) {
_root.smokedepth = 0;
_local3 = 0;
}
_root.arena.smokes.attachMovie("smoke", "newsmoke" + _local3, _local3, {_x:_local6, _y:_local7});
if (_currentframe == 14) {
_local3 = _root.smokedepth++;
if (_local3 > 100) {
_root.smokedepth = 0;
_local3 = 0;
}
var _local4 = "newexplode" + _local3;
_root.arena.smokes.attachMovie("explode2", _local4, _local3, {_x:_local6, _y:_local7 + 20});
_root.arena.smokes[_local4]._xscale = (_root.arena.smokes[_local4]._yscale = 20);
if (_root.usesound) {
_root.smallblow.start(0, 1);
}
}
}
}
};
Symbol 2163 MovieClip [tankbullet] Frame 15
onEnterFrame = null;
stop();
removeMovieClip(this);
Symbol 2164 MovieClip [bulletheli] Frame 1
onEnterFrame = function () {
if (_currentframe > 1) {
var _local13 = _root.arena.players.theplayer.hit.hitTest(hit1);
if (_local13) {
var _local8 = (_xscale / 100) * hit1._x;
var _local12 = (_yscale / 100) * hit1._y;
var _local10 = _local8;
var _local5 = (Math.sin(_rotation * (Math.PI/180)) * _local8) / 1;
var _local7 = (_y + _local12) + _local5;
var _local11 = Math.sqrt((_local10 * _local10) - (_local5 * _local5));
var _local6 = _x + _local11;
if ((_rotation > 90) || (_rotation < -90)) {
_local6 = _x - _local11;
}
var _local3 = _root.smokedepth++;
if (_local3 > 100) {
_root.smokedepth = 0;
_local3 = 0;
}
var _local4 = "newexplode" + _local3;
_root.arena.smokes.attachMovie("explode2", _local4, _local3, {_x:_local6, _y:_local7 + 20});
_root.arena.smokes[_local4]._xscale = (_root.arena.smokes[_local4]._yscale = 75);
if (_root.usesound) {
_root.smallblow.start(0, 1);
}
_root.getshot.gotoAndPlay(2);
_root.arena.players.theplayer.movie.clip.gotoAndPlay("hit");
_root.arena.players.theplayer.live = _root.arena.players.theplayer.live - 10;
var _local9 = int(_root.arena.players.theplayer.live / 2);
if (_local9 > 0) {
_root.scorebar.bar.livebar.live.gotoAndStop(_local9);
} else {
_root.scorebar.bar.livebar.live._visible = false;
}
if (_root.arena.players.theplayer.live < 1) {
_root.lastpx = _root.arena.players.theplayer._x;
_root.lastpy = _root.arena.players.theplayer._y;
_local3 = _root.spotdepth++;
if (_local3 > 100) {
_root.spotdepth = 0;
_local3 = 0;
}
_root.arena.spots.attachMovie("spot", "newspot" + _local3, _local3, {_x:_root.arena.players.theplayer._x, _y:_root.arena.players.theplayer._y});
_root.arena.spots["newspot" + _local3].gotoAndStop(2);
_root.arena.spots["newspot" + _local3].blood.bloodani.deadbody.gotoAndStop(1);
_root.arena.spots["newspot" + _local3].blood.bloodani.deadbody.movie.gotoAndStop(_root.arena.players.theplayer.rotnumber);
removeMovieClip(_root.arena.barrier.pbarriers[_root.arena.players.theplayer._name]);
removeMovieClip(_root.arena.players.theplayer);
if (_root.plive > 1) {
_root.isPause = true;
_root.curtain.gotoAndPlay(2);
} else {
_root.menudeath.gotoAndPlay(2);
_root.plive = 0;
}
} else {
_local3 = _root.spotdepth++;
if (_local3 > 100) {
_root.spotdepth = 0;
_local3 = 0;
}
_root.arena.spots.attachMovie("spot", "newspot" + _local3, _local3, {_x:_root.arena.players.theplayer._x, _y:_root.arena.players.theplayer._y});
_root.arena.spots["newspot" + _local3].gotoAndStop(1);
}
removeMovieClip(this);
} else if (_currentframe >= 9) {
var _local8 = (_xscale / 100) * hit1._x;
var _local12 = (_yscale / 100) * hit1._y;
var _local10 = _local8;
var _local5 = (Math.sin(_rotation * (Math.PI/180)) * _local8) / 1;
var _local7 = (_y + _local12) + _local5;
var _local11 = Math.sqrt((_local10 * _local10) - (_local5 * _local5));
var _local6 = _x + _local11;
if ((_rotation > 90) || (_rotation < -90)) {
_local6 = _x - _local11;
}
var _local3 = _root.smokedepth++;
if (_local3 > 100) {
_root.smokedepth = 0;
_local3 = 0;
}
_root.arena.smokes.attachMovie("smoke", "newsmoke" + _local3, _local3, {_x:_local6, _y:_local7});
if (_currentframe == 14) {
_local3 = _root.smokedepth++;
if (_local3 > 100) {
_root.smokedepth = 0;
_local3 = 0;
}
var _local4 = "newexplode" + _local3;
_root.arena.smokes.attachMovie("explode2", _local4, _local3, {_x:_local6, _y:_local7 + 20});
_root.arena.smokes[_local4]._xscale = (_root.arena.smokes[_local4]._yscale = 20);
if (_root.usesound) {
_root.smallblow.start(0, 1);
}
}
}
}
};
Symbol 2164 MovieClip [bulletheli] Frame 15
onEnterFrame = null;
stop();
removeMovieClip(this);
Symbol 2165 MovieClip [bullet1] Frame 1
onEnterFrame = function () {
if (_currentframe > 1) {
var fromx = ((_xscale / 100) * hit1._x);
var fromy = ((_yscale / 100) * hit1._y);
var xwidth = fromx;
var yheight = ((Math.sin(_rotation * (Math.PI/180)) * fromx) / 1);
var hity = ((_y + fromy) + yheight);
var countx = Math.sqrt((xwidth * xwidth) - (yheight * yheight));
var hitx = (_x + countx);
if ((_rotation > 90) || (_rotation < -90)) {
hitx = _x - countx;
}
if (((_rotation < 0) && (_rotation > -180)) && (_root.arena.barrier.barrieroutside.hitTest(hitx + _root.arena._x, hity + _root.arena._y, true))) {
_xscale = (_xscale - 4);
_yscale = (_yscale - 4);
}
if (hit1._currentframe == 5) {
var depth = (_root.smokedepth++);
if (depth > 100) {
_root.smokedepth = 0;
depth = 0;
}
var newsmoke = ("newsmoke" + depth);
_root.arena.smokes.attachMovie("smoke", newsmoke, depth, {_x:hitx, _y:hity});
_root.arena.smokes[newsmoke]._xscale = (_root.arena.smokes[newsmoke]._yscale = 50);
}
if (_root.arena.players.hitTest(hitx + _root.arena._x, hity + _root.arena._y, true)) {
for (var index in _root.arena.players) {
if (typeof(_root.arena.players[index]) == "movieclip") {
if (((owner == "enemy") && (_root.arena.players[index].owner == "player")) || ((owner == "player") && (_root.arena.players[index].owner == "enemy"))) {
if ((((!_root.arena.players[index].para) && (!_root.arena.players[index].fly)) && (!_root.arena.players[index].inrange)) && (!_root.arena.players[index].inorder)) {
var thisx = _root.arena.players[index]._x;
var thisy = _root.arena.players[index]._y;
var gox = eval (author)._x;
var goy = eval (author)._y;
var xwidth = (thisx - gox);
var yheight = (thisy - goy);
var cangle = Math.sqrt((xwidth * xwidth) + (yheight * yheight));
if (cangle <= 400) {
_root.arena.players[index].targetattack = eval (author);
_root.arena.players[index].go = true;
}
}
if (_root.arena.players[index].fly) {
var hitarea = _root.arena.players[index].movie.hit.hitTest(hit1);
} else {
var hitarea = _root.arena.players[index].hit.hitTest(hit1);
}
if (hitarea) {
if (hit1._currentframe == 5) {
var depth = (_root.smokedepth++);
if (depth > 100) {
_root.smokedepth = 0;
depth = 0;
}
var newexplode = ("newexplode" + depth);
_root.arena.smokes.attachMovie("explode2", newexplode, depth, {_x:hitx, _y:hity});
_root.arena.smokes[newexplode]._xscale = (_root.arena.smokes[newexplode]._yscale = _root.arena.players[index]._xscale);
if (_root.usesound) {
_root.smallblow.start(0, 1);
}
} else if (hit1._currentframe == 4) {
var depth = (_root.smokedepth++);
if (depth > 100) {
_root.smokedepth = 0;
depth = 0;
}
_root.arena.smokes.attachMovie("smoke", "newsmoke" + depth, depth, {_x:hitx, _y:hity});
}
_root.arena.players[index].movie.clip.gotoAndPlay("hit");
if (_root.arena.players[index].owner == "player") {
var tosub = ((_root.gun2power / _root.enemydefense[(_root.level2max - 1) - _root.plevel]) / 3);
_root.arena.players[index].live = _root.arena.players[index].live - tosub;
_root.getshot.gotoAndPlay(2);
var countscore = int(_root.arena.players[index].live / 2);
if (countscore > 0) {
_root.scorebar.bar.livebar.live.gotoAndStop(countscore);
} else {
_root.scorebar.bar.livebar.live._visible = false;
}
} else {
if (!_root.arena.players[index].fly) {
var tosub = (_root[("gun" + _root.currentgun) + "power"] / _root.enemydefense[_root.plevel]);
} else {
var tosub = ((_root[("gun" + _root.currentgun) + "power"] / _root.enemydefense[_root.plevel]) / 10);
}
_root.arena.players[index].live = _root.arena.players[index].live - tosub;
if (_root.arena.players[index].tank) {
var countscore = int(_root.arena.players[index].live / 200);
} else {
var countscore = int(_root.arena.players[index].live / 10);
}
_root.arena.players[index].bar.gotoAndStop(countscore);
}
if (((!_root.arena.players[index].box) && (!_root.arena.players[index].para)) && (_root.arena.players[index].live < 1)) {
if (_root.arena.players[index].owner == "player") {
_root.lastpx = _root.arena.players.theplayer._x;
_root.lastpy = _root.arena.players.theplayer._y;
if (_root.plive > 1) {
_root.isPause = true;
_root.curtain.gotoAndPlay(2);
} else {
_root.menudeath.gotoAndPlay(2);
_root.plive = 0;
}
} else {
var addscore = int(_root.killscore[_root.plevel]);
_root.thescore = _root.thescore + addscore;
if (!_root.arena.players[index].fly) {
if (_root.arena.players[index].havepil) {
var depth = (_root.playerdepth++);
var newbox = ("newbox" + depth);
_root.arena.players.attachMovie("box", newbox, depth, {_x:_root.arena.players[index]._x, _y:_root.arena.players[index]._y});
_root.arena.players[newbox].box = true;
_root.arena.players[newbox].owner = "enemy";
depth = _root.basedepth++;
_root.arena.barrier.pbarriers.attachMovie("boxbarrier", newbox, depth, {_x:_root.arena.players[index]._x, _y:_root.arena.players[index]._y});
} else if (_root.arena.players[index].havegun) {
var depth = (_root.playerdepth++);
var newbox = ("newbox" + depth);
_root.arena.players.attachMovie("box", newbox, depth, {_x:_root.arena.players[index]._x, _y:_root.arena.players[index]._y});
_root.arena.players[newbox].gotoAndStop(2);
_root.arena.players[newbox].box = true;
_root.arena.players[newbox].owner = "enemy";
_root.arena.players[newbox].havegun = _root.arena.players[index].havegun;
depth = _root.basedepth++;
_root.arena.barrier.pbarriers.attachMovie("boxbarrier", newbox, depth, {_x:_root.arena.players[index]._x, _y:_root.arena.players[index]._y});
}
}
}
if (_root.arena.players[index].fly) {
delete _root.heliahead;
_root.heliskilled++;
_root.thescore = _root.thescore + (addscore * 5);
var depth = (_root.spotdepth++);
if (depth > 100) {
_root.spotdepth = 0;
depth = 0;
}
if (_root.arena.players[index].ship) {
if (_root.arena.players[index].shipowner == "blue") {
_root.arena.smokes.attachMovie("ship1explode", "newexplode" + depth, depth, {_x:_root.arena.players[index]._x, _y:_root.arena.players[index]._y});
_root.arena.smokes["newexplode" + depth]._xscale = (_root.arena.smokes["newexplode" + depth]._yscale = _root.arena.players[index]._xscale);
} else if (_root.arena.players[index].shipowner == "red") {
_root.arena.smokes.attachMovie("ship2explode", "newexplode" + depth, depth, {_x:_root.arena.players[index]._x, _y:_root.arena.players[index]._y + 20});
_root.arena.smokes["newexplode" + depth]._xscale = (_root.arena.smokes["newexplode" + depth]._yscale = _root.arena.players[index]._xscale + 15);
} else if (_root.arena.players[index].jeep) {
_root.arena.smokes.attachMovie("jeepexplode2", "newexplode" + depth, depth, {_x:_root.arena.players[index]._x, _y:_root.arena.players[index]._y});
_root.arena.smokes["newexplode" + depth]._xscale = (_root.arena.smokes["newexplode" + depth]._yscale = _root.arena.players[index]._xscale);
}
} else {
_root.arena.smokes.attachMovie("helinewexplode", "newexplode" + depth, depth, {_x:_root.arena.players[index]._x, _y:_root.arena.players[index]._y});
_root.arena.smokes["newexplode" + depth]._xscale = (_root.arena.smokes["newexplode" + depth]._yscale = _root.arena.players[index]._xscale);
_root.arena.smokes["newexplode" + depth].gotoAndStop(_root.arena.players[index].movie._currentframe);
}
if (_root.arena.players[index].havepil) {
var depth = (_root.playerdepth++);
var newparachute = ("newparachute" + depth);
_root.arena.players.attachMovie("parachute", newparachute, depth, {_x:_root.arena.players[index]._x, _y:0});
_root.arena.players[newparachute].movie.inparachute.box.gotoAndStop(1);
_root.arena.players[newparachute].para = true;
_root.arena.players[newparachute].owner = "enemy";
} else if (_root.arena.players[index].havegun) {
var depth = (_root.playerdepth++);
var newparachute = ("newparachute" + depth);
_root.arena.players.attachMovie("parachute", newparachute, depth, {_x:_root.arena.players[index]._x, _y:0});
_root.arena.players[newparachute].movie.inparachute.box.gotoAndStop(2);
_root.arena.players[newparachute].para = true;
_root.arena.players[newparachute].owner = "enemy";
_root.arena.players[newparachute].guntype = _root.arena.players[index].havegun;
}
if (_root.arena.players[index].ship) {
if (_root.arena.players[index].jeep) {
_root.heli3now--;
} else {
_root.troopskilled = _root.troopskilled + _root.arena.players[index].armytotal;
_root.heli2now--;
}
} else {
_root.helinow--;
}
_root.resetheli(_root.arena.players[index]._name);
removeMovieClip(_root.arena.barrier.helibarriers[_root.arena.players[index]._name]);
removeMovieClip(_root.arena.players[index]);
if (_root.usesound) {
_root.blowsound.start(0, 1);
}
} else if (_root.arena.players[index].tower && (_root.arena.players[index].army == null)) {
_root.arena.smokes.attachMovie("newtowerexp", "newexplode" + depth, depth, {_x:_root.arena.players[index]._x, _y:_root.arena.players[index]._y});
_root.arena.smokes["newexplode" + depth]._xscale = (_root.arena.smokes["newexplode" + depth]._yscale = _root.arena.players[index]._xscale);
removeMovieClip(_root.arena.barrier.pbarriers[_root.arena.players[index]._name]);
removeMovieClip(_root.arena.players[index]);
_root.towernow--;
if (_root.usesound) {
_root.blowsound.start(0, 1);
}
} else if (_root.arena.players[index].tank) {
_root.arena.smokes.attachMovie("tankboom", "newexplode" + depth, depth, {_x:_root.arena.players[index]._x, _y:_root.arena.players[index]._y});
_root.arena.smokes["newexplode" + depth]._xscale = (_root.arena.smokes["newexplode" + depth]._yscale = _root.arena.players[index]._xscale);
_root.arena.smokes["newexplode" + depth].gotoAndStop(_root.arena.players[index]._currentframe);
removeMovieClip(_root.arena.barrier.pbarriers[_root.arena.players[index]._name]);
removeMovieClip(_root.arena.players[index]);
_root.tanknow--;
if (_root.usesound) {
_root.blowsound.start(0, 1);
}
} else {
var depth = (_root.spotdepth++);
if (depth > 100) {
_root.spotdepth = 0;
depth = 0;
}
_root.arena.spots.attachMovie("spot", "newspot" + depth, depth, {_x:_root.arena.players[index]._x, _y:_root.arena.players[index]._y});
_root.arena.spots["newspot" + depth].gotoAndStop(2);
if (_root.arena.players[index].owner == "player") {
_root.arena.spots["newspot" + depth].blood.bloodani.deadbody.gotoAndStop(1);
} else if (_root.arena.players[index].army == "blue") {
_root.arena.spots["newspot" + depth].blood.bloodani.deadbody.gotoAndStop(5);
_root.troopskilled++;
} else if (_root.arena.players[index].army == "red") {
_root.arena.spots["newspot" + depth].blood.bloodani.deadbody.gotoAndStop(3);
_root.troopskilled++;
} else if (_root.arena.players[index].army == "big") {
_root.arena.spots["newspot" + depth].blood.bloodani.deadbody.gotoAndStop(4);
_root.troopskilled++;
} else if (_root.arena.players[index].army == "land") {
_root.arena.spots["newspot" + depth].blood.bloodani.deadbody.gotoAndStop(6);
_root.troopskilled++;
} else {
_root.arena.spots["newspot" + depth].blood.bloodani.deadbody.gotoAndStop(2);
_root.troopskilled++;
}
_root.arena.spots["newspot" + depth].blood.bloodani.deadbody.movie.gotoAndStop(_root.arena.players[index].rotnumber);
removeMovieClip(_root.arena.barrier.pbarriers[_root.arena.players[index]._name]);
removeMovieClip(_root.arena.players[index]);
_root.armycount--;
}
} else if ((_root.arena.players[index].fly || (_root.arena.players[index].para)) || (_root.arena.players[index].box)) {
var depth = (_root.smokedepth++);
if (depth > 100) {
_root.smokedepth = 0;
depth = 0;
}
_root.arena.smokes.attachMovie("smoke", "newsmoke" + depth, depth, {_x:hitx, _y:hity});
if (_root.arena.players[index].para) {
if (_root.arena.players[index].movie.inparachute.box._currentframe == 1) {
_root.arena.players.theplayer.live = 100;
_root.scorebar.bar.livebar.live.gotoAndStop(50);
} else if (_root.arena.players[index].movie.inparachute.box._currentframe == 2) {
if (_root.arena.players[index].guntype == 2) {
_root.gun2bullets = _root.gun2bullets + _root.gun2everyload;
} else if (_root.arena.players[index].guntype == 3) {
_root.gun3bullets = _root.gun3bullets + _root.gun3everyload;
} else if (_root.arena.players[index].guntype == 4) {
_root.gun4bullets = _root.gun4bullets + _root.gun4everyload;
} else if (_root.arena.players[index].guntype == 5) {
_root.gun5bullets = _root.gun5bullets + _root.gun5everyload;
}
}
_root.resetparachute(_root.arena.players[index]._name);
removeMovieClip(_root.arena.players[index]);
} else if (_root.arena.players[index].box) {
if (_root.arena.players[index]._currentframe == 1) {
_root.arena.players.theplayer.live = 100;
_root.scorebar.bar.livebar.live.gotoAndStop(50);
} else if (_root.arena.players[index]._currentframe == 2) {
if (_root.arena.players[index].havegun == 2) {
_root.gun2bullets = _root.gun2bullets + _root.gun2everyload;
} else if (_root.arena.players[index].havegun == 3) {
_root.gun3bullets = _root.gun3bullets + _root.gun3everyload;
} else if (_root.arena.players[index].havegun == 4) {
_root.gun4bullets = _root.gun4bullets + _root.gun4everyload;
} else if (_root.arena.players[index].havegun == 5) {
_root.gun5bullets = _root.gun5bullets + _root.gun5everyload;
}
}
removeMovieClip(_root.arena.barrier.pbarriers[_root.arena.players[index]._name]);
removeMovieClip(_root.arena.players[index]);
}
} else {
var depth = (_root.spotdepth++);
if (depth > 100) {
_root.spotdepth = 0;
depth = 0;
}
if (!_root.arena.players[index].tank) {
_root.arena.spots.attachMovie("spot", "newspot" + depth, depth, {_x:_root.arena.players[index]._x, _y:_root.arena.players[index]._y});
_root.arena.spots["newspot" + depth].gotoAndStop(1);
}
}
if (hit1._currentframe != 5) {
removeMovieClip(this);
}
}
}
}
}
if (hit1._currentframe == 5) {
removeMovieClip(this);
}
}
}
};
Symbol 2165 MovieClip [bullet1] Frame 9
onEnterFrame = null;
Symbol 2165 MovieClip [bullet1] Frame 10
stop();
removeMovieClip(this);
Symbol 2182 MovieClip Frame 1
stop();
Symbol 2182 MovieClip Frame 2
stop();
Symbol 2182 MovieClip Frame 3
stop();
Symbol 2182 MovieClip Frame 4
stop();
Symbol 2182 MovieClip Frame 5
stop();
Symbol 2182 MovieClip Frame 6
stop();
Symbol 2182 MovieClip Frame 7
stop();
Symbol 2182 MovieClip Frame 8
stop();
Symbol 2182 MovieClip Frame 9
stop();
Symbol 2183 MovieClip [helibar] Frame 1
stop();
Symbol 2183 MovieClip [helibar] Frame 2
stop();
Symbol 2200 MovieClip [ending] Frame 150
stop();
_parent.gotoAndPlay(1);
Symbol 2210 MovieClip [cg] Frame 129
_parent.gotoAndPlay("gamestart");
Symbol 2215 Button
on (release) {
getURL ("http://www.freeonlinegamesforyourwebsite.com/?" + _root.gameName, "_blank");
}
Symbol 2276 MovieClip Frame 1
stop();
var tagctr = (random(55) + 1);
gotoAndStop(tagctr);
Symbol 2277 MovieClip Frame 105
stop();
Symbol 2283 MovieClip Frame 1
_root.earl223 = function (val) {
var _local3 = new Array("_", "Z", "y", "x", "W", "v", "u", "T", "s", "r", "Q", "P", "O", "n", "m", "L", "K", "j", "i", "H", "g", "F", "e", "d", "C", "B", "a");
var _local2 = "";
val1 = 0;
while (val1 < val.length) {
if (val.substr(val1, 1) == ":") {
_local2 = _local2 + ":";
} else if (Number(val.substr(val1, 2)) > 26) {
_local2 = _local2 + _local3[Number(val.substr(val1, 1))];
} else if (Number(val.substr(val1, 1)) == 0) {
_local2 = _local2 + "_";
} else {
_local2 = _local2 + _local3[Number(val.substr(val1, 2))];
val1++;
}
val1++;
}
return(_local2);
};
Symbol 2290 MovieClip Frame 1
stop();
Instance of Symbol 2303 MovieClip "mcNotice" in Symbol 2340 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 2340 MovieClip Frame 120
stop();
if ((_url.indexOf("freeonlinegames.com") >= 0) && (_url.indexOf("file:") == -1)) {
_root.okToPlay = true;
_root.play();
} else if (_root.debug) {
_root.okToPlay = true;
_root.play();
} else {
_root.mcTaglines._visible = false;
mcNotice._visible = true;
}
Symbol 2341 MovieClip Frame 71
stop();
var fogsound = new Sound();
fogsound.onSoundComplete = function () {
_root.okToPlay = true;
_root.play();
};
fogsound.attachSound("fogaudio");
fogsound.start(0, 1);
Symbol 2345 MovieClip Frame 1
stop();
Symbol 2362 Button
on (press) {
_root.gotoAndPlay("cg");
}
Symbol 2367 Button
on (press) {
_root.gotoAndPlay("howtoplay");
}
Symbol 2372 Button
on (release) {
getURL ("http://www.freeonlinegames.com", "_blank");
}
Symbol 2373 MovieClip Frame 29
stop();
Symbol 2461 Button
on (press) {
_root.gotoAndPlay(1);
}
Symbol 2462 MovieClip Frame 35
stop();
Symbol 2464 MovieClip Frame 1
this._visible = false;
Symbol 2483 MovieClip Frame 1
var toadd = 10;
var xpostoadd = (toadd / 3.41);
var delayrot = 0;
onEnterFrame = function () {
if (!_root.isPause) {
var _local30 = 0;
for (var _local34 in this) {
if (typeof(this[_local34]) == "movieclip") {
var _local5 = this[_local34]._x + _parent._x;
var _local4 = this[_local34]._y + _parent._y;
if ((!this[_local34].fly) && (!this[_local34].tower)) {
var _local7 = _root.arena.barrier.pbarriers[this[_local34]._name]._y;
_root.arena.barrier.pbarriers[this[_local34]._name]._y = -20;
var _local32 = 25;
if (_root.arena.barrier.hitTest(_local5, _local4, true)) {
if (_root.arena.barrier.hitTest(_local5 + _local32, _local4, true)) {
if (_root.arena.barrier.hitTest(_local5 - _local32, _local4, true)) {
if (_root.arena.barrier.hitTest(_local5, _local4 + _local32, true)) {
if (_root.arena.barrier.hitTest(_local5, _local4 - _local32, true)) {
} else {
this[_local34]._y = this[_local34]._y - 5;
_local7 = _local7 - 5;
}
} else {
this[_local34]._y = this[_local34]._y + 5;
_local7 = _local7 + 5;
}
} else {
this[_local34]._x = this[_local34]._x - 5;
_root.arena.barrier.pbarriers[this[_local34]._name]._x = _root.arena.barrier.pbarriers[this[_local34]._name]._x - 5;
}
} else {
this[_local34]._x = this[_local34]._x + 5;
_root.arena.barrier.pbarriers[this[_local34]._name]._x = _root.arena.barrier.pbarriers[this[_local34]._name]._x + 5;
}
}
_root.arena.barrier.pbarriers[this[_local34]._name]._y = _local7;
}
var _local7 = this[_local34]._y;
this[_local34]._y = -20;
var _local24 = ((((((((((this.hitTest(_local5, _local4, true) || (this.hitTest(_local5, _local4 - 50, true))) || (this.hitTest(_local5 + 20, _local4 - 50, true))) || (this.hitTest(_local5 - 20, _local4 - 50, true))) || (this.hitTest(_local5 + 40, _local4, true))) || (this.hitTest(_local5 - 40, _local4, true))) || (this.hitTest(_local5 + 60, _local4, true))) || (this.hitTest(_local5 - 60, _local4, true))) || (this.hitTest(_local5 + 40, _local4 - 50, true))) || (this.hitTest(_local5 - 40, _local4 - 50, true))) || (this.hitTest(_local5 + 60, _local4 - 50, true))) || (this.hitTest(_local5 - 60, _local4 - 50, true));
this[_local34]._y = _local7;
_local7 = null;
if (_local24) {
for (var _local31 in this) {
if ((typeof(this[_local31]) == "movieclip") && (this[_local34] != this[_local31])) {
if (((this[_local34]._y < this[_local31]._y) && (this[_local34].getDepth() > this[_local31].getDepth())) || ((this[_local34]._y > this[_local31]._y) && (this[_local34].getDepth() < this[_local31].getDepth()))) {
this[_local34].swapDepths(this[_local31]);
}
}
}
}
if (this[_local34].commander) {
var _local17 = this[_local34]._y - 14;
var _local8 = this[_local34]._x - _xmouse;
var _local9 = _local17 - _ymouse;
var _local20 = Math.sqrt((_local8 * _local8) + (_local9 * _local9));
var _local25 = (1 * _local8) / _local20;
var _local6 = 90 + (Math.asin(_local25) * 57.2957795130823);
if (_local17 > _ymouse) {
_local6 = -_local6;
}
var _local19 = ((_local8 / 1.3) * (_local20 / 2)) / _local20;
var _local22 = (_local19 * (_local9 / 1.3)) / _local8;
_root.arena.xpos = -(((this[_local34]._x - 320) - _local19) / 3.41);
_root.arena.ypos = -(((this[_local34]._y - 240) - _local22) / 3.41);
if (shaketime) {
if (plus) {
_root.arena._y = _root.arena._y + shake;
_local4 = _local4 + shake;
plus = null;
} else {
_root.arena._y = _root.arena._y - shake;
_local4 = _local4 - shake;
plus = true;
}
var _local27 = random(10);
if (_local27 > 5) {
_local5 = _local5 + shake;
_root.arena._x = _root.arena._x + shake;
} else {
_local4 = _local4 - shake;
_root.arena._x = _root.arena._x - shake;
}
shaketime--;
} else if (plus) {
delete plus;
} else if (shaketime == 0) {
delete shaketime;
delete shake;
}
var _local21;
if ((_local6 <= 180) && (_local6 > 177.5)) {
_local21 = 26;
} else if ((_local6 <= 177.5) && (_local6 > 172.5)) {
_local21 = 27;
} else if ((_local6 <= 172.5) && (_local6 > 167.5)) {
_local21 = 28;
} else if ((_local6 <= 167.5) && (_local6 > 162)) {
_local21 = 29;
} else if ((_local6 <= 162) && (_local6 > 155)) {
_local21 = 30;
} else if ((_local6 <= 155) && (_local6 > 142)) {
_local21 = 31;
} else if ((_local6 <= 142) && (_local6 > 124)) {
_local21 = 32;
} else if ((_local6 <= 124) && (_local6 > 78)) {
_local21 = 1;
} else if ((_local6 <= 78) && (_local6 > 56)) {
_local21 = 2;
} else if ((_local6 <= 56) && (_local6 > 38)) {
_local21 = 3;
} else if ((_local6 <= 38) && (_local6 > 25)) {
_local21 = 4;
} else if ((_local6 <= 25) && (_local6 > 18)) {
_local21 = 5;
} else if ((_local6 <= 18) && (_local6 > 12.5)) {
_local21 = 6;
} else if ((_local6 <= 12.5) && (_local6 > 7.5)) {
_local21 = 7;
} else if ((_local6 <= 7.5) && (_local6 > 2.5)) {
_local21 = 8;
} else if ((_local6 <= 2.5) && (_local6 > 0)) {
_local21 = 9;
} else if ((_local6 >= -180) && (_local6 < -174.375)) {
_local21 = 25;
} else if ((_local6 >= -174.375) && (_local6 < -163.125)) {
_local21 = 24;
} else if ((_local6 >= -163.125) && (_local6 < -151.875)) {
_local21 = 23;
} else if ((_local6 >= -151.875) && (_local6 < -140.625)) {
_local21 = 22;
} else if ((_local6 >= -140.625) && (_local6 < -129.375)) {
_local21 = 21;
} else if ((_local6 >= -129.375) && (_local6 < -118.125)) {
_local21 = 20;
} else if ((_local6 >= -118.125) && (_local6 < -106.87)) {
_local21 = 19;
} else if ((_local6 >= -106.875) && (_local6 < -95.625)) {
_local21 = 18;
} else if ((_local6 >= -95.625) && (_local6 < -78)) {
_local21 = 17;
} else if ((_local6 >= -78) && (_local6 < -56)) {
_local21 = 16;
} else if ((_local6 >= -56) && (_local6 < -38)) {
_local21 = 15;
} else if ((_local6 >= -38) && (_local6 < -25)) {
_local21 = 14;
} else if ((_local6 >= -25) && (_local6 < -18)) {
_local21 = 13;
} else if ((_local6 >= -18) && (_local6 < -12.5)) {
_local21 = 12;
} else if ((_local6 >= -12.5) && (_local6 < -7.5)) {
_local21 = 11;
} else if ((_local6 >= -7.5) && (_local6 < -2.5)) {
_local21 = 10;
} else if ((_local6 >= -2.5) && (_local6 < 0)) {
_local21 = 9;
}
this[_local34].rotnumber = _local21;
this[_local34].movie.gotoAndStop(_local21);
var _local16 = false;
if (Key.isDown(65) || (Key.isDown(37))) {
_local7 = _root.arena.barrier.pbarriers[this[_local34]._name]._y;
_root.arena.barrier.pbarriers[this[_local34]._name]._y = -20;
var _local23 = _root.arena.barrier.hitTest(_local5 - toadd, _local4, true);
_root.arena.barrier.pbarriers[this[_local34]._name]._y = _local7;
if (!_local23) {
this[_local34]._x = this[_local34]._x - toadd;
_root.arena.barrier.pbarriers[this[_local34]._name]._x = _root.arena.barrier.pbarriers[this[_local34]._name]._x - toadd;
_root.arena.xpos = _root.arena.xpos + xpostoadd;
this[_local34].movie.clip.play();
}
} else if (Key.isDown(68) || (Key.isDown(39))) {
_local7 = _root.arena.barrier.pbarriers[this[_local34]._name]._y;
_root.arena.barrier.pbarriers[this[_local34]._name]._y = -20;
var _local23 = _root.arena.barrier.hitTest(_local5 + toadd, _local4, true);
_root.arena.barrier.pbarriers[this[_local34]._name]._y = _local7;
if (!_local23) {
this[_local34]._x = this[_local34]._x + toadd;
_root.arena.barrier.pbarriers[this[_local34]._name]._x = _root.arena.barrier.pbarriers[this[_local34]._name]._x + toadd;
_root.arena.xpos = _root.arena.xpos - xpostoadd;
this[_local34].movie.clip.play();
}
} else {
_local16 = true;
}
if (Key.isDown(87) || (Key.isDown(38))) {
_local7 = _root.arena.barrier.pbarriers[this[_local34]._name]._y;
_root.arena.barrier.pbarriers[this[_local34]._name]._y = -20;
var _local23 = _root.arena.barrier.hitTest(_local5, _local4 - toadd, true);
_root.arena.barrier.pbarriers[this[_local34]._name]._y = _local7;
if (!_local23) {
this[_local34]._y = this[_local34]._y - toadd;
_root.arena.barrier.pbarriers[this[_local34]._name]._y = _root.arena.barrier.pbarriers[this[_local34]._name]._y - toadd;
_root.arena.ypos = _root.arena.ypos + xpostoadd;
this[_local34].movie.clip.play();
}
} else if (Key.isDown(83) || (Key.isDown(40))) {
_local7 = _root.arena.barrier.pbarriers[this[_local34]._name]._y;
_root.arena.barrier.pbarriers[this[_local34]._name]._y = -20;
var _local23 = _root.arena.barrier.hitTest(_local5, _local4 + toadd, true);
_root.arena.barrier.pbarriers[this[_local34]._name]._y = _local7;
if (!_local23) {
this[_local34]._y = this[_local34]._y + toadd;
_root.arena.barrier.pbarriers[this[_local34]._name]._y = _root.arena.barrier.pbarriers[this[_local34]._name]._y + toadd;
_root.arena.ypos = _root.arena.ypos - xpostoadd;
this[_local34].movie.clip.play();
}
} else if (_local16) {
_local16 = null;
if (this[_local34].movie.clip._currentframe < 5) {
this[_local34].movie.clip.gotoAndStop(1);
}
}
if (shootthem) {
this[_local34].movie.clip.gotoAndPlay("shocked");
var _local18 = _root.bulletdepth++;
if (_local18 > 100) {
_root.bulletdepth = 0;
_local18 = 0;
}
var _local13 = "newbullet" + _local18;
_parent.bullets.attachMovie("bullet1", _local13, _local18, {_x:this[_local34]._x, _y:this[_local34]._y - 14});
_parent.bullets[_local13]._rotation = _local6;
_parent.bullets[_local13].owner = this[_local34].owner;
_parent.bullets[_local13].author = this[_local34];
_parent.bullets[_local13].hit1.gotoAndStop(_root.currentgun);
this[_local34].delayshoot = 30;
shootthem = false;
if (_root.currentgun > 1) {
if (_root.currentgun == 2) {
if (_root.usesound) {
_root.shotgunsound.start(0, 1);
}
if (!shaketime) {
shaketime = 3;
shake = 2;
}
_root.gun2bullets--;
if (_root.gun2bullets == 0) {
_root.currentgun = 1;
_root.arena.players.theplayer.gotoAndStop(1);
_root.scorebar.gunbar.gotoAndStop(1);
}
} else if (_root.currentgun == 3) {
if (_root.usesound) {
_root.uzysound.start(0, 1);
}
if (!shaketime) {
shaketime = 3;
shake = 4;
}
_root.gun3bullets--;
if (_root.gun3bullets == 0) {
_root.currentgun = 1;
_root.arena.players.theplayer.gotoAndStop(1);
_root.scorebar.gunbar.gotoAndStop(1);
}
} else if (_root.currentgun == 4) {
if (_root.usesound) {
_root.machinegunsound.start(0, 1);
}
if (!shaketime) {
shaketime = 3;
shake = 6;
}
_root.gun4bullets--;
if (_root.gun4bullets == 0) {
_root.currentgun = 1;
_root.arena.players.theplayer.gotoAndStop(1);
_root.scorebar.gunbar.gotoAndStop(1);
}
} else if (_root.currentgun == 5) {
if (_root.usesound) {
_root.canonsound.start(0, 1);
}
if (!shaketime) {
shaketime = 3;
shake = 10;
}
_root.gun5bullets--;
if (_root.gun5bullets == 0) {
_root.currentgun = 1;
_root.arena.players.theplayer.gotoAndStop(1);
_root.scorebar.gunbar.gotoAndStop(1);
}
}
} else {
if (_root.usesound) {
_root.pistolsound.start(0, 1);
}
if (!shaketime) {
shaketime = 3;
shake = 1;
}
}
}
noaction = null;
} else if ((((this[_local34].owner == "enemy") && (!this[_local34].fly)) && (!this[_local34].para)) && (!this[_local34].box)) {
if ((((_local5 < -24) || (_local5 > 664)) || (_local4 < -10)) || (_local4 > 535)) {
this[_local34].gotoAndStop(2);
} else {
this[_local34].gotoAndStop(1);
}
if (this[_local34].go && (!this[_local34].tower)) {
_root.arena.barrier.pbarriers[this[_local34]._name]._x = this[_local34]._x;
_root.arena.barrier.pbarriers[this[_local34]._name]._y = this[_local34]._y;
this[_local34].movie.clip.play();
if (this[_local34].targetattack) {
var _local8 = this[_local34]._x - this.theplayer._x;
var _local9 = this[_local34]._y - this.theplayer._y;
if (this[_local34]._y > this.theplayer._y) {
var _local29 = true;
}
} else {
var _local8 = this[_local34]._x - this[_local34].gox;
var _local9 = this[_local34]._y - this[_local34].goy;
if (this[_local34]._y > this[_local34].goy) {
var _local29 = true;
}
}
var _local20 = Math.sqrt((_local8 * _local8) + (_local9 * _local9));
var _local25 = (1 * _local8) / _local20;
var _local6 = 90 + (Math.asin(_local25) * 57.2957795130823);
if (_local29) {
_local6 = -_local6;
}
if (this[_local34].targetattack && (_local20 < 200)) {
this[_local34].go = false;
}
if ((_local6 <= 180) && (_local6 > 174.375)) {
var _local21 = 25;
} else if ((_local6 <= 174.375) && (_local6 > 163.125)) {
var _local21 = 26;
} else if ((_local6 <= 163.125) && (_local6 > 151.875)) {
var _local21 = 27;
} else if ((_local6 <= 151.875) && (_local6 > 140.625)) {
var _local21 = 28;
} else if ((_local6 <= 140.625) && (_local6 > 129.375)) {
var _local21 = 29;
} else if ((_local6 <= 129.375) && (_local6 > 118.125)) {
var _local21 = 30;
} else if ((_local6 <= 118.125) && (_local6 > 106.87)) {
var _local21 = 31;
} else if ((_local6 <= 106.875) && (_local6 > 95.625)) {
var _local21 = 32;
} else if ((_local6 <= 95.625) && (_local6 > 84.375)) {
var _local21 = 1;
} else if ((_local6 <= 84.375) && (_local6 > 73.125)) {
var _local21 = 2;
} else if ((_local6 <= 73.125) && (_local6 > 61.875)) {
var _local21 = 3;
} else if ((_local6 <= 61.875) && (_local6 > 50.625)) {
var _local21 = 4;
} else if ((_local6 <= 50.625) && (_local6 > 39.375)) {
var _local21 = 5;
} else if ((_local6 <= 39.375) && (_local6 > 28.125)) {
var _local21 = 6;
} else if ((_local6 <= 28.125) && (_local6 > 16.875)) {
var _local21 = 7;
} else if ((_local6 <= 16.875) && (_local6 > 5.625)) {
var _local21 = 8;
} else if ((_local6 <= 5.625) && (_local6 > 0)) {
var _local21 = 9;
} else if ((_local6 >= -180) && (_local6 < -174.375)) {
var _local21 = 25;
} else if ((_local6 >= -174.375) && (_local6 < -163.125)) {
var _local21 = 24;
} else if ((_local6 >= -163.125) && (_local6 < -151.875)) {
var _local21 = 23;
} else if ((_local6 >= -151.875) && (_local6 < -140.625)) {
var _local21 = 22;
} else if ((_local6 >= -140.625) && (_local6 < -129.375)) {
var _local21 = 21;
} else if ((_local6 >= -129.375) && (_local6 < -118.125)) {
var _local21 = 20;
} else if ((_local6 >= -118.125) && (_local6 < -106.87)) {
var _local21 = 19;
} else if ((_local6 >= -106.875) && (_local6 < -95.625)) {
var _local21 = 18;
} else if ((_local6 >= -95.625) && (_local6 < -84.375)) {
var _local21 = 17;
} else if ((_local6 >= -84.375) && (_local6 < -73.125)) {
var _local21 = 16;
} else if ((_local6 >= -73.125) && (_local6 < -61.875)) {
var _local21 = 15;
} else if ((_local6 >= -61.875) && (_local6 < -50.625)) {
var _local21 = 14;
} else if ((_local6 >= -50.625) && (_local6 < -39.375)) {
var _local21 = 13;
} else if ((_local6 >= -39.375) && (_local6 < -28.125)) {
var _local21 = 12;
} else if ((_local6 >= -28.125) && (_local6 < -16.875)) {
var _local21 = 11;
} else if ((_local6 >= -16.875) && (_local6 < -5.625)) {
var _local21 = 10;
} else if ((_local6 >= -5.625) && (_local6 < 0)) {
var _local21 = 9;
}
this[_local34].rotnumber = _local21;
this[_local34].movie.gotoAndStop(_local21);
var _local28 = 50;
var _local12 = Math.sin(Math.PI / _local28);
if (_local8 > 100) {
var _local8 = 100;
} else if (_local8 < -100) {
var _local8 = -100;
}
if (_local9 > 100) {
var _local9 = 100;
} else if (_local9 < -100) {
var _local9 = -100;
}
if (this[_local34].tank) {
var _local11 = (_local8 * _local12) / 8;
var _local10 = (_local9 * _local12) / 8;
} else {
var _local11 = _local8 * _local12;
var _local10 = _local9 * _local12;
}
if ((_local11 < 0.2) && (_local11 > -0.2)) {
var _local11 = 0;
}
if ((_local10 < 0.2) && (_local10 > -0.2)) {
var _local10 = 0;
}
_local7 = _root.arena.barrier.pbarriers[this[_local34]._name]._y;
_root.arena.barrier.pbarriers[this[_local34]._name]._y = -20;
var _local23 = _root.arena.barrier.hitTest(_local5 - _local11, _local4 - _local10, true);
_root.arena.barrier.pbarriers[this[_local34]._name]._y = _local7;
if (!_local23) {
this[_local34]._x = this[_local34]._x - _local11;
this[_local34]._y = this[_local34]._y - _local10;
_root.arena.barrier.pbarriers[this[_local34]._name]._x = _root.arena.barrier.pbarriers[this[_local34]._name]._x - _local11;
_root.arena.barrier.pbarriers[this[_local34]._name]._y = _root.arena.barrier.pbarriers[this[_local34]._name]._y - _local10;
} else {
_local7 = _root.arena.barrier.pbarriers[this[_local34]._name]._y;
_root.arena.barrier.pbarriers[this[_local34]._name]._y = -20;
var _local32 = 5;
if (_root.arena.barrier.hitTest(_local5 - _local11, _local4, true)) {
if (_root.arena.barrier.hitTest(_local5, _local4 - _local10, true)) {
this[_local34].go = false;
if (this[_local34].targetattack) {
delete this[_local34].targetattack;
}
} else {
this[_local34]._y = this[_local34]._y - _local10;
_local7 = _local7 - _local10;
}
} else {
this[_local34]._x = this[_local34]._x - _local11;
_root.arena.barrier.pbarriers[this[_local34]._name]._x = _root.arena.barrier.pbarriers[this[_local34]._name]._x - _local11;
}
_root.arena.barrier.pbarriers[this[_local34]._name]._y = _local7;
}
if ((_local11 == 0) && (_local10 == 0)) {
this[_local34].go = false;
}
} else {
if (this[_local34].movie.clip._currentframe < 5) {
this[_local34].movie.clip.gotoAndStop(1);
}
if (!this[_local34].targetattack) {
if ((this[_local34].delayshoot == 0) || (!this[_local34].delayshoot)) {
this[_local34].delayshoot = 20;
var _local8 = this[_local34]._x - this.theplayer._x;
var _local9 = this[_local34]._y - this.theplayer._y;
var _local20 = Math.sqrt((_local8 * _local8) + (_local9 * _local9));
var _local25 = (1 * _local8) / _local20;
var _local6 = 90 + (Math.asin(_local25) * 57.2957795130823);
if (this[_local34]._y > this.theplayer._y) {
_local6 = -_local6;
}
if (_local20 < 200) {
if ((_local6 <= 180) && (_local6 > 177.5)) {
var _local21 = 26;
} else if ((_local6 <= 177.5) && (_local6 > 172.5)) {
var _local21 = 27;
} else if ((_local6 <= 172.5) && (_local6 > 167.5)) {
var _local21 = 28;
} else if ((_local6 <= 167.5) && (_local6 > 162)) {
var _local21 = 29;
} else if ((_local6 <= 162) && (_local6 > 155)) {
var _local21 = 30;
} else if ((_local6 <= 155) && (_local6 > 142)) {
var _local21 = 31;
} else if ((_local6 <= 142) && (_local6 > 124)) {
var _local21 = 32;
} else if ((_local6 <= 124) && (_local6 > 78)) {
var _local21 = 1;
} else if ((_local6 <= 78) && (_local6 > 56)) {
var _local21 = 2;
} else if ((_local6 <= 56) && (_local6 > 38)) {
var _local21 = 3;
} else if ((_local6 <= 38) && (_local6 > 25)) {
var _local21 = 4;
} else if ((_local6 <= 25) && (_local6 > 18)) {
var _local21 = 5;
} else if ((_local6 <= 18) && (_local6 > 12.5)) {
var _local21 = 6;
} else if ((_local6 <= 12.5) && (_local6 > 7.5)) {
var _local21 = 7;
} else if ((_local6 <= 7.5) && (_local6 > 2.5)) {
var _local21 = 8;
} else if ((_local6 <= 2.5) && (_local6 > 0)) {
var _local21 = 9;
} else if ((_local6 >= -180) && (_local6 < -174.375)) {
var _local21 = 25;
} else if ((_local6 >= -174.375) && (_local6 < -163.125)) {
var _local21 = 24;
} else if ((_local6 >= -163.125) && (_local6 < -151.875)) {
var _local21 = 23;
} else if ((_local6 >= -151.875) && (_local6 < -140.625)) {
var _local21 = 22;
} else if ((_local6 >= -140.625) && (_local6 < -129.375)) {
var _local21 = 21;
} else if ((_local6 >= -129.375) && (_local6 < -118.125)) {
var _local21 = 20;
} else if ((_local6 >= -118.125) && (_local6 < -106.87)) {
var _local21 = 19;
} else if ((_local6 >= -106.875) && (_local6 < -95.625)) {
var _local21 = 18;
} else if ((_local6 >= -95.625) && (_local6 < -78)) {
var _local21 = 17;
} else if ((_local6 >= -78) && (_local6 < -56)) {
var _local21 = 16;
} else if ((_local6 >= -56) && (_local6 < -38)) {
var _local21 = 15;
} else if ((_local6 >= -38) && (_local6 < -25)) {
var _local21 = 14;
} else if ((_local6 >= -25) && (_local6 < -18)) {
var _local21 = 13;
} else if ((_local6 >= -18) && (_local6 < -12.5)) {
var _local21 = 12;
} else if ((_local6 >= -12.5) && (_local6 < -7.5)) {
var _local21 = 11;
} else if ((_local6 >= -7.5) && (_local6 < -2.5)) {
var _local21 = 10;
} else if ((_local6 >= -2.5) && (_local6 < 0)) {
var _local21 = 9;
}
this[_local34].rotnumber = _local21;
if (!this[_local34].tower) {
this[_local34].movie.gotoAndStop(_local21);
this[_local34].movie.clip.gotoAndPlay("shocked");
}
if (!this[_local34].tank) {
if (this[_local34].tower) {
if ((Math.abs(this[_local34]._y - this.theplayer._y) <= 20) && (this[_local34]._x > this.theplayer._x)) {
this[_local34].movie.clip.gotoAndPlay("shocked");
if (_root.usesound) {
_root.pistolsound.start(0, 1);
}
var _local18 = _root.bulletdepth++;
var _local13 = "newbullet" + _local18;
_parent.bullets.attachMovie("bullet1", _local13, _local18, {_x:this[_local34]._x, _y:this[_local34]._y - 38});
_parent.bullets[_local13]._rotation = _local6;
_parent.bullets[_local13].owner = this[_local34].owner;
_parent.bullets[_local13].author = this[_local34];
}
} else {
if (_root.usesound) {
_root.pistolsound.start(0, 1);
}
var _local18 = _root.bulletdepth++;
var _local13 = "newbullet" + _local18;
_parent.bullets.attachMovie("bullet1", _local13, _local18, {_x:this[_local34]._x, _y:this[_local34]._y - 14});
_parent.bullets[_local13]._rotation = _local6;
_parent.bullets[_local13].owner = this[_local34].owner;
_parent.bullets[_local13].author = this[_local34];
}
} else {
if (_root.usesound) {
_root.heligunsound.start(0, 1);
}
var _local18 = _root.bulletdepth++;
var _local13 = "newbullet" + _local18;
_parent.bullets.attachMovie("tankbullet", _local13, _local18, {_x:this[_local34]._x, _y:this[_local34]._y - 20});
_parent.bullets[_local13]._rotation = _local6;
_parent.bullets[_local13]._xscale = (_parent.bullets[_local13]._yscale = _local12);
}
} else if (_local20 < 100) {
this[_local34].go = true;
if (!this[_local34].tower) {
this[_local34].targetattack = true;
}
} else {
this[_local34].gox = random(_root.arena.bg._width);
this[_local34].goy = 300 + random(_root.arena.bg._height - 300);
this[_local34].go = true;
}
} else {
this[_local34].delayshoot--;
}
} else if ((this[_local34].delayshoot == 0) || (!this[_local34].delayshoot)) {
this[_local34].delayshoot = 20;
var _local8 = this[_local34]._x - this.theplayer._x;
var _local9 = this[_local34]._y - this.theplayer._y;
var _local20 = Math.sqrt((_local8 * _local8) + (_local9 * _local9));
if (_local20 <= 200) {
var _local25 = (1 * _local8) / _local20;
var _local6 = 90 + (Math.asin(_local25) * 57.2957795130823);
if (this[_local34]._y > (this.theplayer._y + _y)) {
_local6 = -_local6;
}
if ((_local6 <= 180) && (_local6 > 174.375)) {
var _local21 = 25;
} else if ((_local6 <= 174.375) && (_local6 > 163.125)) {
var _local21 = 26;
} else if ((_local6 <= 163.125) && (_local6 > 151.875)) {
var _local21 = 27;
} else if ((_local6 <= 151.875) && (_local6 > 140.625)) {
var _local21 = 28;
} else if ((_local6 <= 140.625) && (_local6 > 129.375)) {
var _local21 = 29;
} else if ((_local6 <= 129.375) && (_local6 > 118.125)) {
var _local21 = 30;
} else if ((_local6 <= 118.125) && (_local6 > 106.87)) {
var _local21 = 31;
} else if ((_local6 <= 106.875) && (_local6 > 95.625)) {
var _local21 = 32;
} else if ((_local6 <= 95.625) && (_local6 > 84.375)) {
var _local21 = 1;
} else if ((_local6 <= 84.375) && (_local6 > 73.125)) {
var _local21 = 2;
} else if ((_local6 <= 73.125) && (_local6 > 61.875)) {
var _local21 = 3;
} else if ((_local6 <= 61.875) && (_local6 > 50.625)) {
var _local21 = 4;
} else if ((_local6 <= 50.625) && (_local6 > 39.375)) {
var _local21 = 5;
} else if ((_local6 <= 39.375) && (_local6 > 28.125)) {
var _local21 = 6;
} else if ((_local6 <= 28.125) && (_local6 > 16.875)) {
var _local21 = 7;
} else if ((_local6 <= 16.875) && (_local6 > 5.625)) {
var _local21 = 8;
} else if ((_local6 <= 5.625) && (_local6 > 0)) {
var _local21 = 9;
} else if ((_local6 >= -180) && (_local6 < -174.375)) {
var _local21 = 25;
} else if ((_local6 >= -174.375) && (_local6 < -163.125)) {
var _local21 = 24;
} else if ((_local6 >= -163.125) && (_local6 < -151.875)) {
var _local21 = 23;
} else if ((_local6 >= -151.875) && (_local6 < -140.625)) {
var _local21 = 22;
} else if ((_local6 >= -140.625) && (_local6 < -129.375)) {
var _local21 = 21;
} else if ((_local6 >= -129.375) && (_local6 < -118.125)) {
var _local21 = 20;
} else if ((_local6 >= -118.125) && (_local6 < -106.87)) {
var _local21 = 19;
} else if ((_local6 >= -106.875) && (_local6 < -95.625)) {
var _local21 = 18;
} else if ((_local6 >= -95.625) && (_local6 < -84.375)) {
var _local21 = 17;
} else if ((_local6 >= -84.375) && (_local6 < -73.125)) {
var _local21 = 16;
} else if ((_local6 >= -73.125) && (_local6 < -61.875)) {
var _local21 = 15;
} else if ((_local6 >= -61.875) && (_local6 < -50.625)) {
var _local21 = 14;
} else if ((_local6 >= -50.625) && (_local6 < -39.375)) {
var _local21 = 13;
} else if ((_local6 >= -39.375) && (_local6 < -28.125)) {
var _local21 = 12;
} else if ((_local6 >= -28.125) && (_local6 < -16.875)) {
var _local21 = 11;
} else if ((_local6 >= -16.875) && (_local6 < -5.625)) {
var _local21 = 10;
} else if ((_local6 >= -5.625) && (_local6 < 0)) {
var _local21 = 9;
}
this[_local34].rotnumber = _local21;
if (!this[_local34].tower) {
this[_local34].movie.gotoAndStop(_local21);
this[_local34].movie.clip.gotoAndPlay("shocked");
}
if (!this[_local34].tank) {
if (this[_local34].tower) {
if ((Math.abs(this[_local34]._y - this.theplayer._y) <= 20) && (this[_local34]._x > this.theplayer._x)) {
if (_root.usesound) {
_root.pistolsound.start(0, 1);
}
var _local18 = _root.bulletdepth++;
var _local13 = "newbullet" + _local18;
_parent.bullets.attachMovie("bullet1", _local13, _local18, {_x:this[_local34]._x, _y:this[_local34]._y - 14});
_parent.bullets[_local13]._rotation = _local6;
_parent.bullets[_local13].owner = this[_local34].owner;
_parent.bullets[_local13].author = this[_local34];
}
} else {
if (_root.usesound) {
_root.pistolsound.start(0, 1);
}
var _local18 = _root.bulletdepth++;
var _local13 = "newbullet" + _local18;
_parent.bullets.attachMovie("bullet1", _local13, _local18, {_x:this[_local34]._x, _y:this[_local34]._y - 14});
_parent.bullets[_local13]._rotation = _local6;
_parent.bullets[_local13].owner = this[_local34].owner;
_parent.bullets[_local13].author = this[_local34];
}
} else {
if (_root.usesound) {
_root.heligunsound.start(0, 1);
}
var _local18 = _root.bulletdepth++;
var _local13 = "newbullet" + _local18;
_parent.bullets.attachMovie("tankbullet", _local13, _local18, {_x:this[_local34]._x, _y:this[_local34]._y - 20});
_parent.bullets[_local13]._rotation = _local6;
}
} else if (_local20 > 200) {
this[_local34].delayshoot = 0;
this[_local34].go = true;
}
} else {
this[_local34].delayshoot--;
}
}
if (this[_local34].delaydetect > 0) {
this[_local34].delaydetect--;
}
} else if (this[_local34].fly && (!this[_local34].box)) {
if (this[_local34].ship) {
if (this[_local34].jeep) {
var _local12 = 100;
} else {
var _local12 = (int(this[_local34]._y / 4) + 30);
if (_local12 > 85) {
_local12 = 85;
}
}
} else {
var _local12 = ((this[_local34]._y / 4) + 45);
if (_local12 > 100) {
_local12 = 100;
}
}
if (_local12 > _local30) {
_local30 = _local12;
}
if ((((_local5 < -150) || (_local5 > 790)) || (_local4 < -125)) || (_local4 > 610)) {
this[_local34].gotoAndStop(2);
} else {
this[_local34].gotoAndStop(1);
this[_local34].movie.gotoAndStop(this[_local34].rotnumber);
_root.arena.barrier.helibarriers[this[_local34]._name].movie.gotoAndStop(this[_local34].rotnumber);
}
if (!this[_local34].ship) {
if (this[_local34].go || (this[_local34].landing)) {
if ((this[_local34].delaydetect == 0) || (!this[_local34].delaydetect)) {
var _local8 = this[_local34]._x - this.theplayer._x;
var _local9 = this[_local34]._y - this.theplayer._y;
var _local20 = Math.sqrt((_local8 * _local8) + (_local9 * _local9));
if (_local20 < 200) {
var _local25 = (1 * _local8) / _local20;
var _local6 = 90 + (Math.asin(_local25) * 57.2957795130823);
if (this[_local34]._y > this.theplayer._y) {
_local6 = -_local6;
}
if (_root.usesound) {
_root.heligunsound.start(0, 1);
}
var _local18 = _root.bulletdepth++;
var _local13 = "newbullet" + _local18;
_parent.bullets.attachMovie("bulletheli", _local13, _local18, {_x:this[_local34]._x, _y:this[_local34]._y - 14});
_parent.bullets[_local13]._rotation = _local6;
_parent.bullets[_local13]._xscale = (_parent.bullets[_local13]._yscale = _local12);
}
this[_local34].delaydetect = _root.delayhelishot[_root.plevel];
} else {
this[_local34].delaydetect--;
}
}
}
if (this[_local34].go) {
this[_local34]._xscale = (this[_local34]._yscale = _local12);
_root.arena.barrier.helibarriers[this[_local34]._name]._xscale = (_root.arena.barrier.helibarriers[this[_local34]._name]._yscale = _local12);
var _local8 = this[_local34]._x - this[_local34].gox;
var _local9 = this[_local34]._y - this[_local34].goy;
var _local20 = Math.sqrt((_local8 * _local8) + (_local9 * _local9));
var _local25 = (1 * _local8) / _local20;
var _local6 = 90 + (Math.asin(_local25) * 57.2957795130823);
if (this[_local34]._y > this[_local34].goy) {
_local6 = -_local6;
}
if (_local20 < 200) {
this[_local34].go = false;
}
if (delayrot == 0) {
if (!this[_local34].ship) {
if (((_local6 <= 180) && (_local6 > 162)) || ((_local6 <= -90) && (_local6 > -180))) {
var _local21 = 1;
} else if ((_local6 <= 162) && (_local6 > 155)) {
var _local21 = 2;
} else if ((_local6 <= 155) && (_local6 > 142)) {
var _local21 = 3;
} else if ((_local6 <= 142) && (_local6 > 124)) {
var _local21 = 4;
} else if ((_local6 <= 124) && (_local6 > 78)) {
var _local21 = 5;
} else if ((_local6 <= 78) && (_local6 > 56)) {
var _local21 = 6;
} else if ((_local6 <= 56) && (_local6 > 38)) {
var _local21 = 7;
} else if ((_local6 <= 38) && (_local6 > 25)) {
var _local21 = 8;
} else if (((_local6 <= 25) && (_local6 > 0)) || ((_local6 <= 0) && (_local6 > -90))) {
var _local21 = 9;
}
var _local14 = this[_local34].movie._currentframe;
if (_local21 < _local14) {
var _local15 = _local14 - 1;
} else if (_local21 > _local14) {
var _local15 = _local14 + 1;
}
this[_local34].rotnumber = _local15;
this[_local34].movie.gotoAndStop(_local15);
_root.arena.barrier.helibarriers[this[_local34]._name].movie.gotoAndStop(_local15);
delayrot = 1;
} else {
this[_local34].movie.gotoAndStop(1);
}
} else {
delayrot--;
}
if (!this[_local34].ship) {
var _local28 = _root.helispeed[_root.plevel];
} else {
var _local28 = _root.heli2speed[_root.plevel];
}
var _local12 = Math.sin(Math.PI / _local28);
if (_local8 > 100) {
_local8 = 100;
} else if (_local8 < -100) {
_local8 = -100;
}
if (_local9 > 100) {
_local9 = 100;
} else if (_local9 < -100) {
_local9 = -100;
}
if (this[_local34].jeep) {
var _local11 = (_local8 * _local12) * 2;
var _local10 = (_local9 * _local12) * 2;
} else {
var _local11 = _local8 * _local12;
var _local10 = _local9 * _local12;
}
if ((_local11 < 0.2) && (_local11 > -0.2)) {
var _local11 = 0;
}
if ((_local10 < 0.2) && (_local10 > -0.2)) {
var _local10 = 0;
}
_local7 = _root.arena.barrier.helibarriers[this[_local34]._name]._y;
_root.arena.barrier.helibarriers[this[_local34]._name]._y = -20;
var _local23 = _root.arena.barrier.helibarriers.hitTest(_local5 - _local11, _local4 - _local10, true);
var _local26 = _root.arena.barrier.hitTest(_local5, _local4, true);
_root.arena.barrier.helibarriers[this[_local34]._name]._y = _local7;
if (!_local23) {
this[_local34]._x = this[_local34]._x - _local11;
this[_local34]._y = this[_local34]._y - _local10;
_root.arena.barrier.helibarriers[this[_local34]._name]._x = _root.arena.barrier.helibarriers[this[_local34]._name]._x - _local11;
_root.arena.barrier.helibarriers[this[_local34]._name]._y = _root.arena.barrier.helibarriers[this[_local34]._name]._y - _local10;
} else {
for (var _local31 in this) {
if ((typeof(this[_local31]) == "movieclip") && (this[_local34] != this[_local31])) {
if (((this[_local34]._y < this[_local31]._y) && (this[_local34].getDepth() > this[_local31].getDepth())) || ((this[_local34]._y > this[_local31]._y) && (this[_local34].getDepth() < this[_local31].getDepth()))) {
this[_local34].swapDepths(this[_local31]);
}
}
}
this[_local34].go = false;
}
if ((_local11 == 0) && (_local10 == 0)) {
this[_local34].go = false;
}
this[_local34].movie.shad._visible = false;
if ((((_root.armycount < 10) && (!this[_local34].goaway)) && (!_local26)) && (!this[_local34].skiplanding)) {
this[_local34].lasty = this[_local34].movie.shad._y;
this[_local34].movie.shad._alpha = 0;
this[_local34].movie.shad._visible = true;
this[_local34].go = false;
this[_local34].landing = true;
this[_local34].landingdelay = 30;
this[_local34].movie.shad._y = this[_local34].movie.shad._y + 30;
}
if (this[_local34].goaway && (this[_local34]._y <= -10)) {
if (this[_local34].havegun) {
_root.bonusgun = this[_local34].havegun;
} else if (this[_local34].havepil) {
_root.bonushealth = true;
}
_root.resetheli(this[_local34]._name);
removeMovieClip(_root.arena.barrier.helibarriers[this[_local34]._name]);
removeMovieClip(this[_local34]);
_root.helinow--;
delete _root.heliahead;
}
} else if (!this[_local34].landing) {
if (!this[_local34].goaway) {
if (this[_local34].lasty) {
this[_local34].movie.shad._y = this[_local34].lasty;
delete this[_local34].lasty;
this[_local34].skiplanding = true;
} else if (this[_local34].skiplanding) {
this[_local34].skiplanding = false;
}
if (!this[_local34].ship) {
this[_local34].gox = random(_root.arena.bg._width);
} else if (this[_local34].jeep) {
this[_local34].goy = this[_local34]._y;
} else {
this[_local34].gox = this[_local34]._x;
}
_root.heliahead = true;
if ((_root.armycount <= 0) && (!_root.heliahead)) {
this[_local34].goy = 280;
_root.heliahead = true;
this[_local34].heliahead = true;
} else {
if (!this[_local34].ship) {
this[_local34].goy = random(300);
}
if (this[_local34].jeep) {
this[_local34].gox = this[_local34].goalX;
} else {
this[_local34].goy = 280;
}
if (this[_local34].heliahead) {
delete _root.heliahead;
delete this[_local34].heliahead;
}
}
this[_local34].go = true;
} else if (!this[_local34].ship) {
this[_local34].gox = random(_root.arena.bg._width);
this[_local34].goy = -100;
this[_local34].go = true;
}
} else if (this[_local34].landingdelay > 0) {
if (!this[_local34].ship) {
this[_local34].movie.shad._alpha = this[_local34].movie.shad._alpha + 5;
this[_local34].movie.shad._y = this[_local34].movie.shad._y - 1;
this[_local34].landingdelay--;
this[_local34]._y = this[_local34]._y + 1;
_root.arena.barrier.helibarriers[this[_local34]._name]._y = _root.arena.barrier.helibarriers[this[_local34]._name]._y + 1;
_local7 = _root.arena.barrier.helibarriers[this[_local34]._name]._y;
_root.arena.barrier.helibarriers[this[_local34]._name]._y = -20;
var _local26 = _root.arena.barrier.hitTest(_local5, _local4, true);
_root.arena.barrier.helibarriers[this[_local34]._name]._y = _local7;
if (_local26) {
delete this[_local34].landing;
this[_local34].go = false;
}
this[_local34].countarmydown = 0;
} else {
this[_local34].movie.shad._alpha = this[_local34].movie.shad._alpha;
this[_local34].movie.shad._y = this[_local34].movie.shad._y;
this[_local34].landingdelay--;
this[_local34]._y = this[_local34]._y;
_root.arena.barrier.helibarriers[this[_local34]._name]._y = _root.arena.barrier.helibarriers[this[_local34]._name]._y;
_local7 = _root.arena.barrier.helibarriers[this[_local34]._name]._y;
_root.arena.barrier.helibarriers[this[_local34]._name]._y = -20;
var _local26 = _root.arena.barrier.hitTest(_local5, _local4, true);
_root.arena.barrier.helibarriers[this[_local34]._name]._y = _local7;
if (_local26) {
delete this[_local34].landing;
this[_local34].go = false;
}
this[_local34].countarmydown = 0;
}
} else if ((!this[_local34].onprogress) && (this[_local34].countarmydown < 10)) {
if (this[_local34].jeep) {
if ((_root.armycount < 10) && (!_root.arena.barrier.pbarriers.hitTest((_local5 + this[_local34].movie._x) + this[_local34].movie.armydown._x, (_local4 + this[_local34].movie._y) + this[_local34].movie.armydown._y, true))) {
this[_local34].onprogress = true;
this[_local34].movie.armydown.gotoAndPlay(2);
}
} else if ((_root.armycount < 10) && (!_root.arena.barrier.pbarriers.hitTest((_local5 + this[_local34].movie._x) + this[_local34].movie.armydown._x, (_local4 + this[_local34].movie._y) + this[_local34].movie.armydown._y, true))) {
this[_local34].onprogress = true;
this[_local34].movie.armydown.gotoAndPlay(2);
}
if (this[_local34].jeep) {
if (this[_local34].countarmydown >= 10) {
this[_local34].awaydelay = 30;
}
} else if (this[_local34].countarmydown >= 10) {
this[_local34].awaydelay = 30;
}
} else if (this[_local34].awaydelay > 0) {
this[_local34].awaydelay--;
this[_local34].movie.shad._alpha = this[_local34].movie.shad._alpha - 5;
this[_local34].movie.shad._y = this[_local34].movie.shad._y + 1;
this[_local34]._y = this[_local34]._y - 1;
_root.arena.barrier.helibarriers[this[_local34]._name]._y = _root.arena.barrier.helibarriers[this[_local34]._name]._y - 1;
} else if (!this[_local34].onprogress) {
this[_local34].goaway = true;
delete this[_local34].landing;
this[_local34].go = false;
} else if (this[_local34].onprogress && (_root.armycount < 10)) {
if (((this[_local34]._currentframe == 2) && (!this[_local34].delayprogress)) && (!_root.arena.barrier.hitTest(_local5 + 50, _local4 + 50, true))) {
var _local35 = _root.playerdepth++;
var _local33 = "player" + _local35;
this.attachMovie("soldier1", _local33, _local35, {_x:this[_local34]._x + 50, _y:this[_local34]._y + 50});
this[_local33].owner = "enemy";
this[_local33].live = 100;
if (_root.bonusgun) {
this[_local33].havegun = _root.bonusgun;
delete _root.bonusgun;
} else if (_root.bonushealth) {
this[_local33].havepil = true;
delete _root.bonushealth;
}
_local35 = _root.basedepth++;
_root.arena.barrier.pbarriers.attachMovie("pbarrier", _root.arena.players[_local33]._name, _local35, {_x:this[_local34]._x, _y:this[_local34]._y + 25});
this[_local33].gox = random(_root.arena.bg._width);
this[_local33].goy = 400 + random(_root.arena.bg._height - 400);
this[_local33].go = true;
_root.armycount++;
this[_local34].countarmydown++;
this[_local34].delayprogress = 20;
if (this[_local34].countarmydown > 10) {
delete this[_local34].onprogress;
delete this[_local34].delayprogress;
this[_local34].awaydelay = 30;
}
} else if (this[_local34].movie.armydown._currentframe == 1) {
this[_local34].movie.armydown.play();
} else if (this[_local34].delayprogress > 0) {
this[_local34].delayprogress--;
}
}
} else if (this[_local34].para) {
if ((((_local5 < -30) || (_local5 > 600)) || (_local4 < -1)) || (_local4 > 500)) {
this[_local34].gotoAndStop(2);
} else {
this[_local34].gotoAndStop(1);
}
this[_local34]._y++;
var _local26 = _root.arena.barrier.hitTest(_local5, _local4, true);
if (!_local26) {
if (this[_local34].guntype) {
_root.bonusgun = this[_local34].guntype;
} else {
_root.bonushealth = true;
}
_root.resetparachute(this[_local34]._name);
removeMovieClip(this[_local34]);
}
}
}
}
_root.helisound.setVolume(_local30);
} else if (_root.curtain.atthemiddle) {
_root.plive--;
var _local35 = _root.playerdepth++;
var _local33 = "theplayer";
_root.arena.players.attachMovie("player1", _local33, _local35, {_x:_root.lastpx, _y:_root.lastpy});
_root.arena.players[_local33].owner = "player";
_root.arena.players[_local33].commander = true;
_root.arena.players[_local33].live = 100;
_root.arena.players[_local33].gotoAndStop(_root.currentgun);
_local35 = _root.basedepth++;
_root.arena.barrier.pbarriers.attachMovie("pbarrier", _root.arena.players[_local33]._name, _local35, {_x:_root.lastpx, _y:_root.lastpy});
delete _root.lastpx;
delete _root.lastpy;
delete _root.curtain.atthemiddle;
_root.isPause = false;
_root.curtain.gotoAndPlay("open");
_root.scorebar.bar.livebar.live._visible = true;
_root.scorebar.bar.livebar.live.gotoAndStop(50);
for (var _local34 in _root.arena.spots) {
if (typeof(_root.arena.spots[_local34]) == "movieclip") {
removeMovieClip(_root.arena.spots[_local34]);
}
}
}
};
onMouseDown = function () {
if ((!_root.onbar) && (!_root.onPause)) {
shootthem = true;
}
};
Symbol 2490 MovieClip Frame 1
this._visible = false;
Symbol 2517 MovieClip Frame 1
this._visible = false;
Symbol 2539 MovieClip Frame 1
this._visible = false;
Symbol 2559 MovieClip Frame 1
this._visible = false;
Symbol 2560 MovieClip Frame 1
stop();
Symbol 2560 MovieClip Frame 2
stop();
Symbol 2560 MovieClip Frame 3
stop();
Symbol 2560 MovieClip Frame 4
stop();
Symbol 2571 Button
on (release) {
_parent.gotoAndPlay("playnext");
}
Symbol 2576 Button
on (release) {
getURL ("http://www.freeonlinegames.com", "_blank");
}
Symbol 2597 MovieClip Frame 1
stop();
Symbol 2597 MovieClip Frame 2
_root.isPause = true;
_root.onPause = true;
_root.winsound.start();
_root.heliscore = 10 * _root.heliskilled;
_root.troopscore = 10 * _root.troopskilled;
_root.healthbonus = (_root.plive * _root.scorebar.bar.livebar.live._currentframe) * 2;
_root.sumscore = ((_root.heliscore + _root.troopscore) + _root.healthbonus) + _root.thescore;
Symbol 2597 MovieClip Frame 59
stop();
Symbol 2597 MovieClip Frame 68
_root.plevel++;
if (_root.plevel == 3) {
_root.arena.gotoAndStop(2);
} else if (_root.plevel == 4) {
_root.arena.gotoAndStop(3);
} else if (_root.plevel == 5) {
_root.arena.gotoAndStop(4);
}
delete _root.onPause;
_root.totalscore = (_root.thescore = _root.sumscore);
_root.armycount = 0;
_root.helicount = 0;
_root.heli2count = 0;
_root.helinow = 0;
_root.heli2now = 0;
_root.heli3now = 0;
_root.heli3count = 0;
_root.towernow = 0;
_root.towercount = 0;
_root.sumscore = 0;
_root.troopskilled = 0;
_root.heliskilled = 0;
for (var e in _root.arena.players) {
if ((typeof(_root.arena.players[e]) == "movieclip") && (_root.arena.players[e].owner == "enemy")) {
if (_root.arena.players[e].fly) {
removeMovieClip(_root.arena.barrier.helibarriers[_root.arena.players[e]._name]);
} else {
removeMovieClip(_root.arena.barrier.pbarriers[_root.arena.players[e]._name]);
}
removeMovieClip(_root.arena.players[e]);
}
}
for (var e in _root.arena.spots) {
if (typeof(_root.arena.spots[e]) == "movieclip") {
removeMovieClip(_root.arena.spots[e]);
}
}
_root.arena.players.theplayer._x = 370;
_root.arena.players.theplayer._y = 400;
_root.arena.players.theplayer.live = 100;
_root.scorebar.bar.livebar.live.gotoAndStop(50);
delete _root.onPause;
Symbol 2597 MovieClip Frame 74
_root.isPause = false;
Symbol 2602 Button
on (release) {
_parent.gotoAndPlay("replay");
}
Symbol 2615 MovieClip Frame 1
stop();
Symbol 2615 MovieClip Frame 2
_root.isPause = true;
_root.onPause = true;
_root.heliscore = 10 * _root.heliskilled;
_root.troopscore = 10 * _root.troopskilled;
_root.healthbonus = (_root.plive * _root.scorebar.bar.livebar.live._currentframe) * 2;
_root.sumscore = ((_root.heliscore + _root.troopscore) + _root.healthbonus) + _root.thescore;
onEnterFrame = function () {
var _local2 = _root.bgsound.getVolume();
if (_local2 < 100) {
_root.bgsound.setVolume(_local2 + 1);
} else {
onEnterFrame = null;
}
};
Symbol 2615 MovieClip Frame 27
stop();
Symbol 2615 MovieClip Frame 36
stopAllSounds();
_root.isPause = false;
delete _root.onPause;
_parent.gotoAndPlay("end");
Symbol 2620 Button
on (release) {
_parent.gotoAndPlay("replay");
}
Symbol 2621 Button
on (release) {
stopAllSounds();
delete _root.onPause;
_root.isPause = false;
_root.gotoAndPlay(1);
}
Symbol 2689 MovieClip Frame 22
stop();
Symbol 2690 MovieClip Frame 1
stop();
Symbol 2690 MovieClip Frame 2
_root.gameoversound.start();
_root.isPause = true;
_root.onPause = true;
_root.heliscore = 10 * _root.heliskilled;
_root.troopscore = 10 * _root.troopskilled;
_root.healthbonus = (_root.plive * _root.scorebar.bar.livebar.live._currentframe) * 2;
_root.sumscore = ((_root.heliscore + _root.troopscore) + _root.healthbonus) + _root.thescore;
Symbol 2690 MovieClip Frame 42
stop();
Symbol 2690 MovieClip Frame 51
delete _root.onPause;
_root.gameoversound.stop();
_root.bgsound.start(0, 99999);
_root.plive = 3;
_root.thescore = _root.totalscore;
_root.helinow = 0;
_root.helicount = 0;
_root.heli2now = 0;
_root.heli2count = 0;
_root.heli3now = 0;
_root.heli3count = 0;
_root.tankcount = 0;
_root.tanknow = 0;
_root.tower3Num = 0;
_root.tower5Num = 0;
_root.towercount = 0;
_root.towernow = 0;
_root.tower3ypos = new Array(250, 400, 550);
_root.tower5ypos = new Array(400, 550, 600);
_root.armycount = 0;
_root.sumscore = 0;
_root.troopskilled = 0;
_root.heliskilled = 0;
for (var e in _root.arena.players) {
if ((typeof(_root.arena.players[e]) == "movieclip") && (_root.arena.players[e].owner == "enemy")) {
if (_root.arena.players[e].fly) {
removeMovieClip(_root.arena.barrier.helibarriers[_root.arena.players[e]._name]);
} else {
removeMovieClip(_root.arena.barrier.pbarriers[_root.arena.players[e]._name]);
}
removeMovieClip(_root.arena.players[e]);
}
}
for (var e in _root.arena.spots) {
if (typeof(_root.arena.spots[e]) == "movieclip") {
removeMovieClip(_root.arena.spots[e]);
}
}
depth = _root.playerdepth++;
newplayer = "theplayer";
_root.arena.players.attachMovie("player1", newplayer, depth, {_x:370, _y:400});
_root.arena.players[newplayer].owner = "player";
_root.arena.players[newplayer].commander = true;
_root.arena.players[newplayer].live = 100;
_root.arena.players[newplayer].gotoAndStop(_root.currentgun);
_root.scorebar.bar.livebar.live._visible = true;
_root.scorebar.bar.livebar.live.gotoAndStop(50);
depth = _root.basedepth++;
_root.arena.barrier.pbarriers.attachMovie("pbarrier", _root.arena.players[newplayer]._name, depth, {_x:370, _y:400});
delete depth;
delete newplayer;
Symbol 2690 MovieClip Frame 57
_root.isPause = false;
Symbol 2691 Button
on (release) {
stopAllSounds();
_root.isPause = false;
delete _root.onPause;
_root.gotoAndPlay(1);
}
Symbol 2696 Button
on (release) {
if (!_root.usesound1) {
_root.usesound1 = true;
_root.bgsound.start(0, 99999);
_root.scorebar.bar.mbutton.gotoAndStop(1);
} else if (_root.usesound1) {
_root.usesound1 = false;
_root.bgsound.stop();
_root.scorebar.bar.mbutton.gotoAndStop(2);
}
}
Symbol 2701 Button
on (release) {
_root.isPause = false;
_root.scorebar.bar.pbutton.gotoAndStop(1);
_parent.gotoAndStop(1);
}
Symbol 2706 MovieClip Frame 1
stop();
Symbol 2706 MovieClip Frame 10
stop();
Symbol 2707 MovieClip Frame 1
stop();
Symbol 2707 MovieClip Frame 2
play();
Symbol 2707 MovieClip Frame 3
play();
Symbol 2707 MovieClip Frame 4
play();
Symbol 2707 MovieClip Frame 5
play();
Symbol 2723 MovieClip Frame 1
stop();
this.gotoAndStop(_root.arena.players.theplayer.live / 2);
Symbol 2723 MovieClip Frame 2
stop();
Symbol 2723 MovieClip Frame 3
stop();
Symbol 2723 MovieClip Frame 4
stop();
Symbol 2723 MovieClip Frame 5
stop();
Symbol 2723 MovieClip Frame 6
stop();
Symbol 2723 MovieClip Frame 7
stop();
Symbol 2723 MovieClip Frame 8
stop();
Symbol 2723 MovieClip Frame 9
stop();
Symbol 2723 MovieClip Frame 10
stop();
Symbol 2723 MovieClip Frame 11
stop();
Symbol 2723 MovieClip Frame 12
stop();
Symbol 2723 MovieClip Frame 13
stop();
Symbol 2723 MovieClip Frame 14
stop();
Symbol 2723 MovieClip Frame 15
stop();
Symbol 2723 MovieClip Frame 16
stop();
Symbol 2723 MovieClip Frame 17
stop();
Symbol 2723 MovieClip Frame 18
stop();
Symbol 2723 MovieClip Frame 19
stop();
Symbol 2723 MovieClip Frame 20
stop();
Symbol 2723 MovieClip Frame 21
stop();
Symbol 2723 MovieClip Frame 22
stop();
Symbol 2723 MovieClip Frame 23
stop();
Symbol 2723 MovieClip Frame 24
stop();
Symbol 2723 MovieClip Frame 25
stop();
Symbol 2723 MovieClip Frame 26
stop();
Symbol 2723 MovieClip Frame 27
stop();
Symbol 2723 MovieClip Frame 28
stop();
Symbol 2723 MovieClip Frame 29
stop();
Symbol 2723 MovieClip Frame 30
stop();
Symbol 2723 MovieClip Frame 31
stop();
Symbol 2723 MovieClip Frame 32
stop();
Symbol 2723 MovieClip Frame 33
stop();
Symbol 2723 MovieClip Frame 34
stop();
Symbol 2723 MovieClip Frame 35
stop();
Symbol 2723 MovieClip Frame 36
stop();
Symbol 2723 MovieClip Frame 37
stop();
Symbol 2723 MovieClip Frame 38
stop();
Symbol 2723 MovieClip Frame 39
stop();
Symbol 2723 MovieClip Frame 40
stop();
Symbol 2723 MovieClip Frame 41
stop();
Symbol 2723 MovieClip Frame 42
stop();
Symbol 2723 MovieClip Frame 43
stop();
Symbol 2723 MovieClip Frame 44
stop();
Symbol 2723 MovieClip Frame 45
stop();
Symbol 2723 MovieClip Frame 46
stop();
Symbol 2723 MovieClip Frame 47
stop();
Symbol 2723 MovieClip Frame 48
stop();
Symbol 2723 MovieClip Frame 49
stop();
Symbol 2723 MovieClip Frame 50
stop();
Symbol 2730 Button
on (release) {
if (!_root.onPause) {
_root.menuplay.gotoAndPlay(2);
_root.isPause = true;
gotoAndStop (2);
}
}
Symbol 2733 Button
on (release) {
_root.menuplay.gotoAndStop(1);
_root.isPause = false;
gotoAndStop (1);
}
Symbol 2734 MovieClip Frame 1
stop();
Symbol 2734 MovieClip Frame 2
stop();
Symbol 2737 Button
on (release) {
_root.usesound1 = false;
_root.bgsound.stop();
gotoAndStop (2);
}
Symbol 2740 Button
on (release) {
_root.usesound1 = true;
_root.bgsound.start(0, 99999);
gotoAndStop (1);
}
Symbol 2741 MovieClip Frame 1
stop();
Symbol 2741 MovieClip Frame 2
stop();
Symbol 2765 Button
on (release) {
if ((_root.gun5bullets > 0) && (!_root.onPause)) {
gotoAndStop (5);
_root.currentgun = 5;
_root.arena.players.theplayer.gotoAndStop(5);
}
}
Symbol 2766 Button
on (release) {
if (!_root.onPause) {
gotoAndStop (1);
_root.currentgun = 1;
_root.arena.players.theplayer.gotoAndStop(1);
}
}
Symbol 2767 Button
on (release) {
if ((_root.gun2bullets > 0) && (!_root.onPause)) {
gotoAndStop (2);
_root.currentgun = 2;
_root.arena.players.theplayer.gotoAndStop(2);
}
}
Symbol 2768 Button
on (release) {
if ((_root.gun3bullets > 0) && (!_root.onPause)) {
gotoAndStop (3);
_root.currentgun = 3;
_root.arena.players.theplayer.gotoAndStop(3);
}
}
Symbol 2769 Button
on (release) {
if ((_root.gun4bullets > 0) && (!_root.onPause)) {
gotoAndStop (4);
_root.currentgun = 4;
_root.arena.players.theplayer.gotoAndStop(4);
}
}
Symbol 2770 MovieClip Frame 1
stop();
Symbol 2770 MovieClip Frame 2
stop();
Symbol 2770 MovieClip Frame 3
stop();
Symbol 2770 MovieClip Frame 4
stop();
Symbol 2770 MovieClip Frame 5
stop();
Symbol 2789 MovieClip Frame 1
stop();
Symbol 2789 MovieClip Frame 30
stop();
atthemiddle = true;
Symbol 2789 MovieClip Frame 45
gotoAndStop (1);
Symbol 2800 Button
on (press) {
sboard.dir = "up";
}
on (release) {
sboard.dir = "stop";
}
Symbol 2801 Button
on (press) {
sboard.dir = "down";
}
on (release) {
sboard.dir = "stop";
}
Symbol 2808 MovieClip Frame 1
stop();
Symbol 2808 MovieClip Frame 2
stop();
Symbol 2818 MovieClip [TMP6pbk6uzm9i] Frame 1
var arrScore = new Array();
mcScoreboard.sboard.dir = "stop";
mcScoreboard.sboard.mcScoreHolder.mcScore._visible = false;
mcLabel._visible = false;
var main = this;
xmlPlayer = new XML();
xmlPlayer.ignoreWhite = true;
xmlPlayer.onLoad = function (success) {
if (success) {
myPlayer = xmlPlayer.firstChild.childNodes;
ctr2 = 0;
while (ctr2 < myPlayer.length) {
thisPlayer = main.mcScoreboard.sboard.mcScoreHolder.mcScore.duplicateMovieClip("mcScore" + ctr2, ctr2);
thisPlayer._y = ctr2 * thisPlayer._height;
thisPlayer._visible = true;
if ((ctr2 % 2) > 0) {
thisPlayer.gotoAndStop(2);
}
thisPlayer.txtNumber.text = (ctr2 + 1) + ")";
thisPlayer.txtNickname.text = myPlayer[ctr2].attributes.player;
thisPlayer.txtScore.text = myPlayer[ctr2].attributes.score;
ctr2++;
}
main.mcScoreboard.mcLoading._visible = false;
main.mcScoreboard.sboard.mcScoreHolder.item = myPlayer.length;
main.mcScoreboard.sboard.mcScoreHolder.speedy = 0;
main.mcScoreboard.sboard.mcScoreHolder.desty = 0;
main.mcScoreboard.sboard.mcScoreHolder.onEnterFrame = function () {
if ((this.desty < 0) && (this._parent.dir == "up")) {
this.desty = this.desty + 10;
if (this.desty > 0) {
this.desty = 0;
}
}
if ((this.desty > (this._parent.mcBlock._height - (this.mcScore._height * this.item))) && (this._parent.dir == "down")) {
this.desty = this.desty - 10;
if (this.desty < (this._parent.mcBlock._height - (this.mcScore._height * this.item))) {
this.desty = this._parent.mcBlock._height - (this.mcScore._height * this.item);
}
}
this.speedy = (this.desty - this._y) + (this.speedy * 0.4);
this._y = this._y + this.speedy;
};
}
};
xmlPlayer.load(((("http://www.freeonlinegames.com/scoreboard/getTopPlayer.php?id=" + gameID) + "&rand=") + random(999999)) + "&filt=1");
Symbol 2823 MovieClip [TMP6ojzjuzm8i] Frame 1
var arrScore = new Array();
mcScoreboard.sboard.dir = "stop";
mcScoreboard.sboard.mcScoreHolder.mcScore._visible = false;
mcLabel._visible = false;
var main = this;
xmlPlayer = new XML();
xmlPlayer.ignoreWhite = true;
xmlPlayer.onLoad = function (success) {
if (success) {
myPlayer = xmlPlayer.firstChild.childNodes;
ctr2 = 0;
while (ctr2 < myPlayer.length) {
thisPlayer = main.mcScoreboard.sboard.mcScoreHolder.mcScore.duplicateMovieClip("mcScore" + ctr2, ctr2);
thisPlayer._y = ctr2 * thisPlayer._height;
thisPlayer._visible = true;
if ((ctr2 % 2) > 0) {
thisPlayer.gotoAndStop(2);
}
thisPlayer.txtNumber.text = (ctr2 + 1) + ")";
thisPlayer.txtNickname.text = myPlayer[ctr2].attributes.player;
thisPlayer.txtScore.text = myPlayer[ctr2].attributes.score;
ctr2++;
}
main.mcScoreboard.mcLoading._visible = false;
main.mcScoreboard.sboard.mcScoreHolder.item = myPlayer.length;
main.mcScoreboard.sboard.mcScoreHolder.speedy = 0;
main.mcScoreboard.sboard.mcScoreHolder.desty = 0;
main.mcScoreboard.sboard.mcScoreHolder.onEnterFrame = function () {
if ((this.desty < 0) && (this._parent.dir == "up")) {
this.desty = this.desty + 10;
if (this.desty > 0) {
this.desty = 0;
}
}
if ((this.desty > (this._parent.mcBlock._height - (this.mcScore._height * this.item))) && (this._parent.dir == "down")) {
this.desty = this.desty - 10;
if (this.desty < (this._parent.mcBlock._height - (this.mcScore._height * this.item))) {
this.desty = this._parent.mcBlock._height - (this.mcScore._height * this.item);
}
}
this.speedy = (this.desty - this._y) + (this.speedy * 0.4);
this._y = this._y + this.speedy;
};
}
};
xmlPlayer.load((("http://www.freeonlinegames.com/scoreboard/getTopPlayer.php?id=" + _root.gameID) + "&rand=") + random(999999));