Frame 1
var \x01 = 426;
// swfAction0x03 // Unknown action
Frame 2
var \x01 = 68;
// swfAction0x03 // Unknown action
Frame 3
var \x01 = 378;
// swfAction0x03 // Unknown action
Frame 5
function order(a, b) {
var _local2 = a.split(":")[0];
var _local1 = b.split(":")[0];
if (int(_local2) < int(_local1)) {
return(1);
}
if (int(_local2) > int(_local1)) {
return(-1);
}
return(0);
}
function maakDrager(mc, aimAwayMc, doelx, doely, speed, turnspeed, stopVoorbijRaat) {
Missile_InitialAccuracy = 140;
Missile = draagMcs.createEmptyMovieClip("drager", 0);
Missile.carryMc = mc;
Missile._x = commander2._x;
Missile._y = commander2._y;
if (speed <= 0) {
speed = 0.5;
}
var _local6 = ((-Math.atan2(Missile._x - aimAwayMc._x, Missile._y - aimAwayMc._y)) * 180) / Math.PI;
var _local3 = ((-Math.atan2(Missile._x - doelx, Missile._y - doely)) * 180) / Math.PI;
var _local2 = Math.abs(_local6 - _local3);
if (_local2 > 60) {
_local2 = 60;
}
Missile._rotation = ((-Math.atan2(Missile._x - doelx, Missile._y - doely)) * 180) / Math.PI;
var _local11;
if (mc._y < (fieldTop + 80)) {
mcYDeel = "top";
} else if (mc._y > (fieldBottom - 80)) {
mcYDeel = "bottom";
} else {
mcYDeel = "centre";
}
if (mcYDeel == "bottom") {
if (_local3 > 0) {
pm = -1;
} else {
pm = 1;
}
} else if (mcYDeel == "top") {
if (_local3 < 0) {
pm = -1;
} else {
pm = 1;
}
} else {
pm = 1;
if (Math.random() < 0.5) {
pm = -1;
}
}
Missile._rotation = Missile._rotation + ((60 - _local2) * pm);
var _local7 = diffLevel / 150;
var _local8 = 1 + ((0.5 - Math.random()) * _local7);
var remEerder = ((diffLevel / 3) - 10);
if (remEerder < 0) {
remEerder = 0;
}
Missile.remEerder = remEerder;
doely = doely * _local8;
Missile.onEnterFrame = function () {
turnspeed = turnspeed * 1.08;
var _local3 = this.carryMc;
if (speed < 4) {
speed = speed + 0.5;
} else {
speed = speed * 1.05;
}
if ((this.carryMc.absSpeed > 4) && (this.carryMc.raatApproachSpeed > 0)) {
speed = speed + 0.5;
if (this.carryMc.speedBoost < 2.5) {
this.carryMc.speedBoost = this.carryMc.speedBoost + 0.2;
}
}
this.TargetDirection = ((-Math.atan2(this._x - doelx, this._y - doely)) * 180) / Math.PI;
if (this.TargetDirection < 0) {
this.TargetDirection = this.TargetDirection + 360;
}
this.ActualAngle = this._rotation;
if (this.ActualAngle < 0) {
this.ActualAngle = this.ActualAngle + 360;
}
this.AngleDifference = Math.abs(this.ActualAngle - this.TargetDirection);
if (this.AngleDifference < turnspeed) {
this._rotation = this.TargetDirection;
} else if (this.ActualAngle > this.TargetDirection) {
if (this.AngleDifference < 180) {
this._rotation = this._rotation - turnspeed;
} else {
this._rotation = this._rotation + turnspeed;
}
} else if (this.AngleDifference < 180) {
this._rotation = this._rotation + turnspeed;
} else {
this._rotation = this._rotation - turnspeed;
}
this.Radians = (this._rotation * Math.PI) / 180;
this._x = this._x + (Math.sin(this.Radians) * speed);
this._y = this._y - (Math.cos(this.Radians) * speed);
var _local2 = false;
if (stopVoorbijRaat == true) {
if (this._x < (_local3.raat._x + this.remEerder)) {
_local2 = true;
}
}
if (_local2 == true) {
this.carryMc.moveWeight = 0;
this.carryMc.wachtTijd = 45;
this.carryMc.wachtNaDrager = 25;
removeMovieClip(this);
}
if ((((this._x < fieldLeft) || (this._y < fieldTop)) || (this._x > fieldRight)) || (this._y > fieldBottom)) {
this.carryMc.wachtTijd = 45;
this.carryMc.moveWeight = 0;
this.carryMc.wachtNaDrager = 25;
removeMovieClip(this);
}
};
}
registerPunten = function (mc) {
var _local2 = mc.commanderNr;
var _local3 = 12;
var _local1 = maxRekruten;
while (_local1 >= 0) {
aXDoelen[_local2][_local1] = mc._x + (aXregister[_local2][_local1] * _local3);
var _local6 = aYDoelen[_local2][_local1];
aYDoelen[_local2][_local1] = (mc._y + (aYregister[_local2][_local1] * _local3)) - (_local3 / 2);
if (schuifRij == aXregister[_local2][_local1]) {
aYDoelen[_local2][_local1] = aYDoelen[_local2][_local1] - (_local3 * aantSchuiven);
}
var _local4 = aYDoelen[_local2][_local1];
if (_local4 > surface) {
var aantSchuiven = Math.ceil((_local4 - surface) / _local3);
aYDoelen[_local2][_local1] = aYDoelen[_local2][_local1] - (_local3 * aantSchuiven);
var schuifRij = aXregister[_local2][_local1];
}
_local1--;
}
};
clearToetsMem = function (commander) {
commander.memLeft = 0;
commander.memRight = 0;
commander.memUp = 0;
commander.memDown = 0;
};
vliegBij = function (mc) {
var _local13 = false;
switch (mc.dif) {
case "bounce" :
if (mc.bounce != true) {
if (mc.schildBounce == true) {
if (mc.opponent.powerUpNr == 2) {
var _local10 = 2;
} else {
var _local10 = 1;
}
if (mc == commander1) {
var _local16 = (-commander2.heroImpact) / 1;
} else {
var _local16 = commander2.heroImpact * _local10;
}
var _local15 = (((-mc.ySnelheid) * _local10) / 4) + (3 - random(6));
mc.schildBounce = false;
mc.speedBoostNaSchildBounce = 40;
} else {
mc.immuun = 30;
var _local16 = (-mc.xSnelheid) / 2;
var _local15 = ((mc.raat.vy / 3) + ((-mc.ySnelheid) / 3)) + (2 - random(4));
}
stuiterMc(mc, _local16, _local15);
if (mc.control != true) {
main.draagMcs.drager.removeMovieClip();
}
} else {
stuiterMc(mc);
}
var _local19 = false;
if (mc == commander2) {
if (mc.xSnelheid > 0) {
_local19 = true;
}
} else if (mc.xSnelheid < 0) {
_local19 = true;
}
if (_local19 == true) {
mc._rotation = (-mc.xSnelheid) * 2;
}
break;
case "vliegt" :
if (mc.trilling == true) {
tril(mc);
}
if (mc.ignoreSpeedBoost == true) {
if (mc.speedBoost <= 0) {
mc.ignoreSpeedBoost = false;
}
}
if (mc == commander2) {
if (mc.xSnelheid > 0) {
_local19 = true;
}
} else if (mc.xSnelheid < 0) {
_local19 = true;
}
if (_local19 == true) {
mc._rotation = (-mc.xSnelheid) * 2;
}
if (mc.immuun > 0) {
mc.immuun--;
}
if (mc.speedBoostNaSchildBounce > 0) {
mc.speedBoostNaSchildBounce--;
}
mc.pic._x = mc.pic._x + ((mc.punt._x - mc.pic._x) / 10);
mc.pic._y = mc.pic._y + ((mc.punt._y - mc.pic._y) / 10);
if ((winnaar == null) && (beginSpel == true)) {
if (mc.control == true) {
if (Key.isDown(mc.kRi)) {
toetsAkties("right", mc);
} else if (mc.memRight > 0) {
mc.memRight = mc.memRight - 1;
}
if (Key.isDown(mc.kLe)) {
toetsAkties("left", mc);
} else if (mc.memLeft > 0) {
mc.memLeft = mc.memLeft - 1;
}
if (Key.isDown(mc.kUp)) {
toetsAkties("up", mc);
} else if (mc.memUp > 0) {
mc.memUp = mc.memUp - 1;
}
if (Key.isDown(mc.kDown)) {
toetsAkties("down", mc);
} else if (mc.memDown > 0) {
mc.memDown = mc.memDown - 1;
}
if (muisDown == true) {
toetsAkties("space", mc);
} else {
if (mc.speedBoost > 0) {
mc.speedBoost = mc.speedBoost - 0.2;
}
var _local12 = mc.pic._currentframe;
if ((_local12 == 2) || (_local12 == 3)) {
mc.pic.gotoAndStop(1);
}
mc.schild = false;
}
if (muisDown == true) {
if (_root._xmouse > omslagPunt) {
if (mc._x < (_root._xmouse - 10)) {
var _local18 = (_root._ymouse - mc._y) / (_root._xmouse - mc._x);
heroObj.targetX = mc._x + 500;
heroObj.targetY = mc._y + (500 * _local18);
}
} else {
heroObj.targetX = _root._xmouse;
heroObj.targetY = _root._ymouse;
}
} else {
heroObj.targetX = _root._xmouse;
heroObj.targetY = _root._ymouse;
}
var _local6 = heroObj.targetX;
if (muisDown != true) {
if (_local6 > omslagPunt) {
var _local20 = _local6 - omslagPunt;
_local6 = omslagPunt + (_local20 / 6);
}
}
_local6 = _local6 - mc._x;
muisY = heroObj.targetY - mc._y;
if (mc.speedBoost < 0) {
mc.speedBoost = 0;
}
if (mc.ignoreSpeedBoost == true) {
mc._x = mc._x + (_local6 / gameSpeed);
mc._y = mc._y + (muisY / gameSpeed);
} else {
var _local9 = mc.speedBoost;
if (_local9 > 0) {
if (mc.absSpeed > 10) {
_local13 = true;
}
}
var _local11 = gameSpeed;
var _local4 = _local6 / (_local11 - _local9);
var _local3 = muisY / (_local11 - _local9);
var _local5 = 28;
if (mc.powerUpNr == 1) {
_local5 = _local5 * 1.4;
}
var _local7 = _local4 / _local3;
if (_local4 > _local5) {
_local4 = _local5;
_local3 = _local4 / _local7;
} else if (_local4 < (-_local5)) {
_local4 = -_local5;
_local3 = _local4 / _local7;
}
if (_local3 > _local5) {
_local3 = _local5;
_local4 = _local3 * _local7;
} else if (_local3 < (-_local5)) {
_local3 = -_local5;
_local4 = _local3 * _local7;
}
mc._x = mc._x + _local4;
mc._y = mc._y + _local3;
}
} else if (beginSpel == true) {
commanderAI(mc);
}
hittest(mc);
} else {
if (winnaar == null) {
break;
}
if (winnaar == mc) {
moveElasAI(mc, sW / 2, 160, 0.5, 0.02);
} else {
moveElasAI(mc, 1000, 120, 0.5, 0.02);
}
}
}
berekenSnelheid(mc);
if (_local13 == true) {
mc.pic.pic2.gotoAndStop(2);
} else {
mc.pic.pic2.gotoAndStop(1);
}
if (mc.powerUpNr == 2) {
if (mc.pic._currentframe == 2) {
mc.pic.gotoAndStop(3);
}
} else if (mc.pic._currentframe == 3) {
mc.pic.gotoAndStop(2);
}
if (mc.powerUpNr == 3) {
var _local8 = mc.opponent.raat;
_local8.damage = _local8.damage - 1;
if (_local8.damage < 0) {
_local8.damage = 0;
}
damageRaat();
}
if (webVersion != true) {
if (mc.countPowerUp > 0) {
var _local14 = hud["icoon" + mc.commanderNr];
gotonr = mc.powerUpNr + 1;
_local14.gotoAndStop(gotonr);
var _local17 = (mc.countPowerUp / maxCountPowerUp) * 100;
_local14.bar._xscale = _local17;
if (mc.powerUpNr == 3) {
mc.countPowerUp = mc.countPowerUp - 4;
} else if (mc.powerUpNr == 2) {
mc.countPowerUp = mc.countPowerUp - 0.7;
} else {
mc.countPowerUp = mc.countPowerUp - 1.5;
}
if (mc.countPowerUp <= 0) {
hud["icoon" + mc.commanderNr].gotoAndStop(1);
stopPowerUp(mc);
}
}
}
};
miniHealth = function () {
var _local2 = 1;
while (_local2 < 3) {
bijen["commander" + _local2].aantMinis = 0;
bijen["commander" + _local2].minisAlive = 0;
var _local3 = 0;
while (_local3 < aRekruten[_local2].length) {
var _local1 = aRekruten[_local2][_local3];
if (bijen[(("mini" + _local2) + "_") + _local3] != null) {
bijen["commander" + _local2].minisAlive++;
if (_local1.commander.control != true) {
if (_local1.health < _local1.maxHealth) {
_local1.health = _local1.health + 1.5;
}
} else if (_local1.health < _local1.maxHealth) {
_local1.health = _local1.health + (1.5 + (diffLevel / 50));
}
if (_local1.dif == "vliegt") {
bijen["commander" + _local2].aantMinis++;
}
}
_local3++;
}
_local2++;
}
refreshHud();
};
vliegMinis = function () {
var _local19 = aRekruten[1][2];
var _local4 = 1;
while (_local4 < 3) {
var _local5 = 0;
while (_local5 < aRekruten[_local4].length) {
var _local1 = aRekruten[_local4][_local5];
if (_local1 != null) {
var _local16 = _local1.commander._x;
var _local15 = _local1.commander._y;
switch (_local1.dif) {
case "lose" :
stuiterMc(_local1, _local1.xSnelheid + (3 - random(6)), _local1.ySnelheid + (2 - random(4)));
_local1.gotoAndStop(1);
break;
case "bounce" :
if (_local1.schildBounce == true) {
if (_local1.opponent.powerUpNr == 2) {
var _local6 = 1;
} else {
var _local6 = 1.8;
}
var _local13 = -((_local1.xSnelheid / _local6) + (2 - random(4)));
var _local12 = ((-_local1.ySnelheid) / _local6) + (2 - random(4));
stuiterMc(_local1, _local13, _local12);
_local1.gotoAndStop(1);
_local1.wachtTijd = 30;
_local1.schildBounce = false;
} else if (_local1.bounce != true) {
var _local13 = ((_local1.raat.vx / 4) - (_local1.xSnelheid / 2)) + (3 - random(6));
var _local12 = ((_local1.raat.vy / 4) + ((-_local1.ySnelheid) / 2)) + (3 - random(6));
stuiterMc(_local1, _local13, _local12);
_local1.gotoAndStop(1);
_local1.wachtTijd = 30;
} else {
stuiterMc(_local1);
}
break;
case "vliegt" :
if (_local1.wachtTijd > 0) {
_local1.wachtTijd--;
_local1.wachten = true;
} else {
_local1.wachten = false;
}
if ((_local1.xSnelheid * _local1.voor_en_achteruit) > 0) {
_local1.vooruit = true;
} else {
_local1.vooruit = false;
}
if ((winnaar == null) && (_local1.vooruit == true)) {
hittestMini(_local1);
}
var _local2 = _local1.commander;
var _local9 = true;
if (_local2.control == true) {
if (_local2.nest_travelspeed > -2) {
if (_local2.latestRaatBounce < (getTimer() - 3000)) {
if (_local2.speedBoostNaSchildBounce <= 0) {
_local9 = false;
}
}
}
}
if (((((_local1.commander.speedBoost > 0.5) && (_local1.wachten != true)) && (_local1.vooruit == true)) && (_local9 == true)) && (winnaar == null)) {
_local1.gotoAndStop("blur");
_local1.boost = true;
} else {
_local1.gotoAndStop(1);
_local1.boost = false;
}
var _local11 = Math.abs(_local1._x - _local16);
var _local17 = Math.abs(_local1._y - _local15);
if (((_local11 > _local1.maxStruin) || (_local17 > _local1.maxStruin)) || (_local1.move == true)) {
if (_local1.boost == true) {
if (_local2.control == true) {
manageSoundFx("mini_attack");
}
if ((_local1.absSpeed > _local1.commander.absSpeed) || (_local1.commander.dif != "vliegt")) {
var _local14 = true;
} else {
var _local14 = false;
}
var _local7 = _local1.commander.speedBoost / 1.3;
if (_local2.powerUpNr == 1) {
_local7 = _local7 * 2.2;
}
} else {
var _local14 = false;
var _local7 = 1;
}
if ((_local14 == true) && (winnaar == null)) {
var _local10 = _local1.raat._x;
var _local8 = _local1.raat._y;
var _local18 = true;
} else {
var _local18 = false;
var _local10 = aXDoelen[_local4][_local1.rekruutNr];
var _local8 = aYDoelen[_local4][_local1.rekruutNr];
}
if (_local1.boost == true) {
moveElas(_local1, _local10, _local8, 0.84, 0.015 * _local7, 2);
} else {
moveElas(_local1, _local10, _local8, 0.84, 0.015 * _local7, 1);
}
}
_local1._x = _local1._x + _local1.speedX;
_local1._y = _local1._y + _local1.speedY;
if (Math.random() >= _local1.struin) {
break;
}
var _local3 = _local1.maxSpeed;
_local1.speedX = (Math.random() * _local3) - (_local3 / 2);
_local1.speedY = (Math.random() * _local3) - (_local3 / 2);
}
berekenSnelheid(_local1);
}
_local5++;
}
_local4++;
}
};
fadeAudio = function () {
};
attachHud = function () {
hud = main.attachMovie("mcHud", "mcHud", main.getNextHighestDepth());
hud._x = sW / 2;
hud._y = sH - 8;
hud.mcSurrender.onRollOver = function () {
this.gotoAndStop(2);
};
hud.mcSurrender.onRollOut = function () {
this.gotoAndStop(1);
};
hud.mcSurrender.onReleaseOutside = function () {
this.gotoAndStop(1);
};
hud.mcSurrender.onRelease = function () {
if ((_global.gameMode == "arcade") || (_global.gameMode == "two_player")) {
gotoMainMenu();
} else {
surrender();
}
};
hud.help.onRelease = function () {
if (main.mcInstr == null) {
game.pauze = true;
instructieTimer = getTimer();
showMouse();
var _local2 = root.attachMovie("mcInstr", "mcInstr", root.getNextHighestDepth());
main._x = 1000;
_local2.ok.onRelease = function () {
main._x = 0;
attachMouseCursor();
game.pauze = false;
var _local2 = getTimer() - instructieTimer;
arcadeBeginTijd = arcadeBeginTijd - _local2;
this._parent.removeMovieClip();
};
}
};
};
surrender = function () {
Mouse.show();
var _local2 = 100000 /* 0x0186A0 */;
while (_local2--) {
clearInterval(_local2);
}
_global.inGame = true;
_global.aRecruitsAlive = [];
_global.aRecruitsAlive[1] = 0;
_global.aRecruitsAlive[2] = commander2.minisAlive;
main.removeMovieClip();
root.gotoAndPlay("begin");
};
displayScore = function () {
var _local10 = (getTimer() - arcadeBeginTijd) / 200;
var _local2 = Math.round(1000 - _local10);
if ((_local2 < 0) || (winnaar != commander1)) {
_local2 = 0;
}
var _local5 = Math.round(commander1.minisAlive * 100);
var _local4 = Math.round((m2 - commander2.minisAlive) * 100);
var _local6 = Math.round(Math.round(aktie.raat2.damagePerc) * 10);
var _local8 = Math.round((100 - Math.round(aktie.raat1.damagePerc)) * 10);
var _local7 = (((_local2 + _local5) + _local4) + _local6) + _local8;
var _local9 = 1.03 + ((300 - (_global.difficulty * 3)) / 100);
var _local3 = Math.round(_local7 * _local9);
totalScore = totalScore + _local3;
teksten.mcEindeSpel.score = "Score: " + _local3;
teksten.mcEindeSpel.scoreKort = _local3;
teksten.mcEindeSpel.total = "Total Score: " + totalScore;
teksten.mcEindeSpel.alive = _local5;
teksten.mcEindeSpel.oppkia = _local4;
teksten.mcEindeSpel.time = _local2;
teksten.mcEindeSpel.nestdamage = _local6;
teksten.mcEindeSpel.oppdamage = _local8;
teksten.mcEindeSpel.opgeteld = _local7;
teksten.mcEindeSpel.factor = "* " + _local9;
};
eindeSpelSequence = function () {
fadeLoop = true;
if (_global.gameMode == "arcade") {
_global.arcadeMinis = commander1.minisAlive;
showMouse();
var _local3 = teksten.attachMovie("mcEindeArcade", "mcEindeSpel", teksten.getNextHighestDepth());
displayScore();
hud.mcSurrender._visible = false;
hud.help._visible = false;
} else if (_global.gameMode == "two_player") {
var _local3 = teksten.attachMovie("mcEindeTwoPlayer", "mcEindeSpel", teksten.getNextHighestDepth());
hud.mcSurrender._visible = false;
} else {
var _local3 = teksten.attachMovie("mcEindeSpel", "mcEindeSpel", teksten.getNextHighestDepth());
}
_local3.battleWonLost.gotoAndStop(winnaar.commanderNr);
_local3._x = sW / 2;
_local3._y = -1000;
_local3.xElas = 0;
_local3.yElas = 0;
_local3.onEnterFrame = function () {
moveElas(this, this._x, 32, 0.4, 0.2);
};
if (_global.gameMode == "arcade") {
_local3.proceed.onRelease = function () {
eindeArcade();
};
} else if (_global.gameMode == "two_player") {
_local3.proceed.onRelease = function () {
eindeTwoPlayer();
};
var _local4 = _global.aScore;
((winnaar == commander1) ? (_local4[0]++) : (_local4[1]++));
_local3.score1.gotoAndStop(_local4[0]);
_local3.score2.gotoAndStop(_local4[1]);
} else {
_local3.proceed.onRelease = function () {
einde();
};
}
};
listenToAnyKey = function () {
LuisterToets = new Object();
LuisterToets.onKeyDown = function () {
if (_global.gameMode == "arcade") {
arcadeBeginTijd = getTimer();
}
beginSpel = true;
teksten.mcStartTekst.removeMovieClip();
Key.removeListener(LuisterToets);
};
Key.addListener(LuisterToets);
};
luisterNaarMuis = function () {
if (muisDown == true) {
if (_global.gameMode == "arcade") {
arcadeBeginTijd = getTimer();
}
beginSpel = true;
teksten.mcStartTekst.removeMovieClip();
}
};
gotoMainMenu = function () {
Mouse.show();
var _local2 = 100000 /* 0x0186A0 */;
while (_local2--) {
clearInterval(_local2);
}
_global.inGame = false;
_global.arcadeLevel = 1;
_global.gameMode = null;
_global.aRecruitsAlive = [];
main.removeMovieClip();
root.gotoAndPlay("begin");
};
verstuurScore = function (score, naam) {
var _local1 = main.createEmptyMovieClip("postMc", main.getNextHighestDepth());
_local1.score = score;
_local1.naam = naam;
_local1.code = "code";
getURL ("http://localhost/beeboxing/beeboxingscores.php", "_blank", "POST");
gotoMainMenu();
};
verstuurScorePHP = function (score, naam) {
loadObj = new LoadVars();
sendObj = new LoadVars();
if ((naam == null) || (naam == "")) {
naam = "anonymous";
}
if ((score < 0) || (score == null)) {
score = 0;
}
sendObj.score = score;
sendObj.naam = naam;
loadObj.onLoad = function (success) {
if (success) {
gotoMainMenu();
}
};
sendObj.sendAndLoad("highscores.php", loadObj, "POST");
};
eindeArcade = function () {
showMouse();
teksten.mcEindeSpel.removeMovieClip();
if ((winnaar != commander1) || (_global.arcadeLevel == 3)) {
var e = teksten.attachMovie("mcGameOver", "mcGameOver", teksten.getNextHighestDepth());
if (winnaar != commander1) {
e.gotoAndStop(1);
} else {
e.gotoAndStop(2);
}
e._x = sW / 2;
e._y = 46;
if ((totalScore < 0) || (totalScore > 1000000)) {
totalScore = 0;
}
e.total = "Total Score: " + totalScore;
e.back_to_main.onRelease = function () {
gotoMainMenu();
};
e.submit_score.onRelease = function () {
e.gotoAndStop(3);
startHighscores(e.hs, totalScore);
};
} else {
var _local2 = 100000 /* 0x0186A0 */;
while (_local2--) {
clearInterval(_local2);
}
_global.arcadeLevel++;
if (webVersion == true) {
startWebVersion();
} else {
start();
}
}
};
eindeTwoPlayer = function () {
Mouse.show();
teksten.mcEindeSpel.removeMovieClip();
if (((_global.arcadeLevel == 3) || (_global.aScore[0] >= 3)) || (_global.aScore[1] >= 3)) {
var _local3 = teksten.attachMovie("mcGameOver2Player", "mcGameOver2Player", teksten.getNextHighestDepth());
if (winnaar == commander1) {
_local3.gotoAndStop(1);
} else {
_local3.gotoAndStop(2);
}
_local3._x = sW / 2;
_local3._y = 46;
_local3.back_to_main.onRelease = function () {
gotoMainMenu();
};
} else {
var _local2 = 100000 /* 0x0186A0 */;
while (_local2--) {
clearInterval(_local2);
}
_global.arcadeLevel++;
if (webVersion == true) {
startWebVersion();
} else {
start();
}
}
};
einde = function () {
Mouse.show();
var _local2 = 100000 /* 0x0186A0 */;
while (_local2--) {
clearInterval(_local2);
}
_global.inGame = true;
_global.aRecruitsAlive = [];
if (winnaar == commander1) {
_global.aRecruitsAlive[1] = commander1.minisAlive;
_global.aRecruitsAlive[2] = 0;
} else {
_global.aRecruitsAlive[1] = 0;
_global.aRecruitsAlive[2] = commander2.minisAlive;
}
main.removeMovieClip();
root.gotoAndPlay("begin");
};
attachBeginTekst = function () {
listenToAnyKey();
if (_global.gameMode == "arcade") {
var _local3 = teksten.attachMovie("mcStartArcade", "mcStartTekst", teksten.getNextHighestDepth());
_local3.levelNr = _global.arcadeLevel;
if (((_global.userData[_global.currentPlayer].ervaring < 3) && (_global.arcadeLevel < 2)) && (((((kLe == 37) && (kRi == 39)) && (kUp == 38)) && (kDown == 40)) && (kAttack == 32))) {
_local3.mcKeyHelp._visible = true;
} else {
_local3.mcKeyHelp._visible = false;
}
} else if (_global.gameMode == "two_player") {
var _local3 = teksten.attachMovie("mcStartArcade", "mcStartTekst", teksten.getNextHighestDepth());
_local3.levelNr = _global.arcadeLevel;
_local3.mcKeyHelp._visible = false;
} else {
var _local3 = teksten.attachMovie("mcStartSpel", "mcStartTekst", teksten.getNextHighestDepth());
if ((_global.userData[_global.currentPlayer].ervaring < 3) && (((((kLe == 37) && (kRi == 39)) && (kUp == 38)) && (kDown == 40)) && (kAttack == 32))) {
_local3.mcKeyHelp._visible = true;
} else {
_local3.mcKeyHelp._visible = false;
}
}
_local3._x = sW / 2;
_local3._y = -1000;
_local3.xElas = 0;
_local3.yElas = 0;
_local3.onEnterFrame = function () {
moveElas(this, this._x, 46, 0.4, 0.2);
};
};
vliegWolk = function (mc) {
mc._x = mc._x + 1;
};
initWolken = function () {
var _local4 = wolkContainer;
aWolknrs = new Array(1, 2, 3);
var _local1 = 0;
while (_local1 < 2) {
var _local3 = aWolknrs.splice(random(aWolknrs.length), 1);
var _local2 = _local4.attachMovie("wolk" + _local3, "wolk" + _local3, _local1);
_local2._x = (Math.random() * 260) + (_local1 * 260);
_local2._y = Math.random() * 110;
_local1++;
}
};
maakVeld = function () {
var _local2 = veld.attachMovie("mcBg", "mcBg", 0);
var _local1 = veld.attachMovie("mcBergen", "mcBergen", 1);
wolkContainer = veld.createEmptyMovieClip("mcWolkContainer", 2);
veld.attachMovie("mcVeld", "mcVeld", 3);
_local1._y = 200;
};
attachFieldWebVersion = function () {
trace("attach WEB");
var _local5 = [1, 2, 1, 1];
var _local2 = [_local5];
wolkContainer = veld.createEmptyMovieClip("mcWolkContainer", 1);
var _local3 = veld.attachMovie("mcVeldWebVersion", "mcVeld", 2);
if ((_global.gameMode == "two_player") || (_global.gameMode == "arcade")) {
var _local4 = random(2) + 1;
} else {
var _local4 = _local2[_global.campaignLevel - 1][_global.currentLevel - 1];
}
night = false;
var _local6 = veld.attachMovie("mcBg", "mcBg", 0);
_local3.gotoAndStop(_local4);
};
attachFieldFull = function () {
var _local9 = [1, 4, 1, 1];
var _local8 = [3, 2, 1, 1, 3];
var _local7 = [4, 2, 1, 3, 3];
var _local6 = [1, 3, 3, 2, 1, 3];
var _local5 = [4, 4, 4, 4];
var _local3 = [_local9, _local8, _local7, _local6, _local5];
wolkContainer = veld.createEmptyMovieClip("mcWolkContainer", 1);
var _local4 = veld.attachMovie("mcVeld", "mcVeld", 2);
if ((_global.gameMode == "two_player") || (_global.gameMode == "arcade")) {
var _local2 = random(4) + 1;
} else {
var _local2 = _local3[_global.campaignLevel - 1][_global.currentLevel - 1];
}
if (Math.random() > 0.6) {
night = true;
var _local2 = _local2 + 4;
var _local10 = veld.attachMovie("mcNightBg", "mcNightBg", 0);
wolkContainer._alpha = 40;
} else {
night = false;
var _local10 = veld.attachMovie("mcBg", "mcBg", 0);
}
_local4.gotoAndStop(_local2);
};
attachVeld = function () {
wolkContainer = veld.createEmptyMovieClip("mcWolkContainer", 1);
var _local2 = veld.attachMovie("mcVeld", "mcVeld", 2);
night = false;
var _local1 = veld.attachMovie("mcBg", "mcBg", 0);
};
attachFlits = function () {
flits.attachMovie("mcFlits", "mcFlits", 0);
};
initvars = function () {
if (_global.gameMode == "arcade") {
if (_global.difficulty != undefined) {
diffLevel = _global.difficulty;
} else {
diffLevel = 50;
}
} else if (_global.gameMode == "two_player") {
diffLevel = 50;
} else {
diffLevel = playerData.diffLevel;
}
diffFactorEasyKlein = 1 + ((50 - diffLevel) / 100);
diffFactorEasyGroot = 1 + ((diffLevel - 50) / 100);
gameSpeed = 14.5;
aRekruten = [];
aRekruten[1] = new Array();
aRekruten[2] = new Array();
maxRekruten = 12;
surface = 338;
aXregister = new Array();
aYregister = new Array();
aXregister[1] = [-1, -1, -2, -2, -2, -2, -3, -3, -3, -3, -3, -3];
aYregister[1] = [0, 1, 0, 1, -1, 2, 0, 1, -1, 2, -2, 3];
aXregister[2] = [1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3];
aYregister[2] = [0, 1, 0, 1, -1, 2, 0, 1, -1, 2, -2, 3];
aXDoelen = new Array();
aXDoelen[1] = new Array();
aXDoelen[2] = new Array();
aYDoelen = new Array();
aYDoelen[1] = new Array();
aYDoelen[2] = new Array();
ticks = 0;
sW = 640;
sH = 384;
omslagPunt = sW * 0.6;
fieldLeft = 0;
fieldRight = 640;
fieldTop = 0;
fieldBottom = surface;
shortRandom = Math.random() / 3;
longRandom = 0.5;
maxMinis = 12;
winnaarBekend = false;
beginSpel = false;
winnaar = null;
maxCountPowerUp = 250;
fadeLoop = false;
lastExplosionTime = getTimer();
};
initLevel = function () {
if (_global.gameMode == "arcade") {
oLevelInit = new Object();
var _local4 = (oLevelInit[1] = new Object());
var _local3 = (oLevelInit[2] = new Object());
if (_global.arcadeLevel == 1) {
totalScore = 0;
m1 = _global.arcadeMinis;
m2 = 6;
} else if (_global.arcadeLevel == 2) {
m1 = _global.arcadeMinis;
m2 = 8;
} else if (_global.arcadeLevel == 3) {
m1 = _global.arcadeMinis;
m2 = 10;
}
_local4.minis = m1;
_local3.minis = m2;
} else if (_global.gameMode == "two_player") {
oLevelInit = new Object();
var _local4 = (oLevelInit[1] = new Object());
var _local3 = (oLevelInit[2] = new Object());
if (_global.arcadeLevel == 1) {
m1 = 10;
m2 = 10;
} else if (_global.arcadeLevel == 2) {
m1 = 6;
m2 = 6;
} else if (_global.arcadeLevel == 3) {
m1 = 12;
m2 = 12;
}
_local4.minis = m1;
_local3.minis = m2;
} else {
var _local2 = _global.userData;
oLevelInit = new Object();
var _local4 = (oLevelInit[1] = new Object());
_local4.minis = _local2[_global.currentPlayer].aProgress[_global.currentLevel].aant1;
var _local3 = (oLevelInit[2] = new Object());
_local3.minis = _local2[_global.currentPlayer].aProgress[_global.currentLevel].aant2;
}
};
initBij = function (mc) {
mc.memLeft = (mc.memRight = (mc.memUp = (mc.memDown = 0)));
mc.absSpeed = 0;
mc.speedBoost = 0;
mc._xscale = 100;
mc._yscale = 100;
mc.xElas = 0;
mc.yElas = 0;
mc.pic.xp = 0;
mc.pic.yp = 0;
mc.xGlijSpeed = 0;
mc.yGlijSpeed = 0;
mc.speedY = 0;
mc.speedX = 0;
mc.xSnelheid = 0;
mc.ySnelheid = 0;
mc.absSpeed = 0;
mc.immuun = 0;
mc.type = "commander";
mc.dif = "vliegt";
if (mc == commander1) {
mc.control = true;
mc.commanderNr = 1;
mc.raat = aktie.raat1;
mc.nest = aktie.raat2;
mc._y = 154;
mc.opponent = commander2;
mc.aantMinis = 0;
mc.latestRaatBounce = 0;
mc.minisAlive = oLevelInit[1].minis;
mc.kLe = kLe;
mc.kRi = kRi;
mc.kUp = kUp;
mc.kDown = kDown;
mc.kAttack = kAttack;
mc.absSpeed = 0;
mc.raatApproachSpeed = 0;
mc.ignoreSpeedBoost = false;
} else {
if (_global.multiplayer == true) {
mc.control = true;
mc.latestRaatBounce = 0;
mc.kLe = kLeP2;
mc.kRi = kRiP2;
mc.kUp = kUpP2;
mc.kDown = kDownP2;
mc.kAttack = kAttackP2;
} else {
mc.maxStraySpeed = 0.4;
mc.stray = 0.05 + (Math.random() / 8);
mc.strayX = 0;
mc.strayY = 0;
mem_hero_raat_afst = (mem_hero_nest_afst = (mem_raat_afst = (mem_nest_afst = 0)));
mc.wachtTijd = 0;
mc.moveWeight = 0;
}
mc.commanderNr = 2;
mc.raat = aktie.raat2;
mc.nest = aktie.raat1;
mc.opponent = commander1;
mc.aantMinis = 0;
mc._x = 500;
mc._y = 150;
mc.minisAlive = oLevelInit[2].minis;
}
if (mc.control == true) {
mc.speedBoostNaSchildBounce = 0;
}
mc.memXpos = mc._x;
mc.memYpos = mc._y;
mc.lieDown = 0;
};
initMinis = function () {
var _local2 = 1;
while (_local2 < 3) {
var _local6 = oLevelInit[_local2].minis;
var _local4 = 0;
while (_local4 < _local6) {
var _local1 = bijen.attachMovie("mcMiniBee" + _local2, (("mini" + _local2) + "_") + _local4, bijen.getNextHighestDepth());
_local1._y = aktie["raat" + _local2]._y;
_local1.speedX = Math.random() * maxSpeed;
_local1.speedY = Math.random() * maxSpeed;
_local1.maxSpeed = 1 + random(4);
_local1.struin = 0.05 + (Math.random() / 5);
_local1.maxStruin = random(120) + 40;
_local1.xElas = 0;
_local1.yElas = 0;
_local1.maxRetreatSpeed = 6 + random(6);
var _local5 = 50 / _local6;
_local1.maxHealth = Math.round(40 + ((_local4 + 1) * _local5));
if (_local2 == 1) {
_local1._x = aktie.raat2._x + 50;
_local1.commander = commander1;
_local1.opponent = commander2;
_local1.voor_en_achteruit = 1;
} else {
_local1._x = aktie.raat1._x - 50;
_local1.commander = commander2;
_local1.opponent = commander1;
_local1.voor_en_achteruit = -1;
}
_local1.absSpeed = 0;
_local1.memXpos = _local1._x;
_local1.memYpos = _local1._y;
_local1.dif = "vliegt";
_local1.type = "mini";
mc.wachtTijd = 0;
_local1.avgSpeed = 1;
_local1.lieDown = 0;
if (_local1.commander.control == true) {
_local1.knockOutBlow = 6 + random(15);
_local1.KOcount = 80 + random(300);
_local1.health = 50;
} else {
_local1.knockOutBlow = (4 + random(12)) * ((1 + diffFactorEasyGroot) / 2);
_local1.KOcount = 80 + (random(300) * diffFactorEasyGroot);
_local1.health = 50;
}
_local1.raat = aktie["raat" + _local2];
var _local3 = 0;
while (_local3 < maxRekruten) {
if (aRekruten[_local2][_local3] == null) {
aRekruten[_local2][_local3] = _local1;
_local1.rekruutNr = _local3;
break;
}
_local3++;
}
aXDoelen[_local2][_local1.rekruutNr] = _local1._x;
aYDoelen[_local2][_local1.rekruutNr] = _local1._y;
_local4++;
}
_local2++;
}
};
shakeMain = function () {
if (Math.abs(shake) > 1) {
veld.mcVeld._y = veld.mcVeld._y + shake;
if (shake > 0) {
shake = shake - 1;
} else {
shake = shake + 1;
}
shake = shake * -1;
} else {
shake = 0;
veld.mcVeld._y = 0;
}
};
doExplosions = function () {
var _local2 = 0;
while (_local2 < game.explosionObjects.length) {
var _local1 = game.explosionObjects[_local2];
if (_local1.inactive == true) {
_local1.mc.removeMovieClip();
game.explosionObjects.splice(_local2, 1);
} else {
_local1.vy = _local1.vy + (2 * _local1.mass);
_local1.vx = _local1.vx * 0.95;
_local1.x = _local1.x + _local1.vx;
_local1.y = _local1.y + _local1.vy;
_local1.mc._x = _local1.x;
_local1.mc._y = _local1.y;
if (_local1.rotplus) {
_local1.mc._rotation = _local1.mc._rotation + _local1.rotplus;
}
if (_local1.y > (game.sH - 30)) {
_local1.inactive = true;
} else if (_local1.mc.remove == true) {
_local1.inactive = true;
}
}
_local2++;
}
};
refreshHud = function () {
hud.alive1 = commander1.minisAlive;
hud.alive2 = commander2.minisAlive;
};
createExplosion = function (mc, hitice) {
var _local23 = lastExplosionTime;
lastExplosionTime = getTimer();
if ((lastExplosionTime - _local23) > 200) {
speelSimpelSFX("explosion");
shake = 10;
var _local8 = mc._x;
var _local7 = mc._y;
var _local17 = 0;
var _local15 = 0;
var _local24 = 20;
var _local6 = aktie.getNextHighestDepth();
var _local22 = aktie.attachMovie("mcExpCloud", "cloud" + _local6, _local6);
var _local10 = {x:_local8, y:_local7 - 10, vx:0, vy:-3, mc:_local22, mass:0.01};
game.explosionObjects.push(_local10);
var _local3 = 0;
while (_local3 < 3) {
var _local4 = (_local6 + 2) + _local3;
var _local13 = random(2) + 1;
var _local5 = aktie.attachMovie("mcExpFire" + _local13, "fire" + _local4, _local4);
_local5._rotation = random(360);
var _local12 = 5 - random(11);
var _local11 = (Math.random() * -5) - 3;
_local10 = {x:_local8, y:_local7 - 20, vx:_local12, vy:_local11, mc:_local5, mass:0.2};
game.explosionObjects.push(_local10);
_local3++;
}
if (hitice == true) {
_local3 = 0;
while (_local3 < 4) {
var _local4 = (_local6 + 5) + _local3;
var _local1 = aktie.attachMovie("mcExpDebris", "debris" + _local4, _local4);
_local1.gotoAndStop(random(2) + 1);
_local1._rotation = random(360);
var _local12 = 8 - random(17);
var _local11 = (Math.random() * -14) - 5;
var _local9 = 50 + random(50);
_local1._xscale = (_local1._yscale = _local9);
_local10 = {x:_local8, y:_local7 - 20, vx:_local12, vy:_local11, rotplus:_local12 * 2, mc:_local1, mass:0.6};
game.explosionObjects.push(_local10);
_local3++;
}
var _local21 = 2;
} else {
var _local21 = 4;
}
_local3 = 0;
while (_local3 < _local21) {
var _local4 = (_local6 + 5) + _local3;
var _local2 = aktie.attachMovie("mcExpSmoke", "smoke" + _local4, _local4);
_local2._rotation = random(360);
var _local12 = 5 - random(11);
var _local11 = (Math.random() * -5) - 4;
var _local9 = 40 + random(40);
_local2._xscale = (_local2._yscale = _local9);
_local10 = {x:_local8, y:_local7 - 20, vx:_local12, vy:_local11, mc:_local2, mass:0.04};
game.explosionObjects.push(_local10);
_local3++;
}
}
};
attachMouseCursor = function () {
Mouse.hide();
var _local1 = main.mouseContainer.attachMovie("mcCursor", "mcCursor", 0);
_local1._xscale = 40;
_local1._yscale = 40;
};
showMouse = function () {
Mouse.show();
main.mouseContainer.mcCursor.removeMovieClip();
};
doMouseCursor = function () {
var _local3 = _root._xmouse;
var _local4 = _root._ymouse;
main.mouseContainer.mcCursor._x = _local3;
main.mouseContainer.mcCursor._y = _local4;
var _local5 = getDistanceExt(_local3, _local4, game.memMouseX, game.memMouseY);
if (_root._xmouse > omslagPunt) {
main.mouseContainer.mcCursor.gotoAndStop(2);
main.mouseContainer.mcCursor._alpha = 100;
} else {
main.mouseContainer.mcCursor.gotoAndStop(1);
var _local2 = _local5 * 4;
var _local6 = main.mouseContainer.mcCursor._alpha;
if (_local2 >= main.mouseContainer.mcCursor._alpha) {
main.mouseContainer.mcCursor._alpha = _local2;
} else if ((_local6 - _local2) > 5) {
main.mouseContainer.mcCursor._alpha = main.mouseContainer.mcCursor._alpha - 3;
} else {
main.mouseContainer.mcCursor._alpha = main.mouseContainer.mcCursor._alpha - 1;
}
}
game.memMouseX = _local3;
game.memMouseY = _local4;
};
getDistanceExt = function (obj0x, obj0y, obj1x, obj1y) {
var _local2 = obj0x - obj1x;
var _local1 = obj0y - obj1y;
return(Math.round(Math.sqrt((_local2 * _local2) + (_local1 * _local1))));
};
toetsAkties = function (toets, mc) {
var _local3 = 30;
switch (toets) {
case "right" :
if (mc.memRight < _local3) {
mc.memRight = mc.memRight + 1;
}
break;
case "left" :
if (mc.memLeft < _local3) {
mc.memLeft = mc.memLeft + 1;
}
break;
case "up" :
if (mc.memUp < _local3) {
mc.memUp = mc.memUp + 1;
}
break;
case "down" :
if (mc.memDown < _local3) {
mc.memDown = mc.memDown + 1;
}
break;
case "space" :
if ((((mc.absSpeed > 3) && (mc.raatApproachSpeed > 3)) && (mc.ignoreSpeedBoost != true)) && (_root._xmouse > omslagPunt)) {
if (mc.pic._currentframe != 1) {
mc.pic.gotoAndStop(1);
}
if (mc.speedBoost < 2.5) {
mc.speedBoost = mc.speedBoost + (mc.absSpeed / 40);
}
mc.schild = false;
}
if (mc.raatApproachSpeed >= 5) {
break;
}
if (mc.powerUpNr == 2) {
var _local4 = 3;
} else {
var _local4 = 2;
}
mc.pic.gotoAndStop(_local4);
mc.schild = true;
if (mc.speedBoost <= 0) {
break;
}
mc.speedBoost = mc.speedBoost - 0.2;
}
};
userPreferences = function () {
var _local2 = _global.userData;
var _local3 = _global.currentPlayer;
playerData = _local2[_local3];
kLe = _local2[_local3].aKeys.left;
kRi = _local2[_local3].aKeys.right;
kUp = _local2[_local3].aKeys.up;
kDown = _local2[_local3].aKeys.down;
kAttack = _local2[_local3].aKeys.attack;
kLeP2 = _local2[_local3].aP2Keys.left;
kRiP2 = _local2[_local3].aP2Keys.right;
kUpP2 = _local2[_local3].aP2Keys.up;
kDownP2 = _local2[_local3].aP2Keys.down;
kAttackP2 = _local2[_local3].aP2Keys.attack;
};
regelMuis = function () {
trace("REGEGEL");
muisLuister = new Object();
Mouse.addListener(muisLuister);
muisLuister.onMouseDown = function () {
muisDown = true;
};
muisLuister.onMouseUp = function () {
muisDown = false;
};
};
stuiterMc = function (mc, dx, dy) {
this=mc;//parameter overwritten
if (this.bounce != true) {
if (this.type == "mini") {
if ((Math.abs(dx) + Math.abs(dy)) > this.knockOutBlow) {
this.bewust = false;
} else {
this.bewust = true;
}
if (this.health <= 0) {
this.bewust = false;
this.kia = true;
}
} else {
this.bewust = true;
if (mc.control == true) {
clearToetsMem(mc);
}
}
mc.speedX = dx;
mc.speedY = dy;
}
this.bounce = true;
if (this.bewust == true) {
var _local7;
((mc.absSpeed > 50) ? (_local7 = 50) : (_local7 = mc.absSpeed));
var _local6 = (50 - _local7) / 50;
} else {
var _local6 = 0;
}
this.speedY = this.speedY + (0.15 * (1 - (_local6 / 10)));
this.speedX = this.speedX * 0.97;
this.speedX = this.speedX * (1 - (_local6 / 10));
this._y = this._y + this.speedY;
this._x = this._x + this.speedX;
if (this._y > fieldBottom) {
if (this.type == "commander") {
this.speedBoost = 0;
}
this._y = fieldBottom;
this.speedY = this.speedY * -0.24;
}
if (this._x > fieldRight) {
this._x = fieldRight - (mc._width / 2);
this.speedX = this.speedX * -0.64;
}
if (this._x < fieldLeft) {
this._x = fieldLeft + (mc._width / 2);
this.speedX = this.speedX * -0.64;
}
if (this.bewust == true) {
var _local5;
((this.type == "mini") ? (_local5 = 3) : (_local5 = 5));
if (this.absSpeed < _local5) {
this.bounce = false;
this.moveWeight = 0;
mc.dif = "vliegt";
if (this.control == true) {
if (this.speedX < 0) {
mc.memLeft = -(this.speedX * gameSpeed);
mc.memRight = 0;
} else {
mc.memRight = this.speedX * gameSpeed;
mc.memLeft = 0;
}
if (this.speedY < 0) {
mc.memUp = -(this.speedY * gameSpeed);
mc.memDown = 0;
} else {
mc.memDown = this.speedY * gameSpeed;
mc.memUp = 0;
}
mc.ignoreSpeedBoost = true;
}
}
} else if (this.absSpeed < 0.01) {
if (this.kia == true) {
this.lieDown++;
if (this.lieDown >= 10) {
var _local4 = aktie.getNextHighestDepth();
var _local3 = aktie.attachMovie("mcKruis", "kruis" + _local4, _local4);
_local3._x = this._x;
_local3._y = this._y;
_local3.kruisnr = this.commander.commanderNr;
if (this.commander.control == true) {
if (winnaar == null) {
speelSimpelSFX("man_lost");
}
}
this.removeMovieClip();
}
} else {
this.lieDown++;
if (this.lieDown >= this.KOcount) {
this.bounce = false;
mc.dif = "vliegt";
this.lieDown = 0;
mc.memRight = 0;
mc.memLeft = 0;
mc.memUp = 0;
mc.memDown = 0;
}
}
}
};
moveElas = function (mc, doelx, doely, inertia, k, optieBeperk) {
mc.move = true;
var _local4 = doelx;
var _local3 = doely;
_local4 = (-mc._x) + _local4;
_local3 = (-mc._y) + _local3;
mc.xElas = (mc.xElas * inertia) + (_local4 * k);
mc.yElas = (mc.yElas * inertia) + (_local3 * k);
if (optieBeperk == 1) {
var _local2 = mc.maxRetreatSpeed;
if (mc.xElas > _local2) {
mc.xElas = _local2;
} else if (mc.xElas < (-_local2)) {
mc.xElas = -_local2;
}
if (mc.yElas > _local2) {
mc.yElas = _local2;
} else if (mc.yElas < (-_local2)) {
mc.yElas = -_local2;
}
} else if (optieBeperk == 2) {
var _local2 = 34;
if (mc.commander.powerUpNr == 1) {
_local2 = _local2 * 1.5;
trace("POWER");
}
if (mc.xElas > _local2) {
mc.xElas = _local2;
} else if (mc.xElas < (-_local2)) {
mc.xElas = -_local2;
}
if (mc.yElas > _local2) {
mc.yElas = _local2;
} else if (mc.yElas < (-_local2)) {
mc.yElas = -_local2;
}
}
mc._x = mc._x + mc.xElas;
mc._y = mc._y + mc.yElas;
if ((Math.abs(mc.xElas) < 0.1) && (Math.abs(mc.yElas) < 0.1)) {
mc.move = false;
}
};
moveElasAI = function (mc, doelx, doely, inertia, k, optieRetreat) {
var _local3 = doelx;
var _local2 = doely;
_local3 = (-mc._x) + _local3;
_local2 = (-mc._y) + _local2;
mc.xElas = (mc.xElas * inertia) + (_local3 * k);
mc.yElas = (mc.yElas * inertia) + (_local2 * k);
if (mc.xElas > 5) {
mc.xElas = 5;
}
if (mc.xElas < -5) {
mc.xElas = -5;
}
mc._x = mc._x + mc.xElas;
mc._y = mc._y + mc.yElas;
var _local4 = Math.abs(mc.xElas);
if (((Math.abs(mc.xElas) < 0.1) && (Math.abs(mc.yElas) < 0.1)) || (mc.absSpeed < 0.5)) {
mc.moveWeight = 0;
}
};
moveBij = function (mc, inertia, k) {
var _local3 = _root._xmouse;
var _local4 = _root._ymouse;
if (mc.speedBoost > 1) {
_local3 = 1000;
}
_local3 = (-mc._x) + _local3;
_local4 = (-mc._y) + _local4;
mc.xElas = (mc.xElas * inertia) + (_local3 * k);
mc.yElas = (mc.yElas * inertia) + (_local4 * k);
if (mc.xElas > 18) {
mc.xElas = 18;
}
if (mc.xElas < -18) {
mc.xElas = -18;
}
mc._x = mc._x + mc.xElas;
mc._y = mc._y + mc.yElas;
var _local5 = Math.abs(mc.xElas);
};
elas = function (mc, punt, inertia, k) {
var _local3 = punt._x;
var _local2 = punt._y;
mc.xp = (mc.xp * inertia) + (_local3 * k);
mc.yp = (mc.yp * inertia) + (_local2 * k);
mc._x = mc._x + mc.xp;
mc._y = mc._y + mc.yp;
};
berekenAfstand = function (mc1, mc2) {
var _local2 = mc2._x - mc1._x;
var _local1 = mc2._y - mc1._y;
return(Math.round(Math.sqrt((_local2 * _local2) + (_local1 * _local1))));
};
berekenPuntAfstand = function (mc, puntx, punty) {
var _local2 = puntx - mc._x;
var _local1 = punty - mc._y;
return(Math.round(Math.sqrt((_local2 * _local2) + (_local1 * _local1))));
};
berekenSnelheid = function (mc) {
var _local3 = mc.memXpos - mc._x;
var _local2 = mc.memYpos - mc._y;
mc.absSpeed = Math.round(Math.sqrt((_local3 * _local3) + (_local2 * _local2)));
mc.memXpos = mc._x;
mc.memYpos = mc._y;
mc.xSnelheid = -_local3;
mc.ySnelheid = -_local2;
if (mc.type == "commander") {
var _local4 = berekenAfstand(mc.raat, mc);
mc.raatApproachSpeed = mc.raatDistance - _local4;
mc.raatDistance = _local4;
}
};
berekenAbsSnelheid = function (mc) {
var _local3 = mc.memXpos - mc._x;
var _local2 = mc.memYpos - mc._y;
mc.absSpeed = Math.round(Math.sqrt((_local3 * _local3) + (_local2 * _local2)));
mc.memXpos = mc._x;
mc.memYpos = mc._y;
};
attachBijen = function () {
commander1 = main.bijen.attachMovie("mcBij", "commander1", 0);
commander1._x = 100;
commander1._y = 20;
commander2 = main.bijen.attachMovie("mcBijEnemy", "commander2", 1);
commander2._x = 400;
commander2._y = 60;
initBij(commander1);
initBij(commander2);
aCommanders = new Array(null, commander1, commander2);
};
maakRegisterPunten = function (mc) {
var _local2 = 13;
var _local1 = 0;
while (_local1 < _local2) {
main.attachMovie("reg", "reg" + _local1, main.getNextHighestDepth());
_local1++;
}
};
resetMemToetsen = function () {
var _local4 = Math.abs;
var _local2 = commander1;
if (_global.multiplayer == true) {
aant = 3;
} else {
aant = 2;
}
var _local3 = 0;
while (_local3 < aant) {
_local2 = bijen["commander" + _local3];
if (_local4(_local2.memLeft < 1)) {
_local2.memLeft = 0;
}
if (_local4(_local2.memRight < 1)) {
_local2.memRight = 0;
}
if (_local4(_local2.memUp < 1)) {
_local2.memUp = 0;
}
if (_local4(_local2.memDown < 1)) {
_local2.memDown = 0;
}
_local3++;
}
};
setIntervals = function () {
onceHalfSecInt = setInterval(onceHalfSec, 500);
once2SecInt = setInterval(once2Sec, 2000);
once4SecInt = setInterval(once4Sec, 4000);
once30SecInt = setInterval(once30Sec, 30000);
};
onceHalfSec = function () {
sfxCounters();
miniHealth();
};
once2Sec = function () {
shortRandom = Math.random();
fps = (ticks - memTicks) / 2;
memTicks = ticks;
randomSFX();
if (beginSpel == true) {
if (Math.random() < 0.09) {
attachGem();
}
}
};
stopPowerUp = function (commanderMc) {
commanderMc.powerUpNr = null;
};
startPowerup = function (commanderMc, powerUpNr) {
commanderMc.powerUpNr = powerUpNr;
commanderMc.countPowerUp = 250;
};
attachGem = function () {
var _local4 = aktie.getNextHighestDepth();
var _local5 = random(3) + 1;
var _local3 = aktie.attachMovie("mcGem" + _local5, "mcGem" + _local4, _local4);
_local3._x = Math.random() * sW;
_local3.powerUpNr = _local5;
_local3.speed = 0.8 + (Math.random() * 1.5);
_local3.onEnterFrame = function () {
this._y = this._y + this.speed;
if (this.hitTest(commander1)) {
speelSimpelSFX("powerup");
startPowerup(commander1, this.powerUpNr);
this.removeMovieClip();
} else if (_global.gameMode == "two_player") {
if (this.hitTest(commander2)) {
speelSimpelSFX("powerup");
startPowerup(commander2, this.powerUpNr);
this.removeMovieClip();
}
}
if (this._y > fieldBottom) {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
};
};
once4Sec = function () {
resetMemToetsen();
commander2.stray = commander2.offence + (Math.random() / 8);
};
once30Sec = function () {
longRandom = Math.random();
};
glijDoor = function (mc) {
mc.xGlijSpeed = mc.xSnelheid;
mc.yGlijSpeed = mc.ySnelheid;
mc.xGlijSpeed = mc.xGlijSpeed * 0.92;
mc.yGlijSpeed = mc.yGlijSpeed * 0.92;
mc._x = mc._x + mc.xGlijSpeed;
mc._y = mc._y + mc.yGlijSpeed;
};
unsetDrager = function () {
commander2.moveWeight = 0;
removeMovieClip(main.draagMcs.drager);
};
tril = function (mc) {
mc.tril--;
if (mc.trilstand == "min") {
mc._y = mc._y + mc.tril;
mc.trilstand = "plus";
} else {
mc._y = mc._y - mc.tril;
mc.trilstand = "min";
}
if (mc.tril <= 0) {
mc.trilling = false;
}
};
berekenMiniAvgYpos = function (optie) {
var _local3 = 0;
if (_local3 < aRekruten[2].length) {
var _local4 = aRekruten[2][_local3];
var _local2 = 0;
var _local1 = 0;
if (bijen["mini2_" + _local3] != null) {
if (_local4.dif == "vliegt") {
_local2 = _local2 + _local4._y;
_local1++;
}
}
if (optie != "retreat") {
if (_local1 == 0) {
return(commander1._y);
}
return(_local2 / _local1);
}
if (_local1 == 0) {
return(commander2.nest._y);
}
_local2 = _local2 + (commander1._y * _local1);
_local1 = _local1 + _local1;
return(_local2 / _local1);
}
};
_global.doElas = function (mc, doel, inertia, k) {
mc.move = true;
var _local2 = doel;
_local2 = (-mc._xscale) + doel;
mc.elas = (mc.elas * inertia) + (_local2 * k);
mc._xscale = mc._xscale + mc.elas;
mc._yscale = mc._yscale + mc.elas;
};
raatBounce = function (mc) {
this=mc;//parameter overwritten
if ((Math.round(this.speedx) > 1) && (this._x < (mc.right - (this._width / 2)))) {
this.speedy = this.speedy * 0.7;
this.speedx = this.speedx * 0.7;
this._y = this._y + this.speedy;
this._x = this._x + this.speedx;
} else {
this.speedy = 0;
this.speedx = 0;
var _local5 = this._x - this.takX;
var _local4 = this._y - this.takY;
var _local3 = Math.atan2(_local4, _local5);
var _local8 = Math.round((_local3 * 180) / Math.PI);
this._rotation = (_local8 / 2) - 45;
var _local7 = this.takX + (Math.cos(_local3) * mc.radius);
var _local6 = this.takY + (Math.sin(_local3) * mc.radius);
this.vx = this.vx + ((_local7 - this._x) * mc.k);
this.vy = this.vy + ((_local6 - this._y) * mc.k);
this.vy = this.vy + mc.grav;
this.vx = this.vx * mc.damp;
this.vy = this.vy * mc.damp;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
if (this._y > (mc.bottom - (this._height / 2))) {
this._y = mc.bottom - (this._height / 2);
this.vy = this.vy * -1;
} else {
this.vx = this._x - this.oldx;
this.vy = this._y - this.oldy;
this.oldx = this._x;
this.oldy = this._y;
}
}
berekenAbsSnelheid(this);
tekenTouw();
};
losingMinisKIA = function (side) {
var _local2 = 0;
while (_local2 < aRekruten[side].length) {
var _local1 = aRekruten[side][_local2];
_local1.dif = "lose";
_local1.knockOutBlow = 0;
_local1.health = 0;
_local1.bounce = false;
_local2++;
}
};
stootRaat = function (bijMc, raat) {
if (bijMc.absSpeed > 5) {
if (bijMc.type == commander) {
var _local7 = Math.abs(bijMc.xSnelheid) * 1.5;
} else {
var _local7 = Math.abs(bijMc.xSnelheid) / 3;
}
var _local10 = 0.7 + (diffFactorEasyGroot / 2);
if (bijMc.opponent.control != true) {
var _local8 = _local7 * _local10;
} else {
var _local8 = _local7;
}
if (bijMc.type == commander) {
var _local8 = _local8 * 6;
}
if (bijMc == commander2) {
var _local8 = _local8 * 2.8;
}
raat.damage = raat.damage + _local8;
var _local11 = raat.nr;
if (bijMc == commander1) {
manageSoundFx("sfx_raathit", 1);
} else if (bijMc == commander2) {
manageSoundFx("sfx_raathit", 3);
} else if (bijMc.commander == commander1) {
manageSoundFx("sfx_raathit", 2);
} else {
manageSoundFx("sfx_raathit", 4);
}
if (bijMc.control == true) {
bijMc.latestRaatBounce = getTimer();
}
if (bijMc.type == "mini") {
var _local9 = (_local7 * 1.4) + random(20);
if (bijMc.commander.powerUpNr == 1) {
_local9 = _local9 * 0.7;
}
bijMc.health = bijMc.health - _local9;
}
bijMc.dif = "bounce";
bijMc.schildBounce = false;
if ((raat.damage > raat.maxRaatDamage) && (winnaar == null)) {
if (bijMc.type == "commander") {
winnaar = bijMc;
} else {
winnaar = bijMc.commander;
}
createExplosion(bijMc, false);
speelSimpelSFX("raat_exp");
shake = 10;
if ((_global.gameMode != "arcade") && (_global.gameMode != "two_player")) {
losingMinisKIA(winnaar.opponent.commanderNr);
}
if (raat.geCrashed != true) {
raat.vx = raat.vx + (bijMc.xSnelheid * raat.gewicht);
raat.vy = raat.vy + (bijMc.ySnelheid * raat.gewicht);
raat.dif = "ko";
aktie.clear();
stuiterRaat(raat);
}
} else {
raat.vx = raat.vx + (bijMc.xSnelheid * raat.gewicht);
raat.vy = raat.vy + (bijMc.ySnelheid * raat.gewicht);
}
var _local6 = aktie.getNextHighestDepth();
var _local2 = 0;
while (_local2 < random(4)) {
var _local5 = aktie.attachMovie("mcRaatSchillen", "schil" + (_local6 + _local2), _local6 + _local2);
_local5._x = raat._x;
_local5._y = raat._y;
_local2++;
}
damageRaat();
}
};
damageRaat = function () {
var _local4 = 1;
while (_local4 < 3) {
var _local3 = aktie["raat" + _local4];
var _local2 = 100 - ((_local3.damage / _local3.maxRaatDamage) * 100);
hud["healthbar" + _local4].mask._xscale = _local2;
if (_local2 < 0) {
_local2 = 0;
}
_local3.damagePerc = _local2;
var _local1 = Math.floor((100 - _local2) / 16.66) + 1;
if (_local1 > 6) {
_local1 = 6;
}
if (_local1 < 1) {
_local1 = 1;
}
_local3.gotoAndStop(_local1);
_local4++;
}
};
gooiOp = function (mc, dx, dy) {
if (dx != 0) {
mc.speedx = dx;
}
if (dy != 0) {
mc.speedy = dy;
}
mc.onEnterFrame = function () {
this.speedy = this.speedy * 0.95;
this.speedx = this.speedx * 0.95;
this._y = this._y + this.speedy;
this._x = this._x + this.speedx;
if (this.speedy < 5) {
}
};
};
attachRaat = function () {
var _local1 = 1;
while (_local1 < 3) {
if (night == true) {
var _local2 = aktie.attachMovie("mcRaatNight", "raat" + _local1, aktie.getNextHighestDepth());
} else {
var _local2 = aktie.attachMovie("mcRaat", "raat" + _local1, aktie.getNextHighestDepth());
}
initRaat(_local2);
_local1++;
}
betweenNests = Math.floor(aktie.raat1.takX - aktie.raat2.takX);
};
raatExp = function (mc, optieSchil) {
var _local4 = aktie.getNextHighestDepth();
var _local2 = 1;
while (_local2 < 6) {
if (optieSchil == true) {
var _local3 = aktie.attachMovie("raatSchil" + _local2, "raatSchil" + _local2, _local4 + _local2);
} else {
var _local3 = aktie.attachMovie("raatBrok" + _local2, "raatBrok" + _local2, _local4 + _local2);
}
_local3._x = mc._x;
_local3._y = mc._y;
_local3.speedx = 10 - random(20);
_local3.speedy = -5 - random(10);
_local3.onEnterFrame = function () {
this.speedy = this.speedy + 1;
this.speedx = this.speedx * 0.95;
this._y = this._y + this.speedy;
this._x = this._x + this.speedx;
if (this._y > fieldBottom) {
delete mc.onEnterFrame;
removeMovieClip(this);
}
};
_local2++;
}
};
initRaat = function (mc) {
mc.grav = 5.5;
mc.bottom = 380;
mc.radius = 70;
mc.k = 0.13;
mc.damp = 0.86;
mc.speedx = 0;
mc.speedy = 0;
mc.vx = 0;
mc.vy = 0;
mc.damage = 0;
if (mc == aktie.raat2) {
mc.takX = 98;
mc.takY = 54;
mc.radius = 94;
var _local2 = 30 - random(60);
mc.x = 98 + _local2;
mc.y = 134;
mc._x = 98 + _local2;
mc._y = 134;
mc.nr = 2;
} else {
mc.takX = 540;
mc.takY = 68;
mc.radius = 80;
var _local2 = 30 - random(60);
mc.x = 540 + _local2;
mc.y = 148;
mc._x = 540 + _local2;
mc._y = 148;
mc.nr = 1;
}
if (mc.nr == 1) {
var _local6 = 2;
} else {
var _local6 = 1;
}
var _local5 = oLevelInit[_local6].minis;
var _local7 = _local5 - (maxMinis / 2);
var _local4 = 100 + (_local7 * 3);
mc._xscale = _local4;
mc._yscale = _local4;
var _local3 = (maxMinis / 2) - _local5;
mc.gewicht = (100 + (_local3 * 5)) / 100;
mc.maxRaatDamage = 600 - (_local3 * 30);
mc.absSpeed = 0;
mc.memXpos = mc._x;
mc.memYpos = mc._y;
};
stuiterRaat = function (mc, dx, dy) {
this=mc;//parameter overwritten
this.onEnterFrame = function () {
this.vy = this.vy + 1;
this.vx = this.vx * 0.8;
this._y = this._y + this.vy;
this._x = this._x + this.vx;
if (this._y > (fieldBottom - 20)) {
this._y = fieldBottom - 20;
this._rotation = 0;
this.gotoAndStop("weg");
if (this.geCrashed != true) {
eindeSpelSequence();
raatExp(this);
delete this.onEnterFrame;
}
this.geCrashed = true;
this.vy = this.vy * -0.24;
}
if ((this._x + (this._width / 2)) > fieldRight) {
this._x = fieldRight - (mc._width / 2);
this.vx = this.vx * -0.64;
}
if ((this._x - (this._width / 2)) < fieldLeft) {
this._x = fieldLeft + (mc._width / 2);
this.vx = this.vx * -0.64;
}
if (this.absSpeed < 0.01) {
}
};
};
tekenTouw = function () {
aktie.clear();
aktie.lineStyle(2, 16763904, 100);
var _local2 = 1;
while (_local2 < 3) {
var _local1 = aktie["raat" + _local2];
if (_local1.dif != "ko") {
aktie.moveTo(_local1._x, _local1._y);
aktie.lineTo(_local1.takX, _local1.takY);
}
_local2++;
}
};
testTravelTime = function (bee, nest, distance, incomingSpeed) {
var _local1 = (-incomingSpeed) * 20;
return(distance + _local1);
};
calcAlgVars = function () {
var _local2 = 1;
while (_local2 < 3) {
var _local1 = bijen["commander" + _local2];
_local1.nest_afst = berekenAfstand(_local1.nest, _local1);
_local1.nest_travelspeed = _local1.mem_nest_afst - _local1.nest_afst;
_local1.mem_nest_afst = _local1.nest_afst;
_local1.vooruit_achteruit = -_local1.nest_travelspeed;
_local2++;
}
commander2.hero_afst = berekenAfstand(commander2, commander1);
commander2.heroImpact = mem_hero_afst - commander2.hero_afst;
mem_hero_afst = commander2.hero_afst;
};
commanderAI = function (mc) {
var _local2 = mc.opponent;
var _local3 = mc.nest;
var _local4 = mc.raat;
var _local14 = Math.max(_local2.aantMinis, mc.aantMinis);
if (_local14 == 0) {
_local14 = 1;
}
minis_perc = mc.aantMinis / _local14;
hero_minis_perc = _local2.aantMinis / _local14;
minis_perc_verschil = minis_perc - hero_minis_perc;
mc.offence = 0.6 + (0.4 * minis_perc_verschil);
mc.maxStraySpeed = 0.2 + (mc.offence / 2);
var _local35 = 0;
var _local36 = 0;
var _local38 = mc.hero_afst;
var _local12 = berekenPuntAfstand(mc, _local4.x, _local4.y);
var _local19 = mc.nest_afst;
var _local13 = berekenAfstand(_local3, _local2);
var _local40 = _local2.nest_afst;
var _local5 = (betweenNests - (_local3._x - _local2._x)) / betweenNests;
_local5 = (_local5 + 0.5) / 1.5;
if (_local5 < 0) {
_local5 = 0;
}
if (_local5 > 1) {
_local5 = 1;
}
var _local6 = (betweenNests - (mc._x - _local4._x)) / betweenNests;
if (_local6 < 0) {
_local6 = 0;
}
if (_local6 > 1) {
_local6 = 1;
}
var _local7 = 1 - ((betweenNests - (mc._x - _local2._x)) / betweenNests);
if (_local7 < 0) {
_local7 = 0;
} else if (_local7 > 1) {
_local7 = 1;
}
var _local34 = _local2.nest_travelspeed;
var _local29 = mc.nest_travelspeed;
var _local25 = mem_hero_nest_afst - _local13;
mem_hero_nest_afst = _local13;
var _local37 = mem_raat_afst - _local12;
mem_raat_afst = _local12;
var _local16 = estTravelTime(mc, _local4, _local12, _local37);
if (_local16 < 0) {
_local16 = 1;
}
var _local20 = estTravelTime(_local2, _local4, _local40, _local34);
if (_local20 < 80) {
_local20 = 0;
}
var _local9 = estTravelTime(mc, _local3, _local19, _local29);
if (_local9 < 80) {
_local9 = 0;
}
var _local17 = estTravelTime(_local2, _local3, _local13, _local25);
if (_local17 < 0) {
_local17 = 1;
}
var _local28 = 1 - (mc.offence / 4);
_local16 = _local16 * _local28;
_local9 = _local9 * _local28;
_local35 = _local2._y;
_local36 = 0;
var _local26 = _local4._x;
var _local21 = _local4._y;
var _local41 = berekenPuntAfstand(_local2, _local26, _local21);
var _local42 = berekenPuntAfstand(mc, _local26, _local21);
var _local27 = Math.abs(_local21 - _local2._y) / 120;
if (_local27 > 1) {
_local27 = 1;
}
if (_local19 < 50) {
var _local30 = true;
}
var _local10 = (mc._y - _local3._y) / 120;
if (_local10 > 1) {
_local10 = 1;
} else if (_local10 < -1) {
_local10 = -1;
}
var _local22 = Math.abs(_local2._y - mc._y) / 280;
if (_local22 > 1) {
_local22 = 1;
}
var _local24 = (diffLevel * -0.03) + 5;
if (mc.wachtTijd > 0) {
mc.wachtTijd--;
if (mc.wachtTijd <= 0) {
mc.speedBoost = 0;
}
}
if (mc.wachtNaDrager > 0) {
mc.wachtNaDrager--;
var _local23 = true;
} else {
var _local23 = false;
}
if (mc.dif == "bounce") {
mc.moveWeight = 0;
} else {
if (mc.moveWeight < 9) {
if (mc.absSpeed < 5) {
var _local8 = false;
var _local39 = (_local5 * (_local22 * 3)) * mc.offence;
_local39 = _local5 * mc.offence;
if (_local39 > shortRandom) {
_local8 = true;
} else if (_local13 < 100) {
if (_local25 < 2) {
if (mc.offence > shortRandom) {
_local8 = true;
}
}
} else if (_local16 < _local20) {
if (_local19 > 50) {
if (_local9 < _local17) {
if (mc.offence > shortRandom) {
_local8 = true;
}
} else if (mc.offence > shortRandom) {
_local8 = true;
}
}
}
if (_local8 == true) {
if (_local12 > 220) {
mc.moveWeight = 10;
mc.movePuntX = _local4._x;
mc.movePuntY = _local4._y;
maakDrager(mc, _local2, _local4._x, _local4._y, mc.absSpeed, 1.5, true);
}
} else if (mc.speedBoost > 0) {
mc.speedBoost = mc.speedBoost - 0.2;
}
}
}
if (mc.moveWeight <= 6) {
if (mc.moveWeight == 6) {
var _local33 = _local3.x - (25 + (20 * shortRandom));
var _local32 = berekenMiniAvgYpos("retreat");
moveElasAI(mc, _local33, _local32, 0.5, 0.02, true);
} else {
var _local33 = _local3.x - (25 + (20 * shortRandom));
if (((mc.absSpeed < _local24) && (mc.bounce != true)) && (_local23 != true)) {
var _local18 = false;
if (_local17 < _local9) {
if (_local30 != true) {
_local18 = true;
}
} else if (_local6 > (0.3 + (shortRandom / 3))) {
if (_local30 != true) {
_local18 = true;
}
}
if (_local18 == true) {
mc.dif = "vliegt";
mc.moveWeight = 6;
moveElasAI(mc, _local33, _local3._y, 0.5, 0.02, true);
}
}
}
}
if (mc.moveWeight <= 5) {
if (mc.moveWeight == 5) {
var _local33 = _local3.x - (30 + (20 * shortRandom));
if (_local2.speedBoost > 0.6) {
var _local32 = berekenMiniAvgYpos();
} else {
var _local32 = _local3._y + ((_local2._y - _local3._y) / 2);
}
moveElasAI(mc, _local33, _local32, 0.5, 0.02);
} else if (((mc.absSpeed < _local24) && (mc.bounce != true)) && (_local23 != true)) {
if (_local5 > (0.3 + (shortRandom / 3))) {
mc.moveWeight = 5;
if (_local2.speedBoost > 0.6) {
var _local32 = berekenMiniAvgYpos();
} else {
var _local32 = _local3._y + ((_local2._y - _local3._y) / 2);
}
var _local33 = _local3.x - (30 + (20 * shortRandom));
moveElasAI(mc, _local33, _local32, 0.5, 0.02);
} else {
mc.moveWeight = 0;
}
}
}
if (mc.moveWeight <= 4) {
if ((_local2.speedBoost > 0.6) && (_local23 != true)) {
mc.moveWeight = 4;
var _local32 = berekenMiniAvgYpos();
var _local33 = _local3.x - (30 + (20 * shortRandom));
moveElasAI(mc, _local33, _local32, 0.75 + (shortRandom / 5), 0.02);
} else {
mc.moveWeight = 0;
}
}
if ((((_local29 > -10) && (mc.heroImpact > -5)) && (_local38 < (80 + (mc.heroImpact * 6)))) || (_local2.speedBoost > 1)) {
mc.pic.gotoAndStop(2);
mc.schild = true;
_local2.schildBounce = true;
} else {
mc.pic.gotoAndStop(1);
mc.schild = false;
}
if (mc.moveWeight <= 1) {
mc._x = mc._x - mc.strayX;
mc._y = mc._y + mc.strayY;
var _local15 = 1;
var _local31 = 1;
if (_local6 < 0.2) {
_local15 = _local15 + ((0.2 - _local6) * 1.2);
}
_local15 = _local15 + (mc.offence / 8);
if (_local7 < 0.5) {
_local15 = _local15 - ((0.5 - _local7) / 1.3);
}
_local31 = _local31 + (-(_local10 / 1.6));
if (Math.random() < mc.stray) {
var _local11 = mc.maxStraySpeed;
mc.strayX = ((Math.random() * _local11) * _local15) - (_local11 / 2);
mc.strayY = ((Math.random() * _local11) * _local31) - (_local11 / 2);
}
}
if (main.draagMcs.drager != null) {
mc._x = main.draagMcs.drager._x;
mc._y = main.draagMcs.drager._y;
} else if ((mc.moveWeight == 0) && (mc.bounce != true)) {
glijDoor(mc);
}
}
};
initMusic = function () {
sound.createEmptyMovieClip("loop", 0);
initSFX();
if (_global.saveConfig.music == true) {
playLoop();
}
};
playLoop = function () {
music_loop = new Sound(sound.loop);
music_loop.attachSound("loop");
music_loop.start(0, 0);
music_loop.onSoundComplete = function () {
this.start(0, 0);
};
music_loop.setVolume(46);
};
stopLoop = function () {
music_loop.stop();
};
initSFX = function () {
sound.createEmptyMovieClip("schild", 1);
schild_commander = new Sound(sound.schild);
schild_commander.attachSound("schildhit");
schild_powerup = new Sound(sound.schild);
schild_powerup.attachSound("shield_powerup");
sound.createEmptyMovieClip("minis", 2);
mini_aanval = new Sound(sound.minis);
mini_aanval.counter = 0;
aAanvalVoices = new Array("attack", "attack", "attack", "tomahawk", "for_the_queen", "for_justice");
mini_man_lost = new Sound(sound.minis);
mini_man_lost.attachSound("man_lost");
mini_powerup = new Sound(sound.minis);
mini_powerup.attachSound("powerup_voice");
sound.createEmptyMovieClip("omgeving", 3);
omgeving_bird = new Sound(sound.omgeving);
omgeving_bird.attachSound("bird");
power_up = new Sound(sound.omgeving);
power_up.attachSound("powerup");
sound.createEmptyMovieClip("gameaktie", 4);
sfx_raat_exp = new Sound(sound.gameaktie);
sfx_raat_exp.attachSound("raat_exp");
sfx_raathit = new Sound(sound.gameaktie);
sfx_raathit.attachSound("raathit");
sfx_raathit.timer = 0;
sfx_raathit.counter2 = 0;
sfx_raathit2 = new Sound(sound.gameaktie);
sfx_raathit2.attachSound("raathit2");
aCounters = new Array();
var _local1 = 1;
while (_local1 < 5) {
aCounters["raat" + _local1] = 0;
_local1++;
}
};
initSFXWebVersion = function () {
if (_global.userData[_global.currentPlayer].music == 1) {
sound.createEmptyMovieClip("loop", 0);
music = new Sound(sound.loop);
music.attachSound("loop0");
music.start(0, 0);
music.onSoundComplete = function () {
this.start(0, 0);
};
loopVolume = 100;
music.setVolume(loopVolume);
_global.musicPlaying = 2;
}
sound.createEmptyMovieClip("schild", 1);
schild_commander = new Sound(sound.schild);
schild_commander.attachSound("schildhit");
sound.createEmptyMovieClip("minis", 2);
mini_aanval = new Sound(sound.minis);
mini_aanval.counter = 0;
aAanvalVoices = new Array("attack", "attack", "attack", "tomahawk", "for_the_queen", "for_justice");
mini_man_lost = new Sound(sound.minis);
mini_man_lost.attachSound("man_lost");
sound.createEmptyMovieClip("omgeving", 3);
omgeving_bird = new Sound(sound.omgeving);
omgeving_bird.attachSound("bird");
sound.createEmptyMovieClip("gameaktie", 4);
sfx_raathit = new Sound(sound.gameaktie);
sfx_raathit.attachSound("raathit");
sfx_raathit.timer = 0;
sfx_raathit.counter2 = 0;
sfx_raathit2 = new Sound(sound.gameaktie);
sfx_raathit2.attachSound("raathit2");
aCounters = new Array();
var _local3 = 1;
while (_local3 < 5) {
aCounters["raat" + _local3] = 0;
_local3++;
}
};
randomSFX = function () {
if (shortRandom > 0.8) {
omgeving_bird.start();
}
};
menuSounds = function (mc, optiestop) {
trace("call sounds");
if (optiestop != true) {
mc.createEmptyMovieClip("loop", mc.getNextHighestDepth());
music = new Sound(mc.loop);
trace("musin " + music);
music.attachSound("menuloop");
music.setVolume(60);
music.start(0, 0);
music.onSoundComplete = function () {
this.start(0, 0);
};
} else {
music.stop();
}
};
speelSimpelSFX = function (naam) {
switch (naam) {
case "schild" :
schild_commander.start();
break;
case "schild_powerup" :
schild_commander.start();
schild_powerup.start();
break;
case "mini_attack" :
mini_attack.start();
break;
case "raat_exp" :
sfx_raat_exp.start();
break;
case "powerup" :
power_up.start();
power_up.onSoundComplete = function () {
speelSimpelSFX("powerup_voice");
};
break;
case "man_lost" :
mini_man_lost.start();
break;
case "powerup_voice" :
mini_powerup.start();
}
};
sfxCounters = function () {
mini_aanval.counter--;
sfx_raathit.counter1--;
sfx_raathit.counter2--;
};
manageSoundFx = function (naam, difOptie) {
switch (naam) {
case "schild" :
schild_commander.start();
break;
case "mini_attack" :
if (mini_aanval.counter <= 0) {
mini_aanval.counter = 3;
var _local1 = random(aAanvalVoices.length - 1);
mini_aanval.attachSound(aAanvalVoices[_local1]);
mini_aanval.start();
}
break;
case "sfx_raathit" :
if (aCounters["raat" + difOptie] >= getTimer()) {
break;
}
aCounters["raat" + difOptie] = getTimer() + 2000;
sfx_raathit.start();
sfx_raathit2.start();
}
};
stopSound = function () {
_global.musicPlaying = 0;
music.stop;
delete music.onEnterFrame;
delete music;
stopAllSounds();
};
hittestMini = function (mc) {
if (mc.raat.hitTest(mc._x, mc._y, true)) {
stootRaat(mc, mc.raat);
}
var _local3 = mc.speedX * mc.voor_en_achteruit;
if (mc.opponent.schild == true) {
if ((mc.xSnelheid * mc.voor_en_achteruit) > 0) {
if (mc.hitTest(mc.opponent)) {
mc.dif = "bounce";
mc.schildBounce = true;
mc.opponent.trilling = true;
mc.opponent.tril = 8;
var _local2 = Math.abs(mc.xSnelheid) / 3;
if (mc.opponent.powerUpNr == 2) {
speelSimpelSFX("schild_powerup");
_local2 = _local2 * 2;
attachFlits();
} else {
speelSimpelSFX("schild");
}
if (mc.control != true) {
_local2 = _local2 * diffFactorEasyKlein;
}
mc.health = mc.health - (_local2 + random(20));
}
}
}
};
hittestCommander = function (mc) {
if (mc.opponent.schild == true) {
if (mc.vooruit_achteruit > 0) {
if (mc.opponent.vooruit_achteruit < 0) {
if (Math.abs(mc.opponent.vooruit_achteruit) >= Math.abs(mc.vooruit_achteruit)) {
var _local5 = true;
}
}
if (_local5 != true) {
if (mc.hitTest(mc.opponent)) {
var _local4 = aktie.getNextHighestDepth();
var _local2 = 0;
while (_local2 < random(4)) {
var _local3 = aktie.attachMovie("mcSter", "ster" + (_local4 + _local2), _local4 + _local2);
_local3._x = mc._x;
_local3._y = mc._y;
_local2++;
}
mc.dif = "bounce";
mc.schildBounce = true;
speelSimpelSFX("schild");
if (mc.opponent.powerUpNr == 2) {
attachFlits();
}
if (mc == commander2) {
unsetDrager();
}
mc.trilling = true;
mc.tril = commander2.impact;
}
}
}
}
if (mc.immuun <= 0) {
if (mc.raat.hitTest(mc._x, mc._y, true)) {
stootRaat(mc, mc.raat);
}
}
if (mc._y < fieldTop) {
mc._y = fieldTop;
mc.memDown = mc.memUp / 2;
mc.memUp = 0;
} else if (mc._y > fieldBottom) {
mc._y = fieldBottom;
mc.memUp = mc.memDown / 2;
mc.memDown = 0;
}
if (mc._x < fieldLeft) {
mc._x = fieldLeft;
mc.memRight = mc.memLeft / 2;
mc.memLeft = 0;
} else if (mc._x > fieldRight) {
mc._x = fieldRight;
mc.memLeft = mc.memRight / 2;
mc.memRight = 0;
}
};
mainLoop = function () {
if (game.pauze != true) {
if (shake != 0) {
shakeMain();
}
vliegBij(commander1);
vliegBij(commander2);
vliegMinis();
doExplosions();
if (beginSpel != true) {
luisterNaarMuis();
}
if (winnaar == null) {
hittestCommander(commander1);
hittestCommander(commander2);
}
doMouseCursor();
registerPunten(commander1);
registerPunten(commander2);
if (aktie.raat2.dif != "ko") {
raatBounce(aktie.raat2);
}
if (aktie.raat1.dif != "ko") {
raatBounce(aktie.raat1);
}
calcAlgVars();
ticks++;
if (fadeLoop == true) {
fadeAudio();
}
}
};
start = function () {
webVersion = false;
main = this.createEmptyMovieClip("gameContainer", 0);
root = this;
var _local3 = main.attachMovie("mcKaderMask", "mainMask", 10);
main.setMask(_local3);
initLevel();
userPreferences();
initvars();
_global.userData[_global.currentPlayer].ervaring++;
game = {sH:384, sW:640};
heroObj = new Object();
game.explosionObjects = new Array();
veld = main.createEmptyMovieClip("veld", 0);
wc = main.createEmptyMovieClip("waveContainer", 1);
aktie = main.createEmptyMovieClip("aktie", 2);
bijen = main.createEmptyMovieClip("bijen", 3);
teksten = main.createEmptyMovieClip("teksten", 6);
draagMcs = main.createEmptyMovieClip("draagMcs", 4);
flits = main.createEmptyMovieClip("flits", 8);
main.createEmptyMovieClip("mouseContainer", 9);
wc.tel = 0;
seaContainer = wc.createEmptyMovieClip("seaContainer", 1);
wc.seaTurn = 0;
seaContainer._x = 0;
seaContainer._y = 355;
makeWave(seaContainer, 100, 4297421, 2.6, 0.12, 44, 640);
wc.onEnterFrame = function () {
this.tel++;
if ((this.tel % 2) == 0) {
simWaveTitle(this.seaContainer);
}
};
simWave(wc.seaContainer);
initSFX();
attachVeld();
initWolken();
attachRaat();
attachBijen();
attachHud();
attachMouseCursor();
setIntervals();
attachBeginTekst();
initMinis();
regelMuis();
refreshHud();
main.onEnterFrame = mainLoop;
};
initMenu = function (step) {
if (step == 1) {
root = this;
var m = root.attachMovie("mcControlCenter", "mcControlCenter", 0);
initToggleMusic();
m.new_game.onRelease = function () {
this._parent.gotoAndStop(2);
initMenu(2);
};
m.instructions.onRelease = function () {
this._parent._x = 1000;
var _local2 = m.attachMovie("mcInstr", "mcInstr", 0);
_local2._x = -1000;
_local2.ok.onRelease = function () {
this._parent._parent._x = 0;
this._parent.removeMovieClip();
};
};
m.credits.onRelease = function () {
this._parent._x = 1000;
var _local2 = m.attachMovie("mcCredits", "mcCredits", 0);
_local2._x = -1000;
_local2.ok.onRelease = function () {
this._parent._parent._x = 0;
this._parent.removeMovieClip();
};
};
m.play_more_games.onRelease = function () {
getURL ("http://www.bubblebox.com", "_blank");
};
m.highscores.onRelease = function () {
var _local2 = (("http://www.bubblebox.com/showscores.php?game_id=" + _global.game_id) + "&cache=") + random(100);
getURL (_local2, "_blank");
};
}
if (step == 2) {
root.mcControlCenter.start_fight.onRelease = function () {
_global.gameMode = "arcade";
_global.minisP1 = 8;
_global.minisP2 = 8;
_global.arcadeLevel = 1;
_global.arcadeMinis = 10;
_global.multiplayer = false;
root.gotoAndStop("start");
};
root.mcControlCenter.back.onRelease = function () {
this._parent.gotoAndStop(1);
initMenu(1);
};
}
};
initToggleMusic = function () {
var _local3 = root.mcControlCenter;
if (_global.saveConfig.music == true) {
_local3.music.desc = "music on";
_local3.music.red._visible = false;
} else {
_local3.music.desc = "music off";
_local3.music.red._visible = true;
}
_local3.music.onRelease = function () {
if (this.red._visible == true) {
this.desc = "music on";
this.red._visible = false;
_global.saveConfig.music = true;
playLoop();
} else {
this.desc = "music off";
this.red._visible = true;
_global.saveConfig.music = false;
stopLoop();
}
};
};
makeWave = function (mc, deep, clr, jit, turbProb, points, seawidth) {
mc.pts = [];
mc.springs = [];
mc.clr = clr;
mc.jit = jit;
mc.turbProb = turbProb;
mc.deep = deep;
mc.stiffK = 0.3;
mc.kDamp = 0.85;
var _local3 = (seawidth + 100) / points;
var _local1 = 0;
while (_local1 < points) {
mc.pts[_local1] = {x:-50 + (_local1 * _local3), y:0, fx:0, fy:0, vx:0, vy:0, restLen:0.5 * _local3, jy:0};
_local1++;
}
};
simWave = function (mc) {
mc = seaContainer;
var _local11;
lastLine = null;
firstLine = null;
_local11 = 0;
while (_local11 < (mc.pts.length - 1)) {
var _local2 = mc.pts[_local11];
_local2.draw = false;
if (lastLine == null) {
if (_local2.x >= (scrollPos - (maxScroll * 4))) {
if (firstLine == null) {
firstLine = _local11;
mc.moveTo(_local2.x, _local2.y);
}
if (_local2.x >= ((scrollPos + game.sW) + (maxScroll * 4))) {
if (lastLine == null) {
lastLine = _local11;
}
} else {
_local2.draw = true;
mc.pts[_local11].fx = 0;
if (Math.random() < mc.turbProb) {
mc.pts[_local11].fy = (Math.random() * mc.jit) - (mc.jit / 2);
} else {
mc.pts[_local11].fy = 0;
}
}
}
}
_local11++;
}
_local11 = 0;
while (_local11 < (mc.pts.length - 1)) {
var _local3 = mc.pts[_local11];
var _local4 = mc.pts[_local11 + 1];
var _local6 = _local4.x - _local3.x;
var _local5 = _local4.y - _local3.y;
var _local7 = Math.sqrt((_local6 * _local6) + (_local5 * _local5));
var _local9 = mc.stiffK * (_local7 - _local3.restLen);
var _local10 = (_local9 * _local6) / _local7;
var _local8 = (_local9 * _local5) / _local7;
if (_local11 != 0) {
_local3.fx = _local3.fx + _local10;
_local3.fy = _local3.fy + _local8;
}
if (_local11 != (mc.pts.length - 2)) {
_local4.fx = _local4.fx - _local10;
_local4.fy = _local4.fy - _local8;
}
_local11++;
}
mc.clear();
mc.beginFill(mc.clr, 100);
_local11 = 1;
while (_local11 < (mc.pts.length - 1)) {
var _local2 = mc.pts[_local11];
if (_local2.draw == true) {
_local2.vx = _local2.vx * mc.kDamp;
_local2.vy = _local2.vy * mc.kDamp;
_local2.vx = _local2.vx + _local2.fx;
_local2.vy = _local2.vy + _local2.fy;
_local2.x = _local2.x + _local2.vx;
_local2.y = _local2.y + _local2.vy;
mc.lineTo(_local2.x, _local2.y);
}
_local11++;
}
if (lastLine == null) {
lastLine = mc.pts.length - 1;
}
_local11 = lastLine;
mc.lineTo(mc.pts[_local11].x, mc.pts[_local11].y);
mc.lineTo(mc.pts[_local11].x, mc.deep);
mc.lineTo(mc.pts[firstLine].x, mc.deep);
mc.lineTo(mc.pts[firstLine].x, mc.pts[firstLine].y);
mc.endFill();
};
simWaveTitle = function (mc) {
var _local11;
lastLine = null;
firstLine = null;
_local11 = 0;
while (_local11 < (mc.pts.length - 1)) {
var _local2 = mc.pts[_local11];
mc.pts[_local11].fx = 0;
if (Math.random() < mc.turbProb) {
mc.pts[_local11].fy = (Math.random() * mc.jit) - (mc.jit / 2);
} else {
mc.pts[_local11].fy = 0;
}
_local11++;
}
_local11 = 0;
while (_local11 < (mc.pts.length - 1)) {
var _local3 = mc.pts[_local11];
var _local4 = mc.pts[_local11 + 1];
var _local6 = _local4.x - _local3.x;
var _local5 = _local4.y - _local3.y;
var _local7 = Math.sqrt((_local6 * _local6) + (_local5 * _local5));
var _local9 = mc.stiffK * (_local7 - _local3.restLen);
var _local10 = (_local9 * _local6) / _local7;
var _local8 = (_local9 * _local5) / _local7;
if (_local11 != 0) {
_local3.fx = _local3.fx + _local10;
_local3.fy = _local3.fy + _local8;
}
if (_local11 != (mc.pts.length - 2)) {
_local4.fx = _local4.fx - _local10;
_local4.fy = _local4.fy - _local8;
}
_local11++;
}
mc.clear();
mc.beginFill(mc.clr, 100);
mc.moveTo(mc.pts[0].x, mc.pts[0].y);
_local11 = 1;
while (_local11 < (mc.pts.length - 1)) {
var _local2 = mc.pts[_local11];
_local2.vx = _local2.vx * mc.kDamp;
_local2.vy = _local2.vy * mc.kDamp;
_local2.vx = _local2.vx + _local2.fx;
_local2.vy = _local2.vy + _local2.fy;
_local2.x = _local2.x + _local2.vx;
_local2.y = _local2.y + _local2.vy;
mc.lineTo(_local2.x, _local2.y);
_local11++;
}
lastLine = mc.pts.length - 1;
_local11 = lastLine;
mc.lineTo(mc.pts[_local11].x, mc.pts[_local11].y);
mc.lineTo(mc.pts[_local11].x, mc.deep);
mc.lineTo(mc.pts[firstLine].x, mc.deep);
mc.lineTo(mc.pts[firstLine].x, mc.pts[firstLine].y);
mc.endFill();
};
Frame 6
var \x01 = 106;
// swfAction0x03 // Unknown action
Frame 7
var \x01 = 323;
// swfAction0x03 // Unknown action
Frame 8
!!!ERROR
Frame 9
!!!ERROR
Symbol 15 MovieClip Frame 1
!!!ERROR
Symbol 15 MovieClip Frame 53
!!!ERROR
Symbol 20 MovieClip Frame 1
!!!ERROR
Symbol 25 MovieClip Frame 1
!!!ERROR
Symbol 32 MovieClip Frame 1
!!!ERROR
Symbol 32 MovieClip Frame 5
!!!ERROR
Symbol 38 MovieClip [mcMiniBee1] Frame 1
!!!ERROR
Symbol 43 MovieClip [mcMiniBee2] Frame 1
!!!ERROR
Symbol 56 MovieClip Frame 1
!!!ERROR
Symbol 61 MovieClip Frame 1
!!!ERROR
Symbol 70 MovieClip Frame 1
!!!ERROR
Symbol 72 MovieClip Frame 1
!!!ERROR
Symbol 73 MovieClip [mcBij] Frame 1
!!!ERROR
Symbol 79 MovieClip Frame 1
!!!ERROR
Symbol 95 MovieClip Frame 1
!!!ERROR
Symbol 105 MovieClip Frame 1
!!!ERROR
Symbol 124 MovieClip Frame 1
!!!ERROR
Symbol 128 MovieClip Frame 1
!!!ERROR
Symbol 133 MovieClip Frame 1
!!!ERROR
Symbol 157 MovieClip [mcEindeArcade] Frame 1
!!!ERROR
Symbol 161 MovieClip Frame 1
!!!ERROR
Symbol 165 MovieClip Frame 1
!!!ERROR
Symbol 178 MovieClip Frame 1
!!!ERROR
Symbol 180 MovieClip Frame 1
!!!ERROR
Symbol 184 MovieClip Frame 1
!!!ERROR
Symbol 191 MovieClip Frame 1
!!!ERROR
Symbol 201 MovieClip Frame 1
!!!ERROR
Symbol 201 MovieClip Frame 2
!!!ERROR
Symbol 201 MovieClip Frame 3
!!!ERROR
Symbol 201 MovieClip Frame 4
!!!ERROR
Symbol 201 MovieClip Frame 5
!!!ERROR
Symbol 202 MovieClip [mcGameOver] Frame 1
!!!ERROR
Symbol 202 MovieClip [mcGameOver] Frame 3
!!!ERROR
Symbol 221 MovieClip Frame 1
!!!ERROR
Symbol 223 MovieClip [mcStartArcade] Frame 1
!!!ERROR
Symbol 230 MovieClip Frame 1
!!!ERROR
Symbol 254 MovieClip Frame 1
!!!ERROR
Symbol 257 MovieClip Frame 1
!!!ERROR
Symbol 261 MovieClip Frame 1
!!!ERROR
Symbol 528 MovieClip Frame 1
!!!ERROR
Symbol 531 MovieClip [mcFlits] Frame 1
!!!ERROR
Symbol 538 MovieClip [mcKruis] Frame 1
!!!ERROR
Symbol 541 MovieClip [mcSter] Frame 1
!!!ERROR
Symbol 567 MovieClip Frame 1
!!!ERROR
Symbol 571 MovieClip Frame 1
!!!ERROR
Symbol 581 MovieClip Frame 1
!!!ERROR
Symbol 585 MovieClip Frame 1
!!!ERROR
Symbol 592 MovieClip Frame 1
!!!ERROR
Symbol 595 MovieClip Frame 1
!!!ERROR
Symbol 597 MovieClip Frame 1
!!!ERROR
Symbol 607 MovieClip [mcStopLoop] Frame 1
!!!ERROR
Symbol 611 MovieClip Frame 1
!!!ERROR
Symbol 615 MovieClip Frame 1
!!!ERROR
Symbol 630 MovieClip Frame 1
!!!ERROR
Symbol 632 MovieClip [mcControlCenter] Frame 1
!!!ERROR
Symbol 641 MovieClip [mcRaat] Frame 1
!!!ERROR
Symbol 648 MovieClip [mcRaatSchillen] Frame 1
!!!ERROR
Symbol 682 MovieClip [mcExpCloud] Frame 33
!!!ERROR
Symbol 694 MovieClip [mcExpFire1] Frame 62
!!!ERROR
Symbol 701 MovieClip [mcExpFire2] Frame 66
!!!ERROR
Symbol 702 MovieClip [mcExpSmoke] Frame 49
!!!ERROR
Symbol 708 MovieClip [mcSmoke] Frame 9
!!!ERROR
Symbol 710 MovieClip Frame 1
!!!ERROR
Symbol 710 MovieClip Frame 45
!!!ERROR