Frame 1
var played = false;
var playAgain = false;
ag_intro_02_02.onRelease = function () {
getURL ("http://www.addictinggames.com", "_blank");
};
stop();
Frame 2
function link0() {
}
function link1() {
}
function link2() {
getURL ("http://www.freakytikiproductions.com", "Top");
}
function link3() {
getURL ("http://www.addictinggames.com", "Top");
}
var TEST_MODE = false;
var firstRun = true;
var fromGame = false;
_global.ARE_SOUNDS = !TEST_MODE;
_global.SOUNDS = new classes.Game_sounds();
_global.gameAccess = false;
if (!TEST_MODE) {
var c = 0;
onEnterFrame = function () {
var _local2 = Math.round((getBytesLoaded() / getBytesTotal()) * 100);
if ((c + 2) <= _local2) {
c = c + 2;
}
if (c < 99) {
prel.prec.text = c;
} else {
prel.prec.text = "99";
}
if (c >= 100) {
gotoAndPlay(_currentframe + 1);
delete this.onEnterFrame;
}
};
}
var cMenu;
cMenu = new ContextMenu();
cMenu.hideBuiltInItems();
this.menu = cMenu;
cMenu.customItems[0] = new ContextMenuItem("Battleground States 2008", link0, false, true, true);
cMenu.customItems[2] = new ContextMenuItem("Produced by Freaky Tiki Production", link2, false, true, true);
cMenu.customItems[3] = new ContextMenuItem("Copyright (C) 2008 AddictingGames", link3, false, true, true);
Frame 4
if (!TEST_MODE) {
stop();
}
if (!firstRun) {
intro.gotoAndPlay(34);
}
firstRun = false;
var PL = 4;
var ARMY = 1;
Frame 5
function rollButton(mc) {
mc.onRollOver = function () {
this.gotoAndStop(2);
};
mc.onRollOut = (mc.onReleaseOutside = function () {
this.gotoAndStop(1);
});
}
var fromMenu = true;
_global.gameAccess = false;
popUp_mc._visible = false;
if (played) {
gameInfo_mc._visible = false;
}
trace((("PLAYED: " + played) + " ") + gameInfo_mc);
HELP_MC._visible = false;
if (!fromGame) {
expl_in.stop();
expl_in._visible = false;
} else {
_global.SOUNDS.menuSoundtrack();
expl_in.gotoAndPlay(1);
expl_in._visible = true;
}
if (playAgain) {
playAgain = false;
_root.gotoAndStop(6);
} else {
_root.ARMY = 0;
}
stop();
Frame 6
function init() {
GAME.newGame(PL, askQuestion);
}
function askQuestion() {
QUESTION_MC.gotoAndPlay(2);
}
function mapAgain() {
GAME.newGame(PL, askQuestion);
}
function rollButton(mc) {
mc.onRollOver = function () {
this.gotoAndStop(2);
};
mc.onRollOut = (mc.onReleaseOutside = function () {
this.gotoAndStop(1);
});
}
function kill() {
F.kill();
F.removeMovieClip();
GAME.kill();
delete GAME;
}
Stage.align = "TL";
var DEB = (new classes.Debug(this));
_global.gameAccess = true;
var F = fmc.attachMovie("FIGHTBOX", "FIGHT_MC", 0);
var GAME = (new classes.GameWW(GAME_MC, UNITS_MC, END_TURN, WAITER_MC, UNITS_LIST_MC, F));
F.registerGame(GAME);
_global.GAME_PAUSE = false;
if (!fromMenu) {
expl.gotoAndPlay(expl._totalframes - 2);
}
fromMenu = false;
fromGame = true;
addictingLogo_mc.onRelease = function () {
getURL ("http://www.addictinggames.com", "Top");
};
QUESTION_MC.yes.onRelease = function () {
if (QUESTION_MC._currentframe == 24) {
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
GAME.init();
QUESTION_MC.kill = true;
QUESTION_MC.gotoAndPlay(25);
}
};
QUESTION_MC.no.onRelease = function () {
if (QUESTION_MC._currentframe == 24) {
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
QUESTION_MC.kill = false;
QUESTION_MC.gotoAndPlay(25);
}
};
END_TURN.END_TURN.onRelease = function () {
if ((END_TURN._currentframe == 11) && (F._visible == false)) {
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
GAME.MAP.unMarkIfMarked();
GAME.addUnits();
END_TURN.gotoAndPlay(12);
}
};
EXIT_BTN.onRelease = function () {
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
QUIT_MC._visible = true;
if (QUIT_MC._currentframe == 1) {
QUIT_MC.gotoAndPlay(2);
}
};
HELP_BTN.onRelease = function () {
if (HELP_MC._currentframe == 1) {
HELP_MC.gotoAndPlay(2);
HELP_MC._visible = true;
_global.SOUNDS.playSound("okno help open.wav");
}
};
HELP_BTN.onEnterFrame = function () {
POLE.scroll = POLE.maxscroll;
};
rollButton(QUESTION_MC.no);
rollButton(QUESTION_MC.yes);
rollButton(EXIT_BTN);
rollButton(MUSIC_BTN_ON);
rollButton(MUSIC_BTN_OFF);
rollButton(HELP_BTN);
rollButton(END_TURN.END_TURN);
QUIT_MC._visible = false;
GAMEOVER_MC._visible = false;
YOUWIN_MC._visible = false;
HELP_MC._visible = false;
MUSIC_BTN_ON._visible = !_global.ARE_SOUNDS;
MUSIC_BTN_OFF.onRelease = function () {
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
this._visible = false;
MUSIC_BTN_ON.gotoAndStop(2);
MUSIC_BTN_ON._visible = true;
_global.ARE_SOUNDS = false;
_global.SOUNDS.killSoundtrack();
};
MUSIC_BTN_ON.onRelease = function () {
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
this._visible = false;
MUSIC_BTN_OFF.gotoAndStop(2);
MUSIC_BTN_OFF._visible = true;
_global.ARE_SOUNDS = true;
_global.SOUNDS.gameSoundtrack();
};
stop();
Frame 7
gotoAndPlay(_currentframe - 1);
_global.SOUNDS.gameSoundtrack();
Frame 8
gotoAndStop (6);
Symbol 165 MovieClip Frame 1
Symbol 165 MovieClip Frame 134
stop();
_root.play();
Symbol 1130 MovieClip [__Packages.classes.Game_sounds] Frame 0
class classes.Game_sounds
{
var _sndTrack;
function Game_sounds () {
}
function menuSoundtrack() {
if (_global.ARE_SOUNDS == true) {
_sndTrack.stop();
_sndTrack = new Sound();
_sndTrack.attachSound("gra");
_sndTrack.start(0, 1);
_sndTrack.onSoundComplete = mx.utils.Delegate.create(this, menuSoundtrack2);
}
}
function menuSoundtrack2() {
if (_global.ARE_SOUNDS == true) {
delete _sndTrack.onSoundComplete;
_sndTrack.stop();
_sndTrack = new Sound();
_sndTrack.attachSound("menu2");
_sndTrack.start(0, 99999);
}
}
function gameSoundtrack() {
if (_global.ARE_SOUNDS == true) {
_sndTrack.stop();
_sndTrack = new Sound();
_sndTrack.attachSound("gra");
_sndTrack.start(0, 99999);
}
}
function killSoundtrack() {
_sndTrack.stop();
}
function soundsON(track) {
}
function playSound(snd) {
if (_global.ARE_SOUNDS == true) {
var _local2 = new Sound();
_local2.attachSound(snd);
_local2.start();
}
}
}
Symbol 1131 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 1132 MovieClip [__Packages.classes.ww_interface.Waiter] Frame 0
class classes.ww_interface.Waiter extends MovieClip
{
var _visible, status, onEnterFrame;
function Waiter () {
super();
_visible = false;
status = "ready_off";
}
function show() {
status = "progress";
_visible = true;
cdw = 0;
onEnterFrame = mx.utils.Delegate.create(this, makeBig);
}
function hide() {
_visible = false;
status = "ready_off";
}
function makeBig() {
cdw++;
if (cdw > countdown) {
status = "ready_on";
delete onEnterFrame;
}
}
var countdown = 2;
var cdw = 0;
}
Symbol 1133 MovieClip [__Packages.classes.ww_interface.Units_list] Frame 0
class classes.ww_interface.Units_list extends MovieClip
{
var _visible, PLAYER_NO, uicon;
function Units_list () {
super();
selectPlayer(0);
_visible = false;
}
function setList(terrArr, refArr, plNo, armyList) {
PLAYER_NO = plNo;
if (_visible == false) {
_visible = true;
}
uicon._visible = false;
var _local3 = 1;
while (_local3 <= plNo) {
var _local4 = uicon.duplicateMovieClip("uicon_" + _local3, _local3);
_local4.no.no.text = refArr[_local3 - 1];
_local4.bg.gotoAndStop(armyList[_local3 - 1]);
_local4.bg.border._visible = false;
var _local5 = false;
var _local2 = 0;
while ((!_local5) && (_local2 < 8)) {
if (terrArr[_local2].player == _local3) {
_local4.u.gotoAndStop(terrArr[_local2].army);
_local5 = true;
}
_local2++;
}
_local3++;
}
centerIcons();
}
function refreshList(refArr, territoriesArr, winner) {
var _local2 = 1;
while (_local2 <= PLAYER_NO) {
var _local3 = this["uicon_" + _local2];
if (_local3 != undefined) {
if (countPlayerUnits(territoriesArr, _local2) <= 0) {
_local3.removeMovieClip();
} else {
_local3.no.no.text = refArr[_local2 - 1];
}
}
_local2++;
}
centerIcons();
}
function selectPlayer(p) {
var _local2 = 1;
while (_local2 <= 8) {
if (_local2 != p) {
this["uicon_" + _local2].bg.border._visible = false;
} else {
this["uicon_" + _local2].bg.border._visible = true;
}
_local2++;
}
}
function centerIcons() {
var _local5 = 0;
var _local2 = 1;
while (_local2 <= PLAYER_NO) {
var _local3 = this["uicon_" + _local2];
if (_local3 != undefined) {
_local5++;
}
_local2++;
}
var _local6 = (-(_local5 * 50)) / 2;
var _local4 = 0;
_local2 = 1;
while (_local2 <= PLAYER_NO) {
var _local3 = this["uicon_" + _local2];
if (_local3 != undefined) {
_local3._x = _local6 + (60 * _local4);
_local4++;
}
_local2++;
}
}
function countPlayerUnits(terrArr, pl) {
var _local3 = 0;
var _local1 = 0;
while (_local1 < terrArr.length) {
if (terrArr[_local1].player == pl) {
_local3 = _local3 + terrArr[_local1].unitsNO;
}
_local1++;
}
return(_local3);
}
}
Symbol 1134 MovieClip [__Packages.classes.models.Unit] Frame 0
class classes.models.Unit extends MovieClip
{
var gotoAndStop, flag, units;
function Unit () {
super();
}
function setUnit(army, units, player) {
trace((("player: " + player) + ", army: ") + army);
gotoAndStop(army);
flag.banner.gotoAndStop(player);
flag.no.gotoAndStop(units);
this.units.gotoAndStop(units);
}
}
Symbol 1135 MovieClip [__Packages.classes.ww_interface.Fightbox] Frame 0
class classes.ww_interface.Fightbox extends MovieClip
{
var EXPLOSION_MC, _parent, UNITS_MC, SKIP_MODE, _visible, SKIP, GAME_CLASS, LAST_FIGHT, military2, military1, explosion1, explosion2, ter1, ter2, WINNER, winTemp, winNO, ran1, ran2, onEnterFrame, dieces_limit, dieces_no, rubbish, ultraSkipA, ultraSkipB, ultraSkipP1, ultraSkipP2;
function Fightbox () {
super();
EXPLOSION_MC = _parent._parent.EXPLOSION_MC;
UNITS_MC = _parent._parent.UNITS_MC;
var root = this;
SKIP_MODE = false;
_visible = false;
var _local4 = 1;
while (_local4 <= 8) {
this["d" + _local4]._visible = false;
_local4++;
}
SKIP.onRelease = function () {
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
root.SKIP_MODE = true;
root._visible = false;
root.ultraSkip();
};
}
function registerGame(g) {
GAME_CLASS = g;
}
function fight(A, B) {
if (!SKIP_MODE) {
LAST_FIGHT = getTimer();
resetDieces();
_visible = true;
military1._visible = (military2._visible = true);
explosion1.gotoAndStop(1);
explosion2.gotoAndStop(1);
military1.un.text = A.unitsNO;
military2.un.text = B.unitsNO;
military1.army_ico.gotoAndStop(A.army);
military1.army_ico.filters = [];
military1.army_ico.units.gotoAndStop(A.unitsNO);
military1.flag.gotoAndStop(A.army);
military2.army_ico.gotoAndStop(B.army);
military2.army_ico.filters = [];
military2.army_ico.units.gotoAndStop(B.unitsNO);
military2.flag.gotoAndStop(B.army);
ter1.gotoAndStop(A.army);
ter2.gotoAndStop(B.army);
var _local8 = 0;
var _local7 = 0;
WINNER = undefined;
var _local5 = 0;
while (_local5 < A.unitsNO) {
var _local6 = random2(5) + 1;
_local8 = _local8 + _local6;
_local5++;
}
_local5 = 0;
while (_local5 < B.unitsNO) {
var _local6 = random2(5) + 1;
_local7 = _local7 + _local6;
_local5++;
}
if (_local8 > _local7) {
winTemp = A;
winNO = 1;
} else {
winTemp = B;
winNO = 2;
}
setUltraSkip(_local8, _local7, A, B);
ran1.setTo(_local8);
ran2.setTo(_local7);
_global.SOUNDS.playSound("ko\u015Bci.wav");
onEnterFrame = mx.utils.Delegate.create(this, fightFinished);
dieces_limit = A.unitsNO + B.unitsNO;
dieces_no = 0;
rubbish = new Array();
throwDices(A.army, A.unitsNO, 1);
throwDices(B.army, B.unitsNO, 2);
} else {
var _local8 = 0;
var _local7 = 0;
WINNER = undefined;
var _local5 = 0;
while (_local5 < A.unitsNO) {
var _local6 = random2(5) + 1;
_local8 = _local8 + _local6;
_local5++;
}
_local5 = 0;
while (_local5 < B.unitsNO) {
var _local6 = random2(5) + 1;
_local7 = _local7 + _local6;
_local5++;
}
if (_local8 > _local7) {
var _local9 = this;
EXPLOSION_MC._x = UNITS_MC._x + B.unitsMC._x;
EXPLOSION_MC._y = UNITS_MC._y + B.unitsMC._y;
EXPLOSION_MC.gotoAndPlay(2);
winTemp = A;
EXPLOSION_MC.onEnterFrame = mx.utils.Delegate.create(this, fightFinished2);
} else {
EXPLOSION_MC._x = UNITS_MC._x + A.unitsMC._x;
EXPLOSION_MC._y = UNITS_MC._y + A.unitsMC._y;
EXPLOSION_MC.gotoAndPlay(2);
winTemp = B;
EXPLOSION_MC.onEnterFrame = mx.utils.Delegate.create(this, fightFinished2);
}
}
}
function setUltraSkip(pow1, pow2, A, B) {
ultraSkipA = A;
ultraSkipB = B;
ultraSkipP1 = pow1;
ultraSkipP2 = pow2;
}
function ultraSkip() {
delete onEnterFrame;
if (ultraSkipP1 > ultraSkipP2) {
var _local2 = this;
EXPLOSION_MC._x = UNITS_MC._x + ultraSkipB.unitsMC._x;
EXPLOSION_MC._y = UNITS_MC._y + ultraSkipB.unitsMC._y;
EXPLOSION_MC.gotoAndPlay(2);
winTemp = ultraSkipA;
EXPLOSION_MC.onEnterFrame = mx.utils.Delegate.create(this, fightFinished2);
} else {
EXPLOSION_MC._x = UNITS_MC._x + ultraSkipA.unitsMC._x;
EXPLOSION_MC._y = UNITS_MC._y + ultraSkipA.unitsMC._y;
EXPLOSION_MC.gotoAndPlay(2);
winTemp = ultraSkipB;
EXPLOSION_MC.onEnterFrame = mx.utils.Delegate.create(this, fightFinished2);
}
}
function initCountdowns() {
ran1.countTo();
ran2.countTo();
}
function fightFinished() {
if (SKIP_MODE == false) {
if (((ran1.finished() && (ran2.finished())) && (explosion1._currentframe == 1)) && (explosion2._currentframe == 1)) {
if (winNO == 1) {
explosion2.gotoAndPlay(2);
} else {
explosion1.gotoAndPlay(2);
}
}
if (explosion1._currentframe == 7) {
military1._visible = false;
}
if (explosion2._currentframe == 7) {
military2._visible = false;
}
if ((explosion1._currentframe == explosion1._totalframes) || (explosion2._currentframe == explosion2._totalframes)) {
WINNER = winTemp;
GAME_CLASS.fightFinished();
_visible = false;
delete onEnterFrame;
}
}
}
function fightFinished2() {
if (EXPLOSION_MC._currentframe == 7) {
WINNER = winTemp;
GAME_CLASS.fightFinished();
}
if (EXPLOSION_MC._currentframe == EXPLOSION_MC._totalframes) {
delete EXPLOSION_MC.onEnterFrame;
}
}
function random2(z) {
return(Math.round(Math.random() * z));
}
function throwDices(player, units, terr) {
var root = this;
var i = 0;
while (i < units) {
var _local2 = this["d" + player].duplicateMovieClip((("dice" + player) + "_") + i, (terr * 10) + i);
rubbish.push(_local2);
_local2._x = this["gen" + terr]._x;
_local2._xscale = (_local2._yscale = 70);
if (terr == 1) {
_local2.docX = _local2._x + 15;
}
if (terr == 2) {
_local2.docX = (_local2._x - 15) - _local2._width;
}
_local2._y = this["gen" + terr]._y + (i * 25);
_local2.i = (i + 2) / 2;
_local2.onEnterFrame = function () {
this._x = this._x + ((this.docX - this._x) / this.i);
trace("Readying dice to roll: " + Math.abs(this._x - this.docX));
if (Math.abs(this._x - this.docX) < 1) {
trace((("DICES NUM: " + root.dieces_no) + " LIMIT: ") + root.dieces_limit);
root.dieces_no++;
if (root.dieces_no == root.dieces_limit) {
root.initCountdowns();
}
this._x = this.docX;
trace(("DOCX: " + this.docX) + i);
delete this.onEnterFrame;
}
};
i++;
}
}
function resetWinner() {
WINNER = undefined;
}
function resetSkipMode() {
SKIP._visible = true;
SKIP_MODE = false;
}
function resetDieces() {
var _local2 = 0;
while (_local2 < rubbish.length) {
rubbish[_local2].removeMovieClip();
_local2++;
}
}
function kill() {
delete EXPLOSION_MC.onEnterFrame;
}
}
Symbol 1136 MovieClip [__Packages.classes.GameWW] Frame 0
class classes.GameWW
{
var GAME_MC, UNITS_MC, WAITER, UNITS_LIST, END_TURN_MC, FIGHTBOX, PLAYERS_ORDER, PLAYERS_ARRAY, AUTOPLAYER, MAP, AI, counter, TRACER, PLAYER_MOVE, PLAYERS_NO, PLAYERS_CACHES, rubbish_arr, maxArea;
function GameWW (gmc, umc, etmc, wt, ul, fb) {
GAME_MC = gmc;
UNITS_MC = umc;
WAITER = wt;
UNITS_LIST = ul;
END_TURN_MC = etmc;
FIGHTBOX = fb;
PLAYERS_ORDER = new Array();
PLAYERS_ARRAY = [1, 2, 3, 4, 5, 6, 7, 8];
AUTOPLAYER = false;
MAP = new classes.Map(GAME_MC, this);
AI = new classes.GameAI(this);
counter = 0;
TRACER = _root.createEmptyMovieClip("tracer", 1);
PLAYER_MOVE = 1;
}
function newGame(players, callBack) {
if (WAITER.status == "ready_off") {
var root = this;
PLAYERS_NO = players;
PLAYERS_CACHES = new Array();
var i = 0;
while (i < PLAYERS_NO) {
PLAYERS_CACHES.push(0);
i++;
}
WAITER.show();
GAME_MC.onEnterFrame = function () {
with (root) {
if (WAITER.status == "ready_on") {
MAP.createMap(PLAYERS_NO);
counter = MAP.TERRITORIES_ARR.length + 10;
arrangeUnits();
WAITER.hide();
var refArr = new Array();
var i = 1;
while (i <= PLAYERS_NO) {
refArr.push(unitsToAdd(i));
i++;
}
UNITS_LIST.setList(MAP.TERRITORIES_ARR, refArr, PLAYERS_NO, PLAYERS_ORDER);
}
}
if (root.WAITER.status == "ready_off") {
callBack();
delete this.onEnterFrame;
}
};
}
}
function init() {
UNITS_LIST.selectPlayer(PLAYER_MOVE);
if ((PLAYER_MOVE != 1) || (AUTOPLAYER)) {
AI.cleverMove(PLAYER_MOVE);
} else {
END_TURN_MC.gotoAndPlay(2);
MAP.startInterface();
}
}
function nextPlayer() {
PLAYER_MOVE++;
if (PLAYER_MOVE > PLAYERS_NO) {
PLAYER_MOVE = 1;
}
if ((PLAYER_MOVE != 1) || (AUTOPLAYER)) {
AI.cleverMove(PLAYER_MOVE);
} else {
END_TURN_MC.gotoAndPlay(2);
MAP.startInterface();
}
if (PLAYER_MOVE == 1) {
FIGHTBOX.resetSkipMode();
}
UNITS_LIST.selectPlayer(PLAYER_MOVE);
}
function isGameFinished() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < MAP.TERRITORIES_ARR.length) {
if (MAP.TERRITORIES_ARR[_local2].player == 1) {
_local3++;
}
_local2++;
}
if (_local3 == MAP.TERRITORIES_ARR.length) {
PLAYER_WIN();
return(true);
}
if (_local3 == 0) {
GAME_OVER();
return(true);
}
return(false);
}
function PLAYER_WIN() {
_root.YOUWIN_MC._visible = true;
_root.YOUWIN_MC.gotoAndPlay(2);
}
function GAME_OVER() {
_root.GAMEOVER_MC._visible = true;
_root.GAMEOVER_MC.gotoAndPlay(2);
}
function arrangeUnits() {
var _local8 = [0, 0, 0, 0, 0, 0, 0, 0];
var _local7 = new Array();
clearAll();
rubbish_arr = new Array();
var _local2 = 0;
while (_local2 < MAP.TERRITORIES_ARR.length) {
var _local6 = MAP.TERRITORIES_ARR[_local2];
var _local5 = 0;
var _local4 = 0;
_local5 = MAP.TERRITORIES_ARR[_local2]._x;
_local4 = MAP.TERRITORIES_ARR[_local2]._y;
counter = _local2;
trace((((("State for Unit: " + MAP.TERRITORIES_ARR[_local2]) + " ") + MAP.TERRITORIES_ARR[_local2].army) + " ") + MAP.TERRITORIES_ARR[_local2].player);
var _local3 = UNITS_MC.attachMovie("UNIT", "unit_" + counter, 2 + (counter * 2));
counter++;
_local3._x = _local5;
_local3._y = _local4;
_local3.setUnit(MAP.TERRITORIES_ARR[_local2].army, MAP.TERRITORIES_ARR[_local2].unitsNO, MAP.TERRITORIES_ARR[_local2].player);
MAP.TERRITORIES_ARR[_local2].unitsMC = _local3;
_local7.push(_local3);
rubbish_arr.push(_local3);
_local2++;
}
unitsSmartDepths(_local7);
}
function unitsSmartDepths(unitsArr) {
var _local5 = 0;
while (_local5 < unitsArr.length) {
var _local2 = unitsArr.length - 1;
while (_local2 > _local5) {
if (unitsArr[_local2 - 1]._y > unitsArr[_local2]._y) {
var _local4 = unitsArr[_local2];
unitsArr[_local2] = unitsArr[_local2 - 1];
unitsArr[_local2 - 1] = _local4;
}
_local2--;
}
_local5++;
}
_local5 = 0;
while (_local5 < unitsArr.length) {
unitsArr[_local5].swapDepths(2 + (counter * 10));
counter++;
_local5++;
}
}
function showBiggestArea() {
var _local7 = new Array();
var _local3 = 0;
while (_local3 < MAP.TERRITORIES_ARR.length) {
if (MAP.TERRITORIES_ARR[_local3].player == PLAYER_MOVE) {
_local7.push(MAP.TERRITORIES_ARR[_local3]);
}
_local3++;
}
var _local4 = new Array();
_local3 = 0;
while (_local3 < _local7.length) {
var _local6 = _local7[_local3];
if (isThere(_local6, _local4) == false) {
var _local5 = new Array();
generate(_local6, _local5);
_local4.push(_local5);
}
_local3++;
}
maxArea = new Array();
_local3 = 0;
while (_local3 < _local4.length) {
if (_local4[_local3].length > maxArea.length) {
maxArea = _local4[_local3];
}
_local3++;
}
_local3 = 0;
while (_local3 < maxArea.length) {
_local3++;
}
var _local9 = 0;
var _local8 = 0;
_local3 = 0;
while (_local3 < maxArea.length) {
_local9 = _local9 + maxArea[_local3].unitsMC._x;
_local8 = _local8 + maxArea[_local3].unitsMC._y;
_local3++;
}
_local9 = _local9 / maxArea.length;
_local8 = _local8 / maxArea.length;
_global.setTimeout(mx.utils.Delegate.create(this, hideBiggestArea), 1200);
}
function hideBiggestArea() {
var _local2 = 0;
while (_local2 < maxArea.length) {
MAP.lightOffTerritory(maxArea[_local2]);
_local2++;
}
}
function addUnits() {
var _local12 = unitsToAdd(PLAYER_MOVE) + PLAYERS_CACHES[PLAYER_MOVE - 1];
var _local5 = new Array();
var _local6 = 0;
while (_local6 < MAP.TERRITORIES_ARR.length) {
if (MAP.TERRITORIES_ARR[_local6].player == PLAYER_MOVE) {
_local5.push(MAP.TERRITORIES_ARR[_local6]);
}
_local6++;
}
var _local4 = new Array();
_local6 = 0;
while (_local6 < _local5.length) {
_local4.push(0);
_local6++;
}
var _local11 = _local5.length;
while ((_local12 > 0) && (_local11 > 0)) {
_local11 = _local5.length;
_local6 = 0;
while (_local6 < _local4.length) {
if ((_local4[_local6] + _local5[_local6].unitsNO) >= 8) {
_local11--;
}
_local6++;
}
var _local7 = random2(_local5.length - 1);
var _local9 = false;
_local6 = 0;
while ((_local6 < _local4.length) && (!_local9)) {
if ((_local4[(_local7 + _local6) % _local4.length] + _local5[(_local7 + _local6) % _local4.length].unitsNO) < 8) {
_local4[(_local7 + _local6) % _local4.length]++;
_local12--;
_local9 = true;
}
_local6++;
}
}
if (_local12 > 32) {
_local12 = 32;
}
if ((_local12 > 0) && (PLAYER_MOVE == 1)) {
_root.EXTRA_UNITS.showExtra = _local12;
_root.EXTRA_UNITS.gotoAndPlay(2);
}
PLAYERS_CACHES[PLAYER_MOVE - 1] = _local12;
var _local14 = 0;
_local6 = 0;
while (_local6 < _local5.length) {
if (_local4[_local6] > 0) {
var _local8 = UNITS_MC.attachMovie("UNITS_ADDER", "adder_to_" + _local5[_local6].unitsMC._name, _local5[_local6].unitsMC.getDepth() - 1);
_local5[_local6].unitsNO = _local5[_local6].unitsNO + _local4[_local6];
_local8._x = _local5[_local6].unitsMC._x + 10;
_local8._y = _local5[_local6].unitsMC._y;
_local8.unitsMC = _local5[_local6].unitsMC;
_local8.army = _local5[_local6].army;
_local8.newUnitsNO = _local5[_local6].unitsNO;
_local8.player = _local5[_local6].player;
}
_local6++;
}
FIGHTBOX.swapDepths(16000);
_global.SOUNDS.playSound("przemarsz - do uzupe\u0142niania jednostek.wav");
var _local13 = false;
while (!_local13) {
var _local10 = PLAYER_MOVE + 1;
if (_local10 > PLAYERS_NO) {
_local10 = 1;
}
if (countPlayerUnits(MAP.TERRITORIES_ARR, _local10) > 0) {
_global.setTimeout(mx.utils.Delegate.create(this, nextPlayer), 2000);
_local13 = true;
} else {
PLAYER_MOVE++;
}
}
}
function unitsToAdd(player) {
var _local5 = new Array();
var _local2 = 0;
while (_local2 < MAP.TERRITORIES_ARR.length) {
if (MAP.TERRITORIES_ARR[_local2].player == player) {
_local5.push(MAP.TERRITORIES_ARR[_local2]);
}
_local2++;
}
var _local6 = new Array();
_local2 = 0;
while (_local2 < _local5.length) {
var _local4 = _local5[_local2];
if (isThere(_local4, _local6) == false) {
var _local3 = new Array();
generate(_local4, _local3);
_local6.push(_local3);
}
_local2++;
}
var _local8 = _local6.length;
return(_local8);
}
function generate(terr, arrToFill) {
if (isThere2(terr, arrToFill) == false) {
arrToFill.push(terr);
var _local3 = neighboursAreasArr(terr.arr);
var _local2 = 0;
while (_local2 < _local3.length) {
generate(_local3[_local2], arrToFill);
_local2++;
}
}
}
function isThere2(terr, arr) {
var _local1 = 0;
while (_local1 < arr.length) {
if (arr[_local1] == terr) {
return(true);
}
_local1++;
}
return(false);
}
function isThere(terr, arr) {
var _local1 = 0;
while (_local1 < arr.length) {
if (arr[_local1] == terr) {
return(true);
}
_local1++;
}
return(false);
}
function neighboursAreasArr(terrArr) {
var _local6 = new Array();
var _local7 = 0;
while (_local7 < terrArr.length) {
var _local4 = terrArr[_local7];
var _local3 = [_local4.TL, _local4.L, _local4.TR, _local4.BR, _local4.R, _local4.BL];
var _local1 = 0;
while (_local1 < _local3.length) {
if ((_local3[_local1]._territory != _local4._territory) && (_local3[_local1]._territory.player == _local4._territory.player)) {
var _local5 = false;
var _local2 = 0;
while ((_local2 < _local6.length) && (!_local5)) {
if (_local6[_local2] == _local3[_local1]._territory) {
_local5 = true;
}
_local2++;
}
if (!_local5) {
_local6.push(_local3[_local1]._territory);
}
}
_local1++;
}
_local7++;
}
return(_local6);
}
function fightFinished() {
MAP.winnerFound();
if (PLAYER_MOVE == 1) {
MAP.selectA();
} else {
var root = this;
TRACER.ct = 0;
TRACER.onEnterFrame = function () {
this.ct++;
if (this.ct > 15) {
root.nextAImove();
delete this.onEnterFrame;
}
};
}
FIGHTBOX.resetWinner();
}
function nextAImove(oldID) {
AI.cleverMove();
}
function kill() {
delete TRACER.onEnterFrame;
}
function clearAll() {
var _local2 = 0;
while (_local2 < rubbish_arr.length) {
rubbish_arr[_local2].removeMovieClip();
_local2++;
}
}
function random2(z) {
return(Math.round(Math.random() * z));
}
function random3(z) {
var _local4 = new Array();
var _local3 = 0;
while (_local3 <= z) {
var _local2 = 0;
while (_local2 <= _local3) {
_local4.push(_local3);
_local2++;
}
_local3++;
}
return(_local4[random2(_local4.length - 1)]);
}
function shuffledArray(arr) {
var _local5 = 0;
while (_local5 < 20) {
var _local4 = random2(arr.length - 1);
var _local3 = random2(arr.length - 1);
var _local6 = arr[_local4];
arr[_local4] = arr[_local3];
arr[_local3] = _local6;
_local5++;
}
return(arr);
}
function countPlayerUnits(terrArr, pl) {
var _local3 = 0;
var _local1 = 0;
while (_local1 < terrArr.length) {
if (terrArr[_local1].player == pl) {
_local3 = _local3 + terrArr[_local1].unitsNO;
}
_local1++;
}
return(_local3);
}
}
Symbol 1137 MovieClip [__Packages.classes.Map] Frame 0
class classes.Map
{
var ROOT_MC, GAME_CLASS, HEX, TERRITORIES_ARR, cos30, cos60, sin60, rubbish_arr, CHOSEN_TERR_A, CHOSEN_TERR_B, MAP_ARR, counter, TERR_A_NArr;
function Map (rmc, gc) {
ROOT_MC = rmc;
GAME_CLASS = gc;
HEX = new classes.models.Hex();
TERRITORIES_ARR = new Array();
cos30 = Math.cos(deg2rad(30));
cos60 = Math.cos(deg2rad(60));
sin60 = Math.sin(deg2rad(60));
}
function createMap(players) {
var _local16 = 34;
var _local18 = 29;
var _local22 = 30;
var _local23 = 34;
var _local29 = 50;
if (rubbish_arr.length > 0) {
clearAll();
}
rubbish_arr = new Array();
CHOSEN_TERR_A = (CHOSEN_TERR_B = undefined);
MAP_ARR = new Array();
counter = 0;
drawGrid(_local16, _local18);
TERRITORIES_ARR = shuffledArray(TERRITORIES_ARR);
var _local26 = {status:0, player:0, border:undefined, army:0, unitsMC:undefined, unitsNO:0};
var _local11 = _root.ARMY;
var _local6 = new Array();
var _local17 = [1, 2, 3, 4, 5, 6, 7, 8];
var _local15 = [2, 1, 3, 4, 5, 6, 7, 8];
var _local14 = [3, 1, 2, 4, 5, 6, 7, 8];
var _local13 = [4, 1, 2, 3, 5, 6, 7, 8];
var _local12 = [5, 1, 2, 3, 4, 6, 7, 8];
var _local21 = [6, 1, 2, 3, 4, 5, 7, 8];
var _local20 = [7, 1, 2, 3, 4, 5, 6, 8];
var _local19 = [8, 1, 2, 3, 4, 5, 6, 7];
var _local9 = new Array();
if (_local11 == 1) {
_local9 = _local17;
} else if (_local11 == 2) {
_local9 = _local15;
} else if (_local11 == 3) {
_local9 = _local14;
} else if (_local11 == 4) {
_local9 = _local13;
} else if (_local11 == 5) {
_local9 = _local12;
} else if (_local11 == 6) {
_local9 = _local21;
} else if (_local11 == 7) {
_local9 = _local20;
} else if (_local11 == 8) {
_local9 = _local19;
}
var _local3 = 0;
while (_local3 < players) {
_local6.push(_local9[_local3]);
_local3++;
}
GAME_CLASS.PLAYERS_ORDER = _local6;
var _local10 = new Array();
_local3 = 0;
while (_local3 < players) {
_local10.push(GAME_CLASS.PLAYERS_ARRAY[_local3]);
_local3++;
}
var _local7 = new Array();
while (_local7.length < 50) {
_local3 = 0;
while (_local3 < players) {
_local7.push(_local6[_local3]);
_local3++;
}
}
_local3 = 0;
while (_local3 < TERRITORIES_ARR.length) {
var _local8 = _local6[(players - (_local3 % players)) - 1];
var _local4 = _local10[(players - (_local3 % players)) - 1];
switch (_local8) {
case 1 :
markTerritory(TERRITORIES_ARR[_local3], 1, 0, _local4);
break;
case 2 :
markTerritory(TERRITORIES_ARR[_local3], 2, 0, _local4);
break;
case 3 :
markTerritory(TERRITORIES_ARR[_local3], 3, 0, _local4);
break;
case 4 :
markTerritory(TERRITORIES_ARR[_local3], 4, 0, _local4);
break;
case 5 :
markTerritory(TERRITORIES_ARR[_local3], 5, 0, _local4);
break;
case 6 :
markTerritory(TERRITORIES_ARR[_local3], 6, 0, _local4);
break;
case 7 :
markTerritory(TERRITORIES_ARR[_local3], 7, 0, _local4);
break;
case 8 :
markTerritory(TERRITORIES_ARR[_local3], 8, 0, _local4);
break;
}
TERRITORIES_ARR[_local3].army = _local6[TERRITORIES_ARR[_local3].player - 1];
_local3++;
}
randomUnits(players);
}
function startInterface() {
selectA();
}
function markTerritory(terrObj, pl, stat, playerNum) {
trace((("MARKING PLAYER: " + playerNum) + " FRAME: ") + pl);
terrObj._visible = true;
terrObj.gotoAndStop(pl);
colorMC(terrObj.border, BORDER_COLOR);
terrObj.status = stat;
terrObj.player = playerNum;
}
function drawGrid(w, h) {
var _local3 = 1;
while (_local3 <= 50) {
var _local4 = _root["state" + _local3];
TERRITORIES_ARR[_local3 - 1] = new MovieClip();
TERRITORIES_ARR[_local3 - 1] = _local4;
_local3++;
}
TERRITORIES_ARR[0].TL = _root.state2;
TERRITORIES_ARR[0].TR = _root.state3;
TERRITORIES_ARR[0].BL = _root.state7;
TERRITORIES_ARR[1].L = _root.state17;
TERRITORIES_ARR[1].TR = _root.state11;
TERRITORIES_ARR[1].R = _root.state3;
TERRITORIES_ARR[1].BR = _root.state1;
TERRITORIES_ARR[1].B = _root.state7;
TERRITORIES_ARR[1].BL = _root.state35;
TERRITORIES_ARR[2].TL = _root.state2;
TERRITORIES_ARR[2].TR = _root.state11;
TERRITORIES_ARR[2].BL = _root.state1;
TERRITORIES_ARR[3].TL = _root.state16;
TERRITORIES_ARR[3].TR = _root.state12;
TERRITORIES_ARR[3].R = _root.state8;
TERRITORIES_ARR[3].L = _root.state22;
TERRITORIES_ARR[3].B = _root.state27;
TERRITORIES_ARR[4].TL = _root.state11;
TERRITORIES_ARR[4].TR = _root.state6;
TERRITORIES_ARR[4].BR = _root.state13;
TERRITORIES_ARR[5].TL = _root.state14;
TERRITORIES_ARR[5].TR = _root.state9;
TERRITORIES_ARR[5].BR = _root.state13;
TERRITORIES_ARR[5].BL = _root.state5;
TERRITORIES_ARR[5].L = _root.state11;
TERRITORIES_ARR[6].TL = _root.state2;
TERRITORIES_ARR[6].TR = _root.state1;
TERRITORIES_ARR[6].L = _root.state35;
TERRITORIES_ARR[6].BL = _root.state10;
TERRITORIES_ARR[7].TR = _root.state12;
TERRITORIES_ARR[7].BL = _root.state4;
TERRITORIES_ARR[8].TR = _root.state23;
TERRITORIES_ARR[8].L = _root.state14;
TERRITORIES_ARR[8].BL = _root.state6;
TERRITORIES_ARR[9].TL = _root.state35;
TERRITORIES_ARR[9].TR = _root.state7;
TERRITORIES_ARR[9].B = _root.state12;
TERRITORIES_ARR[9].BL = _root.state16;
TERRITORIES_ARR[9].L = _root.state15;
TERRITORIES_ARR[10].TR = _root.state14;
TERRITORIES_ARR[10].BR = _root.state5;
TERRITORIES_ARR[10].B = _root.state3;
TERRITORIES_ARR[10].L = _root.state2;
TERRITORIES_ARR[10].R = _root.state6;
TERRITORIES_ARR[11].TL = _root.state10;
TERRITORIES_ARR[11].B = _root.state8;
TERRITORIES_ARR[11].BL = _root.state4;
TERRITORIES_ARR[11].L = _root.state16;
TERRITORIES_ARR[12].TL = _root.state6;
TERRITORIES_ARR[12].L = _root.state5;
TERRITORIES_ARR[13].BR = _root.state6;
TERRITORIES_ARR[13].BL = _root.state11;
TERRITORIES_ARR[13].R = _root.state9;
TERRITORIES_ARR[14].TL = _root.state21;
TERRITORIES_ARR[14].TR = _root.state17;
TERRITORIES_ARR[14].BR = _root.state10;
TERRITORIES_ARR[14].B = _root.state16;
TERRITORIES_ARR[14].L = _root.state24;
TERRITORIES_ARR[14].R = _root.state35;
TERRITORIES_ARR[14].T = _root.state19;
TERRITORIES_ARR[15].TL = _root.state24;
TERRITORIES_ARR[15].TR = _root.state10;
TERRITORIES_ARR[15].BR = _root.state4;
TERRITORIES_ARR[15].BL = _root.state20;
TERRITORIES_ARR[15].L = _root.state25;
TERRITORIES_ARR[15].R = _root.state12;
TERRITORIES_ARR[15].B = _root.state22;
TERRITORIES_ARR[15].T = _root.state15;
TERRITORIES_ARR[16].TL = _root.state26;
TERRITORIES_ARR[16].BR = _root.state35;
TERRITORIES_ARR[16].BL = _root.state15;
TERRITORIES_ARR[16].L = _root.state19;
TERRITORIES_ARR[16].R = _root.state2;
TERRITORIES_ARR[17].T = _root.state25;
TERRITORIES_ARR[17].TR = _root.state20;
TERRITORIES_ARR[17].L = _root.state28;
TERRITORIES_ARR[18].TR = _root.state26;
TERRITORIES_ARR[18].BR = _root.state15;
TERRITORIES_ARR[18].L = _root.state21;
TERRITORIES_ARR[18].R = _root.state17;
TERRITORIES_ARR[19].TR = _root.state16;
TERRITORIES_ARR[19].TL = _root.state25;
TERRITORIES_ARR[19].BL = _root.state18;
TERRITORIES_ARR[19].R = _root.state22;
TERRITORIES_ARR[20].T = _root.state30;
TERRITORIES_ARR[20].BR = _root.state15;
TERRITORIES_ARR[20].BL = _root.state24;
TERRITORIES_ARR[20].L = _root.state29;
TERRITORIES_ARR[20].R = _root.state19;
TERRITORIES_ARR[21].T = _root.state16;
TERRITORIES_ARR[21].R = _root.state4;
TERRITORIES_ARR[21].BR = _root.state27;
TERRITORIES_ARR[21].L = _root.state20;
TERRITORIES_ARR[22].BL = _root.state9;
TERRITORIES_ARR[23].TL = _root.state37;
TERRITORIES_ARR[23].TR = _root.state21;
TERRITORIES_ARR[23].R = _root.state15;
TERRITORIES_ARR[23].B = _root.state25;
TERRITORIES_ARR[23].BR = _root.state16;
TERRITORIES_ARR[23].BL = _root.state46;
TERRITORIES_ARR[23].L = _root.state34;
TERRITORIES_ARR[23].T = _root.state29;
TERRITORIES_ARR[24].TL = _root.state46;
TERRITORIES_ARR[24].TR = _root.state16;
TERRITORIES_ARR[24].B = _root.state18;
TERRITORIES_ARR[24].BR = _root.state20;
TERRITORIES_ARR[24].BL = _root.state28;
TERRITORIES_ARR[24].T = _root.state24;
TERRITORIES_ARR[25].TL = _root.state30;
TERRITORIES_ARR[25].BR = _root.state17;
TERRITORIES_ARR[25].BL = _root.state19;
TERRITORIES_ARR[26].TL = _root.state22;
TERRITORIES_ARR[26].TR = _root.state4;
TERRITORIES_ARR[27].TL = _root.state47;
TERRITORIES_ARR[27].TR = _root.state25;
TERRITORIES_ARR[27].R = _root.state18;
TERRITORIES_ARR[27].T = _root.state46;
TERRITORIES_ARR[28].TL = _root.state40;
TERRITORIES_ARR[28].B = _root.state24;
TERRITORIES_ARR[28].BR = _root.state21;
TERRITORIES_ARR[28].BL = _root.state37;
TERRITORIES_ARR[28].T = _root.state32;
TERRITORIES_ARR[28].TR = _root.state30;
TERRITORIES_ARR[29].TL = _root.state32;
TERRITORIES_ARR[29].B = _root.state21;
TERRITORIES_ARR[29].BL = _root.state29;
TERRITORIES_ARR[29].TR = _root.state26;
TERRITORIES_ARR[30].R = _root.state36;
TERRITORIES_ARR[30].BR = _root.state48;
TERRITORIES_ARR[30].TR = _root.state33;
TERRITORIES_ARR[30].BL = _root.state50;
TERRITORIES_ARR[31].TL = _root.state39;
TERRITORIES_ARR[31].B = _root.state29;
TERRITORIES_ARR[31].BR = _root.state30;
TERRITORIES_ARR[31].BL = _root.state40;
TERRITORIES_ARR[32].B = _root.state31;
TERRITORIES_ARR[32].BR = _root.state36;
TERRITORIES_ARR[32].T = _root.state42;
TERRITORIES_ARR[32].R = _root.state43;
TERRITORIES_ARR[33].L = _root.state38;
TERRITORIES_ARR[33].B = _root.state46;
TERRITORIES_ARR[33].T = _root.state37;
TERRITORIES_ARR[33].R = _root.state24;
TERRITORIES_ARR[34].BL = _root.state15;
TERRITORIES_ARR[34].TL = _root.state17;
TERRITORIES_ARR[34].T = _root.state2;
TERRITORIES_ARR[34].TR = _root.state7;
TERRITORIES_ARR[34].BR = _root.state10;
TERRITORIES_ARR[35].L = _root.state31;
TERRITORIES_ARR[35].TL = _root.state33;
TERRITORIES_ARR[35].TR = _root.state43;
TERRITORIES_ARR[35].BR = _root.state48;
TERRITORIES_ARR[35].R = _root.state45;
TERRITORIES_ARR[36].TL = _root.state44;
TERRITORIES_ARR[36].BL = _root.state38;
TERRITORIES_ARR[36].T = _root.state40;
TERRITORIES_ARR[36].TR = _root.state29;
TERRITORIES_ARR[36].BR = _root.state24;
TERRITORIES_ARR[36].B = _root.state34;
TERRITORIES_ARR[37].TL = _root.state44;
TERRITORIES_ARR[37].L = _root.state45;
TERRITORIES_ARR[37].BL = _root.state48;
TERRITORIES_ARR[37].TR = _root.state37;
TERRITORIES_ARR[37].R = _root.state34;
TERRITORIES_ARR[37].BR = _root.state46;
TERRITORIES_ARR[37].B = _root.state47;
TERRITORIES_ARR[38].L = _root.state41;
TERRITORIES_ARR[38].R = _root.state32;
TERRITORIES_ARR[38].B = _root.state40;
TERRITORIES_ARR[39].TL = _root.state41;
TERRITORIES_ARR[39].BL = _root.state44;
TERRITORIES_ARR[39].TR = _root.state32;
TERRITORIES_ARR[39].T = _root.state39;
TERRITORIES_ARR[39].BR = _root.state29;
TERRITORIES_ARR[39].B = _root.state37;
TERRITORIES_ARR[40].BL = _root.state43;
TERRITORIES_ARR[40].R = _root.state39;
TERRITORIES_ARR[40].BR = _root.state40;
TERRITORIES_ARR[40].B = _root.state44;
TERRITORIES_ARR[41].B = _root.state33;
TERRITORIES_ARR[41].BR = _root.state43;
TERRITORIES_ARR[41].TL = _root.state49;
TERRITORIES_ARR[42].TL = _root.state42;
TERRITORIES_ARR[42].L = _root.state33;
TERRITORIES_ARR[42].BL = _root.state36;
TERRITORIES_ARR[42].TR = _root.state41;
TERRITORIES_ARR[42].R = _root.state44;
TERRITORIES_ARR[42].BR = _root.state45;
TERRITORIES_ARR[43].L = _root.state43;
TERRITORIES_ARR[43].BL = _root.state45;
TERRITORIES_ARR[43].T = _root.state41;
TERRITORIES_ARR[43].TR = _root.state40;
TERRITORIES_ARR[43].BR = _root.state37;
TERRITORIES_ARR[43].B = _root.state38;
TERRITORIES_ARR[44].L = _root.state36;
TERRITORIES_ARR[44].TL = _root.state43;
TERRITORIES_ARR[44].TR = _root.state44;
TERRITORIES_ARR[44].R = _root.state38;
TERRITORIES_ARR[44].BR = _root.state47;
TERRITORIES_ARR[44].B = _root.state48;
TERRITORIES_ARR[45].L = _root.state47;
TERRITORIES_ARR[45].TL = _root.state38;
TERRITORIES_ARR[45].T = _root.state34;
TERRITORIES_ARR[45].TR = _root.state24;
TERRITORIES_ARR[45].BR = _root.state25;
TERRITORIES_ARR[45].B = _root.state28;
TERRITORIES_ARR[46].TL = _root.state45;
TERRITORIES_ARR[46].L = _root.state48;
TERRITORIES_ARR[46].T = _root.state38;
TERRITORIES_ARR[46].TR = _root.state46;
TERRITORIES_ARR[46].BR = _root.state28;
TERRITORIES_ARR[47].L = _root.state31;
TERRITORIES_ARR[47].TL = _root.state36;
TERRITORIES_ARR[47].T = _root.state45;
TERRITORIES_ARR[47].TR = _root.state38;
TERRITORIES_ARR[47].R = _root.state47;
TERRITORIES_ARR[48].BR = _root.state42;
TERRITORIES_ARR[49].TR = _root.state31;
}
function newTerritory(x, y) {
var _local3 = new Array(MAP_ARR[y][x]);
MAP_ARR[y][x]._inTerritory = true;
var _local8 = random2(Math.round(TERRITORY_SIZE_max - TERRITORY_SIZE_min)) + TERRITORY_SIZE_min;
var _local7 = false;
while ((_local3.length < _local8) && (!_local7)) {
var _local6 = 0;
var _local2 = 0;
while (_local2 < _local3.length) {
var _local4 = freeNeighboursArr2(_local3[_local2]);
if (_local4.length > 0) {
var _local5 = _local4[random2(_local4.length - 1)];
_local3.push(_local5);
_local5._inTerritory = true;
_local2 = _local3.length + 10;
} else {
_local6++;
}
_local2++;
}
if (_local6 >= _local3.length) {
_local7 = true;
}
}
if (_local7) {
if (_local3.length >= TERRITORY_SIZE_min) {
return(_local3);
}
burnTerritory(_local3);
return(new Array());
}
return(_local3);
}
function neighbourTerritoriesNo(terrArr) {
var _local6 = new Array();
var _local7 = 0;
while (_local7 < terrArr.length) {
var _local4 = terrArr[_local7];
var _local3 = [_local4.T, _local4.TL, _local4.L, _local4.TR, _local4.B, _local4.BR, _local4.R, _local4.BL];
var _local1 = 0;
while (_local1 < _local3.length) {
if ((_local3[_local1] != _local4) && (_local3[_local1] != undefined)) {
var _local5 = false;
var _local2 = 0;
while ((_local2 < _local6.length) && (!_local5)) {
if (_local6[_local2] == _local3[_local1]) {
_local5 = true;
}
_local2++;
}
if (!_local5) {
_local6.push(_local3[_local1]);
}
}
_local1++;
}
_local7++;
}
return(_local6.length);
}
function freeNeighboursArr(mc) {
var _local3 = new Array();
var _local2 = [mc.T, mc.TL, mc.L, mc.TR, mc.B, mc.BR, mc.R, mc.BL];
var _local1 = 0;
while (_local1 < _local2.length) {
if ((_local2[_local1] != undefined) && (_local2[_local1]._inTerritory == false)) {
_local3.push(_local2[_local1]);
}
_local1++;
}
return(_local3);
}
function freeNeighboursArr2(mc) {
var _local4 = new Array();
var _local2 = [mc.T, mc.TL, mc.L, mc.TR, mc.B, mc.BR, mc.R, mc.BL, mc.L, mc.R, mc.L, mc.R];
var _local1 = 0;
while (_local1 < _local2.length) {
if ((_local2[_local1] != undefined) && (_local2[_local1]._inTerritory == false)) {
_local4.push(_local2[_local1]);
}
_local1++;
}
return(_local4);
}
function burnTerritory(terrArr) {
var _local1 = 0;
while (_local1 < terrArr.length) {
terrArr[_local1]._inTerritory = true;
_local1++;
}
}
function randomUnits(players) {
var _local12 = Math.round(AV_UNITS_PER_TERRITORY * TERRITORIES_ARR.length);
var _local9 = new Array();
var _local10 = new Array();
var _local5 = 0;
while (_local5 < players) {
_local9.push(Math.floor(_local12 / players));
_local5++;
}
_local5 = 0;
while (_local5 < (_local12 - (Math.floor(_local12 / players) * players))) {
_local9[(_local9.length - 1) - _local5] = _local9[(_local9.length - 1) - _local5] + 1;
_local5++;
}
var _local15 = Math.floor(TERRITORIES_ARR.length / players);
var _local14 = TERRITORIES_ARR.length - (players * Math.floor(TERRITORIES_ARR.length / players));
_local5 = 0;
while (_local5 < players) {
_local10.push(_local15);
_local5++;
}
_local5 = 0;
while (_local5 < _local14) {
_local10[(_local10.length - 1) - _local5] = _local10[(_local10.length - 1) - _local5] + 1;
_local5++;
}
var _local13 = new Array();
var _local11 = new Array();
_local5 = 0;
while (_local5 < players) {
var _local4 = _local9[_local5];
var _local7 = _local10[_local5];
var _local8 = new Array();
var _local3 = 0;
while (_local3 < _local7) {
var _local2 = 0;
while ((_local2 > 8) || (_local2 < 1)) {
_local2 = random2(Math.floor(_local4 / 2) - 1) + 1;
}
if (_local3 == (_local7 - 1)) {
_local2 = _local4;
if (_local2 < 1) {
_local2 = 1;
}
}
_local8.push(_local2);
_local4 = _local4 - _local2;
_local3++;
}
_local11.push(0);
_local13.push(_local8);
_local5++;
}
_local5 = 0;
while (_local5 < TERRITORIES_ARR.length) {
TERRITORIES_ARR[_local5].unitsNO = _local13[TERRITORIES_ARR[_local5].player - 1][_local11[TERRITORIES_ARR[_local5].player - 1]];
_local11[TERRITORIES_ARR[_local5].player - 1]++;
_local5++;
}
}
function territoryA(terr) {
for (var _local3 in terr) {
}
CHOSEN_TERR_A = terr;
CHOSEN_TERR_B = undefined;
colorMC(CHOSEN_TERR_A.border, BORDER_ACTIVE_COLOR);
territoryMaxDepth(CHOSEN_TERR_A);
}
function territoryB(terr) {
CHOSEN_TERR_B = terr;
colorMC(CHOSEN_TERR_B.border, BORDER_ACTIVE_COLOR);
var _local2 = 0;
while (_local2 < TERRITORIES_ARR.length) {
if (TERRITORIES_ARR[_local2].border.getDepth() == (CHOSEN_TERR_A.border.getDepth() - 1)) {
CHOSEN_TERR_B.border.swapDepths(TERRITORIES_ARR[_local2].border);
_local2 = TERRITORIES_ARR.length;
}
_local2++;
}
}
function territoryMaxDepth(terrObj) {
var _local6 = TERRITORIES_ARR[0].getDepth();
var _local2 = new Array();
var _local5 = 0;
while (_local5 < TERRITORIES_ARR.length) {
if (TERRITORIES_ARR[_local5].getDepth() < _local6) {
_local6 = TERRITORIES_ARR[_local5].getDepth();
}
_local2.push(TERRITORIES_ARR[_local5]);
TERRITORIES_ARR[_local5].swapDepths((TERRITORIES_ARR[_local5].getDepth() + TERRITORIES_ARR.length) + _local5);
_local5++;
}
_local5 = 0;
while (_local5 < _local2.length) {
var _local3 = _local2.length - 1;
while (_local3 > _local5) {
if (_local2[_local3 - 1].getDepth() > _local2[_local3].getDepth()) {
var _local4 = _local2[_local3];
_local2[_local3] = _local2[_local3 - 1];
_local2[_local3 - 1] = _local4;
}
_local3--;
}
_local5++;
}
_local5 = 0;
while (_local5 < _local2.length) {
if (_local2[_local5] == terrObj) {
_local2.splice(_local5, 1);
}
_local5++;
}
_local2.push(terrObj);
_local5 = 0;
while (_local5 < _local2.length) {
_local2[_local5].swapDepths(_local6 + _local5);
_local5++;
}
}
function resetTerritory(terr) {
if (CHOSEN_TERR_B == terr) {
CHOSEN_TERR_B = undefined;
}
if (CHOSEN_TERR_A == terr) {
CHOSEN_TERR_A = undefined;
}
markTerritory(terr, terr.army, 0, terr.player);
}
function unMarkIfMarked() {
colorMC(CHOSEN_TERR_A.border, BORDER_COLOR);
deselectAll();
}
function selectA() {
if (!GAME_CLASS.isGameFinished()) {
var root = this;
var _local5 = 0;
while (_local5 < TERRITORIES_ARR.length) {
var _local6 = false;
var _local7 = neighboursAreasArr(TERRITORIES_ARR[_local5]);
var _local4 = 0;
while ((_local4 < _local7.length) && (!_local6)) {
if (_local7[_local4].army != TERRITORIES_ARR[_local5].army) {
_local6 = true;
}
_local4++;
}
if (_local6) {
var _local3 = TERRITORIES_ARR[_local5];
_local3.oDepth = _local3.getDepth();
if ((_local3.player == 1) && (_local3.unitsNO > 1)) {
_local3.onRelease = function () {
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
root.lightOffTerritory(this);
trace((((("THIS: " + this) + " ") + root.CHOSEN_TERR_A) + " ") + root.CHOSEN_TERR_B);
if (this == root.CHOSEN_TERR_A) {
var _local3 = new Color(this.border_mc);
_local3.setRGB(0);
root.lightOffTerritory(root.CHOSEN_TERR_A);
root.deselectB();
root.CHOSEN_TERR_A = new MovieClip();
root.CHOSEN_TERR_A = undefined;
trace("SAME");
} else {
var _local3 = new Color(this.border_mc);
_local3.setRGB(16777215);
var _local4 = new Color(root.CHOSEN_TERR_A.border_mc);
_local4.setRGB(0);
root.lightOffTerritory(root.CHOSEN_TERR_A);
root.deselectB();
root.territoryA(this);
root.selectB();
}
trace((((("THIS2: " + this) + " ") + root.CHOSEN_TERR_A) + " ") + root.CHOSEN_TERR_B);
};
_local3.onRollOver = function () {
if (this != root.CHOSEN_TERR_A) {
root.lightOnTerritory(this);
}
};
_local3.onRollOut = (_local3.onReleaseOutside = function () {
if (this != root.CHOSEN_TERR_A) {
root.lightOffTerritory(this);
}
});
}
}
_local5++;
}
}
}
function selectB() {
findAneighbours();
var root = this;
var _local3 = 0;
while (_local3 < TERR_A_NArr.length) {
trace((("Territory A B: " + root.CHOSEN_TERR_A) + " ") + CHOSEN_TERR_A);
if (TERR_A_NArr[_local3].player != 1) {
var _local4 = TERR_A_NArr[_local3];
_local4.onRelease = function () {
if (root.CHOSEN_TERR_A != undefined) {
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
root.territoryB(this);
root.fightAB();
root.deselectAll();
}
};
} else {
root.deselectA();
}
_local3++;
}
}
function deselectB() {
findAneighbours();
var _local5 = this;
var _local3 = 0;
while (_local3 < TERR_A_NArr.length) {
if (TERR_A_NArr[_local3].player != 1) {
var _local2 = 0;
while (_local2 < TERR_A_NArr[_local3].arr.length) {
var _local4 = TERR_A_NArr[_local3].arr[_local2];
delete _local4.onRelease;
_local2++;
}
}
_local3++;
}
}
function deselectA() {
var _local5 = this;
var _local4 = 0;
while (_local4 < TERR_A_NArr.length) {
if (TERR_A_NArr[_local4].player == 1) {
var _local3 = 0;
while (_local3 < TERR_A_NArr[_local4].arr.length) {
var _local2 = TERR_A_NArr[_local4].arr[_local3];
delete _local2.onRollOut;
delete _local2.onReleaseOutside;
delete _local2.onRollOver;
delete _local2.onRelease;
_local3++;
}
}
_local4++;
}
}
function deselectAll() {
var _local2 = 0;
while (_local2 < TERRITORIES_ARR.length) {
var _local3 = new Color(TERRITORIES_ARR[_local2].border_mc);
_local3.setRGB(0);
delete TERRITORIES_ARR[_local2].onRollOver;
delete TERRITORIES_ARR[_local2].onRollOut;
delete TERRITORIES_ARR[_local2].onReleaseOutside;
delete TERRITORIES_ARR[_local2].onRelease;
_local2++;
}
}
function findAneighbours() {
TERR_A_NArr = new Array();
var _local7 = CHOSEN_TERR_A.arr;
for (var _local6 in CHOSEN_TERR_A) {
}
var _local5 = [CHOSEN_TERR_A.T, CHOSEN_TERR_A.TL, CHOSEN_TERR_A.L, CHOSEN_TERR_A.TR, CHOSEN_TERR_A.B, CHOSEN_TERR_A.BR, CHOSEN_TERR_A.R, CHOSEN_TERR_A.BL];
var _local3 = 0;
while (_local3 < _local5.length) {
if ((_local5[_local3] != CHOSEN_TERR_A) && (_local5[_local3] != undefined)) {
var _local4 = false;
var _local2 = 0;
while ((_local2 < TERR_A_NArr.length) && (!_local4)) {
if (TERR_A_NArr[_local2] == _local5[_local3]) {
_local4 = true;
}
_local2++;
}
if (!_local4) {
TERR_A_NArr.push(_local5[_local3]);
}
}
_local3++;
}
}
function neighboursAreasArr(terr) {
var _local5 = new Array();
var _local3 = [terr.T, terr.TL, terr.L, terr.TR, terr.B, terr.BR, terr.R, terr.BL];
var _local6 = 0;
while (_local6 < _local3.length) {
var _local7 = _local3[_local6];
var _local1 = 0;
while (_local1 < _local3.length) {
if ((_local3[_local1] != _local7) && (_local3[_local1] != undefined)) {
var _local4 = false;
var _local2 = 0;
while ((_local2 < _local5.length) && (!_local4)) {
if (_local5[_local2] == _local3[_local1]) {
_local4 = true;
}
_local2++;
}
if (!_local4) {
_local5.push(_local3[_local1]);
}
}
_local1++;
}
_local6++;
}
return(_local5);
}
function lightOnTerritory(terrObj) {
trace("LIGHT ON: " + lightOnTerritory);
terrObj._alpha = 70;
}
function lightOffTerritory(terrObj) {
terrObj._alpha = 100;
}
function fightAB() {
GAME_CLASS.FIGHTBOX.resetWinner();
GAME_CLASS.FIGHTBOX.fight(CHOSEN_TERR_A, CHOSEN_TERR_B);
}
function winnerFound() {
if (GAME_CLASS.FIGHTBOX.WINNER == CHOSEN_TERR_A) {
winA();
if ((GAME_CLASS.PLAYER_MOVE == 1) && (!GAME_CLASS.isGameFinished())) {
_global.setTimeout(mx.utils.Delegate.create(GAME_CLASS, GAME_CLASS.showBiggestArea), 300);
}
}
if (GAME_CLASS.FIGHTBOX.WINNER == CHOSEN_TERR_B) {
winB();
}
var _local4 = new Array();
var _local3 = 1;
while (_local3 <= GAME_CLASS.PLAYERS_NO) {
_local4.push(GAME_CLASS.unitsToAdd(_local3));
_local3++;
}
GAME_CLASS.UNITS_LIST.refreshList(_local4, TERRITORIES_ARR, GAME_CLASS.FIGHTBOX.WINNER);
CHOSEN_TERR_A = (CHOSEN_TERR_B = new MovieClip());
}
function winA() {
trace((("WINNER: " + CHOSEN_TERR_A.army) + " ") + CHOSEN_TERR_B);
switch (CHOSEN_TERR_A.army) {
case 1 :
markTerritory(CHOSEN_TERR_B, 1, 0, CHOSEN_TERR_A.player);
break;
case 2 :
markTerritory(CHOSEN_TERR_B, 2, 0, CHOSEN_TERR_A.player);
break;
case 3 :
markTerritory(CHOSEN_TERR_B, 3, 0, CHOSEN_TERR_A.player);
break;
case 4 :
markTerritory(CHOSEN_TERR_B, 4, 0, CHOSEN_TERR_A.player);
break;
case 5 :
markTerritory(CHOSEN_TERR_B, 5, 0, CHOSEN_TERR_A.player);
break;
case 6 :
markTerritory(CHOSEN_TERR_B, 6, 0, CHOSEN_TERR_A.player);
break;
case 7 :
markTerritory(CHOSEN_TERR_B, 7, 0, CHOSEN_TERR_A.player);
break;
case 8 :
markTerritory(CHOSEN_TERR_B, 8, 0, CHOSEN_TERR_A.player);
break;
}
CHOSEN_TERR_B.unitsNO = CHOSEN_TERR_A.unitsNO - 1;
CHOSEN_TERR_A.unitsNO = 1;
CHOSEN_TERR_B.army = CHOSEN_TERR_A.army;
CHOSEN_TERR_A.unitsMC.setUnit(CHOSEN_TERR_A.army, CHOSEN_TERR_A.unitsNO, CHOSEN_TERR_A.player);
CHOSEN_TERR_B.unitsMC.setUnit(CHOSEN_TERR_A.army, CHOSEN_TERR_B.unitsNO, CHOSEN_TERR_B.player);
deselectAll();
}
function winB() {
trace("B WINNER");
CHOSEN_TERR_A.unitsNO = 1;
CHOSEN_TERR_A.unitsMC.setUnit(CHOSEN_TERR_A.army, CHOSEN_TERR_A.unitsNO, CHOSEN_TERR_A.player);
resetTerritory(CHOSEN_TERR_A);
resetTerritory(CHOSEN_TERR_B);
deselectAll();
}
function colorMC(mc, cl) {
var _local1 = new Color(mc);
_local1.setRGB(cl);
}
function rad2deg(rad) {
return((rad * 180) / Math.PI);
}
function deg2rad(deg) {
return((deg * Math.PI) / 180);
}
function random2(z) {
return(Math.round(Math.random() * z));
}
function shuffledArray(arr) {
var _local5 = 0;
while (_local5 < 30) {
var _local4 = random2(arr.length - 1);
var _local3 = random2(arr.length - 1);
var _local6 = arr[_local4];
arr[_local4] = arr[_local3];
arr[_local3] = _local6;
_local5++;
}
return(arr);
}
function clearAll() {
var _local2 = 0;
while (_local2 < rubbish_arr.length) {
rubbish_arr[_local2].removeMovieClip();
_local2++;
}
}
var TERRITORY_SIZE_min = 17;
var TERRITORY_SIZE_max = 28;
var BORDER_COLOR = 4143636;
var BORDER_ACTIVE_COLOR = 16777215;
var BORDER_OVER_COLOR = 13421772;
var BORDER_SIZE = 2;
var AV_UNITS_PER_TERRITORY = 3;
var COLOR_ARR = [11304249, 7041575, 4541257, 10439479, 5801101, 7419137, 8092812, 4866561];
}
Symbol 1138 MovieClip [__Packages.classes.models.Hex] Frame 0
class classes.models.Hex
{
var _CORNERS;
function Hex () {
_CORNERS = [{x:-9.5, y:-4.25}, {x:0, y:-8.45}, {x:9.5, y:-4.25}, {x:9.5, y:4.25}, {x:0, y:8.45}, {x:-9.5, y:4.25}];
var _local2 = 0;
while (_local2 < _CORNERS.length) {
_CORNERS[_local2].x = _CORNERS[_local2].x * 0.89;
_CORNERS[_local2].y = _CORNERS[_local2].y * 0.89;
_local2++;
}
}
function get TL() {
return(_CORNERS[0]);
}
function get T() {
return(_CORNERS[1]);
}
function get TR() {
return(_CORNERS[2]);
}
function get BR() {
return(_CORNERS[3]);
}
function get B() {
return(_CORNERS[4]);
}
function get BL() {
return(_CORNERS[5]);
}
function get HEIGHT() {
return(B.y - T.y);
}
function get WIDTH() {
return(TR.x - TL.x);
}
}
Symbol 1139 MovieClip [__Packages.classes.GameAI] Frame 0
class classes.GameAI
{
var GAME_CLASS, PLAYER, CHOSEN_TERR_A, CHOSEN_TERR_B;
function GameAI (gc) {
GAME_CLASS = gc;
}
function cleverMove(player, oldID) {
if ((!GAME_CLASS.isGameFinished()) && (_global.gameAccess == true)) {
if (_global.GAME_PAUSE == false) {
if (!player) {
player = PLAYER;
} else {
PLAYER = player;
}
var _local3;
var _local10;
var _local6 = false;
var _local9 = 0;
while ((_local9 < GAME_CLASS.MAP.TERRITORIES_ARR.length) && (!_local6)) {
trace((("AI MAP PLAYER: " + GAME_CLASS.MAP.TERRITORIES_ARR[_local9].player) + " ") + player);
if (GAME_CLASS.MAP.TERRITORIES_ARR[_local9].player == player) {
_local3 = GAME_CLASS.MAP.TERRITORIES_ARR[_local9];
var _local8 = neighboursArr(_local3);
var _local5 = 0;
while ((_local5 < _local8.length) && (!_local6)) {
if (_local8[_local5].player != _local3.player) {
var _local7 = neighboursArr(_local8[_local5]);
var _local4 = 0;
while ((_local4 < _local7.length) && (!_local6)) {
if ((_local7[_local4].player != _local3.player) && (((_local3.unitsNO - 1) - _local7[_local4].unitsNO) >= 2)) {
_local10 = _local8[_local5];
_local6 = true;
}
_local4++;
}
}
_local5++;
}
}
_local9++;
}
if (!_local6) {
_local9 = 0;
while ((_local9 < GAME_CLASS.MAP.TERRITORIES_ARR.length) && (!_local6)) {
if (GAME_CLASS.MAP.TERRITORIES_ARR[_local9].player == player) {
_local3 = GAME_CLASS.MAP.TERRITORIES_ARR[_local9];
if (_local3.unitsNO > 1) {
var _local8 = neighboursArr(_local3);
var _local5 = 0;
while ((_local5 < _local8.length) && (!_local6)) {
if (((_local8[_local5].player != _local3.player) && (_local8[_local5].player != undefined)) && (_local3.player != undefined)) {
if (_local3.unitsNO >= _local8[_local5].unitsNO) {
_local10 = _local8[_local5];
_local6 = true;
}
}
_local5++;
}
}
}
_local9++;
}
}
if (!_local6) {
GAME_CLASS.addUnits();
} else {
CHOSEN_TERR_A = _local3;
CHOSEN_TERR_B = _local10;
GAME_CLASS.MAP.territoryA(CHOSEN_TERR_A);
GAME_CLASS.MAP.territoryB(CHOSEN_TERR_B);
trace((("AI FIGHT: " + CHOSEN_TERR_A) + " ") + CHOSEN_TERR_B);
trace((("Player: " + CHOSEN_TERR_A.player) + " ") + CHOSEN_TERR_B.player);
trace((("Army: " + CHOSEN_TERR_A.Army) + " ") + CHOSEN_TERR_B.Army);
_global.setTimeout(mx.utils.Delegate.create(GAME_CLASS.MAP, GAME_CLASS.MAP.fightAB), 700);
}
} else {
_global.setTimeout(mx.utils.Delegate.create(this, cleverMove), 100);
}
}
}
function neighboursArr(terr) {
var _local5 = new Array();
var _local6 = terr;
var _local4 = [_local6.T, _local6.TL, _local6.L, _local6.TR, _local6.B, _local6.BR, _local6.R, _local6.BL];
var _local2 = 0;
while (_local2 < _local4.length) {
if ((_local4[_local2] != _local6) && (_local4[_local2] != undefined)) {
var _local3 = false;
var _local1 = 0;
while ((_local1 < _local5.length) && (!_local3)) {
if (_local5[_local1] == _local4[_local2]) {
_local3 = true;
}
_local1++;
}
if (!_local3) {
_local5.push(_local4[_local2]);
}
}
_local2++;
}
return(_local5);
}
function markTerr(terr, st) {
var _local1 = 0;
while (_local1 < terr.arr.length) {
terr.arr[_local1]._alpha = 100 - (st * 10);
_local1++;
}
}
function colorMC(mc, cl) {
var _local1 = new Color(mc);
_local1.setRGB(cl);
}
}
Symbol 1140 MovieClip [__Packages.classes.ww_interface.Countdown] Frame 0
class classes.ww_interface.Countdown extends MovieClip
{
var ready1, ready2, N1, N2, no1, no2;
function Countdown () {
super();
ready1 = false;
ready2 = false;
N1 = 0;
N2 = 0;
}
function setTo(no) {
trace("SET TO: " + no);
no1._y = -no1.no0._y;
no2._y = -no2.no0._y;
ready1 = false;
ready2 = false;
if (no < 10) {
N1 = 0;
} else {
N1 = Math.floor(no / 10);
}
N2 = no - (10 * N1);
}
function countTo() {
no1.onEnterFrame = mx.utils.Delegate.create(this, moveNo1);
no2.onEnterFrame = mx.utils.Delegate.create(this, moveNo2);
}
function moveNo1() {
no1._y = no1._y + (((-no1["no" + N1]._y) - no1._y) / 2);
if (Math.abs(no1._y + no1["no" + N1]._y) < 1) {
trace("1 READY");
ready1 = true;
delete no1.onEnterFrame;
}
}
function moveNo2() {
no2._y = no2._y + (((-no2["no" + N2]._y) - no2._y) / 4);
if (Math.abs(no2._y + no2["no" + N2]._y) < 1) {
trace("2 READY");
ready2 = true;
delete no2.onEnterFrame;
}
}
function finished() {
if (ready1 && (ready2)) {
return(true);
}
return(false);
}
}
Symbol 1141 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 1142 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 1143 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 1144 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 1145 MovieClip [__Packages.classes.Debug] Frame 0
class classes.Debug
{
var _stage;
function Debug (stage) {
_stage = stage;
}
function showError(com) {
_stage.debuger.removeMovieClip();
var _local2 = _stage.attachMovie("debuger", "debuger", _stage.getNextHighestDepth(), {_x:40, _y:40});
_local2.message.autoSize = true;
_local2.message.htmlText = ("<b>" + com) + "</b>";
_local2.bg._width = _local2.message._width + 30;
_local2.bg._height = _local2.message._height + 8;
_local2.onRollOver = function () {
this.removeMovieClip();
};
}
}
Symbol 170 MovieClip [CLOUD] Frame 1
Symbol 170 MovieClip [CLOUD] Frame 2
no.no.text = "+" + toAdd;
Symbol 170 MovieClip [CLOUD] Frame 7
_global.SOUNDS.playSound("kolko.wav");
Symbol 170 MovieClip [CLOUD] Frame 29
this.removeMovieClip();
stop();
Symbol 175 MovieClip [COUNTDOWN] Frame 1
#initclip 21
Object.registerClass("COUNTDOWN", classes.ww_interface.Countdown);
#endinitclip
Symbol 176 MovieClip [HEX] Frame 1
stop();
Symbol 176 MovieClip [HEX] Frame 2
stop();
Symbol 176 MovieClip [HEX] Frame 3
stop();
Symbol 176 MovieClip [HEX] Frame 4
stop();
Symbol 176 MovieClip [HEX] Frame 5
stop();
Symbol 176 MovieClip [HEX] Frame 6
stop();
Symbol 176 MovieClip [HEX] Frame 7
stop();
Symbol 176 MovieClip [HEX] Frame 8
stop();
Symbol 181 MovieClip [WAITER] Frame 1
#initclip 17
Object.registerClass("WAITER", classes.ww_interface.Waiter);
#endinitclip
Symbol 187 MovieClip [UNITS_ADDER] Frame 24
this.unitsMC.setUnit(this.army, this.newUnitsNO, this.player);
this.removeMovieClip();
Symbol 197 MovieClip Frame 1
trace("BG 1");
stop();
Symbol 197 MovieClip Frame 2
trace("BG 2");
stop();
Symbol 197 MovieClip Frame 3
trace("BG 3");
stop();
Symbol 197 MovieClip Frame 4
trace("BG 4");
stop();
Symbol 197 MovieClip Frame 5
trace("BG 5");
stop();
Symbol 197 MovieClip Frame 6
trace("BG 6");
stop();
Symbol 197 MovieClip Frame 7
stop();
Symbol 197 MovieClip Frame 8
stop();
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 2
stop();
Symbol 214 MovieClip Frame 3
stop();
Symbol 214 MovieClip Frame 4
stop();
Symbol 214 MovieClip Frame 5
stop();
Symbol 214 MovieClip Frame 6
stop();
Symbol 214 MovieClip Frame 7
stop();
Symbol 214 MovieClip Frame 8
stop();
Symbol 219 MovieClip [UNITS_LIST] Frame 1
#initclip 18
Object.registerClass("UNITS_LIST", classes.ww_interface.Units_list);
#endinitclip
Symbol 220 MovieClip [HEX2] Frame 1
stop();
Symbol 220 MovieClip [HEX2] Frame 2
stop();
Symbol 220 MovieClip [HEX2] Frame 3
stop();
Symbol 220 MovieClip [HEX2] Frame 4
stop();
Symbol 220 MovieClip [HEX2] Frame 5
stop();
Symbol 220 MovieClip [HEX2] Frame 6
stop();
Symbol 220 MovieClip [HEX2] Frame 7
stop();
Symbol 220 MovieClip [HEX2] Frame 8
stop();
Symbol 225 MovieClip Frame 15
stop();
Symbol 228 MovieClip Frame 15
stop();
Symbol 231 MovieClip Frame 15
stop();
Symbol 234 MovieClip Frame 15
stop();
Instance of Symbol 233 MovieClip in Symbol 234 MovieClip Frame 15
/* no clip actions */
Symbol 237 MovieClip Frame 15
stop();
Symbol 240 MovieClip Frame 15
stop();
Symbol 243 MovieClip Frame 15
stop();
Symbol 246 MovieClip Frame 15
stop();
Symbol 256 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 2
stop();
Symbol 256 MovieClip Frame 3
stop();
Symbol 256 MovieClip Frame 4
stop();
Symbol 256 MovieClip Frame 5
stop();
Symbol 256 MovieClip Frame 6
stop();
Symbol 256 MovieClip Frame 7
stop();
Symbol 256 MovieClip Frame 8
stop();
Symbol 267 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 2
stop();
Symbol 267 MovieClip Frame 3
stop();
Symbol 267 MovieClip Frame 4
stop();
Symbol 267 MovieClip Frame 5
stop();
Symbol 267 MovieClip Frame 6
stop();
Symbol 267 MovieClip Frame 7
stop();
Symbol 267 MovieClip Frame 8
stop();
Symbol 275 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 2
stop();
Symbol 275 MovieClip Frame 3
stop();
Symbol 275 MovieClip Frame 4
stop();
Symbol 275 MovieClip Frame 5
stop();
Symbol 275 MovieClip Frame 6
stop();
Symbol 275 MovieClip Frame 7
stop();
Symbol 275 MovieClip Frame 8
stop();
Symbol 276 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 2
stop();
Symbol 276 MovieClip Frame 3
stop();
Symbol 276 MovieClip Frame 4
stop();
Symbol 276 MovieClip Frame 5
stop();
Symbol 276 MovieClip Frame 6
stop();
Symbol 276 MovieClip Frame 7
stop();
Symbol 276 MovieClip Frame 8
stop();
Symbol 285 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 2
stop();
Symbol 285 MovieClip Frame 3
stop();
Symbol 285 MovieClip Frame 4
stop();
Symbol 285 MovieClip Frame 5
stop();
Symbol 285 MovieClip Frame 6
stop();
Symbol 285 MovieClip Frame 7
stop();
Symbol 285 MovieClip Frame 8
stop();
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 2
stop();
Symbol 293 MovieClip Frame 3
stop();
Symbol 293 MovieClip Frame 4
stop();
Symbol 293 MovieClip Frame 5
stop();
Symbol 293 MovieClip Frame 6
stop();
Symbol 293 MovieClip Frame 7
stop();
Symbol 293 MovieClip Frame 8
stop();
Symbol 300 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 2
stop();
Symbol 300 MovieClip Frame 3
stop();
Symbol 300 MovieClip Frame 4
stop();
Symbol 300 MovieClip Frame 5
stop();
Symbol 300 MovieClip Frame 6
stop();
Symbol 300 MovieClip Frame 7
stop();
Symbol 300 MovieClip Frame 8
stop();
Symbol 307 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 2
stop();
Symbol 307 MovieClip Frame 3
stop();
Symbol 307 MovieClip Frame 4
stop();
Symbol 307 MovieClip Frame 5
stop();
Symbol 307 MovieClip Frame 6
stop();
Symbol 307 MovieClip Frame 7
stop();
Symbol 307 MovieClip Frame 8
stop();
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 2
stop();
Symbol 316 MovieClip Frame 3
stop();
Symbol 316 MovieClip Frame 4
stop();
Symbol 316 MovieClip Frame 5
stop();
Symbol 316 MovieClip Frame 6
stop();
Symbol 316 MovieClip Frame 7
stop();
Symbol 316 MovieClip Frame 8
stop();
Symbol 323 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 2
stop();
Symbol 323 MovieClip Frame 3
stop();
Symbol 323 MovieClip Frame 4
stop();
Symbol 323 MovieClip Frame 5
stop();
Symbol 323 MovieClip Frame 6
stop();
Symbol 323 MovieClip Frame 7
stop();
Symbol 323 MovieClip Frame 8
stop();
Symbol 330 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 2
stop();
Symbol 330 MovieClip Frame 3
stop();
Symbol 330 MovieClip Frame 4
stop();
Symbol 330 MovieClip Frame 5
stop();
Symbol 330 MovieClip Frame 6
stop();
Symbol 330 MovieClip Frame 7
stop();
Symbol 330 MovieClip Frame 8
stop();
Symbol 337 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 2
stop();
Symbol 337 MovieClip Frame 3
stop();
Symbol 337 MovieClip Frame 4
stop();
Symbol 337 MovieClip Frame 5
stop();
Symbol 337 MovieClip Frame 6
stop();
Symbol 337 MovieClip Frame 7
stop();
Symbol 337 MovieClip Frame 8
stop();
Symbol 338 MovieClip [UNIT] Frame 1
#initclip 19
Object.registerClass("UNIT", classes.models.Unit);
#endinitclip
stop();
Symbol 338 MovieClip [UNIT] Frame 2
stop();
Symbol 338 MovieClip [UNIT] Frame 3
stop();
Symbol 338 MovieClip [UNIT] Frame 4
stop();
Symbol 338 MovieClip [UNIT] Frame 5
stop();
Symbol 338 MovieClip [UNIT] Frame 6
stop();
Symbol 338 MovieClip [UNIT] Frame 7
stop();
Symbol 338 MovieClip [UNIT] Frame 8
stop();
Symbol 339 MovieClip Frame 1
army_ico.flag._visible = false;
Symbol 346 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 2
_global.SOUNDS.playSound("kr\u00F3tki wybuch na start.wav");
Symbol 346 MovieClip Frame 25
stop();
Symbol 347 MovieClip [FIGHTBOX] Frame 1
#initclip 20
Object.registerClass("FIGHTBOX", classes.ww_interface.Fightbox);
#endinitclip
Symbol 362 MovieClip Frame 1
this._visible = false;
Symbol 416 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 2
stop();
Symbol 416 MovieClip Frame 3
stop();
Symbol 416 MovieClip Frame 4
stop();
Symbol 416 MovieClip Frame 5
stop();
Symbol 416 MovieClip Frame 6
stop();
Symbol 416 MovieClip Frame 7
stop();
Symbol 416 MovieClip Frame 8
stop();
Symbol 416 MovieClip Frame 9
var createOwn = SharedObject.getLocal("ownParty");
if (createOwn.data.partyName != undefined) {
createYourOwn_txt.text = createOwn.data.partyName;
}
stop();
Symbol 420 MovieClip Frame 1
stop();
Symbol 420 MovieClip Frame 2
stop();
Symbol 427 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 2
stop();
Symbol 432 MovieClip Frame 1
stop();
Symbol 432 MovieClip Frame 2
stop();
Symbol 437 MovieClip Frame 1
stop();
Symbol 437 MovieClip Frame 2
stop();
Symbol 440 MovieClip Frame 1
stop();
Symbol 440 MovieClip Frame 2
stop();
Symbol 443 MovieClip Frame 1
stop();
Symbol 443 MovieClip Frame 2
stop();
Symbol 446 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 2
stop();
Symbol 449 MovieClip Frame 1
stop();
Symbol 449 MovieClip Frame 2
stop();
Symbol 452 MovieClip Frame 1
stop();
Symbol 452 MovieClip Frame 2
stop();
Symbol 455 MovieClip Frame 1
stop();
Symbol 455 MovieClip Frame 2
stop();
Symbol 458 MovieClip Frame 1
stop();
Symbol 458 MovieClip Frame 2
stop();
Symbol 466 MovieClip Frame 1
stop();
Symbol 466 MovieClip Frame 8
stop();
Symbol 467 MovieClip Frame 1
function link1() {
getURL ("http://www.tagemigames.com/index.php?lang=en", "Top");
}
function link2() {
getURL ("http://www.freakytikiproductions.com", "Top");
}
function link3() {
getURL ("http://www.addictinggames.com", "Top");
}
tagemi_btn.onRelease = link1;
tagemi_btn.onRollOver = function () {
this.gotoAndPlay(2);
};
tagemi_btn.onRollOut = function () {
this.gotoAndPlay(9);
};
ft_btn.onRelease = link2;
ft_btn.onRollOver = function () {
this.gotoAndPlay(2);
};
ft_btn.onRollOut = function () {
this.gotoAndPlay(9);
};
ag_btn.onRelease = link3;
ag_btn.onRollOver = function () {
this.gotoAndPlay(2);
};
ag_btn.onRollOut = function () {
this.gotoAndPlay(9);
};
Symbol 468 MovieClip Frame 1
_global.SOUNDS.menuSoundtrack();
Symbol 468 MovieClip Frame 86
_parent.gotoAndPlay(_parent._currentframe + 1);
Symbol 472 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 2
stop();
Symbol 479 MovieClip Frame 1
stop();
Symbol 480 MovieClip Frame 1
function setArmy() {
if (army._currentframe == 1) {
_parent.ARMY = 0;
}
if (army._currentframe == 2) {
_parent.ARMY = 1;
}
if (army._currentframe == 3) {
_parent.ARMY = 2;
}
if (army._currentframe == 4) {
_parent.ARMY = 3;
}
if (army._currentframe == 5) {
_parent.ARMY = 4;
}
if (army._currentframe == 6) {
_parent.ARMY = 5;
}
if (army._currentframe == 7) {
_parent.ARMY = 6;
}
if (army._currentframe == 8) {
_parent.ARMY = 7;
}
if (army._currentframe == 9) {
_parent.ARMY = 8;
}
if (popUp_mc._xscale != 100) {
var _local6 = new mx.transitions.Tween(gameInfo_mc, "_xscale", mx.transitions.easing.Strong.easeOut, 100, 0, 0.5, true);
var _local5 = new mx.transitions.Tween(gameInfo_mc, "_yscale", mx.transitions.easing.Strong.easeOut, 100, 0, 0.5, true);
var _local3 = new mx.transitions.Tween(popUp_mc, "_xscale", mx.transitions.easing.Strong.easeOut, 0, 100, 0.5, true);
var _local4 = new mx.transitions.Tween(popUp_mc, "_yscale", mx.transitions.easing.Strong.easeOut, 0, 100, 0.5, true);
}
if (_parent.ARMY > 0) {
_root.played = true;
popUp_mc._visible = true;
popUp_mc.info_txt.text = infoArray[_parent.ARMY];
} else {
popUp_mc._visible = false;
}
}
function resetPlayers() {
var _local2 = 2;
while (_local2 <= 8) {
this["p" + _local2].gotoAndStop(1);
_local2++;
}
}
function rollButton(mc) {
mc.onRollOver = function () {
this.gotoAndStop(2);
};
mc.onRollOut = (mc.onReleaseOutside = function () {
this.gotoAndStop(1);
});
}
rollButton(PLAY_BTN);
rollButton(MUSIC_BTN_ON);
rollButton(MUSIC_BTN_OFF);
rollButton(HELP_BTN);
popUp_mc._xscale = (popUp_mc._yscale = 0);
var xScaleT2 = (new mx.transitions.Tween(gameInfo_mc, "_xscale", mx.transitions.easing.Strong.easeOut, 0, 100, 0.5, true));
var yScaleT2 = (new mx.transitions.Tween(gameInfo_mc, "_yscale", mx.transitions.easing.Strong.easeOut, 0, 100, 0.5, true));
var infoArray = new Array();
infoArray[1] = "Democratic Party\nLead Candidate: Barack Obama\nMascot: Donkey\nSlogan: Si Se Puede!";
infoArray[2] = "Republican Party\nLead Candidate: John McCain\nMascot: Elephant\nSlogan: We Know What\u2019s Best for You.";
infoArray[3] = "Green Party\nLead Candidate: Cynthia McKinney\nMascot: Brocolli\nSlogan: Legalize It!";
infoArray[4] = "Libertarian Party\nLead Candidate: Bob Barr\nMascot: Lone Wolf\nSlogan: You Kids Get Out of my Yard!";
infoArray[5] = "Black Panther Party\nLead Candidate: None of Your Business\nMascot: Black Panther\nSlogan: The Revolution Will Not Be Televised.";
infoArray[6] = "Boston Tea Party\nLead Candidate: A Middle-Aged White Guy, Dressed as an Indian\nMascot: See Above\nSlogan: Expel the Hated British!";
infoArray[7] = "Communist Party\nLead Candidate: Che Guevara\nMascot: Che Guevara\nSlogan: Viva Che!";
infoArray[8] = "Create Your Own\nLead Candidate: You!\nMascot: You in an Animal Costume!\nSlogan: Why Aren\u2019t You Voting for Me?";
PLAY_BTN.onRelease = function () {
if (_root.ARMY == 0) {
return(undefined);
}
if (_root.ARMY == 8) {
_root.played = true;
trace("CREATING OWN: " + army.createYourOwn_txt.text);
var _local4 = SharedObject.getLocal("ownParty");
_local4.data.partyName = army.createYourOwn_txt.text;
_local4.flush();
}
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
_parent.OUTRO.gotoAndPlay(2);
};
HELP_BTN.onRelease = function () {
if (_parent.HELP_MC._currentframe == 1) {
_parent.HELP_MC.gotoAndPlay(2);
_global.SOUNDS.playSound("okno help open.wav");
_parent.HELP_MC._visible = true;
}
};
MUSIC_BTN_ON._visible = !_global.ARE_SOUNDS;
MUSIC_BTN_OFF.onRelease = function () {
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
this._visible = false;
MUSIC_BTN_ON.gotoAndStop(2);
MUSIC_BTN_ON._visible = true;
_global.ARE_SOUNDS = false;
_global.SOUNDS.killSoundtrack();
};
MUSIC_BTN_ON.onRelease = function () {
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
this._visible = false;
MUSIC_BTN_OFF.gotoAndStop(2);
MUSIC_BTN_OFF._visible = true;
_global.ARE_SOUNDS = true;
_global.SOUNDS.menuSoundtrack();
};
army.gotoAndStop(_parent.ARMY);
nn.onRelease = function () {
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
var _local2 = army._currentframe + 1;
if (_local2 > 9) {
_local2 = 1;
}
army.gotoAndStop(_local2);
setArmy();
};
pp.onRelease = function () {
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
var _local2 = army._currentframe - 1;
if (_local2 < 2) {
_local2 = army._totalframes;
}
army.gotoAndStop(_local2);
setArmy();
};
nn.onRollOver = (pp.onRollOver = function () {
this.gotoAndStop(2);
});
nn.onRollOut = (nn.onReleaseOutside = (pp.onRollOut = (pp.onReleaseOutside = function () {
this.gotoAndStop(1);
})));
this["p" + _parent.PL].gotoAndStop(2);
var CHOSEN = this["p" + _parent.PL];
var i = 2;
while (i <= 8) {
this["p" + i].i = i;
this["p" + i].onRelease = function () {
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
resetPlayers();
CHOSEN.gotoAndStop(1);
CHOSEN = this;
this.gotoAndStop(2);
_parent.PL = this.i;
};
this["p" + i].onRollOver = function () {
if (CHOSEN != this) {
this.gotoAndStop(2);
}
};
this["p" + i].onRollOut = (this["p" + i].onReleaseOutside = function () {
if (CHOSEN != this) {
this.gotoAndStop(1);
}
});
i++;
}
Symbol 482 MovieClip Frame 1
this.onRelease = function () {
};
this.useHandCursor = false;
this.enabled = false;
Symbol 486 MovieClip Frame 1
stop();
Symbol 486 MovieClip Frame 2
stop();
Symbol 488 MovieClip Frame 20
stop();
Symbol 492 MovieClip Frame 1
mm.gotoAndPlay(1);
stop();
Symbol 492 MovieClip Frame 2
mm.gotoAndPlay(1);
stop();
Symbol 492 MovieClip Frame 3
mm.gotoAndPlay(1);
stop();
Symbol 493 MovieClip Frame 1
var curr = 1;
var from = 3;
_parent._parent.rollButton(nn);
_parent._parent.rollButton(pp);
nn.onRelease = function () {
if ((curr + 1) <= from) {
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
curr++;
content.gotoAndStop(curr);
f.text = curr;
s.text = from;
}
};
pp.onRelease = function () {
if ((curr - 1) >= 1) {
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
curr--;
content.gotoAndStop(curr);
f.text = curr;
s.text = from;
}
};
Symbol 494 MovieClip Frame 1
this._visible = false;
stop();
Symbol 494 MovieClip Frame 2
inside.content._visible = false;
Symbol 494 MovieClip Frame 7
_parent.rollButton(inside.x);
inside.content._visible = true;
inside.x.onRelease = function () {
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
_global.SOUNDS.playSound("okno help close.wav");
gotoAndPlay(_currentframe + 1);
};
stop();
Symbol 494 MovieClip Frame 8
inside.content._visible = false;
Symbol 497 MovieClip Frame 1
stop();
Symbol 497 MovieClip Frame 2
_global.SOUNDS.killSoundtrack();
_global.SOUNDS.playSound("kr\u00F3tki wybuch na start.wav");
Symbol 497 MovieClip Frame 4
_parent.gotoAndStop(_parent._currentframe + 1);
Symbol 511 MovieClip Frame 1
stop();
Symbol 511 MovieClip Frame 2
stop();
Symbol 511 MovieClip Frame 3
stop();
Symbol 511 MovieClip Frame 4
stop();
Symbol 511 MovieClip Frame 5
stop();
Symbol 511 MovieClip Frame 6
stop();
Symbol 511 MovieClip Frame 7
stop();
Symbol 511 MovieClip Frame 8
stop();
Symbol 522 MovieClip Frame 1
stop();
Symbol 522 MovieClip Frame 2
stop();
Symbol 522 MovieClip Frame 3
stop();
Symbol 522 MovieClip Frame 4
stop();
Symbol 522 MovieClip Frame 5
stop();
Symbol 522 MovieClip Frame 6
stop();
Symbol 522 MovieClip Frame 7
stop();
Symbol 522 MovieClip Frame 8
stop();
Symbol 533 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 2
stop();
Symbol 533 MovieClip Frame 3
stop();
Symbol 533 MovieClip Frame 4
stop();
Symbol 533 MovieClip Frame 5
stop();
Symbol 533 MovieClip Frame 6
stop();
Symbol 533 MovieClip Frame 7
stop();
Symbol 533 MovieClip Frame 8
stop();
Symbol 544 MovieClip Frame 1
stop();
Symbol 544 MovieClip Frame 2
stop();
Symbol 544 MovieClip Frame 3
stop();
Symbol 544 MovieClip Frame 4
stop();
Symbol 544 MovieClip Frame 5
stop();
Symbol 544 MovieClip Frame 6
stop();
Symbol 544 MovieClip Frame 7
stop();
Symbol 544 MovieClip Frame 8
stop();
Symbol 555 MovieClip Frame 1
stop();
Symbol 555 MovieClip Frame 2
stop();
Symbol 555 MovieClip Frame 3
stop();
Symbol 555 MovieClip Frame 4
stop();
Symbol 555 MovieClip Frame 5
stop();
Symbol 555 MovieClip Frame 6
stop();
Symbol 555 MovieClip Frame 7
stop();
Symbol 555 MovieClip Frame 8
stop();
Symbol 566 MovieClip Frame 1
stop();
Symbol 566 MovieClip Frame 2
stop();
Symbol 566 MovieClip Frame 3
stop();
Symbol 566 MovieClip Frame 4
stop();
Symbol 566 MovieClip Frame 5
stop();
Symbol 566 MovieClip Frame 6
stop();
Symbol 566 MovieClip Frame 7
stop();
Symbol 566 MovieClip Frame 8
stop();
Symbol 577 MovieClip Frame 1
stop();
Symbol 577 MovieClip Frame 2
stop();
Symbol 577 MovieClip Frame 3
stop();
Symbol 577 MovieClip Frame 4
stop();
Symbol 577 MovieClip Frame 5
stop();
Symbol 577 MovieClip Frame 6
stop();
Symbol 577 MovieClip Frame 7
stop();
Symbol 577 MovieClip Frame 8
stop();
Symbol 588 MovieClip Frame 1
stop();
Symbol 588 MovieClip Frame 2
stop();
Symbol 588 MovieClip Frame 3
stop();
Symbol 588 MovieClip Frame 4
stop();
Symbol 588 MovieClip Frame 5
stop();
Symbol 588 MovieClip Frame 6
stop();
Symbol 588 MovieClip Frame 7
stop();
Symbol 588 MovieClip Frame 8
stop();
Symbol 599 MovieClip Frame 1
stop();
Symbol 599 MovieClip Frame 2
stop();
Symbol 599 MovieClip Frame 3
stop();
Symbol 599 MovieClip Frame 4
stop();
Symbol 599 MovieClip Frame 5
stop();
Symbol 599 MovieClip Frame 6
stop();
Symbol 599 MovieClip Frame 7
stop();
Symbol 599 MovieClip Frame 8
stop();
Symbol 610 MovieClip Frame 1
stop();
Symbol 610 MovieClip Frame 2
stop();
Symbol 610 MovieClip Frame 3
stop();
Symbol 610 MovieClip Frame 4
stop();
Symbol 610 MovieClip Frame 5
stop();
Symbol 610 MovieClip Frame 6
stop();
Symbol 610 MovieClip Frame 7
stop();
Symbol 610 MovieClip Frame 8
stop();
Symbol 621 MovieClip Frame 1
stop();
Symbol 621 MovieClip Frame 2
stop();
Symbol 621 MovieClip Frame 3
stop();
Symbol 621 MovieClip Frame 4
stop();
Symbol 621 MovieClip Frame 5
stop();
Symbol 621 MovieClip Frame 6
stop();
Symbol 621 MovieClip Frame 7
stop();
Symbol 621 MovieClip Frame 8
stop();
Symbol 632 MovieClip Frame 1
stop();
Symbol 632 MovieClip Frame 2
stop();
Symbol 632 MovieClip Frame 3
stop();
Symbol 632 MovieClip Frame 4
stop();
Symbol 632 MovieClip Frame 5
stop();
Symbol 632 MovieClip Frame 6
stop();
Symbol 632 MovieClip Frame 7
stop();
Symbol 632 MovieClip Frame 8
stop();
Symbol 643 MovieClip Frame 1
stop();
Symbol 643 MovieClip Frame 2
stop();
Symbol 643 MovieClip Frame 3
stop();
Symbol 643 MovieClip Frame 4
stop();
Symbol 643 MovieClip Frame 5
stop();
Symbol 643 MovieClip Frame 6
stop();
Symbol 643 MovieClip Frame 7
stop();
Symbol 643 MovieClip Frame 8
stop();
Symbol 654 MovieClip Frame 1
stop();
Symbol 654 MovieClip Frame 2
stop();
Symbol 654 MovieClip Frame 3
stop();
Symbol 654 MovieClip Frame 4
stop();
Symbol 654 MovieClip Frame 5
stop();
Symbol 654 MovieClip Frame 6
stop();
Symbol 654 MovieClip Frame 7
stop();
Symbol 654 MovieClip Frame 8
stop();
Symbol 665 MovieClip Frame 1
stop();
Symbol 665 MovieClip Frame 2
stop();
Symbol 665 MovieClip Frame 3
stop();
Symbol 665 MovieClip Frame 4
stop();
Symbol 665 MovieClip Frame 5
stop();
Symbol 665 MovieClip Frame 6
stop();
Symbol 665 MovieClip Frame 7
stop();
Symbol 665 MovieClip Frame 8
stop();
Symbol 676 MovieClip Frame 1
stop();
Symbol 676 MovieClip Frame 2
stop();
Symbol 676 MovieClip Frame 3
stop();
Symbol 676 MovieClip Frame 4
stop();
Symbol 676 MovieClip Frame 5
stop();
Symbol 676 MovieClip Frame 6
stop();
Symbol 676 MovieClip Frame 7
stop();
Symbol 676 MovieClip Frame 8
stop();
Symbol 687 MovieClip Frame 1
stop();
Symbol 687 MovieClip Frame 2
stop();
Symbol 687 MovieClip Frame 3
stop();
Symbol 687 MovieClip Frame 4
stop();
Symbol 687 MovieClip Frame 5
stop();
Symbol 687 MovieClip Frame 6
stop();
Symbol 687 MovieClip Frame 7
stop();
Symbol 687 MovieClip Frame 8
stop();
Symbol 698 MovieClip Frame 1
stop();
Symbol 698 MovieClip Frame 2
stop();
Symbol 698 MovieClip Frame 3
stop();
Symbol 698 MovieClip Frame 4
stop();
Symbol 698 MovieClip Frame 5
stop();
Symbol 698 MovieClip Frame 6
stop();
Symbol 698 MovieClip Frame 7
stop();
Symbol 698 MovieClip Frame 8
stop();
Symbol 709 MovieClip Frame 1
stop();
Symbol 709 MovieClip Frame 2
stop();
Symbol 709 MovieClip Frame 3
stop();
Symbol 709 MovieClip Frame 4
stop();
Symbol 709 MovieClip Frame 5
stop();
Symbol 709 MovieClip Frame 6
stop();
Symbol 709 MovieClip Frame 7
stop();
Symbol 709 MovieClip Frame 8
stop();
Symbol 720 MovieClip Frame 1
stop();
Symbol 720 MovieClip Frame 2
stop();
Symbol 720 MovieClip Frame 3
stop();
Symbol 720 MovieClip Frame 4
stop();
Symbol 720 MovieClip Frame 5
stop();
Symbol 720 MovieClip Frame 6
stop();
Symbol 720 MovieClip Frame 7
stop();
Symbol 720 MovieClip Frame 8
stop();
Symbol 731 MovieClip Frame 1
stop();
Symbol 731 MovieClip Frame 2
stop();
Symbol 731 MovieClip Frame 3
stop();
Symbol 731 MovieClip Frame 4
stop();
Symbol 731 MovieClip Frame 5
stop();
Symbol 731 MovieClip Frame 6
stop();
Symbol 731 MovieClip Frame 7
stop();
Symbol 731 MovieClip Frame 8
stop();
Symbol 742 MovieClip Frame 1
stop();
Symbol 742 MovieClip Frame 2
stop();
Symbol 742 MovieClip Frame 3
stop();
Symbol 742 MovieClip Frame 4
stop();
Symbol 742 MovieClip Frame 5
stop();
Symbol 742 MovieClip Frame 6
stop();
Symbol 742 MovieClip Frame 7
stop();
Symbol 742 MovieClip Frame 8
stop();
Symbol 753 MovieClip Frame 1
stop();
Symbol 753 MovieClip Frame 2
stop();
Symbol 753 MovieClip Frame 3
stop();
Symbol 753 MovieClip Frame 4
stop();
Symbol 753 MovieClip Frame 5
stop();
Symbol 753 MovieClip Frame 6
stop();
Symbol 753 MovieClip Frame 7
stop();
Symbol 753 MovieClip Frame 8
stop();
Symbol 764 MovieClip Frame 1
stop();
Symbol 764 MovieClip Frame 2
stop();
Symbol 764 MovieClip Frame 3
stop();
Symbol 764 MovieClip Frame 4
stop();
Symbol 764 MovieClip Frame 5
stop();
Symbol 764 MovieClip Frame 6
stop();
Symbol 764 MovieClip Frame 7
stop();
Symbol 764 MovieClip Frame 8
stop();
Symbol 775 MovieClip Frame 1
stop();
Symbol 775 MovieClip Frame 2
stop();
Symbol 775 MovieClip Frame 3
stop();
Symbol 775 MovieClip Frame 4
stop();
Symbol 775 MovieClip Frame 5
stop();
Symbol 775 MovieClip Frame 6
stop();
Symbol 775 MovieClip Frame 7
stop();
Symbol 775 MovieClip Frame 8
stop();
Symbol 786 MovieClip Frame 1
stop();
Symbol 786 MovieClip Frame 2
stop();
Symbol 786 MovieClip Frame 3
stop();
Symbol 786 MovieClip Frame 4
stop();
Symbol 786 MovieClip Frame 5
stop();
Symbol 786 MovieClip Frame 6
stop();
Symbol 786 MovieClip Frame 7
stop();
Symbol 786 MovieClip Frame 8
stop();
Symbol 797 MovieClip Frame 1
stop();
Symbol 797 MovieClip Frame 2
stop();
Symbol 797 MovieClip Frame 3
stop();
Symbol 797 MovieClip Frame 4
stop();
Symbol 797 MovieClip Frame 5
stop();
Symbol 797 MovieClip Frame 6
stop();
Symbol 797 MovieClip Frame 7
stop();
Symbol 797 MovieClip Frame 8
stop();
Symbol 808 MovieClip Frame 1
stop();
Symbol 808 MovieClip Frame 2
stop();
Symbol 808 MovieClip Frame 3
stop();
Symbol 808 MovieClip Frame 4
stop();
Symbol 808 MovieClip Frame 5
stop();
Symbol 808 MovieClip Frame 6
stop();
Symbol 808 MovieClip Frame 7
stop();
Symbol 808 MovieClip Frame 8
stop();
Symbol 819 MovieClip Frame 1
stop();
Symbol 819 MovieClip Frame 2
stop();
Symbol 819 MovieClip Frame 3
stop();
Symbol 819 MovieClip Frame 4
stop();
Symbol 819 MovieClip Frame 5
stop();
Symbol 819 MovieClip Frame 6
stop();
Symbol 819 MovieClip Frame 7
stop();
Symbol 819 MovieClip Frame 8
stop();
Symbol 830 MovieClip Frame 1
stop();
Symbol 830 MovieClip Frame 2
stop();
Symbol 830 MovieClip Frame 3
stop();
Symbol 830 MovieClip Frame 4
stop();
Symbol 830 MovieClip Frame 5
stop();
Symbol 830 MovieClip Frame 6
stop();
Symbol 830 MovieClip Frame 7
stop();
Symbol 830 MovieClip Frame 8
stop();
Symbol 841 MovieClip Frame 1
stop();
Symbol 841 MovieClip Frame 2
stop();
Symbol 841 MovieClip Frame 3
stop();
Symbol 841 MovieClip Frame 4
stop();
Symbol 841 MovieClip Frame 5
stop();
Symbol 841 MovieClip Frame 6
stop();
Symbol 841 MovieClip Frame 7
stop();
Symbol 841 MovieClip Frame 8
stop();
Symbol 852 MovieClip Frame 1
stop();
Symbol 852 MovieClip Frame 2
stop();
Symbol 852 MovieClip Frame 3
stop();
Symbol 852 MovieClip Frame 4
stop();
Symbol 852 MovieClip Frame 5
stop();
Symbol 852 MovieClip Frame 6
stop();
Symbol 852 MovieClip Frame 7
stop();
Symbol 852 MovieClip Frame 8
stop();
Symbol 863 MovieClip Frame 1
stop();
Symbol 863 MovieClip Frame 2
stop();
Symbol 863 MovieClip Frame 3
stop();
Symbol 863 MovieClip Frame 4
stop();
Symbol 863 MovieClip Frame 5
stop();
Symbol 863 MovieClip Frame 6
stop();
Symbol 863 MovieClip Frame 7
stop();
Symbol 863 MovieClip Frame 8
stop();
Symbol 874 MovieClip Frame 1
stop();
Symbol 874 MovieClip Frame 2
stop();
Symbol 874 MovieClip Frame 3
stop();
Symbol 874 MovieClip Frame 4
stop();
Symbol 874 MovieClip Frame 5
stop();
Symbol 874 MovieClip Frame 6
stop();
Symbol 874 MovieClip Frame 7
stop();
Symbol 874 MovieClip Frame 8
stop();
Symbol 885 MovieClip Frame 1
stop();
Symbol 885 MovieClip Frame 2
stop();
Symbol 885 MovieClip Frame 3
stop();
Symbol 885 MovieClip Frame 4
stop();
Symbol 885 MovieClip Frame 5
stop();
Symbol 885 MovieClip Frame 6
stop();
Symbol 885 MovieClip Frame 7
stop();
Symbol 885 MovieClip Frame 8
stop();
Symbol 896 MovieClip Frame 1
stop();
Symbol 896 MovieClip Frame 2
stop();
Symbol 896 MovieClip Frame 3
stop();
Symbol 896 MovieClip Frame 4
stop();
Symbol 896 MovieClip Frame 5
stop();
Symbol 896 MovieClip Frame 6
stop();
Symbol 896 MovieClip Frame 7
stop();
Symbol 896 MovieClip Frame 8
stop();
Symbol 907 MovieClip Frame 1
stop();
Symbol 907 MovieClip Frame 2
stop();
Symbol 907 MovieClip Frame 3
stop();
Symbol 907 MovieClip Frame 4
stop();
Symbol 907 MovieClip Frame 5
stop();
Symbol 907 MovieClip Frame 6
stop();
Symbol 907 MovieClip Frame 7
stop();
Symbol 907 MovieClip Frame 8
stop();
Symbol 918 MovieClip Frame 1
stop();
Symbol 918 MovieClip Frame 2
stop();
Symbol 918 MovieClip Frame 3
stop();
Symbol 918 MovieClip Frame 4
stop();
Symbol 918 MovieClip Frame 5
stop();
Symbol 918 MovieClip Frame 6
stop();
Symbol 918 MovieClip Frame 7
stop();
Symbol 918 MovieClip Frame 8
stop();
Symbol 929 MovieClip Frame 1
stop();
Symbol 929 MovieClip Frame 2
stop();
Symbol 929 MovieClip Frame 3
stop();
Symbol 929 MovieClip Frame 4
stop();
Symbol 929 MovieClip Frame 5
stop();
Symbol 929 MovieClip Frame 6
stop();
Symbol 929 MovieClip Frame 7
stop();
Symbol 929 MovieClip Frame 8
stop();
Symbol 940 MovieClip Frame 1
stop();
Symbol 940 MovieClip Frame 2
stop();
Symbol 940 MovieClip Frame 3
stop();
Symbol 940 MovieClip Frame 4
stop();
Symbol 940 MovieClip Frame 5
stop();
Symbol 940 MovieClip Frame 6
stop();
Symbol 940 MovieClip Frame 7
stop();
Symbol 940 MovieClip Frame 8
stop();
Symbol 951 MovieClip Frame 1
stop();
Symbol 951 MovieClip Frame 2
stop();
Symbol 951 MovieClip Frame 3
stop();
Symbol 951 MovieClip Frame 4
stop();
Symbol 951 MovieClip Frame 5
stop();
Symbol 951 MovieClip Frame 6
stop();
Symbol 951 MovieClip Frame 7
stop();
Symbol 951 MovieClip Frame 8
stop();
Symbol 962 MovieClip Frame 1
stop();
Symbol 962 MovieClip Frame 2
stop();
Symbol 962 MovieClip Frame 3
stop();
Symbol 962 MovieClip Frame 4
stop();
Symbol 962 MovieClip Frame 5
stop();
Symbol 962 MovieClip Frame 6
stop();
Symbol 962 MovieClip Frame 7
stop();
Symbol 962 MovieClip Frame 8
stop();
Symbol 973 MovieClip Frame 1
stop();
Symbol 973 MovieClip Frame 2
stop();
Symbol 973 MovieClip Frame 3
stop();
Symbol 973 MovieClip Frame 4
stop();
Symbol 973 MovieClip Frame 5
stop();
Symbol 973 MovieClip Frame 6
stop();
Symbol 973 MovieClip Frame 7
stop();
Symbol 973 MovieClip Frame 8
stop();
Symbol 984 MovieClip Frame 1
stop();
Symbol 984 MovieClip Frame 2
stop();
Symbol 984 MovieClip Frame 3
stop();
Symbol 984 MovieClip Frame 4
stop();
Symbol 984 MovieClip Frame 5
stop();
Symbol 984 MovieClip Frame 6
stop();
Symbol 984 MovieClip Frame 7
stop();
Symbol 984 MovieClip Frame 8
stop();
Symbol 995 MovieClip Frame 1
stop();
Symbol 995 MovieClip Frame 2
stop();
Symbol 995 MovieClip Frame 3
stop();
Symbol 995 MovieClip Frame 4
stop();
Symbol 995 MovieClip Frame 5
stop();
Symbol 995 MovieClip Frame 6
stop();
Symbol 995 MovieClip Frame 7
stop();
Symbol 995 MovieClip Frame 8
stop();
Symbol 1006 MovieClip Frame 1
stop();
Symbol 1006 MovieClip Frame 2
stop();
Symbol 1006 MovieClip Frame 3
stop();
Symbol 1006 MovieClip Frame 4
stop();
Symbol 1006 MovieClip Frame 5
stop();
Symbol 1006 MovieClip Frame 6
stop();
Symbol 1006 MovieClip Frame 7
stop();
Symbol 1006 MovieClip Frame 8
stop();
Symbol 1017 MovieClip Frame 1
stop();
Symbol 1017 MovieClip Frame 2
stop();
Symbol 1017 MovieClip Frame 3
stop();
Symbol 1017 MovieClip Frame 4
stop();
Symbol 1017 MovieClip Frame 5
stop();
Symbol 1017 MovieClip Frame 6
stop();
Symbol 1017 MovieClip Frame 7
stop();
Symbol 1017 MovieClip Frame 8
stop();
Symbol 1028 MovieClip Frame 1
stop();
Symbol 1028 MovieClip Frame 2
stop();
Symbol 1028 MovieClip Frame 3
stop();
Symbol 1028 MovieClip Frame 4
stop();
Symbol 1028 MovieClip Frame 5
stop();
Symbol 1028 MovieClip Frame 6
stop();
Symbol 1028 MovieClip Frame 7
stop();
Symbol 1028 MovieClip Frame 8
stop();
Symbol 1039 MovieClip Frame 1
stop();
Symbol 1039 MovieClip Frame 2
stop();
Symbol 1039 MovieClip Frame 3
stop();
Symbol 1039 MovieClip Frame 4
stop();
Symbol 1039 MovieClip Frame 5
stop();
Symbol 1039 MovieClip Frame 6
stop();
Symbol 1039 MovieClip Frame 7
stop();
Symbol 1039 MovieClip Frame 8
stop();
Symbol 1050 MovieClip Frame 1
stop();
Symbol 1050 MovieClip Frame 2
stop();
Symbol 1050 MovieClip Frame 3
stop();
Symbol 1050 MovieClip Frame 4
stop();
Symbol 1050 MovieClip Frame 5
stop();
Symbol 1050 MovieClip Frame 6
stop();
Symbol 1050 MovieClip Frame 7
stop();
Symbol 1050 MovieClip Frame 8
stop();
Symbol 1055 MovieClip Frame 1
blocker_btn.enabled = false;
Symbol 1059 MovieClip Frame 1
stop();
Symbol 1059 MovieClip Frame 2
stop();
Symbol 1063 MovieClip Frame 1
stop();
Symbol 1063 MovieClip Frame 2
stop();
Symbol 1065 MovieClip Frame 1
var kill = true;
stop();
Symbol 1065 MovieClip Frame 24
stop();
Symbol 1065 MovieClip Frame 38
if (!this.kill) {
_parent.mapAgain();
}
Symbol 1069 MovieClip Frame 1
stop();
Symbol 1069 MovieClip Frame 2
stop();
Symbol 1071 MovieClip Frame 1
stop();
Symbol 1071 MovieClip Frame 2
if (_parent.ag_anim._currentframe != 1) {
_parent.ag_anim.gotoAndPlay("out");
}
Symbol 1071 MovieClip Frame 11
stop();
Symbol 1071 MovieClip Frame 15
_parent.ag_anim.gotoAndPlay("in");
Symbol 1074 MovieClip Frame 1
stop();
Symbol 1074 MovieClip Frame 2
stop();
Symbol 1081 MovieClip Frame 1
stop();
Symbol 1081 MovieClip Frame 2
stop();
Symbol 1084 MovieClip Frame 1
stop();
Symbol 1084 MovieClip Frame 2
stop();
Symbol 1103 MovieClip Frame 1
stop();
Symbol 1103 MovieClip Frame 2
_global.SOUNDS.playSound("okno help open.wav");
Symbol 1103 MovieClip Frame 8
_parent.rollButton(exit);
_parent.rollButton(playagain);
exit.onRelease = function () {
_parent.kill();
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
_parent.gotoAndPlay(_parent._currentframe - 1);
};
playagain.onRelease = function () {
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
gotoAndPlay (82);
};
Symbol 1103 MovieClip Frame 62
_global.SOUNDS.playSound("\u015Bmiech-poprawiony.wav");
Symbol 1103 MovieClip Frame 81
stop();
Symbol 1103 MovieClip Frame 82
_global.SOUNDS.playSound("okno help close.wav");
Symbol 1103 MovieClip Frame 89
_root.playAgain = true;
_root.gotoAndPlay(5);
Symbol 1106 MovieClip Frame 1
stop();
stop();
Symbol 1106 MovieClip Frame 2
stop();
stop();
Symbol 1111 MovieClip Frame 1
stop();
Symbol 1111 MovieClip Frame 2
_global.SOUNDS.playSound("okno help open.wav");
Symbol 1111 MovieClip Frame 8
_parent.rollButton(exit);
_parent.rollButton(playagain);
exit.onRelease = function () {
_parent.kill();
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
_parent.gotoAndPlay(_parent._currentframe - 1);
};
playagain.onRelease = function () {
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
gotoAndPlay (92);
};
Symbol 1111 MovieClip Frame 24
_global.SOUNDS.playSound("wygrana.wav");
Symbol 1111 MovieClip Frame 91
stop();
Symbol 1111 MovieClip Frame 92
_global.SOUNDS.playSound("okno help close.wav");
Symbol 1111 MovieClip Frame 98
_root.playAgain = true;
_root.gotoAndStop(5);
Symbol 1115 MovieClip Frame 1
this._visible = false;
stop();
Symbol 1115 MovieClip Frame 2
su.text = showExtra;
this._visible = true;
Symbol 1119 MovieClip Frame 1
stop();
Symbol 1119 MovieClip Frame 2
stop();
Symbol 1120 MovieClip Frame 1
stop();
Symbol 1120 MovieClip Frame 2
stop();
Symbol 1121 MovieClip Frame 1
stop();
_visible = false;
Symbol 1121 MovieClip Frame 2
_global.SOUNDS.playSound("okno help open.wav");
_global.GAME_PAUSE = true;
Symbol 1121 MovieClip Frame 9
_global.SOUNDS.playSound("kurczak.wav");
Symbol 1121 MovieClip Frame 30
_parent.rollButton(no);
_parent.rollButton(yes);
stop();
no.onRelease = function () {
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
gotoAndPlay(_currentframe + 1);
};
yes.onRelease = function () {
_root.playAgain = false;
_parent.kill();
_global.SOUNDS.playSound("Click- g\u0142o\u015Bniejszy.wav");
_parent.gameout.gotoAndPlay(2);
};
Symbol 1121 MovieClip Frame 31
_global.SOUNDS.playSound("okno help close.wav");
Symbol 1121 MovieClip Frame 35
_global.GAME_PAUSE = false;
Symbol 1127 MovieClip Frame 6
if (this._name == "expl") {
_global.SOUNDS.gameSoundtrack();
}
Symbol 1127 MovieClip Frame 18
_parent.init();
stop();
Symbol 1129 MovieClip Frame 1
stop();
Symbol 1129 MovieClip Frame 2
_global.SOUNDS.killSoundtrack();
_global.SOUNDS.playSound("kr\u00F3tki wybuch na start.wav");
Symbol 1129 MovieClip Frame 4
_global.GAME_PAUSE = false;
_parent.gotoAndStop(_parent._currentframe - 1);