Frame 1
gamemoder = "easy";
stop();
Instance of Symbol 17 MovieClip in Frame 1
on (press) {
getURL ("http://www.arcadebomb.com", "_blank");
}
Frame 2
nextFrame();
Frame 3
play();
Frame 4
function loadData(slot) {
if (cookie.data.saveCard[slot].iMission == undefined) {
_root.loadStatus.text = "no data";
} else {
_root.loadGame = true;
unitsV = cookie.data.saveCard[slot].units;
iMission = cookie.data.saveCard[slot].iMission;
score = cookie.data.saveCard[slot].score;
euros = cookie.data.saveCard[slot].euros;
interest = cookie.data.saveCard[slot].interest;
iUnlock = cookie.data.saveCard[slot].iUnlock;
_root.langue = cookie.data.saveCard[slot].lg;
_root.gc = cookie.data.saveCard[slot].gc;
_root.chmo = cookie.data.saveCard[slot].cm;
_root.CIR = cookie.data.saveCard[slot].CIR;
_root.DGM = cookie.data.saveCard[slot].DGM;
_root.AAM = cookie.data.saveCard[slot].AAM;
_root.CIW = cookie.data.saveCard[slot].CIW;
_root.BHP = cookie.data.saveCard[slot].BHP;
_root.NUK = cookie.data.saveCard[slot].NUK;
_root.nextFrame();
}
}
function saveData(slot) {
cookie.data.saveCard[slot] = new Array();
cookie.data.saveCard[slot].units = new Array();
var _local5 = 0;
var _local2 = 0;
while (_local2 < _root.master_units.unitsAlliees.length) {
var _local3 = new Array();
if (_root.master_units.unitsAlliees[_local2] != "null") {
_local3[0] = _root.master_units.unitsAlliees[_local2].type;
_local3[1] = _root.master_units.unitsAlliees[_local2].etat;
_local3[2] = _root.master_units.unitsAlliees[_local2]._x;
_local3[3] = _root.master_units.unitsAlliees[_local2]._y;
_local3[4] = _root.master_units.unitsAlliees[_local2].repairLogo.autoRepair;
cookie.data.saveCard[slot].units[_local5] = _local3;
_local5++;
}
_local2++;
}
cookie.data.saveCard[slot].iMission = _root.master_scenario.iMission;
cookie.data.saveCard[slot].score = _root.master_menuItems.score;
cookie.data.saveCard[slot].euros = _root.master_menuItems.euros;
cookie.data.saveCard[slot].interest = _root.master_menuItems.interest;
cookie.data.saveCard[slot].iUnlock = _root.master_menuItems.iUnlock;
cookie.data.saveCard[slot].lg = _root.langue;
cookie.data.saveCard[slot].gc = _root.gc;
cookie.data.saveCard[slot].cm = _root.consoleCheats.cheatMode;
if (_root.master_menuItems.unlocker.TCanonIonRouge) {
cookie.data.saveCard[slot].CIR = 1;
} else {
cookie.data.saveCard[slot].CIR = 0;
}
if (_root.master_menuItems.unlocker.TDoubleMoyenVert) {
cookie.data.saveCard[slot].DGM = 1;
} else {
cookie.data.saveCard[slot].DGM = 0;
}
if (_root.master_menuItems.unlocker.TAAMissile) {
cookie.data.saveCard[slot].AAM = 1;
} else {
cookie.data.saveCard[slot].AAM = 0;
}
if (_root.master_menuItems.unlocker.TCanonIonBlanc) {
cookie.data.saveCard[slot].CIW = 1;
} else {
cookie.data.saveCard[slot].CIW = 0;
}
if (_root.master_menuItems.unlocker.TBerthaPlasma) {
cookie.data.saveCard[slot].BHP = 1;
} else {
cookie.data.saveCard[slot].BHP = 0;
}
if (_root.master_menuItems.unlocker.TNucleo) {
cookie.data.saveCard[slot].NUK = 1;
} else {
cookie.data.saveCard[slot].NUK = 0;
}
}
function __com_mochibot__(swfid, mc, lv, trk) {
}
function __com_mochibot__(swfid, mc, lv, trk) {
}
_root._quality = "HIGH";
_root.firstaction = true;
_root.loadGame = false;
_root.langue = "english";
_root.gc = 1;
cookie = SharedObject.getLocal("cookie");
if (cookie.data.saveCard == undefined) {
cookie.data.saveCard = new Array();
}
stop();
Instance of Symbol 392 MovieClip in Frame 4
on (press) {
_parent.play.pressbutton.start();
_parent.loadBoard._x = 265.1;
}
on (rollOver) {
this.gotoAndStop("over");
}
on (rollOut) {
this.gotoAndStop("normal");
}
Instance of Symbol 395 MovieClip in Frame 4
on (press) {
_parent.play.pressbutton.start();
_parent.about._x = 0;
this.gotoAndStop("normal");
}
on (rollOver) {
this.gotoAndStop("over");
}
on (rollOut) {
this.gotoAndStop("normal");
}
Instance of Symbol 398 MovieClip "play" in Frame 4
on (press) {
_parent.play.pressbutton.start();
_root.gc = 1;
_root.nextFrame();
}
on (rollOver) {
this.gotoAndStop("over");
}
on (rollOut) {
this.gotoAndStop("normal");
}
onClipEvent (load) {
var pressbutton = new Sound(this);
pressbutton.attachSound("selectionUnite");
}
Instance of Symbol 415 MovieClip "loadBoard" in Frame 4
onClipEvent (load) {
var i = 0;
while (i < 5) {
var iMission = _root.cookie.data.saveCard[i].iMission;
var euros = _root.cookie.data.saveCard[i].euros;
var score = _root.cookie.data.saveCard[i].score;
if (iMission == undefined) {
this["infol" + (i + 1)].text = "no data";
} else {
this["infol" + (i + 1)].text = ((((("mission " + iMission) + " ") + euros) + " $ ") + score) + " losses";
}
i++;
}
}
Instance of Symbol 493 MovieClip "bat" in Frame 4
onClipEvent (enterFrame) {
if (_root.exploder) {
_root.exploderstep++;
if ((_root.exploderstep % 2) == 0) {
_x = (_x + random(4));
_y = (_y + random(4));
} else {
_x = (_x - random(4));
_y = (_y - random(4));
}
if (_root.exploderstep > 5) {
_root.exploder = false;
_x = _root.exploder_x;
_y = _root.exploder_y;
}
}
}
Instance of Symbol 475 MovieClip in Frame 4
onClipEvent (enterFrame) {
_rotation = (_rotation - 1);
}
Frame 5
play();
Frame 6
function getPwd(pwdSource, pwdModel) {
if ((pwdSource == "2DPN7E") && (pwdModel == pwdSource)) {
return(true);
}
return(false);
}
function continueStory() {
try {
_root.getDownIsFalse = true;
} catch(e) {
trace("Story now continues with " + e);
}
}
trace("MAIN");
stop();
_root._quality = "LOW";
_root.quality = "HIGH";
this.fpsc = 1.13;
Instance of Symbol 17 MovieClip "master_clavier" in Frame 6
onClipEvent (load) {
function dezoom() {
_root.carte._xscale = 100;
_root.carte._yscale = 100;
_root.surfaceForBuildZoom._x = -5000;
_root.carte._x = realposmap[0];
_root.carte._y = realposmap[1];
_root.carte.zoneDezoom._width = 1;
_root.carte.zoneDezoom._height = 1;
_root.carte.zoneDezoom._x = -800;
zoom = false;
_root.master_pointeur.repositionneMap();
var _local2 = 0;
while (_local2 < _root.master_units.unitsEnnemies.length) {
_root.master_units.unitsEnnemies[_local2].etatJauge._xscale = 100;
_root.master_units.unitsEnnemies[_local2].etatJauge._yscale = 100;
_local2++;
}
_local2 = 0;
while (_local2 < _root.master_units.unitsAlliees.length) {
_root.master_units.unitsAlliees[_local2].etatJauge._xscale = 100;
_root.master_units.unitsAlliees[_local2].etatJauge._yscale = 100;
_local2++;
}
}
function depressSpace() {
_root.carte.surfaceForBuild._alpha = 0;
_root.buildhintstop.gotoAndStop(1);
_root.master_pointeur.viseurConstruction = false;
_root.master_pointeur.zoneBombardement = false;
_root.carte.viseurConstruction._x = -500;
_root.carte.indicateurPortee._x = -2000;
_root.carte.indicateurPortee._width = 0;
_root.carte.zoneBombardement._x = -500;
_root.master_pointeur.unshowInfoOnUnit();
_root.jukeboxPanel._y = -700;
}
function changeQuality() {
if (_root.quality == "HIGH") {
_root.quality = "LOW";
_root._quality = "LOW";
_root.menu.informations.qualityB.qual.text = "medium";
_root.carte.nuageux._x = -5000;
_root.carte.nuageux._width = 10;
_root.carte.nuageux._height = 10;
} else if (_root.quality == "MEDIUM") {
_root.quality = "LOW";
_root._quality = "LOW";
_root.menu.informations.qualityB.qual.text = "low";
_root.carte.nuageux._x = -5000;
_root.carte.nuageux._width = 10;
_root.carte.nuageux._height = 10;
} else if (_root.quality == "LOW") {
_root.quality = "HIGH";
_root._quality = "LOW";
_root.menu.informations.qualityB.qual.text = "good";
_root.carte.nuageux._width = _root.carte.nuageux.w;
_root.carte.nuageux._height = _root.carte.nuageux.h;
_root.carte.nuageux._x = _root.carte.nuageux.xp;
_root.carte.nuageux._y = _root.carte.nuageux.yp;
}
}
function sellTheUnit() {
var _local2 = _root.master_pointeur.afficheUnit;
var _local3 = _local2._parent.structure;
if ((((_local2 != "null") && (_local2._parent.side == "ally")) && (_local2._parent.structure != "fort")) && (!isNaN(_local2._parent.structureDeco.structureData[_local3][1]))) {
var _local6 = _local2._parent.structureDeco.structureData[_local3][1];
var _local4 = _local2._parent.structureDeco.structureData[_local3][0];
var _local5 = _local2._parent.etat;
var _local7 = Math.floor((_local5 / _local4) * (_local6 * 0.75));
_root.master_menuItems.euros = _root.master_menuItems.euros + _local7;
if (Math.ceil(_local5) == _local4) {
_local2._parent.unitEtat.destructionBySell();
}
_local2._parent.unitEtat.destruction();
}
}
var afficheEtat = true;
var cpKey = 0;
var barreReparationAffichee = false;
var realposmap = new Array();
var zoom = false;
}
onClipEvent (keyDown) {
var key = Key.getCode();
if (key == 37) {
if (_root.master_pointeur.keyPressed != "null") {
_root.master_pointeur.keyPressedS = "left";
} else {
_root.master_pointeur.keyPressed = "left";
cpKey = 37;
}
} else if (key == 39) {
if (_root.master_pointeur.keyPressed != "null") {
_root.master_pointeur.keyPressedS = "right";
} else {
_root.master_pointeur.keyPressed = "right";
cpKey = 39;
}
} else if (key == 40) {
if (_root.master_pointeur.keyPressed != "null") {
_root.master_pointeur.keyPressedS = "down";
} else {
_root.master_pointeur.keyPressed = "down";
cpKey = 40;
}
} else if (key == 38) {
if (_root.master_pointeur.keyPressed != "null") {
_root.master_pointeur.keyPressedS = "up";
} else {
_root.master_pointeur.keyPressed = "up";
cpKey = 38;
}
}
if (_root.consoleCheats.estAffiche) {
return(false);
}
if ((key == 72) && (afficheEtat)) {
afficheEtat = false;
} else if ((key == 72) && (!afficheEtat)) {
afficheEtat = true;
}
if (key == 32) {
depressSpace();
}
if (key == 86) {
if (_root.master_menuItems.unlocker.su37) {
_root.master_pointeur.zoneBombardement = true;
_root.master_pointeur.viseurConstruction = false;
_root.carte.viseurConstruction.ancienX = -548;
_root.carte.viseurConstruction._x = -500;
_root.carte.indicateurPortee._x = -2000;
_root.carte.indicateurPortee._width = 0;
this.gotoAndPlay("press");
} else {
_root.master_sounds.cannot.start();
}
}
if ((key == 71) && false) {
if (!zoom) {
realposmap[0] = _root.carte._x;
realposmap[1] = _root.carte._y;
_root.carte._xscale = 39;
_root.carte._yscale = 31.7;
_root.carte._x = 0;
_root.carte._y = 452;
_root.surfaceForBuildZoom._x = 64.1;
_root.surfaceForBuildZoom._y = 444.5;
_root.carte.zoneDezoom._width = 2070;
_root.carte.zoneDezoom._height = 1920;
_root.carte.zoneDezoom._x = 1032.4;
_root.carte.zoneDezoom._y = -482.4;
zoom = true;
var i = 0;
while (i < _root.master_units.unitsEnnemies.length) {
_root.master_units.unitsEnnemies[i].etatJauge._xscale = 200;
_root.master_units.unitsEnnemies[i].etatJauge._yscale = 200;
i++;
}
var i = 0;
while (i < _root.master_units.unitsAlliees.length) {
_root.master_units.unitsAlliees[i].etatJauge._xscale = 200;
_root.master_units.unitsAlliees[i].etatJauge._yscale = 200;
i++;
}
} else {
dezoom();
}
}
if (key == 83) {
sellTheUnit();
}
if ((key == 81) && false) {
changeQuality();
}
if (key == 67) {
if (_root.carte.surfaceForBuild._alpha == 0) {
_root.carte.surfaceForBuild._alpha = 15;
} else {
_root.carte.surfaceForBuild._alpha = 0;
}
}
if (key == 49) {
_root.menu.constructionCont.TLaserLegerRouge.buildTurret();
} else if (key == 50) {
_root.menu.constructionCont.TLaserMoyenBleu.buildTurret();
} else if (key == 51) {
_root.menu.constructionCont.TDoubleLaserLegerRouge.buildTurret();
} else if (key == 52) {
_root.menu.constructionCont.TDoublePlasma.buildTurret();
} else if (key == 53) {
_root.menu.constructionCont.TCanonIonRouge.buildTurret();
} else if (key == 54) {
_root.menu.constructionCont.TDoubleMoyenVert.buildTurret();
} else if (key == 55) {
_root.menu.constructionCont.TBouclier.buildTurret();
} else if (key == 56) {
_root.menu.constructionCont.TAAMissile.buildTurret();
} else if (key == 57) {
_root.menu.constructionCont.TCanonIonBlanc.buildTurret();
} else if (key == 48) {
_root.menu.constructionCont.TBerthaPlasma.buildTurret();
}
}
onClipEvent (enterFrame) {
if (!Key.isDown(cpKey)) {
_root.master_pointeur.keyPressed = "null";
}
}
onClipEvent (keyUp) {
_root.master_pointeur.keyPressedS = "null";
}
Instance of Symbol 607 MovieClip "instructions" in Frame 6
onClipEvent (load) {
function nextDialogue() {
if (curIScenario < scenario[iMission].length) {
var _local3 = scenario[iMission][curIScenario][0];
var _local4 = _local3.substring(1);
if ((_local3.charAt(0) == "D") || (_local3.charAt(0) == "R")) {
this.imgScenario.persoMouvant.personnage.gotoAndStop("inverse");
} else {
this.imgScenario.persoMouvant.personnage.gotoAndStop("normal");
}
this.imgScenario.persoMouvant.personnage.perso.gotoAndStop(_local4);
this.imgScenario.fond.gotoAndStop(_local3.charAt(0));
this.txt.text = scenario[iMission][curIScenario][1];
if (this.txt.text == "") {
trace("IT IS EMPTY? ");
saveBoard._x = -5000;
_root.firstaction = false;
_x = -400;
haloNoir.gotoAndPlay("play");
_root.master_sounds.creationUnite.start();
}
if (curIScenario == (scenario[iMission].length - 1)) {
this.voile._alpha = 100;
this.clignotant._alpha = 0;
}
if ((curIScenario == 2) && (iMission == 12)) {
this.pictureLD.gotoAndStop(1);
} else {
this.pictureLD.gotoAndStop(2);
}
curIScenario++;
return(true);
}
if (curIScenario == scenario[iMission].length) {
this.nextMission.gotoAndPlay("play");
this.clignotant._alpha = 0;
this.voile._alpha = 100;
return(false);
}
}
function refresh(iM) {
iMission = iM;
this.clignotant._alpha = 100;
this.voile._alpha = 0;
curIScenario = 0;
this.hideur.actived = false;
var _local3 = Array(1, 3, 4, 6, 8, 10, 12, 14, 18, 22);
var _local2 = 0;
while (_local2 < _local3.length) {
if (iM == _local3[_local2]) {
this.hideur.actived = true;
break;
}
_local2++;
}
this.hideur.changeIt();
this.hideur.gotoAndStop(1);
this.nextDialogue();
this.nextMission.gotoAndStop("stopDeb");
}
iMission = 0;
curIScenario = 0;
if (_root.langue == "french") {
} else {
var scenario = Array(Array(), Array(Array("L", "Hello Commander,\n\nI know that you have just arrived, but it is vital that I brief you now.\n\nWe have recently discovered a new planet. It has been named Crysaline.\nA very Earth-like place, there is extensive vegetation. All reports on possible animal life, however, have come back negative."), Array("L", "Three teams of researchers have been sent out to survey the planet.\nOne by one, we have lost contact with each team. We believe that they were attacked and killed. We do not know who would have done such a thing,or why, but the fact remains that we have a mysterious enemy of some kind here on Crysaline."), Array("F", "This is why we have called in the armed forces. You will accompany the latest survey team to protect it.\n\nSomething has appeared on radar, approaching fast. You must defend this area. Of the utmost importance is your main headquarters to the north. Meanwhile, we continue researching this mysterious enemy.\nDon't forget that you can use your mousewheel to zoom in and out.\nGood luck.")), Array(Array("V", "")), Array(Array("L", "The protective shields are expensive, but they reduce damage to your turrets by 50%.\nNote that the range is limited, so only turrets near the shield are protected.")), Array(Array("F", "We can access new weaponry for your, but it will cost money to research these new weapons. Be careful not to spend too much on unlocking new weapons, or you will find that you don't have enough left to actually buy them.")), Array(Array("V", "")), Array(Array("F", "Commander,\n\nYou are doing a excellent work of resisting the invasion, I congratulate you!\n\nWe have found several wrecks of the enemy craft. They are totally empty, no controlling life forms, or independent robots. We think they are remote controlled somehow, but we aren't sure. Their technology is rather difficult to understand, but nothing in the crafts seem to be any kind of remote control."), Array("L", "We will continue to investigate. We need to know who is attacking us, and how these craft are controlled without pilots or remote control.\n\nPlease continue your excellent work!")), Array(Array("V", "")), Array(Array("F", "As you probably noticed, your turrets have an automatic recovery system. This nanite repair system means they are constantly recovering life points, but it is a slow process. You must take this into consideration for your strategy.")), Array(Array("V", "")), Array(Array("F", "Commander !\n\nWe show multiple radar signatures inbound. But these are coming by air. Preliminary contact shows that they are weaker than what we have faced before, but only our AA missiles can reach them. Be sure you have enough money to buy some AA missiles. If you don't, sell some turrets, or we will surely be doomed!")), Array(Array("V", "")), Array(Array("L", "Commander !\n\nNews from the research front. We now know what controls these craft.\nA strange biological fluid that was found in them, which we though was perhaps residue of their creation process, are actually how they are controlled. This fluid seems to be generated by some kind of creature, and allow that creature a form of mental control over the craft."), Array("L", "And, based on chemical makeup, we feel it certain that there is just a single entity behind it all. This means that we face just one, not an army!"), Array("F", "As if that wasn't strange enough, we have also identified the creature we believe to be behind it all. Our spy planes have captured images of what appears to be a young lady walking through the snow. We don't know a lot about her, but this is the only animal life that we have seen, and our instruments show that she is producing some form of powerful radiation. This radiation seems to tie in with the patterns of attack, and is what is controlling the enemy craft."), Array("L", "We will continue searching for some way to stop her. We only hope you can hold out long enough, but we can at least give a name to your enemy. We call this girl \"Lady Death\". We don't know for certain her motives yet, but it seems clear she is determined to kill us all.")), Array(Array("V", "")), Array(Array("L", "Commander !\n... times are not easy. But I have good news!\n\nThe Third air squadron has sent us their best fighter pilot. He will be flying circles around our camp. Assign him a target, and he will eliminate it! He should be able to make an air strike about once every minute.")), Array(Array("V", "")), Array(Array("V", "")), Array(Array("V", "")), Array(Array("L", "Commander ..\n\nOur researchers are now convinced that Lady Death is indeed the only one of her kind, and that she is in sole control of the enemy craft. This means that we are truly only facing one enemy.\n\nShe seems aware of our attempts to understand her mental powers, and has sent a message to one of our detectors. The message was a simple one. Leave here now."), Array("F", "Obviously Commander, we will not leave. We will resist with all our might! We must strike at the moment when Lady Death is most exposed. We must simply wait until she makes a mistake.\n\nDue to the imperative with which we must stop her, all possible resources have been freed up from other projects. You will find a monetary bonus for our defense in your coffers.\n\nGood luck Commander... !")), Array(Array("V", "")), Array(Array("V", "")), Array(Array("V", "")), Array(Array("L", "Commander, it's the opportunity of a lifetime!\n\nOur thermal imaging shows a new unit incoming. I have good news, and bad news. The bad news, it is the most powerful craft we have seen to date. The good news, the mental radiation associated with Lady Death has been detected coming from the vehicle. Lady Death is coming to do battle personally!"), Array("F", "This is the opportunity we've been waiting for, Commander. I don't need to tell you how important it is to stop Lady Death.\nWe must attack now. Hold nothing back.\n\nGood luck, Commander.")));
}
}
Instance of Symbol 720 MovieClip "carte" in Frame 6
onClipEvent (load) {
function getIObus() {
iObus++;
if (iObus >= 1000) {
iObus = 0;
}
return(iObus);
}
var iObus = 0;
}
Instance of Symbol 17 MovieClip "master_scenario" in Frame 6
onClipEvent (load) {
function startInstructions() {
stinid = setInterval(this, "startInstructionsReal", 10);
}
function startInstructionsReal() {
_root.routes.route1 = false;
_root.routes.route2 = false;
_root.routes.route3 = false;
if (iMission == 1) {
_root.routes.route1 = true;
}
if (iMission == 2) {
_root.routes.route1 = true;
_root.routes.route2 = true;
}
if (iMission == 3) {
_root.routes.route1 = true;
_root.routes.route2 = true;
}
if (iMission == 4) {
_root.routes.route1 = true;
_root.routes.route2 = true;
_root.routes.route3 = true;
}
if (iMission == 5) {
_root.routes.route1 = true;
_root.routes.route2 = true;
}
if (iMission == 6) {
_root.routes.route1 = true;
_root.routes.route2 = true;
_root.routes.route3 = true;
}
if (iMission == 7) {
_root.routes.route1 = true;
_root.routes.route2 = true;
_root.routes.route3 = true;
}
if (iMission == 8) {
_root.routes.route2 = true;
}
if (iMission == 9) {
_root.routes.route3 = true;
}
if (iMission == 11) {
_root.routes.route1 = true;
_root.routes.route3 = true;
}
if (iMission == 12) {
_root.routes.route3 = true;
}
if (iMission == 14) {
_root.routes.route2 = true;
}
if (iMission == 15) {
_root.routes.route1 = true;
_root.routes.route3 = true;
}
if (iMission == 16) {
_root.routes.route3 = true;
}
if (iMission == 18) {
_root.routes.route1 = true;
_root.routes.route2 = true;
}
if (iMission == 19) {
_root.routes.route1 = true;
_root.routes.route2 = true;
_root.routes.route3 = true;
}
if (iMission == 20) {
_root.routes.route1 = true;
_root.routes.route2 = true;
_root.routes.route3 = true;
}
if (iMission == 21) {
_root.routes.route1 = true;
_root.routes.route2 = true;
}
if (iMission == 22) {
_root.routes.route1 = true;
_root.routes.route2 = true;
_root.routes.route3 = true;
}
enScenario = true;
var _local2 = 1;
while (_local2 <= 5) {
_root.instructions.saveBoard["l" + _local2].txt.text = "save slot " + _local2;
_local2++;
}
_root.instructions.saveBoard.refreshCard();
_root.instructions.beginM.t.text = "BEGIN MISSION " + _root.master_scenario.iMission;
if (iMission == 14) {
_root.master_menuItems.unlocker.su37 = true;
_root.menu.constructionCont.su37.gotoAndStop("normal");
}
_root.carte.zoneBombardement.comptDispo = 0;
clearInterval(_root.carte.zoneBombardement.idDispo);
_root.carte.zoneBombardement.activeDisponibilite();
if (iMission < 23) {
_root.instructions._x = 315;
_root.instructions._y = 324;
_root.instructions.refresh(iMission);
} else {
_root.end._x = 400;
_root.end._y = 300;
_root.master_sounds.pauseMusic();
_root.master_sounds.musics[2].start(0, 999);
_root.end.gotoAndPlay(2);
}
clearInterval(stinid);
}
function startMission() {
if (iMission > 1) {
_root.master_units.refreshVectors();
}
var _local5 = this.unitsMissions[iMission - 1];
var _local3 = _root.master_units.iUnitsE;
var _local4 = 0;
var _local8 = _root.master_units.iUnitsE + _local5[0].length;
while (_local3 < _local8) {
var _local7 = 0;
var _local6 = 1;
if (_local5[_local3].length == 13) {
_local7 = 1;
_local6 = 0;
}
if (_local5[0][_local4] == "skip") {
_local3++;
_local4++;
continue;
}
if ((ancienParcourt != "null") && (ancienParcourt != currentParcourt)) {
_local4 = 0;
}
_root.master_units.createUnit(_local5[0][_local4][0], _local5[0][_local4][1], "ennemy", _local5[0][_local4][2][0][0] + ((_local4 * 10) * _local7), _local5[0][_local4][2][0][1] + ((_local4 * 10) * _local6), _local5[0][_local4][2]);
_local3++;
_local4++;
currentParcourt = ancienParcourt;
}
_local3 = _root.master_units.iUnitsE - _local5[0].length;
while (_local3 < _local8) {
if (_local3 != (_root.master_units.iUnitsE - _local5[0].length)) {
_root.carte["unit" + _local3].unitDevant = _root.master_units.unitsEnnemies[_local3 - 1];
} else {
_root.carte["unit" + _local3].unitDevant = "null";
}
if (_local3 != (_local8 - 1)) {
_root.carte["unit" + _local3].unitDerriere = _root.master_units.unitsEnnemies[_local3 + 1];
} else {
_root.carte["unit" + _local3].unitDerriere = "null";
}
_local3++;
}
iMission++;
}
function activePerdu() {
if (!aPerdu) {
_root.perdu._x = 400;
_root.perdu._y = 300;
_root.perdu.gotoAndPlay(1);
_root.master_sounds.pauseMusic();
_root.bgSound.gotoAndPlay("edithStop");
_root.bgSound.gotoAndPlay("ventStop");
_root.master_sounds.curBirdSound.stop();
_root.bgSound.gotoAndPlay("gameOverStart");
_root.master_sounds.musics[2].start(0, 999);
aPerdu = true;
}
}
function replay() {
_root.bgSound.gotoAndPlay("ventStop");
_root.master_sounds.pauseMusic();
var _local3 = 0;
while (_local3 < _root.master_sounds.musics.length) {
_root.master_sounds.musics[_local3].stop();
_local3++;
}
_root.master_sounds.creationUnite.start();
removeMovieClip(_root.infoMoneyAndScore);
removeMovieClip(_root.menu);
removeMovieClip(_root.instructions);
removeMovieClip(_root.surfaceForBuildZoom);
removeMovieClip(_root.indicateurMiniMap);
removeMovieClip(_root.viseurMiniMap);
removeMovieClip(_root.viseurUnit);
removeMovieClip(_root.carte.zoneBombardement);
removeMovieClip(_root.cadreSup);
removeMovieClip(_root.radarsu37);
removeMovieClip(_root.carte.Su37);
removeMovieClip(_root.carte.ombresu37);
removeMovieClip(_root.carte.barreReparation);
removeMovieClip(_root.endPass);
removeMovieClip(_root.end);
removeMovieClip(_root.perdu);
removeMovieClip(_root.out);
var _local2 = 0;
while (_local2 < _root.master_units.unitsEnnemies.length) {
removeMovieClip(_root.master_units.unitsEnnemies[_local2].ptRadar);
removeMovieClip(_root.master_units.unitsEnnemies[_local2]);
_local2++;
}
_local2 = 0;
while (_local2 < _root.master_units.unitsAlliees.length) {
removeMovieClip(_root.master_units.unitsAlliees[_local2].ptRadar);
removeMovieClip(_root.master_units.unitsAlliees[_local2]);
_local2++;
}
_root.gotoAndPlay("LDMENU");
}
if (_root.loadGame) {
iMission = _root.iMission;
} else {
iMission = 1;
}
storyOn = true;
enScenario = true;
ancienParcourt = "null";
currentParcourt = "null";
aPerdu = false;
var A = Array(Array(_root.carte.a1._x, _root.carte.a1._y), Array(_root.carte.a2._x, _root.carte.a2._y), Array(_root.carte.a3._x, _root.carte.a3._y), Array(_root.carte.a4._x, _root.carte.a4._y), Array(_root.carte.a5._x, _root.carte.a5._y), Array(_root.carte.a6._x, _root.carte.a6._y), Array(_root.carte.a7._x, _root.carte.a7._y), Array(_root.carte.a8._x, _root.carte.a8._y), Array(_root.carte.a9._x, _root.carte.a9._y), Array(_root.carte.a10._x, _root.carte.a10._y), Array(_root.carte.a11._x, _root.carte.a11._y), Array(_root.carte.a12._x, _root.carte.a12._y), Array(_root.carte.a13._x, _root.carte.a13._y), Array(_root.carte.a15._x, _root.carte.a15._y), Array(_root.carte.a16._x, _root.carte.a16._y), Array(_root.carte.a17._x, _root.carte.a17._y));
var B = Array(Array(_root.carte.b1._x, _root.carte.b1._y), Array(_root.carte.b2._x, _root.carte.b2._y), Array(_root.carte.b3._x, _root.carte.b3._y), Array(_root.carte.b4._x, _root.carte.b4._y), Array(_root.carte.b5._x, _root.carte.b5._y), Array(_root.carte.b6._x, _root.carte.b6._y), Array(_root.carte.b7._x, _root.carte.b7._y), Array(_root.carte.b8._x, _root.carte.b8._y), Array(_root.carte.b9._x, _root.carte.b9._y), Array(_root.carte.b10._x, _root.carte.b10._y), Array(_root.carte.b11._x, _root.carte.b11._y), Array(_root.carte.b12._x, _root.carte.b12._y), Array(_root.carte.b13._x, _root.carte.b13._y), Array(_root.carte.b14._x, _root.carte.b14._y), Array(_root.carte.b15._x, _root.carte.b15._y), Array(_root.carte.b16._x, _root.carte.b16._y), Array(_root.carte.b17._x, _root.carte.b17._y));
var C = Array(Array(_root.carte.c1._x, _root.carte.c1._y), Array(_root.carte.c2._x, _root.carte.c2._y), Array(_root.carte.c3._x, _root.carte.c3._y), Array(_root.carte.c4._x, _root.carte.c4._y), Array(_root.carte.c5._x, _root.carte.c5._y), Array(_root.carte.c6._x, _root.carte.c6._y), Array(_root.carte.c7._x, _root.carte.c7._y), Array(_root.carte.c8._x, _root.carte.c8._y), Array(_root.carte.c9._x, _root.carte.c9._y), Array(_root.carte.c10._x, _root.carte.c10._y), Array(_root.carte.c11._x, _root.carte.c11._y), Array(_root.carte.c12._x, _root.carte.c12._y), Array(_root.carte.c13._x, _root.carte.c13._y), Array(_root.carte.c14._x, _root.carte.c14._y));
var F = Array(Array(_root.carte.f1._x, _root.carte.f1._y), Array(_root.carte.f2._x, _root.carte.f2._y), Array(_root.carte.f3._x, _root.carte.f3._y), Array(_root.carte.f4._x, _root.carte.f4._y), Array(_root.carte.f5._x, _root.carte.f5._y), Array(_root.carte.f6._x, _root.carte.f6._y), Array(_root.carte.f7._x, _root.carte.f7._y));
var T = Array(Array(_root.carte.t1._x, _root.carte.t1._y), Array(_root.carte.t2._x, _root.carte.t2._y), Array(_root.carte.t3._x, _root.carte.t3._y), Array(_root.carte.t4._x, _root.carte.t4._y), Array(_root.carte.t5._x, _root.carte.t5._y), Array(_root.carte.t6._x, _root.carte.t6._y), Array(_root.carte.t7._x, _root.carte.t7._y), Array(_root.carte.t8._x, _root.carte.t8._y), Array(_root.carte.t9._x, _root.carte.t9._y), Array(_root.carte.t10._x, _root.carte.t10._y), Array(_root.carte.t11._x, _root.carte.t11._y), Array(_root.carte.t12._x, _root.carte.t12._y), Array(_root.carte.t13._x, _root.carte.t13._y), Array(_root.carte.t14._x, _root.carte.t14._y), Array(_root.carte.t15._x, _root.carte.t15._y), Array(_root.carte.t16._x, _root.carte.t16._y), Array(_root.carte.t17._x, _root.carte.t17._y));
unitsMissions = Array(Array(Array(Array("smallTank", "smallRed", A), Array("smallTank", "smallRed", A), Array("smallTank", "smallRed", A), Array("smallTank", "smallRed", A)), null), Array(Array(Array("smallTank", "smallRed", A), Array("smallTank", "smallRedTwin", A), Array("smallTank", "smallRed", A), Array("smallTank", "smallRedTwin", A), Array("smallTank", "smallRed", A), Array("smallTank", "smallRedTwin", A)), parcourt1), Array(Array(Array("smallTank", "smallRed", A), Array("smallTank", "smallRedTwin", A), Array("smallTank", "smallRed", A), Array("smallTank", "smallRedTwin", A), Array("smallTank", "smallRed", B), Array("smallTank", "smallRedTwin", B)), parcourt2), Array(Array(Array("smallTank", "smallRed", A), Array("smallTank", "smallRedTwin", A), Array("smallTank", "smallRed", A), Array("mediumTank", "mediumPlasma", A), Array("smallTank", "smallRed", B), Array("smallTank", "smallRedTwin", B), Array("smallTank", "smallRed", B), Array("mediumTank", "mediumPlasma", B), Array("smallTank", "smallRed", C), Array("smallTank", "smallRedTwin", C)), parcourt1), Array(Array(Array("mediumTank", "mediumPlasma", B), Array("mediumTank", "mediumPlasma", B), Array("mediumTank", "mediumBleuTwin", B), Array("mediumTank", "mediumBleuTwin", B), Array("mediumTank", "mediumPlasma", B), Array("mediumTank", "mediumPlasma", B), Array("mediumTank", "mediumBleuTwin", B), Array("mediumTank", "mediumBleuTwin", B)), parcourt1), Array(Array(Array("smallTank", "smallRed", B), Array("smallTank", "smallRed", B), Array("smallTank", "smallRed", B), Array("smallTank", "smallRed", B), Array("mediumTank", "mediumBleuTwin", B), Array("mediumTank", "mediumBleuTwin", B), Array("smallTank", "smallRed", C), Array("smallTank", "smallRed", C), Array("smallTank", "smallRed", C), Array("smallTank", "smallRed", C), Array("mediumTank", "mediumBleuTwin", C), Array("mediumTank", "mediumBleuTwin", C)), parcourt1), Array(Array(Array("mediumTank", "mediumBleuTwin", A), Array("mediumTank", "mediumBleuTwin", A), Array("mediumTank", "mediumBleuTwin", A), Array("mediumTank", "mediumBleuTwin", B), Array("mediumTank", "mediumBleuTwin", B), Array("mediumTank", "mediumBleuTwin", B), Array("mediumTank", "mediumBleuTwin", C), Array("mediumTank", "mediumBleuTwin", C), Array("mediumTank", "mediumBleuTwin", C)), parcourt1), Array(Array(Array("battleTank", "largeIonRouge", B), Array("battleTank", "largeIonRouge", B), Array("battleTank", "largeIonRouge", B), Array("battleTank", "largeIonRouge", B), Array("battleTank", "largeIonRouge", B)), parcourt2), Array(Array(Array("mediumTank", "mediumPlasma", C), Array("mediumTank", "mediumPlasma", C), Array("smallTank", "smallRedTwin", C), Array("smallTank", "smallRedTwin", C), Array("smallTank", "smallRedTwin", C), Array("smallTank", "smallRedTwin", C), Array("mediumTank", "mediumPlasma", C), Array("mediumTank", "mediumPlasma", C)), parcourt1), Array(Array(Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T)), parcourt1), Array(Array(Array("battleTank", "largeIonRouge", A), Array("battleTank", "largeIonRouge", A), Array("battleTank", "largeVertTwin", A), Array("battleTank", "largeVertTwin", A), Array("battleTank", "largeVertTwin", A), Array("battleTank", "largeIonRouge", C), Array("battleTank", "largeIonRouge", C), Array("battleTank", "largeVertTwin", C), Array("battleTank", "largeVertTwin", C)), parcourt1), Array(Array(Array("battleTank", "largeIonRouge", C), Array("battleTank", "largeIonRouge", C), Array("battleTank", "largeIonRouge", C), Array("battleTank", "largeIonRouge", C), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T)), parcourt1), Array(Array(Array("trident", "tridentLaser", F), Array("trident", "tridentLaser", F)), parcourt1), Array(Array(Array("heavyTank", "heavyPlasmaTwin", B), Array("mediumTank", "mediumBleuTwin", B), Array("heavyTank", "heavyPlasmaTwin", B), Array("mediumTank", "mediumBleuTwin", B), Array("heavyTank", "heavyPlasmaTwin", B), Array("mediumTank", "mediumBleuTwin", B)), parcourt2), Array(Array(Array("heavyTank", "heavyPlasmaTwin", A), Array("mediumTank", "mediumPlasma", A), Array("heavyTank", "heavyPlasmaTwin", A), Array("mediumTank", "mediumPlasma", A), Array("heavyTank", "heavyPlasmaTwin", C), Array("mediumTank", "mediumPlasma", C), Array("heavyTank", "heavyPlasmaTwin", C), Array("mediumTank", "mediumPlasma", C)), parcourt1), Array(Array(Array("heavyTank", "heavyIonBlanc", C), Array("heavyTank", "heavyIonBlanc", C), Array("heavyTank", "heavyIonBlanc", C), Array("heavyTank", "heavyIonBlanc", C), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T)), parcourt1), Array(Array(Array("trident", "tridentLaser", F), Array("millenium", "milleniumLaser", F)), parcourt1), Array(Array(Array("heavyTank", "heavyPlasmaTwin", B), Array("mediumTank", "mediumPlasma", B), Array("heavyTank", "heavyIonBlanc", B), Array("mediumTank", "heavyIonBlanc", B), Array("heavyTank", "heavyPlasmaTwin", A), Array("mediumTank", "mediumPlasma", A), Array("heavyTank", "heavyIonBlanc", A), Array("mediumTank", "heavyIonBlanc", A)), parcourt3), Array(Array(Array("heavyTank", "heavyIonBlanc", A), Array("battleTank", "largeVertTwin", A), Array("smallTank", "smallRed", A), Array("smallTank", "smallRed", A), Array("mediumTank", "mediumBleuTwin", A), Array("battleTank", "largeVertTwin", B), Array("smallTank", "smallRed", B), Array("smallTank", "smallRed", B), Array("heavyTank", "heavyIonBlanc", B), Array("battleTank", "largeVertTwin", C), Array("smallTank", "smallRed", C), Array("smallTank", "smallRed", C), Array("mediumTank", "mediumBleuTwin", C), Array("battleTank", "largeVertTwin", C), Array("smallTank", "smallRed", C), Array("smallTank", "smallRed", C)), parcourt1), Array(Array(Array("battleTank", "largeIonRouge", A), Array("mediumTank", "mediumPlasma", A), Array("smallTank", "smallRedTwin", A), Array("smallTank", "smallRedTwin", A), Array("battleTank", "largeIonRouge", B), Array("mediumTank", "mediumPlasma", B), Array("smallTank", "smallRedTwin", B), Array("smallTank", "smallRedTwin", B), Array("battleTank", "largeIonRouge", C), Array("mediumTank", "mediumPlasma", C), Array("smallTank", "smallRedTwin", C), Array("smallTank", "smallRedTwin", C), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T)), parcourt1), Array(Array(Array("heavyTank", "heavyPlasmaTwin", A), Array("heavyTank", "heavyPlasmaTwin", A), Array("heavyTank", "heavyPlasmaTwin", A), Array("heavyTank", "heavyPlasmaTwin", A), Array("heavyTank", "heavyIonBlanc", B), Array("heavyTank", "heavyIonBlanc", B), Array("heavyTank", "heavyIonBlanc", B), Array("heavyTank", "heavyIonBlanc", B), Array("trident", "tridentLaser", F), Array("trident", "tridentLaser", F)), parcourt1), Array(Array(Array("trident", "tridentLaser", F), Array("millenium", "milleniumLaser", F), Array("smallTank", "smallRed", A), Array("smallTank", "smallRed", A), Array("mediumTank", "mediumBleuTwin", A), Array("battleTank", "largeVertTwin", A), Array("battleTank", "largeVertTwin", A), Array("heavyTank", "heavyPlasmaTwin", A), Array("smallTank", "smallRed", C), Array("smallTank", "smallRed", C), Array("mediumTank", "mediumBleuTwin", C), Array("battleTank", "largeVertTwin", C), Array("battleTank", "largeVertTwin", C), Array("heavyTank", "heavyPlasmaTwin", C), Array("smallTank", "smallRed", B), Array("smallTank", "smallRed", B), Array("mediumTank", "mediumBleuTwin", B), Array("battleTank", "largeVertTwin", B), Array("battleTank", "largeVertTwin", B), Array("heavyTank", "heavyPlasmaTwin", B), "skip", "skip", "skip", "skip", "skip", "skip", Array("LadyDeath", "LadyDeathTower", B), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T), Array("eagle", "eagleCanon", T)), parcourt1));
var stinid = 0;
startInstructions();
}
Instance of Symbol 653 MovieClip in Frame 6
on (press) {
var thisX = (_parent._x + this._x);
var thisY = (_parent._y + this._y);
var relX = (_root.viseurMiniMap._x - thisX);
var relY = (_root.viseurMiniMap._y - thisY);
var realX = (relX * 12.63);
var realY = (relY * 12.63);
_root.carte._x = ((_root.carte.carteBase._width / 2) - realX) - 630;
_root.carte._y = (_root.carte.carteBase._height - 180) - realY;
_root.master_pointeur.repositionneMap();
_root.indicateurMiniMap._x = _root.viseurMiniMap._x;
_root.indicateurMiniMap._y = _root.viseurMiniMap._y;
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
_root.master_pointeur.viseurMiniMapBool = true;
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
_root.master_pointeur.viseurMiniMapBool = false;
_root.viseurMiniMap._x = -500;
}
Instance of Symbol 17 MovieClip "master_pointeur" in Frame 6
onClipEvent (load) {
function isClosedForSound(target) {
var _local1 = {x:0, y:0};
target.localToGlobal(_local1);
if ((((_local1.x >= -150) && (_local1.x <= 950)) && (_local1.y >= -150)) && (_local1.y <= 750)) {
return(true);
}
return(false);
}
function AdZoom(indic) {
var _local5 = false;
var _local6 = false;
if ((indic == 1) && (curZoom < 4)) {
curZoom++;
_local6 = true;
} else if ((indic == 0) && (curZoom > 1)) {
curZoom--;
_local5 = true;
} else {
return(false);
}
var _local7 = dataZoom[curZoom - 1][0];
_root.carte._xscale = _local7;
_root.carte._yscale = _local7;
if (_local5) {
var _local3 = {x:0, y:0};
_root.carte.ltg.localToGlobal(_local3);
var _local9 = 400 - _local3.x;
var _local8 = 300 - _local3.y;
_root.carte._x = _root.carte._x + _local9;
_root.carte._y = _root.carte._y + _local8;
} else if (_local6) {
var _local3 = {x:0, y:0};
_root.carte.ltg.localToGlobal(_local3);
if (_root._xmouse < 636) {
_local3.x = _local3.x + ((_root._xmouse - 400) * dataZoom[curZoom - 1][5]);
_local3.y = _local3.y + ((_root._ymouse - 300) * dataZoom[curZoom - 1][5]);
}
var _local9 = 400 - _local3.x;
var _local8 = 300 - _local3.y;
_root.carte._x = _root.carte._x + _local9;
_root.carte._y = _root.carte._y + _local8;
}
var _local4 = 1 / (dataZoom[curZoom - 1][0] / 100);
_root.indicateurMiniMap._width = _local4 * 26;
_root.indicateurMiniMap._height = _local4 * 19.5;
_root.viseurMiniMap._width = _local4 * 26;
_root.viseurMiniMap._height = _local4 * 19.5;
var _local2 = 0;
while (_local2 < _root.master_units.unitsEnnemies.length) {
_root.master_units.unitsEnnemies[_local2].etatJauge._xscale = dataZoom[curZoom - 1][6];
_root.master_units.unitsEnnemies[_local2].etatJauge._yscale = dataZoom[curZoom - 1][6];
_local2++;
}
_local2 = 0;
while (_local2 < _root.master_units.unitsAlliees.length) {
_root.master_units.unitsAlliees[_local2].etatJauge._xscale = dataZoom[curZoom - 1][6];
_root.master_units.unitsAlliees[_local2].etatJauge._yscale = dataZoom[curZoom - 1][6];
_local2++;
}
repositionneMap();
}
function decalMap(direction) {
if (direction == "left") {
_root.carte._x = _root.carte._x + vitesseDeplacement;
} else if (direction == "right") {
_root.carte._x = _root.carte._x - vitesseDeplacement;
} else if (direction == "down") {
_root.carte._y = _root.carte._y - vitesseDeplacement;
} else if (direction == "up") {
_root.carte._y = _root.carte._y + vitesseDeplacement;
}
repositionneMap();
}
function repositionneMap() {
if (_root.carte._y < dataZoom[curZoom - 1][3]) {
_root.carte._y = dataZoom[curZoom - 1][3];
}
if (_root.carte._y >= dataZoom[curZoom - 1][4]) {
_root.carte._y = dataZoom[curZoom - 1][4];
}
if (_root.carte._x > dataZoom[curZoom - 1][1]) {
_root.carte._x = dataZoom[curZoom - 1][1];
}
if (_root.carte._x <= dataZoom[curZoom - 1][2]) {
_root.carte._x = dataZoom[curZoom - 1][2];
}
}
function unshowInfoOnUnit() {
afficheUnit = "null";
_root.carte.cerclePortee._width = 2;
_root.carte.cerclePortee._height = 2;
_root.carte.cerclePortee._x = -500;
_root.carte.viseurUnit._x = -500;
_root.carte.barreReparation._x = -500;
_root.carte.barreReparation.base.masque._alpha = 0;
_root.master_clavier.barreReparationAffichee = false;
}
k = 35;
mouvableXInf = k;
mouvableXSup = 640 - k;
mouvableYInf = 600 - k;
mouvableYSup = k;
vitesseDeplacement = 30 * _root.fpsc;
curZoom = 4;
dataZoom = Array(Array(20, 0, -160, 480, 840, 0, 400), Array(50, 0, -1600, 300, 2100, 2.5, 200), Array(80, 0, -3040, 120, 3360, 1.6, 125), Array(100, 0, -4000, 0, 4200, 1.25, 100));
dataMinimap = Array(Array(706.7, 732.7, 53, 111.5), Array(667.7, 771.7, 23.75, 140.75), Array(657.95, 781.45, 16.4, 148.05), Array(654.7, 784.7, 14, 150.5));
keyPressed = "null";
keyPressedS = "null";
viseurMiniMapBool = false;
viseurConstruction = false;
zoneBombardement = false;
surMenu = false;
surMenuSC = false;
afficheUnit = "null";
breakPermDeplacer = false;
breakPermCursor = true;
this.onMouseWheel = function (delta) {
if ((delta > 0) && (curZoom < 4)) {
AdZoom(1);
} else if ((delta < 0) && (curZoom > 1)) {
AdZoom(0);
}
};
Mouse.addListener(this);
}
onClipEvent (enterFrame) {
if (keyPressed != "null") {
if (keyPressed == "left") {
decalMap("left");
}
if (keyPressed == "right") {
decalMap("right");
}
if (keyPressed == "down") {
decalMap("down");
}
if (keyPressed == "up") {
decalMap("up");
}
if ((keyPressedS != "null") && (keyPressedS != keyPressed)) {
if (keyPressedS == "left") {
decalMap("left");
}
if (keyPressedS == "right") {
decalMap("right");
}
if (keyPressedS == "down") {
decalMap("down");
}
if (keyPressedS == "up") {
decalMap("up");
}
}
} else if ((!surMenu) && (!surMenuSC)) {
if (_root._xmouse < mouvableXInf) {
decalMap("left");
}
if (_root._xmouse > mouvableXSup) {
decalMap("right");
}
if (_root._ymouse > mouvableYInf) {
decalMap("down");
}
if (_root._ymouse < mouvableYSup) {
decalMap("up");
}
}
if (viseurMiniMapBool) {
_root.viseurMiniMap._x = _root._xmouse;
_root.viseurMiniMap._y = _root._ymouse;
if (_root._xmouse < dataMinimap[curZoom - 1][0]) {
_root.viseurMiniMap._x = dataMinimap[curZoom - 1][0];
} else if (_root._xmouse > dataMinimap[curZoom - 1][1]) {
_root.viseurMiniMap._x = dataMinimap[curZoom - 1][1];
}
if (_root._ymouse < dataMinimap[curZoom - 1][2]) {
_root.viseurMiniMap._y = dataMinimap[curZoom - 1][2];
} else if (_root._ymouse > dataMinimap[curZoom - 1][3]) {
_root.viseurMiniMap._y = dataMinimap[curZoom - 1][3];
}
}
if (viseurConstruction) {
_root.carte.viseurConstruction._x = _root.carte._xmouse;
_root.carte.viseurConstruction._y = _root.carte._ymouse;
}
if (zoneBombardement) {
_root.carte.zoneBombardement._x = _root.carte._xmouse;
_root.carte.zoneBombardement._y = _root.carte._ymouse;
}
if (afficheUnit != "null") {
if (Math.abs(_root.carte.cerclePortee._x - afficheUnit._parent._x) > 3) {
_root.carte.cerclePortee._x = afficheUnit._parent._x;
}
if (Math.abs(_root.carte.cerclePortee._y - afficheUnit._parent._y) > 3) {
_root.carte.cerclePortee._y = afficheUnit._parent._y;
}
if (Math.abs(_root.carte.cerclePortee._width - (afficheUnit._parent.tourelle.tourelle.distanceOfFire * 2)) > 2) {
_root.carte.cerclePortee._width = afficheUnit._parent.tourelle.tourelle.distanceOfFire * 2;
}
if (_root.carte.cerclePortee._height != _root.carte.cerclePortee._width) {
_root.carte.cerclePortee._height = _root.carte.cerclePortee._width;
}
if (_root.carte.viseurUnit._x != afficheUnit._parent._x) {
_root.carte.viseurUnit._x = afficheUnit._parent._x;
}
if (_root.carte.viseurUnit._y != afficheUnit._parent._y) {
_root.carte.viseurUnit._y = afficheUnit._parent._y;
}
if (afficheUnit._parent.side == "ally") {
if (_root.carte.barreReparation._x != (afficheUnit._parent._x + 12)) {
_root.carte.barreReparation._x = afficheUnit._parent._x + 12;
}
if (_root.carte.barreReparation._y != (afficheUnit._parent._y + 35)) {
_root.carte.barreReparation._y = afficheUnit._parent._y + 35;
}
_root.carte.barreReparation.base.refresh(afficheUnit);
_root.master_clavier.barreReparationAffichee = true;
} else if (_root.carte.barreReparation._x != -500) {
_root.carte.barreReparation._x = -500;
}
}
if ((afficheUnit != "null") && (afficheUnit._parent == undefined)) {
unshowInfoOnUnit();
}
if (!surMenu) {
if (_root.menu._alpha != 15) {
_root.menu._alpha = 15;
_root.menu.bg.gotoAndStop("hide");
_root.menu.informations.qualityB._alpha = 0;
_root.menu.informations.helpB._alpha = 0;
_root.menu.informations.musicB._alpha = 0;
_root.menu.informations.story._alpha = 0;
_root.menu.arrowL._alpha = 0;
_root.menu.arrowR._alpha = 0;
_root.menu.informations.menuZoomP._alpha = 0;
_root.menu.informations.menuZoomM._alpha = 0;
_root.menu.informations.menuArea._alpha = 0;
_root.menu.informations.menuHealth._alpha = 0;
_root.cadreSup._alpha = 0;
}
} else if (_root.menu._alpha != 100) {
_root.menu._alpha = 100;
_root.menu.bg.gotoAndStop("normal");
_root.menu.informations.qualityB._alpha = 100;
_root.menu.informations.helpB._alpha = 100;
_root.menu.informations.musicB._alpha = 100;
_root.menu.informations.story._alpha = 100;
_root.menu.arrowL._alpha = 100;
_root.menu.arrowR._alpha = 100;
_root.menu.informations.menuZoomP._alpha = 100;
_root.menu.informations.menuZoomM._alpha = 100;
_root.menu.informations.menuArea._alpha = 100;
_root.menu.informations.menuHealth._alpha = 100;
_root.cadreSup._alpha = 100;
}
}
Instance of Symbol 723 MovieClip "indicateurMiniMap" in Frame 6
onClipEvent (load) {
function reposition() {
var _local4 = (-8 + _root.carte.ltg._x) / 30.7692;
var _local3 = (592 - _root.carte.ltg._y) / 30.7692;
if (this._x != (642 + _local4)) {
this._x = 642 + _local4;
}
if (this._y != (160 - _local3)) {
this._y = 160 - _local3;
}
}
setInterval(this, "reposition", 20);
}
Instance of Symbol 17 MovieClip "master_units" in Frame 6
onClipEvent (load) {
function fireOnEnnemi(xpos, ypos, range, power, side) {
var _local2 = 0;
if (side == "ennemy") {
_local2 = unitsEnnemies.length;
}
while (_local2 < unitsEnnemies.length) {
if (unitsEnnemies[_local2] == "null") {
} else if (Math.abs(unitsEnnemies[_local2]._x - xpos) > ((range * 2) + unitsEnnemies[_local2]._height)) {
} else if (Math.abs(unitsEnnemies[_local2]._y - ypos) > ((range * 2) + unitsEnnemies[_local2]._height)) {
} else {
var _local12 = (unitsEnnemies[_local2]._x - xpos) * (unitsEnnemies[_local2]._x - xpos);
var _local10 = (unitsEnnemies[_local2]._y - ypos) * (unitsEnnemies[_local2]._y - ypos);
var _local11 = Math.sqrt(_local12 + _local10);
if (_local11 <= (range + unitsEnnemies[_local2]._height)) {
if ((power == 41) && (unitsEnnemies[_local2].chassis == "tigre")) {
unitsEnnemies[_local2].etat = unitsEnnemies[_local2].etat - (power * 4);
} else {
unitsEnnemies[_local2].etat = unitsEnnemies[_local2].etat - power;
}
var _local3 = {x:0, y:0};
var _local4 = {x:0, y:0};
unitsEnnemies[_local2].localToGlobal(_local4);
unitsEnnemies[_local2].unitEtat.localToGlobal(_local3);
_root.master_weapons.createEclat(unitsEnnemies[_local2]._x + ((_local3.x - _local4.x) / 4), unitsEnnemies[_local2]._y + ((_local3.y - _local4.y) / 4));
if (power > 8) {
_root.master_weapons.createEclat(unitsEnnemies[_local2]._x + ((_local3.x - _local4.x) / 4), unitsEnnemies[_local2]._y + ((_local3.y - _local4.y) / 4));
_root.master_weapons.createEclat(unitsEnnemies[_local2]._x + ((_local3.x - _local4.x) / 4), unitsEnnemies[_local2]._y + ((_local3.y - _local4.y) / 4));
}
if (unitsEnnemies[_local2].etat <= 0) {
unitsEnnemies[_local2].unitEtat.destruction();
}
}
}
_local2++;
}
_local2 = 0;
if (side == "ally") {
_local2 = unitsAlliees.length;
}
while (_local2 < unitsAlliees.length) {
if (unitsAlliees[_local2] == "null") {
} else if (Math.abs(unitsAlliees[_local2]._x - xpos) > ((range * 2) + unitsAlliees[_local2]._height)) {
} else if (Math.abs(unitsAlliees[_local2]._y - ypos) > ((range * 2) + unitsAlliees[_local2]._height)) {
} else {
var _local12 = (unitsAlliees[_local2]._x - xpos) * (unitsAlliees[_local2]._x - xpos);
var _local10 = (unitsAlliees[_local2]._y - ypos) * (unitsAlliees[_local2]._y - ypos);
var _local11 = Math.sqrt(_local12 + _local10);
if (_local11 <= (range + unitsAlliees[_local2]._height)) {
var _local9 = 1;
if (unitsAlliees[_local2].bouclier) {
unitsAlliees[_local2].repairLogo.light.gotoAndPlay(1);
unitsAlliees[_local2].repairLogo.light2.gotoAndPlay(1);
_local9 = 0.5;
}
unitsAlliees[_local2].etat = unitsAlliees[_local2].etat - (power * _local9);
var _local3 = {x:0, y:0};
var _local4 = {x:0, y:0};
unitsAlliees[_local2].localToGlobal(_local4);
unitsAlliees[_local2].unitEtat.localToGlobal(_local3);
_root.master_weapons.createEclat(unitsAlliees[_local2]._x + ((_local3.x - _local4.x) / 4), unitsAlliees[_local2]._y + ((_local3.y - _local4.y) / 4));
if (power > 8) {
_root.master_weapons.createEclat(unitsAlliees[_local2]._x + ((_local3.x - _local4.x) / 4), unitsAlliees[_local2]._y + ((_local3.y - _local4.y) / 4));
_root.master_weapons.createEclat(unitsAlliees[_local2]._x + ((_local3.x - _local4.x) / 4), unitsAlliees[_local2]._y + ((_local3.y - _local4.y) / 4));
}
if (unitsAlliees[_local2].etat <= 0) {
unitsAlliees[_local2].unitEtat.destruction();
} else if (unitsAlliees[_local2].repairLogo.autoRepair) {
unitsAlliees[_local2].structureDeco.autoRepair();
}
}
}
_local2++;
}
}
function removeUnits(side, iUnit) {
var _local7 = unitsEnnemies;
iUnit.isDead = true;
if (side == "A") {
_local7 = unitsAlliees;
}
if (side == "A") {
var _local5 = 0;
while (_local5 < unitsAlliees.length) {
if (unitsAlliees[_local5] == iUnit) {
if (unitsAlliees[_local5].type == "fort") {
activePerduViaInterval();
return(false);
}
if (unitsAlliees[_local5].type == "TBouclier") {
var _local1 = 0;
while (_local1 < unitsAlliees.length) {
var _local4 = (unitsAlliees[_local5]._x - unitsAlliees[_local1]._x) * (unitsAlliees[_local5]._x - unitsAlliees[_local1]._x);
var _local2 = (unitsAlliees[_local5]._y - unitsAlliees[_local1]._y) * (unitsAlliees[_local5]._y - unitsAlliees[_local1]._y);
var _local3 = Math.sqrt(_local4 + _local2);
if (_local3 <= GTDDU.TBouclier[2]) {
unitsAlliees[_local1].structureDeco.removeBouclier();
}
_local1++;
}
}
unitsAlliees[_local5] = "null";
break;
}
_local5++;
}
} else {
var _local5 = 0;
while (_local5 < unitsEnnemies.length) {
if (unitsEnnemies[_local5] == iUnit) {
unitsEnnemies[_local5] = "null";
break;
}
_local5++;
}
}
if (side != "A") {
var _local5 = 0;
while (_local5 < unitsEnnemies.length) {
if (unitsEnnemies[_local5] != "null") {
return(true);
}
_local5++;
}
activeDeclencheur();
}
}
function activePerduViaInterval() {
declencheurPerduID = setInterval(this, "activePerdu", 4000);
}
function activePerdu() {
_root.master_scenario.activePerdu();
clearInterval(declencheurPerduID);
}
function activeDeclencheur() {
declencheurID = setInterval(this, "declencheMissionSuivante", 3000);
}
function declencheMissionSuivante() {
clearInterval(declencheurID);
if (!_root.master_scenario.aPerdu) {
_root.master_scenario.startInstructions();
}
}
function createUnit(chassis, tourelle, side, xpos, ypos, checkpoints) {
var _local4 = "structure";
var _local3 = iStructuresA;
var _local16 = "structure";
var _local12 = "iStructure";
var _local11 = this.unitsAlliees;
var _local10 = "pointUnitRadarA";
var _local6 = "etatA";
var _local14 = 51000;
var _local17 = 5000;
var _local15 = 7000;
var _local5 = 3000;
var _local9 = 9000;
if (side == "ennemy") {
_local4 = "unit";
_local3 = iUnitsE;
_local16 = "chassis";
_local12 = "iUnit";
_local11 = this.unitsEnnemies;
_local10 = "pointUnitRadarE";
_local6 = "etatE";
_local14 = 52000;
_local17 = 6000;
_local15 = 8000;
_local5 = 4000;
}
_root.carte.attachMovie(_local4, _local4 + _local3, _local17 + _local3);
_root.carte[_local4 + _local3]._x = xpos;
_root.carte[_local4 + _local3]._y = ypos;
_root.carte[_local4 + _local3][_local12] = _local3;
_root.carte[_local4 + _local3].type = tourelle;
_root.carte[_local4 + _local3][_local16] = chassis;
_root.carte[_local4 + _local3].side = side;
_root.carte[_local4 + _local3].isDead = false;
_local11[_local11.length] = _root.carte[_local4 + _local3];
_root.attachMovie("pointUnitRadar", _local10 + _local3, _local14 + _local3);
if (side != "ennemy") {
_root[_local10 + _local3].gotoAndStop("A");
}
_root.carte[_local4 + _local3].ptRadar = _root[_local10 + _local3];
_root.carte.attachMovie("etat", _local6 + _local3, _local15 + _local3);
_root.carte[_local6 + _local3]._x = -2000;
_root.carte[_local4 + _local3].etatJauge = _root.carte[_local6 + _local3];
if (chassis != "tigre") {
_root.carte.attachMovie(chassis + "_ombre", "ombre" + (_local3 + _local5), _local5 + _local3);
var _local18 = new Color(_root.carte["ombre" + (_local3 + _local5)]);
_local18.setRGB(0);
var _local13 = 40;
if (side != "ennemy") {
_local13 = 40;
}
_root.carte["ombre" + (_local3 + _local5)]._alpha = _local13;
_root.carte["ombre" + (_local3 + _local5)]._x = _root.carte[_local4 + _local3]._x;
_root.carte["ombre" + (_local3 + _local5)]._y = _root.carte[_local4 + _local3]._y;
_root.carte[_local4 + _local3].ombre = _root.carte["ombre" + (_local3 + _local5)];
}
_root.carte[_local4 + _local3].etatJauge._xscale = _root.master_pointeur.dataZoom[_root.master_pointeur.curZoom - 1][6];
_root.carte[_local4 + _local3].etatJauge._yscale = _root.master_pointeur.dataZoom[_root.master_pointeur.curZoom - 1][6];
if ((side != "ennemy") && (chassis != "fort")) {
_root.carte[_local6 + _local3].gotoAndStop("A");
_root.carte.attachMovie("soufleCr", "soufleCr" + (_local3 + _local9), _local9 + _local3);
_root.carte["soufleCr" + (_local3 + _local9)]._x = _root.carte._xmouse;
_root.carte["soufleCr" + (_local3 + _local9)]._y = _root.carte._ymouse;
}
if (side == "ennemy") {
_root.carte[_local4 + _local3].checkpoints = checkpoints;
}
if (side == "ennemy") {
iUnitsE++;
} else {
iStructuresA++;
}
if (iUnitsE >= 1000) {
iUnitsE = 0;
}
if (iStructuresA >= 1000) {
iStructuresA = 0;
}
if ((chassis == "navire") || (chassis == "Yamato")) {
_root.carte[_local4 + _local3]._rotation = 0;
}
}
function noTarget(side) {
if (side == "ennemy") {
return(iFirstAlly);
}
return(iFirstEnnemy);
}
function getFirstEA() {
var _local1 = 0;
while (_local1 < unitsEnnemies.length) {
if (((unitsEnnemies[_local1] != "null") && (unitsEnnemies[_local1]._x >= 0)) && (unitsEnnemies[_local1]._y <= 602)) {
iFirstEnnemy = _local1;
break;
}
_local1++;
}
if (_local1 == unitsEnnemies.length) {
iFirstEnnemy = -1;
}
_local1 = 0;
while (_local1 < unitsAlliees.length) {
if (unitsAlliees[_local1] != "null") {
iFirstAlly = _local1;
break;
}
_local1++;
}
if (_local1 == unitsAlliees.length) {
iFirstAlly = -1;
}
}
function countUnitsEnnemies() {
var _local2 = 0;
var _local1 = 0;
while (_local1 < unitsEnnemies.length) {
if (unitsEnnemies[_local1] != "null") {
_local2++;
}
_local1++;
}
nbreUnitsEnnemies = _local2;
}
function getSound() {
if ((nbreUnitsEnnemies == 0) || (_root.master_scenario.aPerdu)) {
return(false);
}
if (comptSound < (250 * nbreUnitsEnnemies)) {
comptSound++;
return(false);
}
comptSound = 0;
return(true);
}
function refreshRadar() {
var _local3 = new Array();
var _local4 = new Array();
var _local2 = 0;
var _local1 = 0;
while (_local1 < unitsEnnemies.length) {
if ((unitsEnnemies[_local1].type == "radar") || (unitsEnnemies[_local1].type == "radarMobile")) {
_local3[_local2] = unitsEnnemies[_local1];
_local2++;
}
_local1++;
}
_local2 = 0;
_local1 = 0;
while (_local1 < unitsAlliees.length) {
if ((unitsAlliees[_local1].type == "radar") || (unitsAlliees[_local1].type == "radarMobile")) {
_local4[_local2] = unitsAlliees[_local1];
_local2++;
}
_local1++;
}
unitsEnnemiesRadar = _local3;
unitsAllieesRadar = _local4;
}
function refreshBouclier() {
var _local3 = 0;
while (_local3 < unitsAlliees.length) {
if (unitsAlliees[_local3].type == "TBouclier") {
var _local2 = 0;
while (_local2 < unitsAlliees.length) {
if (unitsAlliees[_local3] == unitsAlliees[_local2]) {
} else {
var _local6 = (unitsAlliees[_local2]._x - unitsAlliees[_local3]._x) * (unitsAlliees[_local2]._x - unitsAlliees[_local3]._x);
var _local4 = (unitsAlliees[_local2]._y - unitsAlliees[_local3]._y) * (unitsAlliees[_local2]._y - unitsAlliees[_local3]._y);
var _local5 = Math.sqrt(_local6 + _local4);
if (_local5 <= GTDDU.TBouclier[2]) {
unitsAlliees[_local2].structureDeco.ajouteBouclier();
}
}
_local2++;
}
}
if (_root.consoleCheats.protectionForAll) {
unitsAlliees[_local3].structureDeco.ajouteBouclier();
}
_local3++;
}
}
function refreshVectors() {
var _local3 = new Array();
var _local1 = 0;
var _local2 = 0;
while (_local1 < unitsAlliees.length) {
if (unitsAlliees[_local1] != "null") {
_local3[_local2] = unitsAlliees[_local1];
_local2++;
}
_local1++;
}
unitsAlliees = _local3;
unitsEnnemies = new Array();
iUnitsE = 0;
}
function addFort() {
this.createUnit("fort", "fort", "ally", 2435, -3900, null);
clearInterval(addFortId);
}
unitsEnnemies = new Array();
unitsAlliees = new Array();
unitsEnnemiesRadar = new Array();
unitsAllieesRadar = new Array();
iStructuresA = 0;
iUnitsE = 0;
iFirstAlly = -1;
iFirstEnnemy = -1;
nbreUnitsEnnemies = 99999 /* 0x01869F */;
comptSound = 0;
declencheurID = 0;
declencheurPerduID = 0;
setInterval(this, "getFirstEA", 200);
setInterval(this, "countUnitsEnnemies", 3000);
setInterval(this, "refreshBouclier", 500);
if (_root.loadGame) {
var i = 0;
while (i < _root.unitsV.length) {
var u = _root.unitsV[i];
createUnit(u[0], u[0], "ally", u[2], u[3], null);
var id = (iStructuresA - 1);
_root.carte["structure" + id].loadEtat = u[1];
_root.carte["structure" + id].loadAutoRepair = u[4];
i++;
}
}
var GTDDU = new Array();
if (_root.gamemoder == "easy") {
trace("MODE IS EASY!");
GTDDU.TLaserLegerRouge = Array(10, 4, 620, 35, 120, 100, 0);
GTDDU.TLaserMoyenBleu = Array(3, 15, 1500, 35, 50, 100, 0);
GTDDU.TDoubleLaserLegerRouge = Array(10, 3, 620, 12, 220, 300, 0);
GTDDU.TDoublePlasma = Array(18, 10, 780, 50, 240, 220, 0);
GTDDU.TCanonIonRouge = Array(3.5, 4, 1000, 4, 340, 500, 2000);
GTDDU.TDoubleMoyenVert = Array(8, 12, 1800, 30, 250, 400, 2000);
GTDDU.TBouclier = Array("/", "/", 400, "/", 400, 1000, 0);
GTDDU.TAAMissile = Array(25, 15, 1000, 80, 120, 300, 600);
GTDDU.TCanonIonBlanc = Array(7, 4, 1200, 4, 500, 1500, 3000);
GTDDU.TBerthaPlasma = Array(60, 120, 3000, 150, 800, 1500, 3000);
GTDDU.TNucleo = Array(1000, 500, 9999, 960, 1000, 2400, 4000);
GTDDU.su37 = Array(_root.carte.Su37.puissance, 500, "/", "60 sec.", "/", "/", 0);
GTDDU.smallRed = Array(5, 2, 620, 35);
GTDDU.smallRedTwin = Array(5, 2, 620, 18);
GTDDU.mediumPlasma = Array(9, 7, 720, 50);
GTDDU.mediumBleuTwin = Array(2, 6, 1800, 18);
GTDDU.largeIonRouge = Array(1, 2, 1000, 4);
GTDDU.largeVertTwin = Array(4, 6, 1800, 30);
GTDDU.heavyPlasmaTwin = Array(8, 6, 1000, 22);
GTDDU.heavyIonBlanc = Array(2.2, 2, 1000, 4);
GTDDU.tridentLaser = Array(4, 6, 1600, 9);
GTDDU.milleniumLaser = Array(6, 2, 1600, 4);
GTDDU.eagleCanon = Array(5, 8, 800, 20);
GTDDU.LadyDeathTower = Array(9, 20, 1200, 4);
GTDDU.smallTank = Array(90, 150);
GTDDU.mediumTank = Array(200, 300);
GTDDU.battleTank = Array(400, 520);
GTDDU.heavyTank = Array(550, 720);
GTDDU.trident = Array(1100, 1200);
GTDDU.millenium = Array(2200, 2000);
GTDDU.eagle = Array(210, 240);
GTDDU.LadyDeath = Array(8000, 0);
}
if (_root.gamemoder == "normal") {
trace("MODE IS NORM!");
GTDDU.TLaserLegerRouge = Array(10, 4, 620, 35, 120, 100, 0);
GTDDU.TLaserMoyenBleu = Array(3, 15, 1500, 35, 50, 100, 0);
GTDDU.TDoubleLaserLegerRouge = Array(10, 3, 620, 12, 220, 300, 0);
GTDDU.TDoublePlasma = Array(18, 10, 780, 50, 240, 220, 0);
GTDDU.TCanonIonRouge = Array(3.5, 4, 1000, 4, 340, 500, 2000);
GTDDU.TDoubleMoyenVert = Array(8, 12, 1800, 30, 250, 400, 2000);
GTDDU.TBouclier = Array("/", "/", 400, "/", 400, 1000, 0);
GTDDU.TAAMissile = Array(25, 15, 1000, 80, 120, 300, 800);
GTDDU.TCanonIonBlanc = Array(7, 4, 1200, 4, 500, 1500, 3000);
GTDDU.TBerthaPlasma = Array(60, 120, 3000, 150, 800, 1800, 3000);
GTDDU.TNucleo = Array(1000, 500, 9999, 960, 1000, 3000, 4000);
GTDDU.su37 = Array(_root.carte.Su37.puissance, 500, "/", "60 sec.", "/", "/", 0);
GTDDU.smallRed = Array(5, 2, 620, 35);
GTDDU.smallRedTwin = Array(7, 2, 620, 18);
GTDDU.mediumPlasma = Array(13, 7, 720, 50);
GTDDU.mediumBleuTwin = Array(2.5, 6, 1800, 18);
GTDDU.largeIonRouge = Array(2, 2, 1000, 4);
GTDDU.largeVertTwin = Array(6, 6, 1800, 30);
GTDDU.heavyPlasmaTwin = Array(11, 6, 1000, 22);
GTDDU.heavyIonBlanc = Array(3, 2, 1000, 4);
GTDDU.tridentLaser = Array(6, 6, 1600, 9);
GTDDU.milleniumLaser = Array(8, 2, 1600, 4);
GTDDU.eagleCanon = Array(7, 8, 800, 20);
GTDDU.LadyDeathTower = Array(12, 20, 1200, 4);
GTDDU.smallTank = Array(90, 150);
GTDDU.mediumTank = Array(220, 270);
GTDDU.battleTank = Array(400, 450);
GTDDU.heavyTank = Array(550, 650);
GTDDU.trident = Array(1100, 1050);
GTDDU.millenium = Array(2200, 1600);
GTDDU.eagle = Array(250, 220);
GTDDU.LadyDeath = Array(11000, 0);
}
if (_root.gamemoder == "hard") {
trace("MODE IS ARHD!");
GTDDU.TLaserLegerRouge = Array(10, 4, 620, 35, 120, 100, 0);
GTDDU.TLaserMoyenBleu = Array(3, 15, 1500, 35, 50, 100, 0);
GTDDU.TDoubleLaserLegerRouge = Array(10, 3, 620, 12, 220, 300, 0);
GTDDU.TDoublePlasma = Array(18, 10, 780, 50, 240, 220, 0);
GTDDU.TCanonIonRouge = Array(3.5, 4, 1000, 4, 340, 500, 2000);
GTDDU.TDoubleMoyenVert = Array(8, 12, 1800, 30, 250, 400, 2000);
GTDDU.TBouclier = Array("/", "/", 400, "/", 400, 1000, 0);
GTDDU.TAAMissile = Array(25, 15, 1000, 80, 120, 300, 800);
GTDDU.TCanonIonBlanc = Array(7, 4, 1200, 4, 500, 1800, 3000);
GTDDU.TBerthaPlasma = Array(60, 120, 3000, 150, 800, 2000, 4000);
GTDDU.TNucleo = Array(1000, 500, 9999, 960, 1000, 4500, 5000);
GTDDU.su37 = Array(_root.carte.Su37.puissance, 500, "/", "60 sec.", "/", "/", 0);
GTDDU.smallRed = Array(10, 4, 620, 35);
GTDDU.smallRedTwin = Array(10, 4, 620, 18);
GTDDU.mediumPlasma = Array(18, 15, 720, 50);
GTDDU.mediumBleuTwin = Array(3.2, 12, 1800, 18);
GTDDU.largeIonRouge = Array(2, 4, 1000, 4);
GTDDU.largeVertTwin = Array(8, 12, 1800, 30);
GTDDU.heavyPlasmaTwin = Array(15.8, 12, 1000, 22);
GTDDU.heavyIonBlanc = Array(4.2, 4, 1000, 4);
GTDDU.tridentLaser = Array(8, 12, 1600, 9);
GTDDU.milleniumLaser = Array(12, 4, 1600, 4);
GTDDU.eagleCanon = Array(10, 15, 800, 20);
GTDDU.LadyDeathTower = Array(18, 40, 1200, 4);
GTDDU.smallTank = Array(140, 120);
GTDDU.mediumTank = Array(380, 230);
GTDDU.battleTank = Array(620, 420);
GTDDU.heavyTank = Array(1000, 620);
GTDDU.trident = Array(1800, 1000);
GTDDU.millenium = Array(3500, 1500);
GTDDU.eagle = Array(450, 200);
GTDDU.LadyDeath = Array(20000, 0);
}
var addFortId = 0;
if (unitsAlliees.length == 0) {
addFortId = setInterval(this, "addFort", 1);
}
}
Instance of Symbol 17 MovieClip "master_menuItems" in Frame 6
onClipEvent (load) {
function confirmBuy() {
if (euros >= dataW[weaponCP].price) {
unlocker[weaponCP] = true;
euros = euros - dataW[weaponCP].price;
_root.menu.constructionCont[weaponCP].gotoAndStop("normal");
return(true);
}
return(false);
}
function buyWeapon(weapon) {
weaponCP = weapon;
showPanelForUnlock(weapon);
}
function unlockNextWeapon() {
unlocker[weaponsToUnlock[iUnlock]] = true;
_root.menu.constructionCont[weaponsToUnlock[iUnlock]].gotoAndStop("normal");
iUnlock++;
return(true);
}
function showPanelForUnlock(weapon) {
_root.debloquerArme._x = 320;
_root.debloquerArme._y = 335;
lockItem = false;
var _local4 = weaponsToUnlock[iUnlock];
var _local2 = interest + 3;
mess = ((("You can unlock \"" + dataW[weapon].namer) + "\"\nfor ") + dataW[weapon].price) + " $";
_root.debloquerArme.info.text = mess;
}
if (_root.loadGame) {
euros = _root.euros;
} else {
euros = 1200;
}
if (_root.loadGame) {
interest = _root.interest;
} else {
interest = 6;
}
if (_root.loadGame) {
score = _root.score;
} else {
score = 0;
}
if (_root.langue == "french") {
unlockEndMessage = "Vous avez d\u00E9bloqu\u00E9 toute les armes.\nVous pouvez augmenter votre taux d'int\u00E9r\u00EAt \u00E0 ";
unlock1Message = "Vous pouvez d\u00E9bloquer le ";
unlock2Message = "ou augmenter votre taux d'int\u00E9r\u00EAt \u00E0 ";
} else {
unlockEndMessage = "you have unlocked all weapons.\nyou can increase your interest rate to ";
unlock1Message = "you can unlock the ";
unlock2Message = "or increase your interest rate to ";
}
unlocker = Array();
unlocker.TLaserLegerRouge = true;
unlocker.TLaserMoyenBleu = true;
unlocker.TDoubleLaserLegerRouge = true;
unlocker.TDoublePlasma = true;
unlocker.TCanonIonRouge = false;
unlocker.TDoubleMoyenVert = false;
unlocker.TBouclier = true;
unlocker.TAAMissile = false;
unlocker.TCanonIonBlanc = false;
unlocker.TBerthaPlasma = false;
unlocker.TNucleo = false;
unlocker.su37 = false;
dataW = Array();
dataW.TCanonIonRouge = {namer:"Red Ion Canon", price:_root.master_units.GTDDU.TCanonIonRouge[6]};
dataW.TDoubleMoyenVert = {namer:"Long range green laser", price:_root.master_units.GTDDU.TDoubleMoyenVert[6]};
dataW.TAAMissile = {namer:"AA Missile", price:_root.master_units.GTDDU.TAAMissile[6]};
dataW.TCanonIonBlanc = {namer:"White Heavy Ion", price:_root.master_units.GTDDU.TCanonIonBlanc[6]};
dataW.TBerthaPlasma = {namer:"Bertha Huge Canon", price:_root.master_units.GTDDU.TBerthaPlasma[6]};
dataW.TNucleo = {namer:"Nuclear Missile", price:_root.master_units.GTDDU.TNucleo[6]};
lockItem = true;
iUnlock = 0;
unlockerLength = 5;
if (_root.loadGame) {
if (_root.CIR == 1) {
unlocker.TCanonIonRouge = true;
_root.menu.constructionCont.TCanonIonRouge.gotoAndStop("normal");
}
if (_root.DGM == 1) {
unlocker.TDoubleMoyenVert = true;
_root.menu.constructionCont.TDoubleMoyenVert.gotoAndStop("normal");
}
if (_root.AAM == 1) {
unlocker.TAAMissile = true;
_root.menu.constructionCont.TAAMissile.gotoAndStop("normal");
}
if (_root.CIW == 1) {
unlocker.TCanonIonBlanc = true;
_root.menu.constructionCont.TCanonIonBlanc.gotoAndStop("normal");
}
if (_root.BHP == 1) {
unlocker.TBerthaPlasma = true;
_root.menu.constructionCont.TBerthaPlasma.gotoAndStop("normal");
}
if (_root.NUK == 1) {
unlocker.TNucleo = true;
_root.menu.constructionCont.TNucleo.gotoAndStop("normal");
}
}
var weaponCP = "";
cookie = SharedObject.getLocal("cookie");
if (cookie.data.scoreBonus == undefined) {
cookie.data.scoreBonus = 1;
cookie.data.interestSup = 0;
cookie.data.m60AutoFire = 1;
}
}
Instance of Symbol 17 MovieClip "master_weapons" in Frame 6
onClipEvent (load) {
function getIExplosion() {
iExplosion++;
if (iExplosion >= 1000) {
iExplosion = 0;
}
return(iExplosion);
}
function getIEclat() {
iEclat++;
if (iEclat >= 1000) {
iEclat = 0;
}
return(iEclat);
}
function createExplosion(X, Y, prefID) {
var _local2 = _root.master_weapons.getIExplosion();
_root.carte.attachMovie("explosion", "explosion" + _local2, 26000 + _local2);
_root.carte["explosion" + _local2]._x = (X + (Math.random() * 20)) - 10;
_root.carte["explosion" + _local2]._y = (Y + (Math.random() * 20)) - 10;
_root.carte.attachMovie("flame", "flame" + _local2, 28000 + _local2);
_root.carte["flame" + _local2]._x = (X + (Math.random() * 20)) - 10;
_root.carte["flame" + _local2]._y = (Y + (Math.random() * 20)) - 10;
if (prefID == undefined) {
var _local3 = Math.floor(Math.random() * 3) + 1;
} else {
var _local3 = prefID;
}
_root.carte["explosion" + _local2].gotoAndStop(_local3);
}
function createEclat(X, Y) {
var _local3 = this.getIEclat();
_root.carte.attachMovie("etincelle", "etincelle" + _local3, 27000 + _local3);
_root.carte["etincelle" + _local3]._rotation = Math.random() * 360;
_root.carte["etincelle" + _local3]._x = (X + (Math.random() * 16)) - 8;
_root.carte["etincelle" + _local3]._y = (Y + (Math.random() * 16)) - 8;
if (isNaN(X)) {
removeMovieClip(_root.carte["etincelle" + _local3]);
}
}
function createObus(type, tireur, decalY, decalX) {
var _local3 = _root.carte.getIObus();
_root.carte.attachMovie("obus", "obus" + _local3, 25000 + _local3);
_root.carte["obus" + _local3].type = type;
var _local5 = tireur._parent._parent._parent._parent.side;
var _local6 = tireur._parent._parent._parent._parent._x + tireur._parent._parent._parent._x;
tireur._parent._parent._x;
var _local4 = tireur._parent._parent._parent._parent._y + tireur._parent._parent._parent._y;
tireur._parent._parent._parent._y;
tireur._parent._parent._y;
var _local7 = tireur._parent._parent._parent._rotation + tireur._parent._parent._parent._parent._rotation;
if (tireur._parent._parent.nom == "su37") {
_local7 = tireur._parent._parent._rotation;
_local6 = tireur._parent._parent._x;
_local4 = tireur._parent._parent._y;
_local5 = "ally";
}
_root.carte["obus" + _local3]._x = _local6;
_root.carte["obus" + _local3]._y = _local4;
_root.carte["obus" + _local3]._rotation = _local7;
_root.carte["obus" + _local3].decalY = decalY;
_root.carte["obus" + _local3].decalX = decalX;
_root.carte["obus" + _local3].puissance = tireur._parent._parent.puissance * _root.consoleCheats.coefPower;
_root.carte["obus" + _local3].portee = tireur._parent._parent.impact;
_root.carte["obus" + _local3].side = _local5;
var _local8 = tireur._parent._parent.distanceTarget;
_root.carte["obus" + _local3].distance = _local8;
_root.carte["obus" + _local3].target = tireur._parent._parent.target;
}
iExplosion = 0;
iEclat = 0;
}
Instance of Symbol 17 MovieClip "master_clips" in Frame 6
onClipEvent (load) {
_root.surfaceForBuildZoom.swapDepths(999);
_root.menu.swapDepths(50000);
_root.infoMoneyAndScore.swapDepths(50004);
_root.indicateurMiniMap.swapDepths(50001);
_root.viseurMiniMap.swapDepths(50002);
_root.carte.viseurUnit.swapDepths(49999);
_root.carte.zoneBombardement.swapDepths(50003);
_root.cadreSup.swapDepths(50005);
_root.radarsu37.swapDepths(53001);
_root.carte.Su37.swapDepths(30001);
_root.carte.ombresu37.swapDepths(30002);
_root.carte.grandRocks.swapDepths(30000);
_root.carte.barreReparation.swapDepths(30003);
_root.instructions.swapDepths(100000);
_root.endPass.swapDepths(100001);
_root.end.swapDepths(100002);
_root.perdu.swapDepths(100003);
_root.out.swapDepths(100003);
}
Instance of Symbol 17 MovieClip "master_sounds" in Frame 6
onClipEvent (load) {
function playMusic() {
musics[imusic].start(positionmusic);
isPause = false;
}
function pauseMusic() {
if (!isPause) {
positionmusic = musics[imusic].position / 1000;
musics[imusic].stop();
isPause = true;
}
}
function changeMusic(im) {
pauseMusic();
positionmusic = 0;
imusic = im;
playMusic();
}
function nextMusic() {
if (imusic == 4) {
imusic = 0;
} else {
imusic++;
}
var _local1 = imusic;
while (_local1 == imusic) {
_local1 = Math.floor(Math.random() * 4);
}
imusic = _local1;
changeMusic(imusic);
}
function playBirds() {
if (((!_root.master_scenario.enScenario) && (!_root.master_scenario.aPerdu)) && (!edithBool)) {
var _local2 = Math.floor(Math.random() * 17) + 1;
BSounds[_local2].start();
curBirdSound = BSounds[_local2];
}
}
function edith() {
if (!isPause) {
pauseMusic();
isPause = false;
} else {
pauseMusic();
}
edithBool = true;
var _local1 = 0;
while (_local1 < soundsFx.length) {
soundsFx[_local1].setVolume(35);
_local1++;
}
}
function edithOff() {
edithBool = false;
var _local1 = 0;
while (_local1 < soundsFx.length) {
soundsFx[_local1].setVolume(soundsLevel);
_local1++;
}
}
function Yamato() {
this.yamatoBattle = true;
pauseMusic();
}
function changeLevels(type, level) {
if (type == "sounds") {
BSounds[0].setVolume(level);
soundsFx[0].setVolume(level + 20);
} else {
musics[0].setVolume(100);
}
}
soundsFx = new Array();
boutonScroll = new Sound(_parent.jukeboxListener2);
soundsFx[0] = boutonScroll;
boutonScroll.attachSound("boutonScroll");
creationUnite = new Sound(_parent.jukeboxListener2);
soundsFx[1] = creationUnite;
creationUnite.attachSound("creationUnite");
selectionUnite = new Sound(_parent.jukeboxListener2);
soundsFx[2] = selectionUnite;
selectionUnite.attachSound("selectionUnite");
cannot = new Sound(_parent.jukeboxListener2);
soundsFx[3] = cannot;
cannot.attachSound("cannot");
explosion1 = new Sound(_parent.jukeboxListener2);
soundsFx[4] = explosion1;
explosion1.attachSound("explosion1");
explosion2 = new Sound(_parent.jukeboxListener2);
soundsFx[5] = explosion2;
explosion2.attachSound("explosion2");
explosion3 = new Sound(_parent.jukeboxListener2);
soundsFx[6] = explosion3;
explosion3.attachSound("explosion3");
explosion4 = new Sound(_parent.jukeboxListener2);
soundsFx[7] = explosion4;
explosion4.attachSound("explosion4");
explosion5 = new Sound(_parent.jukeboxListener2);
soundsFx[8] = explosion5;
explosion5.attachSound("explosion5");
explosion6 = new Sound(_parent.jukeboxListener2);
soundsFx[9] = explosion6;
explosion6.attachSound("explosion6");
explosionLarge = new Sound(this);
soundsFx[10] = explosionLarge;
explosionLarge.attachSound("explosionLarge");
hit1 = new Sound(this);
soundsFx[11] = hit1;
hit1.attachSound("hit1");
hit2 = new Sound(this);
soundsFx[12] = hit2;
hit2.attachSound("hit2");
hit3 = new Sound(this);
soundsFx[34] = hit3;
hit3.attachSound("hit3");
ricochet1 = new Sound(this);
soundsFx[13] = ricochet1;
ricochet1.attachSound("ricochet1");
ricochet2 = new Sound(this);
soundsFx[14] = ricochet2;
ricochet2.attachSound("ricochet2");
ricochet3 = new Sound(this);
soundsFx[15] = ricochet3;
ricochet3.attachSound("ricochet3");
ricochet4 = new Sound(this);
soundsFx[16] = ricochet4;
ricochet4.attachSound("ricochet4");
metal1 = new Sound(_parent.jukeboxListener2);
soundsFx[35] = metal1;
metal1.attachSound("metal1");
metal2 = new Sound(this);
soundsFx[36] = metal2;
metal2.attachSound("metal2");
Su37S = new Sound(this);
soundsFx[17] = Su37S;
Su37S.attachSound("Su37");
uniteMoveLight1 = new Sound(_parent.jukeboxListener2);
soundsFx[18] = uniteMoveLight1;
uniteMoveLight1.attachSound("uniteMoveLight1");
uniteMoveLight2 = new Sound(_parent.jukeboxListener2);
soundsFx[19] = uniteMoveLight2;
uniteMoveLight2.attachSound("uniteMoveLight2");
uniteMoveLight3 = new Sound(_parent.jukeboxListener2);
soundsFx[20] = uniteMoveLight3;
uniteMoveLight3.attachSound("uniteMoveLight3");
uniteMoveLight4 = new Sound(_parent.jukeboxListener2);
soundsFx[21] = uniteMoveLight4;
uniteMoveLight4.attachSound("uniteMoveLight4");
uniteMoveHeavy1 = new Sound(_parent.jukeboxListener2);
soundsFx[22] = uniteMoveHeavy1;
uniteMoveHeavy1.attachSound("uniteMoveHeavy1");
uniteMoveHeavy2 = new Sound(_parent.jukeboxListener2);
soundsFx[23] = uniteMoveHeavy2;
uniteMoveHeavy2.attachSound("uniteMoveHeavy2");
uniteMoveHeavy3 = new Sound(_parent.jukeboxListener2);
soundsFx[24] = uniteMoveHeavy3;
uniteMoveHeavy3.attachSound("uniteMoveHeavy3");
uniteMoveTigre1 = new Sound(_parent.jukeboxListener2);
soundsFx[25] = uniteMoveTigre1;
uniteMoveTigre1.attachSound("uniteMoveTigre1");
redLaser = new Sound(this);
soundsFx[26] = redLaser;
redLaser.attachSound("redLaser_fire");
blueLaser = new Sound(this);
soundsFx[27] = blueLaser;
blueLaser.attachSound("blueLaser_fire");
greenLaser = new Sound(this);
soundsFx[28] = greenLaser;
greenLaser.attachSound("greenLaser_fire");
plasmaLeger = new Sound(this);
soundsFx[29] = plasmaLeger;
plasmaLeger.attachSound("plasmaLeger_fire");
redIon = new Sound(this);
soundsFx[30] = redIon;
redIon.attachSound("redIon_fire");
whiteIon = new Sound(this);
soundsFx[31] = whiteIon;
whiteIon.attachSound("whiteIon_fire");
AAMissile = new Sound(this);
soundsFx[32] = AAMissile;
AAMissile.attachSound("AAMissile_fire");
bertha = new Sound(this);
soundsFx[33] = bertha;
bertha.attachSound("bertha_fire");
nucleoLaunch = new Sound(this);
soundsFx[37] = nucleoLaunch;
nucleoLaunch.attachSound("nucleoLaunch");
nucleoBoum = new Sound(this);
soundsFx[38] = nucleoBoum;
nucleoBoum.attachSound("nucleoBoum");
move1 = new Sound(_parent.jukeboxListener2);
soundsFx[39] = move1;
move1.attachSound("move1");
move2 = new Sound(_parent.jukeboxListener2);
soundsFx[40] = move2;
move2.attachSound("move2");
move3 = new Sound(_parent.jukeboxListener2);
soundsFx[41] = move3;
move3.attachSound("move3");
move4 = new Sound(_parent.jukeboxListener2);
soundsFx[42] = move4;
move4.attachSound("move4");
move5 = new Sound(_parent.jukeboxListener2);
soundsFx[43] = move5;
move5.attachSound("move5");
musics = new Array();
musics[0] = new Sound(_parent.jukeboxListener3);
musics[0].attachSound("bg0");
musics[1] = new Sound(_parent.jukeboxListener3);
musics[1].attachSound("bg1");
musics[2] = new Sound(_parent.jukeboxListener3);
musics[2].attachSound("bg2");
musics[3] = new Sound(_parent.jukeboxListener3);
musics[3].attachSound("bg3");
musics[4] = new Sound(_parent.jukeboxListener3);
musics[4].attachSound("bg4");
var cookie = SharedObject.getLocal("cookie");
if (cookie.data.scoreBonus == undefined) {
imusic = 0;
} else {
imusic = Math.floor(Math.random() * 4);
}
positionmusic = 0;
isPause = false;
soundsLevel = 50;
musicLevel = 100;
yamatoBattle = false;
var i = 0;
while (i <= soundsFx.length) {
soundsFx[i].setVolume(soundsLevel);
i++;
}
BSounds = new Array();
var i = 0;
while (i <= 17) {
BSounds[i] = new Sound(this);
var j = "";
if (i < 10) {
j = "0";
}
j = j + i;
BSounds[i].attachSound("b" + j);
BSounds[i].setVolume(soundsLevel);
i++;
}
var curBirdSound = 0;
setInterval(this, "playBirds", 10000);
edithBool = false;
var i = 0;
while (i < musics.length) {
musics[i].setVolume(musicLevel);
musics[i].onSoundComplete = nextMusic;
i++;
}
changeLevels("sounds", soundsLevel);
changeLevels("music", musicLevel);
playMusic();
}
Instance of Symbol 750 MovieClip "helpBoard" in Frame 6
onClipEvent (load) {
if (_root.langue == "french") {
this.information = "\nH affiche/masqu la barre de vie des unit\u00E9s\n\nG active/d\u00E9sactive le zoom\n\nR r\u00E9pare l'unit\u00E9 selectionn\u00E9e\n\nS vend l'unit\u00E9 selectionn\u00E9e\n\nQ change la qualit\u00E9 (bon, moyen, faible)\n\nC affiche/masque la zone de construction\n\nspace correspond \u00E0 \"cancel\"\n";
}
}
Instance of Symbol 756 MovieClip "startMissionPause" in Frame 6
on (press) {
if (_root.canon75AutoFire == 0) {
this._x = -900;
_root.master_sounds.creationUnite.start();
_root.master_scenario.startMission();
}
}
Instance of Symbol 17 MovieClip "master_loadGame" in Frame 6
onClipEvent (load) {
_root.bgSound.gotoAndPlay("ventStart");
if (_root.loadGame) {
var iMission = _root.master_scenario.iMission;
if (iMission >= 14) {
_root.master_menuItems.unlocker.su37 = true;
_root.menu.constructionCont.su37.gotoAndStop("normal");
}
}
}
Instance of Symbol 17 MovieClip "jukeboxListener" in Frame 6
/* no clip actions */
Instance of Symbol 17 MovieClip "jukeboxListener2" in Frame 6
/* no clip actions */
Instance of Symbol 866 MovieClip "conseilIntroHelp" in Frame 6
onClipEvent (load) {
if (_root.langue == "french") {
this.txt.text = "Vous pouvez afficher la zone de construction en appuyant sur la touche \"c\"\n\nPour d\u00E9sactiver votre s\u00E9lection en cours, appuyez sur \"espace\" ou cliquez sur le menu\n\nPour les autres raccourcis, veuillez consulter la section d'aide dans le menu";
}
}
Instance of Symbol 17 MovieClip "jukeboxListener3" in Frame 6
/* no clip actions */
Instance of Symbol 872 MovieClip "consoleCheats" in Frame 6
onClipEvent (load) {
function afficheConsoleConfirmation(texto) {
_root.consoleConfirmation.texto = texto;
_root.consoleConfirmation.consoleConfirmation.console.text = texto;
_root.consoleConfirmation._x = 250;
_root.consoleConfirmation.gotoAndPlay(1);
_root.master_sounds.creationUnite.start();
}
var estAffiche = false;
this._x = -4000;
this.coefPower = 1;
this.su27full = false;
this.protectionForAll = false;
if (_root.loadGame) {
this.cheatMode = _root.chmo;
} else {
this.cheatMode = false;
}
}
onClipEvent (keyDown) {
if ((Key.getCode() == 13) && (estAffiche)) {
estAffiche = false;
this._x = -4000;
var cheat = this.console.text;
cheat = cheat.toUpperCase();
this.console.text = "";
if (cheat == "+ATMCASH") {
_root.master_menuItems.euros = _root.master_menuItems.euros + 2000;
afficheConsoleConfirmation("You have 2000 $ bonus");
cheatMode = true;
} else if (cheat == "+GIVEALLTH") {
_root.master_menuItems.weaponCP = "TCanonIonRouge";
_root.master_menuItems.unlocker[_root.master_menuItems.weaponCP] = true;
_root.menu.constructionCont[_root.master_menuItems.weaponCP].gotoAndStop("normal");
_root.master_menuItems.weaponCP = "TDoubleMoyenVert";
_root.master_menuItems.unlocker[_root.master_menuItems.weaponCP] = true;
_root.menu.constructionCont[_root.master_menuItems.weaponCP].gotoAndStop("normal");
_root.master_menuItems.weaponCP = "TAAMissile";
_root.master_menuItems.unlocker[_root.master_menuItems.weaponCP] = true;
_root.menu.constructionCont[_root.master_menuItems.weaponCP].gotoAndStop("normal");
_root.master_menuItems.weaponCP = "TCanonIonBlanc";
_root.master_menuItems.unlocker[_root.master_menuItems.weaponCP] = true;
_root.menu.constructionCont[_root.master_menuItems.weaponCP].gotoAndStop("normal");
_root.master_menuItems.weaponCP = "TBerthaPlasma";
_root.master_menuItems.unlocker[_root.master_menuItems.weaponCP] = true;
_root.menu.constructionCont[_root.master_menuItems.weaponCP].gotoAndStop("normal");
_root.master_menuItems.weaponCP = "TNucleo";
_root.master_menuItems.unlocker[_root.master_menuItems.weaponCP] = true;
_root.menu.constructionCont[_root.master_menuItems.weaponCP].gotoAndStop("normal");
afficheConsoleConfirmation("Every weapons are unlocked");
cheatMode = true;
} else if (cheat == "+HALFSHOT") {
this.coefPower = 0.5;
afficheConsoleConfirmation("All weapons do half the damage");
cheatMode = true;
} else if (cheat == "+DOUBLESHOT") {
this.coefPower = 2;
afficheConsoleConfirmation("All weapons do twice the damage");
cheatMode = true;
} else if (cheat == "+KILLALLS") {
_root.master_units.fireOnEnnemi(0, 0, 1000000, 1000000, "ally");
cheatMode = true;
} else if (cheat == "+SU27UNL") {
_root.master_menuItems.unlocker.su37 = true;
_root.menu.constructionCont.su37.gotoAndStop("normal");
this.su27full = true;
afficheConsoleConfirmation("The bomber is unlimited");
cheatMode = true;
} else if (cheat == "+PROTECTALLTH") {
this.protectionForAll = true;
afficheConsoleConfirmation("Every turrets are protected");
cheatMode = true;
} else {
_root.master_sounds.cannot.start();
}
} else if ((Key.getCode() == 13) && (!estAffiche)) {
this.console.text = "";
_root.master_sounds.creationUnite.start();
Selection.setFocus(this.console);
estAffiche = true;
this._x = 250;
}
}
Instance of Symbol 876 MovieClip "consoleConfirmation" in Frame 6
onClipEvent (load) {
this.stop();
this._x = -4000;
}
Instance of Symbol 17 MovieClip "master_memo" in Frame 6
/* no clip actions */
Symbol 4 MovieClip Frame 4
stop();
Symbol 8 MovieClip Frame 1
stop();
Symbol 8 MovieClip Frame 2
play();
Symbol 8 MovieClip Frame 3
play();
Symbol 8 MovieClip Frame 7
removeMovieClip(_parent);
Instance of Symbol 4 MovieClip in Symbol 9 MovieClip [beamer3] Frame 1
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
onClipEvent (enterFrame) {
this._y = this._y - 5;
}
Instance of Symbol 8 MovieClip "laser" in Symbol 9 MovieClip [beamer3] Frame 4
onClipEvent (load) {
type = "laserIonBlanc";
if (_parent.type != type) {
_parent.gotoAndPlay(_parent.type);
} else {
this._y = this._y - _parent.decalY;
this._x = this._x + _parent.decalX;
}
distance = Math.round(_parent.distance) - _parent.decalY;
puissance = _parent.puissance;
portee = _parent.portee;
var XPos = _parent.target._x;
var YPos = _parent.target._y;
this._height = distance;
if (XPos != undefined) {
_root.master_units.fireOnEnnemi(XPos, YPos, portee, puissance, _parent.side);
}
_parent.bout._y = (-distance) - _parent.decalY;
this.gotoAndPlay(2);
}
Symbol 9 MovieClip [beamer3] Frame 21
this.removeMovieClip();
stop();
Symbol 10 MovieClip Frame 4
gotoAndPlay (1);
Symbol 10 MovieClip Frame 7
stop();
Instance of Symbol 4 MovieClip in Symbol 11 MovieClip [beamer2] Frame 1
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
onClipEvent (enterFrame) {
this._y = this._y - 5;
}
Instance of Symbol 10 MovieClip in Symbol 11 MovieClip [beamer2] Frame 1
onClipEvent (enterFrame) {
if (((((this.hitTest(_root.bat.tank1) || (this.hitTest(_root.bat.tank2))) || (this.hitTest(_root.bat.tank3))) || (this.hitTest(_root.bat.tank4))) || (this.hitTest(_root.bat.tank5))) || (this.hitTest(_root.bat.tank6))) {
this.gotoAndPlay("spark");
_root.bat.hitSound.play();
}
}
Symbol 11 MovieClip [beamer2] Frame 21
this.removeMovieClip();
stop();
Instance of Symbol 4 MovieClip in Symbol 12 MovieClip [beamer] Frame 1
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
onClipEvent (enterFrame) {
this._y = this._y - 5;
}
Instance of Symbol 10 MovieClip in Symbol 12 MovieClip [beamer] Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.bat.turret1) || (this.hitTest(_root.bat.turret2))) || (this.hitTest(_root.bat.turret3))) {
this.gotoAndPlay("spark");
_root.bat.hitSound.play();
}
}
Instance of Symbol 10 MovieClip in Symbol 12 MovieClip [beamer] Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.bat.turret1) || (this.hitTest(_root.bat.turret2))) || (this.hitTest(_root.bat.turret3))) {
this.gotoAndPlay("spark");
_root.bat.hitSound.play();
}
}
Symbol 12 MovieClip [beamer] Frame 21
this.removeMovieClip();
stop();
Symbol 19 Button
on (release) {
getURL ("http://www.arcadebomb.com", "_blank");
}
Symbol 22 MovieClip Frame 5
explodeFinished();
Symbol 39 MovieClip Frame 1
stop();
Instance of Symbol 32 MovieClip "loaderbar" in Symbol 39 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.getBytesLoaded() / _root.getBytesTotal()) < 1) {
this.gotoAndStop(Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100));
} else {
_parent.gotoAndPlay(5);
}
}
onClipEvent (load) {
stop();
}
Symbol 39 MovieClip Frame 3
stop();
Symbol 39 MovieClip Frame 182
_root.gotoAndPlay("saut");
stop();
Symbol 42 MovieClip [pointUnitRadar] Frame 1
stop();
Symbol 42 MovieClip [pointUnitRadar] Frame 2
stop();
Instance of Symbol 67 MovieClip in Symbol 68 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.ceil(Math.random() * 40));
}
Instance of Symbol 67 MovieClip in Symbol 68 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.ceil(Math.random() * 40));
}
Instance of Symbol 67 MovieClip in Symbol 68 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.ceil(Math.random() * 40));
}
Instance of Symbol 67 MovieClip in Symbol 68 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.ceil(Math.random() * 40));
}
Instance of Symbol 67 MovieClip in Symbol 68 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.ceil(Math.random() * 40));
}
Instance of Symbol 67 MovieClip in Symbol 68 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.ceil(Math.random() * 40));
}
Instance of Symbol 67 MovieClip in Symbol 68 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.ceil(Math.random() * 40));
}
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 2
stop();
Symbol 69 MovieClip Frame 3
stop();
Symbol 69 MovieClip Frame 4
stop();
Symbol 69 MovieClip Frame 5
stop();
Symbol 69 MovieClip Frame 6
stop();
Symbol 69 MovieClip Frame 7
stop();
Symbol 69 MovieClip Frame 8
stop();
Symbol 69 MovieClip Frame 9
stop();
Symbol 69 MovieClip Frame 10
stop();
Symbol 69 MovieClip Frame 11
stop();
Symbol 69 MovieClip Frame 12
stop();
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 2
play();
Instance of Symbol 17 MovieClip in Symbol 72 MovieClip Frame 2
onClipEvent (load) {
var decalX = 0;
if (_parent.decalX != undefined) {
decalX = _parent.decalX;
}
_root.master_weapons.createObus("" + _parent.typeLaser, this, _parent.decalY, decalX);
}
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 2
play();
Instance of Symbol 17 MovieClip in Symbol 82 MovieClip Frame 2
onClipEvent (load) {
var decalX = 0;
if (_parent.decalX != undefined) {
decalX = _parent.decalX;
}
_root.master_weapons.createObus("" + _parent.typeLaser, this, _parent.decalY, decalX);
}
Symbol 96 MovieClip Frame 2
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 2
stop();
Instance of Symbol 96 MovieClip in Symbol 97 MovieClip Frame 2
onClipEvent (load) {
this.stop();
}
Instance of Symbol 96 MovieClip in Symbol 97 MovieClip Frame 2
onClipEvent (load) {
this.stop();
}
Symbol 98 MovieClip Frame 1
stop();
Instance of Symbol 17 MovieClip in Symbol 98 MovieClip Frame 2
onClipEvent (load) {
var decalX = 0;
if (_parent.decalX != undefined) {
decalX = _parent.decalX;
}
_root.master_weapons.createObus("laserIonBleu", this, 5, 0);
}
Symbol 98 MovieClip Frame 8
play();
Instance of Symbol 17 MovieClip in Symbol 98 MovieClip Frame 8
onClipEvent (load) {
_root.master_weapons.createObus("missile", this, 0, -11);
}
Instance of Symbol 17 MovieClip in Symbol 98 MovieClip Frame 12
onClipEvent (load) {
_root.master_weapons.createObus("missile", this, 0, 9.5);
}
Symbol 104 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 2
play();
Instance of Symbol 17 MovieClip in Symbol 104 MovieClip Frame 2
onClipEvent (load) {
var decalX = 0;
if (_parent.decalX != undefined) {
decalX = _parent.decalX;
}
_root.master_weapons.createObus("" + _parent.typeLaser, this, _parent.decalY, decalX);
}
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 2
play();
Instance of Symbol 17 MovieClip in Symbol 107 MovieClip Frame 2
onClipEvent (load) {
var decalX = 0;
if (_parent.decalX != undefined) {
decalX = _parent.decalX;
}
_root.master_weapons.createObus("nuclearMissile", this, 0, 0);
}
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 2
stop();
Instance of Symbol 72 MovieClip "canon1" in Symbol 134 MovieClip Frame 2
onClipEvent (load) {
this.decalY = 25;
this.typeLaser = "laserLegerRouge";
}
Symbol 134 MovieClip Frame 3
stop();
Instance of Symbol 72 MovieClip "canon1" in Symbol 134 MovieClip Frame 3
onClipEvent (load) {
this.decalY = 28;
this.typeLaser = "laserLegerBleu";
}
Symbol 134 MovieClip Frame 4
stop();
Instance of Symbol 72 MovieClip "canon2" in Symbol 134 MovieClip Frame 4
onClipEvent (load) {
this.decalY = 20;
this.typeLaser = "laserLegerRouge";
this.decalX = -4;
}
Instance of Symbol 72 MovieClip "canon3" in Symbol 134 MovieClip Frame 4
onClipEvent (load) {
this.decalY = 20;
this.typeLaser = "laserLegerRouge";
this.decalX = 11;
}
Instance of Symbol 72 MovieClip "canon4" in Symbol 134 MovieClip Frame 4
onClipEvent (load) {
this.decalY = 27;
this.typeLaser = "laserLegerRouge";
this.decalX = -12;
}
Instance of Symbol 72 MovieClip "canon1" in Symbol 134 MovieClip Frame 4
onClipEvent (load) {
this.decalY = 27;
this.typeLaser = "laserLegerRouge";
this.decalX = 3;
}
Symbol 134 MovieClip Frame 5
stop();
Instance of Symbol 72 MovieClip "canon2" in Symbol 134 MovieClip Frame 5
onClipEvent (load) {
this.decalY = 68;
this.typeLaser = "obusMoyen";
this.decalX = 4;
}
Instance of Symbol 72 MovieClip "canon1" in Symbol 134 MovieClip Frame 5
onClipEvent (load) {
this.decalY = 68;
this.typeLaser = "obusMoyen";
this.decalX = -7;
}
Symbol 134 MovieClip Frame 6
stop();
Instance of Symbol 82 MovieClip "canon1" in Symbol 134 MovieClip Frame 6
onClipEvent (load) {
this.decalY = 20;
this.typeLaser = "laserIonRouge";
this.decalX = 0;
}
Symbol 134 MovieClip Frame 7
stop();
Instance of Symbol 72 MovieClip "canon1" in Symbol 134 MovieClip Frame 7
onClipEvent (load) {
this.decalY = 30;
this.typeLaser = "laserLegerVert";
this.decalX = 2;
}
Instance of Symbol 72 MovieClip "canon2" in Symbol 134 MovieClip Frame 7
onClipEvent (load) {
this.decalY = 30;
this.typeLaser = "laserLegerVert";
this.decalX = -4;
}
Symbol 134 MovieClip Frame 8
stop();
Instance of Symbol 87 MovieClip [TBouclier_ombre] in Symbol 134 MovieClip Frame 8
onClipEvent (load) {
function addBouclier() {
}
}
Symbol 134 MovieClip Frame 9
stop();
Symbol 134 MovieClip Frame 10
stop();
Instance of Symbol 82 MovieClip "canon1" in Symbol 134 MovieClip Frame 10
onClipEvent (load) {
this.decalY = 28;
this.typeLaser = "laserIonBlanc";
this.decalX = 0;
}
Symbol 134 MovieClip Frame 11
stop();
Instance of Symbol 104 MovieClip "canon1" in Symbol 134 MovieClip Frame 11
onClipEvent (load) {
this.decalY = 46;
this.typeLaser = "obusLourd";
this.decalX = 0;
}
Symbol 134 MovieClip Frame 12
stop();
Symbol 134 MovieClip Frame 13
stop();
Instance of Symbol 72 MovieClip "canon1" in Symbol 134 MovieClip Frame 13
onClipEvent (load) {
this.decalY = 50;
this.typeLaser = "laserLegerRouge";
}
Symbol 134 MovieClip Frame 14
stop();
Instance of Symbol 72 MovieClip "canon2" in Symbol 134 MovieClip Frame 14
onClipEvent (load) {
this.decalY = 50;
this.typeLaser = "laserLegerRouge";
}
Symbol 134 MovieClip Frame 15
stop();
Instance of Symbol 72 MovieClip "canon1" in Symbol 134 MovieClip Frame 15
onClipEvent (load) {
this.decalY = 84;
this.typeLaser = "obusMoyen";
this.decalX = 0;
}
Symbol 134 MovieClip Frame 16
stop();
Instance of Symbol 72 MovieClip "canon1" in Symbol 134 MovieClip Frame 16
onClipEvent (load) {
this.decalY = 50;
this.typeLaser = "laserLegerBleu";
this.decalX = -6;
}
Instance of Symbol 72 MovieClip "canon2" in Symbol 134 MovieClip Frame 16
onClipEvent (load) {
this.decalY = 50;
this.typeLaser = "laserLegerBleu";
this.decalX = 3;
}
Symbol 134 MovieClip Frame 17
stop();
Instance of Symbol 82 MovieClip "canon1" in Symbol 134 MovieClip Frame 17
onClipEvent (load) {
this.decalY = 20;
this.typeLaser = "laserIonRouge";
}
Symbol 134 MovieClip Frame 18
stop();
Instance of Symbol 72 MovieClip "canon1" in Symbol 134 MovieClip Frame 18
onClipEvent (load) {
this.decalY = 30;
this.typeLaser = "laserLegerVert";
this.decalX = 2;
}
Instance of Symbol 72 MovieClip "canon2" in Symbol 134 MovieClip Frame 18
onClipEvent (load) {
this.decalY = 30;
this.typeLaser = "laserLegerVert";
this.decalX = -4;
}
Symbol 134 MovieClip Frame 19
stop();
Instance of Symbol 72 MovieClip "canon2" in Symbol 134 MovieClip Frame 19
onClipEvent (load) {
this.decalY = 70;
this.typeLaser = "obusMoyen";
this.decalX = 6;
}
Instance of Symbol 72 MovieClip "canon1" in Symbol 134 MovieClip Frame 19
onClipEvent (load) {
this.decalY = 70;
this.typeLaser = "obusMoyen";
this.decalX = -10;
}
Symbol 134 MovieClip Frame 20
stop();
Instance of Symbol 82 MovieClip "canon1" in Symbol 134 MovieClip Frame 20
onClipEvent (load) {
this.decalY = 34;
this.typeLaser = "laserIonBlanc";
this.decalX = 0;
}
Symbol 134 MovieClip Frame 21
stop();
Instance of Symbol 72 MovieClip "canon2" in Symbol 134 MovieClip Frame 21
onClipEvent (load) {
this.decalY = 50;
this.typeLaser = "laserLegerRouge";
this.decalX = -4;
}
Instance of Symbol 72 MovieClip "canon3" in Symbol 134 MovieClip Frame 21
onClipEvent (load) {
this.decalY = 50;
this.typeLaser = "laserLegerRouge";
this.decalX = 7;
}
Instance of Symbol 72 MovieClip "canon4" in Symbol 134 MovieClip Frame 21
onClipEvent (load) {
this.decalY = 50;
this.typeLaser = "laserLegerRouge";
this.decalX = -10;
}
Instance of Symbol 72 MovieClip "canon1" in Symbol 134 MovieClip Frame 21
onClipEvent (load) {
this.decalY = 50;
this.typeLaser = "laserLegerRouge";
this.decalX = 2;
}
Symbol 134 MovieClip Frame 22
stop();
Instance of Symbol 82 MovieClip "canon1" in Symbol 134 MovieClip Frame 22
onClipEvent (load) {
this.decalY = 75;
this.typeLaser = "laserIonBlanc";
this.decalX = 0;
}
Symbol 134 MovieClip Frame 23
stop();
Instance of Symbol 72 MovieClip "canon2" in Symbol 134 MovieClip Frame 23
onClipEvent (load) {
this.decalY = 60;
this.decalX = 9;
this.typeLaser = "obusMoyen";
}
Instance of Symbol 72 MovieClip "canon1" in Symbol 134 MovieClip Frame 23
onClipEvent (load) {
this.decalY = 60;
this.decalX = -11;
this.typeLaser = "obusMoyen";
}
Symbol 134 MovieClip Frame 24
stop();
Instance of Symbol 82 MovieClip "canon2" in Symbol 134 MovieClip Frame 24
onClipEvent (load) {
this.decalY = 61;
this.typeLaser = "LDLaser";
this.decalX = 7;
}
Instance of Symbol 82 MovieClip "canon1" in Symbol 134 MovieClip Frame 24
onClipEvent (load) {
this.decalY = 61;
this.typeLaser = "LDLaser";
this.decalX = -11;
}
Symbol 135 MovieClip Frame 1
stop();
Instance of Symbol 134 MovieClip "tourelle" in Symbol 135 MovieClip Frame 1
onClipEvent (load) {
function getDistance(obj1, obj2) {
var _local11 = 0;
var _local10 = 0;
if (this.side != "ennemy") {
var _local8 = {x:0, y:0};
var _local9 = {x:0, y:0};
target.localToGlobal(_local9);
target.unitEtat.localToGlobal(_local8);
_local11 = (_local8.x - _local9.x) / 4;
_local10 = (_local8.y - _local9.y) / 4;
}
var _local7 = obj2._x + _local11;
var _local6 = obj2._y + _local10;
if ((obj1.type != "MLRS") && (obj1.type != "pluton")) {
return(Math.sqrt(((obj1._x - _local7) * (obj1._x - _local7)) + ((obj1._y - _local6) * (obj1._y - _local6))));
}
var _local4 = _root.master_units.unitsEnnemiesRadar;
if (this.side == "ally") {
_local4 = _root.master_units.unitsAllieesRadar;
}
var _local3 = 0;
while (_local3 < _local4.length) {
if ((_local4[_local3].type == "radar") || (_local4[_local3].type == "radarMobile")) {
if (_local4[_local3].tourelle.tourelle.distanceOfFire > getDistance(_local4[_local3], target)) {
return(Math.sqrt(((obj1._x - _local7) * (obj1._x - _local7)) + ((obj1._y - _local6) * (obj1._y - _local6))));
}
}
_local3++;
}
return(1000000);
}
function getTarget() {
if (((_parent._parent._x < 0) || (_parent._parent._y > 600)) || (type == "null")) {
target = "null";
clearInterval(idInterval);
blockInterval = true;
return(true);
}
if (this.side == "ennemy") {
targets = _root.master_units.unitsAlliees;
} else {
targets = _root.master_units.unitsEnnemies;
}
var _local6 = _root.master_units.noTarget(this.side);
if (_local6 == -1) {
target = "null";
clearInterval(idInterval);
blockInterval = true;
return(true);
}
target = targets[_local6];
distanceTarget = getDistance(_parent._parent, target);
if ((this.type == "TAAMissile") && (target.chassis != "eagle")) {
target = "null";
distanceTarget = 100000 /* 0x0186A0 */;
}
if ((target.chassis == "eagle") && (this.type != "TAAMissile")) {
target = "null";
distanceTarget = 100000 /* 0x0186A0 */;
}
var _local4 = _local6;
while (_local4 < targets.length) {
if (targets[_local4] == "null") {
} else if (targets[_local4]._x < 0) {
} else if (targets[_local4]._y > 602) {
} else if ((this.type == "TAAMissile") && (targets[_local4].chassis != "eagle")) {
} else if ((targets[_local4].chassis == "eagle") && (this.type != "TAAMissile")) {
} else {
var _local5 = getDistance(_parent._parent, targets[_local4]);
if (_local5 < distanceTarget) {
target = targets[_local4];
distanceTarget = _local5;
}
}
_local4++;
}
if (distanceTarget > distanceOfFire) {
var _local7 = _parent._rotation;
if (this.side == "ennemy") {
_local7 = 0;
}
target = "null";
directionToGet = _local7;
}
permFireSound = true;
clearInterval(idInterval);
blockInterval = true;
}
function askPermissionOfFire() {
if ((numberOfRequest == numberOfRequestForPermission) && (target != "null")) {
if (canonToFire >= nCanons) {
canonToFire = 1;
} else {
canonToFire++;
}
numberOfRequest = 0;
return(true);
}
return(false);
}
function OCEEF() {
if (_root.master_scenario.aPerdu) {
return(false);
}
if (_parent._parent.etat <= 0) {
return(false);
}
if ((_parent._parent.type == "radar") || (_parent._parent.type == "radarMobile")) {
return(false);
}
if (_root.master_scenario.enScenario) {
numberOfRequest = numberOfRequestForPermission;
}
if ((target != "null") && (target._parent != undefined)) {
distanceTarget = getDistance(_parent._parent, target);
if (((distanceOfFire * porteeAcq) < distanceTarget) && (blockInterval)) {
blockInterval = false;
idInterval = setInterval(this, "getTarget", 500);
}
} else if ((((target == "null") || (target._parent == undefined)) && (blockInterval)) && (type != "null")) {
blockInterval = false;
idInterval = setInterval(this, "getTarget", 500);
}
if (numberOfRequest < numberOfRequestForPermission) {
numberOfRequest++;
}
if (target == "null") {
if (this.side == "ally") {
return(false);
}
if (Math.abs(_parent._rotation) <= 3) {
return(false);
}
}
var _local9 = 0;
var _local10 = 0;
if (this.side != "ennemy") {
var _local7 = {x:0, y:0};
var _local8 = {x:0, y:0};
target.localToGlobal(_local8);
target.unitEtat.localToGlobal(_local7);
_local9 = (_local7.x - _local8.x) / 4;
_local10 = (_local7.y - _local8.y) / 4;
}
var _local13 = Math.abs(_parent._parent._x - (target._x + _local9));
var _local5 = Math.asin(_local13 / distanceTarget);
if (_parent._parent._x > (target._x + _local9)) {
_local5 = -_local5;
}
if (_parent._parent._y < (target._y + _local10)) {
_local5 = Math.PI - _local5;
}
directionToGet = _local5 * 57.2957795130823;
var _local6 = _parent._parent._rotation;
if (_local6 < 0) {
_local6 = 360 + _local6;
}
var _local11 = _parent._rotation;
if (this.side == "ennemy") {
_local11 = _local6;
}
if (target == "null") {
directionToGet = _local11;
}
if ((this.side == "ennemy") && (_local6 != 0)) {
directionToGet = (360 - _local6) + directionToGet;
}
if (directionToGet > 180) {
directionToGet = -360 + directionToGet;
}
if ((Math.abs(_parent._rotation - directionToGet) % 360) > KONST_TERM) {
_local5 = _parent._rotation;
var _local4 = directionToGet;
if (_local5 >= 0) {
if ((_local4 >= 0) && (_local4 <= _local5)) {
_parent._rotation = _parent._rotation - rotateSpeed;
} else if ((_local4 >= 0) && (_local4 > _local5)) {
_parent._rotation = _parent._rotation + rotateSpeed;
} else if ((_local4 < 0) && ((Math.abs(_local4) + _local5) <= 180)) {
_parent._rotation = _parent._rotation - rotateSpeed;
} else if ((_local4 < 0) && ((Math.abs(_local4) + _local5) > 180)) {
_parent._rotation = _parent._rotation + rotateSpeed;
}
} else if (_local5 < 0) {
if ((_local4 < 0) && (_local4 <= _local5)) {
_parent._rotation = _parent._rotation - rotateSpeed;
} else if ((_local4 < 0) && (_local4 > _local5)) {
_parent._rotation = _parent._rotation + rotateSpeed;
} else if ((_local4 >= 0) && ((Math.abs(_local4) + _local5) <= 180)) {
if (_local4 <= 90) {
_parent._rotation = _parent._rotation + rotateSpeed;
} else {
_parent._rotation = _parent._rotation - rotateSpeed;
}
} else if ((_local4 >= 0) && ((Math.abs(_local4) + _local5) > 180)) {
_parent._rotation = _parent._rotation - rotateSpeed;
}
}
} else if (target._parent != undefined) {
if (target.isDead) {
getTarget();
} else {
var _local12 = askPermissionOfFire();
if (_local12) {
this["canon" + canonToFire].gotoAndPlay("fire");
}
if (((((this.type == "TCanonIonRouge") || (this.type == "TCanonIonBlanc")) || (this.type == "largeIonRouge")) || (this.type == "heavyIonBlanc")) || (this.type == "milleniumLaser")) {
if (permFireSound) {
permFireSound = false;
if ((this.type == "TCanonIonRouge") || (this.type == "largeIonRouge")) {
_root.master_sounds.redIon.start();
} else {
_root.master_sounds.whiteIon.start();
}
}
}
}
}
}
var XR_puissance = 10;
var XR_distance = 420;
var XR_delai = 35;
typeData = new Array();
typeData.null = new Array(0, 0, 0, 0, 0, 0);
var DTG = _root.master_units.GTDDU;
typeData.TLaserLegerRouge = new Array(4, DTG.TLaserLegerRouge[2], DTG.TLaserLegerRouge[3], 1, DTG.TLaserLegerRouge[0], DTG.TLaserLegerRouge[1]);
typeData.TLaserMoyenBleu = new Array(4, DTG.TLaserMoyenBleu[2], DTG.TLaserMoyenBleu[3], 1, DTG.TLaserMoyenBleu[0], DTG.TLaserMoyenBleu[1]);
typeData.TDoubleLaserLegerRouge = new Array(4, DTG.TDoubleLaserLegerRouge[2], DTG.TDoubleLaserLegerRouge[3], 4, DTG.TDoubleLaserLegerRouge[0], DTG.TDoubleLaserLegerRouge[1]);
typeData.TDoublePlasma = new Array(3, DTG.TDoublePlasma[2], DTG.TDoublePlasma[3], 2, DTG.TDoublePlasma[0], DTG.TDoublePlasma[1]);
typeData.TCanonIonRouge = new Array(3, DTG.TCanonIonRouge[2], DTG.TCanonIonRouge[3], 1, DTG.TCanonIonRouge[0], DTG.TCanonIonRouge[1]);
typeData.TDoubleMoyenVert = new Array(3, DTG.TDoubleMoyenVert[2], DTG.TDoubleMoyenVert[3], 2, DTG.TDoubleMoyenVert[0], DTG.TDoubleMoyenVert[1]);
typeData.TBouclier = new Array(0, DTG.TBouclier[2], DTG.TBouclier[3], 0, DTG.TBouclier[0], DTG.TBouclier[1]);
typeData.TAAMissile = new Array(2, DTG.TAAMissile[2], DTG.TAAMissile[3], 1, DTG.TAAMissile[0], DTG.TAAMissile[1]);
typeData.TCanonIonBlanc = new Array(2, DTG.TCanonIonBlanc[2], DTG.TCanonIonBlanc[3], 1, DTG.TCanonIonBlanc[0], DTG.TCanonIonBlanc[1]);
typeData.TBerthaPlasma = new Array(1, DTG.TBerthaPlasma[2], DTG.TBerthaPlasma[3], 1, DTG.TBerthaPlasma[0], DTG.TBerthaPlasma[1]);
typeData.TNucleo = new Array(4, DTG.TNucleo[2], DTG.TNucleo[3], 1, DTG.TNucleo[0], DTG.TNucleo[1]);
typeData.smallRed = new Array(6, DTG.smallRed[2], DTG.smallRed[3], 1, DTG.smallRed[0], DTG.smallRed[1]);
typeData.smallRedTwin = new Array(5, DTG.smallRedTwin[2], DTG.smallRedTwin[3], 2, DTG.smallRedTwin[0], DTG.smallRedTwin[1]);
typeData.mediumPlasma = new Array(5, DTG.mediumPlasma[2], DTG.mediumPlasma[3], 1, DTG.mediumPlasma[0], DTG.mediumPlasma[1]);
typeData.mediumBleuTwin = new Array(6, DTG.mediumBleuTwin[2], DTG.mediumBleuTwin[3], 2, DTG.mediumBleuTwin[0], DTG.mediumBleuTwin[1]);
typeData.largeIonRouge = new Array(4, DTG.largeIonRouge[2], DTG.largeIonRouge[3], 1, DTG.largeIonRouge[0], DTG.largeIonRouge[1]);
typeData.largeVertTwin = new Array(5, DTG.largeVertTwin[2], DTG.largeVertTwin[3], 2, DTG.largeVertTwin[0], DTG.largeVertTwin[1]);
typeData.heavyPlasmaTwin = new Array(4, DTG.heavyPlasmaTwin[2], DTG.heavyPlasmaTwin[3], 2, DTG.heavyPlasmaTwin[0], DTG.heavyPlasmaTwin[1]);
typeData.heavyIonBlanc = new Array(5, DTG.heavyIonBlanc[2], DTG.heavyIonBlanc[3], 1, DTG.heavyIonBlanc[0], DTG.heavyIonBlanc[1]);
typeData.tridentLaser = new Array(3, DTG.tridentLaser[2], DTG.tridentLaser[3], 4, DTG.tridentLaser[0], DTG.tridentLaser[1]);
typeData.milleniumLaser = new Array(1.5, DTG.milleniumLaser[2], DTG.milleniumLaser[3], 1, DTG.milleniumLaser[0], DTG.milleniumLaser[1]);
typeData.eagleCanon = new Array(5, DTG.eagleCanon[2], DTG.eagleCanon[3], 2, DTG.eagleCanon[0], DTG.eagleCanon[1]);
typeData.LadyDeathTower = new Array(1.5, DTG.LadyDeathTower[2], DTG.LadyDeathTower[3], 2, DTG.LadyDeathTower[0], DTG.LadyDeathTower[1]);
side = _parent._parent.side;
type = _parent._parent.type;
KONST_TERM = 6;
if ((type == "eagleCanon") || (type == "LadyDeathTower")) {
KONST_TERM = 8;
} else if (type == "TBerthaPlasma") {
KONST_TERM = 2;
} else if (type == "milleniumLaser") {
KONST_TERM = 3;
}
target = "null";
distanceTarget = 0;
directionToGet = 0;
rotateSpeed = typeData[type][0] * _root.fpsc;
distanceOfFire = typeData[type][1];
numberOfRequestForPermission = Math.floor(typeData[type][2] / _root.fpsc);
numberOfRequest = numberOfRequestForPermission;
nCanons = typeData[type][3];
canonToFire = 1;
puissance = typeData[type][4];
if (this.side == "ennemy") {
puissance = puissance * _root.gc;
}
impact = typeData[type][5];
permFireSound = true;
targets = new Array();
if (this.side == "ennemy") {
targets = _root.master_units.unitsAlliees;
} else {
targets = _root.master_units.unitsEnnemies;
}
this.gotoAndStop("" + type);
idInterval = 0;
blockInterval = false;
if (side == "ally") {
porteeAcq = 0.6;
} else {
porteeAcq = 0.8;
}
getTarget();
setInterval(this, "OCEEF", 43);
}
Symbol 135 MovieClip Frame 4
this.tourelle.gotoAndStop(_parent.type);
Symbol 135 MovieClip Frame 33
this.tourelle.gotoAndStop(_parent.type);
stop();
Symbol 140 MovieClip [etat] Frame 1
stop();
Symbol 140 MovieClip [etat] Frame 2
stop();
Symbol 146 MovieClip Frame 1
play();
Symbol 146 MovieClip Frame 2
play();
Symbol 146 MovieClip Frame 3
play();
Symbol 146 MovieClip Frame 4
play();
Symbol 146 MovieClip Frame 5
play();
Symbol 146 MovieClip Frame 6
play();
Symbol 146 MovieClip Frame 7
stop();
Symbol 147 MovieClip Frame 1
stop();
Instance of Symbol 146 MovieClip "light" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(7);
}
Instance of Symbol 146 MovieClip "light2" in Symbol 147 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(7);
}
Symbol 148 MovieClip [structure] Frame 1
stop();
Instance of Symbol 69 MovieClip "structureDeco" in Symbol 148 MovieClip [structure] Frame 1
onClipEvent (load) {
function selectUnit() {
_root.master_sounds.selectionUnite.start();
_root.master_pointeur.afficheUnit = this.structureDeco;
}
function ajouteBouclier() {
if (_parent.bouclier == false) {
_parent.RP._alpha = 60;
_parent.bouclier = true;
}
}
function removeBouclier() {
_parent.RP._alpha = 0;
_parent.bouclier = false;
}
function autoRepair() {
var _local3 = structureData[structure][1];
var _local4 = structureData[structure][0];
var _local5 = _parent.etat;
_local3 = _local3 / 2;
_local3 = _local3 / _local4;
_local3 = 2;
_local3 = _local3 * (_local4 - _local5);
_local3 = Math.round(_local3);
priceToPay = _local3;
etatMax = _local4;
if (_root.master_menuItems.euros >= priceToPay) {
_root.master_menuItems.euros = _root.master_menuItems.euros - priceToPay;
_parent.etat = etatMax;
_parent.repairLogo.light.gotoAndPlay(1);
_parent.repairLogo.light2.gotoAndPlay(1);
}
}
structureData = new Array();
_parent.bouclier = false;
comptAutoRepar = 0;
var DTG = _root.master_units.GTDDU;
structureData.TLaserLegerRouge = new Array(DTG.TLaserLegerRouge[4], DTG.TLaserLegerRouge[5]);
structureData.TLaserMoyenBleu = new Array(DTG.TLaserMoyenBleu[4], DTG.TLaserMoyenBleu[5]);
structureData.TDoubleLaserLegerRouge = new Array(DTG.TDoubleLaserLegerRouge[4], DTG.TDoubleLaserLegerRouge[5]);
structureData.TDoublePlasma = new Array(DTG.TDoublePlasma[4], DTG.TDoublePlasma[5]);
structureData.TCanonIonRouge = new Array(DTG.TCanonIonRouge[4], DTG.TCanonIonRouge[5]);
structureData.TDoubleMoyenVert = new Array(DTG.TDoubleMoyenVert[4], DTG.TDoubleMoyenVert[5]);
structureData.TBouclier = new Array(DTG.TBouclier[4], DTG.TBouclier[5]);
structureData.TAAMissile = new Array(DTG.TAAMissile[4], DTG.TAAMissile[5]);
structureData.TCanonIonBlanc = new Array(DTG.TCanonIonBlanc[4], DTG.TCanonIonBlanc[5]);
structureData.TBerthaPlasma = new Array(DTG.TBerthaPlasma[4], DTG.TBerthaPlasma[5]);
structureData.TNucleo = new Array(DTG.TNucleo[4], DTG.TNucleo[5]);
structureData.fort = new Array(2000, 0);
var structure = _parent.structure;
_parent.etat = structureData[structure][0];
var etat = _parent.etat;
_parent.etatJauge.maxEtat = etat;
if (_parent.loadEtat != undefined) {
_parent.etat = _parent.loadEtat;
}
this.gotoAndStop(structure);
_parent.ptRadar._x = 642 + (156 * (_parent._x / 4800));
_parent.ptRadar._y = 160 + (156 * ((_parent._y - 600) / 4800));
_parent.onPress = selectUnit;
_parent.ombre._x = _parent._x + 8;
_parent.ombre._y = _parent._y + 8;
}
onClipEvent (enterFrame) {
if (_root.master_scenario.enScenario == false) {
if (comptAutoRepar == 24) {
if (_parent.etat < _parent.etatJauge.maxEtat) {
_parent.etat = _parent.etat + 1;
comptAutoRepar = 0;
}
} else {
comptAutoRepar++;
}
}
if (_root.master_clavier.afficheEtat) {
if (_parent.etatJauge.jauge._xscale != ((_parent.etat / _parent.etatJauge.maxEtat) * 100)) {
_parent.etatJauge.jauge._xscale = (_parent.etat / _parent.etatJauge.maxEtat) * 100;
}
if (_parent.etatJauge._x != _parent._x) {
_parent.etatJauge._x = _parent._x;
_parent.etatJauge._y = _parent._y;
}
} else if (_parent.etatJauge._x != -500) {
_parent.etatJauge._x = -500;
}
if (_parent.ombre._rotation != _parent.tourelle._rotation) {
_parent.ombre._rotation = _parent.tourelle._rotation;
}
}
on (press) {
_parent.onpressfx = selectUnit();
}
Instance of Symbol 140 MovieClip [etat] "unitEtat" in Symbol 148 MovieClip [structure] Frame 1
onClipEvent (load) {
function destruction() {
_root.master_menuItems.score++;
removeMovieClip(_parent.ptRadar);
removeMovieClip(_parent.etatJauge);
removeMovieClip(_parent.ombre);
_parent.tourelle.play();
_parent.gotoAndPlay("destruction");
}
function destructionBySell() {
removeMovieClip(_parent.ptRadar);
removeMovieClip(_parent.etatJauge);
removeMovieClip(_parent.ombre);
_parent.tourelle.play();
_parent.gotoAndPlay("destruction");
}
}
Instance of Symbol 142 MovieClip "RP" in Symbol 148 MovieClip [structure] Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.ceil(Math.random() * 40));
}
Instance of Symbol 147 MovieClip "repairLogo" in Symbol 148 MovieClip [structure] Frame 1
onClipEvent (load) {
function swithRepair() {
if (autoRepair) {
autoRepair = false;
} else {
autoRepair = true;
}
}
if (_parent.loadAutoRepair != undefined) {
autoRepair = _parent.loadAutoRepair;
} else {
autoRepair = false;
}
}
Symbol 148 MovieClip [structure] Frame 2
_root.carte._x = _root.carte._x + 6;
_root.carte._y = _root.carte._y - 10;
_root.master_units.removeUnits("A", this);
var ie = (Math.floor(Math.random() * 6) + 1);
_root.master_sounds["explosion" + ie].start();
Instance of Symbol 69 MovieClip "structureDeco" in Symbol 148 MovieClip [structure] Frame 2
onClipEvent (load) {
function selectUnit() {
_root.master_sounds.selectionUnite.start();
_root.master_pointeur.afficheUnit = this.structureDeco;
}
function ajouteBouclier() {
_parent.RP._alpha = 60;
_parent.bouclier = true;
}
function removeBouclier() {
_parent.RP._alpha = 0;
_parent.bouclier = false;
}
function autoRepair() {
var _local3 = structureData[structure][1];
var _local4 = structureData[structure][0];
var _local5 = _parent.etat;
_local3 = _local3 / 2;
_local3 = _local3 / _local4;
_local3 = 2;
_local3 = _local3 * (_local4 - _local5);
_local3 = Math.round(_local3);
priceToPay = _local3;
etatMax = _local4;
if (_root.master_menuItems.euros >= priceToPay) {
_root.master_menuItems.euros = _root.master_menuItems.euros - priceToPay;
_parent.etat = etatMax;
_parent.repairLogo.light.gotoAndPlay(1);
_parent.repairLogo.light2.gotoAndPlay(1);
}
}
structureData = new Array();
_parent.bouclier = false;
comptAutoRepar = 0;
structureData.TLaserLegerRouge = new Array(100, _root.master_menuItems.weaponsPrices[0]);
structureData.TLaserMoyenBleu = new Array(50, _root.master_menuItems.weaponsPrices[1]);
structureData.TDoubleLaserLegerRouge = new Array(220, _root.master_menuItems.weaponsPrices[2]);
structureData.TDoublePlasma = new Array(220, _root.master_menuItems.weaponsPrices[3]);
structureData.TCanonIonRouge = new Array(250, _root.master_menuItems.weaponsPrices[4]);
structureData.TDoubleMoyenVert = new Array(250, _root.master_menuItems.weaponsPrices[5]);
structureData.TBouclier = new Array(400, _root.master_menuItems.weaponsPrices[6]);
structureData.TAAMissile = new Array(120, _root.master_menuItems.weaponsPrices[7]);
structureData.TCanonIonBlanc = new Array(500, _root.master_menuItems.weaponsPrices[8]);
structureData.TBerthaPlasma = new Array(1000, _root.master_menuItems.weaponsPrices[9]);
structureData.TNucleo = new Array(1200, _root.master_menuItems.weaponsPrices[10]);
structureData.fort = new Array(2000, 0);
var structure = _parent.structure;
_parent.etat = structureData[structure][0];
var etat = _parent.etat;
_parent.etatJauge.maxEtat = etat;
if (_parent.loadEtat != undefined) {
_parent.etat = _parent.loadEtat;
}
this.gotoAndStop(structure);
_parent.ptRadar._x = 642 + (156 * (_parent._x / 4800));
_parent.ptRadar._y = 160 + (156 * ((_parent._y - 600) / 4800));
_parent.onPress = selectUnit;
_parent.ombre._x = _parent._x + 8;
_parent.ombre._y = _parent._y + 8;
}
onClipEvent (enterFrame) {
if (comptAutoRepar == 12) {
if (_parent.etat < _parent.etatJauge.maxEtat) {
_parent.etat = _parent.etat + 1;
comptAutoRepar = 0;
}
} else {
comptAutoRepar++;
}
if (_root.master_clavier.afficheEtat) {
if (_parent.etatJauge.jauge._xscale != ((_parent.etat / _parent.etatJauge.maxEtat) * 100)) {
_parent.etatJauge.jauge._xscale = (_parent.etat / _parent.etatJauge.maxEtat) * 100;
}
if (_parent.etatJauge._x != _parent._x) {
_parent.etatJauge._x = _parent._x;
_parent.etatJauge._y = _parent._y;
}
} else if (_parent.etatJauge._x != -500) {
_parent.etatJauge._x = -500;
}
if (_parent.ombre._rotation != _parent.tourelle._rotation) {
_parent.ombre._rotation = _parent.tourelle._rotation;
}
}
on (press) {
if (this.type != "fort") {
_parent.onpressfx = selectUnit();
}
}
Instance of Symbol 17 MovieClip in Symbol 148 MovieClip [structure] Frame 2
onClipEvent (load) {
_root.master_weapons.createExplosion(_parent._x, _parent._y, 4);
}
Symbol 148 MovieClip [structure] Frame 4
_root.carte._x = _root.carte._x + 7;
_root.carte._y = _root.carte._y + 7;
Instance of Symbol 17 MovieClip in Symbol 148 MovieClip [structure] Frame 4
onClipEvent (load) {
_root.master_weapons.createExplosion(_parent._x, _parent._y);
}
Symbol 148 MovieClip [structure] Frame 6
_root.carte._x = _root.carte._x - 5;
_root.carte._y = _root.carte._y + 9;
Instance of Symbol 17 MovieClip in Symbol 148 MovieClip [structure] Frame 7
onClipEvent (load) {
_root.master_weapons.createExplosion(_parent._x, _parent._y);
}
Symbol 148 MovieClip [structure] Frame 8
_root.carte._x = _root.carte._x - 8;
_root.carte._y = _root.carte._y - 6;
Symbol 148 MovieClip [structure] Frame 10
_root.carte._x = _root.carte._x + 4;
_root.carte._y = _root.carte._y + 7;
Symbol 148 MovieClip [structure] Frame 12
_root.carte._x = _root.carte._x - 4;
_root.carte._y = _root.carte._y - 7;
Symbol 148 MovieClip [structure] Frame 39
removeMovieClip(this);
stop();
Symbol 151 MovieClip Frame 12
stop();
Symbol 152 MovieClip [explosion] Frame 1
stop();
Symbol 152 MovieClip [explosion] Frame 2
stop();
Symbol 152 MovieClip [explosion] Frame 3
stop();
Symbol 152 MovieClip [explosion] Frame 4
stop();
Instance of Symbol 96 MovieClip in Symbol 154 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 2
play();
if (_root.master_pointeur.isClosedForSound(this)) {
_root.master_sounds.explosion1.start();
}
Symbol 155 MovieClip Frame 15
removeMovieClip(_parent);
Symbol 156 MovieClip Frame 14
stop();
Instance of Symbol 156 MovieClip in Symbol 157 MovieClip Frame 1
onClipEvent (load) {
this._x = this._x + _parent.decalX;
}
Symbol 157 MovieClip Frame 14
stop();
Instance of Symbol 96 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 2
play();
if (_root.master_pointeur.isClosedForSound(this)) {
_root.master_sounds.explosion2.start();
}
Symbol 160 MovieClip Frame 28
removeMovieClip(_parent);
Symbol 161 MovieClip Frame 1
stop();
Instance of Symbol 97 MovieClip in Symbol 161 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
Symbol 161 MovieClip Frame 2
play();
_root.master_sounds.explosionCrotale.start();
Instance of Symbol 146 MovieClip in Symbol 161 MovieClip Frame 2
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
Instance of Symbol 146 MovieClip in Symbol 161 MovieClip Frame 2
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
Instance of Symbol 146 MovieClip in Symbol 161 MovieClip Frame 2
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
Symbol 161 MovieClip Frame 22
removeMovieClip(_parent);
Instance of Symbol 156 MovieClip in Symbol 162 MovieClip Frame 1
onClipEvent (load) {
this._x = this._x + _parent.decalX;
}
Symbol 162 MovieClip Frame 15
stop();
Symbol 163 MovieClip Frame 21
removeMovieClip(_parent);
stop();
Symbol 164 MovieClip Frame 1
stop();
Instance of Symbol 97 MovieClip in Symbol 164 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
Symbol 164 MovieClip Frame 2
play();
_root.master_sounds.explosionMlrs.start();
Instance of Symbol 163 MovieClip in Symbol 164 MovieClip Frame 2
onClipEvent (load) {
this._rotation = -_parent._parent._rotation;
}
Instance of Symbol 4 MovieClip in Symbol 164 MovieClip Frame 2
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
Instance of Symbol 4 MovieClip in Symbol 164 MovieClip Frame 2
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
Instance of Symbol 4 MovieClip in Symbol 164 MovieClip Frame 2
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
Symbol 164 MovieClip Frame 22
removeMovieClip(_parent);
Symbol 168 MovieClip Frame 1
play();
Symbol 168 MovieClip Frame 49
play();
Symbol 168 MovieClip Frame 50
stop();
Symbol 169 MovieClip Frame 43
stop();
Symbol 170 MovieClip Frame 1
stop();
Instance of Symbol 97 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 96 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 170 MovieClip Frame 2
play();
_root.master_sounds.nucleoBoum.start();
Symbol 170 MovieClip Frame 52
removeMovieClip(_parent);
Symbol 194 MovieClip Frame 1
play();
Symbol 194 MovieClip Frame 24
play();
Symbol 194 MovieClip Frame 25
stop();
Symbol 196 MovieClip Frame 1
stop();
Instance of Symbol 97 MovieClip in Symbol 196 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
Symbol 196 MovieClip Frame 2
play();
if (this.type == "missileUnderSu37") {
_root.master_sounds.explosionLarge.start();
}
Instance of Symbol 195 MovieClip in Symbol 196 MovieClip Frame 2
onClipEvent (load) {
this._x = -300 + (Math.random() * 600);
this._y = -300 + (Math.random() * 600);
}
Instance of Symbol 195 MovieClip in Symbol 196 MovieClip Frame 2
onClipEvent (load) {
this._x = -300 + (Math.random() * 600);
this._y = -300 + (Math.random() * 600);
}
Instance of Symbol 195 MovieClip in Symbol 196 MovieClip Frame 2
onClipEvent (load) {
this._x = -300 + (Math.random() * 600);
this._y = -300 + (Math.random() * 600);
}
Instance of Symbol 195 MovieClip in Symbol 196 MovieClip Frame 2
onClipEvent (load) {
this._x = -300 + (Math.random() * 600);
this._y = -300 + (Math.random() * 600);
}
Symbol 196 MovieClip Frame 27
removeMovieClip(_parent);
Instance of Symbol 96 MovieClip in Symbol 199 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 96 MovieClip in Symbol 199 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 200 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 2
play();
if (_root.master_pointeur.isClosedForSound(this)) {
_root.master_sounds.hit2.start();
if (Math.random() > 0.7) {
var ie = (Math.floor(Math.random() * 2) + 1);
_root.master_sounds["metal" + ie].start();
}
}
Symbol 200 MovieClip Frame 25
removeMovieClip(_parent);
Symbol 201 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 2
play();
if (_root.master_pointeur.isClosedForSound(this)) {
_root.master_sounds.hit3.start();
if (Math.random() > 0.7) {
var ie = (Math.floor(Math.random() * 2) + 1);
_root.master_sounds["metal" + ie].start();
}
}
Symbol 201 MovieClip Frame 25
removeMovieClip(_parent);
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 2
play();
if (_root.master_pointeur.isClosedForSound(this)) {
_root.master_sounds.hit1.start();
if (Math.random() > 0.7) {
var ie = (Math.floor(Math.random() * 2) + 1);
_root.master_sounds["metal" + ie].start();
}
}
Symbol 202 MovieClip Frame 25
removeMovieClip(_parent);
Symbol 209 MovieClip Frame 7
stop();
stop();
Symbol 210 MovieClip [obus] Frame 1
vitesse = 60 * _root.fpsc;
acc = 50 * _root.fpsc;
if (distance == 1000000) {
distance = 1000;
}
if (type == "obusMoyen") {
if (_root.master_pointeur.isClosedForSound(this)) {
_root.master_sounds.plasmaLeger.start();
}
}
stop();
Instance of Symbol 4 MovieClip in Symbol 210 MovieClip [obus] Frame 1
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - ((_parent.decalY - 26) - 20);
}
onClipEvent (enterFrame) {
this._y = this._y - 10;
}
Instance of Symbol 4 MovieClip in Symbol 210 MovieClip [obus] Frame 1
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - ((_parent.decalY - 26) - 25);
}
onClipEvent (enterFrame) {
this._y = this._y - 10;
}
Instance of Symbol 155 MovieClip "obus" in Symbol 210 MovieClip [obus] Frame 1
onClipEvent (load) {
type = "obusMoyen";
if (_parent.type != type) {
_parent.gotoAndPlay(_parent.type);
} else {
this._y = this._y - _parent.decalY;
this._x = this._x + _parent.decalX;
}
distance = Math.round(_parent.distance) - _parent.decalY;
distanceParcourue = 0;
blockAll = false;
puissance = _parent.puissance;
portee = _parent.portee;
vitesse = _parent.vitesse;
acc = _parent.acc;
curVitesse = acc;
}
onClipEvent (enterFrame) {
if (blockAll) {
return(false);
}
if (distanceParcourue < distance) {
var vitesseToDo = (distance - distanceParcourue);
if (curVitesse < (distance - distanceParcourue)) {
vitesseToDo = curVitesse;
}
this._y = this._y - vitesseToDo;
distanceParcourue = distanceParcourue + vitesseToDo;
if (curVitesse < vitesse) {
curVitesse = curVitesse + acc;
} else {
curVitesse = vitesse;
}
} else {
this.gotoAndPlay(2);
var h = this._y;
alpha = _parent._rotation;
alpha = alpha * (Math.PI/180);
var YPos = (_parent._y + (Math.cos(alpha) * h));
var XPos = (_parent._x - (Math.sin(alpha) * h));
_root.master_units.fireOnEnnemi(XPos, YPos, portee, puissance, _parent.side);
blockAll = true;
}
}
Instance of Symbol 157 MovieClip in Symbol 210 MovieClip [obus] Frame 1
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - (_parent.decalY - 26);
}
Instance of Symbol 4 MovieClip in Symbol 210 MovieClip [obus] Frame 1
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - ((_parent.decalY - 26) - 25);
}
onClipEvent (enterFrame) {
this._y = this._y - 10;
}
Symbol 210 MovieClip [obus] Frame 3
vitesse = 65 * _root.fpsc;
acc = 65 * _root.fpsc;
if (distance == 1000000) {
distance = 1000;
}
if (_root.master_pointeur.isClosedForSound(this)) {
_root.master_sounds.bertha.start();
}
stop();
Instance of Symbol 146 MovieClip in Symbol 210 MovieClip [obus] Frame 3
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - ((_parent.decalY - 26) - 8);
}
onClipEvent (enterFrame) {
this._y = this._y - 15;
}
Instance of Symbol 146 MovieClip in Symbol 210 MovieClip [obus] Frame 3
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - ((_parent.decalY - 26) - 8);
}
onClipEvent (enterFrame) {
this._y = this._y - 15;
}
Instance of Symbol 160 MovieClip "obus" in Symbol 210 MovieClip [obus] Frame 3
onClipEvent (load) {
type = "obusLourd";
if (_parent.type != type) {
_parent.gotoAndPlay(_parent.type);
} else {
this._y = this._y - _parent.decalY;
this._x = this._x + _parent.decalX;
}
distance = Math.round(_parent.distance) - _parent.decalY;
distanceParcourue = 0;
blockAll = false;
puissance = _parent.puissance;
portee = _parent.portee;
vitesse = _parent.vitesse;
acc = _parent.acc;
curVitesse = acc;
}
onClipEvent (enterFrame) {
if (blockAll) {
return(false);
}
if (distanceParcourue < distance) {
var vitesseToDo = (distance - distanceParcourue);
if (curVitesse < (distance - distanceParcourue)) {
vitesseToDo = curVitesse;
}
this._y = this._y - vitesseToDo;
distanceParcourue = distanceParcourue + vitesseToDo;
if (curVitesse < vitesse) {
curVitesse = curVitesse + acc;
} else {
curVitesse = vitesse;
}
} else {
this.gotoAndPlay(2);
var h = this._y;
alpha = _parent._rotation;
alpha = alpha * (Math.PI/180);
var YPos = (_parent._y + (Math.cos(alpha) * h));
var XPos = (_parent._x - (Math.sin(alpha) * h));
_root.master_units.fireOnEnnemi(XPos, YPos, portee, puissance, _parent.side);
blockAll = true;
}
}
Instance of Symbol 146 MovieClip in Symbol 210 MovieClip [obus] Frame 3
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - ((_parent.decalY - 26) - 8);
}
onClipEvent (enterFrame) {
this._y = this._y - 15;
}
Symbol 210 MovieClip [obus] Frame 8
vitesse = 60 * _root.fpsc;
acc = 2 * _root.fpsc;
if (distance == 1000000) {
distance = 1000;
}
_root.master_sounds.AAMissile.start();
stop();
Instance of Symbol 4 MovieClip in Symbol 210 MovieClip [obus] Frame 8
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
Instance of Symbol 4 MovieClip in Symbol 210 MovieClip [obus] Frame 8
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
Instance of Symbol 161 MovieClip in Symbol 210 MovieClip [obus] Frame 8
onClipEvent (load) {
type = "missile";
if (_parent.type != type) {
_parent.gotoAndPlay(_parent.type);
} else {
this._y = this._y - _parent.decalY;
this._x = this._x + _parent.decalX;
}
distance = Math.round(_parent.distance) - _parent.decalY;
distanceParcourue = 0;
blockAll = false;
puissance = _parent.puissance;
portee = _parent.portee;
vitesse = _parent.vitesse;
acc = _parent.acc;
curVitesse = acc;
}
onClipEvent (enterFrame) {
if (blockAll) {
return(false);
}
if (distanceParcourue < distance) {
var vitesseToDo = (distance - distanceParcourue);
if (curVitesse < (distance - distanceParcourue)) {
vitesseToDo = curVitesse;
}
if (curVitesse < 3) {
vitesseToDo = 0;
}
if (curVitesse > 3) {
acc = acc + 0.2;
}
this._y = this._y - vitesseToDo;
distanceParcourue = distanceParcourue + vitesseToDo;
if (curVitesse < vitesse) {
curVitesse = curVitesse + (acc * 8);
} else {
curVitesse = vitesse;
}
} else {
this.gotoAndPlay(2);
var h = this._y;
alpha = _parent._rotation;
alpha = alpha * (Math.PI/180);
var YPos = (_parent._y + (Math.cos(alpha) * h));
var XPos = (_parent._x - (Math.sin(alpha) * h));
_root.master_units.fireOnEnnemi(XPos, YPos, portee / 4, puissance, _parent.side);
_root.master_units.fireOnEnnemi(XPos, YPos, portee / 2, puissance / 2, _parent.side);
_root.master_units.fireOnEnnemi(XPos, YPos, portee, puissance / 5, _parent.side);
blockAll = true;
}
}
Instance of Symbol 162 MovieClip in Symbol 210 MovieClip [obus] Frame 8
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - (_parent.decalY - 10);
}
Instance of Symbol 4 MovieClip in Symbol 210 MovieClip [obus] Frame 8
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
onClipEvent (enterFrame) {
this._y = this._y - 5;
}
Instance of Symbol 4 MovieClip in Symbol 210 MovieClip [obus] Frame 8
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
onClipEvent (enterFrame) {
this._y = this._y - 5;
}
Instance of Symbol 162 MovieClip in Symbol 210 MovieClip [obus] Frame 8
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - (_parent.decalY - 15);
}
Symbol 210 MovieClip [obus] Frame 9
if (distance == 1000000) {
distance = 1000;
}
vitesse = 50 * _root.fpsc;
acc = 1 * _root.fpsc;
_root.master_sounds.mlrs.start();
stop();
Instance of Symbol 162 MovieClip in Symbol 210 MovieClip [obus] Frame 9
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - (_parent.decalY - 24);
}
Instance of Symbol 164 MovieClip in Symbol 210 MovieClip [obus] Frame 9
onClipEvent (load) {
type = "missile2";
if (_parent.type != type) {
_parent.gotoAndPlay(_parent.type);
} else {
this._y = this._y - _parent.decalY;
this._x = this._x + _parent.decalX;
}
distance = Math.round(_parent.distance) - _parent.decalY;
distanceParcourue = 0;
blockAll = false;
puissance = _parent.puissance;
portee = _parent.portee;
vitesse = _parent.vitesse;
acc = _parent.acc;
curVitesse = acc;
var curLevel = _parent.getDepth();
var count = 0;
_parent.swapDepths((1000 + curLevel) - 25000);
}
onClipEvent (enterFrame) {
if (blockAll) {
return(false);
}
if (distanceParcourue < distance) {
var vitesseToDo = (distance - distanceParcourue);
if (curVitesse < (distance - distanceParcourue)) {
vitesseToDo = curVitesse;
}
if (curVitesse < 15) {
vitesseToDo = 0;
}
if (count == 10) {
_parent.swapDepths(curLevel);
}
count++;
this._y = this._y - vitesseToDo;
distanceParcourue = distanceParcourue + vitesseToDo;
if (curVitesse < vitesse) {
curVitesse = curVitesse + (acc * 8);
} else {
curVitesse = vitesse;
}
} else {
if (_parent.getDepth() != curLevel) {
_parent.swapDepths(curLevel);
}
this.gotoAndPlay(2);
var h = this._y;
alpha = _parent._rotation;
alpha = alpha * (Math.PI/180);
var YPos = (_parent._y + (Math.cos(alpha) * h));
var XPos = (_parent._x - (Math.sin(alpha) * h));
_root.master_units.fireOnEnnemi(XPos, YPos, portee / 4, puissance, _parent.side);
_root.master_units.fireOnEnnemi(XPos, YPos, portee / 2, puissance / 2, _parent.side);
_root.master_units.fireOnEnnemi(XPos, YPos, portee, puissance / 5, _parent.side);
blockAll = true;
}
}
Instance of Symbol 146 MovieClip in Symbol 210 MovieClip [obus] Frame 9
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
onClipEvent (enterFrame) {
this._y = this._y - 10;
}
Instance of Symbol 146 MovieClip in Symbol 210 MovieClip [obus] Frame 9
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
onClipEvent (enterFrame) {
this._y = this._y - 10;
}
Symbol 210 MovieClip [obus] Frame 10
vitesse = 32 * _root.fpsc;
acc = 0.05 * _root.fpsc;
if (distance == 1000000) {
distance = 1000;
}
_root.master_sounds.nucleoLaunch.start();
stop();
Instance of Symbol 170 MovieClip in Symbol 210 MovieClip [obus] Frame 10
onClipEvent (load) {
type = "nuclearMissile";
if (_parent.type != type) {
_parent.gotoAndPlay(_parent.type);
} else {
this._y = this._y - _parent.decalY;
this._x = this._x + _parent.decalX;
}
distance = Math.round(_parent.distance) - _parent.decalY;
distanceParcourue = 0;
blockAll = false;
puissance = _parent.puissance;
portee = _parent.portee;
vitesse = _parent.vitesse;
acc = _parent.acc;
curVitesse = acc;
}
onClipEvent (enterFrame) {
if (blockAll) {
return(false);
}
if (distanceParcourue < distance) {
var vitesseToDo = (distance - distanceParcourue);
if (curVitesse < (distance - distanceParcourue)) {
vitesseToDo = curVitesse;
}
if (curVitesse < 3) {
vitesseToDo = 0;
}
if (curVitesse > 3) {
acc = acc + 0.2;
}
this._y = this._y - vitesseToDo;
distanceParcourue = distanceParcourue + vitesseToDo;
if (curVitesse < vitesse) {
curVitesse = curVitesse + (acc * 8);
} else {
curVitesse = vitesse;
}
} else {
this.gotoAndPlay(2);
var h = this._y;
alpha = _parent._rotation;
alpha = alpha * (Math.PI/180);
var YPos = (_parent._y + (Math.cos(alpha) * h));
var XPos = (_parent._x - (Math.sin(alpha) * h));
_root.master_units.fireOnEnnemi(XPos, YPos, portee / 2, puissance, _parent.side);
_root.master_units.fireOnEnnemi(XPos, YPos, portee / 1.4, puissance / 2, _parent.side);
_root.master_units.fireOnEnnemi(XPos, YPos, portee, puissance / 5, _parent.side);
blockAll = true;
}
}
Instance of Symbol 194 MovieClip in Symbol 210 MovieClip [obus] Frame 10
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - (_parent.decalY - 10);
}
Instance of Symbol 194 MovieClip in Symbol 210 MovieClip [obus] Frame 10
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
onClipEvent (enterFrame) {
this._y = this._y + 10;
}
Instance of Symbol 194 MovieClip in Symbol 210 MovieClip [obus] Frame 10
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
onClipEvent (enterFrame) {
this._y = this._y + 10;
}
Instance of Symbol 194 MovieClip in Symbol 210 MovieClip [obus] Frame 10
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - (_parent.decalY - 10);
}
Symbol 210 MovieClip [obus] Frame 11
vitesse = 40 * _root.fpsc;
acc = 1 * _root.fpsc;
if (distance == 1000000) {
distance = 1000;
}
_root.master_sounds.crotale.start();
stop();
Instance of Symbol 4 MovieClip in Symbol 210 MovieClip [obus] Frame 11
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
Instance of Symbol 4 MovieClip in Symbol 210 MovieClip [obus] Frame 11
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
Instance of Symbol 162 MovieClip in Symbol 210 MovieClip [obus] Frame 11
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
Instance of Symbol 161 MovieClip in Symbol 210 MovieClip [obus] Frame 11
onClipEvent (load) {
type = "missileUnder";
if (_parent.type != type) {
_parent.gotoAndPlay(_parent.type);
} else {
this._y = this._y - _parent.decalY;
this._x = this._x + _parent.decalX;
}
distance = Math.round(_parent.distance) - _parent.decalY;
distanceParcourue = 0;
blockAll = false;
puissance = _parent.puissance;
portee = _parent.portee;
vitesse = _parent.vitesse;
acc = _parent.acc;
curVitesse = acc;
var curLevel = _parent.getDepth();
_parent.swapDepths((1000 + curLevel) - 25000);
}
onClipEvent (enterFrame) {
if (blockAll) {
return(false);
}
if (distanceParcourue < distance) {
var vitesseToDo = (distance - distanceParcourue);
if (curVitesse < (distance - distanceParcourue)) {
vitesseToDo = curVitesse;
}
if (curVitesse < 5) {
vitesseToDo = 0;
}
if (curVitesse > 10) {
acc = acc + 0.1;
}
if (curVitesse >= vitesse) {
_parent.swapDepths(curLevel);
}
this._y = this._y - vitesseToDo;
distanceParcourue = distanceParcourue + vitesseToDo;
if (curVitesse < vitesse) {
curVitesse = curVitesse + (acc * 8);
} else {
curVitesse = vitesse;
}
} else {
if (_parent.getDepth() != curLevel) {
_parent.swapDepths(curLevel);
}
this.gotoAndPlay(2);
var h = this._y;
alpha = _parent._rotation;
alpha = alpha * (Math.PI/180);
var YPos = (_parent._y + (Math.cos(alpha) * h));
var XPos = (_parent._x - (Math.sin(alpha) * h));
_root.master_units.fireOnEnnemi(XPos, YPos, portee / 4, puissance, _parent.side);
_root.master_units.fireOnEnnemi(XPos, YPos, portee / 2, puissance / 2, _parent.side);
_root.master_units.fireOnEnnemi(XPos, YPos, portee, puissance / 5, _parent.side);
blockAll = true;
}
}
Instance of Symbol 4 MovieClip in Symbol 210 MovieClip [obus] Frame 11
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
onClipEvent (enterFrame) {
this._y = this._y - 5;
}
Instance of Symbol 4 MovieClip in Symbol 210 MovieClip [obus] Frame 11
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
onClipEvent (enterFrame) {
this._y = this._y - 5;
}
Symbol 210 MovieClip [obus] Frame 12
vitesse = 40 * _root.fpsc;
acc = 40 * _root.fpsc;
if (distance == 1000000) {
distance = 1000;
}
_root.master_sounds.AAMissile.start();
stop();
Instance of Symbol 196 MovieClip in Symbol 210 MovieClip [obus] Frame 12
onClipEvent (load) {
type = "missileUnderSu37";
if (_parent.type != type) {
_parent.gotoAndPlay(_parent.type);
} else {
this._y = this._y - _parent.decalY;
this._x = this._x + _parent.decalX;
}
distance = Math.round(_parent.distance) - _parent.decalY;
distanceParcourue = 0;
blockAll = false;
puissance = _parent.puissance;
portee = _parent.portee;
vitesse = _parent.vitesse;
acc = _parent.acc;
curVitesse = acc;
var curLevel = _parent.getDepth();
_parent.swapDepths((1000 + curLevel) - 25000);
}
onClipEvent (enterFrame) {
if (blockAll) {
return(false);
}
if (distanceParcourue < distance) {
var vitesseToDo = (distance - distanceParcourue);
if (curVitesse < (distance - distanceParcourue)) {
vitesseToDo = curVitesse;
}
if (curVitesse < 5) {
vitesseToDo = 0;
}
if (curVitesse > 10) {
acc = acc + 0.1;
}
if (curVitesse >= vitesse) {
_parent.swapDepths(curLevel);
}
this._y = this._y - vitesseToDo;
distanceParcourue = distanceParcourue + vitesseToDo;
if (curVitesse < vitesse) {
curVitesse = curVitesse + (acc * 8);
} else {
curVitesse = vitesse;
}
} else {
if (_parent.getDepth() != curLevel) {
_parent.swapDepths(curLevel);
}
this.gotoAndPlay(2);
var h = this._y;
alpha = _parent._rotation;
alpha = alpha * (Math.PI/180);
var YPos = (_parent._y + (Math.cos(alpha) * h));
var XPos = (_parent._x - (Math.sin(alpha) * h));
_root.master_units.fireOnEnnemi(XPos, YPos, portee / 4, puissance, _parent.side);
_root.master_units.fireOnEnnemi(XPos, YPos, portee / 2, puissance / 2, _parent.side);
_root.master_units.fireOnEnnemi(XPos, YPos, portee, puissance / 5, _parent.side);
blockAll = true;
}
}
Symbol 210 MovieClip [obus] Frame 13
vitesse = 40 * _root.fpsc;
acc = 40 * _root.fpsc;
if (distance == 1000000) {
distance = 1000;
}
_root.master_sounds.AAMissile.start();
stop();
Instance of Symbol 196 MovieClip in Symbol 210 MovieClip [obus] Frame 13
onClipEvent (load) {
type = "missileUnderSu37NOSOUND";
if (_parent.type != type) {
_parent.gotoAndPlay(_parent.type);
} else {
this._y = this._y - _parent.decalY;
this._x = this._x + _parent.decalX;
}
distance = Math.round(_parent.distance) - _parent.decalY;
distanceParcourue = 0;
blockAll = false;
puissance = _parent.puissance;
portee = _parent.portee;
vitesse = _parent.vitesse;
acc = _parent.acc;
curVitesse = acc;
var curLevel = _parent.getDepth();
_parent.swapDepths((1000 + curLevel) - 25000);
}
onClipEvent (enterFrame) {
if (blockAll) {
return(false);
}
if (distanceParcourue < distance) {
var vitesseToDo = (distance - distanceParcourue);
if (curVitesse < (distance - distanceParcourue)) {
vitesseToDo = curVitesse;
}
if (curVitesse < 5) {
vitesseToDo = 0;
}
if (curVitesse > 10) {
acc = acc + 0.1;
}
if (curVitesse >= vitesse) {
_parent.swapDepths(curLevel);
}
this._y = this._y - vitesseToDo;
distanceParcourue = distanceParcourue + vitesseToDo;
if (curVitesse < vitesse) {
curVitesse = curVitesse + (acc * 8);
} else {
curVitesse = vitesse;
}
} else {
if (_parent.getDepth() != curLevel) {
_parent.swapDepths(curLevel);
}
this.gotoAndPlay(2);
var h = this._y;
alpha = _parent._rotation;
alpha = alpha * (Math.PI/180);
var YPos = (_parent._y + (Math.cos(alpha) * h));
var XPos = (_parent._x - (Math.sin(alpha) * h));
_root.master_units.fireOnEnnemi(XPos, YPos, portee / 4, puissance, _parent.side);
_root.master_units.fireOnEnnemi(XPos, YPos, portee / 2, puissance / 2, _parent.side);
_root.master_units.fireOnEnnemi(XPos, YPos, portee, puissance / 5, _parent.side);
blockAll = true;
}
}
Symbol 210 MovieClip [obus] Frame 15
if (distance == 1000000) {
distance = 1000;
}
vitesse = 60 * _root.fpsc;
acc = 40 * _root.fpsc;
if (_root.master_pointeur.isClosedForSound(this)) {
_root.master_sounds.redLaser.start();
}
stop();
Instance of Symbol 200 MovieClip "obus" in Symbol 210 MovieClip [obus] Frame 15
onClipEvent (load) {
type = "laserLegerRouge";
if (_parent.type != type) {
_parent.gotoAndPlay(_parent.type);
} else {
this._y = this._y - (_parent.decalY + 75);
this._x = this._x + _parent.decalX;
}
distance = Math.round(_parent.distance) - (_parent.decalY + 75);
distanceParcourue = 0;
blockAll = false;
puissance = _parent.puissance;
portee = _parent.portee;
vitesse = _parent.vitesse;
acc = _parent.acc;
curVitesse = acc;
}
onClipEvent (enterFrame) {
if (blockAll) {
return(false);
}
if (distanceParcourue < distance) {
var vitesseToDo = (distance - distanceParcourue);
if (curVitesse < (distance - distanceParcourue)) {
vitesseToDo = curVitesse;
}
this._y = this._y - vitesseToDo;
distanceParcourue = distanceParcourue + vitesseToDo;
if (curVitesse < vitesse) {
curVitesse = curVitesse + acc;
} else {
curVitesse = vitesse;
}
} else {
this.gotoAndPlay(2);
var h = this._y;
alpha = _parent._rotation;
alpha = alpha * (Math.PI/180);
var YPos = (_parent._y + (Math.cos(alpha) * h));
var XPos = (_parent._x - (Math.sin(alpha) * h));
_root.master_units.fireOnEnnemi(XPos, YPos, portee, puissance, _parent.side);
blockAll = true;
}
}
Instance of Symbol 4 MovieClip in Symbol 210 MovieClip [obus] Frame 15
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
onClipEvent (enterFrame) {
this._y = this._y + 5;
}
Symbol 210 MovieClip [obus] Frame 16
if (distance == 1000000) {
distance = 1000;
}
vitesse = 70 * _root.fpsc;
acc = 70 * _root.fpsc;
if (_root.master_pointeur.isClosedForSound(this)) {
_root.master_sounds.blueLaser.start();
}
stop();
Instance of Symbol 201 MovieClip "obus" in Symbol 210 MovieClip [obus] Frame 16
onClipEvent (load) {
type = "laserLegerBleu";
if (_parent.type != type) {
_parent.gotoAndPlay(_parent.type);
} else {
this._y = this._y - (_parent.decalY + 75);
this._x = this._x + _parent.decalX;
}
distance = Math.round(_parent.distance) - (_parent.decalY + 75);
distanceParcourue = 0;
blockAll = false;
puissance = _parent.puissance;
portee = _parent.portee;
vitesse = _parent.vitesse;
acc = _parent.acc;
curVitesse = acc;
}
onClipEvent (enterFrame) {
if (blockAll) {
return(false);
}
if (distanceParcourue < distance) {
var vitesseToDo = (distance - distanceParcourue);
if (curVitesse < (distance - distanceParcourue)) {
vitesseToDo = curVitesse;
}
this._y = this._y - vitesseToDo;
distanceParcourue = distanceParcourue + vitesseToDo;
if (curVitesse < vitesse) {
curVitesse = curVitesse + acc;
} else {
curVitesse = vitesse;
}
} else {
this.gotoAndPlay(2);
var h = this._y;
alpha = _parent._rotation;
alpha = alpha * (Math.PI/180);
var YPos = (_parent._y + (Math.cos(alpha) * h));
var XPos = (_parent._x - (Math.sin(alpha) * h));
_root.master_units.fireOnEnnemi(XPos, YPos, portee, puissance, _parent.side);
blockAll = true;
}
}
Symbol 210 MovieClip [obus] Frame 17
if (distance == 1000000) {
distance = 1000;
}
vitesse = 70 * _root.fpsc;
acc = 70 * _root.fpsc;
if (_root.master_pointeur.isClosedForSound(this)) {
_root.master_sounds.greenLaser.start();
}
stop();
Instance of Symbol 202 MovieClip "obus" in Symbol 210 MovieClip [obus] Frame 17
onClipEvent (load) {
type = "laserLegerVert";
if (_parent.type != type) {
_parent.gotoAndPlay(_parent.type);
} else {
this._y = this._y - (_parent.decalY + 75);
this._x = this._x + _parent.decalX;
}
distance = Math.round(_parent.distance) - (_parent.decalY + 75);
distanceParcourue = 0;
blockAll = false;
puissance = _parent.puissance;
portee = _parent.portee;
vitesse = _parent.vitesse;
acc = _parent.acc;
curVitesse = acc;
}
onClipEvent (enterFrame) {
if (blockAll) {
return(false);
}
if (distanceParcourue < distance) {
var vitesseToDo = (distance - distanceParcourue);
if (curVitesse < (distance - distanceParcourue)) {
vitesseToDo = curVitesse;
}
this._y = this._y - vitesseToDo;
distanceParcourue = distanceParcourue + vitesseToDo;
if (curVitesse < vitesse) {
curVitesse = curVitesse + acc;
} else {
curVitesse = vitesse;
}
} else {
this.gotoAndPlay(2);
var h = this._y;
alpha = _parent._rotation;
alpha = alpha * (Math.PI/180);
var YPos = (_parent._y + (Math.cos(alpha) * h));
var XPos = (_parent._x - (Math.sin(alpha) * h));
_root.master_units.fireOnEnnemi(XPos, YPos, portee, puissance, _parent.side);
blockAll = true;
}
}
Symbol 210 MovieClip [obus] Frame 18
if (distance == 1000000) {
distance = 1000;
}
vitesse = 50 * _root.fpsc;
acc = 20 * _root.fpsc;
stop();
Instance of Symbol 8 MovieClip "laser" in Symbol 210 MovieClip [obus] Frame 18
onClipEvent (load) {
type = "laserIonRouge";
if (_parent.type != type) {
_parent.gotoAndPlay(_parent.type);
} else {
this._y = this._y - _parent.decalY;
this._x = this._x + _parent.decalX;
}
distance = Math.round(_parent.distance) - _parent.decalY;
puissance = _parent.puissance;
portee = _parent.portee;
var XPos = _parent.target._x;
var YPos = _parent.target._y;
this._height = distance;
if (XPos != undefined) {
_root.master_units.fireOnEnnemi(XPos, YPos, portee, puissance, _parent.side);
}
_parent.bout._y = (-distance) - _parent.decalY;
this.gotoAndPlay(2);
}
Instance of Symbol 146 MovieClip in Symbol 210 MovieClip [obus] Frame 18
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
Instance of Symbol 209 MovieClip "bout" in Symbol 210 MovieClip [obus] Frame 18
onClipEvent (load) {
this._x = this._x + _parent.decalX;
}
Symbol 210 MovieClip [obus] Frame 19
if (distance == 1000000) {
distance = 1000;
}
vitesse = 50 * _root.fpsc;
acc = 20 * _root.fpsc;
stop();
Instance of Symbol 8 MovieClip "laser" in Symbol 210 MovieClip [obus] Frame 19
onClipEvent (load) {
type = "laserIonBleu";
if (_parent.type != type) {
_parent.gotoAndPlay(_parent.type);
} else {
this._y = this._y - _parent.decalY;
this._x = this._x + _parent.decalX;
}
distance = Math.round(_parent.distance) - _parent.decalY;
puissance = _parent.puissance;
portee = _parent.portee;
var XPos = _parent.target._x;
var YPos = _parent.target._y;
this._height = distance;
_parent.bout._y = (-distance) - _parent.decalY;
this.gotoAndPlay(2);
}
Instance of Symbol 4 MovieClip in Symbol 210 MovieClip [obus] Frame 19
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
Symbol 210 MovieClip [obus] Frame 20
if (distance == 1000000) {
distance = 1000;
}
vitesse = 50 * _root.fpsc;
acc = 20 * _root.fpsc;
stop();
Instance of Symbol 8 MovieClip "laser" in Symbol 210 MovieClip [obus] Frame 20
onClipEvent (load) {
type = "laserIonBlanc";
if (_parent.type != type) {
_parent.gotoAndPlay(_parent.type);
} else {
this._y = this._y - _parent.decalY;
this._x = this._x + _parent.decalX;
}
distance = Math.round(_parent.distance) - _parent.decalY;
puissance = _parent.puissance;
portee = _parent.portee;
var XPos = _parent.target._x;
var YPos = _parent.target._y;
this._height = distance;
if (XPos != undefined) {
_root.master_units.fireOnEnnemi(XPos, YPos, portee, puissance, _parent.side);
}
_parent.bout._y = (-distance) - _parent.decalY;
this.gotoAndPlay(2);
}
Instance of Symbol 146 MovieClip in Symbol 210 MovieClip [obus] Frame 20
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - _parent.decalY;
}
Symbol 210 MovieClip [obus] Frame 21
if (distance == 1000000) {
distance = 1000;
}
vitesse = 50 * _root.fpsc;
acc = 20 * _root.fpsc;
if (_root.master_pointeur.isClosedForSound(this)) {
_root.master_sounds.plasmaLeger.start();
}
stop();
Instance of Symbol 8 MovieClip "laser" in Symbol 210 MovieClip [obus] Frame 21
onClipEvent (load) {
type = "LDLaser";
if (_parent.type != type) {
_parent.gotoAndPlay(_parent.type);
} else {
this._y = this._y - _parent.decalY;
this._x = this._x + _parent.decalX;
}
distance = Math.round(_parent.distance) - _parent.decalY;
puissance = _parent.puissance;
portee = _parent.portee;
var XPos = _parent.target._x;
var YPos = _parent.target._y;
this._height = distance;
if (XPos != undefined) {
_root.master_units.fireOnEnnemi(XPos, YPos, portee, puissance, _parent.side);
}
_parent.bout._y = (-distance) - _parent.decalY;
this.gotoAndPlay(2);
}
Instance of Symbol 146 MovieClip in Symbol 210 MovieClip [obus] Frame 21
onClipEvent (load) {
this._x = this._x + _parent.decalX;
this._y = this._y - (_parent.decalY - 4);
}
Instance of Symbol 224 MovieClip in Symbol 226 MovieClip [LadyDeath_ombre] Frame 1
onClipEvent (load) {
this.gotoAndPlay(5);
}
Instance of Symbol 224 MovieClip in Symbol 226 MovieClip [LadyDeath_ombre] Frame 1
onClipEvent (load) {
this.gotoAndPlay(15);
}
Instance of Symbol 224 MovieClip in Symbol 226 MovieClip [LadyDeath_ombre] Frame 1
onClipEvent (load) {
this.gotoAndPlay(25);
}
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 2
stop();
Symbol 227 MovieClip Frame 3
stop();
Symbol 227 MovieClip Frame 4
stop();
Symbol 227 MovieClip Frame 5
stop();
Symbol 227 MovieClip Frame 6
stop();
Symbol 227 MovieClip Frame 7
stop();
Symbol 227 MovieClip Frame 8
stop();
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 2
stop();
Symbol 228 MovieClip Frame 3
stop();
Symbol 228 MovieClip Frame 4
stop();
Symbol 228 MovieClip Frame 5
stop();
Symbol 228 MovieClip Frame 6
stop();
Symbol 228 MovieClip Frame 7
stop();
Symbol 228 MovieClip Frame 8
stop();
Symbol 228 MovieClip Frame 9
stop();
Symbol 228 MovieClip Frame 10
stop();
Symbol 228 MovieClip Frame 11
stop();
Symbol 228 MovieClip Frame 12
stop();
Symbol 229 MovieClip [unit] Frame 1
stop();
Instance of Symbol 227 MovieClip "chassisC" in Symbol 229 MovieClip [unit] Frame 1
onClipEvent (load) {
function notSMove(c) {
if (((c == "Yamato") || (c == "navire")) || (c == "tigre")) {
return(false);
}
return(true);
}
function roule() {
if (_root.master_units.getSound()) {
var _local5 = "Light";
if (((chassis == "amx10") || (chassis == "abrams")) || (chassis == "t90")) {
_local5 = "Heavy";
} else if (chassis == "tigre") {
_local5 = "Tigre";
} else if ((((chassis == "LadyDeath") || (chassis == "trident")) || (chassis == "millenium")) || (chassis == "eagle")) {
_local5 = "cancel";
}
var _local11 = Math.floor(Math.random() * 5) + 1;
if (_local5 != "cancel") {
_root.master_sounds["move" + _local11].start();
}
}
accelere();
var _local7 = Math.abs(_parent._x - checkpoints[curIPoint][0]);
var _local6 = (_local7 * _local7) + (Math.abs(_parent._y - checkpoints[curIPoint][1]) * Math.abs(_parent._y - checkpoints[curIPoint][1]));
_local6 = Math.sqrt(_local6);
var _local4 = _local7 / _local6;
_local4 = Math.asin(_local4);
if (_parent._x > checkpoints[curIPoint][0]) {
_local4 = -_local4;
}
if (_parent._y < checkpoints[curIPoint][1]) {
_local4 = Math.PI - _local4;
}
directionToGet = 57.2957795130823 * _local4;
if (directionToGet > 180) {
directionToGet = -360 + directionToGet;
}
if (Math.abs(_parent._rotation - directionToGet) > 3) {
vitesseToDo = freinVirage;
var _local10 = _parent._rotation;
var _local3 = directionToGet;
if (_local10 >= 0) {
if ((_local3 >= 0) && (_local3 <= _local10)) {
_parent._rotation = _parent._rotation - rotateSpeed;
} else if ((_local3 >= 0) && (_local3 > _local10)) {
_parent._rotation = _parent._rotation + rotateSpeed;
} else if ((_local3 < 0) && ((Math.abs(_local3) + _local10) <= 180)) {
_parent._rotation = _parent._rotation - rotateSpeed;
} else if ((_local3 < 0) && ((Math.abs(_local3) + _local10) > 180)) {
_parent._rotation = _parent._rotation + rotateSpeed;
}
} else if (_local10 < 0) {
if ((_local3 < 0) && (_local3 <= _local10)) {
_parent._rotation = _parent._rotation - rotateSpeed;
} else if ((_local3 < 0) && (_local3 > _local10)) {
_parent._rotation = _parent._rotation + rotateSpeed;
} else if ((_local3 >= 0) && ((Math.abs(_local3) + _local10) <= 180)) {
_parent._rotation = _parent._rotation + rotateSpeed;
} else if ((_local3 >= 0) && ((Math.abs(_local3) + _local10) > 180)) {
_parent._rotation = _parent._rotation - rotateSpeed;
}
}
} else {
_parent._rotation = directionToGet;
vitesseToDo = vitesseToDoInitPrime;
}
var _local10 = (Math.PI/180) * _parent._rotation;
var _local13 = Math.sin(_local10) * vitesse;
var _local12 = Math.cos(_local10) * vitesse;
_parent._x = _parent._x + _local13;
_parent._y = _parent._y - _local12;
_parent.ptRadar._x = 642 + (156 * (_parent._x / 4800));
_parent.ptRadar._y = 160 + (156 * ((_parent._y - 600) / 4800));
if (_parent.ptRadar._x < 642) {
_parent.ptRadar._x = -500;
} else if (_parent.ptRadar._x > 795) {
_parent.ptRadar._x = -500;
}
if (_parent.ptRadar._y > 160) {
_parent.ptRadar._y = -500;
} else if (_parent.ptRadar._y < 8) {
_parent.ptRadar._y = -500;
}
if (_parent.unitDevant != "null") {
var _local9 = Math.abs(_parent.unitDevant._y - _parent._y);
var _local8 = Math.abs(_parent.unitDevant._x - _parent._x);
var _local14 = Math.sqrt((_local9 * _local9) + (_local8 * _local8));
if (_local14 < (_parent._height * CONST_ELOIGNEMENT)) {
vitesseToDo = 0;
if (vitesse > 0.1) {
vitesse = vitesse - (0.2 * _root.fpsc);
}
}
}
changeCheckpoint();
}
function changeCheckpoint() {
var _local3 = 4;
if ((Math.abs(checkpoints[curIPoint][0] - _parent._x) < (_local3 * 10)) && (Math.abs(checkpoints[curIPoint][1] - _parent._y) < (_local3 * 10))) {
vitesseToDo = vitesseFrein;
}
if ((Math.abs(checkpoints[curIPoint][0] - _parent._x) < _local3) && (Math.abs(checkpoints[curIPoint][1] - _parent._y) < _local3)) {
curIPoint++;
vitesseToDo = vitesseToDoInitPrime;
if (curIPoint >= checkpoints.length) {
this.end = 1;
}
}
}
function accelere() {
if ((Math.random() * 100) > 99) {
vitesseToDoInitPrime = vitesseToDoInit + (Math.random() * (vitesseToDoInit / 5));
}
var _local3 = 0.166666666666667 * _root.fpsc;
if (this.end == 1) {
vitesseToDo = 0;
}
if (vitesse < vitesseToDo) {
vitesse = vitesse + _local3;
}
if (vitesse > vitesseToDo) {
vitesse = vitesse - _local3;
}
}
function selectUnit() {
_root.master_sounds.selectionUnite.start();
_root.master_pointeur.afficheUnit = this;
if (_root.master_clavier.zoom) {
_root.master_clavier.realposmap[0] = -(_root.carte._xmouse - 400);
_root.master_clavier.realposmap[1] = -(_root.carte._ymouse - 300);
}
}
chassisData = new Array();
chassisData.smallTank = new Array(4, 2.4, 2.5, _root.master_units.GTDDU.smallTank[0], _root.master_units.GTDDU.smallTank[1]);
chassisData.mediumTank = new Array(4, 2.4, 2.5, _root.master_units.GTDDU.mediumTank[0], _root.master_units.GTDDU.mediumTank[1]);
chassisData.battleTank = new Array(4, 2.4, 2, _root.master_units.GTDDU.battleTank[0], _root.master_units.GTDDU.battleTank[1]);
chassisData.heavyTank = new Array(4, 2.4, 1.5, _root.master_units.GTDDU.heavyTank[0], _root.master_units.GTDDU.heavyTank[1]);
chassisData.trident = new Array(1.8, 1, 0.8, _root.master_units.GTDDU.trident[0], _root.master_units.GTDDU.trident[1]);
chassisData.millenium = new Array(1.2, 0.8, 0.4, _root.master_units.GTDDU.millenium[0], _root.master_units.GTDDU.millenium[1]);
chassisData.eagle = new Array(3.5, 2.4, 5, _root.master_units.GTDDU.eagle[0], _root.master_units.GTDDU.eagle[1]);
chassisData.LadyDeath = new Array(1.4, 1.2, 1, _root.master_units.GTDDU.LadyDeath[0], _root.master_units.GTDDU.LadyDeath[1]);
var chassis = _parent.chassis;
var checkpoints = _parent.checkpoints;
var curIPoint = 0;
var vitesseToDoInit = (chassisData[chassis][0] * _root.fpsc);
var vitesseToDoInitPrime = vitesseToDoInit;
var vitesseToDo = vitesseToDoInit;
var vitesse = 0;
var end = 0;
var directionToGet = 0;
var freinVirage = chassisData[chassis][1];
var rotateSpeed = chassisData[chassis][2];
var vitesseFrein = freinVirage;
_parent.prixRevient = chassisData[chassis][4];
_parent.etat = chassisData[chassis][3];
var etat = _parent.etat;
_parent.etatJauge.maxEtat = etat;
comptAutoRepar = 0;
permReparationType = true;
if (((chassis == "LadyDeath") || (chassis == "trident")) || (chassis == "millenium")) {
permReparationType = false;
}
var CONST_ELOIGNEMENT = 2;
if ((chassis == "Yamato") || (chassis == "navire")) {
CONST_ELOIGNEMENT = 4;
}
var chi = new Array();
chi.Light = 4;
chi.Heavy = 3;
chi.Tigre = 1;
chi.LD = 5;
this.gotoAndStop(chassis);
}
onClipEvent (enterFrame) {
if (_root.master_scenario.enScenario == false) {
if ((comptAutoRepar == 8) && (permReparationType)) {
if (_parent.etat < _parent.etatJauge.maxEtat) {
_parent.etat = _parent.etat + 1;
comptAutoRepar = 0;
}
} else {
comptAutoRepar++;
}
}
if (_parent.etat <= 0) {
vitesseToDo = 0;
}
if (_root.master_clavier.afficheEtat) {
_parent.etatJauge.jauge._xscale = (_parent.etat / _parent.etatJauge.maxEtat) * 100;
_parent.etatJauge._x = _parent._x;
_parent.etatJauge._y = _parent._y;
} else {
_parent.etatJauge._x = -500;
}
if ((this.end == 1) && (vitesse < 0)) {
return(false);
}
roule();
_parent.ombre._rotation = _parent._rotation;
_parent.ombre._x = _parent._x + 4;
_parent.ombre._y = _parent._y + 4;
}
on (press) {
selectUnit();
}
Instance of Symbol 228 MovieClip in Symbol 229 MovieClip [unit] Frame 1
onClipEvent (load) {
this.gotoAndStop(_parent.chassis);
}
Instance of Symbol 140 MovieClip [etat] "unitEtat" in Symbol 229 MovieClip [unit] Frame 1
onClipEvent (load) {
function destruction() {
removeMovieClip(_parent.ptRadar);
removeMovieClip(_parent.etatJauge);
removeMovieClip(_parent.ombre);
_parent.tourelle.play();
_parent.gotoAndPlay("destruction");
}
}
Symbol 229 MovieClip [unit] Frame 2
_root.carte._x = _root.carte._x + 6;
_root.carte._y = _root.carte._y - 10;
_root.master_menuItems.euros = _root.master_menuItems.euros + prixRevient;
_root.master_units.removeUnits("E", this);
var ie = (Math.floor(Math.random() * 6) + 1);
_root.master_sounds["explosion" + ie].start();
Instance of Symbol 227 MovieClip "chassis" in Symbol 229 MovieClip [unit] Frame 2
onClipEvent (load) {
function roule() {
accelere();
var _local5 = Math.abs(_parent._x - checkpoints[curIPoint][0]);
var _local4 = (_local5 * _local5) + (Math.abs(_parent._y - checkpoints[curIPoint][1]) * Math.abs(_parent._y - checkpoints[curIPoint][1]));
_local4 = Math.sqrt(_local4);
var _local3 = _local5 / _local4;
_local3 = Math.asin(_local3);
if (_parent._x > checkpoints[curIPoint][0]) {
_local3 = -_local3;
}
if (_parent._y < checkpoints[curIPoint][1]) {
_local3 = Math.PI - _local3;
}
directionToGet = 57.2957795130823 * _local3;
if (directionToGet > 180) {
directionToGet = -360 + directionToGet;
}
if (Math.abs(_parent._rotation - directionToGet) > 3) {
vitesseToDo = freinVirage;
var _local8 = _parent._rotation;
var _local2 = directionToGet;
if (_local8 >= 0) {
if ((_local2 >= 0) && (_local2 <= _local8)) {
_parent._rotation = _parent._rotation - rotateSpeed;
} else if ((_local2 >= 0) && (_local2 > _local8)) {
_parent._rotation = _parent._rotation + rotateSpeed;
} else if ((_local2 < 0) && ((Math.abs(_local2) + _local8) <= 180)) {
_parent._rotation = _parent._rotation - rotateSpeed;
} else if ((_local2 < 0) && ((Math.abs(_local2) + _local8) > 180)) {
_parent._rotation = _parent._rotation + rotateSpeed;
}
} else if (_local8 < 0) {
if ((_local2 < 0) && (_local2 <= _local8)) {
_parent._rotation = _parent._rotation - rotateSpeed;
} else if ((_local2 < 0) && (_local2 > _local8)) {
_parent._rotation = _parent._rotation + rotateSpeed;
} else if ((_local2 >= 0) && ((Math.abs(_local2) + _local8) <= 180)) {
_parent._rotation = _parent._rotation + rotateSpeed;
} else if ((_local2 >= 0) && ((Math.abs(_local2) + _local8) > 180)) {
_parent._rotation = _parent._rotation - rotateSpeed;
}
}
} else {
_parent._rotation = directionToGet;
vitesseToDo = vitesseToDoInitPrime;
}
var _local8 = (Math.PI/180) * _parent._rotation;
var _local10 = Math.sin(_local8) * vitesse;
var _local9 = Math.cos(_local8) * vitesse;
_parent._x = _parent._x + _local10;
_parent._y = _parent._y - _local9;
_parent.ptRadar._x = 644 + (152 * (_parent._x / 1920));
_parent.ptRadar._y = 118 + (114 * (_parent._y / 1440));
if (_parent.ptRadar._x < 644) {
_parent.ptRadar._x = -500;
} else if (_parent.ptRadar._x > 797) {
_parent.ptRadar._x = -500;
}
if (_parent.ptRadar._y > 118) {
_parent.ptRadar._y = -500;
} else if (_parent.ptRadar._y < 4) {
_parent.ptRadar._y = -500;
}
if (_parent.unitDevant != "null") {
var _local7 = Math.abs(_parent.unitDevant._y - _parent._y);
var _local6 = Math.abs(_parent.unitDevant._x - _parent._x);
var _local11 = Math.sqrt((_local7 * _local7) + (_local6 * _local6));
if (_local11 < (_parent._height * 2)) {
vitesseToDo = 0;
if (vitesse > 1) {
vitesse = vitesse - 0.0625;
}
}
}
if (_parent.unitDerriere != "null") {
var _local7 = Math.abs(_parent.unitDerriere._y - _parent._y);
var _local6 = Math.abs(_parent.unitDerriere._x - _parent._x);
var _local11 = Math.sqrt((_local7 * _local7) + (_local6 * _local6));
if (_local11 > (_parent._height * 4)) {
vitesseToDo = 0;
}
}
changeCheckpoint();
}
function changeCheckpoint() {
var _local2 = 4;
if ((Math.abs(checkpoints[curIPoint][0] - _parent._x) < (_local2 * 10)) && (Math.abs(checkpoints[curIPoint][1] - _parent._y) < (_local2 * 10))) {
vitesseToDo = vitesseFrein;
}
if ((Math.abs(checkpoints[curIPoint][0] - _parent._x) < _local2) && (Math.abs(checkpoints[curIPoint][1] - _parent._y) < _local2)) {
curIPoint++;
vitesseToDo = vitesseToDoInitPrime;
}
}
function accelere() {
if ((Math.random() * 100) > 99) {
vitesseToDoInitPrime = vitesseToDoInit + (Math.random() * (vitesseToDoInit / 5));
}
var _local1 = 0.0625;
if (vitesse < vitesseToDo) {
vitesse = vitesse + _local1;
}
if (vitesse > vitesseToDo) {
vitesse = vitesse - _local1;
}
}
chassisData = new Array();
chassisData.chassis01 = new Array(2.5, 0.75, 1.5, 100, 500);
chassisData.chassis02 = new Array(1.5, 0.5, 1, 160, 1200);
var chassis = _parent.chassis;
var checkpoints = _parent.checkpoints;
var curIPoint = 0;
var vitesseToDoInit = chassisData[chassis][0];
var vitesseToDoInitPrime = vitesseToDoInit;
var vitesseToDo = vitesseToDoInit;
var vitesse = 0;
var directionToGet = 0;
var freinVirage = chassisData[chassis][1];
var rotateSpeed = chassisData[chassis][2];
var vitesseFrein = freinVirage;
_parent.prixRevient = chassisData[chassis][4];
_parent.etat = chassisData[chassis][3];
var etat = _parent.etat;
_parent.etatJauge.maxEtat = etat;
this.gotoAndStop(chassis);
}
onClipEvent (enterFrame) {
if (_parent.etat <= 0) {
vitesseToDo = 0;
}
roule();
if (_root.master_clavier.afficheEtat) {
_parent.etatJauge.jauge._xscale = (_parent.etat / _parent.etatJauge.maxEtat) * 100;
_parent.etatJauge._x = _parent._x;
_parent.etatJauge._y = _parent._y;
} else {
_parent.etatJauge._x = -500;
}
}
Instance of Symbol 17 MovieClip "markFlame" in Symbol 229 MovieClip [unit] Frame 2
onClipEvent (load) {
var ptE = {x:0, y:0};
var ptU = {x:0, y:0};
_parent.localToGlobal(ptU);
_parent.markFlame.localToGlobal(ptE);
_root.master_weapons.createExplosion(_parent._x + (ptE.x - ptU.x), _parent._y + (ptE.y - ptU.y), 4);
}
Symbol 229 MovieClip [unit] Frame 4
_root.carte._x = _root.carte._x + 7;
_root.carte._y = _root.carte._y + 7;
Instance of Symbol 17 MovieClip in Symbol 229 MovieClip [unit] Frame 4
onClipEvent (load) {
var ptE = {x:0, y:0};
var ptU = {x:0, y:0};
_parent.localToGlobal(ptU);
_parent.markFlame.localToGlobal(ptE);
_root.master_weapons.createExplosion(_parent._x + (ptE.x - ptU.x), _parent._y + (ptE.y - ptU.y));
}
Symbol 229 MovieClip [unit] Frame 6
_root.carte._x = _root.carte._x - 5;
_root.carte._y = _root.carte._y + 9;
Instance of Symbol 17 MovieClip in Symbol 229 MovieClip [unit] Frame 7
onClipEvent (load) {
var ptE = {x:0, y:0};
var ptU = {x:0, y:0};
_parent.localToGlobal(ptU);
_parent.markFlame.localToGlobal(ptE);
_root.master_weapons.createExplosion(_parent._x + (ptE.x - ptU.x), _parent._y + (ptE.y - ptU.y));
}
Symbol 229 MovieClip [unit] Frame 8
_root.carte._x = _root.carte._x - 8;
_root.carte._y = _root.carte._y - 6;
Symbol 229 MovieClip [unit] Frame 10
_root.carte._x = _root.carte._x + 4;
_root.carte._y = _root.carte._y + 7;
Symbol 229 MovieClip [unit] Frame 12
_root.carte._x = _root.carte._x - 4;
_root.carte._y = _root.carte._y - 7;
Symbol 229 MovieClip [unit] Frame 39
if (unitDevant != "null") {
unitDevant.unitDerriere = unitDerriere;
}
if (unitDerriere != "null") {
unitDerriere.unitDevant = unitDevant;
}
removeMovieClip(this);
stop();
Symbol 267 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 1
stop();
Instance of Symbol 268 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_parent.type);
}
Symbol 271 MovieClip Frame 50
if ((Math.random() * 10) > 4) {
this.gotoAndPlay("blant");
} else {
gotoAndPlay (1);
}
Instance of Symbol 271 MovieClip in Symbol 272 MovieClip Frame 1
onClipEvent (load) {
this.type = "f4";
this.gotoAndPlay(Math.round(Math.random() * 50) + 1);
}
Instance of Symbol 271 MovieClip in Symbol 272 MovieClip Frame 1
onClipEvent (load) {
this.type = "f2";
this.gotoAndPlay(Math.round(Math.random() * 50) + 1);
}
Instance of Symbol 271 MovieClip in Symbol 272 MovieClip Frame 1
onClipEvent (load) {
this.type = "f3";
this.gotoAndPlay(Math.round(Math.random() * 50) + 1);
}
Symbol 272 MovieClip Frame 15
stop();
Instance of Symbol 272 MovieClip "core" in Symbol 273 MovieClip Frame 1
onClipEvent (load) {
distance = (Math.random() * 110) + 700;
distPar = 0;
speed = 0.5 + (Math.random() * 2);
this._rotation = Math.random() * 360;
kalpha = 0;
_parent._alpha = 0;
var i = _parent.inode;
block = false;
}
onClipEvent (enterFrame) {
speed = speed + (speed / 100);
if (block) {
return(false);
}
if (distPar < distance) {
if (kalpha > 0) {
kalpha = kalpha - 10;
}
_parent._y = _parent._y + speed;
distPar = distPar + speed;
_parent._alpha = (((distance - distPar) / distance) * 100) - kalpha;
} else if (!block) {
removeMovieClip(_parent);
block = true;
}
}
Symbol 275 MovieClip Frame 10
stop();
Symbol 276 MovieClip [ppfle] Frame 1
function gotoNext() {
clearInterval(idt);
this.nextFrame();
}
var idt = 0;
idt = setInterval(this, "gotoNext", 5000);
stop();
Symbol 276 MovieClip [ppfle] Frame 2
function gotoNext() {
clearInterval(idt);
this.nextFrame();
}
var idt = 0;
idt = setInterval(this, "gotoNext", 5000);
this.shadow.gotoAndPlay(1);
stop();
Instance of Symbol 275 MovieClip "shadow" in Symbol 276 MovieClip [ppfle] Frame 2
onClipEvent (load) {
this.gotoAndPlay(1);
}
Symbol 276 MovieClip [ppfle] Frame 3
this.shadow.gotoAndPlay(1);
stop();
Symbol 280 MovieClip [etincelle] Frame 1
play();
Symbol 280 MovieClip [etincelle] Frame 7
removeMovieClip(this);
stop();
Instance of Symbol 274 MovieClip in Symbol 285 MovieClip [spcmc] Frame 1
on (press) {
var pwd = "2DPN7E";
}
Symbol 353 MovieClip Frame 34
stop();
Symbol 354 MovieClip [flame] Frame 48
removeMovieClip(this);
stop();
Symbol 355 MovieClip Frame 1
play();
Symbol 355 MovieClip Frame 2
play();
Symbol 355 MovieClip Frame 3
play();
Symbol 355 MovieClip Frame 4
play();
Symbol 355 MovieClip Frame 5
play();
Symbol 355 MovieClip Frame 6
play();
Symbol 355 MovieClip Frame 7
stop();
Symbol 356 MovieClip [soufleCr] Frame 21
removeMovieClip(this);
Instance of Symbol 104 MovieClip "canon1" in Symbol 361 MovieClip [TBerthaPlasma_ombre] Frame 1
onClipEvent (load) {
this.decalY = 46;
this.typeLaser = "obusLourd";
this.decalX = 0;
}
Instance of Symbol 82 MovieClip "canon1" in Symbol 364 MovieClip [TCanonIonBlanc_ombre] Frame 1
onClipEvent (load) {
this.decalY = 30;
this.typeLaser = "laserIonBlanc";
this.decalX = 0;
}
Instance of Symbol 72 MovieClip "canon1" in Symbol 367 MovieClip [TCanonIonRouge_ombre] Frame 1
onClipEvent (load) {
this.decalY = 30;
this.typeLaser = "laserLegerVert";
this.decalX = 0;
}
Instance of Symbol 72 MovieClip "canon2" in Symbol 368 MovieClip [TDoubleLaserLegerRouge_ombre] Frame 1
onClipEvent (load) {
this.decalY = 65;
this.typeLaser = "laserLegerRouge";
this.decalX = -4;
}
Instance of Symbol 72 MovieClip "canon3" in Symbol 368 MovieClip [TDoubleLaserLegerRouge_ombre] Frame 1
onClipEvent (load) {
this.decalY = 58;
this.typeLaser = "laserLegerRouge";
this.decalX = 11;
}
Instance of Symbol 72 MovieClip "canon4" in Symbol 368 MovieClip [TDoubleLaserLegerRouge_ombre] Frame 1
onClipEvent (load) {
this.decalY = 58;
this.typeLaser = "laserLegerRouge";
this.decalX = -12;
}
Instance of Symbol 72 MovieClip "canon1" in Symbol 368 MovieClip [TDoubleLaserLegerRouge_ombre] Frame 1
onClipEvent (load) {
this.decalY = 65;
this.typeLaser = "laserLegerRouge";
this.decalX = 3;
}
Instance of Symbol 72 MovieClip "canon1" in Symbol 370 MovieClip [TDoubleMoyenVert_ombre] Frame 1
onClipEvent (load) {
this.decalY = 50;
this.typeLaser = "laserLegerVert";
this.decalX = 2;
}
Instance of Symbol 72 MovieClip "canon2" in Symbol 370 MovieClip [TDoubleMoyenVert_ombre] Frame 1
onClipEvent (load) {
this.decalY = 50;
this.typeLaser = "laserLegerVert";
this.decalX = -4;
}
Instance of Symbol 72 MovieClip "canon2" in Symbol 371 MovieClip [TDoublePlasma_ombre] Frame 1
onClipEvent (load) {
this.decalY = 68;
this.typeLaser = "obusMoyen";
this.decalX = 4;
}
Instance of Symbol 72 MovieClip "canon1" in Symbol 371 MovieClip [TDoublePlasma_ombre] Frame 1
onClipEvent (load) {
this.decalY = 68;
this.typeLaser = "obusMoyen";
this.decalX = -7;
}
Instance of Symbol 72 MovieClip "canon1" in Symbol 374 MovieClip [TLaserLegerRouge_ombre] Frame 1
onClipEvent (load) {
this.decalY = 65;
this.typeLaser = "laserLegerRouge";
}
Instance of Symbol 72 MovieClip "canon1" in Symbol 375 MovieClip [TLaserMoyenBleu_ombre] Frame 1
onClipEvent (load) {
this.decalY = 50;
this.typeLaser = "laserLegerVert";
}
Symbol 392 MovieClip Frame 1
stop();
Symbol 392 MovieClip Frame 2
stop();
Symbol 395 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 2
stop();
Symbol 398 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 2
stop();
Symbol 403 MovieClip Frame 59
gotoAndPlay (10);
Symbol 406 MovieClip Frame 1
stop();
Instance of Symbol 406 MovieClip in Symbol 415 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.master_sounds.selectionUnite.start();
_root.play.pressbutton.start();
_root.loadData(0);
}
onClipEvent (load) {
this.txt.text = "load game 1";
}
Instance of Symbol 406 MovieClip in Symbol 415 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.master_sounds.selectionUnite.start();
_root.play.pressbutton.start();
_root.loadData(1);
}
onClipEvent (load) {
this.txt.text = "load game 2";
}
Instance of Symbol 406 MovieClip in Symbol 415 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.master_sounds.selectionUnite.start();
_root.play.pressbutton.start();
_root.loadData(2);
}
onClipEvent (load) {
this.txt.text = "load game 3";
}
Instance of Symbol 406 MovieClip in Symbol 415 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.master_sounds.selectionUnite.start();
_root.play.pressbutton.start();
_root.loadData(3);
}
onClipEvent (load) {
this.txt.text = "load game 4";
}
Instance of Symbol 406 MovieClip in Symbol 415 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.master_sounds.selectionUnite.start();
_root.play.pressbutton.start();
_root.loadData(4);
}
onClipEvent (load) {
this.txt.text = "load game 5";
}
Instance of Symbol 414 MovieClip in Symbol 415 MovieClip Frame 1
on (press) {
_parent._x = -5000;
_root.play.pressbutton.start();
_root.master_sounds.selectionUnite.start();
}
Symbol 433 Button
on (release) {
_parent.play.pressbutton.start();
_parent.loadBoard._x = 265.1;
}
Symbol 437 Button
on (press) {
getURL ("http://www.arcadebomb.com", "_blank");
}
Symbol 441 Button
on (release) {
_root.navnav = "start";
_root.bat.iris.gotoAndPlay("startgame");
_root.buttons.play();
}
Symbol 442 Button
on (release) {
_root.navnav = "credits";
_root.bat.iris.play();
_root.buttons.play();
}
Symbol 443 Button
on (release) {
_root.bat.iris.play();
}
Symbol 444 MovieClip Frame 40
stop();
Symbol 444 MovieClip Frame 80
if (_root.navnav == "credits") {
_root.credits.gotoAndStop(2);
} else {
_root.gamemoderpick.play();
}
stop();
Symbol 448 MovieClip Frame 1
temp = random(5);
if (temp == 1) {
gotoAndPlay ("s1");
} else if (temp == 2) {
gotoAndPlay ("s2");
} else {
gotoAndPlay ("idle");
}
Symbol 448 MovieClip Frame 28
gotoAndPlay ("idle");
Symbol 448 MovieClip Frame 110
temp = random(5);
if (temp == 1) {
gotoAndPlay ("s1");
} else if (temp == 2) {
gotoAndPlay ("s2");
} else {
gotoAndPlay ("idle");
}
Instance of Symbol 72 MovieClip "canon2" in Symbol 459 MovieClip Frame 1
onClipEvent (load) {
this.decalY = 68;
this.typeLaser = "obusMoyen";
this.decalX = 4;
}
Instance of Symbol 72 MovieClip "canon1" in Symbol 459 MovieClip Frame 1
onClipEvent (load) {
this.decalY = 68;
this.typeLaser = "obusMoyen";
this.decalX = -7;
}
Symbol 460 MovieClip Frame 1
spotx = _root.bat.turret3._x - _root.bat._x;
spoty = _root.bat.turret3._y - _root.bat._y;
aim._rotation = (Math.atan2(spoty - _y, spotx - _x) * 180) / Math.PI;
if (((oldx != _x) || (oldy != _y)) || (keepgo)) {
newrot = (Math.atan2(_y - oldy, _x - oldx) * 180) / Math.PI;
keepgo = false;
if (body._rotation != newrot) {
keepgo = true;
if ((newrot - body._rotation) > 0) {
body._rotation = body._rotation + 5;
if ((newrot - body._rotation) < 0) {
body._rotation = newrot;
}
} else {
body._rotation = body._rotation - 5;
if ((newrot - body._rotation) > 0) {
body._rotation = newrot;
}
}
}
oldx = _x;
oldy = _y;
}
Instance of Symbol 82 MovieClip "canon1" in Symbol 464 MovieClip Frame 1
onClipEvent (load) {
this.decalY = 20;
this.typeLaser = "laserIonRouge";
}
Symbol 473 MovieClip Frame 1
stop();
Symbol 473 MovieClip Frame 34
stop();
Symbol 473 MovieClip Frame 68
gotoAndStop (1);
Symbol 473 MovieClip Frame 108
stop();
Symbol 479 MovieClip Frame 1
stop();
Symbol 479 MovieClip Frame 2
if (random(2) == 0) {
gotoAndPlay (4);
}
Symbol 479 MovieClip Frame 3
gotoAndStop (1);
Symbol 479 MovieClip Frame 4
gotoAndStop (1);
Symbol 481 MovieClip Frame 1
stop();
Symbol 483 MovieClip Frame 1
stop();
Symbol 484 MovieClip Frame 1
spotx = _root.bat.turret1._x - _root.bat._x;
spoty = _root.bat.turret1._y - _root.bat._y;
aim._rotation = (Math.atan2(spoty - _y, spotx - _x) * 180) / Math.PI;
if (((oldx != _x) || (oldy != _y)) || (keepgo)) {
newrot = (Math.atan2(_y - oldy, _x - oldx) * 180) / Math.PI;
keepgo = false;
if (body._rotation != newrot) {
keepgo = true;
if ((newrot - body._rotation) > 0) {
body._rotation = body._rotation + 5;
if ((newrot - body._rotation) < 0) {
body._rotation = newrot;
}
} else {
body._rotation = body._rotation - 5;
if ((newrot - body._rotation) > 0) {
body._rotation = newrot;
}
}
}
oldx = _x;
oldy = _y;
}
Symbol 485 MovieClip Frame 1
spotx = _root.bat.turret2._x - _root.bat._x;
spoty = _root.bat.turret2._y - _root.bat._y;
aim._rotation = (Math.atan2(spoty - _y, spotx - _x) * 180) / Math.PI;
if (((oldx != _x) || (oldy != _y)) || (keepgo)) {
newrot = (Math.atan2(_y - oldy, _x - oldx) * 180) / Math.PI;
keepgo = false;
if (body._rotation != newrot) {
keepgo = true;
if ((newrot - body._rotation) > 0) {
body._rotation = body._rotation + 5;
if ((newrot - body._rotation) < 0) {
body._rotation = newrot;
}
} else {
body._rotation = body._rotation - 5;
if ((newrot - body._rotation) > 0) {
body._rotation = newrot;
}
}
}
oldx = _x;
oldy = _y;
}
Instance of Symbol 104 MovieClip "canon1" in Symbol 491 MovieClip Frame 1
onClipEvent (load) {
this.decalY = 46;
this.typeLaser = "obusLourd";
this.decalX = 0;
}
Symbol 492 MovieClip Frame 1
spotx = _root.bat.turret3._x - _root.bat._x;
spoty = _root.bat.turret3._y - _root.bat._y;
aim._rotation = (Math.atan2(spoty - _y, spotx - _x) * 180) / Math.PI;
if (((oldx != _x) || (oldy != _y)) || (keepgo)) {
newrot = (Math.atan2(_y - oldy, _x - oldx) * 180) / Math.PI;
keepgo = false;
if (body._rotation != newrot) {
keepgo = true;
if ((newrot - body._rotation) > 0) {
body._rotation = body._rotation + 5;
if ((newrot - body._rotation) < 0) {
body._rotation = newrot;
}
} else {
body._rotation = body._rotation - 5;
if ((newrot - body._rotation) > 0) {
body._rotation = newrot;
}
}
}
oldx = _x;
oldy = _y;
}
Symbol 493 MovieClip Frame 1
function firetank(target) {
temp = this.attachMovie("beamer", "beamer" + random(20000), 20000 + random(200000));
temp._x = target._x;
temp._y = target._y;
temp._rotation = target.aim._rotation;
laserSound.play();
}
function firetank2(target) {
temp = this.attachMovie("beamer3", "beamer3" + random(20000), 20000 + random(200000));
temp._x = target._x;
temp._y = target._y;
temp._rotation = target.aim._rotation;
laserSound.play();
}
function fireturret(target) {
temp = this.attachMovie("beamer2", "beamer2" + random(20000), 20000 + random(200000));
temp._x = target._x;
temp._y = target._y;
temp._rotation = target.aim._rotation;
laserSound.play();
}
Instance of Symbol 465 MovieClip "turret1" in Symbol 493 MovieClip Frame 1
onClipEvent (enterFrame) {
spotx = _root.bat.tank1._x - _root.bat._x;
spoty = _root.bat.tank1._y - _root.bat._y;
aim._rotation = (Math.atan2(spoty - _y, spotx - _x) * 180) / Math.PI;
}
Instance of Symbol 465 MovieClip "turret2" in Symbol 493 MovieClip Frame 1
onClipEvent (enterFrame) {
spotx = _root.bat.tank1._x - _root.bat._x;
spoty = _root.bat.tank1._y - _root.bat._y;
aim._rotation = (Math.atan2(spoty - _y, spotx - _x) * 180) / Math.PI;
}
Instance of Symbol 465 MovieClip "turret3" in Symbol 493 MovieClip Frame 1
onClipEvent (enterFrame) {
spotx = _root.bat.tank1._x - _root.bat._x;
spoty = _root.bat.tank1._y - _root.bat._y;
aim._rotation = (Math.atan2(spoty - _y, spotx - _x) * 180) / Math.PI;
}
Instance of Symbol 475 MovieClip in Symbol 493 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
}
Symbol 493 MovieClip Frame 47
firetank(tank1);
Symbol 493 MovieClip Frame 53
firetank(tank1);
Symbol 493 MovieClip Frame 59
firetank(tank1);
Symbol 493 MovieClip Frame 74
firetank(tank2);
Symbol 493 MovieClip Frame 84
firetank(tank2);
Symbol 493 MovieClip Frame 91
fireturret(turret1);
Symbol 493 MovieClip Frame 94
firetank(tank2);
Symbol 493 MovieClip Frame 100
fireturret(turret3);
Symbol 493 MovieClip Frame 103
fireturret(turret2);
Symbol 493 MovieClip Frame 111
firetank(tank1);
Symbol 493 MovieClip Frame 117
firetank(tank1);
Symbol 493 MovieClip Frame 147
fireturret(turret2);
Symbol 493 MovieClip Frame 149
firetank(tank2);
Symbol 493 MovieClip Frame 151
fireturret(turret1);
Symbol 493 MovieClip Frame 156
firetank(tank2);
Symbol 493 MovieClip Frame 162
fireturret(turret3);
Symbol 493 MovieClip Frame 163
firetank(tank2);
Symbol 493 MovieClip Frame 166
fireturret(turret2);
Symbol 493 MovieClip Frame 171
firetank(tank2);
Symbol 493 MovieClip Frame 180
firetank(tank2);
Symbol 493 MovieClip Frame 188
firetank(tank2);
Symbol 493 MovieClip Frame 198
firetank(tank1);
Symbol 493 MovieClip Frame 202
fireturret(turret1);
Symbol 493 MovieClip Frame 207
fireturret(turret3);
firetank(tank1);
Symbol 493 MovieClip Frame 211
fireturret(turret2);
Symbol 493 MovieClip Frame 216
firetank(tank3);
firetank(tank1);
Symbol 493 MovieClip Frame 225
fireturret(turret3);
firetank(tank1);
Symbol 493 MovieClip Frame 228
firetank(tank3);
Symbol 493 MovieClip Frame 243
fireturret(turret1);
Symbol 493 MovieClip Frame 247
fireturret(turret3);
Symbol 493 MovieClip Frame 251
fireturret(turret2);
Symbol 493 MovieClip Frame 254
fireturret(turret1);
Symbol 493 MovieClip Frame 259
fireturret(turret3);
Symbol 493 MovieClip Frame 263
fireturret(turret2);
Symbol 493 MovieClip Frame 265
fireturret(turret2);
Symbol 493 MovieClip Frame 268
fireturret(turret1);
Symbol 493 MovieClip Frame 273
fireturret(turret3);
Symbol 493 MovieClip Frame 277
fireturret(turret2);
Symbol 493 MovieClip Frame 283
_root.explode();
Symbol 493 MovieClip Frame 295
firetank(tank4);
Instance of Symbol 465 MovieClip "turret1" in Symbol 493 MovieClip Frame 295
onClipEvent (enterFrame) {
if (!_root.bat.tank2) {
return(undefined);
}
spotx = _root.bat.tank2._x - _root.bat._x;
spoty = _root.bat.tank2._y - _root.bat._y;
tarrot = (Math.atan2(spoty - _y, spotx - _x) * 180) / Math.PI;
if (aim._rotation != tarrot) {
if (aim._rotation < tarrot) {
aim._rotation = aim._rotation + 5;
if (aim._rotation > tarrot) {
aim._rotation = tarrot;
}
} else {
aim._rotation = aim._rotation - 5;
if (aim._rotation < tarrot) {
aim._rotation = tarrot;
}
}
}
}
Instance of Symbol 465 MovieClip "turret2" in Symbol 493 MovieClip Frame 295
onClipEvent (enterFrame) {
if (!_root.bat.tank2) {
return(undefined);
}
spotx = _root.bat.tank2._x - _root.bat._x;
spoty = _root.bat.tank2._y - _root.bat._y;
tarrot = (Math.atan2(spoty - _y, spotx - _x) * 180) / Math.PI;
if (aim._rotation != tarrot) {
if (aim._rotation < tarrot) {
aim._rotation = aim._rotation + 5;
if (aim._rotation > tarrot) {
aim._rotation = tarrot;
}
} else {
aim._rotation = aim._rotation - 5;
if (aim._rotation < tarrot) {
aim._rotation = tarrot;
}
}
}
}
Instance of Symbol 465 MovieClip "turret3" in Symbol 493 MovieClip Frame 295
onClipEvent (enterFrame) {
if (!_root.bat.tank2) {
return(undefined);
}
spotx = _root.bat.tank2._x - _root.bat._x;
spoty = _root.bat.tank2._y - _root.bat._y;
tarrot = (Math.atan2(spoty - _y, spotx - _x) * 180) / Math.PI;
if (aim._rotation != tarrot) {
if (aim._rotation < tarrot) {
aim._rotation = aim._rotation + 5;
if (aim._rotation > tarrot) {
aim._rotation = tarrot;
}
} else {
aim._rotation = aim._rotation - 5;
if (aim._rotation < tarrot) {
aim._rotation = tarrot;
}
}
}
}
Symbol 493 MovieClip Frame 300
fireturret(turret1);
Symbol 493 MovieClip Frame 303
fireturret(turret3);
Symbol 493 MovieClip Frame 306
fireturret(turret2);
Symbol 493 MovieClip Frame 307
firetank(tank4);
Symbol 493 MovieClip Frame 314
firetank(tank2);
Symbol 493 MovieClip Frame 320
firetank(tank4);
Symbol 493 MovieClip Frame 322
firetank(tank2);
Symbol 493 MovieClip Frame 327
firetank(tank4);
Symbol 493 MovieClip Frame 328
fireturret(turret1);
Symbol 493 MovieClip Frame 331
firetank(tank2);
Symbol 493 MovieClip Frame 335
firetank(tank4);
Symbol 493 MovieClip Frame 339
firetank(tank2);
Symbol 493 MovieClip Frame 343
fireturret(turret3);
Symbol 493 MovieClip Frame 346
fireturret(turret2);
Symbol 493 MovieClip Frame 351
_root.explode();
Instance of Symbol 465 MovieClip "turret1" in Symbol 493 MovieClip Frame 352
onClipEvent (enterFrame) {
if (!_root.bat.tank4) {
return(undefined);
}
spotx = _root.bat.tank4._x - _root.bat._x;
spoty = _root.bat.tank4._y - _root.bat._y;
tarrot = (Math.atan2(spoty - _y, spotx - _x) * 180) / Math.PI;
if (aim._rotation != tarrot) {
if (aim._rotation < tarrot) {
aim._rotation = aim._rotation + 5;
if (aim._rotation > tarrot) {
aim._rotation = tarrot;
}
} else {
aim._rotation = aim._rotation - 5;
if (aim._rotation < tarrot) {
aim._rotation = tarrot;
}
}
}
}
Instance of Symbol 465 MovieClip "turret2" in Symbol 493 MovieClip Frame 352
onClipEvent (enterFrame) {
if (!_root.bat.tank3) {
return(undefined);
}
spotx = _root.bat.tank3._x - _root.bat._x;
spoty = _root.bat.tank3._y - _root.bat._y;
tarrot = (Math.atan2(spoty - _y, spotx - _x) * 180) / Math.PI;
if (aim._rotation != tarrot) {
if (aim._rotation < tarrot) {
aim._rotation = aim._rotation + 5;
if (aim._rotation > tarrot) {
aim._rotation = tarrot;
}
} else {
aim._rotation = aim._rotation - 5;
if (aim._rotation < tarrot) {
aim._rotation = tarrot;
}
}
}
}
Instance of Symbol 465 MovieClip "turret3" in Symbol 493 MovieClip Frame 352
onClipEvent (enterFrame) {
if (!_root.bat.tank3) {
return(undefined);
}
spotx = _root.bat.tank3._x - _root.bat._x;
spoty = _root.bat.tank3._y - _root.bat._y;
tarrot = (Math.atan2(spoty - _y, spotx - _x) * 180) / Math.PI;
if (aim._rotation != tarrot) {
if (aim._rotation < tarrot) {
aim._rotation = aim._rotation + 5;
if (aim._rotation > tarrot) {
aim._rotation = tarrot;
}
} else {
aim._rotation = aim._rotation - 5;
if (aim._rotation < tarrot) {
aim._rotation = tarrot;
}
}
}
}
Symbol 493 MovieClip Frame 394
fireturret(turret1);
Symbol 493 MovieClip Frame 396
firetank(tank4);
Symbol 493 MovieClip Frame 397
fireturret(turret3);
Symbol 493 MovieClip Frame 400
fireturret(turret2);
Symbol 493 MovieClip Frame 404
firetank(tank4);
Instance of Symbol 465 MovieClip "turret2" in Symbol 493 MovieClip Frame 409
onClipEvent (enterFrame) {
if (!_root.bat.tank4) {
return(undefined);
}
spotx = _root.bat.tank4._x - _root.bat._x;
spoty = _root.bat.tank4._y - _root.bat._y;
tarrot = (Math.atan2(spoty - _y, spotx - _x) * 180) / Math.PI;
if (aim._rotation != tarrot) {
if (aim._rotation < tarrot) {
aim._rotation = aim._rotation + 5;
if (aim._rotation > tarrot) {
aim._rotation = tarrot;
}
} else {
aim._rotation = aim._rotation - 5;
if (aim._rotation < tarrot) {
aim._rotation = tarrot;
}
}
}
}
Symbol 493 MovieClip Frame 418
fireturret(turret3);
Symbol 493 MovieClip Frame 423
firetank(tank4);
Symbol 493 MovieClip Frame 428
fireturret(turret2);
Symbol 493 MovieClip Frame 436
firetank(tank3);
Symbol 493 MovieClip Frame 440
firetank(tank4);
Symbol 493 MovieClip Frame 444
fireturret(turret2);
Instance of Symbol 465 MovieClip "turret1" in Symbol 493 MovieClip Frame 444
onClipEvent (enterFrame) {
if (!_root.bat.tank5) {
return(undefined);
}
spotx = _root.bat.tank5._x - _root.bat._x;
spoty = _root.bat.tank5._y - _root.bat._y;
tarrot = (Math.atan2(spoty - _y, spotx - _x) * 180) / Math.PI;
if (aim._rotation != tarrot) {
if (aim._rotation < tarrot) {
aim._rotation = aim._rotation + 5;
if (aim._rotation > tarrot) {
aim._rotation = tarrot;
}
} else {
aim._rotation = aim._rotation - 5;
if (aim._rotation < tarrot) {
aim._rotation = tarrot;
}
}
}
}
Symbol 493 MovieClip Frame 447
fireturret(turret2);
Symbol 493 MovieClip Frame 455
firetank(tank3);
Symbol 493 MovieClip Frame 459
firetank(tank4);
Symbol 493 MovieClip Frame 463
fireturret(turret2);
Symbol 493 MovieClip Frame 478
firetank(tank4);
Instance of Symbol 465 MovieClip "turret3" in Symbol 493 MovieClip Frame 491
onClipEvent (enterFrame) {
if (!_root.bat.tank4) {
return(undefined);
}
spotx = _root.bat.tank4._x - _root.bat._x;
spoty = _root.bat.tank4._y - _root.bat._y;
tarrot = (Math.atan2(spoty - _y, spotx - _x) * 180) / Math.PI;
if (aim._rotation != tarrot) {
if (aim._rotation < tarrot) {
aim._rotation = aim._rotation + 5;
if (aim._rotation > tarrot) {
aim._rotation = tarrot;
}
} else {
aim._rotation = aim._rotation - 5;
if (aim._rotation < tarrot) {
aim._rotation = tarrot;
}
}
}
}
Symbol 493 MovieClip Frame 493
fireturret(turret1);
Symbol 493 MovieClip Frame 497
firetank(tank3);
Symbol 493 MovieClip Frame 501
fireturret(turret1);
Symbol 493 MovieClip Frame 506
firetank(tank3);
Symbol 493 MovieClip Frame 511
fireturret(turret1);
Symbol 493 MovieClip Frame 524
fireturret(turret3);
Symbol 493 MovieClip Frame 533
fireturret(turret2);
Symbol 493 MovieClip Frame 536
firetank2(tank5);
Symbol 493 MovieClip Frame 540
firetank2(tank5);
Symbol 493 MovieClip Frame 544
fireturret(turret3);
firetank(tank3);
Symbol 493 MovieClip Frame 550
firetank2(tank5);
Symbol 493 MovieClip Frame 554
fireturret(turret2);
firetank(tank3);
Symbol 493 MovieClip Frame 563
fireturret(turret3);
Symbol 493 MovieClip Frame 564
firetank(tank3);
Symbol 493 MovieClip Frame 577
fireturret(turret3);
Symbol 493 MovieClip Frame 578
_root.explode();
Instance of Symbol 465 MovieClip "turret3" in Symbol 493 MovieClip Frame 578
onClipEvent (enterFrame) {
if (!_root.bat.tank3) {
return(undefined);
}
spotx = _root.bat.tank3._x - _root.bat._x;
spoty = _root.bat.tank3._y - _root.bat._y;
tarrot = (Math.atan2(spoty - _y, spotx - _x) * 180) / Math.PI;
if (aim._rotation != tarrot) {
if (aim._rotation < tarrot) {
aim._rotation = aim._rotation + 5;
if (aim._rotation > tarrot) {
aim._rotation = tarrot;
}
} else {
aim._rotation = aim._rotation - 5;
if (aim._rotation < tarrot) {
aim._rotation = tarrot;
}
}
}
}
Symbol 493 MovieClip Frame 601
firetank(tank3);
Symbol 493 MovieClip Frame 606
firetank2(tank5);
Symbol 493 MovieClip Frame 610
firetank2(tank5);
Symbol 493 MovieClip Frame 620
firetank2(tank5);
Symbol 497 Button
on (release) {
getURL ("http://www.arcadebomb.com", "_blank");
}
Instance of Symbol 414 MovieClip in Symbol 526 MovieClip Frame 19
on (press) {
_root.buttons.gotoAndPlay(1);
_root.bat.iris.gotoAndPlay("open");
_root.credits.inner.gotoAndPlay("open");
trace(_root.bat.iris);
}
Symbol 526 MovieClip Frame 68
gotoAndPlay (20);
Symbol 526 MovieClip Frame 79
_parent.gotoAndStop(1);
Symbol 527 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 2
stop();
Symbol 536 Button
on (release) {
_root.gamemoder = "easy";
_root.bat.play.pressbutton.start();
stopAllSounds();
_root.gc = 1;
_root.nextFrame();
}
Symbol 539 Button
on (release) {
_root.gamemoder = "normal";
_root.bat.play.pressbutton.start();
stopAllSounds();
_root.gc = 1;
_root.nextFrame();
}
Symbol 542 Button
on (release) {
_root.gamemoder = "hard";
_root.bat.play.pressbutton.start();
stopAllSounds();
_root.gc = 1;
_root.nextFrame();
}
Instance of Symbol 414 MovieClip in Symbol 545 MovieClip Frame 19
on (press) {
_root.buttons.gotoAndPlay(1);
_root.bat.iris.gotoAndPlay("open");
_root.gamemoderpick.inner.gotoAndPlay("open");
trace(_root.bat.iris);
}
Symbol 545 MovieClip Frame 68
gotoAndPlay (20);
Symbol 545 MovieClip Frame 79
_parent.gotoAndStop(1);
Symbol 546 MovieClip Frame 1
stop();
Symbol 546 MovieClip Frame 2
stop();
Symbol 571 MovieClip Frame 1
stop();
Instance of Symbol 563 MovieClip in Symbol 571 MovieClip Frame 1
onClipEvent (load) {
thisH = this._y;
maxH = 172;
dir = 1;
}
onClipEvent (enterFrame) {
if (Math.random() > 0.45) {
this._y = thisH + (Math.random() * maxH);
this._alpha = 30 + (Math.random() * 70);
if (Math.random() > 0.5) {
dir = 1;
} else {
dir = -1;
}
} else {
this._y = this._y + (1 * dir);
}
}
Instance of Symbol 563 MovieClip in Symbol 571 MovieClip Frame 1
onClipEvent (load) {
thisH = this._y;
maxH = 172;
dir = 1;
}
onClipEvent (enterFrame) {
if (Math.random() > 0.45) {
this._y = thisH + (Math.random() * maxH);
this._alpha = 30 + (Math.random() * 70);
if (Math.random() > 0.5) {
dir = 1;
} else {
dir = -1;
}
} else {
this._y = this._y + (1 * dir);
}
}
Instance of Symbol 563 MovieClip in Symbol 571 MovieClip Frame 1
onClipEvent (load) {
thisH = this._y;
maxH = 172;
dir = 1;
}
onClipEvent (enterFrame) {
if (Math.random() > 0.45) {
this._y = thisH + (Math.random() * maxH);
this._alpha = 30 + (Math.random() * 70);
if (Math.random() > 0.5) {
dir = 1;
} else {
dir = -1;
}
} else {
this._y = this._y + (1 * dir);
}
}
Symbol 571 MovieClip Frame 2
stop();
Symbol 571 MovieClip Frame 3
stop();
Symbol 572 MovieClip Frame 1
stop();
Symbol 575 MovieClip Frame 1
stop();
Symbol 575 MovieClip Frame 2
play();
Symbol 575 MovieClip Frame 30
stop();
Symbol 582 MovieClip Frame 1
this.t.text = "BEGIN MISSION " + _root.master_scenario.iMission;
Instance of Symbol 414 MovieClip in Symbol 582 MovieClip Frame 1
on (press) {
_parent._x = -5000;
_root.play.pressbutton.start();
_root.master_sounds.selectionUnite.start();
}
Symbol 582 MovieClip Frame 2
this.t.text = "BEGIN MISSION " + _root.master_scenario.iMission;
Symbol 585 MovieClip Frame 1
this.txt.text = this.ttext;
Symbol 585 MovieClip Frame 2
this.txt.text = this.ttext;
Symbol 591 MovieClip Frame 1
stop();
Symbol 591 MovieClip Frame 2
play();
_root.events();
Symbol 591 MovieClip Frame 30
_parent._x = -500;
_parent._y = -500;
var im = _root.master_scenario.iMission;
if (im < 10) {
_root.startMissionPause._x = 0;
_root.startMissionPause._y = 400;
} else {
_root.master_scenario.startMission();
}
_root.master_scenario.enScenario = false;
Symbol 596 MovieClip Frame 1
this.txt.text = this.ttext;
stop();
Symbol 596 MovieClip Frame 2
this.txt.text = this.ttext;
stop();
Instance of Symbol 414 MovieClip in Symbol 604 MovieClip Frame 1
on (rollOver) {
_root.master_pointeur.surMenuSC = true;
}
on (rollOut) {
_root.master_pointeur.surMenuSC = false;
}
Instance of Symbol 406 MovieClip "l1" in Symbol 604 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.master_sounds.selectionUnite.start();
_root.saveData(0);
_parent.refreshCard();
this.txt.text = "game saved";
}
onClipEvent (load) {
this.txt.text = "save slot 1";
}
Instance of Symbol 406 MovieClip "l2" in Symbol 604 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.master_sounds.selectionUnite.start();
_root.saveData(1);
_parent.refreshCard();
this.txt.text = "game saved";
}
onClipEvent (load) {
this.txt.text = "save slot 2";
}
Instance of Symbol 406 MovieClip "l3" in Symbol 604 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.master_sounds.selectionUnite.start();
_root.saveData(2);
_parent.refreshCard();
this.txt.text = "game saved";
}
onClipEvent (load) {
this.txt.text = "save slot 3";
}
Instance of Symbol 406 MovieClip "l4" in Symbol 604 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.master_sounds.selectionUnite.start();
_root.saveData(3);
_parent.refreshCard();
this.txt.text = "game saved";
}
onClipEvent (load) {
this.txt.text = "save slot 4";
}
Instance of Symbol 406 MovieClip "l5" in Symbol 604 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.master_sounds.selectionUnite.start();
_root.saveData(4);
_parent.refreshCard();
this.txt.text = "game saved";
}
onClipEvent (load) {
this.txt.text = "save slot 5";
}
Instance of Symbol 414 MovieClip in Symbol 604 MovieClip Frame 1
on (press) {
_parent._x = -5000;
_parent._parent.save.gotoAndStop(1);
_root.play.pressbutton.start();
_root.master_sounds.selectionUnite.start();
_root.master_pointeur.surMenuSC = false;
}
on (rollOver) {
_root.master_pointeur.surMenuSC = true;
}
on (rollOut) {
_root.master_pointeur.surMenuSC = false;
}
Symbol 606 MovieClip Frame 1
stop();
Instance of Symbol 563 MovieClip in Symbol 606 MovieClip Frame 1
onClipEvent (load) {
thisH = this._y;
maxH = 178;
}
onClipEvent (enterFrame) {
if (Math.random() > 0.65) {
this._y = thisH + (Math.random() * 178);
this._alpha = 30 + (Math.random() * 70);
}
}
Instance of Symbol 563 MovieClip in Symbol 606 MovieClip Frame 1
onClipEvent (load) {
thisH = this._y;
maxH = 178;
}
onClipEvent (enterFrame) {
if (Math.random() > 0.65) {
this._y = thisH + (Math.random() * 178);
this._alpha = 30 + (Math.random() * 70);
}
}
Instance of Symbol 563 MovieClip in Symbol 606 MovieClip Frame 1
onClipEvent (load) {
thisH = this._y;
maxH = 178;
}
onClipEvent (enterFrame) {
if (Math.random() > 0.65) {
this._y = thisH + (Math.random() * 178);
this._alpha = 30 + (Math.random() * 70);
}
}
Instance of Symbol 563 MovieClip in Symbol 606 MovieClip Frame 1
onClipEvent (load) {
thisH = this._y;
maxH = 178;
}
onClipEvent (enterFrame) {
if (Math.random() > 0.65) {
this._y = thisH + (Math.random() * 178);
this._alpha = 30 + (Math.random() * 70);
}
}
Symbol 606 MovieClip Frame 2
stop();
Symbol 607 MovieClip Frame 1
stop();
Instance of Symbol 551 MovieClip "bg" in Symbol 607 MovieClip Frame 1
on (press) {
}
Instance of Symbol 572 MovieClip "imgScenario" in Symbol 607 MovieClip Frame 1
on (press) {
}
Instance of Symbol 582 MovieClip "beginM" in Symbol 607 MovieClip Frame 1
on (press) {
_parent.saveBoard._x = -5000;
this.gotoAndStop(1);
_root.firstaction = false;
_parent._x = -400;
_parent.haloNoir.gotoAndPlay("play");
_root.master_sounds.creationUnite.start();
}
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 585 MovieClip "save" in Symbol 607 MovieClip Frame 1
onClipEvent (load) {
this.stop();
this.ttext = "SAVE GAME";
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_parent.saveBoard._x = -150.2;
_root.master_sounds.selectionUnite.start();
}
Instance of Symbol 588 MovieClip in Symbol 607 MovieClip Frame 1
on (press) {
_parent.saveBoard._x = -5000;
if (_root.instructions.nextDialogue()) {
_root.master_sounds.boutonScroll.start();
} else {
_root.master_sounds.cannot.start();
}
}
Instance of Symbol 589 MovieClip "voile" in Symbol 607 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 596 MovieClip "hideur" in Symbol 607 MovieClip Frame 1
onClipEvent (load) {
function changeIt() {
if (this.actived) {
_parent.bg._height = this.realH;
_parent.pictureLD._x = this.realX2;
_parent.imgScenario._x = this.realX1;
_parent.txt._x = this.realX3;
_parent.bg._y = this.realY;
this.ttext = "hide";
this.txt.text = "hide";
this.actived = false;
} else {
_parent.bg._height = 45;
_parent.pictureLD._x = -8000;
_parent.imgScenario._x = -8000;
_parent.txt._x = -8000;
_parent.bg._y = 107.2;
this.ttext = "show";
this.txt.text = "show";
this.actived = true;
}
}
this.actived = false;
this.realH = _parent.bg._height;
this.realY = _parent.bg._y;
this.realX1 = _parent.imgScenario._x;
this.realX2 = _parent.pictureLD._x;
this.realX3 = _parent.txt._x;
this.ttext = "hide";
}
on (press) {
changeIt();
_root.master_sounds.selectionUnite.start();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 604 MovieClip "saveBoard" in Symbol 607 MovieClip Frame 1
onClipEvent (load) {
function refreshCard() {
var _local3 = 0;
while (_local3 < 5) {
var _local4 = _root.cookie.data.saveCard[_local3].iMission;
var _local5 = _root.cookie.data.saveCard[_local3].euros;
var _local6 = _root.cookie.data.saveCard[_local3].score;
if (_local4 == undefined) {
this["infol" + (_local3 + 1)].text = "no data";
} else {
this["infol" + (_local3 + 1)].text = ((((("mission " + _local4) + " ") + _local5) + " $ ") + _local6) + " losses";
}
_local3++;
}
}
}
Instance of Symbol 606 MovieClip "pictureLD" in Symbol 607 MovieClip Frame 1
on (press) {
}
Symbol 665 MovieClip Frame 1
stop();
Symbol 669 MovieClip Frame 1
stop();
Symbol 681 MovieClip Frame 1
stop();
Symbol 681 MovieClip Frame 2
play();
Instance of Symbol 17 MovieClip in Symbol 681 MovieClip Frame 2
onClipEvent (load) {
this.head = _parent.head;
if (head) {
_root.master_weapons.createObus("missileUnderSu37", this, _parent.decalY, _parent.decalX);
} else {
_root.master_weapons.createObus("missileUnderSu37NOSOUND", this, _parent.decalY, _parent.decalX);
}
}
Symbol 681 MovieClip Frame 6
if (this.ordre == "missile1") {
_parent.missile2.gotoAndPlay("fire");
}
if ((this.ordre == "missile2") && (this.nMissile > 2)) {
_parent.missile3.gotoAndPlay("fire");
}
if (this.ordre == "missile3") {
_parent.missile4.gotoAndPlay("fire");
}
Instance of Symbol 681 MovieClip "missile4" in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
decalX = 10;
decalY = -2;
this.ordre = "missile4";
this.nMissile = 4;
this.head = false;
}
Instance of Symbol 681 MovieClip "missile2" in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
decalX = -10;
decalY = -2;
this.ordre = "missile2";
this.nMissile = 4;
this.head = false;
}
Instance of Symbol 681 MovieClip "missile3" in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
decalX = -20;
decalY = -2;
this.ordre = "missile3";
this.nMissile = 4;
this.head = false;
}
Instance of Symbol 681 MovieClip "missile1" in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
decalX = 20;
decalY = -2;
this.ordre = "missile1";
this.nMissile = 4;
this.head = true;
}
Instance of Symbol 17 MovieClip "masque" in Symbol 689 MovieClip Frame 1
on (press) {
_root.master_clavier.sellTheUnit();
}
on (rollOver) {
this._alpha = 30;
}
on (rollOut) {
this._alpha = 0;
}
Instance of Symbol 689 MovieClip "base" in Symbol 690 MovieClip Frame 1
onClipEvent (load) {
function refresh(unit) {
var _local2 = unit.structureData[unit.structure][0];
var _local6 = unit._parent.etat;
var _local7 = unit.structureData[unit.structure][1];
var _local5 = Math.floor((_local6 / _local2) * (_local7 * 0.75));
var _local3 = Math.ceil(_local6);
if (_local3 > _local2) {
_local3 = _local2;
}
if (isNaN(_local5)) {
return(false);
}
this.repairPrice.text = ((((("HP " + _local3) + " / ") + _local2) + "\n\nsell for ") + _local5) + " $";
}
function repairIfCan() {
if (_root.master_menuItems.euros < priceToPay) {
_root.master_sounds.cannot.start();
} else {
_root.master_menuItems.euros = _root.master_menuItems.euros - priceToPay;
unitToRepair._parent.etat = etatMax;
_root.master_sounds.selectionUnite.start();
}
}
var priceToPay = 0;
var unitToRepair = "null";
var etatMax = 0;
}
Instance of Symbol 72 MovieClip "canon1" in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
this.decalY = 25;
this.typeLaser = "laserLegerRouge";
}
Instance of Symbol 72 MovieClip "canon1" in Symbol 696 MovieClip Frame 1
onClipEvent (load) {
this.decalY = 28;
this.typeLaser = "laserLegerBleu";
}
Instance of Symbol 72 MovieClip "canon2" in Symbol 697 MovieClip Frame 1
onClipEvent (load) {
this.decalY = 20;
this.typeLaser = "laserLegerRouge";
this.decalX = -4;
}
Instance of Symbol 72 MovieClip "canon3" in Symbol 697 MovieClip Frame 1
onClipEvent (load) {
this.decalY = 20;
this.typeLaser = "laserLegerRouge";
this.decalX = 11;
}
Instance of Symbol 72 MovieClip "canon4" in Symbol 697 MovieClip Frame 1
onClipEvent (load) {
this.decalY = 27;
this.typeLaser = "laserLegerRouge";
this.decalX = -12;
}
Instance of Symbol 72 MovieClip "canon1" in Symbol 697 MovieClip Frame 1
onClipEvent (load) {
this.decalY = 27;
this.typeLaser = "laserLegerRouge";
this.decalX = 3;
}
Instance of Symbol 72 MovieClip "canon2" in Symbol 698 MovieClip Frame 1
onClipEvent (load) {
this.decalY = 68;
this.typeLaser = "obusMoyen";
this.decalX = 4;
}
Instance of Symbol 72 MovieClip "canon1" in Symbol 698 MovieClip Frame 1
onClipEvent (load) {
this.decalY = 68;
this.typeLaser = "obusMoyen";
this.decalX = -7;
}
Instance of Symbol 82 MovieClip "canon1" in Symbol 700 MovieClip Frame 1
onClipEvent (load) {
this.decalY = 20;
this.typeLaser = "laserIonRouge";
this.decalX = 0;
}
Instance of Symbol 72 MovieClip "canon1" in Symbol 702 MovieClip Frame 1
onClipEvent (load) {
this.decalY = 30;
this.typeLaser = "laserLegerVert";
this.decalX = 2;
}
Instance of Symbol 72 MovieClip "canon2" in Symbol 702 MovieClip Frame 1
onClipEvent (load) {
this.decalY = 30;
this.typeLaser = "laserLegerVert";
this.decalX = -4;
}
Instance of Symbol 82 MovieClip "canon1" in Symbol 709 MovieClip Frame 1
onClipEvent (load) {
this.decalY = 28;
this.typeLaser = "laserIonBlanc";
this.decalX = 0;
}
Instance of Symbol 104 MovieClip "canon1" in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
this.decalY = 46;
this.typeLaser = "obusLourd";
this.decalX = 0;
}
Symbol 716 MovieClip Frame 1
stop();
Symbol 716 MovieClip Frame 2
play();
Symbol 719 MovieClip Frame 1
stop();
Instance of Symbol 713 MovieClip "logoBuild" in Symbol 719 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 719 MovieClip Frame 2
stop();
Symbol 719 MovieClip Frame 3
stop();
Instance of Symbol 653 MovieClip "carteBase" in Symbol 720 MovieClip Frame 1
on (press) {
_root.master_clavier.depressSpace();
}
Instance of Symbol 665 MovieClip "surfaceForBuild" in Symbol 720 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
Instance of Symbol 677 MovieClip "zoneBombardement" in Symbol 720 MovieClip Frame 1
onClipEvent (load) {
function activeDisponibilite() {
idDispo = setInterval(this, "chargeBombes", 1000);
}
function chargeBombes() {
if (_root.consoleCheats.su27full) {
comptDispo = 0;
}
if (comptDispo <= 0) {
comptDispo = 60;
_parent.Su37.disponible = true;
clearInterval(idDispo);
this.compteur.text = "ready";
} else {
this.compteur.text = comptDispo + " .. wait";
comptDispo--;
}
}
var idDispo = 0;
var comptDispo = 60;
this.compteur.text = "ready";
}
on (press) {
if (_parent.Su37.disponible == false) {
_root.master_sounds.cannot.start();
return(false);
}
var cote = "";
var rd = Math.random();
if (rd < 0.25) {
cote = "bas";
} else if ((rd >= 0.25) && (rd < 0.5)) {
cote = "gauche";
} else if ((rd >= 0.5) && (rd < 0.75)) {
cote = "droit";
} else {
cote = "haut";
}
var xp = 0;
var yp = 0;
if ((cote == "haut") || (cote == "bas")) {
xp = Math.random() * 4800;
if (cote == "bas") {
yp = 600;
} else {
yp = -4200;
}
}
if ((cot == "gauche") || (cote == "droit")) {
yp = 600 - (Math.random() * 4800);
if (cote == "gauche") {
xp = 0;
} else {
xp = 4800;
}
}
_root.carte.Su37.cote = cote;
_root.carte.Su37.blockMissile = false;
_root.carte.Su37.zone = Array(_root.carte._xmouse, _root.carte._ymouse);
_root.carte.Su37._x = xp;
_root.carte.Su37._y = yp;
var x1 = _root.carte._xmouse;
var x2 = _root.carte.Su37._x;
var y1 = _root.carte._ymouse;
var y2 = _root.carte.Su37._y;
var hyp = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
var adj = Math.abs(x2 - x1);
var alpha = Math.asin(adj / hyp);
if (x1 > x2) {
alpha = -alpha;
}
if (y1 < y2) {
alpha = Math.PI - alpha;
}
alpha = alpha * 57.2957795130823;
if (directionToGet > 180) {
directionToGet = -360 + directionToGet;
}
_root.carte.Su37._rotation = alpha + 180;
_root.master_sounds.Su37S.start();
_root.master_pointeur.zoneBombardement = false;
this._x = -500;
_parent.Su37.disponible = false;
activeDisponibilite();
}
Instance of Symbol 684 MovieClip "Su37" in Symbol 720 MovieClip Frame 1
onClipEvent (load) {
function avance() {
var _local3 = this._rotation;
_local3 = _local3 * (Math.PI/180);
this._x = this._x + (speed * Math.sin(_local3));
this._y = this._y - (speed * Math.cos(_local3));
distanceTarget = Math.sqrt(((zone[0] - this._x) * (zone[0] - this._x)) + ((zone[1] - this._y) * (zone[1] - this._y)));
if ((distanceTarget < 500) && (!blockMissile)) {
this.missile1.gotoAndPlay("fire");
blockMissile = true;
}
_root.radarsu37._x = 642 + (156 * (this._x / 4800));
_root.radarsu37._y = 160 + (156 * ((this._y - 600) / 4800));
if (_root.radarsu37._x < 644) {
_root.radarsu37._x = -500;
} else if (_root.radarsu37._x > 797) {
_root.radarsu37._x = -500;
}
if (_root.radarsu37._y > 160) {
_root.radarsu37._y = -500;
} else if (_root.radarsu37._y < 8) {
_root.radarsu37._y = -500;
}
_root.carte.ombresu37._x = this._x + 100;
_root.carte.ombresu37._y = this._y + 80;
_root.carte.ombresu37._rotation = this._rotation;
}
speed = 40;
cote = "";
puissance = 120;
distanceTarget = 0;
impact = 260;
nom = "su37";
disponible = true;
}
onClipEvent (enterFrame) {
if ((cote == "haut") && (this._y < 800)) {
avance();
} else if ((cote == "bas") && (this._y > -4600)) {
avance();
} else if ((cote == "gauche") && (this._x < 5000)) {
avance();
} else if ((cote == "droit") && (this._x > -300)) {
avance();
}
}
Instance of Symbol 686 MovieClip "a1" in Symbol 720 MovieClip Frame 1
onClipEvent (load) {
function newEvents() {
var _local2 = _root.master_scenario.iMission;
if (_local2 == 1) {
} else if (_local2 == 7) {
} else if (_local2 == 11) {
cookie = SharedObject.getLocal("cookie");
if (((cookie.data.scoreBonus != 0) || (cookie.data.interestSup != 1)) || (cookie.data.m60AutoFire != 1)) {
}
} else if (_local2 == 14) {
} else if (_local2 == 18) {
_root.master_menuItems.euros = _root.master_menuItems.euros + 2500;
} else if (_local2 == 20) {
} else if (_local2 == 25) {
} else if (_local2 == 26) {
} else if (_local2 == 27) {
} else if (_local2 == 31) {
} else if (_local2 == 37) {
} else if (_local2 == 39) {
} else if (_local2 == 44) {
}
}
_root.canon75AutoFire = 0;
_root.events = newEvents;
}
Instance of Symbol 17 MovieClip "lapin" in Symbol 720 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 719 MovieClip "zoneDezoom" in Symbol 720 MovieClip Frame 1
onClipEvent (load) {
function dezoom() {
var _local3 = 0;
while (_local3 < _root.master_units.unitsAlliees.length) {
var _local2 = _root.master_units.unitsAlliees[_local3];
if (Math.abs(_local2._x - _root.carte._xmouse) < 50) {
if (Math.abs(_local2._y - _root.carte._ymouse) < 50) {
_local2.structureDeco.selectUnit();
return(false);
}
}
_local3++;
}
_local3 = 0;
while (_local3 < _root.master_units.unitsEnnemies.length) {
var _local2 = _root.master_units.unitsEnnemies[_local3];
if (Math.abs(_local2._x - _root.carte._xmouse) < 50) {
if (Math.abs(_local2._y - _root.carte._ymouse) < 50) {
_local2.chassisC.selectUnit();
return(false);
}
}
_local3++;
}
_root.master_clavier.realposmap[0] = -(_root.carte._xmouse - 400);
_root.master_clavier.realposmap[1] = -(_root.carte._ymouse - 300);
_root.master_clavier.dezoom();
_root.indicateurMiniMap._x = 670 - (101 * (_root.carte._x / 1280));
_root.indicateurMiniMap._y = 98 - (75 * ((_root.carte._y - 600) / 960));
_root.master_pointeur.repositionneMap();
}
this._alpha = 0;
}
on (press) {
dezoom();
}
Instance of Symbol 719 MovieClip "viseurConstruction" in Symbol 720 MovieClip Frame 1
on (press) {
var zoomArea = _parent.surfaceForBuild;
var coordX = (this._x + _parent._x);
var coordY = (this._y + _parent._y);
if (zoomArea.hitTest(_root._xmouse, _root._ymouse, true)) {
var i = 0;
while (i < _root.master_units.unitsAlliees.length) {
if (this.hitTest(_root.master_units.unitsAlliees[i])) {
return(false);
}
i++;
}
if (_root.master_menuItems.euros < construction.cost) {
_root.master_sounds.cannot.start();
trace("no go");
_root.carte.surfaceForBuild._alpha = 0;
_root.master_pointeur.viseurConstruction = false;
_root.master_pointeur.zoneBombardement = false;
_root.carte.viseurConstruction._x = -500;
_root.carte.indicateurPortee._x = -2000;
_root.carte.indicateurPortee._width = 0;
_root.carte.zoneBombardement._x = -500;
_root.master_pointeur.unshowInfoOnUnit();
_root.jukeboxPanel._y = -700;
_root.buildhintstop.gotoAndStop(3);
return(false);
}
_root.master_menuItems.euros = _root.master_menuItems.euros - construction.cost;
this.gotoAndStop("red");
this.logoBuild.gotoAndStop(construction.type);
_root.master_sounds.creationUnite.start();
_root.master_units.createUnit(construction.structure, construction.type, "ally", this._x, this._y, null);
} else {
_root.carte.surfaceForBuild._alpha = 0;
_root.buildhintstop.gotoAndStop(1);
_root.master_pointeur.viseurConstruction = false;
_root.master_pointeur.zoneBombardement = false;
_root.carte.viseurConstruction._x = -500;
_root.carte.indicateurPortee._x = -2000;
_root.carte.indicateurPortee._width = 0;
_root.carte.zoneBombardement._x = -500;
_root.master_pointeur.unshowInfoOnUnit();
_root.jukeboxPanel._y = -700;
}
}
onClipEvent (load) {
function OCEMM() {
if (this._x < -100) {
return(false);
}
if ((this._x == ancienX) && (this._y == ancienY)) {
return(false);
}
ancienX = this._x;
ancienY = this._y;
var _local5 = _parent.surfaceForBuild;
var _local7 = this._x + _parent._x;
var _local6 = this._y + _parent._y;
if (_local5.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop("normal");
} else {
this.gotoAndStop("red");
}
this.logoBuild.gotoAndStop(construction.type);
var _local4 = 0;
while (_local4 < _root.master_units.unitsAlliees.length) {
if (this.hitTest(_root.master_units.unitsAlliees[_local4])) {
this.gotoAndStop("red");
}
this.logoBuild.gotoAndStop(construction.type);
_local4++;
}
if (_root.master_menuItems.euros < construction.cost) {
this.gotoAndStop("red");
this.logoBuild.gotoAndStop(construction.type);
this.indicMoney.gotoAndPlay("NM");
}
if (_root.carte.indicateurPortee._width != construction.portee) {
_root.carte.indicateurPortee._width = construction.portee * 2;
}
if (_root.carte.indicateurPortee._height != construction.portee) {
_root.carte.indicateurPortee._height = construction.portee * 2;
}
if (_root.carte.indicateurPortee._x != this._x) {
_root.carte.indicateurPortee._x = this._x;
}
if (_root.carte.indicateurPortee._y != this._y) {
_root.carte.indicateurPortee._y = this._y;
}
}
var ancienX = this._x;
var ancienY = this._y;
setInterval(this, "OCEMM", 40);
}
Instance of Symbol 17 MovieClip "ltg" in Symbol 720 MovieClip Frame 1
onClipEvent (load) {
function reposition() {
var _local2 = {x:0, y:0};
_root.carte.ltg.localToGlobal(_local2);
var _local4 = _local2.x - 400;
var _local3 = _local2.y - 300;
if (_root.carte.ltg._x != (_root.carte.ltg._x - _local4)) {
_root.carte.ltg._x = _root.carte.ltg._x - _local4;
}
if (_root.carte.ltg._y != (_root.carte.ltg._y - _local3)) {
_root.carte.ltg._y = _root.carte.ltg._y - _local3;
}
}
this._alpha = 0;
setInterval(this, "reposition", 20);
}
Instance of Symbol 728 MovieClip in Symbol 729 MovieClip Frame 1
onClipEvent (load) {
this.txt.text = "Cancel";
}
on (rollOver) {
this._alpha = 100;
}
on (rollOut) {
this._alpha = 45;
}
on (press) {
if (_root.master_menuItems.lockItem == false) {
_root.master_menuItems.lockItem = true;
_root.master_sounds.creationUnite.start();
this._alpha = 45;
_parent._x = -500;
}
}
Instance of Symbol 728 MovieClip in Symbol 729 MovieClip Frame 1
onClipEvent (load) {
this.txt.text = "Confirm";
}
on (rollOver) {
if (_root.master_menuItems.iUnlock < _root.master_menuItems.unlockerLength) {
this._alpha = 100;
}
}
on (rollOut) {
this._alpha = 45;
}
on (press) {
if (_root.master_menuItems.lockItem == false) {
if (_root.master_menuItems.confirmBuy()) {
_root.master_menuItems.lockItem = true;
_root.master_sounds.creationUnite.start();
this._alpha = 45;
_parent._x = -500;
} else {
_root.master_sounds.cannot.start();
}
}
}
Symbol 738 MovieClip Frame 1
stop();
Symbol 750 MovieClip Frame 1
if (_root.langue == "french") {
this.info.text = this.information;
}
stop();
Instance of Symbol 414 MovieClip in Symbol 750 MovieClip Frame 1
on (press) {
_parent._x = -800;
_root.master_sounds.selectionUnite.start();
}
Instance of Symbol 734 MovieClip in Symbol 750 MovieClip Frame 1
onClipEvent (load) {
this.label.text = "prices";
if (!_root.loadGame) {
}
}
on (press) {
_root.master_sounds.selectionUnite.start();
_parent.gotoAndStop("prices");
}
Instance of Symbol 734 MovieClip in Symbol 750 MovieClip Frame 1
onClipEvent (load) {
this.label.text = "tips";
if (!_root.loadGame) {
}
}
on (press) {
_root.master_sounds.selectionUnite.start();
_parent.gotoAndStop("tips");
}
Instance of Symbol 738 MovieClip in Symbol 750 MovieClip Frame 1
on (press) {
_root.master_scenario.replay();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 750 MovieClip Frame 2
stop();
Instance of Symbol 414 MovieClip in Symbol 750 MovieClip Frame 2
on (press) {
_parent._x = -800;
}
Instance of Symbol 734 MovieClip in Symbol 750 MovieClip Frame 2
onClipEvent (load) {
this.label.text = "keys";
if (!_root.loadGame) {
}
}
on (press) {
_root.master_sounds.selectionUnite.start();
_parent.gotoAndStop("keys");
}
Instance of Symbol 734 MovieClip in Symbol 750 MovieClip Frame 2
onClipEvent (load) {
this.label.text = "prices";
if (!_root.loadGame) {
}
}
Symbol 750 MovieClip Frame 3
if (_root.langue == "french") {
this.info.text = this.information;
}
stop();
Instance of Symbol 734 MovieClip in Symbol 750 MovieClip Frame 3
onClipEvent (load) {
this.label.text = "prices";
if (!_root.loadGame) {
}
}
on (press) {
_root.master_sounds.selectionUnite.start();
_parent.gotoAndStop("prices");
}
Instance of Symbol 734 MovieClip in Symbol 750 MovieClip Frame 3
onClipEvent (load) {
this.label.text = "tips";
if (!_root.loadGame) {
}
}
Symbol 768 MovieClip Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
function createFacette() {
alpha = alpha + ((Math.PI/180) * (kpi * 0.7));
if (augmente) {
kpi = kpi + 0.01;
} else {
kpi = kpi - 0.01;
}
if (kpi >= 3) {
augmente = false;
} else if (kpi <= 1) {
augmente = true;
}
xr = 5 * (Math.sin(alpha) * Math.cos(alpha / 2));
yr = Math.sin(alpha) * Math.cos(alpha * 2);
if (alpha == (Math.PI*2)) {
alpha = 0;
}
_root.attachMovie("facette", "f" + i, 101000 + i);
_root["f" + i]._x = (_root._xmouse - (k / 2)) + (Math.random() * k);
_root["f" + i]._y = (_root._ymouse - (k / 2)) + (Math.random() * k);
_root["f" + i]._x = (xr * ro) + decalX;
_root["f" + i]._y = (yr * ro) + decalY;
_root["f" + i].inode = i;
if (i >= 1000) {
i = 0;
}
i++;
}
function setScores() {
if (_root.consoleCheats.cheatMode == false) {
this.score1.text = "" + _root.master_menuItems.score;
this.score2.text = "" + _root.master_menuItems.score;
this.score3.text = "" + _root.master_menuItems.score;
this.score4.text = "" + _root.master_menuItems.score;
this.score5.text = "" + _root.master_menuItems.score;
} else {
this.score1.text = "cheat mode";
this.score2.text = "cheat mode";
this.score3.text = "cheat mode";
this.score4.text = "cheat mode";
this.score5.text = "cheat mode";
}
}
i = 0;
alpha = 0;
ro = 50;
decalX = 400;
decalY = 250;
kpi = 0;
augmente = true;
setInterval(this, "setScores", 50);
if (_root.langue == "french") {
this.inforr.text = "Merci d'avoir jou\u00E9 \u00E0 \"The Commander's Sister\".\nComme le jeu est facilement piratable, il n'y a pas de score en ligne.\n\nS'il vous plait, parlez de ce jeu \u00E0 vos amis, \u00E7a me motivera pour r\u00E9aliser le prochain \u00E9pisode. Merci ...";
}
Instance of Symbol 551 MovieClip in Symbol 768 MovieClip Frame 1
on (press) {
}
Instance of Symbol 738 MovieClip in Symbol 768 MovieClip Frame 1
on (press) {
_root.master_scenario.replay();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 769 MovieClip Frame 1
stop();
Instance of Symbol 551 MovieClip in Symbol 769 MovieClip Frame 1
on (press) {
}
Symbol 769 MovieClip Frame 2
function gotoLoop() {
this.gotoAndPlay("loopt");
clearInterval(intervalID);
}
gotoAndPlay ("loopt");
play();
Symbol 769 MovieClip Frame 91
stop();
Instance of Symbol 551 MovieClip in Symbol 772 MovieClip Frame 1
on (press) {
}
Instance of Symbol 738 MovieClip in Symbol 772 MovieClip Frame 1
on (press) {
_root.master_scenario.replay();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 773 MovieClip Frame 30
stop();
Symbol 778 MovieClip Frame 1
stop();
Symbol 778 MovieClip Frame 2
stop();
Symbol 803 MovieClip Frame 1
stop();
Symbol 803 MovieClip Frame 2
stop();
Symbol 803 MovieClip Frame 3
stop();
Symbol 803 MovieClip Frame 4
stop();
Symbol 803 MovieClip Frame 5
stop();
Symbol 803 MovieClip Frame 6
stop();
Symbol 803 MovieClip Frame 7
stop();
Symbol 803 MovieClip Frame 8
stop();
Symbol 803 MovieClip Frame 9
stop();
Symbol 803 MovieClip Frame 10
stop();
Symbol 803 MovieClip Frame 11
stop();
Symbol 803 MovieClip Frame 12
stop();
Symbol 804 MovieClip Frame 1
stop();
Symbol 804 MovieClip Frame 2
stop();
Symbol 804 MovieClip Frame 3
stop();
Symbol 804 MovieClip Frame 4
play();
Symbol 805 MovieClip Frame 1
stop();
Instance of Symbol 804 MovieClip "TCanonIonBlanc" in Symbol 805 MovieClip Frame 1
on (press) {
buildTurret();
}
onClipEvent (load) {
function buildTurret() {
if (_root.master_menuItems.unlocker[this.name] && (_root.master_menuItems.euros >= this.cost)) {
_root.carte.viseurConstruction.construction = this;
_root.carte.viseurConstruction.ancienX = -548;
_root.carte.zoneBombardement._x = -500;
_root.master_pointeur.viseurConstruction = true;
_root.master_pointeur.zoneBombardement = false;
this.gotoAndPlay("press");
} else if (_root.master_menuItems.unlocker[this.name] == false) {
_root.master_menuItems.buyWeapon(this.name);
_root.master_sounds.creationUnite.start();
} else {
_root.master_sounds.cannot.start();
}
}
this.cost = _root.master_units.GTDDU.TCanonIonBlanc[5];
this.portee = _root.master_units.GTDDU.TCanonIonBlanc[2];
this.structure = "TCanonIonBlanc";
this.type = "TCanonIonBlanc";
this.name = "TCanonIonBlanc";
this.item.gotoAndStop(this.name);
if (!_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("lock");
}
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("over");
}
info = (((((((((((((((("White Ion canon\n\n\nprice\t" + _root.master_units.GTDDU[this.name][5]) + newline) + "power\t") + _root.master_units.GTDDU[this.name][0]) + newline) + "impact\t") + _root.master_units.GTDDU[this.name][1]) + newline) + "range\t") + _root.master_units.GTDDU[this.name][2]) + newline) + "rate\t") + _parent._parent.round2Dec(_root.master_units.GTDDU[this.name][3])) + newline) + "life\t") + _root.master_units.GTDDU[this.name][4]) + newline;
_parent._parent.informations.showInfoOfItem(info);
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("normal");
}
_parent._parent.informations.unshowInfoOfItem();
}
Instance of Symbol 804 MovieClip "TNucleo" in Symbol 805 MovieClip Frame 1
on (press) {
buildTurret();
}
onClipEvent (load) {
function buildTurret() {
if (_root.master_menuItems.unlocker[this.name] && (_root.master_menuItems.euros >= this.cost)) {
_root.carte.viseurConstruction.construction = this;
_root.carte.viseurConstruction.ancienX = -548;
_root.carte.zoneBombardement._x = -500;
_root.master_pointeur.viseurConstruction = true;
_root.master_pointeur.zoneBombardement = false;
this.gotoAndPlay("press");
} else if (_root.master_menuItems.unlocker[this.name] == false) {
_root.master_menuItems.buyWeapon(this.name);
_root.master_sounds.creationUnite.start();
} else {
_root.master_sounds.cannot.start();
}
}
this.cost = _root.master_units.GTDDU.TNucleo[5];
this.portee = _root.master_units.GTDDU.TNucleo[2];
this.structure = "TNucleo";
this.type = "TNucleo";
this.name = "TNucleo";
this.item.gotoAndStop(this.name);
if (!_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("lock");
}
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("over");
}
info = (((((((((((((((("Nuclear missile\n\nprice\t" + _root.master_units.GTDDU[this.name][5]) + newline) + "power\t") + _root.master_units.GTDDU[this.name][0]) + newline) + "impact\t") + _root.master_units.GTDDU[this.name][1]) + newline) + "range\t") + _root.master_units.GTDDU[this.name][2]) + newline) + "rate\t") + _parent._parent.round2Dec(_root.master_units.GTDDU[this.name][3])) + newline) + "life\t") + _root.master_units.GTDDU[this.name][4]) + newline;
_parent._parent.informations.showInfoOfItem(info);
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("normal");
}
_parent._parent.informations.unshowInfoOfItem();
}
Instance of Symbol 804 MovieClip "TBerthaPlasma" in Symbol 805 MovieClip Frame 1
on (press) {
buildTurret();
}
onClipEvent (load) {
function buildTurret() {
if (_root.master_menuItems.unlocker[this.name] && (_root.master_menuItems.euros >= this.cost)) {
_root.carte.viseurConstruction.construction = this;
_root.carte.viseurConstruction.ancienX = -548;
_root.carte.zoneBombardement._x = -500;
_root.master_pointeur.viseurConstruction = true;
_root.master_pointeur.zoneBombardement = false;
this.gotoAndPlay("press");
} else if (_root.master_menuItems.unlocker[this.name] == false) {
_root.master_menuItems.buyWeapon(this.name);
_root.master_sounds.creationUnite.start();
} else {
_root.master_sounds.cannot.start();
}
}
this.cost = _root.master_units.GTDDU.TBerthaPlasma[5];
this.portee = _root.master_units.GTDDU.TBerthaPlasma[2];
this.structure = "TBerthaPlasma";
this.type = "TBerthaPlasma";
this.name = "TBerthaPlasma";
this.item.gotoAndStop(this.name);
if (!_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("lock");
}
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("over");
}
info = (((((((((((((((("B.E.R.T.H.A.\nHeavy plasma canon\n\nprice\t" + _root.master_units.GTDDU[this.name][5]) + newline) + "power\t") + _root.master_units.GTDDU[this.name][0]) + newline) + "impact\t") + _root.master_units.GTDDU[this.name][1]) + newline) + "range\t") + _root.master_units.GTDDU[this.name][2]) + newline) + "rate\t") + _parent._parent.round2Dec(_root.master_units.GTDDU[this.name][3])) + newline) + "life\t") + _root.master_units.GTDDU[this.name][4]) + newline;
_parent._parent.informations.showInfoOfItem(info);
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("normal");
}
_parent._parent.informations.unshowInfoOfItem();
}
Instance of Symbol 804 MovieClip "su37" in Symbol 805 MovieClip Frame 1
on (press) {
if (_root.master_menuItems.unlocker[this.name]) {
_root.master_pointeur.zoneBombardement = true;
_root.master_pointeur.viseurConstruction = false;
_root.carte.viseurConstruction.ancienX = -548;
_root.carte.viseurConstruction._x = -500;
_root.carte.indicateurPortee._x = -2000;
_root.carte.indicateurPortee._width = 0;
this.gotoAndPlay("press");
} else {
_root.master_sounds.cannot.start();
}
}
onClipEvent (load) {
this.name = "su37";
this.item.gotoAndStop(this.name);
if (!_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("lock");
}
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("over");
}
info = (((((((((((((((("Galactic Air Force\nBomber \"Berkut III\"\n\nprice\t" + _root.master_units.GTDDU[this.name][5]) + newline) + "power\t") + _root.master_units.GTDDU[this.name][0]) + newline) + "impact\t") + _root.master_units.GTDDU[this.name][1]) + newline) + "range\t") + _root.master_units.GTDDU[this.name][2]) + newline) + "rate\t") + _root.master_units.GTDDU[this.name][3]) + newline) + "life\t") + _root.master_units.GTDDU[this.name][4]) + newline;
_parent._parent.informations.showInfoOfItem(info);
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("normal");
}
_parent._parent.informations.unshowInfoOfItem();
}
Instance of Symbol 804 MovieClip "TCanonIonRouge" in Symbol 805 MovieClip Frame 1
on (press) {
buildTurret();
}
onClipEvent (load) {
function buildTurret() {
if (_root.master_menuItems.unlocker[this.name] && (_root.master_menuItems.euros >= this.cost)) {
_root.carte.viseurConstruction.construction = this;
_root.carte.viseurConstruction.ancienX = -548;
_root.carte.zoneBombardement._x = -500;
_root.master_pointeur.viseurConstruction = true;
_root.master_pointeur.zoneBombardement = false;
this.gotoAndPlay("press");
} else if (_root.master_menuItems.unlocker[this.name] == false) {
_root.master_menuItems.buyWeapon(this.name);
_root.master_sounds.creationUnite.start();
} else {
_root.master_sounds.cannot.start();
}
}
this.cost = _root.master_units.GTDDU.TCanonIonRouge[5];
this.portee = _root.master_units.GTDDU.TCanonIonRouge[2];
this.structure = "TCanonIonRouge";
this.type = "TCanonIonRouge";
this.name = "TCanonIonRouge";
this.item.gotoAndStop(this.name);
if (!_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("lock");
}
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("over");
}
info = (((((((((((((((("Red Ion Canon\n\n\nprice\t" + _root.master_units.GTDDU[this.name][5]) + newline) + "power\t") + _root.master_units.GTDDU[this.name][0]) + newline) + "impact\t") + _root.master_units.GTDDU[this.name][1]) + newline) + "range\t") + _root.master_units.GTDDU[this.name][2]) + newline) + "rate\t") + _parent._parent.round2Dec(_root.master_units.GTDDU[this.name][3])) + newline) + "life\t") + _root.master_units.GTDDU[this.name][4]) + newline;
_parent._parent.informations.showInfoOfItem(info);
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("normal");
}
_parent._parent.informations.unshowInfoOfItem();
}
Instance of Symbol 804 MovieClip "TDoubleMoyenVert" in Symbol 805 MovieClip Frame 1
on (press) {
buildTurret();
}
onClipEvent (load) {
function buildTurret() {
if (_root.master_menuItems.unlocker[this.name] && (_root.master_menuItems.euros >= this.cost)) {
_root.carte.viseurConstruction.construction = this;
_root.carte.viseurConstruction.ancienX = -548;
_root.carte.zoneBombardement._x = -500;
_root.master_pointeur.viseurConstruction = true;
_root.master_pointeur.zoneBombardement = false;
this.gotoAndPlay("press");
} else if (_root.master_menuItems.unlocker[this.name] == false) {
_root.master_menuItems.buyWeapon(this.name);
_root.master_sounds.creationUnite.start();
} else {
_root.master_sounds.cannot.start();
}
}
this.cost = _root.master_units.GTDDU.TDoubleMoyenVert[5];
this.portee = _root.master_units.GTDDU.TDoubleMoyenVert[2];
this.structure = "TDoubleMoyenVert";
this.type = "TDoubleMoyenVert";
this.name = "TDoubleMoyenVert";
this.item.gotoAndStop(this.name);
if (!_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("lock");
}
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("over");
}
info = (((((((((((((((("Green laser TWIN\nLong Range\n\nprice\t" + _root.master_units.GTDDU[this.name][5]) + newline) + "power\t") + _root.master_units.GTDDU[this.name][0]) + newline) + "impact\t") + _root.master_units.GTDDU[this.name][1]) + newline) + "range\t") + _root.master_units.GTDDU[this.name][2]) + newline) + "rate\t") + _parent._parent.round2Dec(_root.master_units.GTDDU[this.name][3])) + newline) + "life\t") + _root.master_units.GTDDU[this.name][4]) + newline;
_parent._parent.informations.showInfoOfItem(info);
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("normal");
}
_parent._parent.informations.unshowInfoOfItem();
}
Instance of Symbol 804 MovieClip "TBouclier" in Symbol 805 MovieClip Frame 1
on (press) {
buildTurret();
}
onClipEvent (load) {
function buildTurret() {
if (_root.master_menuItems.unlocker[this.name] && (_root.master_menuItems.euros >= this.cost)) {
_root.carte.viseurConstruction.construction = this;
_root.carte.viseurConstruction.ancienX = -548;
_root.carte.zoneBombardement._x = -500;
_root.master_pointeur.viseurConstruction = true;
_root.master_pointeur.zoneBombardement = false;
this.gotoAndPlay("press");
} else {
_root.master_sounds.cannot.start();
}
}
this.cost = _root.master_units.GTDDU.TBouclier[5];
this.portee = _root.master_units.GTDDU.TBouclier[2];
this.structure = "TBouclier";
this.type = "TBouclier";
this.name = "TBouclier";
this.item.gotoAndStop(this.name);
if (!_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("lock");
}
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("over");
}
info = (((((((((((((((("Protective shield\nprotects turrets\n\nprice\t" + _root.master_units.GTDDU[this.name][5]) + newline) + "power\t") + _root.master_units.GTDDU[this.name][0]) + newline) + "impact\t") + _root.master_units.GTDDU[this.name][1]) + newline) + "range\t") + _root.master_units.GTDDU[this.name][2]) + newline) + "rate\t") + _root.master_units.GTDDU[this.name][3]) + newline) + "life\t") + _root.master_units.GTDDU[this.name][4]) + newline;
_parent._parent.informations.showInfoOfItem(info);
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("normal");
}
_parent._parent.informations.unshowInfoOfItem();
}
Instance of Symbol 804 MovieClip "TAAMissile" in Symbol 805 MovieClip Frame 1
on (press) {
buildTurret();
}
onClipEvent (load) {
function buildTurret() {
if (_root.master_menuItems.unlocker[this.name] && (_root.master_menuItems.euros >= this.cost)) {
_root.carte.viseurConstruction.construction = this;
_root.carte.viseurConstruction.ancienX = -548;
_root.carte.zoneBombardement._x = -500;
_root.master_pointeur.viseurConstruction = true;
_root.master_pointeur.zoneBombardement = false;
this.gotoAndPlay("press");
} else if (_root.master_menuItems.unlocker[this.name] == false) {
_root.master_menuItems.buyWeapon(this.name);
_root.master_sounds.creationUnite.start();
} else {
_root.master_sounds.cannot.start();
}
}
this.cost = _root.master_units.GTDDU.TAAMissile[5];
this.portee = _root.master_units.GTDDU.TAAMissile[2];
this.structure = "TAAMissile";
this.type = "TAAMissile";
this.name = "TAAMissile";
this.item.gotoAndStop(this.name);
if (!_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("lock");
}
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("over");
}
info = (((((((((((((((("AA Missile\nhits air only\n\nprice\t" + _root.master_units.GTDDU[this.name][5]) + newline) + "power\t") + _root.master_units.GTDDU[this.name][0]) + newline) + "impact\t") + _root.master_units.GTDDU[this.name][1]) + newline) + "range\t") + _root.master_units.GTDDU[this.name][2]) + newline) + "rate\t") + _parent._parent.round2Dec(_root.master_units.GTDDU[this.name][3])) + newline) + "life\t") + _root.master_units.GTDDU[this.name][4]) + newline;
_parent._parent.informations.showInfoOfItem(info);
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("normal");
}
_parent._parent.informations.unshowInfoOfItem();
}
Instance of Symbol 804 MovieClip "TLaserLegerRouge" in Symbol 805 MovieClip Frame 1
on (press) {
buildTurret();
}
onClipEvent (load) {
function buildTurret() {
if (_root.master_menuItems.unlocker[this.name] && (_root.master_menuItems.euros >= this.cost)) {
if (_root.carte.surfaceForBuild._alpha == 0) {
_root.carte.surfaceForBuild._alpha = 15;
}
_root.buildhintstop.gotoAndStop(2);
_root.carte.viseurConstruction.construction = this;
_root.carte.viseurConstruction.ancienX = -548;
_root.carte.zoneBombardement._x = -500;
_root.master_pointeur.viseurConstruction = true;
_root.master_pointeur.zoneBombardement = false;
this.gotoAndPlay("press");
} else {
_root.master_sounds.cannot.start();
_root.buildhintstop.gotoAndStop(3);
}
}
this.cost = _root.master_units.GTDDU.TLaserLegerRouge[5];
this.portee = _root.master_units.GTDDU.TLaserLegerRouge[2];
this.structure = "TLaserLegerRouge";
this.type = "TLaserLegerRouge";
this.name = "TLaserLegerRouge";
this.item.gotoAndStop(this.name);
if (!_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("lock");
}
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("over");
}
info = (((((((((((((((("Light red laser\n\n\nprice\t" + _root.master_units.GTDDU[this.name][5]) + newline) + "power\t") + _root.master_units.GTDDU[this.name][0]) + newline) + "impact\t") + _root.master_units.GTDDU[this.name][1]) + newline) + "range\t") + _root.master_units.GTDDU[this.name][2]) + newline) + "rate\t") + _parent._parent.round2Dec(_root.master_units.GTDDU[this.name][3])) + newline) + "life\t") + _root.master_units.GTDDU[this.name][4]) + newline;
_parent._parent.informations.showInfoOfItem(info);
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("normal");
}
_parent._parent.informations.unshowInfoOfItem();
}
Instance of Symbol 804 MovieClip "TLaserMoyenBleu" in Symbol 805 MovieClip Frame 1
on (press) {
buildTurret();
}
onClipEvent (load) {
function buildTurret() {
if (_root.master_menuItems.unlocker[this.name] && (_root.master_menuItems.euros >= this.cost)) {
if (_root.carte.surfaceForBuild._alpha == 0) {
_root.carte.surfaceForBuild._alpha = 15;
}
_root.buildhintstop.gotoAndStop(2);
_root.carte.viseurConstruction.construction = this;
_root.carte.viseurConstruction.ancienX = -548;
_root.carte.zoneBombardement._x = -500;
_root.master_pointeur.viseurConstruction = true;
_root.master_pointeur.zoneBombardement = false;
this.gotoAndPlay("press");
} else {
_root.master_sounds.cannot.start();
_root.buildhintstop.gotoAndStop(3);
}
}
this.cost = _root.master_units.GTDDU.TLaserMoyenBleu[5];
this.portee = _root.master_units.GTDDU.TLaserMoyenBleu[2];
this.structure = "TLaserMoyenBleu";
this.type = "TLaserMoyenBleu";
this.name = "TLaserMoyenBleu";
this.item.gotoAndStop(this.name);
if (!_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("lock");
}
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("over");
}
info = (((((((((((((((("Weak light laser\nLong Range\n\nprice\t" + _root.master_units.GTDDU[this.name][5]) + newline) + "power\t") + _root.master_units.GTDDU[this.name][0]) + newline) + "impact\t") + _root.master_units.GTDDU[this.name][1]) + newline) + "range\t") + _root.master_units.GTDDU[this.name][2]) + newline) + "rate\t") + _parent._parent.round2Dec(_root.master_units.GTDDU[this.name][3])) + newline) + "life\t") + _root.master_units.GTDDU[this.name][4]) + newline;
_parent._parent.informations.showInfoOfItem(info);
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("normal");
}
_parent._parent.informations.unshowInfoOfItem();
}
Instance of Symbol 804 MovieClip "TDoubleLaserLegerRouge" in Symbol 805 MovieClip Frame 1
on (press) {
buildTurret();
}
onClipEvent (load) {
function buildTurret() {
if (_root.master_menuItems.unlocker[this.name] && (_root.master_menuItems.euros >= this.cost)) {
if (_root.carte.surfaceForBuild._alpha == 0) {
_root.carte.surfaceForBuild._alpha = 15;
}
_root.buildhintstop.gotoAndStop(2);
_root.carte.viseurConstruction.construction = this;
_root.carte.viseurConstruction.ancienX = -548;
_root.carte.zoneBombardement._x = -500;
_root.master_pointeur.viseurConstruction = true;
_root.master_pointeur.zoneBombardement = false;
this.gotoAndPlay("press");
} else {
_root.master_sounds.cannot.start();
_root.buildhintstop.gotoAndStop(3);
}
}
this.cost = _root.master_units.GTDDU.TDoubleLaserLegerRouge[5];
this.portee = _root.master_units.GTDDU.TDoubleLaserLegerRouge[2];
this.structure = "TDoubleLaserLegerRouge";
this.type = "TDoubleLaserLegerRouge";
this.name = "TDoubleLaserLegerRouge";
this.item.gotoAndStop(this.name);
if (!_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("lock");
}
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("over");
}
info = (((((((((((((((("Medium red laser BAT.\n\nprice\t" + _root.master_units.GTDDU[this.name][5]) + newline) + "power\t") + _root.master_units.GTDDU[this.name][0]) + newline) + "impact\t") + _root.master_units.GTDDU[this.name][1]) + newline) + "range\t") + _root.master_units.GTDDU[this.name][2]) + newline) + "rate\t") + _parent._parent.round2Dec(_root.master_units.GTDDU[this.name][3])) + newline) + "life\t") + _root.master_units.GTDDU[this.name][4]) + newline;
_parent._parent.informations.showInfoOfItem(info);
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("normal");
}
_parent._parent.informations.unshowInfoOfItem();
}
Instance of Symbol 804 MovieClip "TDoublePlasma" in Symbol 805 MovieClip Frame 1
on (press) {
buildTurret();
}
onClipEvent (load) {
function buildTurret() {
if (_root.master_menuItems.unlocker[this.name] && (_root.master_menuItems.euros >= this.cost)) {
if (_root.carte.surfaceForBuild._alpha == 0) {
_root.carte.surfaceForBuild._alpha = 15;
}
_root.buildhintstop.gotoAndStop(2);
_root.carte.viseurConstruction.construction = this;
_root.carte.viseurConstruction.ancienX = -548;
_root.carte.zoneBombardement._x = -500;
_root.master_pointeur.viseurConstruction = true;
_root.master_pointeur.zoneBombardement = false;
this.gotoAndPlay("press");
} else {
_root.master_sounds.cannot.start();
_root.buildhintstop.gotoAndStop(3);
}
}
this.cost = _root.master_units.GTDDU.TDoublePlasma[5];
this.portee = _root.master_units.GTDDU.TDoublePlasma[2];
this.structure = "TDoublePlasma";
this.type = "TDoublePlasma";
this.name = "TDoublePlasma";
this.item.gotoAndStop(this.name);
if (!_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("lock");
}
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("over");
}
info = (((((((((((((((("Medium Plasma TWIN\n\n\nprice\t" + _root.master_units.GTDDU[this.name][5]) + newline) + "power\t") + _root.master_units.GTDDU[this.name][0]) + newline) + "impact\t") + _root.master_units.GTDDU[this.name][1]) + newline) + "range\t") + _root.master_units.GTDDU[this.name][2]) + newline) + "rate\t") + _parent._parent.round2Dec(_root.master_units.GTDDU[this.name][3])) + newline) + "life\t") + _root.master_units.GTDDU[this.name][4]) + newline;
_parent._parent.informations.showInfoOfItem(info);
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("normal");
}
_parent._parent.informations.unshowInfoOfItem();
}
Symbol 805 MovieClip Frame 2
stop();
Instance of Symbol 804 MovieClip "TCanonIonRouge" in Symbol 805 MovieClip Frame 2
on (press) {
buildTurret();
}
onClipEvent (load) {
function buildTurret() {
if (_root.master_menuItems.unlocker[this.name] && (_root.master_menuItems.euros >= this.cost)) {
if (_root.carte.surfaceForBuild._alpha == 0) {
_root.carte.surfaceForBuild._alpha = 15;
}
_root.buildhintstop.gotoAndStop(2);
_root.carte.viseurConstruction.construction = this;
_root.carte.viseurConstruction.ancienX = -548;
_root.carte.zoneBombardement._x = -500;
_root.master_pointeur.viseurConstruction = true;
_root.master_pointeur.zoneBombardement = false;
this.gotoAndPlay("press");
} else if (_root.master_menuItems.unlocker[this.name] == false) {
_root.master_menuItems.buyWeapon(this.name);
_root.master_sounds.creationUnite.start();
} else {
_root.master_sounds.cannot.start();
_root.buildhintstop.gotoAndStop(3);
}
}
this.cost = _root.master_units.GTDDU.TCanonIonRouge[5];
this.portee = _root.master_units.GTDDU.TCanonIonRouge[2];
this.structure = "TCanonIonRouge";
this.type = "TCanonIonRouge";
this.name = "TCanonIonRouge";
this.item.gotoAndStop(this.name);
if (!_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("lock");
}
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("over");
}
info = (((((((((((((((("Red Ion Canon\n\n\nprice\t" + _root.master_units.GTDDU[this.name][5]) + newline) + "power\t") + _root.master_units.GTDDU[this.name][0]) + newline) + "impact\t") + _root.master_units.GTDDU[this.name][1]) + newline) + "range\t") + _root.master_units.GTDDU[this.name][2]) + newline) + "rate\t") + _parent._parent.round2Dec(_root.master_units.GTDDU[this.name][3])) + newline) + "life\t") + _root.master_units.GTDDU[this.name][4]) + newline;
_parent._parent.informations.showInfoOfItem(info);
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("normal");
}
_parent._parent.informations.unshowInfoOfItem();
}
Instance of Symbol 804 MovieClip "TDoubleMoyenVert" in Symbol 805 MovieClip Frame 2
on (press) {
buildTurret();
}
onClipEvent (load) {
function buildTurret() {
if (_root.master_menuItems.unlocker[this.name] && (_root.master_menuItems.euros >= this.cost)) {
if (_root.carte.surfaceForBuild._alpha == 0) {
_root.carte.surfaceForBuild._alpha = 15;
}
_root.buildhintstop.gotoAndStop(2);
_root.carte.viseurConstruction.construction = this;
_root.carte.viseurConstruction.ancienX = -548;
_root.carte.zoneBombardement._x = -500;
_root.master_pointeur.viseurConstruction = true;
_root.master_pointeur.zoneBombardement = false;
this.gotoAndPlay("press");
} else if (_root.master_menuItems.unlocker[this.name] == false) {
_root.master_menuItems.buyWeapon(this.name);
_root.master_sounds.creationUnite.start();
} else {
_root.master_sounds.cannot.start();
_root.buildhintstop.gotoAndStop(3);
}
}
this.cost = _root.master_units.GTDDU.TDoubleMoyenVert[5];
this.portee = _root.master_units.GTDDU.TDoubleMoyenVert[2];
this.structure = "TDoubleMoyenVert";
this.type = "TDoubleMoyenVert";
this.name = "TDoubleMoyenVert";
this.item.gotoAndStop(this.name);
if (!_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("lock");
}
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("over");
}
info = (((((((((((((((("Green laser TWIN\nLong Range\n\nprice\t" + _root.master_units.GTDDU[this.name][5]) + newline) + "power\t") + _root.master_units.GTDDU[this.name][0]) + newline) + "impact\t") + _root.master_units.GTDDU[this.name][1]) + newline) + "range\t") + _root.master_units.GTDDU[this.name][2]) + newline) + "rate\t") + _parent._parent.round2Dec(_root.master_units.GTDDU[this.name][3])) + newline) + "life\t") + _root.master_units.GTDDU[this.name][4]) + newline;
_parent._parent.informations.showInfoOfItem(info);
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("normal");
}
_parent._parent.informations.unshowInfoOfItem();
}
Instance of Symbol 804 MovieClip "TBouclier" in Symbol 805 MovieClip Frame 2
on (press) {
buildTurret();
}
onClipEvent (load) {
function buildTurret() {
if (_root.master_menuItems.unlocker[this.name] && (_root.master_menuItems.euros >= this.cost)) {
if (_root.carte.surfaceForBuild._alpha == 0) {
_root.carte.surfaceForBuild._alpha = 15;
}
_root.buildhintstop.gotoAndStop(2);
_root.carte.viseurConstruction.construction = this;
_root.carte.viseurConstruction.ancienX = -548;
_root.carte.zoneBombardement._x = -500;
_root.master_pointeur.viseurConstruction = true;
_root.master_pointeur.zoneBombardement = false;
this.gotoAndPlay("press");
} else {
_root.master_sounds.cannot.start();
_root.buildhintstop.gotoAndStop(3);
}
}
this.cost = _root.master_units.GTDDU.TBouclier[5];
this.portee = _root.master_units.GTDDU.TBouclier[2];
this.structure = "TBouclier";
this.type = "TBouclier";
this.name = "TBouclier";
this.item.gotoAndStop(this.name);
if (!_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("lock");
}
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("over");
}
info = (((((((((((((((("Protective shield\nprotects turrets\n\nprice\t" + _root.master_units.GTDDU[this.name][5]) + newline) + "power\t") + _root.master_units.GTDDU[this.name][0]) + newline) + "impact\t") + _root.master_units.GTDDU[this.name][1]) + newline) + "range\t") + _root.master_units.GTDDU[this.name][2]) + newline) + "rate\t") + _root.master_units.GTDDU[this.name][3]) + newline) + "life\t") + _root.master_units.GTDDU[this.name][4]) + newline;
_parent._parent.informations.showInfoOfItem(info);
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("normal");
}
_parent._parent.informations.unshowInfoOfItem();
}
Instance of Symbol 804 MovieClip "TAAMissile" in Symbol 805 MovieClip Frame 2
on (press) {
buildTurret();
}
onClipEvent (load) {
function buildTurret() {
if (_root.master_menuItems.unlocker[this.name] && (_root.master_menuItems.euros >= this.cost)) {
if (_root.carte.surfaceForBuild._alpha == 0) {
_root.carte.surfaceForBuild._alpha = 15;
}
_root.buildhintstop.gotoAndStop(2);
_root.carte.viseurConstruction.construction = this;
_root.carte.viseurConstruction.ancienX = -548;
_root.carte.zoneBombardement._x = -500;
_root.master_pointeur.viseurConstruction = true;
_root.master_pointeur.zoneBombardement = false;
this.gotoAndPlay("press");
} else if (_root.master_menuItems.unlocker[this.name] == false) {
_root.master_menuItems.buyWeapon(this.name);
_root.master_sounds.creationUnite.start();
} else {
_root.master_sounds.cannot.start();
_root.buildhintstop.gotoAndStop(3);
}
}
this.cost = _root.master_units.GTDDU.TAAMissile[5];
this.portee = _root.master_units.GTDDU.TAAMissile[2];
this.structure = "TAAMissile";
this.type = "TAAMissile";
this.name = "TAAMissile";
this.item.gotoAndStop(this.name);
if (!_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("lock");
}
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("over");
}
info = (((((((((((((((("AA Missile\nhits air only\n\nprice\t" + _root.master_units.GTDDU[this.name][5]) + newline) + "power\t") + _root.master_units.GTDDU[this.name][0]) + newline) + "impact\t") + _root.master_units.GTDDU[this.name][1]) + newline) + "range\t") + _root.master_units.GTDDU[this.name][2]) + newline) + "rate\t") + _parent._parent.round2Dec(_root.master_units.GTDDU[this.name][3])) + newline) + "life\t") + _root.master_units.GTDDU[this.name][4]) + newline;
_parent._parent.informations.showInfoOfItem(info);
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("normal");
}
_parent._parent.informations.unshowInfoOfItem();
}
Symbol 805 MovieClip Frame 3
stop();
Instance of Symbol 804 MovieClip "TCanonIonBlanc" in Symbol 805 MovieClip Frame 3
on (press) {
buildTurret();
}
onClipEvent (load) {
function buildTurret() {
if (_root.master_menuItems.unlocker[this.name] && (_root.master_menuItems.euros >= this.cost)) {
if (_root.carte.surfaceForBuild._alpha == 0) {
_root.carte.surfaceForBuild._alpha = 15;
}
_root.buildhintstop.gotoAndStop(2);
_root.carte.viseurConstruction.construction = this;
_root.carte.viseurConstruction.ancienX = -548;
_root.carte.zoneBombardement._x = -500;
_root.master_pointeur.viseurConstruction = true;
_root.master_pointeur.zoneBombardement = false;
this.gotoAndPlay("press");
} else if (_root.master_menuItems.unlocker[this.name] == false) {
_root.master_menuItems.buyWeapon(this.name);
_root.master_sounds.creationUnite.start();
} else {
_root.master_sounds.cannot.start();
_root.buildhintstop.gotoAndStop(3);
}
}
this.cost = _root.master_units.GTDDU.TCanonIonBlanc[5];
this.portee = _root.master_units.GTDDU.TCanonIonBlanc[2];
this.structure = "TCanonIonBlanc";
this.type = "TCanonIonBlanc";
this.name = "TCanonIonBlanc";
this.item.gotoAndStop(this.name);
if (!_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("lock");
}
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("over");
}
info = (((((((((((((((("White Ion canon\n\n\nprice\t" + _root.master_units.GTDDU[this.name][5]) + newline) + "power\t") + _root.master_units.GTDDU[this.name][0]) + newline) + "impact\t") + _root.master_units.GTDDU[this.name][1]) + newline) + "range\t") + _root.master_units.GTDDU[this.name][2]) + newline) + "rate\t") + _parent._parent.round2Dec(_root.master_units.GTDDU[this.name][3])) + newline) + "life\t") + _root.master_units.GTDDU[this.name][4]) + newline;
_parent._parent.informations.showInfoOfItem(info);
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("normal");
}
_parent._parent.informations.unshowInfoOfItem();
}
Instance of Symbol 804 MovieClip "TNucleo" in Symbol 805 MovieClip Frame 3
on (press) {
buildTurret();
}
onClipEvent (load) {
function buildTurret() {
if (_root.master_menuItems.unlocker[this.name] && (_root.master_menuItems.euros >= this.cost)) {
if (_root.carte.surfaceForBuild._alpha == 0) {
_root.carte.surfaceForBuild._alpha = 15;
}
_root.buildhintstop.gotoAndStop(2);
_root.carte.viseurConstruction.construction = this;
_root.carte.viseurConstruction.ancienX = -548;
_root.carte.zoneBombardement._x = -500;
_root.master_pointeur.viseurConstruction = true;
_root.master_pointeur.zoneBombardement = false;
this.gotoAndPlay("press");
} else if (_root.master_menuItems.unlocker[this.name] == false) {
_root.master_menuItems.buyWeapon(this.name);
_root.master_sounds.creationUnite.start();
} else {
_root.master_sounds.cannot.start();
_root.buildhintstop.gotoAndStop(3);
}
}
this.cost = _root.master_units.GTDDU.TNucleo[5];
this.portee = _root.master_units.GTDDU.TNucleo[2];
this.structure = "TNucleo";
this.type = "TNucleo";
this.name = "TNucleo";
this.item.gotoAndStop(this.name);
if (!_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("lock");
}
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("over");
}
info = (((((((((((((((("Nuclear missile\n\nprice\t" + _root.master_units.GTDDU[this.name][5]) + newline) + "power\t") + _root.master_units.GTDDU[this.name][0]) + newline) + "impact\t") + _root.master_units.GTDDU[this.name][1]) + newline) + "range\t") + _root.master_units.GTDDU[this.name][2]) + newline) + "rate\t") + _parent._parent.round2Dec(_root.master_units.GTDDU[this.name][3])) + newline) + "life\t") + _root.master_units.GTDDU[this.name][4]) + newline;
_parent._parent.informations.showInfoOfItem(info);
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("normal");
}
_parent._parent.informations.unshowInfoOfItem();
}
Instance of Symbol 804 MovieClip "TBerthaPlasma" in Symbol 805 MovieClip Frame 3
on (press) {
buildTurret();
}
onClipEvent (load) {
function buildTurret() {
if (_root.master_menuItems.unlocker[this.name] && (_root.master_menuItems.euros >= this.cost)) {
if (_root.carte.surfaceForBuild._alpha == 0) {
_root.carte.surfaceForBuild._alpha = 15;
}
_root.buildhintstop.gotoAndStop(2);
_root.carte.viseurConstruction.construction = this;
_root.carte.viseurConstruction.ancienX = -548;
_root.carte.zoneBombardement._x = -500;
_root.master_pointeur.viseurConstruction = true;
_root.master_pointeur.zoneBombardement = false;
this.gotoAndPlay("press");
} else if (_root.master_menuItems.unlocker[this.name] == false) {
_root.master_menuItems.buyWeapon(this.name);
_root.master_sounds.creationUnite.start();
} else {
_root.master_sounds.cannot.start();
_root.buildhintstop.gotoAndStop(3);
}
}
this.cost = _root.master_units.GTDDU.TBerthaPlasma[5];
this.portee = _root.master_units.GTDDU.TBerthaPlasma[2];
this.structure = "TBerthaPlasma";
this.type = "TBerthaPlasma";
this.name = "TBerthaPlasma";
this.item.gotoAndStop(this.name);
if (!_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("lock");
}
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("over");
}
info = (((((((((((((((("B.E.R.T.H.A.\nHeavy plasma canon\n\nprice\t" + _root.master_units.GTDDU[this.name][5]) + newline) + "power\t") + _root.master_units.GTDDU[this.name][0]) + newline) + "impact\t") + _root.master_units.GTDDU[this.name][1]) + newline) + "range\t") + _root.master_units.GTDDU[this.name][2]) + newline) + "rate\t") + _parent._parent.round2Dec(_root.master_units.GTDDU[this.name][3])) + newline) + "life\t") + _root.master_units.GTDDU[this.name][4]) + newline;
_parent._parent.informations.showInfoOfItem(info);
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("normal");
}
_parent._parent.informations.unshowInfoOfItem();
}
Instance of Symbol 804 MovieClip "su37" in Symbol 805 MovieClip Frame 3
on (press) {
if (_root.master_menuItems.unlocker[this.name]) {
_root.master_pointeur.zoneBombardement = true;
_root.master_pointeur.viseurConstruction = false;
_root.carte.viseurConstruction.ancienX = -548;
_root.carte.viseurConstruction._x = -500;
_root.carte.indicateurPortee._x = -2000;
_root.carte.indicateurPortee._width = 0;
this.gotoAndPlay("press");
} else {
_root.master_sounds.cannot.start();
_root.buildhintstop.gotoAndStop(3);
}
}
onClipEvent (load) {
this.name = "su37";
this.item.gotoAndStop(this.name);
if (!_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("lock");
}
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("over");
}
info = (((((((((((((((("Galactic Air Force\nBomber \"Berkut III\"\n\nprice\t" + _root.master_units.GTDDU[this.name][5]) + newline) + "power\t") + _root.master_units.GTDDU[this.name][0]) + newline) + "impact\t") + _root.master_units.GTDDU[this.name][1]) + newline) + "range\t") + _root.master_units.GTDDU[this.name][2]) + newline) + "rate\t") + _root.master_units.GTDDU[this.name][3]) + newline) + "life\t") + _root.master_units.GTDDU[this.name][4]) + newline;
_parent._parent.informations.showInfoOfItem(info);
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
if (_root.master_menuItems.unlocker[this.name]) {
this.gotoAndStop("normal");
}
_parent._parent.informations.unshowInfoOfItem();
}
Symbol 820 MovieClip Frame 1
stop();
Symbol 820 MovieClip Frame 2
stop();
Symbol 820 MovieClip Frame 3
stop();
Symbol 820 MovieClip Frame 4
stop();
Symbol 820 MovieClip Frame 5
stop();
Symbol 820 MovieClip Frame 6
stop();
Symbol 827 MovieClip Frame 1
stop();
Symbol 827 MovieClip Frame 2
stop();
Symbol 827 MovieClip Frame 3
stop();
Symbol 827 MovieClip Frame 4
stop();
Symbol 827 MovieClip Frame 5
stop();
Symbol 827 MovieClip Frame 6
stop();
Symbol 828 MovieClip Frame 1
stop();
Instance of Symbol 820 MovieClip in Symbol 828 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_parent.butDet);
}
Symbol 828 MovieClip Frame 2
stop();
Instance of Symbol 827 MovieClip in Symbol 828 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(_parent.butDet);
}
Symbol 828 MovieClip Frame 3
play();
Symbol 831 MovieClip Frame 1
stop();
Symbol 831 MovieClip Frame 2
stop();
Instance of Symbol 828 MovieClip "helpB" in Symbol 832 MovieClip Frame 1
on (rollOver) {
_root.master_pointeur.surMenu = true;
this.b.gotoAndStop("b");
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
this.b.gotoAndStop("a");
}
on (press) {
this.gotoAndPlay("pressed");
_root.helpBoard._x = 320;
_root.helpBoard._y = 335;
_root.master_sounds.selectionUnite.start();
}
onClipEvent (load) {
gotoAndStop (1);
butDet = 1;
}
on (rollOut) {
gotoAndStop (1);
_parent.indicPlus.gotoAndStop(1);
}
on (rollOver) {
gotoAndStop (2);
_parent.indicPlus.gotoAndStop(2);
_parent.indicPlus.txt.text = "help";
}
Instance of Symbol 828 MovieClip "menuArea" in Symbol 832 MovieClip Frame 1
on (rollOver) {
_root.master_pointeur.surMenu = true;
this.b.gotoAndStop("b");
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
this.b.gotoAndStop("a");
}
on (press) {
this.gotoAndPlay("pressed");
if (_root.carte.surfaceForBuild._alpha == 0) {
_root.carte.surfaceForBuild._alpha = 15;
} else {
_root.carte.surfaceForBuild._alpha = 0;
}
_root.master_sounds.selectionUnite.start();
}
onClipEvent (load) {
gotoAndStop (1);
butDet = 2;
}
on (rollOut) {
gotoAndStop (1);
_parent.indicPlus.gotoAndStop(1);
}
on (rollOver) {
gotoAndStop (2);
_parent.indicPlus.gotoAndStop(2);
_parent.indicPlus.txt.text = "build area";
}
Instance of Symbol 828 MovieClip "menuZoomM" in Symbol 832 MovieClip Frame 1
on (rollOver) {
_root.master_pointeur.surMenu = true;
this.b.gotoAndStop("b");
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
this.b.gotoAndStop("a");
}
on (press) {
this.gotoAndPlay("pressed");
_root.master_sounds.selectionUnite.start();
_root.master_pointeur.AdZoom(1);
}
onClipEvent (load) {
gotoAndStop (1);
butDet = 4;
}
on (rollOut) {
gotoAndStop (1);
_parent.indicPlus.gotoAndStop(1);
}
on (rollOver) {
gotoAndStop (2);
_parent.indicPlus.gotoAndStop(2);
_parent.indicPlus.txt.text = "zoom +";
}
Instance of Symbol 828 MovieClip "menuZoomP" in Symbol 832 MovieClip Frame 1
on (rollOver) {
_root.master_pointeur.surMenu = true;
this.b.gotoAndStop("b");
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
this.b.gotoAndStop("a");
}
on (press) {
this.gotoAndPlay("pressed");
_root.master_pointeur.AdZoom(0);
_root.master_sounds.selectionUnite.start();
}
onClipEvent (load) {
gotoAndStop (1);
butDet = 3;
}
on (rollOut) {
gotoAndStop (1);
_parent.indicPlus.gotoAndStop(1);
}
on (rollOver) {
gotoAndStop (2);
_parent.indicPlus.gotoAndStop(2);
_parent.indicPlus.txt.text = "zoom -";
}
Instance of Symbol 828 MovieClip "menuHealth" in Symbol 832 MovieClip Frame 1
on (rollOver) {
_root.master_pointeur.surMenu = true;
this.b.gotoAndStop("b");
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
this.b.gotoAndStop("a");
}
on (press) {
this.gotoAndPlay("pressed");
if (_root.master_clavier.afficheEtat) {
_root.master_clavier.afficheEtat = false;
} else {
_root.master_clavier.afficheEtat = true;
}
_root.master_sounds.selectionUnite.start();
}
onClipEvent (load) {
gotoAndStop (1);
butDet = 5;
}
on (rollOut) {
gotoAndStop (1);
_parent.indicPlus.gotoAndStop(1);
}
on (rollOver) {
gotoAndStop (2);
_parent.indicPlus.gotoAndStop(2);
_parent.indicPlus.txt.text = "health";
}
Instance of Symbol 828 MovieClip "musicB" in Symbol 832 MovieClip Frame 1
on (rollOver) {
_root.master_pointeur.surMenu = true;
this.b.gotoAndStop("b");
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
this.b.gotoAndStop("a");
}
on (press) {
this.gotoAndPlay("pressed");
if (_root.master_sounds.isPause) {
_root.master_sounds.playMusic();
} else {
_root.master_sounds.pauseMusic();
}
_root.master_sounds.selectionUnite.start();
}
onClipEvent (load) {
gotoAndStop (1);
butDet = 6;
}
on (rollOut) {
gotoAndStop (1);
_parent.indicPlus.gotoAndStop(1);
}
on (rollOver) {
gotoAndStop (2);
_parent.indicPlus.gotoAndStop(2);
_parent.indicPlus.txt.text = "music on/off";
}
Symbol 839 MovieClip Frame 1
stop();
Symbol 839 MovieClip Frame 2
stop();
Symbol 839 MovieClip Frame 3
play();
Symbol 844 Button
on (release) {
getURL ("http://www.arcadebomb.com", "_blank");
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
}
Symbol 845 MovieClip Frame 1
function turnConstruction(dir) {
if (dir == "left") {
if (curPanel > 1) {
curPanel--;
} else {
curPanel = 3;
}
} else if (dir == "right") {
if (curPanel < 3) {
curPanel++;
} else {
curPanel = 1;
}
}
_root.master_sounds.boutonScroll.start();
constructionCont.TLaserLegerRouge.swapDepths(1);
constructionCont.TLaserMoyenBleu.swapDepths(2);
constructionCont.TDoubleLaserLegerRouge.swapDepths(3);
constructionCont.TDoublePlasma.swapDepths(4);
constructionCont.TCanonIonRouge.swapDepths(5);
constructionCont.TDoubleMoyenVert.swapDepths(6);
constructionCont.TBouclier.swapDepths(7);
constructionCont.TLaserLegerRouge.swapDepths(8);
constructionCont.TNucleo.swapDepths(9);
constructionCont.TCanonIonBlanc.swapDepths(10);
constructionCont.TBerthaPlasma.swapDepths(11);
constructionCont.su37.swapDepths(12);
constructionCont.TLaserLegerRouge._alpha = 0;
constructionCont.TLaserMoyenBleu._alpha = 0;
constructionCont.TDoubleLaserLegerRouge._alpha = 0;
constructionCont.TDoublePlasma._alpha = 0;
constructionCont.TCanonIonRouge._alpha = 0;
constructionCont.TDoubleMoyenVert._alpha = 0;
constructionCont.TBouclier._alpha = 0;
constructionCont.TLaserLegerRouge._alpha = 0;
constructionCont.TNucleo._alpha = 0;
constructionCont.TCanonIonBlanc._alpha = 0;
constructionCont.TBerthaPlasma._alpha = 0;
constructionCont.su37._alpha = 0;
if (curPanel == 1) {
constructionCont.TLaserLegerRouge.swapDepths(13);
constructionCont.TLaserMoyenBleu.swapDepths(14);
constructionCont.TDoubleLaserLegerRouge.swapDepths(15);
constructionCont.TDoublePlasma.swapDepths(16);
constructionCont.TLaserLegerRouge._alpha = 100;
constructionCont.TLaserMoyenBleu._alpha = 100;
constructionCont.TDoubleLaserLegerRouge._alpha = 100;
constructionCont.TDoublePlasma._alpha = 100;
} else if (curPanel == 2) {
constructionCont.TCanonIonRouge.swapDepths(13);
constructionCont.TDoubleMoyenVert.swapDepths(14);
constructionCont.TBouclier.swapDepths(15);
constructionCont.TAAMissile.swapDepths(16);
constructionCont.TCanonIonRouge._alpha = 100;
constructionCont.TDoubleMoyenVert._alpha = 100;
constructionCont.TBouclier._alpha = 100;
constructionCont.TAAMissile._alpha = 100;
} else if (curPanel == 3) {
constructionCont.TCanonIonBlanc.swapDepths(13);
constructionCont.TBerthaPlasma.swapDepths(14);
constructionCont.TNucleo.swapDepths(15);
constructionCont.su37.swapDepths(16);
constructionCont.TCanonIonBlanc._alpha = 100;
constructionCont.TBerthaPlasma._alpha = 100;
constructionCont.TNucleo._alpha = 100;
constructionCont.su37._alpha = 100;
}
return(true);
}
function round2Dec(toRound) {
toRound = toRound / 24;
toRound = toRound * 100;
toRound = Math.round(toRound);
toRound = toRound / 100;
return(toRound + " sec.");
}
curPanel = 1;
Instance of Symbol 778 MovieClip "bg" in Symbol 845 MovieClip Frame 1
on (rollOver) {
_root.master_pointeur.surMenu = true;
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
}
onClipEvent (load) {
this.gotoAndStop("hide");
}
on (press) {
_root.master_clavier.depressSpace();
}
Instance of Symbol 653 MovieClip in Symbol 845 MovieClip Frame 1
on (press) {
var diffX = ((_root._xmouse - 642) * 30.7692);
var diffY = ((_root._ymouse - 160) * 30.7692);
_root.carte.ltg._x = -8 + diffX;
_root.carte.ltg._y = 592 + diffY;
var ptE = {x:0, y:0};
_root.carte.ltg.localToGlobal(ptE);
var decalX = (400 - ptE.x);
var decalY = (300 - ptE.y);
_root.carte._x = _root.carte._x + decalX;
_root.carte._y = _root.carte._y + decalY;
_root.master_pointeur.repositionneMap();
_root.indicateurMiniMap._x = _root.viseurMiniMap._x;
_root.indicateurMiniMap._y = _root.viseurMiniMap._y;
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
_root.master_pointeur.viseurMiniMapBool = true;
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
_root.master_pointeur.viseurMiniMapBool = false;
_root.viseurMiniMap._x = -500;
}
Instance of Symbol 832 MovieClip "informations" in Symbol 845 MovieClip Frame 1
onClipEvent (load) {
function actualiseInfo() {
_root.infoMoneyAndScore.euros.text = _root.master_menuItems.euros + " $";
if (_root.consoleCheats.cheatMode == false) {
_root.infoMoneyAndScore.score.text = _root.master_menuItems.score;
} else {
_root.infoMoneyAndScore.score.text = "cheat mod";
}
}
function showInfoOfItem(information) {
this.infoItems.gotoAndStop("show");
this.infoItems.infoItems.text = information;
}
function unshowInfoOfItem() {
this.infoItems.gotoAndStop("hide");
}
this.infoItems.gotoAndStop("hide");
setInterval(this, "actualiseInfo", 100);
}
Instance of Symbol 839 MovieClip "arrowL" in Symbol 845 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
on (rollOut) {
gotoAndStop (1);
}
on (rollOver) {
gotoAndStop (2);
}
on (press) {
this.gotoAndPlay("pressed");
if (!_parent.turnConstruction("left")) {
this.gotoAndPlay("wrong");
}
_root.carte.surfaceForBuild._alpha = 0;
_root.buildhintstop.gotoAndStop(1);
_root.master_pointeur.viseurConstruction = false;
_root.carte.viseurConstruction._x = -500;
_root.carte.indicateurPortee._x = -2000;
_root.carte.indicateurPortee._width = 0;
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
}
Instance of Symbol 839 MovieClip "arrowR" in Symbol 845 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
on (rollOut) {
gotoAndStop (1);
}
on (rollOver) {
gotoAndStop (2);
}
on (press) {
this.gotoAndPlay("pressed");
if (!_parent.turnConstruction("right")) {
this.gotoAndPlay("wrong");
}
_root.carte.surfaceForBuild._alpha = 0;
_root.buildhintstop.gotoAndStop(1);
_root.master_pointeur.viseurConstruction = false;
_root.carte.viseurConstruction._x = -500;
_root.carte.indicateurPortee._x = -2000;
_root.carte.indicateurPortee._width = 0;
}
on (rollOver) {
_root.master_pointeur.surMenu = true;
}
on (rollOut) {
_root.master_pointeur.surMenu = false;
}
Symbol 859 MovieClip Frame 1
stop();
Symbol 859 MovieClip Frame 2
stop();
Instance of Symbol 414 MovieClip in Symbol 860 MovieClip Frame 1
on (press) {
_parent._x = -700;
}
Instance of Symbol 854 MovieClip in Symbol 860 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 50;
this.txt.text = "Act of instinct";
}
on (rollOver) {
this._alpha = 100;
}
on (rollOut) {
this._alpha = 50;
}
on (press) {
if ((!_root.master_sounds.edithBool) && (!_root.master_sounds.yamatoBattle)) {
this.selectionUnite.start();
_root.master_sounds.changeMusic(0);
_parent.pauser.isOff = false;
_parent.pauser.txt.text = "music off";
}
}
Instance of Symbol 854 MovieClip in Symbol 860 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 50;
this.txt.text = "Hell march";
}
on (rollOver) {
this._alpha = 100;
}
on (rollOut) {
this._alpha = 50;
}
on (press) {
if ((!_root.master_sounds.edithBool) && (!_root.master_sounds.yamatoBattle)) {
this.selectionUnite.start();
_root.master_sounds.changeMusic(1);
_parent.pauser.isOff = false;
_parent.pauser.txt.text = "music off";
}
}
Instance of Symbol 854 MovieClip in Symbol 860 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 50;
this.txt.text = "Just do it up";
}
on (rollOver) {
this._alpha = 100;
}
on (rollOut) {
this._alpha = 50;
}
on (press) {
if ((!_root.master_sounds.edithBool) && (!_root.master_sounds.yamatoBattle)) {
this.selectionUnite.start();
_root.master_sounds.changeMusic(2);
_parent.pauser.isOff = false;
_parent.pauser.txt.text = "music off";
}
}
Instance of Symbol 854 MovieClip "pauser" in Symbol 860 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 50;
this.txt.text = "music off";
this.isOff = false;
}
on (rollOver) {
this._alpha = 100;
}
on (rollOut) {
this._alpha = 50;
}
on (press) {
if ((!_root.master_sounds.edithBool) && (!_root.master_sounds.yamatoBattle)) {
if (isOff) {
_root.master_sounds.playMusic();
isOff = false;
this.txt.text = "music off";
} else {
_root.master_sounds.pauseMusic();
isOff = true;
this.txt.text = "music on";
}
}
}
Instance of Symbol 859 MovieClip "s1" in Symbol 860 MovieClip Frame 1
onClipEvent (load) {
this.level = 15;
this.gotoAndStop(1);
}
on (rollOver) {
this.gotoAndStop(1);
_parent.s2.gotoAndStop(2);
_parent.s3.gotoAndStop(2);
_parent.s4.gotoAndStop(2);
_parent.s5.gotoAndStop(2);
_root.master_sounds.changeLevels("sounds", level);
_root.master_sounds.selectionUnite.start();
}
Instance of Symbol 859 MovieClip "s2" in Symbol 860 MovieClip Frame 1
onClipEvent (load) {
this.level = 35;
this.gotoAndStop(1);
}
on (rollOver) {
this.gotoAndStop(1);
_parent.s1.gotoAndStop(1);
_parent.s3.gotoAndStop(2);
_parent.s4.gotoAndStop(2);
_parent.s5.gotoAndStop(2);
_root.master_sounds.changeLevels("sounds", level);
_root.master_sounds.selectionUnite.start();
}
Instance of Symbol 859 MovieClip "s3" in Symbol 860 MovieClip Frame 1
onClipEvent (load) {
this.level = 50;
this.gotoAndStop(1);
}
on (rollOver) {
this.gotoAndStop(1);
_parent.s1.gotoAndStop(1);
_parent.s2.gotoAndStop(1);
_parent.s4.gotoAndStop(2);
_parent.s5.gotoAndStop(2);
_root.master_sounds.changeLevels("sounds", level);
_root.master_sounds.selectionUnite.start();
}
Instance of Symbol 859 MovieClip "s4" in Symbol 860 MovieClip Frame 1
onClipEvent (load) {
this.level = 80;
this.gotoAndStop(2);
}
on (rollOver) {
this.gotoAndStop(1);
_parent.s1.gotoAndStop(1);
_parent.s2.gotoAndStop(1);
_parent.s3.gotoAndStop(1);
_parent.s5.gotoAndStop(2);
_root.master_sounds.changeLevels("sounds", level);
_root.master_sounds.selectionUnite.start();
}
Instance of Symbol 859 MovieClip "s5" in Symbol 860 MovieClip Frame 1
onClipEvent (load) {
this.level = 100;
this.gotoAndStop(2);
}
on (rollOver) {
this.gotoAndStop(1);
_parent.s1.gotoAndStop(1);
_parent.s2.gotoAndStop(1);
_parent.s3.gotoAndStop(1);
_parent.s4.gotoAndStop(1);
_root.master_sounds.changeLevels("sounds", level);
_root.master_sounds.selectionUnite.start();
}
Instance of Symbol 859 MovieClip "m1" in Symbol 860 MovieClip Frame 1
onClipEvent (load) {
this.level = 15;
this.gotoAndStop(1);
}
on (rollOver) {
this.gotoAndStop(1);
_parent.m2.gotoAndStop(2);
_parent.m3.gotoAndStop(2);
_parent.m4.gotoAndStop(2);
_parent.m5.gotoAndStop(2);
_root.master_sounds.changeLevels("music", level);
}
Instance of Symbol 859 MovieClip "m2" in Symbol 860 MovieClip Frame 1
onClipEvent (load) {
this.level = 35;
this.gotoAndStop(1);
}
on (rollOver) {
this.gotoAndStop(1);
_parent.m1.gotoAndStop(1);
_parent.m3.gotoAndStop(2);
_parent.m4.gotoAndStop(2);
_parent.m5.gotoAndStop(2);
_root.master_sounds.changeLevels("music", level);
}
Instance of Symbol 859 MovieClip "m3" in Symbol 860 MovieClip Frame 1
onClipEvent (load) {
this.level = 50;
this.gotoAndStop(1);
}
on (rollOver) {
this.gotoAndStop(1);
_parent.m1.gotoAndStop(1);
_parent.m2.gotoAndStop(1);
_parent.m4.gotoAndStop(2);
_parent.m5.gotoAndStop(2);
_root.master_sounds.changeLevels("music", level);
}
Instance of Symbol 859 MovieClip "m4" in Symbol 860 MovieClip Frame 1
onClipEvent (load) {
this.level = 80;
this.gotoAndStop(1);
}
on (rollOver) {
this.gotoAndStop(1);
_parent.m1.gotoAndStop(1);
_parent.m2.gotoAndStop(1);
_parent.m3.gotoAndStop(1);
_parent.m5.gotoAndStop(2);
_root.master_sounds.changeLevels("music", level);
}
Instance of Symbol 859 MovieClip "m5" in Symbol 860 MovieClip Frame 1
onClipEvent (load) {
this.level = 100;
this.gotoAndStop(1);
}
on (rollOver) {
this.gotoAndStop(1);
_parent.m1.gotoAndStop(1);
_parent.m2.gotoAndStop(1);
_parent.m3.gotoAndStop(1);
_parent.m4.gotoAndStop(1);
_root.master_sounds.changeLevels("music", level);
}
Instance of Symbol 414 MovieClip in Symbol 866 MovieClip Frame 1
on (press) {
_parent._x = -400;
_root.master_sounds.creationUnite.start();
}
Symbol 869 MovieClip Frame 1
stop();
Instance of Symbol 867 MovieClip in Symbol 869 MovieClip Frame 1
on (press) {
}
Symbol 869 MovieClip Frame 2
play();
Symbol 869 MovieClip Frame 80
function nextDialogue() {
if (it == textes.length) {
_root.end._x = 400;
_root.end._y = 300;
_root.master_sounds.pauseMusic();
_root.end.gotoAndPlay(2);
clearInterval(idtempo);
} else {
dialogue.text = textes[it];
clearInterval(idtempo);
idtempo = setInterval(this, "nextDialogue", textesTempo[it]);
it++;
}
}
if (_root.langue == "french") {
var textes = new Array("Zhu Fu Lin>\n\nMonsieur, votre diversion \u00E0 r\u00E9ussi. Le suicide de l'amiral Tanaka n'a pas \u00E9t\u00E9 vain, nos artilleurs ont pu piller leurs positions, laissant le chemin libre pour nos hommes. Le campement est sous notre contr\u00F4le.", "Shen Ming>\n\n... bien General Lin ... Le suicide Japonais a conserv\u00E9 tout son honneur, Tanaka est mort dignement, .. nous saurons le lui rendre\n\n... Et ... quand est-il d'elle?", "Zhu Fu Lin>\n\nMademoiselle a bien \u00E9t\u00E9 r\u00E9cup\u00E9r\u00E9e, elle se repose dans une de nos tente ... ", "Shen Ming>\n\n... il me tarde de la revoir, depuis si longtemps ...", "Zhu Fu Lin>\n\nSi je puis me permettre monsieur, sachez que mademoiselle m'a confi\u00E9 qu'elle avait r\u00E9cup\u00E9r\u00E9 les codes de lancements des missiles", "Shen Ming>\n\n... bien ...");
} else {
var textes = new Array("Zhu Fu Lin>\n\nSir, your diversion succeeded. Admiral Tanaka\u2019s suicide wasn\u2019t unavailing, our gunmen forayed their positions leaving a free passage for our men. The camp is under our control.", "Shen Ming>\n\n... Good General Lin, Japanese suicide kept all his honour, Tanaka died with dignity, we will be able to give it back to him ...\n\nAnd what about her?", "Zhu Fu Lin>\n\nThe young lady was safely rescued, she\u2019s taking a rest in one of our tents", "Shen Ming>\n\n... I\u2019m looking forward to seeing her again, since so long ...", "Zhu Fu Lin>\n\nif I may, sir, you should know that she confessed to me that she got the launching codes of missiles back", "Shen Ming>\n\n... good ...");
}
var textesTempo = new Array(13300, 13300, 5600, 4200, 6200, 2800);
var idtempo = 0;
var it = 0;
clock = 0;
nextDialogue();
stop();
Instance of Symbol 875 MovieClip "consoleConfirmation" in Symbol 876 MovieClip Frame 1
onClipEvent (load) {
this.console.text = _parent.texto;
}
Symbol 876 MovieClip Frame 50
stop();
this._x = -4000;
Symbol 883 MovieClip Frame 1
if (!_root.firstaction) {
_visible = false;
stop();
}
Symbol 883 MovieClip Frame 156
if (_root.firstaction) {
gotoAndPlay (2);
} else {
stop();
}
Symbol 896 MovieClip Frame 1
stop();
Instance of Symbol 886 MovieClip in Symbol 896 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.startMissionPause._x == 0) {
if (_parent._currentframe != 2) {
_parent.gotoAndStop(2);
}
} else if (_parent._currentframe != 1) {
_parent.gotoAndStop(1);
}
}
Symbol 896 MovieClip Frame 2
t1._visible = false;
if (route1) {
r1._visible = true;
t1._visible = true;
} else {
r1._visible = false;
}
if (route2) {
r2._visible = true;
t1._visible = true;
} else {
r2._visible = false;
}
if (route3) {
r3._visible = true;
t1._visible = true;
} else {
r3._visible = false;
}
stop();
Symbol 900 MovieClip Frame 40
gotoAndPlay (1);
Symbol 900 MovieClip Frame 93
stop();
Symbol 902 MovieClip Frame 40
_parent.gotoAndStop(1);
Symbol 902 MovieClip Frame 93
stop();
Symbol 903 MovieClip Frame 1
stop();
Symbol 906 MovieClip Frame 2
trace("current zoom : " + _root.master_pointeur.curZoom);
if (_root.master_pointeur.curZoom >= 3) {
if (_root.carte.surfaceForBuild._currentframe != 1) {
trace("change to 1");
_root.carte.surfaceForBuild.gotoAndStop(1);
}
} else if (_root.master_pointeur.curZoom == 2) {
if (_root.carte.surfaceForBuild._currentframe != 2) {
trace("change to 2");
_root.carte.surfaceForBuild.gotoAndStop(2);
}
} else if (_root.master_pointeur.curZoom == 1) {
if (_root.carte.surfaceForBuild._currentframe != 3) {
trace("change to 3");
_root.carte.surfaceForBuild.gotoAndStop(3);
}
}
Symbol 906 MovieClip Frame 15
if ((_root.carte.surfaceForBuild._alpha <= 35) && (_root.carte.surfaceForBuild._alpha != 0)) {
_root.carte.surfaceForBuild._alpha = 35;
}
Symbol 906 MovieClip Frame 30
if ((_root.carte.surfaceForBuild._alpha >= 15) && (_root.carte.surfaceForBuild._alpha != 0)) {
_root.carte.surfaceForBuild._alpha = 15;
}