Frame 2
guyFunc = function (guy, up, down, left, right, jump, fire, changekey, guyname) {
if (guy.alive == 1) {
if (guy.varsset == 1) {
} else {
guy.attachMovie("health", "healthbar", 1);
guy.healthbar.health.gotoAndStop(guy.team);
i = 2;
while (i <= totalguns) {
guy["gun" + i] = 0;
i++;
}
guy.lives = lives;
guy.spree = 0;
guy.deadtime = 0;
guy.playername = guyname;
guy.deaths = 0;
guy.kills = 0;
guy.com = 0;
guy.gun1 = 1;
guy.health = 40;
guy.margin = 5;
guy.healthbar._y = -25;
guy.varsset = 1;
guy.startposx = guy._x;
guy.startposy = guy._y;
guy.halfwidth = (guy.guy._width / 2) - guy.margin;
guy.halfheight = (guy.guy._height / 2) - guy.margin;
guy.aimrot = guy.guy.arm._rotation;
guy.xspeed = 0;
guy.yspeed = 0;
guy.jump = 0;
guy.accelaration = 0.5;
guy.slowdown = 0.93;
guy.jumpheight = 8;
guy.rotspeed = 3;
guy.shootgap = 30;
guy.timer = guy.shootgap;
guy.currentgun = 1;
guy.alive = 1;
guy.healthbar.box.text = guy.playername;
}
if (Key.isDown(changekey)) {
if (guy.letgo == 1) {
i = 1;
while (i <= totalguns) {
guy.currentgun++;
if (guy.currentgun > totalguns) {
guy.currentgun = 1;
}
if (guy["gun" + guy.currentgun] == 1) {
i = totalguns;
switchw.start();
}
i++;
}
guy.letgo = 0;
}
} else {
guy.letgo = 1;
}
guy.guy.arm.gun.gotoAndStop(guy.currentgun);
guy.healthbar.health._width = guy.health;
if (guy.health < 1) {
guy.guy.arm.gun.gotoAndStop("blank");
attachMovie("pack", "pack" + bulllevel, bulllevel);
_root["pack" + bulllevel]._x = guy._x;
_root["pack" + bulllevel]._y = guy._y;
i = 1;
while (i <= totalguns) {
if (guy["gun" + i] == 1) {
_root["pack" + bulllevel]["gun" + i] = 1;
}
i++;
}
bulllevel++;
guy.healthbar.health._width = 0;
if (guy.lastkill._x > guy._x) {
guy.xspeed = -3;
} else {
guy.xspeed = 3;
}
if (guy.lastkill.team == guy.team) {
guy.lastkill.kills--;
_root[("team" + guy.lastkill.team) + "kills"]--;
} else {
guy.lastkill.kills++;
guy.lastkill.spree++;
_root[("team" + guy.lastkill.team) + "kills"]++;
}
commentry.killed = guy;
commentry.killedby = guy.lastkill;
commentry.gotoAndPlay(1);
guy.spree = 0;
guy.deaths++;
guy.yspeed = -10;
guy.alive = 0;
guy.lives--;
}
guy.timer++;
guy.dir = guy._currentframe;
if (guy.dir == 1) {
guy.cross._rotation = guy.aimrot;
guy.guy.arm._rotation = guy.aimrot;
} else {
guy.cross._rotation = guy.aimrot + 180;
guy.guy.arm._rotation = -guy.aimrot;
}
guy._x = guy._x + guy.xspeed;
guy._y = guy._y + guy.yspeed;
guy.xspeed = guy.xspeed * guy.slowdown;
if (guy.jump == 1) {
guy.guy.gotoAndStop("jump");
}
if (Key.isDown(left)) {
guy.gotoAndStop(2);
guy.guy.play();
guy.xspeed = guy.xspeed - guy.accelaration;
} else if (Key.isDown(right)) {
guy.gotoAndStop(1);
guy.guy.play();
guy.xspeed = guy.xspeed + guy.accelaration;
} else if (guy.jump == 0) {
guy.guy.gotoAndStop(1);
}
if (back.hitTest(guy._x + guy.halfwidth, (guy._y + guy.halfheight) + (guy.margin / 2), true) or back.hitTest(guy._x - guy.halfwidth, (guy._y + guy.halfheight) + (guy.margin / 2), true)) {
if (guy.yspeed > 2) {
land.start();
}
guy.xspeed = guy.xspeed * guy.slowdown;
guy._y = guy._y - guy.yspeed;
guy.yspeed = 0;
if (Key.isDown(jump)) {
jumpsound.start();
guy.yspeed = guy.yspeed - guy.jumpheight;
guy.jump = 1;
} else {
guy.jump = 0;
}
} else {
guy.yspeed = guy.yspeed + 0.5;
}
if (back.hitTest(guy._x + guy.halfwidth, (guy._y - guy.halfheight) - (guy.margin / 2), true) or back.hitTest(guy._x - guy.halfwidth, (guy._y - guy.halfheight) - (guy.margin / 2), true)) {
guy.yspeed = 1;
}
if (back.hitTest((guy._x + guy.halfwidth) + (guy.margin / 2), guy._y - guy.halfheight, true) or back.hitTest((guy._x + guy.halfwidth) + (guy.margin / 2), guy._y + guy.halfheight, true)) {
guy.xspeed = -1;
}
if (back.hitTest((guy._x - guy.halfwidth) - (guy.margin / 2), guy._y - guy.halfheight, true) or back.hitTest((guy._x - guy.halfwidth) - (guy.margin / 2), guy._y + guy.halfheight, true)) {
guy.xspeed = 1;
}
if (guy.dir == 1) {
if (Key.isDown(up)) {
guy.aimrot = guy.aimrot - guy.rotspeed;
}
if (Key.isDown(down)) {
guy.aimrot = guy.aimrot + guy.rotspeed;
}
} else {
if (Key.isDown(up)) {
guy.aimrot = guy.aimrot + guy.rotspeed;
}
if (Key.isDown(down)) {
guy.aimrot = guy.aimrot - guy.rotspeed;
}
}
if (guy.aimrot < -90) {
guy.aimrot = -90;
}
if (guy.aimrot > 90) {
guy.aimrot = 90;
}
guy.timer++;
if (guy.timer > guy.shootgap) {
if (Key.isDown(fire)) {
shootFunc(guy);
}
}
} else {
if (guy.deadtime > totaldeadtime) {
i = 2;
while (i <= totalguns) {
guy["gun" + i] = 0;
i++;
}
guy._rotation = 0;
guy.guy.arm._rotation = 0;
guy.deadtime = 0;
guy.gun1 = 1;
guy.health = 40;
guy._x = guy.startposx;
guy._y = guy.startposy;
guy.aimrot = guy.guy.arm._rotation;
guy.xspeed = 0;
guy.yspeed = 0;
guy.jump = 0;
guy.rotspeed = 3;
guy.shootgap = 30;
guy.timer = guy.shootgap;
guy.currentgun = 1;
guy.alive = 1;
}
if (guy.lives <= 0) {
} else {
guy.deadtime++;
}
guy.guy.stop();
guy._x = guy._x + guy.xspeed;
guy._y = guy._y + guy.yspeed;
guy.yspeed = guy.yspeed + 0.5;
if ((guy._rotation < 90) and (guy._rotation > -90)) {
guy._rotation = guy._rotation + (guy.xspeed / 2);
}
}
};
comFunc = function (guy) {
if (guy.alive == 1) {
if (guy.varsset == 1) {
} else {
if (guy.team == 1) {
guy.attachMovie("health", "healthbar", 1);
} else {
guy.attachMovie("health2", "healthbar", 1);
}
guy.lives = lives;
guy.losttimer = 0;
guy.attachMovie("health", "healthbar", 1);
guy.healthbar.health.gotoAndStop(guy.team);
guy.spree = 0;
guy.deadtime = 0;
guy.deaths = 0;
guy.kills = 0;
guy.com = 1;
guy.point = _root[(guy.team + "weapon") + (Math.round(Math.random() * (totalweps - 1)) + 1)];
guy.health = 40;
guy.pointnum = 0;
guy.margin = 5;
guy.healthbar._y = -25;
guy.varsset = 1;
guy.startposx = guy._x;
guy.startposy = guy._y;
guy.halfwidth = (guy.guy._width / 2) - guy.margin;
guy.halfheight = (guy.guy._height / 2) - guy.margin;
guy.aimrot = guy.guy.arm._rotation;
guy.xspeed = 0;
guy.yspeed = 0;
guy.jump = 0;
guy.accelaration = 0.5;
guy.slowdown = 0.9;
guy.jumpheight = 8;
guy.rotspeed = 3;
guy.timer = 0;
guy.shootgap = 30;
guy.jumptrigger = 0;
guy.aimtarget = 0;
guy.currentsection = 0;
guy.currentgun = 1;
guy.healthbar.box.text = guy.playername;
i = 2;
while (i <= totalguns) {
guy["gun" + i] = 0;
i++;
}
guy.gun1 = 1;
}
guy.guy.arm.gun.gotoAndStop(guy.currentgun);
guy.losttimer++;
if (guy.losttimer > losttime) {
guy.pointnum--;
guy.losttimer = 0;
guy.point = _root[("point" + guy.team) + guy.pointnum];
}
if (guy.pointnum >= points) {
guy.pointnum = 0;
}
if (guy.health < 1) {
guy.guy.arm.gun.gotoAndStop("blank");
attachMovie("pack", "pack" + bulllevel, bulllevel);
_root["pack" + bulllevel]._x = guy._x;
_root["pack" + bulllevel]._y = guy._y;
i = 1;
while (i <= totalguns) {
if (guy["gun" + i] == 1) {
_root["pack" + bulllevel]["gun" + i] = 1;
}
i++;
}
bulllevel++;
guy.healthbar.health._width = 0;
if (guy.lastkill._x > guy._x) {
guy.xspeed = -3;
} else {
guy.xspeed = 3;
}
if (guy.lastkill.team == guy.team) {
guy.lastkill.kills--;
_root[("team" + guy.lastkill.team) + "kills"]--;
} else {
guy.lastkill.kills++;
guy.lastkill.spree++;
_root[("team" + guy.lastkill.team) + "kills"]++;
}
commentry.killed = guy;
commentry.killedby = guy.lastkill;
commentry.gotoAndPlay(1);
guy.spree = 0;
guy.deaths++;
guy.yspeed = -10;
guy.alive = 0;
guy.lives--;
}
guy.healthbar.health._width = guy.health;
if (guy.health < 0) {
guy.healthbar.health._width = 0;
}
guy.timer++;
guy.dir = guy._currentframe;
if (guy.dir == 1) {
guy.cross._rotation = guy.aimrot;
guy.guy.arm._rotation = guy.aimrot;
} else {
guy.cross._rotation = guy.aimrot + 180;
guy.guy.arm._rotation = -guy.aimrot;
}
guy._x = guy._x + guy.xspeed;
guy._y = guy._y + guy.yspeed;
guy.xspeed = guy.xspeed * guy.slowdown;
if (guy.jump == 1) {
guy.guy.gotoAndStop("jump");
}
if (guy.stoped == 0) {
if (guy.point._x < guy._x) {
guy.gotoAndStop(2);
guy.guy.play();
guy.xspeed = guy.xspeed - guy.accelaration;
} else if (guy.point._x > guy._x) {
guy.gotoAndStop(1);
guy.guy.play();
guy.xspeed = guy.xspeed + guy.accelaration;
} else if (guy.jump == 0) {
guy.guy.gotoAndStop(1);
}
} else {
guy.guy.gotoAndStop(1);
if (guy._x < guy.aimtarget._x) {
guy.gotoAndStop(1);
} else {
guy.gotoAndStop(2);
}
}
if (back.hitTest(guy._x + guy.halfwidth, (guy._y + guy.halfheight) + (guy.margin / 2), true) or back.hitTest(guy._x - guy.halfwidth, (guy._y + guy.halfheight) + (guy.margin / 2), true)) {
if (guy.aimtarget == 0) {
guy.stoped = 0;
} else {
guy.stoped = 1;
}
if (guy.yspeed > 2) {
land.start();
}
guy.xspeed = guy.xspeed * guy.slowdown;
guy._y = guy._y - guy.yspeed;
guy.yspeed = 0;
if (guy.aimtarget == 0) {
if (guy.jumptrigger == 1) {
jumpsound.start();
guy.yspeed = guy.yspeed - guy.jumpheight;
guy.jump = 1;
guy.jumptrigger = 0;
} else {
guy.jump = 0;
}
}
} else {
guy.yspeed = guy.yspeed + 0.5;
}
if (back.hitTest(guy._x + guy.halfwidth, (guy._y - guy.halfheight) - (guy.margin / 2), true) or back.hitTest(guy._x - guy.halfwidth, (guy._y - guy.halfheight) - (guy.margin / 2), true)) {
guy.yspeed = 1;
}
if (back.hitTest((guy._x + guy.halfwidth) + (guy.margin / 2), guy._y - guy.halfheight, true) or back.hitTest((guy._x + guy.halfwidth) + (guy.margin / 2), guy._y + guy.halfheight, true)) {
guy.xspeed = -1;
guy.jumptrigger = 1;
} else if (back.hitTest((guy._x - guy.halfwidth) - (guy.margin / 2), guy._y - guy.halfheight, true) or back.hitTest((guy._x - guy.halfwidth) - (guy.margin / 2), guy._y + guy.halfheight, true)) {
guy.xspeed = 1;
guy.jumptrigger = 1;
} else if (back.hitTest((guy._x - guy.halfwidth) - 3, (guy._y + guy.halfheight) + 20, true) and back.hitTest((guy._x + guy.halfwidth) + 3, (guy._y + guy.halfheight) + 20, true)) {
guy.jumptrigger = 0;
} else {
guy.jumptrigger = 1;
}
if (guy.dir == 1) {
if (guy.aimrot < guy.angle) {
guy.aimrot = guy.aimrot + guy.rotspeed;
}
if (guy.aimrot > guy.angle) {
guy.aimrot = guy.aimrot - guy.rotspeed;
}
} else {
if (guy.aimrot > guy.angle) {
guy.aimrot = guy.aimrot - guy.rotspeed;
}
if (guy.aimrot < guy.angle) {
guy.aimrot = guy.aimrot + guy.rotspeed;
}
}
if (guy.aimrot < -90) {
guy.aimrot = -90;
}
if (guy.aimrot > 90) {
guy.aimrot = 90;
}
if (guy.point.hitTest(guy._x, guy._y)) {
guy.pointnum++;
guy.losttimer = 0;
guy.point = _root[("point" + guy.team) + guy.pointnum];
}
i = 1;
while (i <= sections) {
if (_root["section" + i].hitTest(guy._x, guy._y, true)) {
o = 1;
while (o <= (computers + players)) {
if (_root["player" + o].hitTest(_root["section" + i])) {
if ((_root["player" + o] == guy) or (_root["player" + o].team == guy.team)) {
} else if (_root["player" + o].alive == 1) {
guy.aimtarget = _root["player" + o];
guy.currentsection = _root["section" + i];
p = 0;
while (p < (totalguns - utilities)) {
if (guy["gun" + p] == 1) {
guy.currentgun = p;
}
p++;
}
}
}
o++;
}
}
i++;
}
if (guy.currentsection.hitTest(guy.aimtarget)) {
} else {
guy.currentsection = 0;
guy.aimtarget = 0;
if (guy.health < 40) {
if (guy.gun7 == 1) {
guy.currentgun = 7;
shootFunc(guy);
}
}
}
guy.adjside = guy.aimtarget._x - guy._x;
guy.oppside = -1 * (guy.aimtarget._y - guy._y);
guy.wrongangle = Math.atan2(guy.oppside, guy.adjside);
guy.wrongangle = Math.round((guy.wrongangle / Math.PI) * 180);
if (guy.dir == 1) {
guy.angle = -1 * guy.wrongangle;
} else if ((-(-180 + guy.wrongangle)) < 90) {
guy.angle = -(-180 + guy.wrongangle);
} else {
guy.angle = -(180 + guy.wrongangle);
}
guy.timer++;
if ((guy.aimrot < (guy.angle + 6)) and (guy.aimrot > (guy.angle - 6))) {
if (guy.timer > guy.shootgap) {
shootFunc(guy);
}
}
} else {
if (guy.deadtime > totaldeadtime) {
guy.spree = 0;
guy._rotation = 0;
guy.guy.arm._rotation = 0;
guy.deadtime = 0;
guy.point = _root[(guy.team + "weapon") + (Math.round(Math.random() * 2) + 1)];
guy.health = 40;
guy.pointnum = 0;
guy._x = guy.startposx;
guy._y = guy.startposy;
guy.aimrot = guy.guy.arm._rotation;
guy.xspeed = 0;
guy.yspeed = 0;
guy.jump = 0;
guy.timer = 0;
guy.shootgap = 30;
guy.jumptrigger = 0;
guy.aimtarget = 0;
guy.currentsection = 0;
guy.losttimer = 0;
guy.currentgun = 1;
i = 2;
while (i <= totalguns) {
guy["gun" + i] = 0;
i++;
}
guy.gun1 = 1;
guy.alive = 1;
}
if (guy.lives <= 0) {
} else {
guy.deadtime++;
}
guy.guy.stop();
guy._x = guy._x + guy.xspeed;
guy._y = guy._y + guy.yspeed;
guy.yspeed = guy.yspeed + 0.5;
if ((guy._rotation < 90) and (guy._rotation > -90)) {
guy._rotation = guy._rotation + (guy.xspeed / 2);
}
}
};
bullFunc = function (bull) {
if ((_currentframe - 2) == level) {
} else {
bull.removeMovieClip();
}
if (bull.varsset > 0) {
} else {
if (bull.shotby.dir == 1) {
bull._x = bull.shotby._x - 2.5;
bull._y = bull.shotby._y - 2.5;
bull.xspeed = -(Math.sin((((bull.shotby.aimrot - 90) + bull.extrarot) * Math.PI) / 180) * 10);
bull.yspeed = Math.cos((((bull.shotby.aimrot - 90) + bull.extrarot) * Math.PI) / 180) * 10;
} else {
bull._x = bull.shotby._x + 2.5;
bull._y = bull.shotby._y - 2.5;
bull.xspeed = Math.sin((((bull.shotby.aimrot - 90) + bull.extrarot) * Math.PI) / 180) * 10;
bull.yspeed = -(Math.cos((((bull.shotby.aimrot - 90) + bull.extrarot) * Math.PI) / 180) * 10);
}
bull.varsset = 1;
}
if (_root.back.hitTest(bull._x, bull._y, true)) {
bull.removeMovieClip();
}
if (offstageFunc(bull) == 1) {
bull.removeMovieClip();
}
bull._x = bull._x + bull.xspeed;
bull._y = bull._y + bull.yspeed;
i = 1;
while (i <= (computers + players)) {
if ((((bull._x < (_root["player" + i]._x + (_root["player" + i].halfwidth + 4))) and (bull._x > (_root["player" + i]._x - (_root["player" + i].halfwidth + 4)))) and (bull._y < (_root["player" + i]._y + (_root["player" + i].halfheight + 4)))) and (bull._y > (_root["player" + i]._y - (_root["player" + i].halfheight + 4)))) {
if (_root["player" + i] == bull.shotby) {
} else {
hit.start();
if (_root["player" + i].health <= bull.damage) {
_root["player" + i].lastkill = bull.shotby;
}
_root["player" + i].health = _root["player" + i].health - bull.damage;
bull.removeMovieClip();
}
}
i++;
}
};
offstageFunc = function (object) {
if ((((object._x > (stagewidth + 10)) or (object._x < -10)) or (object._y > (stageheight + 10))) or (object._y < -10)) {
return(1);
}
return(0);
};
itemFunc = function (item, weapon) {
if (item.setvars > 0) {
} else {
item.gotoAndStop("started");
item.timer = 0;
item.respawn = 200;
item.setvars = 1;
item.collected = 0;
}
i = 1;
while (i <= (computers + players)) {
if (item.hitTest(_root["player" + i]._x, _root["player" + i]._y)) {
if (_root["player" + i].alive == 1) {
collect.start();
item.gotoAndStop(9);
_root["player" + i]["gun" + weapon] = 1;
item.collected = 1;
if (_root["player" + i].com == 1) {
if (_root["player" + i].currentgun < weapon) {
if (weapon == 7) {
} else {
_root["player" + i].currentgun = weapon;
}
}
}
}
}
i++;
}
if (item.collected == 1) {
item.timer++;
if (item.timer > item.respawn) {
item.collected = 0;
item.play();
item.timer = 0;
}
}
item.gun.gotoAndStop(weapon);
};
shootFunc = function (guy) {
if (guy.currentgun == 1) {
_root.attachMovie("bullet", "bullet" + bulllevel, bulllevel);
_root["bullet" + bulllevel].damage = 10;
_root["bullet" + bulllevel].shotby = guy;
_root["bullet" + bulllevel].extrarot = 0;
pistol.start();
bulllevel++;
guy.timer = 0;
guy.guy.arm.gun.gun.play();
} else if (guy.currentgun == 2) {
_root.attachMovie("bullet", "bullet" + bulllevel, bulllevel);
_root["bullet" + bulllevel].damage = 5;
_root["bullet" + bulllevel].shotby = guy;
_root["bullet" + bulllevel].extrarot = 0;
uzi.start();
bulllevel++;
guy.timer = guy.shootgap - 5;
guy.guy.arm.gun.gun.play();
} else if (guy.currentgun == 3) {
i = -2;
while (i < 3) {
_root.attachMovie("bullet", "bullet" + bulllevel, bulllevel);
_root["bullet" + bulllevel].damage = 6;
_root["bullet" + bulllevel].shotby = guy;
_root["bullet" + bulllevel].extrarot = i * 3;
bulllevel++;
i++;
}
shotgun.start();
guy.timer = -20;
guy.guy.arm.gun.gun.play();
} else if (guy.currentgun == 4) {
_root.attachMovie("bullet", "bullet" + bulllevel, bulllevel);
_root["bullet" + bulllevel].damage = 20;
_root["bullet" + bulllevel].shotby = guy;
_root["bullet" + bulllevel].extrarot = 0;
_root["bullet" + bulllevel]._yscale = 200;
_root["bullet" + bulllevel]._xscale = 200;
biggun.start();
bulllevel++;
guy.timer = -30;
guy.guy.arm.gun.gun.play();
} else if (guy.currentgun == 5) {
_root.attachMovie("bullet", "bullet" + bulllevel, bulllevel);
_root["bullet" + bulllevel].damage = 20;
_root["bullet" + bulllevel].shotby = guy;
_root["bullet" + bulllevel].extrarot = 0;
ak.start();
bulllevel++;
guy.timer = 20;
guy.guy.arm.gun.gun.play();
} else if (guy.currentgun == 6) {
_root.attachMovie("bullet", "bullet" + bulllevel, bulllevel);
_root["bullet" + bulllevel].damage = 40;
_root["bullet" + bulllevel].shotby = guy;
_root["bullet" + bulllevel].extrarot = 0;
sniper.start();
bulllevel++;
guy.timer = -70;
guy.guy.arm.gun.gun.play();
} else if (guy.currentgun == 7) {
if (guy.health < 40) {
guy.health = guy.health + 0.3;
} else {
i = 1;
while (i <= (computers + players)) {
if (guy.hitTest(_root["player" + i]._x, _root["player" + i]._y)) {
if (_root["player" + i].team == guy.team) {
if (_root["player" + i].health < 40) {
_root["player" + i].health = _root["player" + i].health + 0.3;
}
}
}
i++;
}
}
}
};
packFunc = function (pack) {
if (pack.varsset == 1) {
} else {
pack.yspeed = 0;
pack.varsset = 1;
}
if ((_currentframe - 2) == level) {
} else {
pack.removeMovieClip();
}
pack._y = pack._y + pack.yspeed;
if (back.hitTest(pack._x + (pack._width / 2), pack._y + (pack._height / 2), true) or back.hitTest(pack._x - (pack._width / 2), pack._y + (pack._height / 2), true)) {
pack._y = pack._y - pack.yspeed;
pack.yspeed = 0;
} else {
pack.yspeed = pack.yspeed + 0.3;
}
i = 1;
while (i <= (computers + players)) {
if (pack.hitTest(_root["player" + i]._x, _root["player" + i]._y + 5)) {
if (_root["player" + i].alive == 1) {
collect.start();
o = 1;
while (o <= totalguns) {
if (pack["gun" + o] == 1) {
_root["player" + i]["gun" + o] = 1;
if (_root["player" + i].com == 1) {
if (_root["player" + i].currentgun < o) {
if (o == 7) {
} else {
_root["player" + i].currentgun = o;
}
}
}
}
o++;
}
pack.removeMovieClip();
}
}
i++;
}
};
flagFunc = function (flag, team) {
if (flag.varsset > 0) {
} else {
if (team == 1) {
flag.colour = "Red";
flag.otherflagcolour = "Blue";
} else {
flag.colour = "Blue";
flag.otherflagcolour = "Red";
}
flag.starty = flag._y;
flag.startx = flag._x;
flag.yspeed = 0;
flag.varsset = 1;
flag.heldby = 0;
flag.windpos = 8 * (team - 1);
flag.wind = 0;
flag.flag.gotoAndStop(flag.windpos);
}
flag._y = flag._y + flag.yspeed;
if (back.hitTest(flag._x, flag._y, true)) {
flag._y = flag._y - flag.yspeed;
flag.yspeed = 0;
} else {
flag.yspeed = flag.yspeed + 0.5;
}
i = 1;
while (i <= (computers + players)) {
if (flag.hitTest(_root["player" + i]._x, _root["player" + i]._y)) {
if (_root["player" + i].team == team) {
flag.heldby = 0;
if ((flag._x == flag.startx) and ((flag._y = flag.starty))) {
} else {
commentry.gotoAndPlay(2);
commentry.box2.text = flag.colour + " flag returned";
flag._x = flag.startx;
flag._y = flag.starty;
}
} else {
if (flag.heldby == 0) {
commentry.gotoAndPlay(2);
commentry.box2.text = ((flag.otherflagcolour + " team has captured the ") + flag.colour) + " flag";
}
flag.heldby = _root["player" + i];
}
}
i++;
}
if (flag.heldby.alive == 1) {
flag._x = flag.heldby._x + flag.heldby.xspeed;
flag._y = (flag.heldby._y - 10) + flag.heldby.yspeed;
} else {
flag.heldby = 0;
}
if (flag.heldby.xspeed > 1) {
flag.wind++;
flag.gotoAndStop(2);
} else if (flag.heldby.xspeed < -1) {
flag.wind++;
flag.gotoAndStop(1);
} else {
flag.wind--;
}
if (flag.wind < 0) {
flag.wind = 0;
}
if (flag.wind > 5) {
flag.wind = 5;
}
flag.flag.gotoAndStop(flag.windpos + flag.wind);
if ((flag._x == flag.startx) and (flag._y == flag.starty)) {
if (team == 1) {
if (flag.hitTest(flag2)) {
flag2._x = flag2.startx;
flag2._y = flag2.starty;
captures1++;
flag2.heldby = 0;
commentry.gotoAndPlay(2);
commentry.box2.text = "Red Team Score";
}
} else if (flag.hitTest(flag1)) {
flag1._x = flag1.startx;
flag1._y = flag1.starty;
captures2++;
flag1.heldby = 0;
commentry.gotoAndPlay(2);
commentry.box2.text = "Blue Team Score";
}
}
};
startDrag (mouse, true);
if (gamemode > -10) {
} else {
gamemode = 3;
team1 = [0, 0, 0, 0];
team2 = [0, 0, 0, 0];
team3 = [0, 0, 0, 0];
team4 = [0, 0, 0, 0];
players = 0;
computers = 0;
level = 1;
teams = 2;
name1 = "Player 1";
name2 = "Player 2";
name3 = "Player 3";
}
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
this.menu = my_cm;
fscommand ("trapallkeys", true);
_quality = "high";
stop();
pistol = new Sound();
pistol.attachSound("pistol");
shotgun = new Sound();
shotgun.attachSound("shotgun");
uzi = new Sound();
uzi.attachSound("uzi");
land = new Sound();
land.attachSound("land");
hit = new Sound();
hit.attachSound("hit");
biggun = new Sound();
biggun.attachSound("biggun");
ak = new Sound();
ak.attachSound("ak");
collect = new Sound();
collect.attachSound("collect");
switchw = new Sound();
switchw.attachSound("switchw");
sniper = new Sound();
sniper.attachSound("sniper");
jumpsound = new Sound();
jumpsound.attachSound("jump");
music = new Sound();
music.attachSound("music");
pressb = new Sound();
pressb.attachSound("press");
error = new Sound();
if (vol > -10) {
} else {
vol = 100;
music.start(0, 999);
}
onEnterFrame = function () {
music.setVolume(vol);
};
Instance of Symbol 249 MovieClip in Frame 2
onClipEvent (enterFrame) {
Mouse.hide();
}
Frame 3
if (_root.vol > -10) {
} else {
_root.vol = 100;
}
_quality = "low";
_quality = qual;
if (key11 > 0) {
} else {
key11 = 38;
key12 = 40;
key13 = 37;
key14 = 39;
key15 = 32;
key16 = 16;
key17 = 191;
}
if (key21 > 0) {
} else {
key21 = 87;
key22 = 83;
key23 = 65;
key24 = 68;
key25 = 70;
key26 = 71;
key27 = 69;
}
if (key31 > 0) {
} else {
key31 = 104;
key32 = 101;
key33 = 100;
key34 = 102;
key35 = 107;
key36 = 109;
key37 = 96;
}
music.stop();
sections = 6;
stageheight = 600;
stagewidth = 800;
currentteam = 2;
totalguns = 7;
utilities = 1;
teams = 4;
totaldeadtime = 100;
points = 9;
playerlevel = 1;
totalweps = 3;
losttime = 500;
o = 1;
while (o <= teams) {
i = 0;
while (i <= 4) {
if (_root["team" + o][i] == 2) {
_root.attachMovie("guy", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].up = key11;
_root["player" + playerlevel].down = key12;
_root["player" + playerlevel].left = key13;
_root["player" + playerlevel].right = key14;
_root["player" + playerlevel].jumpkey = key15;
_root["player" + playerlevel].fire = key16;
_root["player" + playerlevel].changew = key17;
_root["player" + playerlevel].pname = name1;
_root["player" + playerlevel].alive = 1;
playerlevel++;
} else if (_root["team" + o][i] == 3) {
_root.attachMovie("guy", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].up = key21;
_root["player" + playerlevel].down = key22;
_root["player" + playerlevel].left = key23;
_root["player" + playerlevel].right = key24;
_root["player" + playerlevel].jumpkey = key25;
_root["player" + playerlevel].fire = key26;
_root["player" + playerlevel].changew = key27;
_root["player" + playerlevel].pname = name2;
_root["player" + playerlevel].alive = 1;
playerlevel++;
} else if (_root["team" + o][i] == 4) {
_root.attachMovie("guy", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].up = key31;
_root["player" + playerlevel].down = key32;
_root["player" + playerlevel].left = key33;
_root["player" + playerlevel].right = key34;
_root["player" + playerlevel].jumpkey = key35;
_root["player" + playerlevel].fire = key36;
_root["player" + playerlevel].changew = key37;
_root["player" + playerlevel].pname = name3;
_root["player" + playerlevel].alive = 1;
playerlevel++;
} else if (_root["team" + o][i] == 1) {
_root.attachMovie("com", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].playername = "Com" + playerlevel;
playerlevel++;
}
i++;
}
o++;
}
bulllevel = (computers + players) + 1;
if (gamemode == 1) {
lives = score;
i = 1;
while (i <= (players + computers)) {
attachMovie("score", "score" + i, bulllevel);
_root["score" + i]._y = 590;
_root["score" + i]._x = 100 + (_root["score" + i]._width * (i - 1));
bulllevel++;
if (_root["player" + i].team == 1) {
_root["score" + i].textbox.textColor = 10027008 /* 0x990000 */;
} else if (_root["player" + i].team == 2) {
_root["score" + i].textbox.textColor = 197524 /* 0x030394 */;
} else if (_root["player" + i].team == 3) {
_root["score" + i].textbox.textColor = 4622861 /* 0x468A0D */;
} else if (_root["player" + i].team == 4) {
_root["score" + i].textbox.textColor = 14542610 /* 0xDDE712 */;
}
i++;
}
} else if (gamemode == 2) {
lives = 999;
maxkills = score;
i = 1;
while (i <= (players + computers)) {
attachMovie("score", "score" + i, bulllevel);
_root["score" + i]._y = 590;
_root["score" + i]._x = 100 + (_root["score" + i]._width * (i - 1));
bulllevel++;
if (i == 1) {
_root["score" + i].textbox.textColor = 10027008 /* 0x990000 */;
} else if (i == 2) {
_root["score" + i].textbox.textColor = 197524 /* 0x030394 */;
} else if (i == 3) {
_root["score" + i].textbox.textColor = 4622861 /* 0x468A0D */;
} else if (i == 4) {
_root["score" + i].textbox.textColor = 14542610 /* 0xDDE712 */;
}
i++;
}
} else if (gamemode == 3) {
lives = 999;
captures = score;
captures1 = 0;
captures2 = 0;
attachMovie("score", "score1", bulllevel);
score1.textbox.textColor = 10027008 /* 0x990000 */;
score1._y = 590;
score1._x = (stagewidth / 2) - score1._width;
bulllevel++;
attachMovie("score", "score2", bulllevel);
score2.textbox.textColor = 197524 /* 0x030394 */;
score2._y = 590;
score2._x = (stagewidth / 2) + score2._width;
bulllevel++;
} else if (gamemode == 4) {
lives = 999;
maxkills = score;
team1kills = 0;
team2kills = 0;
team3kills = 0;
team4kills = 0;
i = 1;
while (i <= teams) {
attachMovie("score", "score" + i, bulllevel);
_root["score" + i]._y = 590;
_root["score" + i]._x = 100 + (_root["score" + i]._width * (i - 1));
bulllevel++;
if (i == 1) {
_root["score" + i].textbox.textColor = 10027008 /* 0x990000 */;
} else if (i == 2) {
_root["score" + i].textbox.textColor = 197524 /* 0x030394 */;
} else if (i == 3) {
_root["score" + i].textbox.textColor = 4622861 /* 0x468A0D */;
} else if (i == 4) {
_root["score" + i].textbox.textColor = 14542610 /* 0xDDE712 */;
}
i++;
}
}
onEnterFrame = function () {
if (gamemode == 1) {
i = 1;
while (i <= (players + computers)) {
_root["score" + i].textbox.text = (_root["player" + i].playername + ": ") + _root["player" + i].lives;
i++;
}
} else if (gamemode == 2) {
i = 1;
while (i <= (players + computers)) {
_root["score" + i].textbox.text = (_root["player" + i].playername + ": ") + _root["player" + i].kills;
i++;
}
} else if (gamemode == 3) {
score1.textbox.text = "Red Team: " + captures1;
score2.textbox.text = "Blue Team: " + captures2;
if (captures1 == captures) {
winner = "Red Team";
gotoAndStop ("finished");
} else if (captures2 == captures) {
winner = "Blue Team";
gotoAndStop ("finished");
}
} else if (gamemode == 4) {
i = 1;
while (i <= teams) {
_root["score" + i].textbox.text = (("Team" + i) + ": ") + _root[("team" + i) + "kills"];
i++;
}
}
};
Instance of Symbol 253 MovieClip in Frame 3
onClipEvent (load) {
this._alpha = 50;
}
Instance of Symbol 260 MovieClip "2weapon2" in Frame 3
onClipEvent (enterFrame) {
_root.itemFunc(this, 2);
}
Instance of Symbol 260 MovieClip "2weapon1" in Frame 3
onClipEvent (enterFrame) {
_root.itemFunc(this, 4);
}
Instance of Symbol 260 MovieClip "2weapon3" in Frame 3
onClipEvent (enterFrame) {
_root.itemFunc(this, 3);
}
Instance of Symbol 260 MovieClip "1weapon1" in Frame 3
onClipEvent (enterFrame) {
_root.itemFunc(this, 3);
}
Instance of Symbol 260 MovieClip "1weapon3" in Frame 3
onClipEvent (enterFrame) {
_root.itemFunc(this, 4);
}
Instance of Symbol 260 MovieClip "1weapon2" in Frame 3
onClipEvent (enterFrame) {
_root.itemFunc(this, 2);
}
Instance of Symbol 263 MovieClip "commentry" in Frame 3
onClipEvent (load) {
this.gotoAndStop("lastframe");
}
Instance of Symbol 260 MovieClip "1weapon4" in Frame 3
onClipEvent (enterFrame) {
_root.itemFunc(this, 5);
timer = 0;
}
Instance of Symbol 260 MovieClip "2weapon6" in Frame 3
onClipEvent (enterFrame) {
_root.itemFunc(this, 6);
timer = 0;
}
Instance of Symbol 260 MovieClip "weapon" in Frame 3
onClipEvent (enterFrame) {
_root.itemFunc(this, 7);
}
Instance of Symbol 282 MovieClip "flag1" in Frame 3
onClipEvent (enterFrame) {
_root.flagFunc(this, 1);
}
Instance of Symbol 282 MovieClip "flag2" in Frame 3
onClipEvent (enterFrame) {
_root.flagFunc(this, 2);
}
Frame 4
stop();
if (_root.vol > -10) {
} else {
_root.vol = 100;
}
_quality = "low";
_quality = qual;
if (key11 > 0) {
} else {
key11 = 38;
key12 = 40;
key13 = 37;
key14 = 39;
key15 = 32;
key16 = 16;
key17 = 191;
}
if (key21 > 0) {
} else {
key21 = 87;
key22 = 83;
key23 = 65;
key24 = 68;
key25 = 70;
key26 = 71;
key27 = 69;
}
if (key31 > 0) {
} else {
key31 = 104;
key32 = 101;
key33 = 100;
key34 = 102;
key35 = 107;
key36 = 109;
key37 = 96;
}
music.stop();
sections = 9;
stageheight = 600;
stagewidth = 800;
totalguns = 7;
utilities = 1;
totaldeadtime = 100;
points = 3;
playerlevel = 1;
totalweps = 2;
losttime = 500;
i = 0;
while (i <= 4) {
if (_root["team" + i][0] > 0) {
_root["flag" + i].flag.gotoAndStop("flag" + i);
} else {
_root["flag" + i].flag.gotoAndStop("blank");
}
i++;
}
o = 1;
while (o <= teams) {
i = 0;
while (i <= 4) {
if (_root["team" + o][i] == 2) {
_root.attachMovie("guy", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].up = key11;
_root["player" + playerlevel].down = key12;
_root["player" + playerlevel].left = key13;
_root["player" + playerlevel].right = key14;
_root["player" + playerlevel].jumpkey = key15;
_root["player" + playerlevel].fire = key16;
_root["player" + playerlevel].changew = key17;
_root["player" + playerlevel].pname = name1;
_root["player" + playerlevel].alive = 1;
playerlevel++;
} else if (_root["team" + o][i] == 3) {
_root.attachMovie("guy", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].up = key21;
_root["player" + playerlevel].down = key22;
_root["player" + playerlevel].left = key23;
_root["player" + playerlevel].right = key24;
_root["player" + playerlevel].jumpkey = key25;
_root["player" + playerlevel].fire = key26;
_root["player" + playerlevel].changew = key27;
_root["player" + playerlevel].pname = name2;
_root["player" + playerlevel].alive = 1;
playerlevel++;
} else if (_root["team" + o][i] == 4) {
_root.attachMovie("guy", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].up = key31;
_root["player" + playerlevel].down = key32;
_root["player" + playerlevel].left = key33;
_root["player" + playerlevel].right = key34;
_root["player" + playerlevel].jumpkey = key35;
_root["player" + playerlevel].fire = key36;
_root["player" + playerlevel].changew = key37;
_root["player" + playerlevel].pname = name3;
_root["player" + playerlevel].alive = 1;
playerlevel++;
} else if (_root["team" + o][i] == 1) {
_root.attachMovie("com", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].playername = "Com" + playerlevel;
playerlevel++;
}
i++;
}
o++;
}
bulllevel = (computers + players) + 1;
if (gamemode == 1) {
lives = score;
i = 1;
while (i <= (players + computers)) {
attachMovie("score", "score" + i, bulllevel);
_root["score" + i]._y = 590;
_root["score" + i]._x = 100 + (_root["score" + i]._width * (i - 1));
bulllevel++;
if (_root["player" + i].team == 1) {
_root["score" + i].textbox.textColor = 10027008 /* 0x990000 */;
} else if (_root["player" + i].team == 2) {
_root["score" + i].textbox.textColor = 197524 /* 0x030394 */;
} else if (_root["player" + i].team == 3) {
_root["score" + i].textbox.textColor = 4622861 /* 0x468A0D */;
} else if (_root["player" + i].team == 4) {
_root["score" + i].textbox.textColor = 14542610 /* 0xDDE712 */;
}
i++;
}
} else if (gamemode == 2) {
lives = 999;
maxkills = score;
i = 1;
while (i <= (players + computers)) {
attachMovie("score", "score" + i, bulllevel);
_root["score" + i]._y = 590;
_root["score" + i]._x = 100 + (_root["score" + i]._width * (i - 1));
bulllevel++;
if (_root["player" + i].team == 1) {
_root["score" + i].textbox.textColor = 10027008 /* 0x990000 */;
} else if (_root["player" + i].team == 2) {
_root["score" + i].textbox.textColor = 197524 /* 0x030394 */;
} else if (_root["player" + i].team == 3) {
_root["score" + i].textbox.textColor = 4622861 /* 0x468A0D */;
} else if (_root["player" + i].team == 4) {
_root["score" + i].textbox.textColor = 14542610 /* 0xDDE712 */;
}
i++;
}
} else if (gamemode == 3) {
lives = 999;
captures = score;
captures1 = 0;
captures2 = 0;
attachMovie("score", "score1", bulllevel);
score1.textbox.textColor = 10027008 /* 0x990000 */;
score1._y = 590;
score1._x = (stagewidth / 2) - score1._width;
bulllevel++;
attachMovie("score", "score2", bulllevel);
score2.textbox.textColor = 197524 /* 0x030394 */;
score2._y = 590;
score2._x = (stagewidth / 2) + score2._width;
bulllevel++;
} else if (gamemode == 4) {
lives = 999;
maxkills = score;
team1kills = 0;
team2kills = 0;
team3kills = 0;
team4kills = 0;
i = 1;
while (i <= teams) {
attachMovie("score", "score" + i, bulllevel);
_root["score" + i]._y = 590;
_root["score" + i]._x = 100 + (_root["score" + i]._width * (i - 1));
bulllevel++;
if (i == 1) {
_root["score" + i].textbox.textColor = 10027008 /* 0x990000 */;
if (_root["team" + i][0] == 0) {
_root["score" + i]._visible = 0;
}
} else if (i == 2) {
_root["score" + i].textbox.textColor = 197524 /* 0x030394 */;
if (_root["team" + i][0] == 0) {
_root["score" + i]._visible = 0;
}
} else if (i == 3) {
_root["score" + i].textbox.textColor = 4622861 /* 0x468A0D */;
if (_root["team" + i][0] == 0) {
_root["score" + i]._visible = 0;
}
} else if (i == 4) {
_root["score" + i].textbox.textColor = 14542610 /* 0xDDE712 */;
if (_root["team" + i][0] == 0) {
_root["score" + i]._visible = 0;
}
}
i++;
}
}
onEnterFrame = function () {
if (gamemode == 1) {
i = 1;
while (i <= (players + computers)) {
_root["score" + i].textbox.text = (_root["player" + i].playername + ": ") + _root["player" + i].lives;
j = 1;
while (j <= ((players + computers) + 1)) {
if (j > (players + computers)) {
gotoAndStop ("finished");
}
if (_root["player" + j].lives > 0) {
if (i == j) {
} else {
break;
}
}
j++;
}
i++;
}
} else if (gamemode == 2) {
i = 1;
while (i <= (players + computers)) {
_root["score" + i].textbox.text = (_root["player" + i].playername + ": ") + _root["player" + i].kills;
if (_root["player" + i].kills == maxkills) {
winner = _root["player" + i].playername;
gotoAndStop ("finished");
}
i++;
}
} else if (gamemode == 3) {
score1.textbox.text = "Red Team: " + captures1;
score2.textbox.text = "Blue Team: " + captures2;
if (captures1 > captures) {
winner = "Red Team";
gotoAndStop ("finished");
} else if (captures2 > captures) {
winner = "Blue Team";
gotoAndStop ("finished");
}
} else if (gamemode == 4) {
i = 1;
while (i <= teams) {
_root["score" + i].textbox.text = (("Team" + i) + ": ") + _root[("team" + i) + "kills"];
if (_root[("team" + i) + "kills"] == maxkills) {
winner = "Team " + i;
gotoAndStop ("finished");
}
i++;
}
}
};
Instance of Symbol 260 MovieClip "weapon5" in Frame 4
onClipEvent (enterFrame) {
_root.itemFunc(this, 4);
}
Instance of Symbol 260 MovieClip "weapon4" in Frame 4
onClipEvent (enterFrame) {
_root.itemFunc(this, 4);
}
Instance of Symbol 260 MovieClip "2weapon1" in Frame 4
onClipEvent (enterFrame) {
_root.itemFunc(this, 3);
}
Instance of Symbol 260 MovieClip "2weapon2" in Frame 4
onClipEvent (enterFrame) {
_root.itemFunc(this, 2);
}
Instance of Symbol 260 MovieClip "4weapon2" in Frame 4
onClipEvent (enterFrame) {
_root.itemFunc(this, 3);
}
Instance of Symbol 260 MovieClip "4weapon1" in Frame 4
onClipEvent (enterFrame) {
_root.itemFunc(this, 2);
}
Instance of Symbol 260 MovieClip "weapon3" in Frame 4
onClipEvent (enterFrame) {
_root.itemFunc(this, 3);
}
Instance of Symbol 260 MovieClip "1weapon2" in Frame 4
onClipEvent (enterFrame) {
_root.itemFunc(this, 2);
}
Instance of Symbol 260 MovieClip "3weapon2" in Frame 4
onClipEvent (enterFrame) {
_root.itemFunc(this, 3);
}
Instance of Symbol 260 MovieClip "weapon2" in Frame 4
onClipEvent (enterFrame) {
_root.itemFunc(this, 2);
}
Instance of Symbol 260 MovieClip "weapon1" in Frame 4
onClipEvent (enterFrame) {
_root.itemFunc(this, 4);
}
Instance of Symbol 260 MovieClip "3weapon1" in Frame 4
onClipEvent (enterFrame) {
_root.itemFunc(this, 6);
}
Instance of Symbol 260 MovieClip "1weapon1" in Frame 4
onClipEvent (enterFrame) {
_root.itemFunc(this, 5);
}
Frame 5
stop();
if (_root.vol > -10) {
} else {
_root.vol = 100;
}
_quality = "low";
_quality = qual;
if (key11 > 0) {
} else {
key11 = 38;
key12 = 40;
key13 = 37;
key14 = 39;
key15 = 32;
key16 = 16;
key17 = 191;
}
if (key21 > 0) {
} else {
key21 = 87;
key22 = 83;
key23 = 65;
key24 = 68;
key25 = 70;
key26 = 71;
key27 = 69;
}
if (key31 > 0) {
} else {
key31 = 104;
key32 = 101;
key33 = 100;
key34 = 102;
key35 = 107;
key36 = 109;
key37 = 96;
}
music.stop();
sections = 7;
stageheight = 600;
stagewidth = 800;
totalguns = 7;
utilities = 1;
totaldeadtime = 100;
points = 3;
playerlevel = 1;
totalweps = 2;
losttime = 750;
i = 0;
while (i <= 4) {
if (_root["team" + i][0] > 0) {
_root["flag" + i].flag.gotoAndStop("flag" + i);
} else {
_root["flag" + i].flag.gotoAndStop("blank");
}
i++;
}
o = 1;
while (o <= teams) {
i = 0;
while (i <= 4) {
if (_root["team" + o][i] == 2) {
_root.attachMovie("guy", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].up = key11;
_root["player" + playerlevel].down = key12;
_root["player" + playerlevel].left = key13;
_root["player" + playerlevel].right = key14;
_root["player" + playerlevel].jumpkey = key15;
_root["player" + playerlevel].fire = key16;
_root["player" + playerlevel].changew = key17;
_root["player" + playerlevel].pname = name1;
_root["player" + playerlevel].alive = 1;
playerlevel++;
} else if (_root["team" + o][i] == 3) {
_root.attachMovie("guy", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].up = key21;
_root["player" + playerlevel].down = key22;
_root["player" + playerlevel].left = key23;
_root["player" + playerlevel].right = key24;
_root["player" + playerlevel].jumpkey = key25;
_root["player" + playerlevel].fire = key26;
_root["player" + playerlevel].changew = key27;
_root["player" + playerlevel].pname = name2;
_root["player" + playerlevel].alive = 1;
playerlevel++;
} else if (_root["team" + o][i] == 4) {
_root.attachMovie("guy", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].up = key31;
_root["player" + playerlevel].down = key32;
_root["player" + playerlevel].left = key33;
_root["player" + playerlevel].right = key34;
_root["player" + playerlevel].jumpkey = key35;
_root["player" + playerlevel].fire = key36;
_root["player" + playerlevel].changew = key37;
_root["player" + playerlevel].pname = name3;
_root["player" + playerlevel].alive = 1;
playerlevel++;
} else if (_root["team" + o][i] == 1) {
_root.attachMovie("com", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].playername = "Com" + playerlevel;
playerlevel++;
}
i++;
}
o++;
}
bulllevel = (computers + players) + 1;
if (gamemode == 1) {
lives = score;
i = 1;
while (i <= (players + computers)) {
attachMovie("score", "score" + i, bulllevel);
_root["score" + i]._y = 590;
_root["score" + i]._x = 100 + (_root["score" + i]._width * (i - 1));
bulllevel++;
if (_root["player" + i].team == 1) {
_root["score" + i].textbox.textColor = 10027008 /* 0x990000 */;
} else if (_root["player" + i].team == 2) {
_root["score" + i].textbox.textColor = 197524 /* 0x030394 */;
} else if (_root["player" + i].team == 3) {
_root["score" + i].textbox.textColor = 4622861 /* 0x468A0D */;
} else if (_root["player" + i].team == 4) {
_root["score" + i].textbox.textColor = 14542610 /* 0xDDE712 */;
}
i++;
}
} else if (gamemode == 2) {
lives = 999;
maxkills = score;
i = 1;
while (i <= (players + computers)) {
attachMovie("score", "score" + i, bulllevel);
_root["score" + i]._y = 590;
_root["score" + i]._x = 100 + (_root["score" + i]._width * (i - 1));
bulllevel++;
if (_root["player" + i].team == 1) {
_root["score" + i].textbox.textColor = 10027008 /* 0x990000 */;
} else if (_root["player" + i].team == 2) {
_root["score" + i].textbox.textColor = 197524 /* 0x030394 */;
} else if (_root["player" + i].team == 3) {
_root["score" + i].textbox.textColor = 4622861 /* 0x468A0D */;
} else if (_root["player" + i].team == 4) {
_root["score" + i].textbox.textColor = 14542610 /* 0xDDE712 */;
}
i++;
}
} else if (gamemode == 3) {
lives = 999;
captures = score;
captures1 = 0;
captures2 = 0;
attachMovie("score", "score1", bulllevel);
score1.textbox.textColor = 10027008 /* 0x990000 */;
score1._y = 590;
score1._x = (stagewidth / 2) - score1._width;
bulllevel++;
attachMovie("score", "score2", bulllevel);
score2.textbox.textColor = 197524 /* 0x030394 */;
score2._y = 590;
score2._x = (stagewidth / 2) + score2._width;
bulllevel++;
} else if (gamemode == 4) {
lives = 999;
maxkills = score;
team1kills = 0;
team2kills = 0;
team3kills = 0;
team4kills = 0;
i = 1;
while (i <= teams) {
attachMovie("score", "score" + i, bulllevel);
_root["score" + i]._y = 590;
_root["score" + i]._x = 100 + (_root["score" + i]._width * (i - 1));
bulllevel++;
if (i == 1) {
_root["score" + i].textbox.textColor = 10027008 /* 0x990000 */;
if (_root["team" + i][0] == 0) {
_root["score" + i]._visible = 0;
}
} else if (i == 2) {
_root["score" + i].textbox.textColor = 197524 /* 0x030394 */;
if (_root["team" + i][0] == 0) {
_root["score" + i]._visible = 0;
}
} else if (i == 3) {
_root["score" + i].textbox.textColor = 4622861 /* 0x468A0D */;
if (_root["team" + i][0] == 0) {
_root["score" + i]._visible = 0;
}
} else if (i == 4) {
_root["score" + i].textbox.textColor = 14542610 /* 0xDDE712 */;
if (_root["team" + i][0] == 0) {
_root["score" + i]._visible = 0;
}
}
i++;
}
}
onEnterFrame = function () {
if (gamemode == 1) {
i = 1;
while (i <= (players + computers)) {
_root["score" + i].textbox.text = (_root["player" + i].playername + ": ") + _root["player" + i].lives;
j = 1;
while (j <= ((players + computers) + 1)) {
if (j > (players + computers)) {
gotoAndStop ("finished");
}
if (_root["player" + j].lives > 0) {
if (i == j) {
} else {
break;
}
}
j++;
}
i++;
}
} else if (gamemode == 2) {
i = 1;
while (i <= (players + computers)) {
_root["score" + i].textbox.text = (_root["player" + i].playername + ": ") + _root["player" + i].kills;
if (_root["player" + i].kills == maxkills) {
winner = _root["player" + i].playername;
gotoAndStop ("finished");
}
i++;
}
} else if (gamemode == 3) {
score1.textbox.text = "Red Team: " + captures1;
score2.textbox.text = "Blue Team: " + captures2;
if (captures1 > captures) {
winner = "Red Team";
gotoAndStop ("finished");
} else if (captures2 > captures) {
winner = "Blue Team";
gotoAndStop ("finished");
}
} else if (gamemode == 4) {
i = 1;
while (i <= teams) {
_root["score" + i].textbox.text = (("Team" + i) + ": ") + _root[("team" + i) + "kills"];
if (_root[("team" + i) + "kills"] == maxkills) {
winner = "Team " + i;
gotoAndStop ("finished");
}
i++;
}
}
};
Instance of Symbol 260 MovieClip "1weapon1" in Frame 5
onClipEvent (enterFrame) {
_root.itemFunc(this, 2);
}
Instance of Symbol 260 MovieClip "1weapon2" in Frame 5
onClipEvent (enterFrame) {
_root.itemFunc(this, 3);
}
Instance of Symbol 260 MovieClip "3weapon2" in Frame 5
onClipEvent (enterFrame) {
_root.itemFunc(this, 3);
}
Instance of Symbol 260 MovieClip "3weapon1" in Frame 5
onClipEvent (enterFrame) {
_root.itemFunc(this, 2);
}
Instance of Symbol 260 MovieClip "4weapon2" in Frame 5
onClipEvent (enterFrame) {
_root.itemFunc(this, 2);
}
Instance of Symbol 260 MovieClip "4weapon1" in Frame 5
onClipEvent (enterFrame) {
_root.itemFunc(this, 3);
}
Instance of Symbol 260 MovieClip "2weapon2" in Frame 5
onClipEvent (enterFrame) {
_root.itemFunc(this, 3);
}
Instance of Symbol 260 MovieClip "2weapon1" in Frame 5
onClipEvent (enterFrame) {
_root.itemFunc(this, 2);
}
Instance of Symbol 260 MovieClip "weapon" in Frame 5
onClipEvent (enterFrame) {
_root.itemFunc(this, 5);
}
Frame 6
stop();
if (_root.vol > -10) {
} else {
_root.vol = 100;
}
_quality = "low";
_quality = qual;
if (key11 > 0) {
} else {
key11 = 38;
key12 = 40;
key13 = 37;
key14 = 39;
key15 = 32;
key16 = 16;
key17 = 191;
}
if (key21 > 0) {
} else {
key21 = 87;
key22 = 83;
key23 = 65;
key24 = 68;
key25 = 70;
key26 = 71;
key27 = 69;
}
if (key31 > 0) {
} else {
key31 = 104;
key32 = 101;
key33 = 100;
key34 = 102;
key35 = 107;
key36 = 109;
key37 = 96;
}
music.stop();
sections = 4;
stageheight = 600;
stagewidth = 800;
totalguns = 7;
utilities = 1;
totaldeadtime = 100;
points = 2;
playerlevel = 1;
totalweps = 3;
losttime = 99999 /* 0x01869F */;
o = 1;
while (o <= teams) {
i = 0;
while (i <= 4) {
if (_root["team" + o][i] == 2) {
_root.attachMovie("guy", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].up = key11;
_root["player" + playerlevel].down = key12;
_root["player" + playerlevel].left = key13;
_root["player" + playerlevel].right = key14;
_root["player" + playerlevel].jumpkey = key15;
_root["player" + playerlevel].fire = key16;
_root["player" + playerlevel].changew = key17;
_root["player" + playerlevel].pname = name1;
_root["player" + playerlevel].alive = 1;
playerlevel++;
} else if (_root["team" + o][i] == 3) {
_root.attachMovie("guy", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].up = key21;
_root["player" + playerlevel].down = key22;
_root["player" + playerlevel].left = key23;
_root["player" + playerlevel].right = key24;
_root["player" + playerlevel].jumpkey = key25;
_root["player" + playerlevel].fire = key26;
_root["player" + playerlevel].changew = key27;
_root["player" + playerlevel].pname = name2;
_root["player" + playerlevel].alive = 1;
playerlevel++;
} else if (_root["team" + o][i] == 4) {
_root.attachMovie("guy", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].up = key31;
_root["player" + playerlevel].down = key32;
_root["player" + playerlevel].left = key33;
_root["player" + playerlevel].right = key34;
_root["player" + playerlevel].jumpkey = key35;
_root["player" + playerlevel].fire = key36;
_root["player" + playerlevel].changew = key37;
_root["player" + playerlevel].pname = name3;
_root["player" + playerlevel].alive = 1;
playerlevel++;
} else if (_root["team" + o][i] == 1) {
_root.attachMovie("com", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].playername = "Com" + playerlevel;
playerlevel++;
}
i++;
}
o++;
}
bulllevel = (computers + players) + 1;
if (gamemode == 1) {
lives = score;
i = 1;
while (i <= (players + computers)) {
attachMovie("score", "score" + i, bulllevel);
_root["score" + i]._y = 590;
_root["score" + i]._x = 100 + (_root["score" + i]._width * (i - 1));
bulllevel++;
if (_root["player" + i].team == 1) {
_root["score" + i].textbox.textColor = 10027008 /* 0x990000 */;
} else if (_root["player" + i].team == 2) {
_root["score" + i].textbox.textColor = 197524 /* 0x030394 */;
} else if (_root["player" + i].team == 3) {
_root["score" + i].textbox.textColor = 4622861 /* 0x468A0D */;
} else if (_root["player" + i].team == 4) {
_root["score" + i].textbox.textColor = 14542610 /* 0xDDE712 */;
}
i++;
}
} else if (gamemode == 2) {
lives = 999;
maxkills = score;
i = 1;
while (i <= (players + computers)) {
attachMovie("score", "score" + i, bulllevel);
_root["score" + i]._y = 590;
_root["score" + i]._x = 100 + (_root["score" + i]._width * (i - 1));
bulllevel++;
if (i == 1) {
_root["score" + i].textbox.textColor = 10027008 /* 0x990000 */;
} else if (i == 2) {
_root["score" + i].textbox.textColor = 197524 /* 0x030394 */;
} else if (i == 3) {
_root["score" + i].textbox.textColor = 4622861 /* 0x468A0D */;
} else if (i == 4) {
_root["score" + i].textbox.textColor = 14542610 /* 0xDDE712 */;
}
i++;
}
} else if (gamemode == 3) {
lives = 999;
captures = score;
captures1 = 0;
captures2 = 0;
attachMovie("score", "score1", bulllevel);
score1.textbox.textColor = 10027008 /* 0x990000 */;
score1._y = 590;
score1._x = (stagewidth / 2) - score1._width;
bulllevel++;
attachMovie("score", "score2", bulllevel);
score2.textbox.textColor = 197524 /* 0x030394 */;
score2._y = 590;
score2._x = (stagewidth / 2) + score2._width;
bulllevel++;
} else if (gamemode == 4) {
lives = 999;
maxkills = score;
team1kills = 0;
team2kills = 0;
team3kills = 0;
team4kills = 0;
i = 1;
while (i <= teams) {
attachMovie("score", "score" + i, bulllevel);
_root["score" + i]._y = 590;
_root["score" + i]._x = 100 + (_root["score" + i]._width * (i - 1));
bulllevel++;
if (i == 1) {
_root["score" + i].textbox.textColor = 10027008 /* 0x990000 */;
} else if (i == 2) {
_root["score" + i].textbox.textColor = 197524 /* 0x030394 */;
} else if (i == 3) {
_root["score" + i].textbox.textColor = 4622861 /* 0x468A0D */;
} else if (i == 4) {
_root["score" + i].textbox.textColor = 14542610 /* 0xDDE712 */;
}
i++;
}
}
onEnterFrame = function () {
if (gamemode == 1) {
i = 1;
while (i <= (players + computers)) {
_root["score" + i].textbox.text = (_root["player" + i].playername + ": ") + _root["player" + i].lives;
i++;
}
} else if (gamemode == 2) {
i = 1;
while (i <= (players + computers)) {
_root["score" + i].textbox.text = (_root["player" + i].playername + ": ") + _root["player" + i].kills;
i++;
}
} else if (gamemode == 3) {
score1.textbox.text = "Red Team: " + captures1;
score2.textbox.text = "Blue Team: " + captures2;
if (captures1 == captures) {
winner = "Red Team";
gotoAndStop ("finished");
} else if (captures2 == captures) {
winner = "Blue Team";
gotoAndStop ("finished");
}
} else if (gamemode == 4) {
i = 1;
while (i <= teams) {
_root["score" + i].textbox.text = (("Team" + i) + ": ") + _root[("team" + i) + "kills"];
i++;
}
}
};
Instance of Symbol 282 MovieClip "flag1" in Frame 6
onClipEvent (enterFrame) {
_root.flagFunc(this, 1);
}
Instance of Symbol 282 MovieClip "flag2" in Frame 6
onClipEvent (enterFrame) {
_root.flagFunc(this, 2);
}
Instance of Symbol 260 MovieClip "1weapon3" in Frame 6
onClipEvent (enterFrame) {
_root.itemFunc(this, 4);
}
Instance of Symbol 260 MovieClip "weapon7" in Frame 6
onClipEvent (enterFrame) {
_root.itemFunc(this, 6);
}
Instance of Symbol 260 MovieClip "weapon8" in Frame 6
onClipEvent (enterFrame) {
_root.itemFunc(this, 7);
}
Instance of Symbol 260 MovieClip "weapon9" in Frame 6
onClipEvent (enterFrame) {
_root.itemFunc(this, 7);
}
Instance of Symbol 260 MovieClip "2weapon3" in Frame 6
onClipEvent (enterFrame) {
_root.itemFunc(this, 4);
}
Frame 7
stop();
if (_root.vol > -10) {
} else {
_root.vol = 100;
}
_quality = "low";
_quality = qual;
if (key11 > 0) {
} else {
key11 = 38;
key12 = 40;
key13 = 37;
key14 = 39;
key15 = 32;
key16 = 16;
key17 = 191;
}
if (key21 > 0) {
} else {
key21 = 87;
key22 = 83;
key23 = 65;
key24 = 68;
key25 = 70;
key26 = 71;
key27 = 69;
}
if (key31 > 0) {
} else {
key31 = 104;
key32 = 101;
key33 = 100;
key34 = 102;
key35 = 107;
key36 = 109;
key37 = 96;
}
music.stop();
sections = 8;
stageheight = 600;
stagewidth = 800;
totalguns = 7;
utilities = 1;
totaldeadtime = 100;
points = 6;
playerlevel = 1;
totalweps = 3;
losttime = 1000;
i = 0;
while (i <= 4) {
if (_root["team" + i][0] > 0) {
_root["flag" + i].flag.gotoAndStop("flag" + i);
} else {
_root["flag" + i].flag.gotoAndStop("blank");
}
i++;
}
o = 1;
while (o <= teams) {
i = 0;
while (i <= 4) {
if (_root["team" + o][i] == 2) {
_root.attachMovie("guy", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].up = key11;
_root["player" + playerlevel].down = key12;
_root["player" + playerlevel].left = key13;
_root["player" + playerlevel].right = key14;
_root["player" + playerlevel].jumpkey = key15;
_root["player" + playerlevel].fire = key16;
_root["player" + playerlevel].changew = key17;
_root["player" + playerlevel].pname = name1;
_root["player" + playerlevel].alive = 1;
playerlevel++;
} else if (_root["team" + o][i] == 3) {
_root.attachMovie("guy", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].up = key21;
_root["player" + playerlevel].down = key22;
_root["player" + playerlevel].left = key23;
_root["player" + playerlevel].right = key24;
_root["player" + playerlevel].jumpkey = key25;
_root["player" + playerlevel].fire = key26;
_root["player" + playerlevel].changew = key27;
_root["player" + playerlevel].pname = name2;
_root["player" + playerlevel].alive = 1;
playerlevel++;
} else if (_root["team" + o][i] == 4) {
_root.attachMovie("guy", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].up = key31;
_root["player" + playerlevel].down = key32;
_root["player" + playerlevel].left = key33;
_root["player" + playerlevel].right = key34;
_root["player" + playerlevel].jumpkey = key35;
_root["player" + playerlevel].fire = key36;
_root["player" + playerlevel].changew = key37;
_root["player" + playerlevel].pname = name3;
_root["player" + playerlevel].alive = 1;
playerlevel++;
} else if (_root["team" + o][i] == 1) {
_root.attachMovie("com", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].playername = "Com" + playerlevel;
playerlevel++;
}
i++;
}
o++;
}
bulllevel = (computers + players) + 1;
if (gamemode == 1) {
lives = score;
i = 1;
while (i <= (players + computers)) {
attachMovie("score", "score" + i, bulllevel);
_root["score" + i]._y = 590;
_root["score" + i]._x = 100 + (_root["score" + i]._width * (i - 1));
bulllevel++;
if (_root["player" + i].team == 1) {
_root["score" + i].textbox.textColor = 10027008 /* 0x990000 */;
} else if (_root["player" + i].team == 2) {
_root["score" + i].textbox.textColor = 197524 /* 0x030394 */;
} else if (_root["player" + i].team == 3) {
_root["score" + i].textbox.textColor = 4622861 /* 0x468A0D */;
} else if (_root["player" + i].team == 4) {
_root["score" + i].textbox.textColor = 14542610 /* 0xDDE712 */;
}
i++;
}
} else if (gamemode == 2) {
lives = 999;
maxkills = score;
i = 1;
while (i <= (players + computers)) {
attachMovie("score", "score" + i, bulllevel);
_root["score" + i]._y = 590;
_root["score" + i]._x = 100 + (_root["score" + i]._width * (i - 1));
bulllevel++;
if (_root["player" + i].team == 1) {
_root["score" + i].textbox.textColor = 10027008 /* 0x990000 */;
} else if (_root["player" + i].team == 2) {
_root["score" + i].textbox.textColor = 197524 /* 0x030394 */;
} else if (_root["player" + i].team == 3) {
_root["score" + i].textbox.textColor = 4622861 /* 0x468A0D */;
} else if (_root["player" + i].team == 4) {
_root["score" + i].textbox.textColor = 14542610 /* 0xDDE712 */;
}
i++;
}
} else if (gamemode == 3) {
lives = 999;
captures = score;
captures1 = 0;
captures2 = 0;
attachMovie("score", "score1", bulllevel);
score1.textbox.textColor = 10027008 /* 0x990000 */;
score1._y = 590;
score1._x = (stagewidth / 2) - score1._width;
bulllevel++;
attachMovie("score", "score2", bulllevel);
score2.textbox.textColor = 197524 /* 0x030394 */;
score2._y = 590;
score2._x = (stagewidth / 2) + score2._width;
bulllevel++;
} else if (gamemode == 4) {
lives = 999;
maxkills = score;
team1kills = 0;
team2kills = 0;
team3kills = 0;
team4kills = 0;
i = 1;
while (i <= teams) {
attachMovie("score", "score" + i, bulllevel);
_root["score" + i]._y = 590;
_root["score" + i]._x = 100 + (_root["score" + i]._width * (i - 1));
bulllevel++;
if (i == 1) {
_root["score" + i].textbox.textColor = 10027008 /* 0x990000 */;
if (_root["team" + i][0] == 0) {
_root["score" + i]._visible = 0;
}
} else if (i == 2) {
_root["score" + i].textbox.textColor = 197524 /* 0x030394 */;
if (_root["team" + i][0] == 0) {
_root["score" + i]._visible = 0;
}
} else if (i == 3) {
_root["score" + i].textbox.textColor = 4622861 /* 0x468A0D */;
if (_root["team" + i][0] == 0) {
_root["score" + i]._visible = 0;
}
} else if (i == 4) {
_root["score" + i].textbox.textColor = 14542610 /* 0xDDE712 */;
if (_root["team" + i][0] == 0) {
_root["score" + i]._visible = 0;
}
}
i++;
}
}
onEnterFrame = function () {
if (gamemode == 1) {
i = 1;
while (i <= (players + computers)) {
_root["score" + i].textbox.text = (_root["player" + i].playername + ": ") + _root["player" + i].lives;
j = 1;
while (j <= ((players + computers) + 1)) {
if (j > (players + computers)) {
gotoAndStop ("finished");
}
if (_root["player" + j].lives > 0) {
if (i == j) {
} else {
break;
}
}
j++;
}
i++;
}
} else if (gamemode == 2) {
i = 1;
while (i <= (players + computers)) {
_root["score" + i].textbox.text = (_root["player" + i].playername + ": ") + _root["player" + i].kills;
if (_root["player" + i].kills == maxkills) {
winner = _root["player" + i].playername;
gotoAndStop ("finished");
}
i++;
}
} else if (gamemode == 3) {
score1.textbox.text = "Red Team: " + captures1;
score2.textbox.text = "Blue Team: " + captures2;
if (captures1 > captures) {
winner = "Red Team";
gotoAndStop ("finished");
} else if (captures2 > captures) {
winner = "Blue Team";
gotoAndStop ("finished");
}
} else if (gamemode == 4) {
i = 1;
while (i <= teams) {
_root["score" + i].textbox.text = (("Team" + i) + ": ") + _root[("team" + i) + "kills"];
if (_root[("team" + i) + "kills"] == maxkills) {
winner = "Team " + i;
gotoAndStop ("finished");
}
i++;
}
}
};
Instance of Symbol 260 MovieClip "weapon12" in Frame 7
onClipEvent (enterFrame) {
_root.itemFunc(this, 5);
timer = 0;
}
Instance of Symbol 260 MovieClip "2weapon1" in Frame 7
onClipEvent (enterFrame) {
_root.itemFunc(this, 2);
}
Instance of Symbol 260 MovieClip "2weapon2" in Frame 7
onClipEvent (enterFrame) {
_root.itemFunc(this, 3);
}
Instance of Symbol 260 MovieClip "3weapon1" in Frame 7
onClipEvent (enterFrame) {
_root.itemFunc(this, 3);
}
Instance of Symbol 260 MovieClip "3weapon2" in Frame 7
onClipEvent (enterFrame) {
_root.itemFunc(this, 2);
}
Instance of Symbol 260 MovieClip "3weapon3" in Frame 7
onClipEvent (enterFrame) {
_root.itemFunc(this, 4);
}
Instance of Symbol 260 MovieClip "4weapon1" in Frame 7
onClipEvent (enterFrame) {
_root.itemFunc(this, 2);
}
Instance of Symbol 260 MovieClip "4weapon2" in Frame 7
onClipEvent (enterFrame) {
_root.itemFunc(this, 3);
}
Instance of Symbol 260 MovieClip "4weapon3" in Frame 7
onClipEvent (enterFrame) {
_root.itemFunc(this, 4);
}
Instance of Symbol 260 MovieClip "weapon10" in Frame 7
onClipEvent (enterFrame) {
_root.itemFunc(this, 7);
}
Instance of Symbol 260 MovieClip "weapon11" in Frame 7
onClipEvent (enterFrame) {
_root.itemFunc(this, 6);
timer = 0;
}
Frame 8
stop();
if (_root.vol > -10) {
} else {
_root.vol = 100;
}
_quality = "low";
_quality = qual;
if (key11 > 0) {
} else {
key11 = 38;
key12 = 40;
key13 = 37;
key14 = 39;
key15 = 32;
key16 = 16;
key17 = 191;
}
if (key21 > 0) {
} else {
key21 = 87;
key22 = 83;
key23 = 65;
key24 = 68;
key25 = 70;
key26 = 71;
key27 = 69;
}
if (key31 > 0) {
} else {
key31 = 104;
key32 = 101;
key33 = 100;
key34 = 102;
key35 = 107;
key36 = 109;
key37 = 96;
}
music.stop();
sections = 3;
stageheight = 600;
stagewidth = 800;
totalguns = 7;
utilities = 1;
totaldeadtime = 100;
points = 3;
playerlevel = 1;
totalweps = 3;
losttime = 1000;
o = 1;
while (o <= teams) {
i = 0;
while (i <= 4) {
if (_root["team" + o][i] == 2) {
_root.attachMovie("guy", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].up = key11;
_root["player" + playerlevel].down = key12;
_root["player" + playerlevel].left = key13;
_root["player" + playerlevel].right = key14;
_root["player" + playerlevel].jumpkey = key15;
_root["player" + playerlevel].fire = key16;
_root["player" + playerlevel].changew = key17;
_root["player" + playerlevel].pname = name1;
_root["player" + playerlevel].alive = 1;
playerlevel++;
} else if (_root["team" + o][i] == 3) {
_root.attachMovie("guy", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].up = key21;
_root["player" + playerlevel].down = key22;
_root["player" + playerlevel].left = key23;
_root["player" + playerlevel].right = key24;
_root["player" + playerlevel].jumpkey = key25;
_root["player" + playerlevel].fire = key26;
_root["player" + playerlevel].changew = key27;
_root["player" + playerlevel].pname = name2;
_root["player" + playerlevel].alive = 1;
playerlevel++;
} else if (_root["team" + o][i] == 4) {
_root.attachMovie("guy", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].up = key31;
_root["player" + playerlevel].down = key32;
_root["player" + playerlevel].left = key33;
_root["player" + playerlevel].right = key34;
_root["player" + playerlevel].jumpkey = key35;
_root["player" + playerlevel].fire = key36;
_root["player" + playerlevel].changew = key37;
_root["player" + playerlevel].pname = name3;
_root["player" + playerlevel].alive = 1;
playerlevel++;
} else if (_root["team" + o][i] == 1) {
_root.attachMovie("com", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].playername = "Com" + playerlevel;
playerlevel++;
}
i++;
}
o++;
}
bulllevel = (computers + players) + 1;
if (gamemode == 1) {
lives = score;
i = 1;
while (i <= (players + computers)) {
attachMovie("score", "score" + i, bulllevel);
_root["score" + i]._y = 590;
_root["score" + i]._x = 100 + (_root["score" + i]._width * (i - 1));
bulllevel++;
if (_root["player" + i].team == 1) {
_root["score" + i].textbox.textColor = 10027008 /* 0x990000 */;
} else if (_root["player" + i].team == 2) {
_root["score" + i].textbox.textColor = 197524 /* 0x030394 */;
} else if (_root["player" + i].team == 3) {
_root["score" + i].textbox.textColor = 4622861 /* 0x468A0D */;
} else if (_root["player" + i].team == 4) {
_root["score" + i].textbox.textColor = 14542610 /* 0xDDE712 */;
}
i++;
}
} else if (gamemode == 2) {
lives = 999;
maxkills = score;
i = 1;
while (i <= (players + computers)) {
attachMovie("score", "score" + i, bulllevel);
_root["score" + i]._y = 590;
_root["score" + i]._x = 100 + (_root["score" + i]._width * (i - 1));
bulllevel++;
if (_root["player" + i].team == 1) {
_root["score" + i].textbox.textColor = 10027008 /* 0x990000 */;
} else if (_root["player" + i].team == 2) {
_root["score" + i].textbox.textColor = 197524 /* 0x030394 */;
} else if (_root["player" + i].team == 3) {
_root["score" + i].textbox.textColor = 4622861 /* 0x468A0D */;
} else if (_root["player" + i].team == 4) {
_root["score" + i].textbox.textColor = 14542610 /* 0xDDE712 */;
}
i++;
}
} else if (gamemode == 3) {
lives = 999;
captures = score;
captures1 = 0;
captures2 = 0;
attachMovie("score", "score1", bulllevel);
score1.textbox.textColor = 10027008 /* 0x990000 */;
score1._y = 590;
score1._x = (stagewidth / 2) - score1._width;
bulllevel++;
attachMovie("score", "score2", bulllevel);
score2.textbox.textColor = 197524 /* 0x030394 */;
score2._y = 590;
score2._x = (stagewidth / 2) + score2._width;
bulllevel++;
} else if (gamemode == 4) {
lives = 999;
maxkills = score;
team1kills = 0;
team2kills = 0;
team3kills = 0;
team4kills = 0;
i = 1;
while (i <= teams) {
attachMovie("score", "score" + i, bulllevel);
_root["score" + i]._y = 590;
_root["score" + i]._x = 100 + (_root["score" + i]._width * (i - 1));
bulllevel++;
if (i == 1) {
_root["score" + i].textbox.textColor = 10027008 /* 0x990000 */;
if (_root["team" + i][0] == 0) {
_root["score" + i]._visible = 0;
}
} else if (i == 2) {
_root["score" + i].textbox.textColor = 197524 /* 0x030394 */;
if (_root["team" + i][0] == 0) {
_root["score" + i]._visible = 0;
}
} else if (i == 3) {
_root["score" + i].textbox.textColor = 4622861 /* 0x468A0D */;
if (_root["team" + i][0] == 0) {
_root["score" + i]._visible = 0;
}
} else if (i == 4) {
_root["score" + i].textbox.textColor = 14542610 /* 0xDDE712 */;
if (_root["team" + i][0] == 0) {
_root["score" + i]._visible = 0;
}
}
i++;
}
}
onEnterFrame = function () {
if (gamemode == 1) {
i = 1;
while (i <= (players + computers)) {
_root["score" + i].textbox.text = (_root["player" + i].playername + ": ") + _root["player" + i].lives;
j = 1;
while (j <= ((players + computers) + 1)) {
if (j > (players + computers)) {
gotoAndStop ("finished");
}
if (_root["player" + j].lives > 0) {
if (i == j) {
} else {
break;
}
}
j++;
}
i++;
}
} else if (gamemode == 2) {
i = 1;
while (i <= (players + computers)) {
_root["score" + i].textbox.text = (_root["player" + i].playername + ": ") + _root["player" + i].kills;
if (_root["player" + i].kills == maxkills) {
winner = _root["player" + i].playername;
gotoAndStop ("finished");
}
i++;
}
} else if (gamemode == 3) {
score1.textbox.text = "Red Team: " + captures1;
score2.textbox.text = "Blue Team: " + captures2;
if (captures1 > captures) {
winner = "Red Team";
gotoAndStop ("finished");
} else if (captures2 > captures) {
winner = "Blue Team";
gotoAndStop ("finished");
}
} else if (gamemode == 4) {
i = 1;
while (i <= teams) {
_root["score" + i].textbox.text = (("Team" + i) + ": ") + _root[("team" + i) + "kills"];
if (_root[("team" + i) + "kills"] == maxkills) {
winner = "Team " + i;
gotoAndStop ("finished");
}
i++;
}
}
};
Instance of Symbol 282 MovieClip "flag2" in Frame 8
onClipEvent (enterFrame) {
_root.flagFunc(this, 2);
}
Instance of Symbol 282 MovieClip "flag1" in Frame 8
onClipEvent (enterFrame) {
_root.flagFunc(this, 1);
}
Instance of Symbol 260 MovieClip "weapon7" in Frame 8
onClipEvent (enterFrame) {
_root.itemFunc(this, 5);
timer = 0;
}
Instance of Symbol 260 MovieClip "weapon8" in Frame 8
onClipEvent (enterFrame) {
_root.itemFunc(this, 6);
timer = 0;
}
Instance of Symbol 260 MovieClip "2weapon1" in Frame 8
onClipEvent (enterFrame) {
_root.itemFunc(this, 2);
}
Instance of Symbol 260 MovieClip "2weapon2" in Frame 8
onClipEvent (enterFrame) {
_root.itemFunc(this, 3);
}
Instance of Symbol 260 MovieClip "2weapon3" in Frame 8
onClipEvent (enterFrame) {
_root.itemFunc(this, 4);
}
Instance of Symbol 260 MovieClip "1weapon1" in Frame 8
onClipEvent (enterFrame) {
_root.itemFunc(this, 2);
}
Instance of Symbol 260 MovieClip "1weapon2" in Frame 8
onClipEvent (enterFrame) {
_root.itemFunc(this, 3);
}
Instance of Symbol 260 MovieClip "1weapon3" in Frame 8
onClipEvent (enterFrame) {
_root.itemFunc(this, 4);
}
Frame 9
stop();
if (_root.vol > -10) {
} else {
_root.vol = 100;
}
_quality = "low";
_quality = qual;
if (key11 > 0) {
} else {
key11 = 38;
key12 = 40;
key13 = 37;
key14 = 39;
key15 = 32;
key16 = 16;
key17 = 191;
}
if (key21 > 0) {
} else {
key21 = 87;
key22 = 83;
key23 = 65;
key24 = 68;
key25 = 70;
key26 = 71;
key27 = 69;
}
if (key31 > 0) {
} else {
key31 = 104;
key32 = 101;
key33 = 100;
key34 = 102;
key35 = 107;
key36 = 109;
key37 = 96;
}
music.stop();
sections = 8;
stageheight = 600;
stagewidth = 800;
totalguns = 7;
utilities = 1;
totaldeadtime = 100;
points = 2;
playerlevel = 1;
totalweps = 3;
losttime = 500;
i = 0;
while (i <= 4) {
if (_root["team" + i][0] > 0) {
_root["flag" + i].flag.gotoAndStop("flag" + i);
} else {
_root["flag" + i].flag.gotoAndStop("blank");
}
i++;
}
o = 1;
while (o <= teams) {
i = 0;
while (i <= 4) {
if (_root["team" + o][i] == 2) {
_root.attachMovie("guy", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].up = key11;
_root["player" + playerlevel].down = key12;
_root["player" + playerlevel].left = key13;
_root["player" + playerlevel].right = key14;
_root["player" + playerlevel].jumpkey = key15;
_root["player" + playerlevel].fire = key16;
_root["player" + playerlevel].changew = key17;
_root["player" + playerlevel].pname = name1;
_root["player" + playerlevel].alive = 1;
playerlevel++;
} else if (_root["team" + o][i] == 3) {
_root.attachMovie("guy", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].up = key21;
_root["player" + playerlevel].down = key22;
_root["player" + playerlevel].left = key23;
_root["player" + playerlevel].right = key24;
_root["player" + playerlevel].jumpkey = key25;
_root["player" + playerlevel].fire = key26;
_root["player" + playerlevel].changew = key27;
_root["player" + playerlevel].pname = name2;
_root["player" + playerlevel].alive = 1;
playerlevel++;
} else if (_root["team" + o][i] == 4) {
_root.attachMovie("guy", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].up = key31;
_root["player" + playerlevel].down = key32;
_root["player" + playerlevel].left = key33;
_root["player" + playerlevel].right = key34;
_root["player" + playerlevel].jumpkey = key35;
_root["player" + playerlevel].fire = key36;
_root["player" + playerlevel].changew = key37;
_root["player" + playerlevel].pname = name3;
_root["player" + playerlevel].alive = 1;
playerlevel++;
} else if (_root["team" + o][i] == 1) {
_root.attachMovie("com", "player" + playerlevel, playerlevel);
_root["player" + playerlevel].team = o;
_root["player" + playerlevel]._y = _root["flag" + o]._y - 20;
_root["player" + playerlevel]._x = (-30 + _root["flag" + o]._x) + (10 * i);
_root["player" + playerlevel].playername = "Com" + playerlevel;
playerlevel++;
}
i++;
}
o++;
}
bulllevel = (computers + players) + 1;
if (gamemode == 1) {
lives = score;
i = 1;
while (i <= (players + computers)) {
attachMovie("score", "score" + i, bulllevel);
_root["score" + i]._y = 590;
_root["score" + i]._x = 100 + (_root["score" + i]._width * (i - 1));
bulllevel++;
if (_root["player" + i].team == 1) {
_root["score" + i].textbox.textColor = 10027008 /* 0x990000 */;
} else if (_root["player" + i].team == 2) {
_root["score" + i].textbox.textColor = 197524 /* 0x030394 */;
} else if (_root["player" + i].team == 3) {
_root["score" + i].textbox.textColor = 4622861 /* 0x468A0D */;
} else if (_root["player" + i].team == 4) {
_root["score" + i].textbox.textColor = 14542610 /* 0xDDE712 */;
}
i++;
}
} else if (gamemode == 2) {
lives = 999;
maxkills = score;
i = 1;
while (i <= (players + computers)) {
attachMovie("score", "score" + i, bulllevel);
_root["score" + i]._y = 590;
_root["score" + i]._x = 100 + (_root["score" + i]._width * (i - 1));
bulllevel++;
if (_root["player" + i].team == 1) {
_root["score" + i].textbox.textColor = 10027008 /* 0x990000 */;
} else if (_root["player" + i].team == 2) {
_root["score" + i].textbox.textColor = 197524 /* 0x030394 */;
} else if (_root["player" + i].team == 3) {
_root["score" + i].textbox.textColor = 4622861 /* 0x468A0D */;
} else if (_root["player" + i].team == 4) {
_root["score" + i].textbox.textColor = 14542610 /* 0xDDE712 */;
}
i++;
}
} else if (gamemode == 3) {
lives = 999;
captures = score;
captures1 = 0;
captures2 = 0;
attachMovie("score", "score1", bulllevel);
score1.textbox.textColor = 10027008 /* 0x990000 */;
score1._y = 590;
score1._x = (stagewidth / 2) - score1._width;
bulllevel++;
attachMovie("score", "score2", bulllevel);
score2.textbox.textColor = 197524 /* 0x030394 */;
score2._y = 590;
score2._x = (stagewidth / 2) + score2._width;
bulllevel++;
} else if (gamemode == 4) {
lives = 999;
maxkills = score;
team1kills = 0;
team2kills = 0;
team3kills = 0;
team4kills = 0;
i = 1;
while (i <= teams) {
attachMovie("score", "score" + i, bulllevel);
_root["score" + i]._y = 590;
_root["score" + i]._x = 100 + (_root["score" + i]._width * (i - 1));
bulllevel++;
if (i == 1) {
_root["score" + i].textbox.textColor = 10027008 /* 0x990000 */;
if (_root["team" + i][0] == 0) {
_root["score" + i]._visible = 0;
}
} else if (i == 2) {
_root["score" + i].textbox.textColor = 197524 /* 0x030394 */;
if (_root["team" + i][0] == 0) {
_root["score" + i]._visible = 0;
}
} else if (i == 3) {
_root["score" + i].textbox.textColor = 4622861 /* 0x468A0D */;
if (_root["team" + i][0] == 0) {
_root["score" + i]._visible = 0;
}
} else if (i == 4) {
_root["score" + i].textbox.textColor = 14542610 /* 0xDDE712 */;
if (_root["team" + i][0] == 0) {
_root["score" + i]._visible = 0;
}
}
i++;
}
}
onEnterFrame = function () {
if (gamemode == 1) {
i = 1;
while (i <= (players + computers)) {
_root["score" + i].textbox.text = (_root["player" + i].playername + ": ") + _root["player" + i].lives;
j = 1;
while (j <= ((players + computers) + 1)) {
if (j > (players + computers)) {
gotoAndStop ("finished");
}
if (_root["player" + j].lives > 0) {
if (i == j) {
} else {
break;
}
}
j++;
}
i++;
}
} else if (gamemode == 2) {
i = 1;
while (i <= (players + computers)) {
_root["score" + i].textbox.text = (_root["player" + i].playername + ": ") + _root["player" + i].kills;
if (_root["player" + i].kills == maxkills) {
winner = _root["player" + i].playername;
gotoAndStop ("finished");
}
i++;
}
} else if (gamemode == 3) {
score1.textbox.text = "Red Team: " + captures1;
score2.textbox.text = "Blue Team: " + captures2;
if (captures1 > captures) {
winner = "Red Team";
gotoAndStop ("finished");
} else if (captures2 > captures) {
winner = "Blue Team";
gotoAndStop ("finished");
}
} else if (gamemode == 4) {
i = 1;
while (i <= teams) {
_root["score" + i].textbox.text = (("Team" + i) + ": ") + _root[("team" + i) + "kills"];
if (_root[("team" + i) + "kills"] == maxkills) {
winner = "Team " + i;
gotoAndStop ("finished");
}
i++;
}
}
};
Instance of Symbol 260 MovieClip "1weapon1" in Frame 9
onClipEvent (enterFrame) {
_root.itemFunc(this, 2);
}
Instance of Symbol 260 MovieClip "1weapon2" in Frame 9
onClipEvent (enterFrame) {
_root.itemFunc(this, 3);
}
Instance of Symbol 260 MovieClip "1weapon3" in Frame 9
onClipEvent (enterFrame) {
_root.itemFunc(this, 4);
}
Instance of Symbol 260 MovieClip "3weapon1" in Frame 9
onClipEvent (enterFrame) {
_root.itemFunc(this, 2);
}
Instance of Symbol 260 MovieClip "3weapon2" in Frame 9
onClipEvent (enterFrame) {
_root.itemFunc(this, 3);
}
Instance of Symbol 260 MovieClip "3weapon3" in Frame 9
onClipEvent (enterFrame) {
_root.itemFunc(this, 4);
}
Instance of Symbol 260 MovieClip "4weapon1" in Frame 9
onClipEvent (enterFrame) {
_root.itemFunc(this, 2);
}
Instance of Symbol 260 MovieClip "4weapon2" in Frame 9
onClipEvent (enterFrame) {
_root.itemFunc(this, 3);
}
Instance of Symbol 260 MovieClip "4weapon3" in Frame 9
onClipEvent (enterFrame) {
_root.itemFunc(this, 4);
}
Instance of Symbol 260 MovieClip "weapon10" in Frame 9
onClipEvent (enterFrame) {
_root.itemFunc(this, 6);
}
Instance of Symbol 260 MovieClip "weapon11" in Frame 9
onClipEvent (enterFrame) {
_root.itemFunc(this, 5);
}
Instance of Symbol 260 MovieClip "weapon12" in Frame 9
onClipEvent (enterFrame) {
_root.itemFunc(this, 7);
}
Instance of Symbol 260 MovieClip "weapon13" in Frame 9
onClipEvent (enterFrame) {
_root.itemFunc(this, 7);
}
Frame 10
stop();
_quality = "high";
music.start(0, 999);
Instance of Symbol 305 MovieClip in Frame 10
onClipEvent (mouseDown) {
this.gotoAndStop(2);
}
Instance of Symbol 251 MovieClip "mouse" in Frame 10
onClipEvent (enterFrame) {
Mouse.hide();
startDrag (this, true);
}
Symbol 18 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 17
gotoAndPlay (1);
Symbol 61 MovieClip [com] Frame 1
stop();
Instance of Symbol 59 MovieClip "cross" in Symbol 61 MovieClip [com] Frame 1
onClipEvent (load) {
_parent.aimrot = _parent.aimrot - _parent.aimrot;
}
Instance of Symbol 60 MovieClip in Symbol 61 MovieClip [com] Frame 1
onClipEvent (load) {
_parent.alive = 1;
}
onClipEvent (enterFrame) {
_root.comFunc(_parent);
}
Symbol 61 MovieClip [com] Frame 2
stop();
Instance of Symbol 59 MovieClip "cross" in Symbol 61 MovieClip [com] Frame 2
onClipEvent (load) {
_parent.aimrot = _parent.aimrot - _parent.aimrot;
}
Instance of Symbol 60 MovieClip in Symbol 61 MovieClip [com] Frame 2
onClipEvent (enterFrame) {
_root.comFunc(_parent);
}
Symbol 62 MovieClip [guy] Frame 1
stop();
onEnterFrame = function () {
_root.guyFunc(this, up, down, left, right, jumpkey, fire, changew, pname);
};
Instance of Symbol 59 MovieClip "cross" in Symbol 62 MovieClip [guy] Frame 1
onClipEvent (load) {
_parent.aimrot = _parent.aimrot - _parent.aimrot;
}
Symbol 62 MovieClip [guy] Frame 2
stop();
Instance of Symbol 59 MovieClip "cross" in Symbol 62 MovieClip [guy] Frame 2
onClipEvent (load) {
_parent.aimrot = _parent.aimrot - _parent.aimrot;
}
Instance of Symbol 60 MovieClip in Symbol 64 MovieClip [bullet] Frame 1
onClipEvent (enterFrame) {
_root.bullFunc(_parent);
}
Instance of Symbol 60 MovieClip in Symbol 74 MovieClip [pack] Frame 1
onClipEvent (enterFrame) {
_root.packFunc(_parent);
}
Symbol 86 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
_root.gotoAndStop(2);
}
Symbol 86 MovieClip Frame 2
gotoAndPlay (1);
Symbol 90 Button
on (release) {
gotoAndStop ("gamemenu");
}
on (rollOver) {
info.text = "Change game settings and level";
_root.switchw.start();
}
on (press) {
_root.pressb.start();
}
Symbol 91 Button
on (release) {
gotoAndStop ("charactermenu");
}
on (rollOver) {
info.text = "Setup players and teams";
_root.switchw.start();
}
on (press) {
_root.pressb.start();
}
Symbol 92 Button
on (release) {
if (info.text == "Begin the game") {
_root.gotoAndStop(2 + _root.level);
}
}
on (rollOver) {
info.text = "Begin the game";
_root.switchw.start();
}
on (press) {
i = _root.teams;
while (i >= 0) {
if (_root["team" + i][0] == 0) {
info.text = ("Cant start, Team" + i) + " has no players";
}
i--;
}
if (_root.gamemode == 1) {
i = _root.teams;
while (i >= 0) {
if (_root["team" + i][1] > 0) {
info.text = ("Cant start, Team" + i) + " has too many players";
}
i--;
}
}
if (_root.gamemode == 2) {
i = _root.teams;
while (i >= 0) {
if (_root["team" + i][1] > 0) {
info.text = ("Cant start, Team" + i) + " has too many players";
}
i--;
}
}
if (_root.gamemode == 3) {
if (_root.teams > 2) {
info.text = "Cant start, there are too many teams";
}
}
if (info.text == "Begin the game") {
_root.pressb.start();
} else {
_root.error.start(0.05);
}
}
Symbol 93 Button
on (release) {
gotoAndStop ("credits");
}
on (rollOver) {
info.text = "Find out about the makers of Total War";
_root.switchw.start();
}
on (press) {
_root.pressb.start();
}
Instance of Symbol 99 MovieClip in Symbol 118 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.gamemode = 3;
_root.level = 1;
}
Instance of Symbol 102 MovieClip in Symbol 118 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.level = 2;
_root.gamemode = 2;
}
Instance of Symbol 105 MovieClip in Symbol 118 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 3) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.level = 3;
_root.gamemode = 2;
}
Instance of Symbol 108 MovieClip in Symbol 118 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 4) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.level = 4;
_root.gamemode = 3;
}
Instance of Symbol 111 MovieClip in Symbol 118 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 5) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.level = 5;
_root.gamemode = 2;
}
Instance of Symbol 114 MovieClip in Symbol 118 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 6) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.level = 6;
_root.gamemode = 3;
}
Instance of Symbol 117 MovieClip in Symbol 118 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.level == 7) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
_root.level = 7;
_root.gamemode = 2;
}
Symbol 119 Button
on (release) {
gotoAndStop (1);
}
on (rollOver) {
info.text = "Back to Main Menu";
_root.switchw.start();
}
on (rollOut) {
info.text = "Game Setup";
}
on (dragOut) {
info.text = "Game Setup";
}
on (press) {
_root.pressb.start();
}
Instance of Symbol 123 MovieClip in Symbol 131 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamemode == 2) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
on (press) {
_root.gamemode = 2;
}
Instance of Symbol 126 MovieClip in Symbol 131 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamemode == 4) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
on (press) {
_root.gamemode = 4;
}
Instance of Symbol 129 MovieClip in Symbol 131 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamemode == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
on (press) {
_root.gamemode = 1;
}
Instance of Symbol 135 MovieClip in Symbol 137 MovieClip Frame 1
onClipEvent (load) {
startx = this._x;
drag = 0;
this._x = _root.rempos;
}
onClipEvent (enterFrame) {
_root.vol = Math.round(100 - ((startx - this._x) / 2));
_parent.volbox.text = _root.vol;
if (drag == 1) {
this._x = _parent._xmouse;
if (_parent._xmouse > startx) {
this._x = startx;
}
if (_parent._xmouse < (startx - 200)) {
this._x = startx - 200;
}
}
}
on (press) {
drag = 1;
}
onClipEvent (mouseUp) {
drag = 0;
_root.rempos = this._x;
}
Symbol 142 MovieClip Frame 1
_root.qual = "low";
stop();
Symbol 142 MovieClip Frame 2
_root.qual = "medium";
stop();
Symbol 142 MovieClip Frame 3
_root.qual = "high";
stop();
Symbol 150 Button
on (press) {
_root.score++;
}
Symbol 151 Button
on (press) {
_root.score--;
}
Symbol 157 MovieClip Frame 1
_root.score = 5;
Symbol 157 MovieClip Frame 2
_root.score = 10;
Symbol 157 MovieClip Frame 3
_root.score = 5;
Symbol 157 MovieClip Frame 4
_root.score = 20;
Instance of Symbol 157 MovieClip in Symbol 158 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gamemode);
}
Symbol 160 Button
on (release) {
gotoAndStop (1);
}
on (rollOver) {
info.text = "Back to Main Menu";
_root.switchw.start();
}
on (rollOut) {
info.text = "Character Setup";
}
on (dragOut) {
info.text = "Character Setup";
}
on (press) {
_root.pressb.start();
}
Symbol 172 MovieClip Frame 1
stop();
onEnterFrame = function () {
i = 1;
while (i <= 4) {
if (_root.team1[i - 1] == 1) {
this["char" + i].text = "Computer";
} else if (_root.team1[i - 1] == 2) {
this["char" + i].text = "Player 1";
} else if (_root.team1[i - 1] == 3) {
this["char" + i].text = "Player 2";
} else if (_root.team1[i - 1] == 4) {
this["char" + i].text = "Player 3";
} else if (_root.team1[i - 1] == 0) {
this["char" + i].text = " ";
}
i++;
}
};
Symbol 183 MovieClip Frame 1
stop();
stop();
onEnterFrame = function () {
i = 1;
while (i <= 4) {
if (_root.team2[i - 1] == 1) {
this["char" + i].text = "Computer";
} else if (_root.team2[i - 1] == 2) {
this["char" + i].text = "Player 1";
} else if (_root.team2[i - 1] == 3) {
this["char" + i].text = "Player 2";
} else if (_root.team2[i - 1] == 4) {
this["char" + i].text = "Player 3";
} else if (_root.team2[i - 1] == 0) {
this["char" + i].text = " ";
}
i++;
}
};
Symbol 194 MovieClip Frame 1
stop();
stop();
onEnterFrame = function () {
i = 1;
while (i <= 4) {
if (_root.team3[i - 1] == 1) {
this["char" + i].text = "Computer";
} else if (_root.team3[i - 1] == 2) {
this["char" + i].text = "Player 1";
} else if (_root.team3[i - 1] == 3) {
this["char" + i].text = "Player 2";
} else if (_root.team3[i - 1] == 4) {
this["char" + i].text = "Player 3";
} else if (_root.team3[i - 1] == 0) {
this["char" + i].text = " ";
}
i++;
}
};
Symbol 205 MovieClip Frame 1
stop();
stop();
onEnterFrame = function () {
i = 1;
while (i <= 4) {
if (_root.team4[i - 1] == 1) {
this["char" + i].text = "Computer";
} else if (_root.team4[i - 1] == 2) {
this["char" + i].text = "Player 1";
} else if (_root.team4[i - 1] == 3) {
this["char" + i].text = "Player 2";
} else if (_root.team4[i - 1] == 4) {
this["char" + i].text = "Player 3";
} else if (_root.team4[i - 1] == 0) {
this["char" + i].text = " ";
}
i++;
}
};
Symbol 209 Button
on (release) {
if (_root.teams < 3) {
_root.error.start();
info.text = "Must have at least 2 teams";
} else {
_root.teams--;
}
}
Symbol 213 Button
on (release) {
if (_root.gamemode == 3) {
_root.error.start();
info.text = "Only 2 teams in Capture the Flag mode";
} else if (_root.teams == 4) {
_root.error.start();
info.text = "Cant have more than 4 teams";
} else {
_root.teams++;
}
}
Symbol 216 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 228 Button
on (press) {
player = 1;
setkeys.gotoAndStop(2);
setkey = 1;
}
Symbol 229 Button
on (press) {
player = 2;
setkeys.gotoAndStop(2);
setkey = 1;
}
Symbol 230 Button
on (press) {
player = 3;
setkeys.gotoAndStop(2);
setkey = 1;
}
Symbol 238 MovieClip Frame 1
stop();
key = 0;
_parent.setkey = 0;
Symbol 238 MovieClip Frame 2
stop();
key = 1;
Symbol 238 MovieClip Frame 3
stop();
key = 2;
Symbol 238 MovieClip Frame 4
stop();
key = 3;
Symbol 238 MovieClip Frame 5
stop();
key = 4;
Symbol 238 MovieClip Frame 6
stop();
key = 5;
Symbol 238 MovieClip Frame 7
stop();
key = 6;
Symbol 238 MovieClip Frame 8
stop();
key = 7;
Symbol 242 MovieClip Frame 1
stop();
Symbol 247 Button
on (release) {
gotoAndStop (1);
}
on (rollOver) {
info.text = "Back to Main Menu";
_root.switchw.start();
}
on (rollOut, dragOut) {
info.text = "Credits";
}
on (press) {
_root.pressb.start();
}
Symbol 249 MovieClip Frame 1
stop();
info.text = "Welcome to Total War";
Symbol 249 MovieClip Frame 2
if (_root.level > 0) {
} else {
_root.level = 1;
_root.gamemode = 3;
}
info.text = "Game Setup";
Instance of Symbol 131 MovieClip in Symbol 249 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.gamemode == 3) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 144 MovieClip in Symbol 249 MovieClip Frame 2
onClipEvent (load) {
qual.gotoAndStop(_root.qual);
}
on (press) {
qual.play();
}
Instance of Symbol 158 MovieClip in Symbol 249 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.score < 1) {
_root.score = 1;
}
}
Symbol 249 MovieClip Frame 3
if (_root.teams > -10) {
} else {
_root.teams = 2;
}
select = 1;
keyup = 1;
onEnterFrame = function () {
if (setkey == 1) {
_root[("key" + player) + setkeys.key] = Key.getCode();
if (Key.isDown(_root[("key" + player) + setkeys.key])) {
if (keyup == 1) {
setkeys.play();
}
keyup = 0;
} else {
keyup = 1;
}
}
};
Instance of Symbol 172 MovieClip "team1" in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
if (_root.currentplayer1 > -10) {
currentplayer = _root.currentplayer1;
} else {
currentplayer = 0;
}
}
onClipEvent (enterFrame) {
_root.currentplayer1 = currentplayer;
if (_parent.select == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
on (press) {
_parent.select = 1;
}
Instance of Symbol 183 MovieClip "team2" in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
if (_root.currentplayer2 > -10) {
currentplayer = _root.currentplayer2;
} else {
currentplayer = 0;
}
}
onClipEvent (enterFrame) {
_root.currentplayer2 = currentplayer;
if (_parent.select == 2) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
on (press) {
_parent.select = 2;
}
Instance of Symbol 194 MovieClip "team3" in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
if (_root.currentplayer3 > -10) {
currentplayer = _root.currentplayer3;
} else {
currentplayer = 0;
}
}
onClipEvent (enterFrame) {
_root.currentplayer3 = currentplayer;
if (_root.teams < 3) {
this._visible = 0;
} else {
this._visible = 1;
}
if (_parent.select == 3) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
on (press) {
_parent.select = 3;
}
Instance of Symbol 205 MovieClip "team4" in Symbol 249 MovieClip Frame 3
onClipEvent (load) {
if (_root.currentplayer4 > -10) {
currentplayer = _root.currentplayer4;
} else {
currentplayer = 0;
}
}
onClipEvent (enterFrame) {
_root.currentplayer4 = currentplayer;
if (_root.teams < 4) {
this._visible = 0;
} else {
this._visible = 1;
}
if (_parent.select == 4) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
on (press) {
_parent.select = 4;
}
Instance of Symbol 216 MovieClip "p1" in Symbol 249 MovieClip Frame 3
on (press) {
if (((_root.gamemode == 2) or (_root.gamemode == 1)) and (_parent["team" + _parent.select].currentplayer > 0)) {
_root.error.start();
_parent.info.text = "Only one player per team in this mode";
} else if (this._currentframe == 1) {
if (_parent["team" + _parent.select].currentplayer < 4) {
_root["team" + _parent.select][_parent["team" + _parent.select].currentplayer] = 2;
this.gotoAndStop(2);
_parent["team" + _parent.select].currentplayer++;
_root.players++;
} else {
_root.error.start();
_parent.info.text = "Too many players on team team " + _parent.select;
}
}
}
onClipEvent (load) {
this.gotoAndStop(_root.rempos1);
}
onClipEvent (enterFrame) {
_root.rempos1 = this._currentframe;
}
Instance of Symbol 219 MovieClip "p2" in Symbol 249 MovieClip Frame 3
on (press) {
if (((_root.gamemode == 2) or (_root.gamemode == 1)) and (_parent["team" + _parent.select].currentplayer > 0)) {
_root.error.start();
_parent.info.text = "Only one player per team in this mode";
} else if (this._currentframe == 1) {
if (_parent["team" + _parent.select].currentplayer < 4) {
this.gotoAndStop(2);
_root["team" + _parent.select][_parent["team" + _parent.select].currentplayer] = 3;
_parent["team" + _parent.select].currentplayer++;
_root.players++;
} else {
_root.error.start();
_parent.info.text = "Too many players on team team " + _parent.select;
}
}
}
onClipEvent (load) {
this.gotoAndStop(_root.rempos2);
}
onClipEvent (enterFrame) {
_root.rempos2 = this._currentframe;
}
Instance of Symbol 222 MovieClip "p3" in Symbol 249 MovieClip Frame 3
on (press) {
if (((_root.gamemode == 2) or (_root.gamemode == 1)) and (_parent["team" + _parent.select].currentplayer > 0)) {
_root.error.start();
_parent.info.text = "Only one player per team in this mode";
} else if (this._currentframe == 1) {
if (_parent["team" + _parent.select].currentplayer < 4) {
this.gotoAndStop(2);
_root["team" + _parent.select][_parent["team" + _parent.select].currentplayer] = 4;
_parent["team" + _parent.select].currentplayer++;
_root.players++;
} else {
_root.error.start();
_parent.info.text = "Too many players on team team " + _parent.select;
}
}
}
onClipEvent (load) {
this.gotoAndStop(_root.rempos3);
}
onClipEvent (enterFrame) {
_root.rempos3 = this._currentframe;
}
Instance of Symbol 225 MovieClip in Symbol 249 MovieClip Frame 3
on (press) {
if (((_root.gamemode == 2) or (_root.gamemode == 1)) and (_parent["team" + _parent.select].currentplayer > 0)) {
_root.error.start();
_parent.info.text = "Only one player per team in this mode";
} else if (this._currentframe == 1) {
if (_parent["team" + _parent.select].currentplayer < 4) {
this.gotoAndPlay(2);
_root["team" + _parent.select][_parent["team" + _parent.select].currentplayer] = 1;
_parent["team" + _parent.select].currentplayer++;
_root.computers++;
} else {
_root.error.start();
_parent.info.text = "Too many players on team team " + _parent.select;
}
}
}
Instance of Symbol 242 MovieClip in Symbol 249 MovieClip Frame 3
on (rollOver, dragOver) {
this.gotoAndStop(2);
}
on (rollOut, dragOut) {
this.gotoAndStop(1);
}
on (press) {
if (_parent["team" + _parent.select].currentplayer >= 1) {
_parent["team" + _parent.select].currentplayer--;
if (_root["team" + _parent.select][_parent["team" + _parent.select].currentplayer] == 2) {
_parent.p1.gotoAndStop(1);
_root.players--;
} else if (_root["team" + _parent.select][_parent["team" + _parent.select].currentplayer] == 3) {
_parent.p2.gotoAndStop(1);
_root.players--;
} else if (_root["team" + _parent.select][_parent["team" + _parent.select].currentplayer] == 4) {
_parent.p3.gotoAndStop(1);
_root.players--;
} else {
_root.computers--;
}
_root["team" + _parent.select][_parent["team" + _parent.select].currentplayer] = 0;
} else {
_root.error.start();
_parent.info.text = "There are no players on team " + _parent.select;
}
}
Symbol 260 MovieClip Frame 8
stop();
Symbol 260 MovieClip Frame 9
stop();
Symbol 263 MovieClip Frame 1
if (killedby.team == killed.team) {
randomtext = Math.round(Math.random() * 3);
if (randomtext == 0) {
box2.text = killedby.playername + " betrayed his team";
} else if (randomtext == 1) {
box2.text = killedby.playername + " switched sides";
} else if (randomtext == 2) {
box2.text = killedby.playername + " is a traitor";
} else if (randomtext == 3) {
box2.text = killedby.playername + " killed his own teammate";
}
} else if (killedby.spree > 1) {
randomtext = Math.round(Math.random() * 1);
if (randomtext == 0) {
box2.text = (killedby.spree + " in a row for ") + killedby.playername;
} else if (randomtext == 1) {
box2.text = ((killedby.playername + " is on a ") + killedby.spree) + " man killing spree";
}
} else {
randomtext = Math.round(Math.random() * 5);
if (randomtext == 0) {
box2.text = (killedby.playername + " killed ") + killed.playername;
} else if (randomtext == 1) {
box2.text = (killedby.playername + " murdered ") + killed.playername;
} else if (randomtext == 2) {
box2.text = (killedby.playername + " slaughtered ") + killed.playername;
} else if (randomtext == 3) {
box2.text = ((killed.playername + " caught ") + killedby.playername) + "'s bullet";
} else if (randomtext == 4) {
box2.text = (killed.playername + " was pulverised by ") + killedby.playername;
} else if (randomtext == 5) {
box2.text = (killedby.playername + " annihilated ") + killed.playername;
}
}
Symbol 263 MovieClip Frame 69
stop();
Instance of Symbol 60 MovieClip in Symbol 266 MovieClip Frame 1
onClipEvent (load) {
_parent._visible = 0;
}
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 7
gotoAndStop (1);
Symbol 281 MovieClip Frame 8
stop();
Symbol 281 MovieClip Frame 14
gotoAndStop (8);
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 2
stop();
Symbol 284 MovieClip Frame 1
_visible = false;
Symbol 299 MovieClip Frame 1
i = 1;
while (i <= (_root.computers + _root.players)) {
attachMovie("stats", "stats" + _root.bulllevel, _root.bulllevel);
this["stats" + _root.bulllevel]._y = 20 * i;
this["stats" + _root.bulllevel].player.text = _root["player" + i].playername;
this["stats" + _root.bulllevel].team.text = _root["player" + i].team;
this["stats" + _root.bulllevel].kills.text = _root["player" + i].kills;
this["stats" + _root.bulllevel].deaths.text = _root["player" + i].deaths;
if (_root.gamemode == 1) {
if (this["stats" + _root.bulllevel].deaths.text < _root.score) {
_root.winner = _root["player" + i].playername;
}
}
_root["score" + i].removeMovieClip();
_root["player" + i].removeMovieClip();
_root.bulllevel++;
i++;
}
Symbol 303 Button
on (release) {
_root.gotoAndStop(2);
}
on (rollOver, dragOver) {
_root.switchw.start();
info.text = "Go back to main menu";
}
on (rollOut, dragOut) {
info.text = " ";
}
on (press) {
_root.pressb.start();
}
Symbol 305 MovieClip Frame 1
stop();
info.text = "Click to continue";
Symbol 305 MovieClip Frame 2
winnertxt.text = _root.winner;