Frame 1
_root.pok = new Sound();
_root.pok.attachSound("pok");
_root.player = 1;
_root.vibration = false;
_root.difi = "Normal";
nom3 = "Bot2";
pts1 = 0;
pts2 = 0;
_root.start1 = "0";
_root.nom1 = "Player";
_root.nom22 = "Bot";
stop();
Instance of Symbol 62 MovieClip in Frame 1
onClipEvent (enterFrame) {
pts1 = ((_root.nom1 + " ") + _root.pts1) + " pts";
}
Instance of Symbol 65 MovieClip in Frame 1
onClipEvent (enterFrame) {
pts2 = ((_root.nom22 + " ") + _root.pts2) + " pts";
}
Instance of Symbol 67 MovieClip in Frame 1
onClipEvent (load) {
time2 = 0;
}
onClipEvent (enterFrame) {
if (_root.start1 != "1") {
time2 = time2 + 0.2;
if (time2 < 1) {
time = "5";
a5 = "1";
}
if (time2 > 1) {
if (a5 == "1") {
time = "4";
a4 = "1";
}
}
if (time2 > 2) {
if (a4 == "1") {
time = "3";
a3 = "1";
}
}
if (time2 > 3) {
if (a3 == "1") {
a2 = "1";
time = "2";
}
}
if (time2 > 4) {
if (a2 == "1") {
a1 = "1";
time = "1";
}
}
if (time2 > 5) {
if (a1 == "1") {
time = "";
_root.start1 = "1";
a5 = "0";
a4 = "0";
time2 = 0;
a3 = "0";
_root.balle.bx = "0";
a2 = "0";
a1 = "0";
}
}
}
}
Instance of Symbol 72 MovieClip "bard" in Frame 1
onClipEvent (load) {
time = 0;
}
onClipEvent (enterFrame) {
if (_root.player != "2") {
time = time + 0.04;
if (time > 1) {
a = random(6);
time = 0;
}
if (_root.difi == "Normal") {
if (a == 0) {
vit = (_root.balle._y - _y) / 6;
}
if (a == 1) {
vit = (_root.balle._y - _y) / 1;
}
if (a == 2) {
vit = (_root.balle._y - _y) / 2;
}
if (a == 3) {
vit = (_root.balle._y - _y) / 5;
}
if (a == 4) {
vit = (_root.balle._y - _y) / 1.6;
}
if (a == 5) {
vit = (_root.balle._y - _y) / 7;
}
}
_y = (_y + vit);
if (_root.bard.hitTest(_root.murb)) {
_y = (_y - vit);
}
if (_root.bard.hitTest(_root.murh)) {
_y = (_y + vit);
}
if (_y < 224) {
_y = 224;
}
if (_y > 280) {
_y = 280;
}
}
}
Instance of Symbol 78 MovieClip "balle" in Frame 1
onClipEvent (load) {
rbn = 0;
}
onClipEvent (enterFrame) {
if (bond == "1") {
if (rbn > 4) {
rbn = 4;
}
}
if (_root.start1 == "1") {
_visible = true;
if (bx != "1") {
ben = "0";
if (b != "1") {
b = "1";
ax = _x + random(100);
ay = _y + random(100);
if (_root.difi == "Normal") {
vitx = (ax - _x) / 440;
vity = (ay - _y) / 440;
}
if (vitx < 5) {
vitx = 2;
}
if (vity < 5) {
vity = 2;
}
}
if (caca != "1") {
a = random(2);
caca = "1";
}
if (a == 0) {
gd = "g";
}
if (a == 1) {
gd = "d";
}
if (gd == "g") {
if (bxg != "1") {
_x = ((_x - vitx) - rbn);
} else {
_x = ((_x + vitx) + rbn);
}
if (by != "1") {
_y = ((_y - vity) - rbn);
} else {
_y = ((_y + vity) + rbn);
}
}
if (gd == "d") {
if (bxd != "1") {
_x = ((_x + vitx) + rbn);
} else {
_x = ((_x - vitx) - rbn);
}
if (by != "1") {
_y = ((_y - vity) - rbn);
} else {
_y = ((_y + vity) + rbn);
}
}
if (_root.balle.hitTest(_root.murb)) {
_y = ((_y - vity) - rbn);
rbn = rbn + 0.3;
bond = "1";
if (_root.sounds == "off") {
} else {
_root.pok.start();
}
by = "0";
ben = "1";
b = "0";
}
if (_root.balle.hitTest(_root.murh)) {
_y = ((_y + vity) + rbn);
bond = "1";
if (_root.sounds == "off") {
} else {
_root.pok.start();
}
rbn = rbn + 0.3;
by = "1";
ben = "1";
b = "0";
}
if (_root.balle.hitTest(_root.barg)) {
_x = (((_x + vitx) + 10) + rbn);
bond = "1";
if (_root.sounds == "off") {
} else {
_root.pok.start();
}
rbn = rbn + 0.3;
ben = "1";
gd = "g";
bxg = "1";
bxd = "0";
}
if (_root.balle.hitTest(_root.bard)) {
_x = (((_x - vitx) - 10) - rbn);
bond = "1";
if (_root.sounds == "off") {
} else {
_root.pok.start();
}
rbn = rbn + 0.3;
gd = "d";
ben = "1";
bxd = "1";
bxg = "0";
}
if (_root.balle.hitTest(_root.murd)) {
_x = (((_x - vitx) - 1) - rbn);
if (ben != "1") {
rbn = 0;
bx = "1";
_x = 273;
_y = 259;
_root.pts1 = _root.pts1 + 1;
caca = "0";
_root.start1 = "0";
b = "0";
}
}
if (_root.balle.hitTest(_root.murg)) {
_x = (((_x + vitx) + 1) + rbn);
if (ben != "1") {
rbn = 0;
bx = "1";
_x = 273;
_y = 259;
caca = "0";
_root.pts2 = _root.pts2 + 1;
_root.start1 = "0";
b = "0";
}
}
}
} else {
_visible = false;
}
}
Instance of Symbol 72 MovieClip "barg" in Frame 1
onClipEvent (enterFrame) {
a = "0";
if (_root.barg.hitTest(_root.murb)) {
_y = ((_y - vit) - acc);
}
if (_root.barg.hitTest(_root.murh)) {
_y = ((_y + vit) + acc);
}
if (_root.barg.hitTest(_root.murb)) {
} else if (Key.isDown(83)) {
a = "1";
acc = acc + 0.3;
if (acc > 8) {
acc = 8;
}
_y = ((_y + vit) + acc);
}
if (_root.barg.hitTest(_root.murh)) {
} else if (Key.isDown(87)) {
a = "1";
acc = acc + 0.3;
_y = ((_y - vit) - acc);
}
vit = 6;
if (a != "1") {
acc = 0;
}
if (_y < 224) {
_y = 224;
}
if (_y > 280) {
_y = 280;
}
}
Frame 2
stop();
Frame 3
function MurDelete1(aMD, bMD, cMD, dMD) {
if (_root.ctrl) {
delete _root["BUILDobject" + _root.game.game[(((("murX" + ((TENemplx + aMD) + bMD)) + "Y") + ((TENemply + cMD) + dMD)) + "P") + depthP].nume];
delete _root["BUILDobjectX" + _root.game.game[(((("murX" + ((TENemplx + aMD) + bMD)) + "Y") + ((TENemply + cMD) + dMD)) + "P") + depthP].nume];
delete _root["BUILDobjectY" + _root.game.game[(((("murX" + ((TENemplx + aMD) + bMD)) + "Y") + ((TENemply + cMD) + dMD)) + "P") + depthP].nume];
delete _root["BUILDobjectP" + _root.game.game[(((("murX" + ((TENemplx + aMD) + bMD)) + "Y") + ((TENemply + cMD) + dMD)) + "P") + depthP].nume];
delete _root["BUILDobjectT" + _root.game.game[(((("murX" + ((TENemplx + aMD) + bMD)) + "Y") + ((TENemply + cMD) + dMD)) + "P") + depthP].nume];
_root.game.game[(((("murX" + ((TENemplx + aMD) + bMD)) + "Y") + ((TENemply + cMD) + dMD)) + "P") + depthP].removeMovieClip();
}
}
function priceBUILD() {
_root["brick-1price"] = 5;
_root["brick-2price"] = 5;
_root["brick-3price"] = 6;
_root["wall-1price"] = 12;
_root["wall-2price"] = 13;
_root["barbed-1price"] = 25;
_root["aqua-1price"] = 100;
_root["obj-1price"] = 50;
_root["trash-1price"] = 25;
_root["color-1price"] = 5;
_root["color-2price"] = 5;
_root["color-3price"] = 5;
_root["chair-1price"] = 25;
_root["chair-2price"] = 30;
_root["table-1price"] = 150;
_root["compt-1price"] = 75;
_root["compt-2price"] = 75;
_root["table-2price"] = 321;
_root["table-3price"] = 234;
_root["table-4price"] = 100;
_root["table-5price"] = 170;
_root["table-6price"] = 250;
_root["fleur-1price"] = 42;
_root["fleur-2price"] = 10;
_root["fleur-3price"] = 24;
_root["fleur-4price"] = 35;
_root["fleur-5price"] = 20;
_root["fleur-6price"] = 44;
_root["fleur-7price"] = 60;
_root["fleur-8price"] = 75;
_root["fleur-9price"] = 50;
_root["flama-1price"] = 15;
_root["biblio-1price"] = 425;
_root["biblio-2price"] = 485;
_root["biblio-3price"] = 510;
}
function listePRIX() {
_root["obj-1sell"] = Math.round((_root["obj-1price"] / 100) * 80);
_root["aqua-1sell"] = Math.round((_root["aqua-1price"] / 100) * 80);
_root["trash-1sell"] = Math.round((_root["trash-1price"] / 100) * 80);
_root["chair-1sell"] = Math.round((_root["chair-1price"] / 100) * 80);
_root["chair-2sell"] = Math.round((_root["chair-2price"] / 100) * 80);
_root["table-1sell"] = Math.round((_root["table-1price"] / 100) * 80);
_root["table-2sell"] = Math.round((_root["table-2price"] / 100) * 80);
_root["table-3sell"] = Math.round((_root["table-3price"] / 100) * 80);
_root["table-4sell"] = Math.round((_root["table-4price"] / 100) * 80);
_root["table-5sell"] = Math.round((_root["table-5price"] / 100) * 80);
_root["table-6sell"] = Math.round((_root["table-6price"] / 100) * 80);
_root["compt-1sell"] = Math.round((_root["compt-1price"] / 100) * 80);
_root["compt-2sell"] = Math.round((_root["compt-2price"] / 100) * 80);
_root["fleur-1sell"] = Math.round((_root["fleur-1price"] / 100) * 80);
_root["fleur-2sell"] = Math.round((_root["fleur-2price"] / 100) * 80);
_root["fleur-3sell"] = Math.round((_root["fleur-3price"] / 100) * 80);
_root["fleur-4sell"] = Math.round((_root["fleur-4price"] / 100) * 80);
_root["fleur-5sell"] = Math.round((_root["fleur-5price"] / 100) * 80);
_root["fleur-6sell"] = Math.round((_root["fleur-6price"] / 100) * 80);
_root["fleur-7sell"] = Math.round((_root["fleur-7price"] / 100) * 80);
_root["fleur-8sell"] = Math.round((_root["fleur-8price"] / 100) * 80);
_root["fleur-9sell"] = Math.round((_root["fleur-9price"] / 100) * 80);
_root["flama-1sell"] = Math.round((_root["flama-1price"] / 100) * 80);
_root["biblio-1sell"] = Math.round((_root["biblio-1price"] / 100) * 80);
_root["biblio-2sell"] = Math.round((_root["biblio-2price"] / 100) * 80);
_root["biblio-3sell"] = Math.round((_root["biblio-3price"] / 100) * 80);
}
function putCARC(a2Xch, a2Ych) {
_root.numCARC++;
if (Grotationf == 0) {
a2dCH = String((((String(a2Ych + 2) + "0") + String(a2Xch + 2)) + "") + 4);
}
a2dCH = Number(a2dCH);
_root.game.game.createEmptyMovieClip("carc" + _root.numCARC, a2dCH);
_root.game.game["carc" + _root.numCARC].attachMovie("carc1", "skin", 1);
_root.game.game["carc" + _root.numCARC]._x = game.game.grid[(("x" + a2Xch) + "y") + a2Ych]._x;
_root.game.game["carc" + _root.numCARC]._y = game.game.grid[(("x" + a2Xch) + "y") + a2Ych]._y;
_root.game.game["carc" + _root.numCARC].checkMOVE = 0;
_root.game.game["carc" + _root.numCARC].actX = a2Xch;
_root.game.game["carc" + _root.numCARC].actY = a2Ych;
_root.game.game["carc" + _root.numCARC].skinN = 1;
_root.game.game["carc" + _root.numCARC].pp = 0;
_root.game.game["carc" + _root.numCARC].nume = _root.numCARC;
_root.game.game["carc" + _root.numCARC].onEnterFrame = function () {
if (_root.pausedejeuner) {
this.skin.stop();
} else {
this.skin.play();
}
if (this.moving != true) {
this.ARRx = -666;
this.ARRy = -666;
if (_root.pausedejeuner != true) {
this.skin.gotoAndStop(1);
this.checkMOVE = this.checkMOVE + random(50);
if (this.checkMOVE >= 100) {
this.checkMOVE = 0;
this.moving = true;
this.movement = Math.round((random(300) / 100) + 1);
}
}
}
if (this.moving) {
if (this.baloney != true) {
this.skin.gotoAndPlay(1);
this.baloney = true;
if (this.movement == 1) {
if (_root.Grotationf == 0) {
this.attachMovie("carc3", "skin", 1);
this.skinN = 3;
}
if (_root.Grotationf == 90) {
this.attachMovie("carc2", "skin", 1);
this.skinN = 2;
}
if (_root.Grotationf == 180) {
this.attachMovie("carc1", "skin", 1);
this.skinN = 1;
}
if (_root.Grotationf == 270) {
this.attachMovie("carc4", "skin", 1);
this.skinN = 4;
}
this.ARRx = this.actX + 1;
this.ARRy = this.actY;
}
if (this.movement == 2) {
if (_root.Grotationf == 0) {
this.attachMovie("carc2", "skin", 1);
this.skinN = 2;
}
if (_root.Grotationf == 90) {
this.attachMovie("carc1", "skin", 1);
this.skinN = 1;
}
if (_root.Grotationf == 180) {
this.attachMovie("carc4", "skin", 1);
this.skinN = 4;
}
if (_root.Grotationf == 270) {
this.attachMovie("carc3", "skin", 1);
this.skinN = 3;
}
this.ARRx = this.actX;
this.ARRy = this.actY + 1;
}
if (this.movement == 3) {
if (_root.Grotationf == 0) {
this.attachMovie("carc1", "skin", 1);
this.skinN = 1;
}
if (_root.Grotationf == 90) {
this.attachMovie("carc4", "skin", 1);
this.skinN = 4;
}
if (_root.Grotationf == 180) {
this.attachMovie("carc3", "skin", 1);
this.skinN = 3;
}
if (_root.Grotationf == 270) {
this.attachMovie("carc2", "skin", 1);
this.skinN = 2;
}
this.ARRx = this.actX - 1;
this.ARRy = this.actY;
}
if (this.movement == 4) {
if (_root.Grotationf == 0) {
this.attachMovie("carc4", "skin", 1);
this.skinN = 4;
}
if (_root.Grotationf == 90) {
this.attachMovie("carc3", "skin", 1);
this.skinN = 3;
}
if (_root.Grotationf == 180) {
this.attachMovie("carc2", "skin", 1);
this.skinN = 2;
}
if (_root.Grotationf == 270) {
this.attachMovie("carc1", "skin", 1);
this.skinN = 1;
}
this.ARRx = this.actX;
this.ARRy = this.actY - 1;
}
this.no = false;
if (this.ARRx < 0) {
this.ARRx = 0;
this.no = true;
}
if (this.ARRy < 0) {
this.ARRy = 0;
this.no = true;
}
if (this.ARRx >= (_root.gridlx - 2)) {
this.ARRx = _root.gridlx - 3;
this.no = true;
}
if (this.ARRy >= (_root.gridly - 2)) {
this.ARRy = _root.gridly - 3;
this.no = true;
}
this.numC = undefined;
if (_root.Grotationf == 0) {
if (this.numC == undefined) {
this.numC = _root.game.game[((("objX" + this.ARRx) + "Y") + this.ARRy) + "P3"].nume;
}
if (this.numC == undefined) {
if (this.movement == 2) {
this.numC = _root.game.game[((("murX" + (this.ARRx + 1)) + "Y") + (this.ARRy + 1)) + "P1"].nume;
}
if (this.movement == 4) {
this.numC = _root.game.game[((("murX" + (this.ARRx + 1)) + "Y") + (this.ARRy + 2)) + "P1"].nume;
}
}
if (this.numC == undefined) {
if (this.movement == 1) {
this.numC = _root.game.game[((("murX" + (this.ARRx + 1)) + "Y") + (this.ARRy + 1)) + "P2"].nume;
}
if (this.movement == 3) {
this.numC = _root.game.game[((("murX" + (this.ARRx + 2)) + "Y") + (this.ARRy + 1)) + "P2"].nume;
}
}
}
if (_root.Grotationf == 90) {
if (this.numC == undefined) {
this.numC = _root.game.game[((("objX" + this.ARRx) + "Y") + this.ARRy) + "P3"].nume;
}
if (this.numC == undefined) {
if (this.movement == 2) {
this.numC = _root.game.game[((("murX" + (this.ARRx + 1)) + "Y") + (this.ARRy - 2)) + "P1"].nume;
}
if (this.movement == 4) {
this.numC = _root.game.game[((("murX" + (this.ARRx + 1)) + "Y") + (this.ARRy - 1)) + "P1"].nume;
}
}
if (this.numC == undefined) {
if (this.movement == 1) {
this.numC = _root.game.game[((("murX" + (this.ARRx + 1)) + "Y") + (this.ARRy - 1)) + "P2"].nume;
}
if (this.movement == 3) {
this.numC = _root.game.game[((("murX" + (this.ARRx + 2)) + "Y") + (this.ARRy - 1)) + "P2"].nume;
}
}
}
if (_root.Grotationf == 180) {
if (this.numC == undefined) {
this.numC = _root.game.game[((("objX" + this.ARRx) + "Y") + this.ARRy) + "P3"].nume;
}
if (this.numC == undefined) {
if (this.movement == 2) {
this.numC = _root.game.game[((("murX" + (this.ARRx - 1)) + "Y") + (this.ARRy - 2)) + "P1"].nume;
}
if (this.movement == 4) {
this.numC = _root.game.game[((("murX" + (this.ARRx - 1)) + "Y") + (this.ARRy - 1)) + "P1"].nume;
}
}
if (this.numC == undefined) {
if (this.movement == 1) {
this.numC = _root.game.game[((("murX" + (this.ARRx - 2)) + "Y") + (this.ARRy - 1)) + "P2"].nume;
}
if (this.movement == 3) {
this.numC = _root.game.game[((("murX" + (this.ARRx - 1)) + "Y") + (this.ARRy - 1)) + "P2"].nume;
}
}
}
if (_root.Grotationf == 270) {
if (this.numC == undefined) {
this.numC = _root.game.game[((("objX" + this.ARRx) + "Y") + this.ARRy) + "P3"].nume;
}
if (this.numC == undefined) {
if (this.movement == 2) {
this.numC = _root.game.game[((("murX" + (this.ARRx - 1)) + "Y") + (this.ARRy + 1)) + "P1"].nume;
}
if (this.movement == 4) {
this.numC = _root.game.game[((("murX" + (this.ARRx - 1)) + "Y") + (this.ARRy + 2)) + "P1"].nume;
}
}
if (this.numC == undefined) {
if (this.movement == 1) {
this.numC = _root.game.game[((("murX" + (this.ARRx - 2)) + "Y") + (this.ARRy + 1)) + "P2"].nume;
}
if (this.movement == 3) {
this.numC = _root.game.game[((("murX" + (this.ARRx - 1)) + "Y") + (this.ARRy + 1)) + "P2"].nume;
}
}
}
if (this.numC != undefined) {
this.ARRx = this.actX;
this.ARRy = this.actY;
this.no = true;
}
if (_root.Grotationf == 0) {
if (this.movement == 1) {
this.swapDepths(Number(String((((String(this.ARRy + 2) + "0") + String(this.ARRx + 2)) + "") + 4)));
}
if (this.movement == 2) {
this.swapDepths(Number(String((((String(this.ARRy + 2) + "0") + String(this.ARRx + 2)) + "") + 4)));
}
}
if (_root.Grotationf == 90) {
if (this.movement == 1) {
this.swapDepths(Number(String((((String(this.ARRx + 3) + "0") + String(_root.y - (this.ARRy + 2))) + "") + String(4))));
}
if (this.movement == 2) {
this.swapDepths(Number(String((((String(this.ARRx + 3) + "0") + String(_root.y - (this.ARRy + 2))) + "") + String(4))));
}
if (this.movement == 4) {
this.swapDepths(Number(String((((String(this.ARRx + 3) + "0") + String(_root.y - (this.ARRy + 2))) + "") + String(4))));
}
}
if (_root.Grotationf == 180) {
if (this.movement == 1) {
this.swapDepths(Number(String((((String(_root.y - this.ARRy) + "0") + String((_root.x - this.ARRx) + 2)) + "") + String(4))));
}
if (this.movement == 2) {
this.swapDepths(Number(String((((String(_root.y - this.ARRy) + "0") + String((_root.x - this.ARRx) + 2)) + "") + String(4))));
}
if (this.movement == 3) {
this.swapDepths(Number(String((((String(_root.y - this.ARRy) + "0") + String((_root.x - this.ARRx) + 2)) + "") + String(4))));
}
if (this.movement == 4) {
this.swapDepths(Number(String((((String(_root.y - this.ARRy) + "0") + String((_root.x - this.ARRx) + 2)) + "") + String(4))));
}
}
if (_root.Grotationf == 270) {
if (this.movement == 1) {
this.swapDepths(Number(String((((String((_root.x - this.ARRx) + 2) + "0") + String(this.ARRy)) + "") + String(4))));
}
if (this.movement == 2) {
this.swapDepths(Number(String((((String((_root.x - this.ARRx) + 2) + "0") + String(this.ARRy)) + "") + String(4))));
}
if (this.movement == 3) {
this.swapDepths(Number(String((((String((_root.x - this.ARRx) + 2) + "0") + String(this.ARRy)) + "") + String(4))));
}
if (this.movement == 4) {
this.swapDepths(Number(String((((String((_root.x - this.ARRx) + 2) + "0") + String(this.ARRy)) + "") + String(4))));
}
}
this.dep = this.getDepth();
this.vit = 25;
if (_root.game.game.grid[(("x" + this.ARRx) + "y") + this.ARRy]._x > _root.game.game.grid[(("x" + this.actX) + "y") + this.actY]._x) {
this.xH = true;
} else {
this.xH = false;
}
if (_root.game.game.grid[(("x" + this.ARRx) + "y") + this.ARRy]._y > _root.game.game.grid[(("x" + this.actX) + "y") + this.actY]._y) {
this.yH = true;
} else {
this.yH = false;
}
this._x = _root.game.game.grid[(("x" + this.actX) + "y") + this.actY]._x + (((_root.game.game.grid[(("x" + this.ARRx) + "y") + this.ARRy]._x - _root.game.game.grid[(("x" + this.actX) + "y") + this.actY]._x) / this.vit) * this.pp);
this._y = _root.game.game.grid[(("x" + this.actX) + "y") + this.actY]._y + (((_root.game.game.grid[(("x" + this.ARRx) + "y") + this.ARRy]._y - _root.game.game.grid[(("x" + this.actX) + "y") + this.actY]._y) / this.vit) * this.pp);
this.vitX = (_root.game.game.grid[(("x" + this.ARRx) + "y") + this.ARRy]._x - _root.game.game.grid[(("x" + this.actX) + "y") + this.actY]._x) / this.vit;
this.vitY = (_root.game.game.grid[(("x" + this.ARRx) + "y") + this.ARRy]._y - _root.game.game.grid[(("x" + this.actX) + "y") + this.actY]._y) / this.vit;
}
if (_root.pausedejeuner != true) {
if (this.no != true) {
if (this.xA && (this.yA)) {
if (_root.Grotationf == 0) {
if (this.movement == 3) {
this.swapDepths(Number(String((((String(this.ARRy + 2) + "0") + String(this.ARRx + 2)) + "") + 4)));
}
if (this.movement == 4) {
this.swapDepths(Number(String((((String(this.ARRy + 2) + "0") + String(this.ARRx + 2)) + "") + 4)));
}
}
if (_root.Grotationf == 90) {
if (this.movement == 3) {
this.swapDepths(Number(String((((String(this.ARRx + 3) + "0") + String((_root.y - (this.ARRy + 2)) - 0)) + "") + String(4))));
}
}
this.xA = false;
this.yA = false;
this.pp = 0;
this.baloney = false;
this.moving = false;
}
if (this.xH) {
if (this._x >= _root.game.game.grid[(("x" + this.ARRx) + "y") + this.ARRy]._x) {
this.actX = this.ARRx;
this.xA = true;
} else {
this._x = this._x + this.vitX;
this.pp = ((this._x - _root.game.game.grid[(("x" + this.actX) + "y") + this.actY]._x) / (_root.game.game.grid[(("x" + this.ARRx) + "y") + this.ARRy]._x - _root.game.game.grid[(("x" + this.actX) + "y") + this.actY]._x)) * this.vit;
}
} else if (this._x <= _root.game.game.grid[(("x" + this.ARRx) + "y") + this.ARRy]._x) {
this.actX = this.ARRx;
this.xA = true;
} else {
this._x = this._x + this.vitX;
this.pp = ((this._x - _root.game.game.grid[(("x" + this.actX) + "y") + this.actY]._x) / (_root.game.game.grid[(("x" + this.ARRx) + "y") + this.ARRy]._x - _root.game.game.grid[(("x" + this.actX) + "y") + this.actY]._x)) * this.vit;
}
if (this.yH) {
if (this._y >= _root.game.game.grid[(("x" + this.ARRx) + "y") + this.ARRy]._y) {
this.actY = this.ARRy;
this.yA = true;
} else {
this._y = this._y + this.vitY;
}
} else if (this._y <= _root.game.game.grid[(("x" + this.ARRx) + "y") + this.ARRy]._y) {
this.actY = this.ARRy;
this.yA = true;
} else {
this._y = this._y + this.vitY;
}
} else {
if (_root.Grotationf == 0) {
if (this.movement == 3) {
this.swapDepths(Number(String((((String(this.ARRy + 2) + "0") + String(this.ARRx + 2)) + "") + 4)));
}
if (this.movement == 4) {
this.swapDepths(Number(String((((String(this.ARRy + 2) + "0") + String(this.ARRx + 2)) + "") + 4)));
}
}
if (_root.Grotationf == 90) {
if (this.movement == 3) {
this.swapDepths(Number(String((((String(this.ARRx + 3) + "0") + String((_root.y - (this.ARRy + 2)) - 0)) + "") + String(4))));
}
}
this.xA = false;
this.pp = 0;
this.yA = false;
this.baloney = false;
this.moving = false;
}
}
}
};
}
function shitbuild1() {
game.game.pointeur2._visible = false;
game.game.pointeur._visible = false;
_root.game.game.murdup.removeMovieClip();
_root.game.game.pointeur.removeMovieClip();
delete _root.game.game.pointeur.onEnterFrame;
delete _root.game.game.pointeur;
_root.game.game.pointeur._visible = false;
_root.buildingKOKO3 = false;
delete _root.game.game.murdup;
_root.showDOLLAR.removeMovieClip();
_root.showDOLLAR._visible = false;
i = 1;
while (i <= nbBUILDobjectAL) {
_root.game.game["murAL" + i].removeMovieClip();
i++;
}
delete emplx;
delete emply;
delete emply1;
delete emply2;
delete emply3;
delete emplx1;
delete emplx2;
delete emplx3;
delete TEN;
delete empl;
delete okBUILD;
_root.game.game.grid[(("x" + cacheXbuild2color2) + "y") + cacheYbuild2color2].back.removeMovieClip();
_root.game.game[((("objX" + cacheXbuild2color) + "Y") + cacheYbuild2color) + "P3"].coleurOBJ.removeMovieClip();
}
function mettrePUmur() {
_root.puMUR = true;
i = 1;
while (i <= nbBUILDobject) {
if (_root["BUILDobjectT" + i] == "wall-1") {
_root.game.game[(((("murX" + _root["BUILDobjectX" + i]) + "Y") + _root["BUILDobjectY" + i]) + "P") + _root["BUILDobjectP" + i]].gotoAndStop(2);
}
i++;
}
}
function mettremur() {
_root.puMUR = false;
i = 1;
while (i <= nbBUILDobject) {
if (_root["BUILDobjectT" + i] == "wall-1") {
_root.game.game[(((("murX" + _root["BUILDobjectX" + i]) + "Y") + _root["BUILDobjectY" + i]) + "P") + _root["BUILDobjectP" + i]].gotoAndStop(1);
}
i++;
}
}
function enlevePOGNE() {
_root.pogneOBJECT = false;
_root.game.game[((("objX" + _root.nowALPHAx1) + "Y") + _root.nowALPHAy1) + "P3"]._alpha = 100;
_root.game.game.grid[(("x" + _root.nowALPHAx2) + "y") + _root.nowALPHAy2].back._alpha = 0;
_root.nowALPHAx1 = -1;
_root.nowALPHAy1 = -1;
_root.nowALPHAx2 = -1;
_root.nowALPHAy2 = -1;
emplxT = -1;
emplyT = -1;
}
function num(plusNUM, NUMxmp, NUMymp) {
NUMr = rNUM + plusNUM;
if (NUMr == 5) {
NUMr = 1;
}
if (NUMr == 6) {
NUMr = 2;
}
if (NUMr == 7) {
NUMr = 3;
}
Lt = _root["rNUM" + NUMr];
SIMPLEremetpogneOBJdel1(Lt, NUMxmp, NUMymp);
}
function SIMPLEremetpogneOBJdel1(L, SRxmp, SRymp) {
BDf = 1;
HDf = 2;
HGf = 3;
BGf = 4;
_root["BUILDobject2X" + i] = _root["BUILDobject2X" + i] + SRxmp;
_root["BUILDobject2Y" + i] = _root["BUILDobject2Y" + i] + SRymp;
_root["BUILDobject2L" + i] = L;
_root["BUILDobject2P" + i] = 3;
_root["BUILDobject2T" + i] = _root["BUILDobject2T" + i];
objNnbBUILD2 = (((("objX" + _root["BUILDobject2X" + i]) + "Y") + _root["BUILDobject2Y" + i]) + "P") + _root["BUILDobject2P" + i];
_root["BUILDobject2N" + i] = objNnbBUILD2;
overDepthnbBUILD2 = String((((String(_root["BUILDobject2Y" + i] + 2) + "0") + String(_root["BUILDobject2X" + i] + 2)) + "") + String(_root["BUILDobject2P" + i]));
overDepthnbBUILD2 = Number(overDepthnbBUILD2);
_root.game.game.attachMovie((_root["BUILDobject2T" + i] + "f") + _root[L + "f"], (((("objX" + _root["BUILDobject2X" + i]) + "Y") + _root["BUILDobject2Y" + i]) + "P") + _root["BUILDobject2P" + i], overDepthnbBUILD2);
_root.game.game[objNnbBUILD2].nume = i;
_root.game.game[objNnbBUILD2]._x = game.game.grid[(("x" + _root["BUILDobject2X" + i]) + "y") + _root["BUILDobject2Y" + i]]._x;
_root.game.game[objNnbBUILD2]._y = game.game.grid[(("x" + _root["BUILDobject2X" + i]) + "y") + _root["BUILDobject2Y" + i]]._y;
delete i;
delete _root.NumEROgrotationf;
delete _root.NumERO;
}
function remetpogneOBJdel() {
enlevePOGNE();
_root.pogneOBJECT2 = false;
i = _root.NumERO;
rNUM1 = "BD";
rNUM4 = "HD";
rNUM3 = "HG";
rNUM2 = "BG";
if (_root["BUILDobject2L" + i] == "BD") {
rNUM = 1;
}
if (_root["BUILDobject2L" + i] == "HD") {
rNUM = 4;
}
if (_root["BUILDobject2L" + i] == "HG") {
rNUM = 3;
}
if (_root["BUILDobject2L" + i] == "BG") {
rNUM = 2;
}
if (_root.NumEROgrotationf == Grotationf) {
num(0, 0, 0);
} else {
if ((_root.NumEROgrotationf == 0) && (Grotationf == 90)) {
num(1, 0, 2);
}
if ((_root.NumEROgrotationf == 0) && (Grotationf == 180)) {
num(2, 2, 2);
}
if ((_root.NumEROgrotationf == 0) && (Grotationf == 270)) {
num(3, 2, 0);
}
if ((_root.NumEROgrotationf == 90) && (Grotationf == 180)) {
num(1, 2, 0);
}
if ((_root.NumEROgrotationf == 90) && (Grotationf == 270)) {
num(2, 2, -2);
}
if ((_root.NumEROgrotationf == 90) && (Grotationf == 0)) {
num(3, 0, -2);
}
if ((_root.NumEROgrotationf == 180) && (Grotationf == 270)) {
num(1, 0, -2);
}
if ((_root.NumEROgrotationf == 180) && (Grotationf == 0)) {
num(2, -2, -2);
}
if ((_root.NumEROgrotationf == 180) && (Grotationf == 90)) {
num(3, -2, 0);
}
if ((_root.NumEROgrotationf == 270) && (Grotationf == 0)) {
num(1, -2, 0);
}
if ((_root.NumEROgrotationf == 270) && (Grotationf == 90)) {
num(2, -2, 2);
}
if ((_root.NumEROgrotationf == 270) && (Grotationf == 180)) {
num(3, 0, 2);
}
}
}
function pogne1H(SAemplx, SAemply, SAxmp, SAymp, sp1x, sp1y) {
AemplxT = (SAemplx + SAxmp) + sp1x;
AemplyT = (SAemply + SAymp) + sp1y;
}
function pogne2H(SAemplx, SAemply, SAxmp, SAymp, SAxmp2, SAymp2) {
emplxT = SAemplx + SAxmp;
emplyT = SAemply + SAymp;
xmp2 = SAxmp2;
ymp2 = SAymp2;
}
function pogne3H(SAemplx, SAemply, SAxmp, SAymp, SAxmp2, SAymp2) {
B2AemplxT = SAemplx + SAxmp;
B2AemplyT = SAemply + SAymp;
B2Axmp2 = SAxmp2;
B2Aymp2 = SAymp2;
}
function pogne4H(SAemplx, SAemply, SAxmp, SAymp, SAxmp2, SAymp2, SAempl) {
_root.okBUILD = true;
_root.game.game.murdup._x = _root.game.game.grid[SAempl]._x;
_root.game.game.murdup._y = _root.game.game.grid[SAempl]._y;
_root.empl = SAempl;
_root.emplx = SAemplx;
_root.emply = SAemply;
_root.xmp = SAxmp;
_root.ymp = SAymp;
}
function pogneH(S2nomFtestEMPLXY, S2Aemplx, S2Aemply, S2Axmp, S2Aymp, S2Axmp2, S2Aymp2, S2Aempl, S2sp1x, S2sp1y) {
if (S2nomFtestEMPLXY == "pogne1") {
pogne1H(S2Aemplx, S2Aemply, S2Axmp, S2Aymp, S2sp1x, S2sp1y);
}
if (S2nomFtestEMPLXY == "pogne2") {
pogne2H(S2Aemplx, S2Aemply, S2Axmp, S2Aymp, S2Axmp2, S2Aymp2);
}
if (S2nomFtestEMPLXY == "pogne3") {
pogne3H(S2Aemplx, S2Aemply, S2Axmp, S2Aymp, S2Axmp2, S2Aymp2);
}
if (S2nomFtestEMPLXY == "pogne4") {
pogne4H(S2Aemplx, S2Aemply, S2Axmp, S2Aymp, S2Axmp2, S2Aymp2, S2Aempl);
}
}
function testEMPLXY0(Axmp, Aymp, Axmp2, Aymp2, Aemplx1, Aemply1, nomFtestEMPLXY, Ssp1x, Ssp1y) {
if (Grotationf == 0) {
Aemply = Math.abs(Math.round((Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2)) - Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2))) / 2));
Aemplx = Math.abs(Math.round((Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2)) + Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2))) / 2) - 1);
Aempl = (("x" + (Aemplx + Aemplx1)) + "y") + (Aemply + Aemply1);
if ((((((Aemplx <= (x - 2)) && (Aemply <= (y - 2))) && ((Aemplx + Axmp) >= 0)) && ((Aemply + Aymp) >= 0)) && (Math.round((Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2)) - Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2))) / 2) >= 0)) && ((Math.round((Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2)) + Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2))) / 2) - 1) >= 0)) {
pogneH(nomFtestEMPLXY, Aemplx, Aemply, Axmp, Aymp, Axmp2, Aymp2, Aempl, Ssp1x, Ssp1y);
}
}
}
function testEMPLXY90(Axmp, Aymp, Axmp2, Aymp2, Aemplx1, Aemply1, nomFtestEMPLXY, Ssp1x, Ssp1y) {
if (Grotationf == 90) {
Aemplx = Math.round((Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2)) - Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2))) / 2);
Aemply = Math.abs(Math.round((Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2)) + Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2))) / 2) - 1);
Aempl = (("x" + (Aemplx + Aemplx1)) + "y") + (Aemply + Aemply1);
if (((((Aemplx <= (x - 2)) && (Aemply <= (y - 2))) && (Aemply > 0)) && ((Aemplx + Axmp) >= 0)) && (((Math.round((Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2)) + Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2))) / 2) - 1) + Aymp) <= 0)) {
pogneH(nomFtestEMPLXY, Aemplx, Aemply, Axmp, Aymp, Axmp2, Aymp2, Aempl, Ssp1x, Ssp1y);
}
}
}
function testEMPLXY180(Axmp, Aymp, Axmp2, Aymp2, Aemplx1, Aemply1, nomFtestEMPLXY, sp, Ssp1x, Ssp1y) {
if (Grotationf == 180) {
Aemply = Math.abs(Math.round((Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2)) - Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2))) / 2));
Aemplx = Math.abs(Math.round((Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2)) + Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2))) / 2) - 1);
Aempl = (("x" + ((Aemplx + 2) + sp)) + "y") + (Aemply + 1);
if (((((Aemplx >= 1) && ((Math.round((Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2)) + Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2))) / 2) - 1) < 1)) && (Math.round((Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2)) - Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2))) / 2) < 0)) && ((Aemplx + Axmp) <= (x - 1))) && ((Aemply + Aymp) <= (y - 1))) {
pogneH(nomFtestEMPLXY, Aemplx, Aemply, Axmp, Aymp, Axmp2, Aymp2, Aempl, Ssp1x, Ssp1y);
}
}
}
function testEMPLXY270(Axmp, Aymp, Axmp2, Aymp2, Aemplx1, Aemply1, nomFtestEMPLXY, Ssp1x, Ssp1y) {
if (Grotationf == 270) {
Aemplx = Math.abs(Math.round((Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2)) - Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2))) / 2));
Aemply = Math.abs(Math.round((Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2)) + Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2))) / 2) - 1);
Aempl = (("x" + (Aemplx + 1)) + "y") + (Aemply - 1);
if ((((((Aemplx != 0) && (Aemplx <= (x - 2))) && (Aemply <= (y - 2))) && (Aemplx > 0)) && (Math.round((Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2)) - Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2))) / 2) <= 0)) && ((Math.round((Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2)) + Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2))) / 2) - 1) > 0)) {
pogneH(nomFtestEMPLXY, Aemplx, Aemply, Axmp, Aymp, Axmp2, Aymp2, Aempl, Ssp1x, Ssp1y);
}
}
}
function pogneOBJdel() {
nowALPHA = 0;
_root.createEmptyMovieClip("funcHELPpogneOBJ", 6669453);
_root.attachMovie("XYshow", "XYshow", 99992);
_root.XYshow.onEnterFrame = function () {
AemplxT = undefined;
AemplyT = undefined;
testEMPLXY0(-1, -1, 1, 1, -1, -1, "pogne1", 0, 0);
testEMPLXY90(-1, 1, 1, -1, -1, 1, "pogne1", 0, -2);
testEMPLXY180(1, 1, -1, -1, 2, 1, "pogne1", 0, -2, -2);
testEMPLXY270(1, -1, -1, 1, 1, -1, "pogne1", -2, 0);
if (AemplxT < 10) {
AemplxT2 = "0" + AemplxT;
} else {
AemplxT2 = AemplxT;
}
if (AemplyT < 10) {
AemplyT2 = "0" + AemplyT;
} else {
AemplyT2 = AemplyT;
}
if (AemplxT == undefined) {
AemplxT2 = " -- ";
}
if (AemplyT == undefined) {
AemplyT2 = " --";
INVIpoint = true;
} else {
INVIpoint = false;
}
if (INVIpoint) {
if (TEN != true) {
_root.game.game.pointeur._visible = false;
}
} else if (_root.buildingKOKO3 && (johDOUDA)) {
_root.game.game.pointeur._visible = true;
}
XYtextSHOWstop = false;
if (TEN && (MOUSEpress)) {
XYtextSHOWstop = true;
}
if (XYtextSHOWstop != true) {
_root.XYshow.xy1.text = (("x:" + AemplxT2) + " y:") + AemplyT2;
_root.XYshow.xy2.text = (("x:" + AemplxT2) + " y:") + AemplyT2;
}
this._visible = false;
if (_root.pogneOBJECT) {
this._visible = true;
if (_root.TYPEcure != undefined) {
this.tet1.text = ((_root["BUILDobject2T" + _root.TYPEcure] + " ") + _root[_root["BUILDobject2T" + _root.TYPEcure] + "sell"]) + "$";
this.tet2.text = ((_root["BUILDobject2T" + _root.TYPEcure] + " ") + _root[_root["BUILDobject2T" + _root.TYPEcure] + "sell"]) + "$";
} else {
if (_root.languageL == "Fran\u00E7ais") {
this.tet1.text = "Plancher";
this.tet2.text = "Plancher";
}
if (_root.languageL == "English") {
this.tet1.text = "Ground";
this.tet2.text = "Ground";
}
}
}
if (_root.pogneOBJECT2) {
this._visible = true;
this.tet1.text = ((_root.currentTYPEw + " ") + _root[_root.currentTYPEw + "sell"]) + "$";
this.tet2.text = ((_root.currentTYPEw + " ") + _root[_root.currentTYPEw + "sell"]) + "$";
}
if (_root.buildingKOKO3 && (_root.pogneOBJECT2 != true)) {
this._visible = true;
if (_root.TYPEcure != undefined) {
this.tet1.text = _root["BUILDobject2T" + _root.TYPEcure];
this.tet2.text = _root["BUILDobject2T" + _root.TYPEcure];
} else {
this.tet1.text = _root.currentTYPEw;
this.tet2.text = _root.currentTYPEw;
}
}
if (((buildingomg != true) && (AemplxT == undefined)) && (AemplyT == undefined)) {
if (_root.languageL == "Fran\u00E7ais") {
this.tet1.text = "Inconnu";
this.tet2.text = "Inconnu";
}
if (_root.languageL == "English") {
this.tet1.text = "Unknown";
this.tet2.text = "Unknown";
}
}
if (_root.STOPshowXY) {
this._visible = false;
}
};
_root.funcHELPpogneOBJ.onEnterFrame = function () {
if (_root.pogneOBJECT) {
emplxT = undefined;
emplyT = undefined;
testEMPLXY0(-1, -1, 1, 1, -1, -1, "pogne2", 0, 0);
testEMPLXY90(-1, 1, 1, -1, -1, 1, "pogne2", 0, 0);
testEMPLXY180(1, 1, -1, -1, 2, 1, "pogne2", 0, 0, 0);
testEMPLXY270(1, -1, -1, 1, 1, -1, "pogne2", 0, 0);
_root.game.game.grid[(("x" + _root.nowALPHAx2) + "y") + _root.nowALPHAy2].back.removeMovieClip();
_root.game.game[((("objX" + _root.nowALPHAx1) + "Y") + _root.nowALPHAy1) + "P3"].coleurOBJ.removeMovieClip();
if ((emplxT != undefined) && (emplyT != undefined)) {
_root.game.game.grid[(("x" + (emplxT + xmp2)) + "y") + (emplyT + ymp2)].attachMovie("backgrid", "back", 1);
_root.game.game.grid[(("x" + (emplxT + xmp2)) + "y") + (emplyT + ymp2)].back._alpha = 30;
colorBACK = new Color(_root.game.game.grid[(("x" + (emplxT + xmp2)) + "y") + (emplyT + ymp2)].back);
colorBACK.setRGB(10027008);
_root.nowALPHAx2 = emplxT + xmp2;
_root.nowALPHAy2 = emplyT + ymp2;
if (_root.game.game[((("objX" + emplxT) + "Y") + emplyT) + "P3"]._currentframe != undefined) {
_root.TYPEcure = _root.game.game[((("objX" + emplxT) + "Y") + emplyT) + "P3"].nume;
if (_root["BUILDobject2L" + _root.TYPEcure] == "BD") {
_root.game.game[((("objX" + emplxT) + "Y") + emplyT) + "P3"].attachMovie(_root["BUILDobject2T" + _root.TYPEcure] + "f1", "coleurOBJ", 1);
}
if (_root["BUILDobject2L" + _root.TYPEcure] == "BG") {
_root.game.game[((("objX" + emplxT) + "Y") + emplyT) + "P3"].attachMovie(_root["BUILDobject2T" + _root.TYPEcure] + "f4", "coleurOBJ", 1);
}
if (_root["BUILDobject2L" + _root.TYPEcure] == "HD") {
_root.game.game[((("objX" + emplxT) + "Y") + emplyT) + "P3"].attachMovie(_root["BUILDobject2T" + _root.TYPEcure] + "f2", "coleurOBJ", 1);
}
if (_root["BUILDobject2L" + _root.TYPEcure] == "HG") {
_root.game.game[((("objX" + emplxT) + "Y") + emplyT) + "P3"].attachMovie(_root["BUILDobject2T" + _root.TYPEcure] + "f3", "coleurOBJ", 1);
}
_root.game.game[((("objX" + emplxT) + "Y") + emplyT) + "P3"].coleurOBJ._alpha = 30;
colorOBJ = new Color(_root.game.game[((("objX" + emplxT) + "Y") + emplyT) + "P3"].coleurOBJ);
colorOBJ.setRGB(65280);
colorBACK = new Color(_root.game.game.grid[(("x" + (emplxT + xmp2)) + "y") + (emplyT + ymp2)].back);
colorBACK.setRGB(65280);
_root.nowALPHAx1 = emplxT;
_root.nowALPHAy1 = emplyT;
} else {
_root.TYPEcure = undefined;
}
if (MOUSEpress && (_root.game.game[((("objX" + emplxT) + "Y") + emplyT) + "P3"]._currentframe != undefined)) {
i = _root.game.game[((("objX" + emplxT) + "Y") + emplyT) + "P3"].nume;
if ((_root["BUILDobject2X" + i] == emplxT) && (_root["BUILDobject2Y" + i] == emplyT)) {
_root.NumERO = i;
_root.NumEROgrotationf = Grotationf;
_root.game.game[((("objX" + emplxT) + "Y") + emplyT) + "P3"].removeMovieClip();
_root.crocDOWN = true;
build2(_root["BUILDobject2T" + i], 0);
}
}
}
}
};
}
function build2HELPpaint1(hdxmp, hdymp, hgxmp, hgymp, bdxmp, bdymp, bgxmp, bgymp) {
if (_root.A2hd) {
delX = 1;
while (delX <= ((FTENemplx + xmaxDEL) - FTENemplx)) {
delY = 1;
while (delY <= ((FTENemply + ymaxDEL) - FTENemply)) {
if (_root.game.game.grid[(("x" + (((FTENemplx + hdxmp) + xmaxDEL) - delX)) + "y") + (((FTENemply + hdymp) - ymaxDEL) + delY)].carre1._currentframe != undefined) {
_root.game.game.grid[(("x" + (((FTENemplx + hdxmp) + xmaxDEL) - delX)) + "y") + (((FTENemply + hdymp) - ymaxDEL) + delY)].carre1.removeMovieClip();
}
delY++;
}
delX++;
}
delX = 1;
while (delX <= (FTENemplx - (FTENemplx - xmaxDEL))) {
delY = 1;
while (delY <= (FTENemply - (FTENemply - ymaxDEL))) {
if (_root.game.game.grid[(("x" + (((FTENemplx + hdxmp) + xmaxDEL) - delX)) + "y") + (((FTENemply + hdymp) - ymaxDEL) + delY)].carre1._currentframe != undefined) {
_root.game.game.grid[(("x" + (((FTENemplx + hdxmp) + xmaxDEL) - delX)) + "y") + (((FTENemply + hdymp) - ymaxDEL) + delY)].carre1.removeMovieClip();
}
delY++;
}
delX++;
}
}
if (_root.A2hg) {
delX = 1;
while (delX <= ((FTENemplx + xmaxDEL) - FTENemplx)) {
delY = 1;
while (delY <= ((FTENemply + ymaxDEL) - FTENemply)) {
if (_root.game.game.grid[(("x" + (((FTENemplx + hgxmp) - xmaxDEL) + delX)) + "y") + (((FTENemply + hgymp) - ymaxDEL) + delY)].carre1._currentframe != undefined) {
_root.game.game.grid[(("x" + (((FTENemplx + hgxmp) - xmaxDEL) + delX)) + "y") + (((FTENemply + hgymp) - ymaxDEL) + delY)].carre1.removeMovieClip();
}
delY++;
}
delX++;
}
}
if (_root.A2bd) {
delX = 1;
while (delX <= (FTENemplx - (FTENemplx - xmaxDEL))) {
delY = 1;
while (delY <= (FTENemply - (FTENemply - ymaxDEL))) {
if (_root.game.game.grid[(("x" + (((FTENemplx + bdxmp) + xmaxDEL) - delX)) + "y") + (((FTENemply + bdymp) + ymaxDEL) - delY)].carre1._currentframe != undefined) {
_root.game.game.grid[(("x" + (((FTENemplx + bdxmp) + xmaxDEL) - delX)) + "y") + (((FTENemply + bdymp) + ymaxDEL) - delY)].carre1.removeMovieClip();
}
delY++;
}
delX++;
}
}
if (_root.A2bg) {
delX = 1;
while (delX <= ((FTENemplx + xmaxDEL) - FTENemplx)) {
delY = 1;
while (delY <= ((FTENemply + ymaxDEL) - FTENemply)) {
if (_root.game.game.grid[(("x" + (((FTENemplx + bgxmp) - xmaxDEL) + delX)) + "y") + (((FTENemply - 2) + ymaxDEL) - delY)].carre1._currentframe != undefined) {
_root.game.game.grid[(("x" + (((FTENemplx + bgxmp) - xmaxDEL) + delX)) + "y") + (((FTENemply - 2) + ymaxDEL) - delY)].carre1.removeMovieClip();
}
delY++;
}
delX++;
}
delX = 1;
while (delX <= (FTENemplx - (FTENemplx - xmaxDEL))) {
delY = 1;
while (delY <= (FTENemply - (FTENemply - ymaxDEL))) {
if (_root.game.game.grid[(("x" + (((FTENemplx + bgxmp) - xmaxDEL) + delX)) + "y") + (((FTENemply + bgymp) + ymaxDEL) - delY)].carre1._currentframe != undefined) {
_root.game.game.grid[(("x" + (((FTENemplx + bgxmp) - xmaxDEL) + delX)) + "y") + (((FTENemply + bgymp) + ymaxDEL) - delY)].carre1.removeMovieClip();
}
delY++;
}
delX++;
}
}
}
function build2HELP2() {
_root.game.game.pointeur._alpha = 50;
Templ = (("x" + (_root.emplx + _root.xmp)) + "y") + (_root.emply + _root.ymp);
_root.game.game.pointeur._x = _root.game.game.grid[Templ]._x;
_root.game.game.pointeur._y = _root.game.game.grid[Templ]._y;
}
function build2HELP(nomB2, testB2h, xh1, yh1, xmph1, ymph1, dh, typeh, obEMleh, obEMh, doolarh) {
_root["BUILDobject2N" + nomB2] = (((("objX" + (xh1 + xmph1)) + "Y") + (yh1 + ymph1)) + "P") + dh;
_root["BUILDobject2X" + nomB2] = xh1 + xmph1;
_root["BUILDobject2Y" + nomB2] = yh1 + ymph1;
_root["BUILDobject2P" + nomB2] = dh;
_root["BUILDobject2T" + nomB2] = typeh;
_root["BUILDobject2L" + nomB2] = obEMleh;
if (_root.Grotationf == 0) {
overDepth2nb = String((((String(_root["BUILDobject2Y" + nomB2] + 2) + "0") + String(_root["BUILDobject2X" + nomB2] + 2)) + "") + String(_root["BUILDobject2P" + nomB2]));
}
if (_root.Grotationf == 90) {
overDepth2nb = String((((String(_root["BUILDobject2X" + nomB2] + 2) + "0") + String(y - (_root["BUILDobject2Y" + nomB2] - 0))) + "") + String(_root["BUILDobject2P" + nomB2]));
}
if (_root.Grotationf == 180) {
overDepth2nb = String((((String(y - (_root["BUILDobject2Y" + nomB2] - 0)) + "0") + String(x - (_root["BUILDobject2X" + nomB2] - 0))) + "") + String(_root["BUILDobject2P" + nomB2]));
}
if (_root.Grotationf == 270) {
overDepth2nb = String((((String((x - _root["BUILDobject2X" + nomB2]) + 2) + "0") + String(_root["BUILDobject2Y" + nomB2] + 2)) + "") + String(_root["BUILDobject2P" + nomB2]));
}
if (Number(overDepth2nb) > 0) {
overDepth2nb = Number(overDepth2nb);
if (overDepth2nb > 0) {
_root.game.game.attachMovie((typeh + "f") + obEMh, (((("objX" + (xh1 + xmph1)) + "Y") + (yh1 + ymph1)) + "P") + dh, overDepth2nb);
_root.game.game[(((("objX" + (xh1 + xmph1)) + "Y") + (yh1 + ymph1)) + "P") + dh].nume = nomB2;
}
_root.game.game[(((("objX" + (xh1 + xmph1)) + "Y") + (yh1 + ymph1)) + "P") + dh]._alpha = 100;
Templ = (("x" + (_root.emplx + xmph1)) + "y") + (yh1 + ymph1);
_root.game.game[(((("objX" + (xh1 + xmph1)) + "Y") + (yh1 + ymph1)) + "P") + dh]._x = game.game.grid[Templ]._x;
_root.game.game[(((("objX" + (xh1 + xmph1)) + "Y") + (yh1 + ymph1)) + "P") + dh]._y = game.game.grid[Templ]._y;
delete Templ;
_root.pogneOBJECT2 = false;
if (testB2h == "reprend") {
_root.buildingomg = false;
_root.shitbuild1();
_root.game.game.murdup._x = -10000;
_root.game.game.murdup._y = -10000;
delete _root.game.game.pointeur.onEnterFrame;
_root.game.game.pointeur._visible = false;
delete game.game.murdup.onEnterFrame;
_root.game.game.murdup._visible = false;
_root.pogneOBJECT = true;
_root.NumERO = -1;
} else {
_root.currentMONEY = _root.currentMONEY - doolarh;
_root.nbBUILDobject2 = _root.nbBUILDobject2 + 1;
}
}
}
function build2HELPpaint2(a2hdxmp, a2hdymp, a2hgxmp, a2hgymp, a2bdxmp, a2bdymp, a2bgxmp, a2bgymp, tp2, hdxmpa3, hdympa3, hgxmpa3, hgympa3, bdxmpa3, bdympa3, bgxmpa3, bgympa3) {
if (FTENemply >= emply) {
if (FTENemplx < emplx) {
build2HELPpaint1(a2hdxmp, a2hdymp, a2hgxmp, a2hgymp, a2bdxmp, a2bdymp, a2bgxmp, a2bgymp);
_root.A2hg = false;
_root.A2hd = true;
_root.A2bd = false;
_root.A2bg = false;
delX = 1;
while (delX <= ((FTENemplx + xmaxDEL) - emplx)) {
delY = 1;
while (delY <= ((FTENemply + ymaxDEL) - emply)) {
_root.game.game.grid[(("x" + (((FTENemplx + a2hdxmp) + xmaxDEL) - delX)) + "y") + (((FTENemply + a2hdymp) - ymaxDEL) + delY)].carre1.removeMovieClip();
delY++;
}
delX++;
}
delX = 1;
while (delX <= (emplx - (FTENemplx - xmaxDEL))) {
delY = 1;
while (delY <= (emply - (FTENemply - ymaxDEL))) {
_root.game.game.grid[(("x" + (((FTENemplx + a2hdxmp) + xmaxDEL) - delX)) + "y") + (((FTENemply + a2hdymp) - ymaxDEL) + delY)].carre1.removeMovieClip();
delY++;
}
delX++;
}
d = 1;
while (d <= ((emplx - FTENemplx) + hdxmpa3)) {
i = 1;
while (i <= ((FTENemply - emply) + hdympa3)) {
_root.game.game.pointeur._alpha = 0;
_root.game.game.grid[(("x" + ((FTENemplx + a2hdxmp) + d)) + "y") + ((FTENemply + a2hdymp) - i)].attachMovie(tp2 + "f1", "carre1", 2);
checkNBpaint++;
_root["paintALX" + checkNBpaint] = (FTENemplx + a2hdxmp) + d;
_root["paintALY" + checkNBpaint] = (FTENemply + a2hdymp) - i;
i++;
}
d++;
}
_root.ymaxDEL = i;
_root.xmaxDEL = d;
}
if (FTENemplx >= emplx) {
build2HELPpaint1(a2hdxmp, a2hdymp, a2hgxmp, a2hgymp, a2bdxmp, a2bdymp, a2bgxmp, a2bgymp);
_root.A2hg = true;
_root.A2hd = false;
_root.A2bd = false;
_root.A2bg = false;
delX = 1;
while (delX <= ((FTENemplx + xmaxDEL) - emplx)) {
delY = 1;
while (delY <= ((FTENemply + ymaxDEL) - emply)) {
_root.game.game.grid[(("x" + (((FTENemplx + a2hgxmp) - xmaxDEL) + delX)) + "y") + (((FTENemply + a2hgymp) - ymaxDEL) + delY)].carre1.removeMovieClip();
delY++;
}
delX++;
}
d = 1;
while (d <= ((FTENemplx - emplx) + hgxmpa3)) {
i = 1;
while (i <= ((FTENemply - emply) + hgympa3)) {
_root.game.game.pointeur._alpha = 0;
_root.game.game.grid[(("x" + ((FTENemplx + a2hgxmp) - d)) + "y") + ((FTENemply + a2hgymp) - i)].attachMovie(tp2 + "f1", "carre1", 2);
checkNBpaint++;
_root["paintALX" + checkNBpaint] = (FTENemplx + a2hgxmp) - d;
_root["paintALY" + checkNBpaint] = (FTENemply + a2hgymp) - i;
i++;
}
d++;
}
_root.ymaxDEL = i;
_root.xmaxDEL = d;
}
}
if (FTENemply < emply) {
if (FTENemplx < emplx) {
build2HELPpaint1(a2hdxmp, a2hdymp, a2hgxmp, a2hgymp, a2bdxmp, a2bdymp, a2bgxmp, a2bgymp);
_root.A2hg = false;
_root.A2hd = false;
_root.A2bd = true;
_root.A2bg = false;
delX = 1;
while (delX <= (emplx - (FTENemplx - xmaxDEL))) {
delY = 1;
while (delY <= (emply - (FTENemply - ymaxDEL))) {
_root.game.game.grid[(("x" + (((FTENemplx + a2bdxmp) + xmaxDEL) - delX)) + "y") + (((FTENemply + a2bdymp) + ymaxDEL) - delY)].carre1.removeMovieClip();
delY++;
}
delX++;
}
d = 1;
while (d <= ((emplx - FTENemplx) + bdxmpa3)) {
i = 1;
while (i <= ((emply - FTENemply) + bdympa3)) {
_root.game.game.pointeur._alpha = 0;
_root.game.game.grid[(("x" + ((FTENemplx + a2bdxmp) + d)) + "y") + ((FTENemply + a2bdymp) + i)].attachMovie(tp2 + "f1", "carre1", 2);
checkNBpaint++;
_root["paintALX" + checkNBpaint] = (FTENemplx + a2bdxmp) + d;
_root["paintALY" + checkNBpaint] = (FTENemply + a2bdymp) + i;
i++;
}
d++;
}
_root.ymaxDEL = i;
_root.xmaxDEL = d;
}
if (FTENemplx >= emplx) {
build2HELPpaint1(a2hdxmp, a2hdymp, a2hgxmp, a2hgymp, a2bdxmp, a2bdymp, a2bgxmp, a2bgymp);
_root.A2hg = false;
_root.A2hd = false;
_root.A2bd = false;
_root.A2bg = true;
delX = 1;
while (delX <= ((FTENemplx + xmaxDEL) - emplx)) {
delY = 1;
while (delY <= ((FTENemply + ymaxDEL) - emply)) {
_root.game.game.grid[(("x" + (((FTENemplx + a2bgxmp) - xmaxDEL) + delX)) + "y") + (((FTENemply + a2bgymp) + ymaxDEL) - delY)].carre1.removeMovieClip();
delY++;
}
delX++;
}
delX = 1;
while (delX <= (emplx - (FTENemplx - xmaxDEL))) {
delY = 1;
while (delY <= (emply - (FTENemply - ymaxDEL))) {
_root.game.game.grid[(("x" + (((FTENemplx + a2bgxmp) - xmaxDEL) + delX)) + "y") + (((FTENemply + a2bgymp) + ymaxDEL) - delY)].carre1.removeMovieClip();
delY++;
}
delX++;
}
d = 1;
while (d <= ((FTENemplx - emplx) + bgxmpa3)) {
i = 1;
while (i <= ((emply - FTENemply) + bgympa3)) {
_root.game.game.pointeur._alpha = 0;
_root.game.game.grid[(("x" + ((FTENemplx + a2bgxmp) - d)) + "y") + ((FTENemply + a2bgymp) + i)].attachMovie(tp2 + "f1", "carre1", 2);
checkNBpaint++;
_root["paintALX" + checkNBpaint] = (FTENemplx + a2bgxmp) - d;
_root["paintALY" + checkNBpaint] = (FTENemply + a2bgymp) + i;
i++;
}
d++;
}
_root.ymaxDEL = i;
_root.xmaxDEL = d;
}
}
}
function build2HELP4(FobEM, FobEMle, Ff, objTh) {
_root.obEM = FobEM;
_root.obEMle = FobEMle;
_root.game.game.attachMovie(objTh + Ff, "pointeur", 9999999999);
_root.build2HELP2();
}
function build2HELP3(typeFp, wallC) {
if (wallC != "wall") {
game.game.attachMovie(typeFp + "f1", "pointeur", 9999999999);
} else {
game.game.createEmptyMovieClip("pointeur", 9999999999);
}
_root.game.game.pointeur._visible = false;
game.game.pointeur._alpha = 50;
game.game.pointeur._x = -1000;
game.game.pointeur._y = -1000;
game.game.pointeur._visible = true;
game.game.pointeur.onEnterFrame = function () {
this._x = game.game.murdup._x;
this._y = game.game.murdup._y;
};
}
function build2(objectTYPEbf, currentDOLLARcost, cFloor) {
johDOUDA = false;
cFloorC1 = false;
if (cFloor == "floor") {
_root.checkCFLOOR = "floor";
} else if (cFloor == "wall") {
_root.checkCFLOOR = "wall";
} else {
_root.checkCFLOOR = false;
}
_root.STOPshowXY = false;
_root.pausedejeuner = true;
if (currentDOLLARcost == 0) {
_root.pogneOBJECT2 = true;
} else {
_root.pogneOBJECT2 = false;
}
enlevePOGNE();
_root.buildingKOKO2 = true;
_root.buildingKOKO3 = true;
TEN = false;
_root.currentTYPEw = objectTYPEbf;
_root.currentDOLLARw = currentDOLLARcost;
nbBUILDobjectAL = 0;
nbBuI = 0;
buildingomg = true;
game.game.attachMovie("mur1", "murdup", 9999999998);
game.game.murdup._x = 0;
game.game.murdup._y = 0;
if (_root.checkCFLOOR == "wall") {
build2HELP3(objectTYPEbf, "wall");
} else {
build2HELP3(objectTYPEbf, 0);
}
empecheENCLENCHEUR = false;
game.game.murdup.onEnterFrame = function () {
_root.game.game.grid[(("x" + cacheXbuild2color2) + "y") + cacheYbuild2color2].back.removeMovieClip();
_root.game.game[((("objX" + cacheXbuild2color) + "Y") + cacheYbuild2color) + "P3"].coleurOBJ.removeMovieClip();
if (johDOUDA != true) {
_root.game.game.pointeur._visible = false;
}
if (_root.pogneOBJECT2 && (_root.suppr)) {
_root.suppr = false;
_root.currentMONEY = _root.currentMONEY + _root[_root["BUILDobject2T" + _root.NumERO] + "sell"];
delete _root["BUILDobject2N" + _root.NumERO];
delete _root["BUILDobject2X" + _root.NumERO];
delete _root["BUILDobject2Y" + _root.NumERO];
delete _root["BUILDobject2P" + _root.NumERO];
delete _root["BUILDobject2T" + _root.NumERO];
delete _root["BUILDobject2L" + _root.NumERO];
delete Templ;
_root.buildingomg = false;
_root.shitbuild1();
shitbuild1();
game.game.murdup._x = -10000;
game.game.murdup._y = -10000;
_root.game.game.pointeur._visible = false;
delete _root.game.game.pointeur.onEnterFrame;
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
_root.pogneOBJECT = true;
_root.pogneOBJECT2 = false;
_root.NumERO = -1;
}
if (empecheENCLENCHEUR) {
if (_root.buildingKOKO2) {
if ((((((MOUSEpress && (TEN != true)) && (okBUILD)) && ((emplx + xmp) >= 0)) && ((emply + ymp) >= 0)) && ((emplx + xmp) < x)) && ((emply + ymp) < y)) {
_root.objectBARNAK = false;
WoooWO = false;
i = 1;
while (i <= nbBUILDobject2) {
if (_root.pogneOBJECT2) {
if (cFloor != "floor") {
if (cFloor != "wall") {
if (((emplx + xmp) == _root["BUILDobject2X" + _root.NumERO]) && ((emply + ymp) == _root["BUILDobject2Y" + _root.NumERO])) {
WoooWO = true;
}
if (((WoooWO != true) && (_root["BUILDobject2X" + i] == (emplx + xmp))) && (_root["BUILDobject2Y" + i] == (emply + ymp))) {
_root.objectBARNAK = true;
}
}
}
} else if (cFloor != "floor") {
if (cFloor != "wall") {
if ((_root["BUILDobject2X" + i] == (emplx + xmp)) && (_root["BUILDobject2Y" + i] == (emply + ymp))) {
_root.objectBARNAK = true;
}
}
}
i++;
}
if (_root.objectBARNAK != true) {
TEN = true;
}
}
if (TEN) {
if (MOUSEpress) {
if (cFloor == "floor") {
if (cFloorC1 != true) {
cFloorC1 = true;
FTENemplx = Aemplx;
FTENemply = Aemply;
ymaxDEL = 0;
xmaxDEL = 0;
A2hg = false;
A2hd = false;
A2bd = false;
A2bg = false;
sombrero++;
}
}
if (cFloor != "wall") {
obEM = 1;
if (game.game.grid[(("x" + (emplx + xmp)) + "y") + (emply + ymp)]._xmouse <= (0 + (game.game.grid[(("x" + (emplx + xmp)) + "y") + (emply + ymp)]._width / 2))) {
if (emplG != true) {
nbBUILDobjectAL = 0;
emplG = true;
emplD = false;
}
} else if (emplD != true) {
nbBUILDobjectAL = 0;
emplD = true;
emplG = false;
}
if (game.game.grid[(("x" + (emplx + xmp)) + "y") + (emply + ymp)]._ymouse <= (0 + (game.game.grid[(("x" + (emplx + xmp)) + "y") + (emply + ymp)]._height / 2))) {
if (emplH != true) {
nbBUILDobjectAL = 0;
emplH = true;
emplB = false;
}
} else if (emplB != true) {
nbBUILDobjectAL = 0;
emplB = true;
emplH = false;
}
}
}
if (cFloor == "floor") {
checkNBpaint = 0;
testEMPLXY0(-1, -1, 1, 1, -1, -1, "pogne4", 0, 0);
testEMPLXY90(-1, 1, 1, -1, -1, 1, "pogne4", 0, 0);
testEMPLXY180(1, 1, -1, -1, 0, 1, "pogne4", -1, 0, 0);
testEMPLXY270(1, -1, -1, 1, 1, -1, "pogne4", 0, 0);
_root.game.game.pointeur._alpha = 100;
if (Grotationf == 0) {
build2HELPpaint2(-2, 0, 0, 0, -2, -2, 0, -2, objectTYPEbf, 0, 1, 1, 1, 0, 0, 1, 0);
}
if (Grotationf == 90) {
build2HELPpaint2(-2, 2, 0, 2, -2, 0, 0, 0, objectTYPEbf, 0, 0, 1, 0, 0, 1, 1, 1);
}
if (Grotationf == 180) {
build2HELPpaint2(0, 2, 2, 2, 0, 0, 2, 0, objectTYPEbf, 1, 1, 0, 0, 1, 1, 0, 0);
}
if (Grotationf == 270) {
build2HELPpaint2(0, 0, 2, 0, 0, -2, 2, -2, objectTYPEbf, 1, 1, 0, 1, 1, 0, 0, 0);
}
}
if (cFloor != "wall") {
if (emplH) {
if (emplD) {
build2HELP4(2, "HD", "f2", objectTYPEbf);
}
if (emplG) {
build2HELP4(3, "HG", "f3", objectTYPEbf);
}
}
if (emplB) {
if (emplD) {
build2HELP4(1, "BD", "f1", objectTYPEbf);
}
if (emplG) {
build2HELP4(4, "BG", "f4", objectTYPEbf);
}
}
}
if ((MOUSEpress != true) && (okBUILD)) {
if (cFloor == "floor") {
i = 1;
while (i <= checkNBpaint) {
_root.game.game.grid[(("x" + _root["paintALX" + i]) + "y") + _root["paintALY" + i]].carre1.removeMovieClip();
_root.game.game.grid[(("x" + _root["paintALX" + i]) + "y") + _root["paintALY" + i]].attachMovie(objectTYPEbf + "f1", "carre2", 0);
if (Grotationf == 0) {
_root[(("paintX" + _root["paintALX" + i]) + "Y") + _root["paintALY" + i]] = (("x" + _root["paintALX" + i]) + "y") + _root["paintALY" + i];
_root[((("paintX" + _root["paintALX" + i]) + "Y") + _root["paintALY" + i]) + "T"] = objectTYPEbf;
}
if (Grotationf == 90) {
_root[(("paintX" + _root["paintALX" + i]) + "Y") + (_root["paintALY" + i] - 2)] = (("x" + _root["paintALX" + i]) + "y") + (_root["paintALY" + i] - 2);
_root[((("paintX" + _root["paintALX" + i]) + "Y") + (_root["paintALY" + i] - 2)) + "T"] = objectTYPEbf;
}
if (Grotationf == 180) {
_root[(("paintX" + (_root["paintALX" + i] - 2)) + "Y") + (_root["paintALY" + i] - 2)] = (("x" + (_root["paintALX" + i] - 2)) + "y") + (_root["paintALY" + i] - 2);
_root[((("paintX" + (_root["paintALX" + i] - 2)) + "Y") + (_root["paintALY" + i] - 2)) + "T"] = objectTYPEbf;
}
if (Grotationf == 270) {
_root[(("paintX" + (_root["paintALX" + i] - 2)) + "Y") + _root["paintALY" + i]] = (("x" + (_root["paintALX" + i] - 2)) + "y") + _root["paintALY" + i];
_root[((("paintX" + (_root["paintALX" + i] - 2)) + "Y") + _root["paintALY" + i]) + "T"] = objectTYPEbf;
}
i++;
}
} else if (cFloor == "wall") {
if (okWALLwP) {
_root[("BUILDpaintW" + (_root.paintNUM + 1)) + "N"] = (((("murX" + emplx) + "Y") + emply) + "P") + _root.CwALL2;
_root[("BUILDpaintW" + (_root.paintNUM + 1)) + "P"] = _root.CwALL2;
_root[("BUILDpaintW" + (_root.paintNUM + 1)) + "T"] = objectTYPEbf;
_root[("BUILDpaintW" + (_root.paintNUM + 1)) + "L"] = obWallW;
_root[("BUILDpaintW" + (_root.paintNUM + 1)) + "X"] = emplx;
_root[("BUILDpaintW" + (_root.paintNUM + 1)) + "Y"] = emply;
CACHEnumep = _root.game.game[(((("murX" + emplx) + "Y") + emply) + "P") + _root.CwALL2].nume;
CACHEXp = _root.game.game[(((("murX" + emplx) + "Y") + emply) + "P") + _root.CwALL2]._x;
CACHEYp = _root.game.game[(((("murX" + emplx) + "Y") + emply) + "P") + _root.CwALL2]._y;
overDepth2nb = Number(_root.game.game[(((("murX" + emplx) + "Y") + emply) + "P") + _root.CwALL2].getDepth());
if (overDepth2nb > 0) {
_root.game.game.attachMovie((objectTYPEbf + "f") + _root.CwALL, (((("murX" + emplx) + "Y") + emply) + "P") + _root.CwALL2, overDepth2nb);
_root.game.game[(((("murX" + emplx) + "Y") + emply) + "P") + _root.CwALL2].nume = CACHEnumep;
_root.game.game[(((("murX" + emplx) + "Y") + emply) + "P") + _root.CwALL2]._x = CACHEXp;
_root.game.game[(((("murX" + emplx) + "Y") + emply) + "P") + _root.CwALL2]._y = CACHEYp;
}
if (_root.puMUR) {
_root.game.game[(((("murX" + emplx) + "Y") + emply) + "P") + _root.CwALL2].gotoAndStop(2);
}
_root.pogneOBJECT2 = false;
_root.currentMONEY = _root.currentMONEY - currentDOLLARcost;
_root.paintNUM++;
}
} else if (_root.objectBARNAK != true) {
if (_root.pogneOBJECT2) {
build2HELP(_root.NumERO, "reprend", emplx, emply, xmp, ymp, depth, objectTYPEbf, obEMle, obEM, currentDOLLARcost);
} else {
build2HELP(nbBUILDobject2 + 1, undefined, emplx, emply, xmp, ymp, depth, objectTYPEbf, obEMle, obEM, currentDOLLARcost);
}
}
TEN = false;
cFloorC1 = false;
nbBUILDobjectAL = 0;
_root.argentPLUS = 0;
build2HELP3(objectTYPEbf, cFloor);
}
} else {
depth = 3;
okBUILD = false;
testEMPLXY0(-1, -1, 1, 1, -1, -1, "pogne4", 0, 0);
testEMPLXY90(-1, 1, 1, -1, -1, 1, "pogne4", 0, 0);
testEMPLXY180(1, 1, -1, -1, 0, 1, "pogne4", -1, 0, 0);
testEMPLXY270(1, -1, -1, 1, 1, -1, "pogne4", 0, 0);
if (cFloor == "wall") {
_root.game.game.grid[(("x" + emplx) + "y") + emply].attachMovie("backgrid", "back", 1);
_root.game.game.grid[(("x" + emplx) + "y") + emply].back._alpha = 30;
colorBACK = new Color(_root.game.game.grid[(("x" + emplx) + "y") + emply].back);
colorBACK.setRGB(16711680);
if (okBUILD != true) {
_root.game.game.grid[(("x" + emplx) + "y") + emply].back.removeMovieClip();
}
if ((Grotationf == 0) || (Grotationf == 180)) {
numW1 = 3;
numW2 = 1;
if (_root.game.game.grid[(("x" + emplx) + "y") + emply]._xmouse >= 5) {
prioriteW = 2;
} else {
prioriteW = 1;
}
}
if ((Grotationf == 90) || (Grotationf == 270)) {
numW1 = 1;
numW2 = 3;
if (_root.game.game.grid[(("x" + emplx) + "y") + emply]._xmouse <= 3) {
prioriteW = 2;
} else {
prioriteW = 1;
}
}
fiePRI = false;
if (_root.game.game[(((("murX" + emplx) + "Y") + emply) + "P") + 2]._currentframe != undefined) {
if (_root.game.game[(((("murX" + emplx) + "Y") + emply) + "P") + 1]._currentframe != undefined) {
fiePRI = true;
}
}
okWALLwP = false;
_root.CwALL2 = 0;
_root.game.game[(((("murX" + _root.murCACHEwallcX) + "Y") + _root.murCACHEwallcY) + "P") + _root.murCACHEwallcP].b.removeMovieClip();
if (_root.game.game[(((("murX" + emplx) + "Y") + emply) + "P") + 2]._currentframe != undefined) {
if (_root["BUILDobjectT" + _root.game.game[(((("murX" + emplx) + "Y") + emply) + "P") + 2].nume] == "wall-1") {
colorBACK.setRGB(65280);
okGOw2 = false;
if (fiePRI) {
if (prioriteW == 1) {
okGOw2 = true;
}
} else {
okGOw2 = true;
}
if (okGOw2) {
if (Grotationf == 0) {
obWallW = "BD";
}
if (Grotationf == 90) {
obWallW = "BD";
}
if (Grotationf == 180) {
obWallW = "HG";
}
if (Grotationf == 270) {
obWallW = "HG";
}
okWALLwP = true;
_root.CwALL = numW1;
_root.CwALL2 = 2;
_root.game.game[(((("murX" + emplx) + "Y") + emply) + "P") + 2].attachMovie((_root.currentTYPEw + "f") + numW1, "b", 8);
_root.game.game[(((("murX" + emplx) + "Y") + emply) + "P") + 2].b._alpha = 50;
_root.murCACHEwallcX = emplx;
_root.murCACHEwallcY = emply;
_root.murCACHEwallcP = 2;
}
}
}
if (_root.game.game[(((("murX" + emplx) + "Y") + emply) + "P") + 1]._currentframe != undefined) {
if (_root["BUILDobjectT" + _root.game.game[(((("murX" + emplx) + "Y") + emply) + "P") + 1].nume] == "wall-1") {
colorBACK.setRGB(65280);
okGOw1 = false;
if (fiePRI) {
if (prioriteW == 2) {
okGOw1 = true;
}
} else {
okGOw1 = true;
}
if (okGOw1) {
if (Grotationf == 0) {
obWallW = "BG";
}
if (Grotationf == 90) {
obWallW = "HD";
}
if (Grotationf == 180) {
obWallW = "HD";
}
if (Grotationf == 270) {
obWallW = "BG";
}
okWALLwP = true;
_root.CwALL = numW2;
_root.CwALL2 = 1;
_root.game.game[(((("murX" + emplx) + "Y") + emply) + "P") + 1].attachMovie((_root.currentTYPEw + "f") + numW2, "b", 8);
_root.game.game[(((("murX" + emplx) + "Y") + emply) + "P") + 1].b._alpha = 50;
_root.murCACHEwallcX = emplx;
_root.murCACHEwallcY = emply;
_root.murCACHEwallcP = 1;
}
}
}
}
if (okBUILD && (johDOUDA != true)) {
johDOUDA = true;
_root.game.game.pointeur._visible = true;
}
if (johDOUDA) {
B2AemplxT = undefined;
B2AemplyT = undefined;
testEMPLXY0(-1, -1, 1, 1, -1, -1, "pogne3", 0, 0);
testEMPLXY90(-1, -1, 1, -1, -1, 1, "pogne3", 0, 0);
testEMPLXY180(-1, -1, -1, -1, 2, 1, "pogne3", 0, 0, 0);
testEMPLXY270(-1, -1, -1, 1, 1, -1, "pogne3", 0, 0);
if ((B2AemplxT != undefined) && (B2AemplyT != undefined)) {
if (cFloor != "wall") {
_root.game.game.grid[(("x" + (B2AemplxT + 1)) + "y") + (B2AemplyT + 1)].attachMovie("backgrid", "back", 1);
_root.game.game.grid[(("x" + (B2AemplxT + 1)) + "y") + (B2AemplyT + 1)].back._alpha = 30;
colorBACK = new Color(_root.game.game.grid[(("x" + (B2AemplxT + 1)) + "y") + (B2AemplyT + 1)].back);
colorBACK.setRGB(65280);
}
_root.cacheXbuild2color2 = B2AemplxT + 1;
_root.cacheYbuild2color2 = B2AemplyT + 1;
}
if (cFloor != "floor") {
if (_root.game.game[((("objX" + (emplx + xmp)) + "Y") + (emply + ymp)) + "P3"]._currentframe != undefined) {
_root.game.game.pointeur._alpha = 0;
_root.TYPEcure2build = _root.game.game[((("objX" + (emplx + xmp)) + "Y") + (emply + ymp)) + "P3"].nume;
if (_root["BUILDobject2L" + _root.TYPEcure2build] == "BD") {
_root.game.game[((("objX" + (emplx + xmp)) + "Y") + (emply + ymp)) + "P3"].attachMovie(_root["BUILDobject2T" + _root.TYPEcure2build] + "f1", "coleurOBJ", 1);
}
if (_root["BUILDobject2L" + _root.TYPEcure2build] == "BG") {
_root.game.game[((("objX" + (emplx + xmp)) + "Y") + (emply + ymp)) + "P3"].attachMovie(_root["BUILDobject2T" + _root.TYPEcure2build] + "f4", "coleurOBJ", 1);
}
if (_root["BUILDobject2L" + _root.TYPEcure2build] == "HD") {
_root.game.game[((("objX" + (emplx + xmp)) + "Y") + (emply + ymp)) + "P3"].attachMovie(_root["BUILDobject2T" + _root.TYPEcure2build] + "f2", "coleurOBJ", 1);
}
if (_root["BUILDobject2L" + _root.TYPEcure2build] == "HG") {
_root.game.game[((("objX" + (emplx + xmp)) + "Y") + (emply + ymp)) + "P3"].attachMovie(_root["BUILDobject2T" + _root.TYPEcure2build] + "f3", "coleurOBJ", 1);
}
_root.game.game[((("objX" + (emplx + xmp)) + "Y") + (emply + ymp)) + "P3"].coleurOBJ._alpha = 50;
if (cFloor != "wall") {
colorOBJ = new Color(_root.game.game[((("objX" + (emplx + xmp)) + "Y") + (emply + ymp)) + "P3"].coleurOBJ);
colorOBJ.setRGB(16711680);
colorOBJ2 = new Color(_root.game.game.grid[(("x" + cacheXbuild2color2) + "y") + cacheYbuild2color2].back);
colorOBJ2.setRGB(10027008);
}
cacheXbuild2color = emplx + xmp;
cacheYbuild2color = emply + ymp;
} else {
_root.game.game.pointeur._alpha = 50;
}
}
}
}
}
} else if (MOUSEpress != true) {
empecheENCLENCHEUR = true;
}
};
}
function build1HELP3() {
if (game.game.grid[(("x" + _root.TENemplx) + "y") + _root.TENemply]._xmouse <= (0 + (game.game.grid[(("x" + _root.TENemplx) + "y") + _root.TENemply]._width / 2))) {
if (_root.emplG != true) {
build1HELP3h();
_root.emplG = true;
_root.emplD = false;
}
} else if (_root.emplD != true) {
build1HELP3h();
_root.emplD = true;
_root.emplG = false;
}
if (_root.game.game.grid[(("x" + _root.TENemplx) + "y") + _root.TENemply]._ymouse <= (0 + (game.game.grid[(("x" + _root.TENemplx) + "y") + _root.TENemply]._height / 2))) {
if (_root.emplH != true) {
build1HELP3h();
_root.emplH = true;
_root.emplB = false;
}
} else if (_root.emplB != true) {
build1HELP3h();
_root.emplB = true;
_root.emplH = false;
}
}
function build1HELP3h() {
i = 1;
while (i <= _root.nbBUILDobjectAL) {
_root.game.game["murAL" + i].removeMovieClip();
_root["trouble" + i] = false;
i++;
}
_root.nbBUILDobjectAL = 0;
_root.argentPLUS = 0;
}
function build1HELP2(BHnB, BHAL, BHde, BHemplxMX, BHemplyMX, BHMD1, BHMD2, BHMD3, BHMD4, BHovD, BHTENemplxH, BHTENemplyH, BHwallTYPEbfH, BHxmod, BHymod) {
if (_root.game.game["murAL" + BHnB]._currentframe == undefined) {
_root.buildAL = BHAL;
_root.depthP = BHde;
_root.nbBUILDobjectAL++;
_root.argentPLUS++;
_root.nbBuI = BHnB;
if ((BHAL == "HD") || (BHAL == "BG")) {
BHleF = "f3";
}
if ((BHAL == "HG") || (BHAL == "BD")) {
BHleF = "f1";
}
if (_root.game.game[(((("murX" + ((BHTENemplxH + BHxmod) + BHemplxMX)) + "Y") + ((BHTENemplyH + BHymod) + BHemplyMX)) + "P") + BHde]._currentframe == undefined) {
_root["BUILDobjectAL" + BHnB] = (((("murX" + ((BHTENemplxH + BHxmod) + BHemplxMX)) + "Y") + ((BHTENemplyH + BHymod) + BHemplyMX)) + "P") + BHde;
_root["BUILDobjectXAL" + BHnB] = (BHTENemplxH + BHxmod) + BHemplxMX;
_root["BUILDobjectYAL" + BHnB] = (BHTENemplyH + BHymod) + BHemplyMX;
_root["BUILDobjectPAL" + BHnB] = BHde;
_root.game.game.attachMovie(BHwallTYPEbfH + BHleF, "murAL" + BHnB, Number(BHovD));
_root.game.game["murAL" + BHnB]._alpha = 50;
_root.Templ = (("x" + ((BHTENemplxH + BHxmod) + BHemplxMX)) + "y") + ((BHTENemplyH + BHymod) + BHemplyMX);
_root.game.game["murAL" + BHnB]._x = game.game.grid[_root.Templ]._x;
_root.game.game["murAL" + BHnB]._y = game.game.grid[_root.Templ]._y;
delete _root.Templ;
_root["trouble" + BHnB] = false;
if (_root.ctrl) {
_root.game.game["murAL" + BHnB]._visible = false;
}
} else {
_root.MurDelete1(BHMD1, BHMD2, BHMD3, BHMD4);
if (_root["trouble" + BHnB] != true) {
_root.argentPLUS--;
_root.game.game.attachMovie(BHwallTYPEbfH + BHleF, "murAL" + BHnB, BHnB + 1);
_root.game.game["murAL" + BHnB]._visible = false;
_root["trouble" + BHnB] = true;
}
}
}
}
function build1HELPdel1(ai) {
if (_root.game.game["murAL" + ai]._currentframe == 1) {
if (_root["trouble" + ai] != true) {
_root.argentPLUS--;
}
delete _root["BUILDobjectAL" + ai];
delete _root["BUILDobjectXAL" + ai];
delete _root["BUILDobjectYAL" + ai];
delete _root["BUILDobjectPAL" + ai];
nbBUILDobjectAL--;
removeMovieClip(_root.game.game["murAL" + ai]);
_root["trouble" + ai] = false;
}
}
function build1(wallTYPEbf, currentDOLLARcost) {
_root.STOPshowXY = false;
_root.pausedejeuner = true;
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
_root.buildingKOKO2 = false;
_root.buildingKOKO3 = false;
_root.currentTYPEw = wallTYPEbf;
_root.currentDOLLARw = currentDOLLARcost;
nbBUILDobjectAL = 0;
nbBuI = 0;
buildingomg = true;
game.game.attachMovie("mur1", "murdup", 9999999998);
game.game.attachMovie("pointeur", "pointeur2", 9999999999);
game.game.murdup._x = 0;
game.game.murdup._y = 0;
game.game.pointeur2._x = 0;
game.game.pointeur2._y = 0;
game.game.pointeur2._visible = true;
game.game.pointeur2.onEnterFrame = function () {
this._x = game.game.murdup._x;
this._y = game.game.murdup._y;
if (_root.ctrl) {
this.non._visible = true;
} else {
this.non._visible = false;
}
this.non._alpha = 80;
};
game.game.murdup.onEnterFrame = function () {
if (_root.buildingKOKO2 != true) {
if (_root.ctrl) {
_root.showDOLLAR._visible = false;
} else {
_root.showDOLLAR._visible = true;
}
if (_root.argentPLUS == 0) {
_root.showDOLLAR.removeMovieClip();
_root.showDOLLAR._visible = false;
_root.maCHATTEdol = false;
} else {
if (maCHATTEdol != true) {
maCHATTEdol = true;
_root.attachMovie("showDOLLAR", "showDOLLAR", 9973645);
_root.showDOLLAR._alpha = 75;
}
_root.showDOLLAR.mon.text = (_root.argentPLUS * currentDOLLARcost) + " $";
_root.showDOLLAR._x = _root._xmouse - _root.showDOLLAR._width;
_root.showDOLLAR._y = _root._ymouse - _root.showDOLLAR._height;
}
if ((MOUSEpress != true) && (TEN)) {
i = 1;
while (i <= nbBUILDobjectAL) {
copyBUILD.htmlText = nbBUILDobject;
_root.game.game["murAL" + i].removeMovieClip();
if ((_root.ctrl != true) && (_root["trouble" + i] != true)) {
depthP = _root["BUILDobjectPAL" + i];
_root["BUILDobject" + (nbBUILDobject + i)] = (((("murX" + _root["BUILDobjectXAL" + i]) + "Y") + _root["BUILDobjectYAL" + i]) + "P") + _root["BUILDobjectPAL" + i];
_root["BUILDobjectX" + (nbBUILDobject + i)] = _root["BUILDobjectXAL" + i];
_root["BUILDobjectY" + (nbBUILDobject + i)] = _root["BUILDobjectYAL" + i];
_root["BUILDobjectP" + (nbBUILDobject + i)] = _root["BUILDobjectPAL" + i];
_root["BUILDobjectT" + (nbBUILDobject + i)] = wallTYPEbf;
if (_root.Grotationf == 0) {
overDepth2nb = String((((String(_root["BUILDobjectYAL" + i] + 1) + "0") + String(_root["BUILDobjectXAL" + i] + 1)) + "") + String(_root["BUILDobjectPAL" + i]));
}
if (_root.Grotationf == 90) {
overDepth2nb = String((((String(_root["BUILDobjectXAL" + i] + 1) + "0") + String(y - (_root["BUILDobjectYAL" + i] + 1))) + "") + String(_root["BUILDobjectPAL" + i]));
}
if (_root.Grotationf == 180) {
overDepth2nb = String((((String(y - (_root["BUILDobjectYAL" + i] + 1)) + "0") + String(x - (_root["BUILDobjectXAL" + i] + 1))) + "") + String(_root["BUILDobjectPAL" + i]));
}
if (_root.Grotationf == 270) {
overDepth2nb = String((((String((x - _root["BUILDobjectXAL" + i]) + 1) + "0") + String(_root["BUILDobjectYAL" + i] + 1)) + "") + String(_root["BUILDobjectPAL" + i]));
}
overDepth2nb = Number(overDepth2nb);
if (buildAL == "BD") {
_root.game.game.attachMovie(wallTYPEbf + "f1", (((("murX" + _root["BUILDobjectXAL" + i]) + "Y") + _root["BUILDobjectYAL" + i]) + "P") + _root["BUILDobjectPAL" + i], overDepth2nb);
}
if (buildAL == "HG") {
_root.game.game.attachMovie(wallTYPEbf + "f1", (((("murX" + _root["BUILDobjectXAL" + i]) + "Y") + _root["BUILDobjectYAL" + i]) + "P") + _root["BUILDobjectPAL" + i], overDepth2nb);
}
if (buildAL == "HD") {
_root.game.game.attachMovie(wallTYPEbf + "f3", (((("murX" + _root["BUILDobjectXAL" + i]) + "Y") + _root["BUILDobjectYAL" + i]) + "P") + _root["BUILDobjectPAL" + i], overDepth2nb);
}
if (buildAL == "BG") {
_root.game.game.attachMovie(wallTYPEbf + "f3", (((("murX" + _root["BUILDobjectXAL" + i]) + "Y") + _root["BUILDobjectYAL" + i]) + "P") + _root["BUILDobjectPAL" + i], overDepth2nb);
}
_root.game.game[(((("murX" + _root["BUILDobjectXAL" + i]) + "Y") + _root["BUILDobjectYAL" + i]) + "P") + _root["BUILDobjectPAL" + i]]._alpha = 100;
_root.game.game[(((("murX" + _root["BUILDobjectXAL" + i]) + "Y") + _root["BUILDobjectYAL" + i]) + "P") + _root["BUILDobjectPAL" + i]].nume = nbBUILDobject + i;
Templ = (("x" + _root["BUILDobjectXAL" + i]) + "y") + _root["BUILDobjectYAL" + i];
_root.game.game[(((("murX" + _root["BUILDobjectXAL" + i]) + "Y") + _root["BUILDobjectYAL" + i]) + "P") + _root["BUILDobjectPAL" + i]]._x = game.game.grid[Templ]._x;
_root.game.game[(((("murX" + _root["BUILDobjectXAL" + i]) + "Y") + _root["BUILDobjectYAL" + i]) + "P") + _root["BUILDobjectPAL" + i]]._y = game.game.grid[Templ]._y;
if (_root.puMUR) {
_root.game.game[(((("murX" + _root["BUILDobjectXAL" + i]) + "Y") + _root["BUILDobjectYAL" + i]) + "P") + _root["BUILDobjectPAL" + i]].gotoAndStop(2);
}
delete Templ;
}
_root["trouble" + i] = false;
i++;
}
if (_root.ctrl != true) {
_root.currentMONEY = _root.currentMONEY - (_root.argentPLUS * currentDOLLARcost);
nbBUILDobject = nbBUILDobject + i;
}
TEN = false;
nbBUILDobjectAL = 0;
_root.argentPLUS = 0;
}
this._alpha = 0;
if (_root.Grotationf == 0) {
emply = Math.round((Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2)) - Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2))) / 2);
emplx = Math.round((Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2)) + Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2))) / 2) - 1;
if (MOUSEpress && (TEN != true)) {
if ((((emplx > 0) && (emplx < x)) && (emply > 0)) && (emply < y)) {
TEN = true;
}
if (emply != 0) {
TENemply = emply;
}
if (emplx != 0) {
TENemplx = emplx;
}
}
if (TEN) {
if (buildAL == "BD") {
empl = (("x" + emplx) + "y") + TENemply;
}
if (buildAL == "HG") {
empl = (("x" + emplx) + "y") + TENemply;
}
if (buildAL == "BG") {
empl = (("x" + TENemplx) + "y") + emply;
}
if (buildAL == "HD") {
empl = (("x" + TENemplx) + "y") + emply;
}
} else {
empl = (("x" + emplx) + "y") + emply;
}
if ((emplx != 0) && (emply > 0)) {
this._x = game.game.grid[empl]._x;
this._y = game.game.grid[empl]._y;
okBUILD = true;
} else {
okBUILD = false;
}
}
if (_root.Grotationf == 90) {
emplx = Math.round((Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2)) - Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2))) / 2);
emply = Math.abs(Math.round((Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2)) + Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2))) / 2) - 1);
if (MOUSEpress && (TEN != true)) {
if ((((emplx > 0) && (emplx < x)) && (emply > -1)) && (emply < (y - 1))) {
TEN = true;
}
TENemply = emply;
TENemplx = emplx;
}
if (TEN) {
if (buildAL == "BD") {
empl = (("x" + TENemplx) + "y") + emply;
}
if (buildAL == "HG") {
empl = (("x" + TENemplx) + "y") + emply;
}
if (buildAL == "BG") {
empl = (("x" + emplx) + "y") + TENemply;
}
if (buildAL == "HD") {
empl = (("x" + emplx) + "y") + TENemply;
}
} else {
empl = (("x" + emplx) + "y") + emply;
}
if (((emply < (y - 1)) && (emplx > 0)) && ((Math.round((Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2)) + Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2))) / 2) - 1) < 1)) {
this._x = game.game.grid[empl]._x;
this._y = game.game.grid[empl]._y;
okBUILD = true;
} else {
okBUILD = false;
}
}
if (_root.Grotationf == 180) {
emply = Math.abs(Math.round((Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2)) - Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2))) / 2));
emplx = Math.abs(Math.round((Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2)) + Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2))) / 2) - 1);
empl = (("x" + emplx) + "y") + emply;
if (MOUSEpress && (TEN != true)) {
if ((((emplx > -1) && (emplx < (x - 1))) && (emply > -1)) && (emply < (y - 1))) {
TEN = true;
}
TENemply = emply;
TENemplx = emplx;
}
if (TEN) {
if (buildAL == "BD") {
empl = (("x" + emplx) + "y") + TENemply;
}
if (buildAL == "HG") {
empl = (("x" + emplx) + "y") + TENemply;
}
if (buildAL == "BG") {
empl = (("x" + TENemplx) + "y") + emply;
}
if (buildAL == "HD") {
empl = (("x" + TENemplx) + "y") + emply;
}
} else {
empl = (("x" + emplx) + "y") + emply;
}
if ((((emplx < (x - 1)) && (emply < (y - 1))) && ((Math.round((Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2)) + Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2))) / 2) - 1) < 1)) && (Math.round((Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2)) - Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2))) / 2) < 1)) {
this._x = game.game.grid[empl]._x;
this._y = game.game.grid[empl]._y;
okBUILD = true;
} else {
okBUILD = false;
}
}
if (_root.Grotationf == 270) {
emplx = Math.abs(Math.round((Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2)) - Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2))) / 2));
emply = Math.abs(Math.round((Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2)) + Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2))) / 2) - 1);
empl = (("x" + emplx) + "y") + emply;
if (MOUSEpress && (TEN != true)) {
if ((((emplx >= 0) && (emplx < (x - 1))) && (emply > 0)) && (emply < y)) {
TEN = true;
}
TENemply = emply;
TENemplx = emplx;
}
if (TEN) {
if (buildAL == "BD") {
empl = (("x" + TENemplx) + "y") + emply;
}
if (buildAL == "HG") {
empl = (("x" + TENemplx) + "y") + emply;
}
if (buildAL == "BG") {
empl = (("x" + emplx) + "y") + TENemply;
}
if (buildAL == "HD") {
empl = (("x" + emplx) + "y") + TENemply;
}
} else {
empl = (("x" + emplx) + "y") + emply;
}
if (((emplx < (x - 1)) && ((Math.round((Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2)) + Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2))) / 2) - 1) > 0)) && (Math.round((Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2)) - Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2))) / 2) < 1)) {
this._x = game.game.grid[empl]._x;
this._y = game.game.grid[empl]._y;
okBUILD = true;
} else {
okBUILD = false;
}
}
if ((((((buildingomg && (MOUSEpress)) && (emplx <= (x - 1))) && (emply <= (y - 1))) && (emplx >= 1)) && (emply >= 1)) && (okBUILD)) {
okBUILD = false;
if (_root.Grotationf == 0) {
build1HELP3();
if (emplH) {
if (emplD) {
i = nbBuI;
while (i >= ((emply - 1) - (TENemply - nbBuI))) {
build1HELPdel1(i);
i--;
}
i = 1;
while (i <= (TENemply - emply)) {
build1HELP2(i, "HD", 2, 0, -i, 0, 0, 0, -i, String((((String((TENemply + 1) - i) + "0") + String(TENemplx + 1)) + "") + String(2)), TENemplx, TENemply, wallTYPEbf, 0, 0);
i++;
}
}
if (emplG) {
i = nbBuI;
while (i >= (emplx - (TENemplx - nbBuI))) {
build1HELPdel1(i);
i--;
}
i = 1;
while (i <= (TENemplx - emplx)) {
build1HELP2(i, "HG", 1, -i, 0, 0, -i, 0, 0, String((((String(TENemply + 1) + "0") + String((TENemplx + 1) - i)) + "") + String(1)), TENemplx, TENemply, wallTYPEbf, 0, 0);
i++;
}
}
}
if (emplB) {
if (emplD) {
i = nbBuI;
while (i >= ((TENemplx + nbBuI) - emplx)) {
build1HELPdel1(i);
i--;
}
i = 1;
while (i <= (emplx - TENemplx)) {
build1HELP2(i, "BD", 1, i, 0, -1, i, 0, 0, String((((String(TENemply + 1) + "0") + String(TENemplx + i)) + "") + String(1)), TENemplx, TENemply, wallTYPEbf, -1, 0);
i++;
}
}
if (emplG) {
i = nbBuI;
while (i >= ((TENemply + nbBuI) - emply)) {
build1HELPdel1(i);
i--;
}
i = 1;
while (i <= (emply - TENemply)) {
build1HELP2(i, "BG", 2, 0, i, 0, 0, -1, i, String((((String(TENemply + i) + "0") + String(TENemplx + 1)) + "") + String(2)), TENemplx, TENemply, wallTYPEbf, 0, -1);
i++;
}
}
}
}
if (_root.Grotationf == 90) {
build1HELP3();
if (emplH) {
if (emplD) {
i = nbBuI;
while (i >= ((emplx - 1) - (TENemplx - nbBuI))) {
build1HELPdel1(i);
i--;
}
i = 1;
while (i <= (TENemplx - emplx)) {
build1HELP2(i, "HD", 1, -i, 0, 0, -i, 0, 0, String((((String((TENemplx + 1) - i) + "0") + String(y - (TENemply + 1))) + "") + String(1)), TENemplx, TENemply, wallTYPEbf, 0, 0);
i++;
}
}
if (emplG) {
i = nbBuI;
while (i >= ((TENemply - nbBuI) - emply)) {
build1HELPdel1(i);
i--;
}
i = 1;
while (i <= (emply - TENemply)) {
build1HELP2(i, "HG", 2, 0, i, 0, 0, 0, i, String((((String(TENemplx + 1) + "0") + String(y - ((TENemply + 1) + i))) + "") + String(2)), TENemplx, TENemply, wallTYPEbf, 0, 0);
i++;
}
}
}
if (emplB) {
if (emplD) {
i = nbBuI;
while (i >= (emply - (TENemply - nbBuI))) {
build1HELPdel1(i);
i--;
}
if ((Math.round((Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2)) + Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2))) / 2) - 1) >= 0) {
i = 1;
while (i <= (TENemply - (emply - 1))) {
build1HELP2(i, "BD", 2, 0, -i, 0, 0, 1, -i, String((((String(TENemplx + 1) + "0") + String(y - ((TENemply + 2) - i))) + "") + String(2)), TENemplx, TENemply, wallTYPEbf, 0, 1);
i++;
}
} else {
i = 1;
while (i <= (TENemply - emply)) {
build1HELP2(i, "BD", 2, 0, -i, 0, 0, 1, -i, String((((String(TENemplx + 1) + "0") + String(y - ((TENemply + 2) - i))) + "") + String(2)), TENemplx, TENemply, wallTYPEbf, 0, 1);
i++;
}
}
}
if (emplG) {
i = nbBuI;
while (i >= ((TENemplx + nbBuI) - emplx)) {
build1HELPdel1(i);
i--;
}
i = 1;
while (i <= (emplx - TENemplx)) {
build1HELP2(i, "BG", 1, i, 0, -1, i, 0, 0, String((((String(TENemplx + i) + "0") + String(y - (TENemply + 1))) + "") + String(1)), TENemplx, TENemply, wallTYPEbf, -1, 0);
i++;
}
}
}
}
if (_root.Grotationf == 180) {
build1HELP3();
if (emplH) {
if (emplD) {
i = nbBuI;
while (i >= ((TENemply - 1) - (emply - nbBuI))) {
build1HELPdel1(i);
i--;
}
i = 1;
while (i <= (emply - TENemply)) {
build1HELP2(i, "HD", 2, 0, i, 0, 0, 0, i, String((((String(y - ((TENemply + i) + 1)) + "0") + String(x - (TENemplx + 1))) + "") + String(2)), TENemplx, TENemply, wallTYPEbf, 0, 0);
i++;
}
}
if (emplG) {
i = nbBuI;
while (i >= (TENemplx - (emplx - nbBuI))) {
build1HELPdel1(i);
i--;
}
i = 1;
while (i <= (emplx - TENemplx)) {
build1HELP2(i, "HG", 1, i, 0, 0, i, 0, 0, String((((String(y - (TENemply + 1)) + "0") + String(x - ((TENemplx + i) + 1))) + "") + String(1)), TENemplx, TENemply, wallTYPEbf, 0, 0);
i++;
}
}
}
if (emplB) {
if (emplD) {
i = nbBuI;
while (i >= ((emplx + nbBuI) - TENemplx)) {
build1HELPdel1(i);
i--;
}
if ((Math.round((Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2)) + Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2))) / 2) - 1) >= 0) {
i = 1;
while (i <= ((TENemplx - emplx) + 1)) {
build1HELP2(i, "BD", 1, -i, 0, 1, -i, 0, 0, String((((String(y - (TENemply + 1)) + "0") + String(x - ((TENemplx - i) + 2))) + "") + String(1)), TENemplx, TENemply, wallTYPEbf, 1, 0);
i++;
}
} else {
i = 1;
while (i <= (TENemplx - emplx)) {
build1HELP2(i, "BD", 1, -i, 0, 1, -i, 0, 0, String((((String(y - (TENemply + 1)) + "0") + String(x - ((TENemplx - i) + 2))) + "") + String(1)), TENemplx, TENemply, wallTYPEbf, 1, 0);
i++;
}
}
}
if (emplG) {
i = nbBuI;
while (i >= ((emply + nbBuI) - TENemply)) {
build1HELPdel1(i);
i--;
}
if (Math.round((Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2)) - Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2))) / 2) >= 0) {
i = 1;
while (i <= (TENemply - (emply - 1))) {
build1HELP2(i, "BG", 2, 0, -i, 0, 0, 1, -i, String((((String(y - ((TENemply - i) + 2)) + "0") + String(x - (TENemplx + 1))) + "") + String(2)), TENemplx, TENemply, wallTYPEbf, 0, 1);
i++;
}
} else {
i = 1;
while (i <= (TENemply - emply)) {
build1HELP2(i, "BG", 2, 0, -i, 0, 0, 1, -i, String((((String(y - ((TENemply - i) + 2)) + "0") + String(x - (TENemplx + 1))) + "") + String(2)), TENemplx, TENemply, wallTYPEbf, 0, 1);
i++;
}
}
}
}
}
if (_root.Grotationf == 270) {
build1HELP3();
if (emplH) {
if (emplD) {
i = nbBuI;
while (i >= ((TENemplx - 1) - (emplx - nbBuI))) {
build1HELPdel1(i);
i--;
}
i = 1;
while (i <= (emplx - TENemplx)) {
build1HELP2(i, "HD", 1, i, 0, 0, i, 0, 0, String((((String((x - (TENemplx + i)) + 1) + "0") + String(TENemply + 1)) + "") + String(1)), TENemplx, TENemply, wallTYPEbf, 0, 0);
i++;
}
}
if (emplG) {
i = nbBuI;
while (i >= ((emply - nbBuI) - TENemply)) {
build1HELPdel1(i);
i--;
}
i = 1;
while (i <= (TENemply - emply)) {
build1HELP2(i, "HG", 2, 0, -i, 0, 0, 0, -i, String((((String((x - TENemplx) + 1) + "0") + String((TENemply - i) + 1)) + "") + String(2)), TENemplx, TENemply, wallTYPEbf, 0, 0);
i++;
}
}
}
if (emplB) {
if (emplD) {
i = nbBuI;
while (i >= (TENemply - (emply - nbBuI))) {
build1HELPdel1(i);
i--;
}
i = 1;
while (i <= (emply - TENemply)) {
build1HELP2(i, "BD", 2, 0, i, 0, 0, -1, i, String((((String((x - TENemplx) + 1) + "0") + String((TENemply + i) + 0)) + "") + String(2)), TENemplx, TENemply, wallTYPEbf, 0, -1);
i++;
}
}
if (emplG) {
i = nbBuI;
while (i >= (emplx - (TENemplx - nbBuI))) {
build1HELPdel1(i);
i--;
}
if (Math.round((Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2)) - Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2))) / 2) >= 0) {
i = 1;
while (i <= ((TENemplx - emplx) + 1)) {
build1HELP2(i, "BG", 1, -i, 0, 1, -i, 0, 0, String((((String((x - ((TENemplx + 1) - i)) + 1) + "0") + String(TENemply + 1)) + "") + String(1)), TENemplx, TENemply, wallTYPEbf, 1, 0);
i++;
}
} else {
i = 1;
while (i <= (TENemplx - emplx)) {
build1HELP2(i, "BG", 1, -i, 0, 1, -i, 0, 0, String((((String((x - ((TENemplx + 1) - i)) + 1) + "0") + String(TENemply + 1)) + "") + String(1)), TENemplx, TENemply, wallTYPEbf, 1, 0);
i++;
}
}
}
}
}
}
}
};
}
function BOUTONhelpF(pathBh, nomBh, IDBh, dBh, xBh, yBh) {
_root[pathBh].attachMovie(IDBh, nomBh, dBh);
_root[pathBh][nomBh]._x = xBh;
_root[pathBh][nomBh]._y = yBh;
_root[pathBh][nomBh].gotoAndStop(1);
_root[pathBh][nomBh].useHandCursor = false;
_root[pathBh][nomBh].onRollOver = function () {
_root[pathBh][nomBh].gotoAndStop(2);
};
_root[pathBh][nomBh].onRollOut = function () {
_root[pathBh][nomBh].gotoAndStop(1);
};
_root[pathBh][nomBh].onDragOut = function () {
_root[pathBh][nomBh].gotoAndStop(1);
};
}
function windowMAKEfunc(okW, annuleW, yesW, titleW, texteW, varW) {
_root.attachMovie("windowMK", "windows", 99996);
windows._x = 200 - (windows._width / 2);
windows._y = 150 - (windows._height / 2);
windows.title.text = titleW;
windows.title.selectable = false;
windows.texte.text = texteW;
windows.texte.selectable = false;
windows.back.useHandCursor = false;
windows.back.onPress = function () {
};
windows.back2.useHandCursor = false;
windows.back2.onPress = function () {
startDrag ("windows");
};
windows.back2.onRelease = function () {
stopDrag();
};
if (okW) {
BOUTONhelpF("windows", "ok", "BwindowMK", 1, 134.975, 70);
windows.ok.name.text = "ok";
windows.ok.name.selectable = false;
windows.ok.onRelease = function () {
windows.ok.gotoAndStop(2);
_root[varW] = true;
windows.removeMovieClip();
_root.pogneOBJECT = true;
};
windows.ok.onPress = function () {
windows.ok.gotoAndStop(3);
};
}
if (annuleW) {
BOUTONhelpF("windows", "ok", "BwindowMK", 1, 114.475, 70);
windows.ok.name.text = "ok";
windows.ok.name.selectable = false;
windows.ok.onRelease = function () {
windows.ok.gotoAndStop(2);
_root[varW] = true;
windows.removeMovieClip();
_root.pogneOBJECT = true;
};
windows.ok.onPress = function () {
windows.ok.gotoAndStop(3);
};
BOUTONhelpF("windows", "annule", "BwindowMK", 2, 165.475, 70);
if (_root.languageL == "Fran\u00E7ais") {
windows.annule.name.text = "annule";
}
if (_root.languageL == "English") {
windows.annule.name.text = "cancel";
}
windows.annule.name.selectable = false;
windows.annule.onRelease = function () {
windows.annule.gotoAndStop(2);
windows.removeMovieClip();
_root.pogneOBJECT = true;
};
windows.annule.onPress = function () {
windows.annule.gotoAndStop(3);
};
}
if (yesW) {
BOUTONhelpF("windows", "yes", "BwindowMK", 1, 114.475, 70);
if (_root.languageL == "Fran\u00E7ais") {
windows.yes.name.text = "oui";
}
if (_root.languageL == "English") {
windows.yes.name.text = "yes";
}
windows.yes.name.selectable = false;
windows.yes.onRelease = function () {
windows.yes.gotoAndStop(2);
windows.removeMovieClip();
_root[varW] = true;
_root.pogneOBJECT = true;
};
windows.yes.onPress = function () {
windows.yes.gotoAndStop(3);
};
BOUTONhelpF("windows", "no", "BwindowMK", 2, 165.475, 70);
if (_root.languageL == "Fran\u00E7ais") {
windows.no.name.text = "non";
}
if (_root.languageL == "English") {
windows.no.name.text = "no";
}
windows.no.name.selectable = false;
windows.no.onRelease = function () {
windows.no.gotoAndStop(2);
windows.removeMovieClip();
_root.pogneOBJECT = true;
};
windows.no.onPress = function () {
windows.no.gotoAndStop(3);
};
}
}
function activePlusWINDOWSF() {
_root.createEmptyMovieClip("FuncWINDOWS", 99997);
_root.FuncWINDOWS.onEnterFrame = function () {
if (quitGAMEw) {
quitGAMEw = false;
delete quitGAMEw;
blackscreenFunc();
removeALLgame();
menuSTARTfunc();
}
if (savingGAMEw) {
savingGAMEw = false;
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
SharedOBJsbp = SharedObject.getLocal("Build_a_Bank");
SharedOBJsbp.data.OK = true;
SharedOBJsbp.data.currentMONEY = _root.currentMONEY;
SharedOBJsbp.data.currentYEAR = _root.currentYEAR;
SharedOBJsbp.data.currentMONTH = _root.currentMONTH;
SharedOBJsbp.data.currentDAY = _root.currentDAY;
SharedOBJsbp.data.nbBUILDobject = nbBUILDobject;
SharedOBJsbp.data.nbBUILDobject2 = nbBUILDobject2;
SharedOBJsbp.data.nbBUILDpaintW = nbBUILDpaintW;
SharedOBJsbp.data.paintNUM = _root.paintNUM;
SharedOBJsbp.data.ROT = Grotationf;
i = 1;
while (i < nbBUILDobject) {
SharedOBJsbp.data["BUILDobject" + i] = _root["BUILDobject" + i];
SharedOBJsbp.data["BUILDobjectAL" + i] = _root["BUILDobjectAL" + i];
SharedOBJsbp.data["BUILDobjectP" + i] = _root["BUILDobjectP" + i];
SharedOBJsbp.data["BUILDobjectPAL" + i] = _root["BUILDobjectPAL" + i];
SharedOBJsbp.data["BUILDobjectT" + i] = _root["BUILDobjectT" + i];
SharedOBJsbp.data["BUILDobjectX" + i] = _root["BUILDobjectX" + i];
SharedOBJsbp.data["BUILDobjectXAL" + i] = _root["BUILDobjectXAL" + i];
SharedOBJsbp.data["BUILDobjectY" + i] = _root["BUILDobjectY" + i];
SharedOBJsbp.data["BUILDobjectYAL" + i] = _root["BUILDobjectYAL" + i];
SharedOBJsbp.data["trouble" + i] = _root["trouble" + i];
i++;
}
i = 1;
while (i <= nbBUILDobject2) {
SharedOBJsbp.data["BUILDobject2N" + i] = _root["BUILDobject2N" + i];
SharedOBJsbp.data["BUILDobject2L" + i] = _root["BUILDobject2L" + i];
SharedOBJsbp.data["BUILDobject2P" + i] = _root["BUILDobject2P" + i];
SharedOBJsbp.data["BUILDobject2T" + i] = _root["BUILDobject2T" + i];
SharedOBJsbp.data["BUILDobject2X" + i] = _root["BUILDobject2X" + i];
SharedOBJsbp.data["BUILDobject2Y" + i] = _root["BUILDobject2Y" + i];
i++;
}
i = 1;
while (i <= _root.paintNUM) {
SharedOBJsbp.data[("BUILDpaintW" + i) + "N"] = _root[("BUILDpaintW" + i) + "N"];
SharedOBJsbp.data[("BUILDpaintW" + i) + "T"] = _root[("BUILDpaintW" + i) + "T"];
SharedOBJsbp.data[("BUILDpaintW" + i) + "L"] = _root[("BUILDpaintW" + i) + "L"];
SharedOBJsbp.data[("BUILDpaintW" + i) + "P"] = _root[("BUILDpaintW" + i) + "P"];
SharedOBJsbp.data[("BUILDpaintW" + i) + "X"] = _root[("BUILDpaintW" + i) + "X"];
SharedOBJsbp.data[("BUILDpaintW" + i) + "Y"] = _root[("BUILDpaintW" + i) + "Y"];
i++;
}
savex = 1;
while (savex <= _root.gridlx) {
savey = 1;
while (savey <= _root.gridly) {
if (_root[(("paintX" + savex) + "Y") + savey] != undefined) {
SharedOBJsbp.data[(("paintX" + savex) + "Y") + savey] = _root[(("paintX" + savex) + "Y") + savey];
SharedOBJsbp.data[((("paintX" + savex) + "Y") + savey) + "T"] = _root[((("paintX" + savex) + "Y") + savey) + "T"];
}
savey++;
}
savex++;
}
if (SharedOBJsbp.flush() != true) {
if (_root.languageL == "Fran\u00E7ais") {
windowMAKEfunc(true, false, false, "Probl\u00E8me!", "Votre partie n'a pas sauvegarder! Veuillez accept\u00E9 d'utilis\u00E9 de l'espace disque pour flash et recommencer.", "NOTHINGAGSFA");
}
if (_root.languageL == "English") {
windowMAKEfunc(true, false, false, "Problem!", "Your game did not save! More Disk Space needing or You did not ACCEPT for flash to use disk space, please retry.", "NOTHINGAGSFA");
}
} else {
if (_root.languageL == "Fran\u00E7ais") {
windowMAKEfunc(true, false, false, "Succ\u00E8s!", "Votre partie est sauvegarder!", "NOTHINGAGSFA");
}
if (_root.languageL == "English") {
windowMAKEfunc(true, false, false, "Succesfull!", "Your game is saved!", "NOTHINGAGSFA");
}
}
}
};
}
function setGame() {
_root.createEmptyMovieClip("game", 0);
game._x = 200;
game._y = 150;
game.createEmptyMovieClip("game", 0);
game.game._x = 0;
game.game._y = -50;
game.game.createEmptyMovieClip("grid", 1);
game.game.grid._x = 0;
game.game.grid._y = 0;
}
function PutBACKH(nomHB, HBx1, HBy1, HBx2, HBy2, HBx3, HBy3) {
game.game.back1G.xydup.removeMovieClip();
game.game.back1G._visible = false;
game.game.back1UP._visible = false;
game.game.back1UP2._visible = false;
game.game.back1UP.removeMovieClip();
game.game.back1UP2.removeMovieClip();
game.game.back1G.removeMovieClip();
game.game.attachMovie(("back" + nomHB) + "G", "back1G", 0);
game.game.attachMovie(("back" + nomHB) + "UP", "back1UP", 9923748);
game.game.attachMovie(("back" + nomHB) + "UP2", "back1UP2", 9923749);
game.game.back1UP2._x = HBx1;
game.game.back1UP2._y = HBy1;
game.game.back1UP._x = HBx2;
game.game.back1UP._y = HBy2;
game.game.back1G._x = HBx3;
game.game.back1G._y = HBy3;
}
function setGrid(xlimit, ylimit) {
_root.gridlx = xlimit;
_root.gridly = ylimit;
game.game.grid.attachMovie("grid", "xydup", 0);
i = 1;
game.game.grid.xydup._x = 0;
game.game.grid.xydup._y = 0;
y = 0;
while (y < ylimit) {
x = 0;
while (x < xlimit) {
duplicateMovieClip ("game.game.grid.xydup", (("x" + x) + "y") + y, i++);
if (y == 0) {
game.game.grid[(("x" + x) + "y") + y]._visible = false;
}
if (x == 0) {
game.game.grid[(("x" + x) + "y") + y]._visible = false;
}
if (x == (_root.gridlx - 1)) {
game.game.grid[(("x" + x) + "y") + y]._visible = false;
}
if (y == (_root.gridly - 1)) {
game.game.grid[(("x" + x) + "y") + y]._visible = false;
}
game.game.grid[(("x" + x) + "y") + y].name = (("x" + x) + "y") + y;
if (_root.Grotationf == 0) {
if (_root[(("paintX" + x) + "Y") + y] != undefined) {
game.game.grid[(("x" + x) + "y") + y].attachMovie(_root[((("paintX" + x) + "Y") + y) + "T"] + "f1", "carre2", 0);
}
game.game.grid[(("x" + x) + "y") + y]._x = game.game.grid[(("x" + x) + "y") + y]._x + (((game.game.grid.xydup._width / 2) * x) - ((game.game.grid.xydup._width / 2) * y));
game.game.grid[(("x" + x) + "y") + y]._y = game.game.grid[(("x" + x) + "y") + y]._y + (((game.game.grid.xydup._height / 2) * x) + ((game.game.grid.xydup._height / 2) * y));
}
if (_root.Grotationf == 90) {
if (_root[(("paintX" + x) + "Y") + (y - 2)] != undefined) {
game.game.grid[(("x" + x) + "y") + y].attachMovie(_root[((("paintX" + x) + "Y") + (y - 2)) + "T"] + "f1", "carre2", 0);
}
game.game.grid[(("x" + x) + "y") + y]._x = game.game.grid[(("x" + x) + "y") + y]._x - (((game.game.grid.xydup._width / 2) * y) + ((game.game.grid.xydup._width / 2) * x));
game.game.grid[(("x" + x) + "y") + y]._y = game.game.grid[(("x" + x) + "y") + y]._y - (((game.game.grid.xydup._height / 2) * y) - ((game.game.grid.xydup._height / 2) * x));
}
if (_root.Grotationf == 180) {
if (_root[(("paintX" + (x - 2)) + "Y") + (y - 2)] != undefined) {
game.game.grid[(("x" + x) + "y") + y].attachMovie(_root[((("paintX" + (x - 2)) + "Y") + (y - 2)) + "T"] + "f1", "carre2", 0);
}
game.game.grid[(("x" + x) + "y") + y]._x = game.game.grid[(("x" + x) + "y") + y]._x - (((game.game.grid.xydup._width / 2) * x) - ((game.game.grid.xydup._width / 2) * y));
game.game.grid[(("x" + x) + "y") + y]._y = game.game.grid[(("x" + x) + "y") + y]._y - (((game.game.grid.xydup._height / 2) * x) + ((game.game.grid.xydup._height / 2) * y));
}
if (_root.Grotationf == 270) {
if (_root[(("paintX" + (x - 2)) + "Y") + y] != undefined) {
game.game.grid[(("x" + x) + "y") + y].attachMovie(_root[((("paintX" + (x - 2)) + "Y") + y) + "T"] + "f1", "carre2", 0);
}
game.game.grid[(("x" + x) + "y") + y]._x = game.game.grid[(("x" + x) + "y") + y]._x + (((game.game.grid.xydup._width / 2) * y) + ((game.game.grid.xydup._width / 2) * x));
game.game.grid[(("x" + x) + "y") + y]._y = game.game.grid[(("x" + x) + "y") + y]._y + (((game.game.grid.xydup._height / 2) * y) - ((game.game.grid.xydup._height / 2) * x));
}
x++;
}
y++;
}
if (_root.rotGa) {
if (_root.Grotationf == 0) {
game.game.grid._x = game.game.grid._x - game.game.grid._width;
game.game.grid._y = game.game.grid._y - game.game.grid._height;
}
if (_root.Grotationf == 90) {
game.game.grid._y = game.game.grid._y - game.game.grid._height;
game.game.grid._x = game.game.grid._x + game.game.grid._width;
}
if (_root.Grotationf == 180) {
game.game.grid._x = game.game.grid._x + game.game.grid._width;
game.game.grid._y = game.game.grid._y + game.game.grid._height;
}
if (_root.Grotationf == 270) {
game.game.grid._x = game.game.grid._x - game.game.grid._width;
game.game.grid._y = game.game.grid._y + game.game.grid._height;
}
}
if (_root.rotDa) {
if (_root.Grotationf == 0) {
game.game.grid._y = game.game.grid._y - game.game.grid._height;
game.game.grid._x = game.game.grid._x + game.game.grid._width;
}
if (_root.Grotationf == 90) {
game.game.grid._x = game.game.grid._x + game.game.grid._width;
game.game.grid._y = game.game.grid._y + game.game.grid._height;
}
if (_root.Grotationf == 180) {
game.game.grid._y = game.game.grid._y + game.game.grid._height;
game.game.grid._x = game.game.grid._x - game.game.grid._width;
}
if (_root.Grotationf == 270) {
game.game.grid._x = game.game.grid._x - game.game.grid._width;
game.game.grid._y = game.game.grid._y - game.game.grid._height;
}
}
game.game.grid.xydup._visible = false;
}
function keyCODEwoot() {
_root.createEmptyMovieClip("supprTEST", 2387323);
_root.supprTEST.onEnterFrame = function () {
if (Key.isDown(46)) {
_root.suppr = true;
} else {
_root.suppr = false;
}
};
_root.createEmptyMovieClip("ctrlTEST", 2387324);
_root.ctrlTEST.onEnterFrame = function () {
if (Key.isDown(17)) {
_root.ctrl = true;
} else {
_root.ctrl = false;
}
};
}
function plusKEY(key1, key2, key3, key4, key5, key6, key7, key8, ide) {
nbMCfunc++;
_root["MCfunc" + nbMCfunc] = "FUNC" + ide;
_root.createEmptyMovieClip("FUNC" + ide, p++);
_root["FUNC" + ide].key1 = key1;
_root["FUNC" + ide].key2 = key2;
_root["FUNC" + ide].key3 = key3;
_root["FUNC" + ide].key4 = key4;
_root["FUNC" + ide].key5 = key5;
_root["FUNC" + ide].key6 = key6;
_root["FUNC" + ide].key7 = key7;
_root["FUNC" + ide].key8 = key8;
_root["FUNC" + ide].ide = ide;
_root["FUNC" + ide].pluskeynb = 0;
_root["FUNC" + ide].i = 0;
while (_root["FUNC" + ide]["key" + (_root["FUNC" + ide].i + 1)] != undefined) {
_root["FUNC" + ide].i++;
}
_root["FUNC" + ide].pluskeylistener = new Object();
_root["FUNC" + ide].pluskeylistener.onKeyDown = function () {
if (_root["FUNC" + ide].pluskeydown != true) {
_root["FUNC" + ide].pluskeydown = true;
if (Key.getCode() == _root["FUNC" + ide]["key" + (_root["FUNC" + ide].pluskeynb + 1)]) {
_root["FUNC" + ide].pluskeynb++;
if (_root["FUNC" + ide].pluskeynb == _root["FUNC" + ide].i) {
if (_root[_root["FUNC" + ide].ide]) {
_root["FUNC" + ide].pluskeynb = 0;
_root[_root["FUNC" + ide].ide] = false;
} else {
_root["FUNC" + ide].pluskeynb = 0;
_root[_root["FUNC" + ide].ide] = true;
}
}
} else {
_root["FUNC" + ide].pluskeynb = 0;
}
}
};
_root["FUNC" + ide].pluskeylistener.onKeyUp = function () {
_root["FUNC" + ide].pluskeydown = false;
};
Key.addListener(_root["FUNC" + ide].pluskeylistener);
delete _root.key1;
delete _root.key2;
delete _root.key3;
delete _root.key4;
delete _root.key5;
delete _root.key6;
delete _root.key7;
delete _root.key8;
delete _root.ide;
}
function zoomp() {
if (game._xscale < 250) {
game._xscale = game._xscale + 50;
game._yscale = game._yscale + 50;
}
}
function zoomm() {
if (game._xscale > 50) {
game._xscale = game._xscale - 50;
game._yscale = game._yscale - 50;
}
}
function contour() {
_root.attachMovie("bord", "border", 99999);
border._x = 1;
border._y = 1;
}
function menub() {
_root.attachMovie("menub", "menubas", 99995);
menubas._x = 0;
menubas._y = 300;
_root.menubas.attachMovie("moneySH", "moneySH", 9);
_root.menubas.moneySH._x = -12;
_root.menubas.moneySH._y = -17;
menubas.moneySH.onEnterFrame = function () {
_root.menubas.moneySH.mon.text = _root.currentMONEY + " $";
};
_root.menubas.attachMovie("dateSH", "dateSH", 2);
_root.menubas.dateSH._x = 33;
_root.menubas.dateSH._y = -17;
_root.menubas.dateSH.dayd = 0;
menubas.dateSH.useHandCursor = false;
menubas.dateSH.onRollOver = function () {
_root.attachMovie("dateshowc", "dateS", 92347123);
_root.dateS._alpha = 0;
_root.dateS.onEnterFrame = function () {
_root.dateS._alpha = 75;
_root.dateS._x = _root._xmouse;
_root.dateS._y = _root._ymouse - _root.dateS._height;
_root.dateS.mon.text = _root.TEXTdateS;
};
menubas.dateSH.onRollOut = function () {
delete _root.dateS.onEnterFrame;
_root.dateS._visible = false;
_root.dateS.removeMovieClip();
};
menubas.dateSH.onDragOut = function () {
delete _root.dateS.onEnterFrame;
_root.dateS._visible = false;
_root.dateS.removeMovieClip();
};
};
menubas.dateSH.onEnterFrame = function () {
if (_root.pausedejeuner != true) {
this.dayd++;
}
if (this.dayd >= 100) {
_root.currentDAY = _root.currentDAY + 1;
this.dayd = 0;
}
if (((((((_root.currentMONTH == 1) || (_root.currentMONTH == 3)) || (_root.currentMONTH == 5)) || (_root.currentMONTH == 7)) || (_root.currentMONTH == 8)) || (_root.currentMONTH == 10)) || (_root.currentMONTH == 12)) {
if (_root.currentDAY >= 32) {
_root.currentMONTH = _root.currentMONTH + 1;
_root.currentDAY = 1;
}
} else if (_root.currentDAY >= 31) {
_root.currentMONTH = _root.currentMONTH + 1;
_root.currentDAY = 1;
}
if (_root.currentMONTH >= 13) {
_root.currentYEAR = _root.currentYEAR + 1;
_root.currentMONTH = 1;
}
if (_root.currentYEAR > 100) {
_root.currentYEAR = 0;
}
if (_root.currentYEAR < 10) {
_root.currentYEARt = "0" + _root.currentYEAR;
} else {
_root.currentYEARt = _root.currentYEAR;
}
if (_root.currentMONTH < 10) {
_root.currentMONTHt = "0" + _root.currentMONTH;
} else {
_root.currentMONTHt = _root.currentMONTH;
}
if (_root.currentDAY < 10) {
_root.currentDAYt = "0" + _root.currentDAY;
} else {
_root.currentDAYt = _root.currentDAY;
}
_root.menubas.dateSH.dat.text = (((_root.currentDAYt + "/") + _root.currentMONTHt) + "/") + _root.currentYEARt;
if (_root.currentMONTH == 1) {
if (_root.languageL == "English") {
tM = "January";
}
if (_root.languageL == "Fran\u00E7ais") {
tM = "Janvier";
}
}
if (_root.currentMONTH == 2) {
if (_root.languageL == "English") {
tM = "February";
}
if (_root.languageL == "Fran\u00E7ais") {
tM = "F\u00E9vrier";
}
}
if (_root.currentMONTH == 3) {
if (_root.languageL == "English") {
tM = "March";
}
if (_root.languageL == "Fran\u00E7ais") {
tM = "Mars";
}
}
if (_root.currentMONTH == 4) {
if (_root.languageL == "English") {
tM = "April";
}
if (_root.languageL == "Fran\u00E7ais") {
tM = "Avril";
}
}
if (_root.currentMONTH == 5) {
if (_root.languageL == "English") {
tM = "May";
}
if (_root.languageL == "Fran\u00E7ais") {
tM = "Mai";
}
}
if (_root.currentMONTH == 6) {
if (_root.languageL == "English") {
tM = "June";
}
if (_root.languageL == "Fran\u00E7ais") {
tM = "Juin";
}
}
if (_root.currentMONTH == 7) {
if (_root.languageL == "English") {
tM = "July";
}
if (_root.languageL == "Fran\u00E7ais") {
tM = "Juillet";
}
}
if (_root.currentMONTH == 8) {
if (_root.languageL == "English") {
tM = "August";
}
if (_root.languageL == "Fran\u00E7ais") {
tM = "Ao\u00FBt";
}
}
if (_root.currentMONTH == 9) {
if (_root.languageL == "English") {
tM = "September";
}
if (_root.languageL == "Fran\u00E7ais") {
tM = "Septembre";
}
}
if (_root.currentMONTH == 10) {
if (_root.languageL == "English") {
tM = "October";
}
if (_root.languageL == "Fran\u00E7ais") {
tM = "Octobre";
}
}
if (_root.currentMONTH == 11) {
if (_root.languageL == "English") {
tM = "November";
}
if (_root.languageL == "Fran\u00E7ais") {
tM = "Novembre";
}
}
if (_root.currentMONTH == 12) {
if (_root.languageL == "English") {
tM = "December";
}
if (_root.languageL == "Fran\u00E7ais") {
tM = "D\u00E9cembre";
}
}
if (_root.languageL == "English") {
_root.TEXTdateS = (((tM + " ") + _root.currentDAY) + ", ") + (2000 + _root.currentYEAR);
}
if (_root.languageL == "Fran\u00E7ais") {
_root.TEXTdateS = (((_root.currentDAY + " ") + tM) + ", ") + (2000 + _root.currentYEAR);
}
};
BOUTONhelpF("menubas", "Bzoomp", "mbzoomp", 1, 96.5, -32.4);
menubas.Bzoomp.onRelease = function () {
boutonAVh1();
zoomp();
menubas.Bzoomp.gotoAndStop(2);
};
menubas.Bzoomp.onPress = function () {
menubas.Bzoomp.gotoAndStop(3);
enlevePOGNE();
if (cible1TOUCH) {
_root.stopCIBLE1();
_root.holyFcible = true;
}
if (_root.buildingomg) {
_root.holyFbuild1 = true;
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
}
};
BOUTONhelpF("menubas", "Bzoomm", "mbzoomm", 13, 115, -22.5);
menubas.Bzoomm.onRelease = function () {
boutonAVh1();
zoomm();
menubas.Bzoomm.gotoAndStop(2);
};
menubas.Bzoomm.onPress = function () {
enlevePOGNE();
if (cible1TOUCH) {
_root.stopCIBLE1();
_root.holyFcible = true;
}
if (_root.buildingomg) {
_root.holyFbuild1 = true;
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
}
menubas.Bzoomm.gotoAndStop(3);
};
BOUTONhelpF("menubas", "Bcible", "mbcible", 7, 32.5, -50);
menubas.Bcible.onRelease = function () {
if (cible1TOUCH) {
menubas.Bcible.gotoAndStop(2);
_root.cible1TOUCH = false;
_root.pogneOBJECT = true;
} else {
menubas.Bcible.gotoAndStop(2);
cibleFUNC();
shitbuild1();
_root.buildingomg = false;
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
}
};
menubas.Bcible.onPress = function () {
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
if (_root.cible1TOUCH) {
_root.stopCIBLE1();
_root.cible1TOUCH = true;
}
menubas.Bcible.gotoAndStop(3);
};
BOUTONhelpF("menubas", "Bmouse", "mbmouse", 10, 11.5, -50);
menubas.Bmouse.onRelease = function () {
_root.pogneOBJECT = true;
menubas.Bmouse.gotoAndStop(2);
};
menubas.Bmouse.onPress = function () {
menubas.Bmouse.gotoAndStop(3);
enlevePOGNE();
if (cible1TOUCH) {
_root.stopCIBLE1();
}
if (_root.buildingomg) {
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
}
};
BOUTONhelpF("menubas", "Bmur2", "murENL2", 20, 46, -25);
menubas.Bmur2.onRelease = function () {
mettremur();
boutonAVh1();
menubas.Bmur2.gotoAndStop(2);
};
menubas.Bmur2.onPress = function () {
enlevePOGNE();
if (cible1TOUCH) {
_root.stopCIBLE1();
_root.holyFcible = true;
}
if (_root.buildingomg) {
_root.holyFbuild1 = true;
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
}
menubas.Bmur2.gotoAndStop(3);
};
BOUTONhelpF("menubas", "Bmur1", "murENL1", 21, 66, -25);
menubas.Bmur1.onRelease = function () {
mettrePUmur();
boutonAVh1();
menubas.Bmur1.gotoAndStop(2);
};
menubas.Bmur1.onPress = function () {
enlevePOGNE();
if (cible1TOUCH) {
_root.stopCIBLE1();
_root.holyFcible = true;
}
if (_root.buildingomg) {
_root.holyFbuild1 = true;
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
}
menubas.Bmur1.gotoAndStop(3);
};
BOUTONhelpF("menubas", "Bplay", "mbplay", 11, 10, -27.5);
menubas.Bplay.onRelease = function () {
if (_root.holyFcible) {
cibleFUNC();
_root.holyFcible = false;
} else {
_root.holyFcible = false;
_root.pogneOBJECT = true;
}
menubas.Bplay.gotoAndStop(2);
_root.pausedejeuner = false;
joblochtouneaa2 = false;
};
menubas.Bplay.onPress = function () {
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
menubas.Bplay.gotoAndStop(3);
if (cible1TOUCH) {
_root.stopCIBLE1();
_root.holyFcible = true;
}
if (_root.buildingomg) {
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
}
};
menubas.Bplay.onEnterFrame = function () {
if (_root.pausedejeuner != true) {
menubas.Bplay.gotoAndStop(3);
} else if (joblochtouneaa2 != true) {
joblochtouneaa2 = true;
menubas.Bplay.gotoAndStop(1);
}
if (menubas.Bpause._currentframe == 3) {
this.gotoAndStop(1);
}
};
menubas.Bplay._xscale = 80;
menubas.Bplay._yscale = 80;
BOUTONhelpF("menubas", "Bpause", "mbpause", 12, 28, -27.5);
menubas.Bpause.onRelease = function () {
if (_root.holyFcible) {
cibleFUNC();
_root.holyFcible = false;
} else {
_root.holyFcible = false;
_root.pogneOBJECT = true;
}
menubas.Bpause.gotoAndStop(2);
_root.pausedejeuner = true;
joblochtouneaa = false;
};
menubas.Bpause.onPress = function () {
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
menubas.Bpause.gotoAndStop(3);
if (cible1TOUCH) {
_root.stopCIBLE1();
_root.holyFcible = true;
}
if (_root.buildingomg) {
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
}
};
menubas.Bpause.onEnterFrame = function () {
if (_root.pausedejeuner) {
menubas.Bpause.gotoAndStop(3);
} else if (joblochtouneaa != true) {
joblochtouneaa = true;
menubas.Bpause.gotoAndStop(1);
}
if (menubas.Bplay._currentframe == 3) {
this.gotoAndStop(1);
}
};
menubas.Bpause._xscale = 80;
menubas.Bpause._yscale = 80;
BOUTONhelpF("menubas", "Bexit", "mbexit", 3, 370, -14.5);
menubas.Bexit.onRelease = function () {
menubas.Bexit.gotoAndStop(2);
if (_root.languageL == "Fran\u00E7ais") {
windowMAKEfunc(false, false, true, "Vous quittez?", "\u00CAtes-vous s\u00FBre de vouloir quitter? Votre partie ne sera pas sauvegarder! Donc n'oubliez pas de sauvegarder.", "quitGAMEw");
}
if (_root.languageL == "English") {
windowMAKEfunc(false, false, true, "Quiting?", "Are you sure you want to quit? Your game will not be saved! Save it before or all data will be lost.", "quitGAMEw");
}
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
};
menubas.Bexit.onPress = function () {
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
menubas.Bexit.gotoAndStop(3);
if (cible1TOUCH) {
_root.stopCIBLE1();
}
if (_root.buildingomg) {
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
}
};
BOUTONhelpF("menubas", "Bbuild", "mbbuild", 6, 138, -15);
menubas.Bbuild.onRelease = function () {
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
_root.pausedejeuner = true;
joblochtouneaa = false;
menubas.Bbuild.gotoAndStop(2);
if (buildingomg != true) {
_root.stopCIBLE1();
buildWINfunc("b");
} else {
_root.stopCIBLE1();
buildWINfunc("b");
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
game.game.pointeur2._visible = false;
}
};
menubas.Bbuild.onPress = function () {
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
if (cible1TOUCH) {
_root.stopCIBLE1();
}
if (_root.buildingomg) {
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
}
menubas.Bbuild.gotoAndStop(3);
};
BOUTONhelpF("menubas", "Bpaint", "mbpaint", 15, 178, -15);
menubas.Bpaint.onRelease = function () {
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
_root.pausedejeuner = true;
joblochtouneaa = false;
menubas.Bpaint.gotoAndStop(2);
if (buildingomg != true) {
_root.stopCIBLE1();
buildWINfunc("paint");
} else {
_root.stopCIBLE1();
buildWINfunc("paint");
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
game.game.pointeur2._visible = false;
}
};
menubas.Bpaint.onPress = function () {
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
if (cible1TOUCH) {
_root.stopCIBLE1();
}
if (_root.buildingomg) {
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
}
menubas.Bpaint.gotoAndStop(3);
};
BOUTONhelpF("menubas", "Bhire", "mbhire", 16, 218, -15);
menubas.Bhire.onRelease = function () {
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
_root.pausedejeuner = true;
joblochtouneaa = false;
menubas.Bhire.gotoAndStop(2);
if (buildingomg != true) {
_root.stopCIBLE1();
} else {
_root.stopCIBLE1();
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
game.game.pointeur2._visible = false;
}
};
menubas.Bhire.onPress = function () {
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
if (cible1TOUCH) {
_root.stopCIBLE1();
}
if (_root.buildingomg) {
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
}
menubas.Bhire.gotoAndStop(3);
};
BOUTONhelpF("menubas", "Bbudget", "mbbudget", 17, 251, -15);
menubas.Bbudget.onRelease = function () {
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
_root.pausedejeuner = true;
joblochtouneaa = false;
menubas.Bbudget.gotoAndStop(2);
if (buildingomg != true) {
_root.stopCIBLE1();
} else {
_root.stopCIBLE1();
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
game.game.pointeur2._visible = false;
}
};
menubas.Bbudget.onPress = function () {
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
if (cible1TOUCH) {
_root.stopCIBLE1();
}
if (_root.buildingomg) {
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
}
menubas.Bbudget.gotoAndStop(3);
};
BOUTONhelpF("menubas", "Bhelp", "mbhelp", 18, 298, -15);
menubas.Bhelp.onRelease = function () {
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
_root.pausedejeuner = true;
joblochtouneaa = false;
menubas.Bhelp.gotoAndStop(2);
if (buildingomg != true) {
_root.stopCIBLE1();
} else {
_root.stopCIBLE1();
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
game.game.pointeur2._visible = false;
}
};
menubas.Bhelp.onPress = function () {
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
if (cible1TOUCH) {
_root.stopCIBLE1();
}
if (_root.buildingomg) {
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
}
menubas.Bhelp.gotoAndStop(3);
};
BOUTONhelpF("menubas", "Bsave", "mbsave", 14, 333, -15);
menubas.Bsave.onRelease = function () {
_root.pausedejeuner = true;
joblochtouneaa = false;
menubas.Bsave.gotoAndStop(2);
if (buildingomg != true) {
_root.stopCIBLE1();
if (_root.languageL == "Fran\u00E7ais") {
windowMAKEfunc(false, false, true, "Sauvegarde...", "\u00CAtes-vous certain de vouloir sauvegarder, votre sauvegarde pr\u00E9c\u00E9dente sera \u00E9cras\u00E9.", "savingGAMEw");
}
if (_root.languageL == "English") {
windowMAKEfunc(false, false, true, "Saving...", "Are you sure you want to SAVE, your previous game data will be delete.", "savingGAMEw");
}
} else {
_root.stopCIBLE1();
if (_root.languageL == "Fran\u00E7ais") {
windowMAKEfunc(false, false, true, "Sauvegarde...", "\u00CAtes-vous certain de vouloir sauvegarder, votre sauvegarde pr\u00E9c\u00E9dente sera \u00E9cras\u00E9.", "savingGAMEw");
}
if (_root.languageL == "English") {
windowMAKEfunc(false, false, true, "Saving...", "Are you sure you want to SAVE, your previous game data will be delete.", "savingGAMEw");
}
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
game.game.pointeur2._visible = false;
}
};
menubas.Bsave.onPress = function () {
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
if (cible1TOUCH) {
_root.stopCIBLE1();
}
if (_root.buildingomg) {
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
}
menubas.Bsave.gotoAndStop(3);
};
BOUTONhelpF("menubas", "BturnG", "mbturng", 4, 76, -42);
menubas.BturnG.onRelease = function () {
boutonAVh1();
menubas.BturnG.gotoAndStop(2);
_root.rotateGAMEmoin();
};
menubas.BturnG.onPress = function () {
enlevePOGNE();
if (cible1TOUCH) {
_root.stopCIBLE1();
_root.holyFcible = true;
}
if (_root.buildingomg) {
_root.holyFbuild1 = true;
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
}
menubas.BturnG.gotoAndStop(3);
};
BOUTONhelpF("menubas", "BturnD", "mbturnd", 5, 54, -47);
menubas.BturnD.onRelease = function () {
boutonAVh1();
menubas.BturnD.gotoAndStop(2);
_root.rotateGAMEplus();
};
menubas.BturnD.onPress = function () {
enlevePOGNE();
if (cible1TOUCH) {
_root.stopCIBLE1();
_root.holyFcible = true;
}
if (_root.buildingomg) {
_root.holyFbuild1 = true;
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
}
menubas.BturnD.gotoAndStop(3);
};
}
function rotateGAMEplusHELP3(xMOD3, yMOD3, L3, pc, i3, Fp3, overD3) {
_root.AstopobjectA = true;
_root["BUILDobject2X" + i3] = _root["BUILDobject2X" + i3] + xMOD3;
_root["BUILDobject2Y" + i3] = _root["BUILDobject2Y" + i3] + yMOD3;
_root["BUILDobject2L" + i3] = L3;
_root["BUILDobject2P" + i3] = pc;
objNnbBUILD2 = (((("objX" + _root["BUILDobject2X" + i3]) + "Y") + _root["BUILDobject2Y" + i3]) + "P") + _root["BUILDobject2P" + i3];
_root["BUILDobject2N" + i3] = objNnbBUILD2;
overDepthnbBUILD2 = overD3;
overDepthnbBUILD2 = Number(overDepthnbBUILD2);
_root.game.game.attachMovie(_root["BUILDobject2T" + i3] + Fp3, (((("objX" + _root["BUILDobject2X" + i3]) + "Y") + _root["BUILDobject2Y" + i3]) + "P") + _root["BUILDobject2P" + i3], overDepthnbBUILD2);
_root.game.game[objNnbBUILD2].nume = i3;
_root.game.game[objNnbBUILD2]._x = game.game.grid[(("x" + _root["BUILDobject2X" + i3]) + "y") + _root["BUILDobject2Y" + i3]]._x;
_root.game.game[objNnbBUILD2]._y = game.game.grid[(("x" + _root["BUILDobject2X" + i3]) + "y") + _root["BUILDobject2Y" + i3]]._y;
}
function rotateGAMEplusHELP2(ai2, Fp2, Xmod23, Ymod23, overD2) {
_root["BUILDobjectX" + ai2] = _root["BUILDobjectX" + ai2] + Xmod23;
_root["BUILDobjectY" + ai2] = _root["BUILDobjectY" + ai2] + Ymod23;
objNnbBUILD = (((("murX" + _root["BUILDobjectX" + ai2]) + "Y") + _root["BUILDobjectY" + ai2]) + "P") + _root["BUILDobjectP" + ai2];
_root["BUILDobject" + ai2] = objNnbBUILD;
overDepthnbBUILD = overD2;
overDepthnbBUILD = Number(overDepthnbBUILD);
_root.game.game.attachMovie(_root["BUILDobjectT" + ai2] + Fp2, (((("murX" + _root["BUILDobjectX" + ai2]) + "Y") + _root["BUILDobjectY" + ai2]) + "P") + _root["BUILDobjectP" + ai2], overDepthnbBUILD);
_root.game.game[objNnbBUILD].nume = ai2;
_root.game.game[objNnbBUILD]._x = game.game.grid[(("x" + _root["BUILDobjectX" + ai2]) + "y") + _root["BUILDobjectY" + ai2]]._x;
_root.game.game[objNnbBUILD]._y = game.game.grid[(("x" + _root["BUILDobjectX" + ai2]) + "y") + _root["BUILDobjectY" + ai2]]._y;
if (_root.puMUR) {
_root.game.game[objNnbBUILD].gotoAndStop(2);
}
}
function rotateGAMEplusHELP1(i2, if1, if2, pDEP, Fp) {
if (_root[("BUILDpaintW" + i2) + "N"] != undefined) {
if ((_root[("BUILDpaintW" + i2) + "L"] == if1) || (_root[("BUILDpaintW" + i2) + "L"] == if2)) {
CACHEnumep = _root.game.game[(((("murX" + _root[("BUILDpaintW" + i2) + "X"]) + "Y") + _root[("BUILDpaintW" + i2) + "Y"]) + "P") + pDEP].nume;
CACHEXp = _root.game.game[(((("murX" + _root[("BUILDpaintW" + i2) + "X"]) + "Y") + _root[("BUILDpaintW" + i2) + "Y"]) + "P") + pDEP]._x;
CACHEYp = _root.game.game[(((("murX" + _root[("BUILDpaintW" + i2) + "X"]) + "Y") + _root[("BUILDpaintW" + i2) + "Y"]) + "P") + pDEP]._y;
overDepth2nb = Number(_root.game.game[(((("murX" + _root[("BUILDpaintW" + i2) + "X"]) + "Y") + _root[("BUILDpaintW" + i2) + "Y"]) + "P") + pDEP].getDepth());
if (overDepth2nb > 0) {
_root.game.game.attachMovie(_root[("BUILDpaintW" + i2) + "T"] + Fp, (((("murX" + _root[("BUILDpaintW" + i2) + "X"]) + "Y") + _root[("BUILDpaintW" + i2) + "Y"]) + "P") + pDEP, overDepth2nb);
_root.game.game[(((("murX" + _root[("BUILDpaintW" + i2) + "X"]) + "Y") + _root[("BUILDpaintW" + i2) + "Y"]) + "P") + pDEP].nume = CACHEnumep;
_root.game.game[(((("murX" + _root[("BUILDpaintW" + i2) + "X"]) + "Y") + _root[("BUILDpaintW" + i2) + "Y"]) + "P") + pDEP]._x = CACHEXp;
_root.game.game[(((("murX" + _root[("BUILDpaintW" + i2) + "X"]) + "Y") + _root[("BUILDpaintW" + i2) + "Y"]) + "P") + pDEP]._y = CACHEYp;
}
if (_root.puMUR) {
_root.game.game[(((("murX" + _root[("BUILDpaintW" + i2) + "X"]) + "Y") + _root[("BUILDpaintW" + i2) + "Y"]) + "P") + pDEP].gotoAndStop(2);
}
}
}
}
function rotateGAMEplus() {
rotD = true;
rotG = false;
_root.Grotationf = _root.Grotationf + 90;
if (_root.Grotationf >= 360) {
_root.Grotationf = 0;
}
_root.createAUTTOTO();
_root.AutoANIMr1();
i = 1;
while (i <= nbBUILDobject) {
_root.game.game[_root["BUILDobject" + i]].removeMovieClip();
i++;
}
i = 1;
while (i <= nbBUILDobject2) {
_root.game.game[_root["BUILDobject2N" + i]].removeMovieClip();
i++;
}
if (_root.Grotationf == 0) {
PutBACKH("1", 36, 109.8, -236, -32.2, 170, 263.8);
setGrid(_root.gridlx, _root.gridly);
game.game._x = game.game._x + 175;
game.game._y = game.game._y - 100;
game.game.murdup._visible = false;
i = 1;
while (i <= _root.numCARC) {
_root.game.game["carc" + i].actX = _root.game.game["carc" + i].actX + -2;
_root.game.game["carc" + i].actY = _root.game.game["carc" + i].actY + 0;
_root.game.game["carc" + i].ARRx = _root.game.game["carc" + i].ARRx + -2;
_root.game.game["carc" + i].ARRy = _root.game.game["carc" + i].ARRy + 0;
_root.game.game["carc" + i]._x = _root.game.game.grid[(("x" + _root.game.game["carc" + i].actX) + "y") + _root.game.game["carc" + i].actY]._x;
_root.game.game["carc" + i]._y = _root.game.game.grid[(("x" + _root.game.game["carc" + i].actX) + "y") + _root.game.game["carc" + i].actY]._y;
_root.game.game["carc" + i].baloney = false;
if (_root.game.game["carc" + i].skinN == 1) {
_root.game.game["carc" + i].skinN = 4;
_root.game.game["carc" + i].attachMovie("carc4", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 2) {
_root.game.game["carc" + i].skinN = 1;
_root.game.game["carc" + i].attachMovie("carc1", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 3) {
_root.game.game["carc" + i].skinN = 2;
_root.game.game["carc" + i].attachMovie("carc2", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 4) {
_root.game.game["carc" + i].skinN = 3;
_root.game.game["carc" + i].attachMovie("carc3", "skin", 1);
}
i++;
}
i = 1;
while (i <= nbBUILDobject2) {
if (_root.NumERO != i) {
_root.AstopobjectA = false;
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BG") {
rotateGAMEplusHELP3(-2, 0, "HG", 3, i, "f3", String((((String(_root["BUILDobject2Y" + i] + 2) + "0") + String((_root["BUILDobject2X" + i] - 2) + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HG") {
rotateGAMEplusHELP3(-2, 0, "HD", 3, i, "f2", String((((String(_root["BUILDobject2Y" + i] + 2) + "0") + String((_root["BUILDobject2X" + i] - 2) + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HD") {
rotateGAMEplusHELP3(-2, 0, "BD", 3, i, "f1", String((((String(_root["BUILDobject2Y" + i] + 2) + "0") + String((_root["BUILDobject2X" + i] - 2) + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BD") {
rotateGAMEplusHELP3(-2, 0, "BG", 3, i, "f4", String((((String(_root["BUILDobject2Y" + i] + 2) + "0") + String((_root["BUILDobject2X" + i] - 2) + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
_root.AstopobjectA = false;
}
i++;
}
i = 1;
while (i <= nbBUILDobject) {
if (_root["BUILDobjectP" + i] == 2) {
rotateGAMEplusHELP2(i, "f3", 1, 0, String((((String(_root["BUILDobjectY" + i] + 1) + "0") + String(_root["BUILDobjectX" + i] + 2)) + "") + String(_root["BUILDobjectP" + i])));
}
if (_root["BUILDobjectP" + i] == 1) {
rotateGAMEplusHELP2(i, "f1", 0, 0, String((((String(_root["BUILDobjectY" + i] + 1) + "0") + String(_root["BUILDobjectX" + i] + 1)) + "") + String(_root["BUILDobjectP" + i])));
}
i++;
}
i = 1;
while (i <= _root.paintNUM) {
rotateGAMEplusHELP1(i, "BG", "BD", 2, "f3");
rotateGAMEplusHELP1(i, "BG", "BD", 1, "f1");
i++;
}
}
if (_root.Grotationf == 90) {
PutBACKH("2", -458.6, 20, -499.6, -166, 154.4, 256);
setGrid(_root.gridlx, _root.gridly);
game.game._x = game.game._x + 200;
game.game._y = game.game._y + 75;
game.game.murdup._visible = false;
i = 1;
while (i <= _root.numCARC) {
_root.game.game["carc" + i].actX = _root.game.game["carc" + i].actX + 0;
_root.game.game["carc" + i].actY = _root.game.game["carc" + i].actY + 2;
_root.game.game["carc" + i].ARRx = _root.game.game["carc" + i].ARRx + 0;
_root.game.game["carc" + i].ARRy = _root.game.game["carc" + i].ARRy + 2;
_root.game.game["carc" + i].swapDepths(Number(String((((String(_root.game.game["carc" + i].actX + 3) + "0") + String((_root.y - (_root.game.game["carc" + i].actY + 2)) - 0)) + "") + String(4))));
_root.game.game["carc" + i]._x = _root.game.game.grid[(("x" + _root.game.game["carc" + i].actX) + "y") + _root.game.game["carc" + i].actY]._x;
_root.game.game["carc" + i]._y = _root.game.game.grid[(("x" + _root.game.game["carc" + i].actX) + "y") + _root.game.game["carc" + i].actY]._y;
_root.game.game["carc" + i].baloney = false;
if (_root.game.game["carc" + i].skinN == 1) {
_root.game.game["carc" + i].skinN = 4;
_root.game.game["carc" + i].attachMovie("carc4", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 2) {
_root.game.game["carc" + i].skinN = 1;
_root.game.game["carc" + i].attachMovie("carc1", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 3) {
_root.game.game["carc" + i].skinN = 2;
_root.game.game["carc" + i].attachMovie("carc2", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 4) {
_root.game.game["carc" + i].skinN = 3;
_root.game.game["carc" + i].attachMovie("carc3", "skin", 1);
}
i++;
}
i = 1;
while (i <= nbBUILDobject2) {
if (_root.NumERO != i) {
_root.AstopobjectA = false;
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BG") {
rotateGAMEplusHELP3(0, 2, "HG", 3, i, "f3", String((((String(_root["BUILDobject2X" + i] + 2) + "0") + String((y - (_root["BUILDobject2Y" + i] + 2)) - 0)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HG") {
rotateGAMEplusHELP3(0, 2, "HD", 3, i, "f2", String((((String(_root["BUILDobject2X" + i] + 2) + "0") + String((y - (_root["BUILDobject2Y" + i] + 2)) - 0)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HD") {
rotateGAMEplusHELP3(0, 2, "BD", 3, i, "f1", String((((String(_root["BUILDobject2X" + i] + 2) + "0") + String((y - (_root["BUILDobject2Y" + i] + 2)) - 0)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BD") {
rotateGAMEplusHELP3(0, 2, "BG", 3, i, "f4", String((((String(_root["BUILDobject2X" + i] + 2) + "0") + String((y - (_root["BUILDobject2Y" + i] + 2)) - 0)) + "") + String(_root["BUILDobject2P" + i])));
}
}
}
_root.AstopobjectA = false;
i++;
}
i = 1;
while (i <= nbBUILDobject) {
if (_root["BUILDobjectP" + i] == 2) {
rotateGAMEplusHELP2(i, "f1", 0, 0, String((((String(_root["BUILDobjectX" + i] + 1) + "0") + String((y - _root["BUILDobjectY" + i]) - 1)) + "") + String(_root["BUILDobjectP" + i])));
}
if (_root["BUILDobjectP" + i] == 1) {
rotateGAMEplusHELP2(i, "f3", 0, -1, String((((String(_root["BUILDobjectX" + i] + 1) + "0") + String((y - (_root["BUILDobjectY" + i] - 1)) - 1)) + "") + String(_root["BUILDobjectP" + i])));
}
i++;
}
i = 1;
while (i <= _root.paintNUM) {
rotateGAMEplusHELP1(i, "HD", "BD", 2, "f1");
rotateGAMEplusHELP1(i, "HD", "BD", 1, "f3");
i++;
}
}
if (_root.Grotationf == 180) {
PutBACKH("3", -9, -89.8, -324, -269.8, 170, 248.2);
setGrid(_root.gridlx, _root.gridly);
game.game._x = game.game._x - 175;
game.game._y = game.game._y + 100;
i = 1;
while (i <= _root.numCARC) {
_root.game.game["carc" + i].actX = _root.game.game["carc" + i].actX + 2;
_root.game.game["carc" + i].actY = _root.game.game["carc" + i].actY + 0;
_root.game.game["carc" + i].ARRx = _root.game.game["carc" + i].ARRx + 2;
_root.game.game["carc" + i].ARRy = _root.game.game["carc" + i].ARRy + 0;
_root.game.game["carc" + i]._x = _root.game.game.grid[(("x" + _root.game.game["carc" + i].actX) + "y") + _root.game.game["carc" + i].actY]._x;
_root.game.game["carc" + i]._y = _root.game.game.grid[(("x" + _root.game.game["carc" + i].actX) + "y") + _root.game.game["carc" + i].actY]._y;
_root.game.game["carc" + i].baloney = false;
if (_root.game.game["carc" + i].skinN == 1) {
_root.game.game["carc" + i].skinN = 4;
_root.game.game["carc" + i].attachMovie("carc4", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 2) {
_root.game.game["carc" + i].skinN = 1;
_root.game.game["carc" + i].attachMovie("carc1", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 3) {
_root.game.game["carc" + i].skinN = 2;
_root.game.game["carc" + i].attachMovie("carc2", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 4) {
_root.game.game["carc" + i].skinN = 3;
_root.game.game["carc" + i].attachMovie("carc3", "skin", 1);
}
i++;
}
i = 1;
while (i <= nbBUILDobject2) {
if (_root.NumERO != i) {
_root.AstopobjectA = false;
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BG") {
rotateGAMEplusHELP3(2, 0, "HG", 3, i, "f3", String((((String((y - _root["BUILDobject2Y" + i]) - 0) + "0") + String((x - (_root["BUILDobject2X" + i] + 2)) - 0)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HG") {
rotateGAMEplusHELP3(2, 0, "HD", 3, i, "f2", String((((String((y - _root["BUILDobject2Y" + i]) - 0) + "0") + String((x - (_root["BUILDobject2X" + i] + 2)) - 0)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HD") {
rotateGAMEplusHELP3(2, 0, "BD", 3, i, "f1", String((((String((y - _root["BUILDobject2Y" + i]) - 0) + "0") + String((x - (_root["BUILDobject2X" + i] + 2)) - 0)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BD") {
rotateGAMEplusHELP3(2, 0, "BG", 3, i, "f4", String((((String((y - _root["BUILDobject2Y" + i]) - 0) + "0") + String((x - (_root["BUILDobject2X" + i] + 2)) - 0)) + "") + String(_root["BUILDobject2P" + i])));
}
}
}
_root.AstopobjectA = false;
i++;
}
i = 1;
while (i <= nbBUILDobject) {
if (_root["BUILDobjectP" + i] == 2) {
rotateGAMEplusHELP2(i, "f3", -1, 0, String((((String((y - _root["BUILDobjectY" + i]) - 1) + "0") + String((x - (_root["BUILDobjectX" + i] - 1)) - 1)) + "") + String(_root["BUILDobjectP" + i])));
}
if (_root["BUILDobjectP" + i] == 1) {
rotateGAMEplusHELP2(i, "f1", 0, 0, String((((String((y - _root["BUILDobjectY" + i]) - 1) + "0") + String((x - _root["BUILDobjectX" + i]) - 1)) + "") + String(_root["BUILDobjectP" + i])));
}
i++;
}
i = 1;
while (i <= _root.paintNUM) {
rotateGAMEplusHELP1(i, "HD", "HG", 2, "f3");
rotateGAMEplusHELP1(i, "HD", "HG", 1, "f1");
i++;
}
}
if (_root.Grotationf == 270) {
PutBACKH("4", -64.4, 0, -76.9, -162, 185.6, 256);
setGrid(_root.gridlx, _root.gridly);
game.game._x = game.game._x - 200;
game.game._y = game.game._y - 100;
i = 1;
while (i <= _root.numCARC) {
_root.game.game["carc" + i].actX = _root.game.game["carc" + i].actX + 0;
_root.game.game["carc" + i].actY = _root.game.game["carc" + i].actY + -2;
_root.game.game["carc" + i].ARRx = _root.game.game["carc" + i].ARRx + 0;
_root.game.game["carc" + i].ARRy = _root.game.game["carc" + i].ARRy + -2;
_root.game.game["carc" + i]._x = _root.game.game.grid[(("x" + _root.game.game["carc" + i].actX) + "y") + _root.game.game["carc" + i].actY]._x;
_root.game.game["carc" + i]._y = _root.game.game.grid[(("x" + _root.game.game["carc" + i].actX) + "y") + _root.game.game["carc" + i].actY]._y;
_root.game.game["carc" + i].baloney = false;
if (_root.game.game["carc" + i].skinN == 1) {
_root.game.game["carc" + i].skinN = 4;
_root.game.game["carc" + i].attachMovie("carc4", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 2) {
_root.game.game["carc" + i].skinN = 1;
_root.game.game["carc" + i].attachMovie("carc1", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 3) {
_root.game.game["carc" + i].skinN = 2;
_root.game.game["carc" + i].attachMovie("carc2", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 4) {
_root.game.game["carc" + i].skinN = 3;
_root.game.game["carc" + i].attachMovie("carc3", "skin", 1);
}
i++;
}
i = 1;
while (i <= nbBUILDobject2) {
if (_root.NumERO != i) {
_root.AstopobjectA = false;
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BG") {
rotateGAMEplusHELP3(0, -2, "HG", 3, i, "f3", String((((String((x - _root["BUILDobject2X" + i]) + 2) + "0") + String((_root["BUILDobject2Y" + i] - 2) + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HG") {
rotateGAMEplusHELP3(0, -2, "HD", 3, i, "f2", String((((String((x - _root["BUILDobject2X" + i]) + 2) + "0") + String((_root["BUILDobject2Y" + i] - 2) + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HD") {
rotateGAMEplusHELP3(0, -2, "BD", 3, i, "f1", String((((String((x - _root["BUILDobject2X" + i]) + 2) + "0") + String((_root["BUILDobject2Y" + i] - 2) + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BD") {
rotateGAMEplusHELP3(0, -2, "BG", 3, i, "f4", String((((String((x - _root["BUILDobject2X" + i]) + 2) + "0") + String((_root["BUILDobject2Y" + i] - 2) + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
}
_root.AstopobjectA = false;
i++;
}
i = 1;
while (i <= nbBUILDobject) {
if (_root["BUILDobjectP" + i] == 2) {
rotateGAMEplusHELP2(i, "f1", 0, 0, String((((String((x - _root["BUILDobjectX" + i]) + 1) + "0") + String(_root["BUILDobjectY" + i] + 1)) + "") + String(_root["BUILDobjectP" + i])));
}
if (_root["BUILDobjectP" + i] == 1) {
rotateGAMEplusHELP2(i, "f3", 0, 1, String((((String((x - _root["BUILDobjectX" + i]) + 1) + "0") + String((_root["BUILDobjectY" + i] + 1) + 1)) + "") + String(_root["BUILDobjectP" + i])));
}
i++;
}
i = 1;
while (i <= _root.paintNUM) {
rotateGAMEplusHELP1(i, "BG", "HG", 2, "f1");
rotateGAMEplusHELP1(i, "BG", "HG", 1, "f3");
i++;
}
}
}
function rotateGAMErefresh(RaLOA) {
if (RaLOA == 0) {
i = 1;
while (i <= nbBUILDobject2) {
_root.AstopobjectA = false;
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BG") {
rotateGAMEplusHELP3(0, 0, "BG", 3, i, "f4", String((((String(_root["BUILDobject2Y" + i] + 2) + "0") + String(_root["BUILDobject2X" + i] + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HG") {
rotateGAMEplusHELP3(0, 0, "HG", 3, i, "f3", String((((String(_root["BUILDobject2Y" + i] + 2) + "0") + String(_root["BUILDobject2X" + i] + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HD") {
rotateGAMEplusHELP3(0, 0, "HD", 3, i, "f2", String((((String(_root["BUILDobject2Y" + i] + 2) + "0") + String(_root["BUILDobject2X" + i] + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BD") {
rotateGAMEplusHELP3(0, 0, "BD", 3, i, "f1", String((((String(_root["BUILDobject2Y" + i] + 2) + "0") + String(_root["BUILDobject2X" + i] + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
_root.AstopobjectA = false;
i++;
}
i = 1;
while (i <= nbBUILDobject) {
if (_root["BUILDobjectP" + i] == 2) {
rotateGAMEplusHELP2(i, "f3", 0, 0, String((((String(_root["BUILDobjectY" + i] + 1) + "0") + String(_root["BUILDobjectX" + i] + 1)) + "") + String(_root["BUILDobjectP" + i])));
}
if (_root["BUILDobjectP" + i] == 1) {
rotateGAMEplusHELP2(i, "f1", 0, 0, String((((String(_root["BUILDobjectY" + i] + 1) + "0") + String(_root["BUILDobjectX" + i] + 1)) + "") + String(_root["BUILDobjectP" + i])));
}
i++;
}
i = 1;
while (i <= _root.paintNUM) {
rotateGAMEplusHELP1(i, "BG", "BD", 2, "f3");
rotateGAMEplusHELP1(i, "BG", "BD", 1, "f1");
i++;
}
}
if (RaLOA == 90) {
i = 1;
while (i <= nbBUILDobject2) {
_root.AstopobjectA = false;
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BG") {
rotateGAMEplusHELP3(0, -2, "BD", 3, i, "f1", String((((String((_root["BUILDobject2Y" + i] - 2) + 2) + "0") + String(_root["BUILDobject2X" + i] + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HG") {
rotateGAMEplusHELP3(0, -2, "BG", 3, i, "f4", String((((String((_root["BUILDobject2Y" + i] - 2) + 2) + "0") + String(_root["BUILDobject2X" + i] + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HD") {
rotateGAMEplusHELP3(0, -2, "HG", 3, i, "f3", String((((String((_root["BUILDobject2Y" + i] - 2) + 2) + "0") + String(_root["BUILDobject2X" + i] + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BD") {
rotateGAMEplusHELP3(0, -2, "HD", 3, i, "f2", String((((String((_root["BUILDobject2Y" + i] - 2) + 2) + "0") + String(_root["BUILDobject2X" + i] + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
_root.AstopobjectA = false;
i++;
}
i = 1;
while (i <= nbBUILDobject) {
if (_root["BUILDobjectP" + i] == 2) {
rotateGAMEplusHELP2(i, "f3", 0, 0, String((((String(_root["BUILDobjectY" + i] + 1) + "0") + String(_root["BUILDobjectX" + i] + 1)) + "") + String(_root["BUILDobjectP" + i])));
}
if (_root["BUILDobjectP" + i] == 1) {
rotateGAMEplusHELP2(i, "f1", 0, 1, String((((String((_root["BUILDobjectY" + i] + 1) + 1) + "0") + String(_root["BUILDobjectX" + i] + 1)) + "") + String(_root["BUILDobjectP" + i])));
}
i++;
}
i = 1;
while (i <= _root.paintNUM) {
rotateGAMEplusHELP1(i, "BG", "BD", 2, "f3");
rotateGAMEplusHELP1(i, "BG", "BD", 1, "f1");
i++;
}
}
if (RaLOA == 180) {
i = 1;
while (i <= nbBUILDobject2) {
_root.AstopobjectA = false;
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BG") {
rotateGAMEplusHELP3(-2, -2, "HD", 3, i, "f2", String((((String((_root["BUILDobject2Y" + i] - 2) + 2) + "0") + String((_root["BUILDobject2X" + i] - 2) + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HG") {
rotateGAMEplusHELP3(-2, -2, "BD", 3, i, "f1", String((((String((_root["BUILDobject2Y" + i] - 2) + 2) + "0") + String((_root["BUILDobject2X" + i] - 2) + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HD") {
rotateGAMEplusHELP3(-2, -2, "BG", 3, i, "f4", String((((String((_root["BUILDobject2Y" + i] - 2) + 2) + "0") + String((_root["BUILDobject2X" + i] - 2) + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BD") {
rotateGAMEplusHELP3(-2, -2, "HG", 3, i, "f3", String((((String((_root["BUILDobject2Y" + i] - 2) + 2) + "0") + String((_root["BUILDobject2X" + i] - 2) + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
_root.AstopobjectA = false;
i++;
}
i = 1;
while (i <= nbBUILDobject) {
if (_root["BUILDobjectP" + i] == 2) {
rotateGAMEplusHELP2(i, "f3", 1, 0, String((((String(_root["BUILDobjectY" + i] + 1) + "0") + String((_root["BUILDobjectX" + i] + 1) + 1)) + "") + String(_root["BUILDobjectP" + i])));
}
if (_root["BUILDobjectP" + i] == 1) {
rotateGAMEplusHELP2(i, "f1", 0, 1, String((((String((_root["BUILDobjectY" + i] + 1) + 1) + "0") + String(_root["BUILDobjectX" + i] + 1)) + "") + String(_root["BUILDobjectP" + i])));
}
i++;
}
i = 1;
while (i <= _root.paintNUM) {
rotateGAMEplusHELP1(i, "BG", "BD", 2, "f3");
rotateGAMEplusHELP1(i, "BG", "BD", 1, "f1");
i++;
}
}
if (RaLOA == 270) {
i = 1;
while (i <= nbBUILDobject2) {
_root.AstopobjectA = false;
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BG") {
rotateGAMEplusHELP3(-2, 0, "HG", 3, i, "f3", String((((String(_root["BUILDobject2Y" + i] + 2) + "0") + String((_root["BUILDobject2X" + i] - 2) + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HG") {
rotateGAMEplusHELP3(-2, 0, "HD", 3, i, "f2", String((((String(_root["BUILDobject2Y" + i] + 2) + "0") + String((_root["BUILDobject2X" + i] - 2) + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HD") {
rotateGAMEplusHELP3(-2, 0, "BD", 3, i, "f1", String((((String(_root["BUILDobject2Y" + i] + 2) + "0") + String((_root["BUILDobject2X" + i] - 2) + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BD") {
rotateGAMEplusHELP3(-2, 0, "BG", 3, i, "f4", String((((String(_root["BUILDobject2Y" + i] + 2) + "0") + String((_root["BUILDobject2X" + i] - 2) + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
_root.AstopobjectA = false;
i++;
}
i = 1;
while (i <= nbBUILDobject) {
if (_root["BUILDobjectP" + i] == 2) {
rotateGAMEplusHELP2(i, "f3", 1, 0, String((((String(_root["BUILDobjectY" + i] + 1) + "0") + String((_root["BUILDobjectX" + i] + 1) + 1)) + "") + String(_root["BUILDobjectP" + i])));
}
if (_root["BUILDobjectP" + i] == 1) {
rotateGAMEplusHELP2(i, "f1", 0, 0, String((((String(_root["BUILDobjectY" + i] + 1) + "0") + String(_root["BUILDobjectX" + i] + 1)) + "") + String(_root["BUILDobjectP" + i])));
}
i++;
}
i = 1;
while (i <= _root.paintNUM) {
rotateGAMEplusHELP1(i, "BG", "BD", 2, "f3");
rotateGAMEplusHELP1(i, "BG", "BD", 1, "f1");
i++;
}
}
}
function rotateGAMEmoin() {
rotD = false;
rotG = true;
_root.Grotationf = _root.Grotationf - 90;
if (_root.Grotationf < 0) {
_root.Grotationf = 270;
}
_root.createAUTTOTO();
_root.AutoANIMr1();
i = 1;
while (i <= nbBUILDobject) {
_root.game.game[_root["BUILDobject" + i]].removeMovieClip();
i++;
}
i = 1;
while (i <= nbBUILDobject2) {
_root.game.game[_root["BUILDobject2N" + i]].removeMovieClip();
i++;
}
if (_root.Grotationf == 0) {
PutBACKH("1", 36, 109.8, -236, -32.2, 170, 263.8);
setGrid(_root.gridlx, _root.gridly);
game.game._x = game.game._x - 200;
game.game._y = game.game._y - 75;
i = 1;
while (i <= _root.numCARC) {
_root.game.game["carc" + i].actX = _root.game.game["carc" + i].actX + 0;
_root.game.game["carc" + i].actY = _root.game.game["carc" + i].actY + -2;
_root.game.game["carc" + i].ARRx = _root.game.game["carc" + i].ARRx + 0;
_root.game.game["carc" + i].ARRy = _root.game.game["carc" + i].ARRy + -2;
_root.game.game["carc" + i]._x = _root.game.game.grid[(("x" + _root.game.game["carc" + i].actX) + "y") + _root.game.game["carc" + i].actY]._x;
_root.game.game["carc" + i]._y = _root.game.game.grid[(("x" + _root.game.game["carc" + i].actX) + "y") + _root.game.game["carc" + i].actY]._y;
_root.game.game["carc" + i].baloney = false;
if (_root.game.game["carc" + i].skinN == 1) {
_root.game.game["carc" + i].skinN = 2;
_root.game.game["carc" + i].attachMovie("carc2", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 2) {
_root.game.game["carc" + i].skinN = 3;
_root.game.game["carc" + i].attachMovie("carc3", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 3) {
_root.game.game["carc" + i].skinN = 4;
_root.game.game["carc" + i].attachMovie("carc4", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 4) {
_root.game.game["carc" + i].skinN = 1;
_root.game.game["carc" + i].attachMovie("carc1", "skin", 1);
}
i++;
}
i = 1;
while (i <= nbBUILDobject2) {
if (_root.NumERO != i) {
_root.AstopobjectA = false;
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BG") {
rotateGAMEplusHELP3(0, -2, "BD", 3, i, "f1", String((((String((_root["BUILDobject2Y" + i] - 2) + 2) + "0") + String(_root["BUILDobject2X" + i] + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HG") {
rotateGAMEplusHELP3(0, -2, "BG", 3, i, "f4", String((((String((_root["BUILDobject2Y" + i] - 2) + 2) + "0") + String(_root["BUILDobject2X" + i] + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HD") {
rotateGAMEplusHELP3(0, -2, "HG", 3, i, "f3", String((((String((_root["BUILDobject2Y" + i] - 2) + 2) + "0") + String(_root["BUILDobject2X" + i] + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BD") {
rotateGAMEplusHELP3(0, -2, "HD", 3, i, "f2", String((((String((_root["BUILDobject2Y" + i] - 2) + 2) + "0") + String(_root["BUILDobject2X" + i] + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
}
_root.AstopobjectA = false;
i++;
}
i = 1;
while (i <= nbBUILDobject) {
if (_root["BUILDobjectP" + i] == 2) {
rotateGAMEplusHELP2(i, "f3", 0, 0, String((((String(_root["BUILDobjectY" + i] + 1) + "0") + String(_root["BUILDobjectX" + i] + 1)) + "") + String(_root["BUILDobjectP" + i])));
}
if (_root["BUILDobjectP" + i] == 1) {
rotateGAMEplusHELP2(i, "f1", 0, 1, String((((String((_root["BUILDobjectY" + i] + 1) + 1) + "0") + String(_root["BUILDobjectX" + i] + 1)) + "") + String(_root["BUILDobjectP" + i])));
}
i++;
}
i = 1;
while (i <= _root.paintNUM) {
rotateGAMEplusHELP1(i, "BG", "BD", 2, "f3");
rotateGAMEplusHELP1(i, "BG", "BD", 1, "f1");
i++;
}
}
if (_root.Grotationf == 90) {
PutBACKH("2", -458.6, 20, -499.6, -166, 154.4, 256);
setGrid(_root.gridlx, _root.gridly);
game.game._x = game.game._x + 175;
game.game._y = game.game._y - 100;
i = 1;
while (i <= _root.numCARC) {
_root.game.game["carc" + i].actX = _root.game.game["carc" + i].actX + -2;
_root.game.game["carc" + i].actY = _root.game.game["carc" + i].actY + 0;
_root.game.game["carc" + i].ARRx = _root.game.game["carc" + i].ARRx + -2;
_root.game.game["carc" + i].ARRy = _root.game.game["carc" + i].ARRy + 0;
_root.game.game["carc" + i]._x = _root.game.game.grid[(("x" + _root.game.game["carc" + i].actX) + "y") + _root.game.game["carc" + i].actY]._x;
_root.game.game["carc" + i]._y = _root.game.game.grid[(("x" + _root.game.game["carc" + i].actX) + "y") + _root.game.game["carc" + i].actY]._y;
_root.game.game["carc" + i].baloney = false;
if (_root.game.game["carc" + i].skinN == 1) {
_root.game.game["carc" + i].skinN = 2;
_root.game.game["carc" + i].attachMovie("carc2", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 2) {
_root.game.game["carc" + i].skinN = 3;
_root.game.game["carc" + i].attachMovie("carc3", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 3) {
_root.game.game["carc" + i].skinN = 4;
_root.game.game["carc" + i].attachMovie("carc4", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 4) {
_root.game.game["carc" + i].skinN = 1;
_root.game.game["carc" + i].attachMovie("carc1", "skin", 1);
}
i++;
}
i = 1;
while (i <= nbBUILDobject2) {
if (_root.NumERO != i) {
_root.AstopobjectA = false;
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BG") {
rotateGAMEplusHELP3(-2, 0, "BD", 3, i, "f1", String((((String((_root["BUILDobject2X" + i] - 2) + 2) + "0") + String((y - _root["BUILDobject2Y" + i]) - 0)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HG") {
rotateGAMEplusHELP3(-2, 0, "BG", 3, i, "f4", String((((String((_root["BUILDobject2X" + i] - 2) + 2) + "0") + String((y - _root["BUILDobject2Y" + i]) - 0)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HD") {
rotateGAMEplusHELP3(-2, 0, "HG", 3, i, "f3", String((((String((_root["BUILDobject2X" + i] - 2) + 2) + "0") + String((y - _root["BUILDobject2Y" + i]) - 0)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BD") {
rotateGAMEplusHELP3(-2, 0, "HD", 3, i, "f2", String((((String((_root["BUILDobject2X" + i] - 2) + 2) + "0") + String((y - _root["BUILDobject2Y" + i]) - 0)) + "") + String(_root["BUILDobject2P" + i])));
}
}
}
_root.AstopobjectA = false;
i++;
}
i = 1;
while (i <= nbBUILDobject) {
if (_root["BUILDobjectP" + i] == 2) {
rotateGAMEplusHELP2(i, "f1", 1, 0, String((((String((_root["BUILDobjectX" + i] + 1) + 1) + "0") + String((y - _root["BUILDobjectY" + i]) - 1)) + "") + String(_root["BUILDobjectP" + i])));
}
if (_root["BUILDobjectP" + i] == 1) {
rotateGAMEplusHELP2(i, "f3", 0, 0, String((((String(_root["BUILDobjectX" + i] + 1) + "0") + String((y - _root["BUILDobjectY" + i]) - 1)) + "") + String(_root["BUILDobjectP" + i])));
}
i++;
}
i = 1;
while (i <= _root.paintNUM) {
rotateGAMEplusHELP1(i, "HD", "BD", 2, "f1");
rotateGAMEplusHELP1(i, "HD", "BD", 1, "f3");
i++;
}
}
if (_root.Grotationf == 180) {
PutBACKH("3", -9, -89.8, -324, -269.8, 170, 248.2);
setGrid(_root.gridlx, _root.gridly);
game.game._x = game.game._x + 200;
game.game._y = game.game._y + 100;
i = 1;
while (i <= _root.numCARC) {
_root.game.game["carc" + i].actX = _root.game.game["carc" + i].actX + 0;
_root.game.game["carc" + i].actY = _root.game.game["carc" + i].actY + 2;
_root.game.game["carc" + i].ARRx = _root.game.game["carc" + i].ARRx + 0;
_root.game.game["carc" + i].ARRy = _root.game.game["carc" + i].ARRy + 2;
_root.game.game["carc" + i]._x = _root.game.game.grid[(("x" + _root.game.game["carc" + i].actX) + "y") + _root.game.game["carc" + i].actY]._x;
_root.game.game["carc" + i]._y = _root.game.game.grid[(("x" + _root.game.game["carc" + i].actX) + "y") + _root.game.game["carc" + i].actY]._y;
_root.game.game["carc" + i].baloney = false;
if (_root.game.game["carc" + i].skinN == 1) {
_root.game.game["carc" + i].skinN = 2;
_root.game.game["carc" + i].attachMovie("carc2", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 2) {
_root.game.game["carc" + i].skinN = 3;
_root.game.game["carc" + i].attachMovie("carc3", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 3) {
_root.game.game["carc" + i].skinN = 4;
_root.game.game["carc" + i].attachMovie("carc4", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 4) {
_root.game.game["carc" + i].skinN = 1;
_root.game.game["carc" + i].attachMovie("carc1", "skin", 1);
}
i++;
}
i = 1;
while (i <= nbBUILDobject2) {
if (_root.NumERO != i) {
_root.AstopobjectA = false;
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BG") {
rotateGAMEplusHELP3(0, 2, "BD", 3, i, "f1", String((((String((y - (_root["BUILDobject2Y" + i] + 2)) - 0) + "0") + String((x - _root["BUILDobject2X" + i]) - 0)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HG") {
rotateGAMEplusHELP3(0, 2, "BG", 3, i, "f4", String((((String((y - (_root["BUILDobject2Y" + i] + 2)) - 0) + "0") + String((x - _root["BUILDobject2X" + i]) - 0)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HD") {
rotateGAMEplusHELP3(0, 2, "HG", 3, i, "f3", String((((String((y - (_root["BUILDobject2Y" + i] + 2)) - 0) + "0") + String((x - _root["BUILDobject2X" + i]) - 0)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BD") {
rotateGAMEplusHELP3(0, 2, "HD", 3, i, "f2", String((((String((y - (_root["BUILDobject2Y" + i] + 2)) - 0) + "0") + String((x - _root["BUILDobject2X" + i]) - 0)) + "") + String(_root["BUILDobject2P" + i])));
}
}
}
_root.AstopobjectA = false;
i++;
}
i = 1;
while (i <= nbBUILDobject) {
if (_root["BUILDobjectP" + i] == 2) {
rotateGAMEplusHELP2(i, "f3", 0, 0, String((((String((y - _root["BUILDobjectY" + i]) - 1) + "0") + String((x - _root["BUILDobjectX" + i]) - 1)) + "") + String(_root["BUILDobjectP" + i])));
}
if (_root["BUILDobjectP" + i] == 1) {
rotateGAMEplusHELP2(i, "f1", 0, -1, String((((String((y - (_root["BUILDobjectY" + i] - 1)) - 1) + "0") + String((x - _root["BUILDobjectX" + i]) - 1)) + "") + String(_root["BUILDobjectP" + i])));
}
i++;
}
i = 1;
while (i <= _root.paintNUM) {
rotateGAMEplusHELP1(i, "HD", "HG", 2, "f3");
rotateGAMEplusHELP1(i, "HD", "HG", 1, "f1");
i++;
}
}
if (_root.Grotationf == 270) {
PutBACKH("4", -64.4, 0, -76.9, -162, 185.6, 256);
setGrid(_root.gridlx, _root.gridly);
game.game._x = game.game._x - 175;
game.game._y = game.game._y + 100;
i = 1;
while (i <= _root.numCARC) {
_root.game.game["carc" + i].actX = _root.game.game["carc" + i].actX + 2;
_root.game.game["carc" + i].actY = _root.game.game["carc" + i].actY + 0;
_root.game.game["carc" + i].ARRx = _root.game.game["carc" + i].ARRx + 2;
_root.game.game["carc" + i].ARRy = _root.game.game["carc" + i].ARRy + 0;
_root.game.game["carc" + i]._x = _root.game.game.grid[(("x" + _root.game.game["carc" + i].actX) + "y") + _root.game.game["carc" + i].actY]._x;
_root.game.game["carc" + i]._y = _root.game.game.grid[(("x" + _root.game.game["carc" + i].actX) + "y") + _root.game.game["carc" + i].actY]._y;
_root.game.game["carc" + i].baloney = false;
if (_root.game.game["carc" + i].skinN == 1) {
_root.game.game["carc" + i].skinN = 2;
_root.game.game["carc" + i].attachMovie("carc2", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 2) {
_root.game.game["carc" + i].skinN = 3;
_root.game.game["carc" + i].attachMovie("carc3", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 3) {
_root.game.game["carc" + i].skinN = 4;
_root.game.game["carc" + i].attachMovie("carc4", "skin", 1);
}
if (_root.game.game["carc" + i].skinN == 4) {
_root.game.game["carc" + i].skinN = 1;
_root.game.game["carc" + i].attachMovie("carc1", "skin", 1);
}
i++;
}
i = 1;
while (i <= nbBUILDobject2) {
if (_root.NumERO != i) {
_root.AstopobjectA = false;
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BG") {
rotateGAMEplusHELP3(2, 0, "BD", 3, i, "f1", String((((String((x - (_root["BUILDobject2X" + i] + 2)) + 2) + "0") + String(_root["BUILDobject2Y" + i] + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HG") {
rotateGAMEplusHELP3(2, 0, "BG", 3, i, "f4", String((((String((x - (_root["BUILDobject2X" + i] + 2)) + 2) + "0") + String(_root["BUILDobject2Y" + i] + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "HD") {
rotateGAMEplusHELP3(2, 0, "HG", 3, i, "f3", String((((String((x - (_root["BUILDobject2X" + i] + 2)) + 2) + "0") + String(_root["BUILDobject2Y" + i] + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
if (_root.AstopobjectA != true) {
if (_root["BUILDobject2L" + i] == "BD") {
rotateGAMEplusHELP3(2, 0, "HD", 3, i, "f2", String((((String((x - (_root["BUILDobject2X" + i] + 2)) + 2) + "0") + String(_root["BUILDobject2Y" + i] + 2)) + "") + String(_root["BUILDobject2P" + i])));
}
}
}
_root.AstopobjectA = false;
i++;
}
i = 1;
while (i <= nbBUILDobject) {
if (_root["BUILDobjectP" + i] == 2) {
rotateGAMEplusHELP2(i, "f1", -1, 0, String((((String((x - (_root["BUILDobjectX" + i] - 1)) + 1) + "0") + String(_root["BUILDobjectY" + i] + 1)) + "") + String(_root["BUILDobjectP" + i])));
}
if (_root["BUILDobjectP" + i] == 1) {
rotateGAMEplusHELP2(i, "f3", 0, 0, String((((String((x - _root["BUILDobjectX" + i]) + 1) + "0") + String(_root["BUILDobjectY" + i] + 1)) + "") + String(_root["BUILDobjectP" + i])));
}
i++;
}
i = 1;
while (i <= _root.paintNUM) {
rotateGAMEplusHELP1(i, "BG", "HG", 2, "f1");
rotateGAMEplusHELP1(i, "BG", "HG", 1, "f3");
i++;
}
}
}
function menu1build(gat, ApTEST) {
_root.buildWIN.createEmptyMovieClip(gat, 540);
i = 0;
while (i < _root.buildWIN[[gat] + "_array"].length) {
_root.buildWIN[gat].createEmptyMovieClip(_root.buildWIN[[gat] + "_array"][i], i);
_root.buildWIN[gat][_root.buildWIN[[gat] + "_array"][i]].attachMovie("bouton1tut", "bouton", 1);
sizeTEXT = new TextFormat();
sizeTEXT.size = 10;
_root.buildWIN[gat][_root.buildWIN[[gat] + "_array"][i]].createTextField("nom", 2, 0, -1, 200, 25);
_root.buildWIN[gat][_root.buildWIN[[gat] + "_array"][i]].nom.selectable = false;
_root.buildWIN[gat][_root.buildWIN[[gat] + "_array"][i]].nom.text = ((_root.buildWIN[[gat] + "_array"][i] + " (") + _root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][i]].length) + ")";
_root.buildWIN[gat][_root.buildWIN[[gat] + "_array"][i]].nom.setTextFormat(sizeTEXT);
_root.buildWIN[gat][_root.buildWIN[[gat] + "_array"][i]].createTextField("nom2", 3, 1, -1.5, 200, 25);
_root.buildWIN[gat][_root.buildWIN[[gat] + "_array"][i]].nom2.selectable = false;
_root.buildWIN[gat][_root.buildWIN[[gat] + "_array"][i]].nom2.text = ((_root.buildWIN[[gat] + "_array"][i] + " (") + _root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][i]].length) + ")";
_root.buildWIN[gat][_root.buildWIN[[gat] + "_array"][i]].nom2.textColor = 16777215 /* 0xFFFFFF */;
_root.buildWIN[gat][_root.buildWIN[[gat] + "_array"][i]].nom2.setTextFormat(sizeTEXT);
_root.buildWIN[gat][_root.buildWIN[[gat] + "_array"][i]]._x = -140;
_root.buildWIN[gat][_root.buildWIN[[gat] + "_array"][i]]._y = -40 + (i * 20);
_root.buildWIN[gat][_root.buildWIN[[gat] + "_array"][i]].bouton.useHandCursor = false;
_root.buildWIN[gat][_root.buildWIN[[gat] + "_array"][i]].nume = i;
_root.buildWIN[gat][_root.buildWIN[[gat] + "_array"][i]].type1 = gat;
_root.buildWIN[gat][_root.buildWIN[[gat] + "_array"][i]].type2 = _root.buildWIN[[gat] + "_array"][i];
_root.buildWIN[gat][_root.buildWIN[[gat] + "_array"][i]].bouton.onRelease = function () {
this.gotoAndStop(2);
this._parent.nom2.textColor = 10066329 /* 0x999999 */;
menu2build(this._parent.type1, this._parent.nume, ApTEST);
};
_root.buildWIN[gat][_root.buildWIN[[gat] + "_array"][i]].bouton.onRollOver = function () {
this._parent.nom2.textColor = 10066329 /* 0x999999 */;
this.gotoAndStop(2);
};
_root.buildWIN[gat][_root.buildWIN[[gat] + "_array"][i]].bouton.onRollOut = function () {
this._parent.nom2.textColor = 16777215 /* 0xFFFFFF */;
this.gotoAndStop(1);
};
_root.buildWIN[gat][_root.buildWIN[[gat] + "_array"][i]].bouton.onDragOut = function () {
this._parent.nom2.textColor = 16777215 /* 0xFFFFFF */;
this.gotoAndStop(1);
};
_root.buildWIN[gat][_root.buildWIN[[gat] + "_array"][i]].bouton.onPress = function () {
this._parent.nom2.textColor = 6710886 /* 0x666666 */;
this.gotoAndStop(3);
};
i++;
}
}
function menu2build(gat, type1, A2pTEST) {
_root.buildWIN.createEmptyMovieClip(gat, 540);
xP = 0;
yP = 0;
i = 0;
while (i < _root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]].length) {
_root.buildWIN[gat].createEmptyMovieClip(_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i], i);
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].attachMovie("buttonBUILDtut", "bouton", 0);
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].attachMovie(_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i] + "B", "img", 1);
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].img._x = -20;
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].img._y = -10;
sizeTEXT = new TextFormat();
sizeTEXT.size = 10;
sizeTEXT.align = "right";
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].createTextField("nom", 2, -189, -5, 200, 25);
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].nom.selectable = false;
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].nom.text = _root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i];
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].nom.setTextFormat(sizeTEXT);
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].createTextField("nom2", 3, -188, -5.5, 200, 25);
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].nom2.selectable = false;
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].nom2.text = _root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i];
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].nom2.textColor = 16777215 /* 0xFFFFFF */;
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].nom2.setTextFormat(sizeTEXT);
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].createTextField("price", 4, -189, -24, 200, 25);
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].price.selectable = false;
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].price.text = _root[_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i] + "price"] + " $";
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].price.setTextFormat(sizeTEXT);
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].createTextField("price2", 5, -188, -24.5, 200, 25);
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].price2.selectable = false;
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].price2.text = _root[_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i] + "price"] + " $";
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].price2.textColor = 16777215 /* 0xFFFFFF */;
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].price2.setTextFormat(sizeTEXT);
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]]._x = -104 + (xP * 50);
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]]._y = -20 + (yP * 35);
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].bouton.useHandCursor = false;
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].nume = i;
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].type1 = gat;
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].type2 = type1;
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].bouton.onRelease = function () {
if (this._parent.type1 == "wall") {
if (A2pTEST == "paint") {
build2(_root.buildWIN[([this._parent.type1] + "_array_") + _root.buildWIN[[this._parent.type1] + "_array"][this._parent.type2]][this._parent.nume], _root[_root.buildWIN[([this._parent.type1] + "_array_") + _root.buildWIN[[this._parent.type1] + "_array"][this._parent.type2]][this._parent.nume] + "price"], "wall");
} else {
build1(_root.buildWIN[([this._parent.type1] + "_array_") + _root.buildWIN[[this._parent.type1] + "_array"][this._parent.type2]][this._parent.nume], _root[_root.buildWIN[([this._parent.type1] + "_array_") + _root.buildWIN[[this._parent.type1] + "_array"][this._parent.type2]][this._parent.nume] + "price"]);
}
} else if (A2pTEST == "paint") {
build2(_root.buildWIN[([this._parent.type1] + "_array_") + _root.buildWIN[[this._parent.type1] + "_array"][this._parent.type2]][this._parent.nume], _root[_root.buildWIN[([this._parent.type1] + "_array_") + _root.buildWIN[[this._parent.type1] + "_array"][this._parent.type2]][this._parent.nume] + "price"], "floor");
} else {
build2(_root.buildWIN[([this._parent.type1] + "_array_") + _root.buildWIN[[this._parent.type1] + "_array"][this._parent.type2]][this._parent.nume], _root[_root.buildWIN[([this._parent.type1] + "_array_") + _root.buildWIN[[this._parent.type1] + "_array"][this._parent.type2]][this._parent.nume] + "price"]);
}
_root.buildWIN.removeMovieClip();
this.gotoAndStop(2);
this._parent.nom2.textColor = 10066329 /* 0x999999 */;
};
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].bouton.onRollOver = function () {
this._parent.nom2.textColor = 10066329 /* 0x999999 */;
this.gotoAndStop(2);
};
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].bouton.onRollOut = function () {
this._parent.nom2.textColor = 16777215 /* 0xFFFFFF */;
this.gotoAndStop(1);
};
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].bouton.onDragOut = function () {
this._parent.nom2.textColor = 16777215 /* 0xFFFFFF */;
this.gotoAndStop(1);
};
_root.buildWIN[gat][_root.buildWIN[([gat] + "_array_") + _root.buildWIN[[gat] + "_array"][type1]][i]].bouton.onPress = function () {
this._parent.nom2.textColor = 6710886 /* 0x666666 */;
this.gotoAndStop(3);
};
xP++;
if (xP >= 5) {
xP = 0;
yP++;
}
i++;
}
_root.buildWIN[gat].attachMovie("bouton1tut2", "back", i + 1);
_root.buildWIN[gat].back._x = 78.5;
_root.buildWIN[gat].back._y = 85;
sizeTEXT2 = new TextFormat();
sizeTEXT2.size = 10;
_root.buildWIN[gat].back.createTextField("nom", 2, 0, -1, 50, 15);
_root.buildWIN[gat].back.nom.selectable = false;
_root.buildWIN[gat].back.nom.text = "Back";
_root.buildWIN[gat].back.nom.setTextFormat(sizeTEXT2);
_root.buildWIN[gat].back.createTextField("nom2", 3, 1, -1.5, 50, 15);
_root.buildWIN[gat].back.nom2.selectable = false;
_root.buildWIN[gat].back.nom2.text = "Back";
_root.buildWIN[gat].back.nom2.textColor = 16777215 /* 0xFFFFFF */;
_root.buildWIN[gat].back.nom2.setTextFormat(sizeTEXT2);
_root.buildWIN[gat].back.type1 = gat;
_root.buildWIN[gat].back.useHandCursor = false;
_root.buildWIN[gat].back.onRelease = function () {
this.gotoAndStop(2);
this._parent.nom2.textColor = 10066329 /* 0x999999 */;
menu1build(this.type1, A2pTEST);
};
_root.buildWIN[gat].back.onRollOver = function () {
this._parent.nom2.textColor = 10066329 /* 0x999999 */;
this.gotoAndStop(2);
};
_root.buildWIN[gat].back.onRollOut = function () {
this._parent.nom2.textColor = 16777215 /* 0xFFFFFF */;
this.gotoAndStop(1);
};
_root.buildWIN[gat].back.onDragOut = function () {
this._parent.nom2.textColor = 16777215 /* 0xFFFFFF */;
this.gotoAndStop(1);
};
_root.buildWIN[gat].back.onPress = function () {
this._parent.nom2.textColor = 6710886 /* 0x666666 */;
this.gotoAndStop(3);
};
}
function buildWINfunc(pTEST) {
buildCURRENT = 1;
_root.STOPshowXY = true;
_root.attachMovie("buildWIN", "buildWIN", 99986);
if (pTEST == "paint") {
_root.buildWIN.titre.gotoAndStop(2);
}
_root.buildWIN.pogne.useHandCursor = false;
_root.buildWIN.pogne.onRelease = function () {
_root.buildWIN.pogne.gotoAndStop(2);
stopDrag();
};
_root.buildWIN.pogne.onPress = function () {
_root.buildWIN.pogne.gotoAndStop(3);
startDrag (this._parent);
};
objTOTAL = 0;
if (pTEST == "paint") {
_root.buildWIN.wall_array = new Array("Briques", "Color", "Inside", "Glass");
_root.buildWIN.wall_array_Briques = new Array("brick-1", "brick-2", "brick-3");
objTOTAL = objTOTAL + _root.buildWIN.wall_array_Briques.length;
_root.buildWIN.wall_array_Color = new Array();
objTOTAL = objTOTAL + _root.buildWIN.wall_array_Color.length;
_root.buildWIN.wall_array_Inside = new Array();
objTOTAL = objTOTAL + _root.buildWIN.wall_array_Inside.length;
_root.buildWIN.wall_array_Glass = new Array();
objTOTAL = objTOTAL + _root.buildWIN.wall_array_Glass.length;
_root.buildWIN.object_array = new Array("Color", "Inside", "Outside");
_root.buildWIN.object_array_Color = new Array("color-1", "color-2", "color-3");
objTOTAL = objTOTAL + _root.buildWIN.object_array_Color.length;
_root.buildWIN.object_array_Inside = new Array();
objTOTAL = objTOTAL + _root.buildWIN.object_array_Inside.length;
_root.buildWIN.object_array_Outside = new Array();
objTOTAL = objTOTAL + _root.buildWIN.object_array_Outside.length;
_root.buildWIN.total1.text = ("Total: " + objTOTAL) + " textures.";
} else {
_root.buildWIN.wall_array = new Array("Wall", "Fence");
_root.buildWIN.wall_array_Wall = new Array("wall-1");
objTOTAL = objTOTAL + _root.buildWIN.wall_array_Wall.length;
_root.buildWIN.wall_array_Fence = new Array("barbed-1");
objTOTAL = objTOTAL + _root.buildWIN.wall_array_Fence.length;
_root.buildWIN.object_array = new Array("Essential", "Electronic", "Chair", "Desk", "Others");
_root.buildWIN.object_array_Essential = new Array();
objTOTAL = objTOTAL + _root.buildWIN.object_array_Essential.length;
_root.buildWIN.object_array_Electronic = new Array();
objTOTAL = objTOTAL + _root.buildWIN.object_array_Electronic.length;
_root.buildWIN.object_array_Chair = new Array("chair-1", "chair-2");
objTOTAL = objTOTAL + _root.buildWIN.object_array_Chair.length;
_root.buildWIN.object_array_Desk = new Array("table-1", "table-2", "table-3", "table-4", "table-5", "table-6", "compt-1", "compt-2", "biblio-1", "biblio-2", "biblio-3");
objTOTAL = objTOTAL + _root.buildWIN.object_array_Desk.length;
_root.buildWIN.object_array_Others = new Array("trash-1", "aqua-1", "obj-1");
objTOTAL = objTOTAL + _root.buildWIN.object_array_Others.length;
_root.buildWIN.scenery_array = new Array("Trees", "Flowers", "Others");
_root.buildWIN.scenery_array_Trees = new Array();
objTOTAL = objTOTAL + _root.buildWIN.scenery_array_Trees.length;
_root.buildWIN.scenery_array_Flowers = new Array("fleur-1", "fleur-2", "fleur-3", "fleur-4", "fleur-5", "fleur-6", "fleur-7", "fleur-8", "fleur-9");
objTOTAL = objTOTAL + _root.buildWIN.scenery_array_Flowers.length;
_root.buildWIN.scenery_array_Others = new Array("flama-1");
objTOTAL = objTOTAL + _root.buildWIN.scenery_array_Others.length;
_root.buildWIN.misc_array = new Array("Books", "Posters");
_root.buildWIN.misc_array_Books = new Array();
objTOTAL = objTOTAL + _root.buildWIN.misc_array_Books.length;
_root.buildWIN.misc_array_Posters = new Array();
objTOTAL = objTOTAL + _root.buildWIN.misc_array_Posters.length;
_root.buildWIN.total1.text = ("Total: " + objTOTAL) + " objects.";
}
_root.buildWIN.total2.text = _root.buildWIN.total1.text;
_root.buildWIN._x = 200;
_root.buildWIN._y = 135;
_root.buildWIN.b1.name.selectable = false;
_root.buildWIN.b1.gotoAndStop(1);
_root.buildWIN.b1.useHandCursor = false;
_root.buildWIN.b1.onEnterFrame = function () {
if (buildCURRENT == 1) {
_root.buildWIN.b1.gotoAndStop(3);
if (this.a != true) {
this.a = true;
menu1build("wall", pTEST);
_root.buildWIN.b2.gotoAndStop(1);
_root.buildWIN.b3.gotoAndStop(1);
_root.buildWIN.b4.gotoAndStop(1);
}
} else {
this.a = false;
}
};
_root.buildWIN.b1.onRelease = function () {
_root.buildWIN.b1.gotoAndStop(2);
buildCURRENT = 1;
};
_root.buildWIN.b1.onRollOver = function () {
_root.buildWIN.b1.gotoAndStop(2);
};
_root.buildWIN.b1.onRollOut = function () {
_root.buildWIN.b1.gotoAndStop(1);
};
_root.buildWIN.b1.onDragOut = function () {
_root.buildWIN.b1.gotoAndStop(1);
};
_root.buildWIN.b1.onPress = function () {
_root.buildWIN.b1.gotoAndStop(3);
};
_root.buildWIN.b2.name.selectable = false;
_root.buildWIN.b2.gotoAndStop(1);
_root.buildWIN.b2.useHandCursor = false;
_root.buildWIN.b2.onLoad = function () {
if (pTEST == "paint") {
_root.buildWIN.b2.name.text = "Floor";
}
};
_root.buildWIN.b2.onEnterFrame = function () {
if (buildCURRENT == 2) {
_root.buildWIN.b2.gotoAndStop(3);
if (this.b != true) {
this.b = true;
menu1build("object", pTEST);
_root.buildWIN.b1.gotoAndStop(1);
_root.buildWIN.b3.gotoAndStop(1);
_root.buildWIN.b4.gotoAndStop(1);
}
} else {
this.b = false;
}
};
_root.buildWIN.b2.onRelease = function () {
_root.buildWIN.b2.gotoAndStop(2);
buildCURRENT = 2;
};
_root.buildWIN.b2.onRollOver = function () {
_root.buildWIN.b2.gotoAndStop(2);
};
_root.buildWIN.b2.onRollOut = function () {
_root.buildWIN.b2.gotoAndStop(1);
};
_root.buildWIN.b2.onDragOut = function () {
_root.buildWIN.b2.gotoAndStop(1);
};
_root.buildWIN.b2.onPress = function () {
_root.buildWIN.b2.gotoAndStop(3);
};
if (pTEST != "paint") {
_root.buildWIN.b3.name.selectable = false;
_root.buildWIN.b3.gotoAndStop(1);
_root.buildWIN.b3.useHandCursor = false;
_root.buildWIN.b3.onEnterFrame = function () {
if (buildCURRENT == 3) {
_root.buildWIN.b3.gotoAndStop(3);
if (this.a != true) {
this.a = true;
menu1build("scenery", pTEST);
_root.buildWIN.b2.gotoAndStop(1);
_root.buildWIN.b1.gotoAndStop(1);
_root.buildWIN.b4.gotoAndStop(1);
}
} else {
this.a = false;
}
};
_root.buildWIN.b3.onRelease = function () {
_root.buildWIN.b3.gotoAndStop(2);
buildCURRENT = 3;
};
_root.buildWIN.b3.onRollOver = function () {
_root.buildWIN.b3.gotoAndStop(2);
};
_root.buildWIN.b3.onRollOut = function () {
_root.buildWIN.b3.gotoAndStop(1);
};
_root.buildWIN.b3.onDragOut = function () {
_root.buildWIN.b3.gotoAndStop(1);
};
_root.buildWIN.b3.onPress = function () {
_root.buildWIN.b3.gotoAndStop(3);
};
} else {
_root.buildWIN.b3._visible = false;
}
if (pTEST != "paint") {
_root.buildWIN.b4.name.selectable = false;
_root.buildWIN.b4.gotoAndStop(1);
_root.buildWIN.b4.useHandCursor = false;
_root.buildWIN.b4.onEnterFrame = function () {
if (buildCURRENT == 4) {
_root.buildWIN.b4.gotoAndStop(3);
if (this.a != true) {
this.a = true;
menu1build("misc", pTEST);
_root.buildWIN.b2.gotoAndStop(1);
_root.buildWIN.b3.gotoAndStop(1);
_root.buildWIN.b1.gotoAndStop(1);
}
} else {
this.a = false;
}
};
_root.buildWIN.b4.onRelease = function () {
_root.buildWIN.b4.gotoAndStop(2);
buildCURRENT = 4;
};
_root.buildWIN.b4.onRollOver = function () {
_root.buildWIN.b4.gotoAndStop(2);
};
_root.buildWIN.b4.onRollOut = function () {
_root.buildWIN.b4.gotoAndStop(1);
};
_root.buildWIN.b4.onDragOut = function () {
_root.buildWIN.b4.gotoAndStop(1);
};
_root.buildWIN.b4.onPress = function () {
_root.buildWIN.b4.gotoAndStop(3);
};
} else {
_root.buildWIN.b4._visible = false;
}
_root.buildWIN.ex.name.selectable = false;
_root.buildWIN.ex.gotoAndStop(1);
_root.buildWIN.ex.useHandCursor = false;
_root.buildWIN.ex.onRelease = function () {
_root.buildWIN.ex.gotoAndStop(2);
_root.buildWIN.removeMovieClip();
_root.pogneOBJECT = true;
_root.STOPshowXY = false;
};
_root.buildWIN.ex.onRollOver = function () {
_root.buildWIN.ex.gotoAndStop(2);
};
_root.buildWIN.ex.onRollOut = function () {
_root.buildWIN.ex.gotoAndStop(1);
};
_root.buildWIN.ex.onDragOut = function () {
_root.buildWIN.ex.gotoAndStop(1);
};
_root.buildWIN.ex.onPress = function () {
_root.buildWIN.ex.gotoAndStop(3);
};
}
function AutoRANDOM() {
_root.createEmptyMovieClip("auttotoTEST", 289343);
_root.game.game.createEmptyMovieClip("auttoto", 165);
createAUTTOTO();
_root.auttotoTEST.onEnterFrame = function () {
if (_root.pausedejeuner != true) {
if (random(40) == 2) {
_root.AutoANIM1();
}
}
};
}
function createAUTTOTO() {
if ((Grotationf == 0) || (Grotationf == 270)) {
_root.game.game.auttoto.swapDepths(9923747);
}
if ((Grotationf == 90) || (Grotationf == 180)) {
_root.game.game.auttoto.swapDepths(165);
}
}
function AutoANIMr1() {
i = 1;
while (i <= autoI) {
cacheVIT = _root.game.game.auttoto["auto" + i].vit;
cachePP = _root.game.game.auttoto["auto" + i].pp;
cacheNA = _root.game.game.auttoto["auto" + i].na;
cacheDEP = _root.game.game.auttoto["auto" + i].dep;
cacheSKIN = _root.game.game.auttoto["auto" + i].skin;
_root.game.game.auttoto["auto" + i].removeMovieClip();
if (_root[("auto" + i) + "track"] == 2) {
if (_root.Grotationf == 270) {
_root.game.game.auttoto.attachMovie(("auto" + cacheSKIN) + "-2", "auto" + cacheNA, 5568 + cacheDEP);
_root.game.game.auttoto["auto" + i].na = i;
_root.game.game.auttoto["auto" + i].skin = cacheSKIN;
_root.game.game.auttoto["auto" + i].vit = cacheVIT;
_root.game.game.auttoto["auto" + i].pp2 = cachePP;
_root.game.game.auttoto["auto" + i].dep = cacheDEP;
_root.game.game.auttoto["auto" + i].arrX = 500.6;
_root.game.game.auttoto["auto" + i].arrY = -62;
_root.game.game.auttoto["auto" + i].depX = 160.6;
_root.game.game.auttoto["auto" + i].depY = 113;
_root.game.game.auttoto["auto" + i].vitX = (_root.game.game.auttoto["auto" + i].arrX - _root.game.game.auttoto["auto" + i].depX) / _root.game.game.auttoto["auto" + i].vit;
_root.game.game.auttoto["auto" + i].vitY = (_root.game.game.auttoto["auto" + i].arrY - _root.game.game.auttoto["auto" + i].depY) / _root.game.game.auttoto["auto" + i].vit;
_root.game.game.auttoto["auto" + i]._x = _root.game.game.auttoto["auto" + i].depX + (((_root.game.game.auttoto["auto" + i].arrX - _root.game.game.auttoto["auto" + i].depX) / _root.game.game.auttoto["auto" + i].vit) * _root.game.game.auttoto["auto" + i].pp2);
_root.game.game.auttoto["auto" + i]._y = _root.game.game.auttoto["auto" + i].depY + (((_root.game.game.auttoto["auto" + i].arrY - _root.game.game.auttoto["auto" + i].depY) / _root.game.game.auttoto["auto" + i].vit) * _root.game.game.auttoto["auto" + i].pp2);
_root.game.game.auttoto["auto" + i].onEnterFrame = function () {
if (_root.pausedejeuner != true) {
this._x = this._x + this.vitX;
this._y = this._y + this.vitY;
}
this.pp = ((this._x - this.depX) / (this.arrX - this.depX)) * this.vit;
if (this._x >= this.arrX) {
if (this._y <= this.arrY) {
delete _root[("auto" + this.na) + "track"];
this.removeMovieClip();
}
}
};
}
if (_root.Grotationf == 180) {
_root.game.game.auttoto.attachMovie(("auto" + cacheSKIN) + "-1", "auto" + cacheNA, 3568 + cacheDEP);
_root.game.game.auttoto["auto" + i].na = i;
_root.game.game.auttoto["auto" + i].skin = cacheSKIN;
_root.game.game.auttoto["auto" + i].vit = cacheVIT;
_root.game.game.auttoto["auto" + i].pp2 = cachePP;
_root.game.game.auttoto["auto" + i].dep = cacheDEP;
_root.game.game.auttoto["auto" + i].arrX = -115;
_root.game.game.auttoto["auto" + i].arrY = -271.8;
_root.game.game.auttoto["auto" + i].depX = 232;
_root.game.game.auttoto["auto" + i].depY = -85.8;
_root.game.game.auttoto["auto" + i].vitX = (_root.game.game.auttoto["auto" + i].arrX - _root.game.game.auttoto["auto" + i].depX) / _root.game.game.auttoto["auto" + i].vit;
_root.game.game.auttoto["auto" + i].vitY = (_root.game.game.auttoto["auto" + i].arrY - _root.game.game.auttoto["auto" + i].depY) / _root.game.game.auttoto["auto" + i].vit;
_root.game.game.auttoto["auto" + i]._x = _root.game.game.auttoto["auto" + i].depX + (((_root.game.game.auttoto["auto" + i].arrX - _root.game.game.auttoto["auto" + i].depX) / _root.game.game.auttoto["auto" + i].vit) * _root.game.game.auttoto["auto" + i].pp2);
_root.game.game.auttoto["auto" + i]._y = _root.game.game.auttoto["auto" + i].depY + (((_root.game.game.auttoto["auto" + i].arrY - _root.game.game.auttoto["auto" + i].depY) / _root.game.game.auttoto["auto" + i].vit) * _root.game.game.auttoto["auto" + i].pp2);
_root.game.game.auttoto["auto" + i].onEnterFrame = function () {
if (_root.pausedejeuner != true) {
this._x = this._x + this.vitX;
this._y = this._y + this.vitY;
}
this.pp = ((this._x - this.depX) / (this.arrX - this.depX)) * this.vit;
if (this._x <= this.arrX) {
if (this._y <= this.arrY) {
delete _root[("auto" + this.na) + "track"];
this.removeMovieClip();
}
}
};
}
if (_root.Grotationf == 90) {
_root.game.game.auttoto.attachMovie(("auto" + cacheSKIN) + "-4", "auto" + cacheNA, 3568 + cacheDEP);
_root.game.game.auttoto["auto" + i].na = i;
_root.game.game.auttoto["auto" + i].skin = cacheSKIN;
_root.game.game.auttoto["auto" + i].vit = cacheVIT;
_root.game.game.auttoto["auto" + i].pp2 = cachePP;
_root.game.game.auttoto["auto" + i].dep = cacheDEP;
_root.game.game.auttoto["auto" + i].arrX = -510.6;
_root.game.game.auttoto["auto" + i].arrY = 27;
_root.game.game.auttoto["auto" + i].depX = -150.6;
_root.game.game.auttoto["auto" + i].depY = -151;
_root.game.game.auttoto["auto" + i].vitX = (_root.game.game.auttoto["auto" + i].arrX - _root.game.game.auttoto["auto" + i].depX) / _root.game.game.auttoto["auto" + i].vit;
_root.game.game.auttoto["auto" + i].vitY = (_root.game.game.auttoto["auto" + i].arrY - _root.game.game.auttoto["auto" + i].depY) / _root.game.game.auttoto["auto" + i].vit;
_root.game.game.auttoto["auto" + i]._x = _root.game.game.auttoto["auto" + i].depX + (((_root.game.game.auttoto["auto" + i].arrX - _root.game.game.auttoto["auto" + i].depX) / _root.game.game.auttoto["auto" + i].vit) * _root.game.game.auttoto["auto" + i].pp2);
_root.game.game.auttoto["auto" + i]._y = _root.game.game.auttoto["auto" + i].depY + (((_root.game.game.auttoto["auto" + i].arrY - _root.game.game.auttoto["auto" + i].depY) / _root.game.game.auttoto["auto" + i].vit) * _root.game.game.auttoto["auto" + i].pp2);
_root.game.game.auttoto["auto" + i].onEnterFrame = function () {
if (_root.pausedejeuner != true) {
this._x = this._x + this.vitX;
this._y = this._y + this.vitY;
}
this.pp = ((this._x - this.depX) / (this.arrX - this.depX)) * this.vit;
if (this._x <= this.arrX) {
if (this._y >= this.arrY) {
delete _root[("auto" + this.na) + "track"];
this.removeMovieClip();
}
}
};
}
if (_root.Grotationf == 0) {
_root.game.game.auttoto.attachMovie(("auto" + cacheSKIN) + "-3", "auto" + cacheNA, 5568 + cacheDEP);
_root.game.game.auttoto["auto" + i].na = i;
_root.game.game.auttoto["auto" + i].skin = cacheSKIN;
_root.game.game.auttoto["auto" + i].vit = cacheVIT;
_root.game.game.auttoto["auto" + i].pp2 = cachePP;
_root.game.game.auttoto["auto" + i].dep = cacheDEP;
_root.game.game.auttoto["auto" + i].arrX = 97;
_root.game.game.auttoto["auto" + i].arrY = 247.8;
_root.game.game.auttoto["auto" + i].depX = -255;
_root.game.game.auttoto["auto" + i].depY = 67.8;
_root.game.game.auttoto["auto" + i].vitX = (_root.game.game.auttoto["auto" + i].arrX - _root.game.game.auttoto["auto" + i].depX) / _root.game.game.auttoto["auto" + i].vit;
_root.game.game.auttoto["auto" + i].vitY = (_root.game.game.auttoto["auto" + i].arrY - _root.game.game.auttoto["auto" + i].depY) / _root.game.game.auttoto["auto" + i].vit;
_root.game.game.auttoto["auto" + i]._x = _root.game.game.auttoto["auto" + i].depX + (((_root.game.game.auttoto["auto" + i].arrX - _root.game.game.auttoto["auto" + i].depX) / _root.game.game.auttoto["auto" + i].vit) * _root.game.game.auttoto["auto" + i].pp2);
_root.game.game.auttoto["auto" + i]._y = _root.game.game.auttoto["auto" + i].depY + (((_root.game.game.auttoto["auto" + i].arrY - _root.game.game.auttoto["auto" + i].depY) / _root.game.game.auttoto["auto" + i].vit) * _root.game.game.auttoto["auto" + i].pp2);
_root.game.game.auttoto["auto" + i].onEnterFrame = function () {
if (_root.pausedejeuner != true) {
this._x = this._x + this.vitX;
this._y = this._y + this.vitY;
}
this.pp = ((this._x - this.depX) / (this.arrX - this.depX)) * this.vit;
if (this._x >= this.arrX) {
if (this._y >= this.arrY) {
delete _root[("auto" + this.na) + "track"];
this.removeMovieClip();
}
}
};
}
}
if (_root[("auto" + i) + "track"] == 1) {
if (_root.Grotationf == 270) {
_root.game.game.auttoto.attachMovie(("auto" + cacheSKIN) + "-4", "auto" + cacheNA, 4568 + cacheDEP);
_root.game.game.auttoto["auto" + i].na = i;
_root.game.game.auttoto["auto" + i].skin = cacheSKIN;
_root.game.game.auttoto["auto" + i].vit = cacheVIT;
_root.game.game.auttoto["auto" + i].pp2 = cachePP;
_root.game.game.auttoto["auto" + i].dep = cacheDEP;
_root.game.game.auttoto["auto" + i].arrX = 101.6;
_root.game.game.auttoto["auto" + i].arrY = 110;
_root.game.game.auttoto["auto" + i].depX = 459.6;
_root.game.game.auttoto["auto" + i].depY = -70;
_root.game.game.auttoto["auto" + i].vitX = (_root.game.game.auttoto["auto" + i].arrX - _root.game.game.auttoto["auto" + i].depX) / _root.game.game.auttoto["auto" + i].vit;
_root.game.game.auttoto["auto" + i].vitY = (_root.game.game.auttoto["auto" + i].arrY - _root.game.game.auttoto["auto" + i].depY) / _root.game.game.auttoto["auto" + i].vit;
_root.game.game.auttoto["auto" + i]._x = _root.game.game.auttoto["auto" + i].depX + (((_root.game.game.auttoto["auto" + i].arrX - _root.game.game.auttoto["auto" + i].depX) / _root.game.game.auttoto["auto" + i].vit) * _root.game.game.auttoto["auto" + i].pp2);
_root.game.game.auttoto["auto" + i]._y = _root.game.game.auttoto["auto" + i].depY + (((_root.game.game.auttoto["auto" + i].arrY - _root.game.game.auttoto["auto" + i].depY) / _root.game.game.auttoto["auto" + i].vit) * _root.game.game.auttoto["auto" + i].pp2);
_root.game.game.auttoto["auto" + i].onEnterFrame = function () {
if (_root.pausedejeuner != true) {
this._x = this._x + this.vitX;
this._y = this._y + this.vitY;
}
this.pp = ((this._x - this.depX) / (this.arrX - this.depX)) * this.vit;
if (this._x <= this.arrX) {
if (this._y >= this.arrY) {
delete _root[("auto" + this.na) + "track"];
this.removeMovieClip();
}
}
};
}
if (_root.Grotationf == 180) {
_root.game.game.auttoto.attachMovie(("auto" + cacheSKIN) + "-3", "auto" + cacheNA, 4568 + cacheDEP);
_root.game.game.auttoto["auto" + i].na = i;
_root.game.game.auttoto["auto" + i].skin = cacheSKIN;
_root.game.game.auttoto["auto" + i].vit = cacheVIT;
_root.game.game.auttoto["auto" + i].pp2 = cachePP;
_root.game.game.auttoto["auto" + i].dep = cacheDEP;
_root.game.game.auttoto["auto" + i].arrX = 263;
_root.game.game.auttoto["auto" + i].arrY = -65.8;
_root.game.game.auttoto["auto" + i].depX = -78;
_root.game.game.auttoto["auto" + i].depY = -234.8;
_root.game.game.auttoto["auto" + i].vitX = (_root.game.game.auttoto["auto" + i].arrX - _root.game.game.auttoto["auto" + i].depX) / _root.game.game.auttoto["auto" + i].vit;
_root.game.game.auttoto["auto" + i].vitY = (_root.game.game.auttoto["auto" + i].arrY - _root.game.game.auttoto["auto" + i].depY) / _root.game.game.auttoto["auto" + i].vit;
_root.game.game.auttoto["auto" + i]._x = _root.game.game.auttoto["auto" + i].depX + (((_root.game.game.auttoto["auto" + i].arrX - _root.game.game.auttoto["auto" + i].depX) / _root.game.game.auttoto["auto" + i].vit) * _root.game.game.auttoto["auto" + i].pp2);
_root.game.game.auttoto["auto" + i]._y = _root.game.game.auttoto["auto" + i].depY + (((_root.game.game.auttoto["auto" + i].arrY - _root.game.game.auttoto["auto" + i].depY) / _root.game.game.auttoto["auto" + i].vit) * _root.game.game.auttoto["auto" + i].pp2);
_root.game.game.auttoto["auto" + i].onEnterFrame = function () {
if (_root.pausedejeuner != true) {
this._x = this._x + this.vitX;
this._y = this._y + this.vitY;
}
this.pp = ((this._x - this.depX) / (this.arrX - this.depX)) * this.vit;
if (this._x >= this.arrX) {
if (this._y >= this.arrY) {
delete _root[("auto" + this.na) + "track"];
this.removeMovieClip();
}
}
};
}
if (_root.Grotationf == 90) {
_root.game.game.auttoto.attachMovie(("auto" + cacheSKIN) + "-2", "auto" + cacheNA, 4568 + cacheDEP);
_root.game.game.auttoto["auto" + i].na = i;
_root.game.game.auttoto["auto" + i].skin = cacheSKIN;
_root.game.game.auttoto["auto" + i].vit = cacheVIT;
_root.game.game.auttoto["auto" + i].pp2 = cachePP;
_root.game.game.auttoto["auto" + i].dep = cacheDEP;
_root.game.game.auttoto["auto" + i].arrX = -123.6;
_root.game.game.auttoto["auto" + i].arrY = -140;
_root.game.game.auttoto["auto" + i].depX = -452.6;
_root.game.game.auttoto["auto" + i].depY = 22;
_root.game.game.auttoto["auto" + i].vitX = (_root.game.game.auttoto["auto" + i].arrX - _root.game.game.auttoto["auto" + i].depX) / _root.game.game.auttoto["auto" + i].vit;
_root.game.game.auttoto["auto" + i].vitY = (_root.game.game.auttoto["auto" + i].arrY - _root.game.game.auttoto["auto" + i].depY) / _root.game.game.auttoto["auto" + i].vit;
_root.game.game.auttoto["auto" + i]._x = _root.game.game.auttoto["auto" + i].depX + (((_root.game.game.auttoto["auto" + i].arrX - _root.game.game.auttoto["auto" + i].depX) / _root.game.game.auttoto["auto" + i].vit) * _root.game.game.auttoto["auto" + i].pp2);
_root.game.game.auttoto["auto" + i]._y = _root.game.game.auttoto["auto" + i].depY + (((_root.game.game.auttoto["auto" + i].arrY - _root.game.game.auttoto["auto" + i].depY) / _root.game.game.auttoto["auto" + i].vit) * _root.game.game.auttoto["auto" + i].pp2);
_root.game.game.auttoto["auto" + i].onEnterFrame = function () {
if (_root.pausedejeuner != true) {
this._x = this._x + this.vitX;
this._y = this._y + this.vitY;
}
this.pp = ((this._x - this.depX) / (this.arrX - this.depX)) * this.vit;
if (this._x >= this.arrX) {
if (this._y <= this.arrY) {
delete _root[("auto" + this.na) + "track"];
this.removeMovieClip();
}
}
};
}
if (_root.Grotationf == 0) {
_root.game.game.auttoto.attachMovie(("auto" + cacheSKIN) + "-1", "auto" + cacheNA, 4568 + cacheDEP);
_root.game.game.auttoto["auto" + i].na = i;
_root.game.game.auttoto["auto" + i].skin = cacheSKIN;
_root.game.game.auttoto["auto" + i].vit = cacheVIT;
_root.game.game.auttoto["auto" + i].pp2 = cachePP;
_root.game.game.auttoto["auto" + i].dep = cacheDEP;
_root.game.game.auttoto["auto" + i].arrX = -270;
_root.game.game.auttoto["auto" + i].arrY = 45.8;
_root.game.game.auttoto["auto" + i].depX = 65;
_root.game.game.auttoto["auto" + i].depY = 212.8;
_root.game.game.auttoto["auto" + i].vitX = (_root.game.game.auttoto["auto" + i].arrX - _root.game.game.auttoto["auto" + i].depX) / _root.game.game.auttoto["auto" + i].vit;
_root.game.game.auttoto["auto" + i].vitY = (_root.game.game.auttoto["auto" + i].arrY - _root.game.game.auttoto["auto" + i].depY) / _root.game.game.auttoto["auto" + i].vit;
_root.game.game.auttoto["auto" + i]._x = _root.game.game.auttoto["auto" + i].depX + (((_root.game.game.auttoto["auto" + i].arrX - _root.game.game.auttoto["auto" + i].depX) / _root.game.game.auttoto["auto" + i].vit) * _root.game.game.auttoto["auto" + i].pp2);
_root.game.game.auttoto["auto" + i]._y = _root.game.game.auttoto["auto" + i].depY + (((_root.game.game.auttoto["auto" + i].arrY - _root.game.game.auttoto["auto" + i].depY) / _root.game.game.auttoto["auto" + i].vit) * _root.game.game.auttoto["auto" + i].pp2);
_root.game.game.auttoto["auto" + i].onEnterFrame = function () {
if (_root.pausedejeuner != true) {
this._x = this._x + this.vitX;
this._y = this._y + this.vitY;
}
this.pp = ((this._x - this.depX) / (this.arrX - this.depX)) * this.vit;
if (this._x <= this.arrX) {
if (this._y <= this.arrY) {
delete _root[("auto" + this.na) + "track"];
this.removeMovieClip();
}
}
};
}
}
delete cacheNA;
delete cacheDEP;
delete cacheVIT;
delete cacheSKIN;
i++;
}
}
function AutoANIM1() {
laisseFAIRaFOR = false;
a = 1;
for(;;){
if (_root.game.game.auttoto["auto" + a]._currentframe == undefined) {
// unexpected jump
}
a++;
};
ab = 1;
while (ab < (autoI + 1)) {
if (_root.game.game.auttoto["auto" + ab]._currentframe != undefined) {
if (_root.game.game.auttoto["auto" + ab].pp < 60) {
laisseFAIRaFOR = true;
}
}
ab++;
}
if (laisseFAIRaFOR != true) {
if (a > autoI) {
autoI++;
}
_root[("auto" + a) + "track"] = Math.round(random(2) + 1);
if (_root[("auto" + a) + "track"] > 2) {
_root[("auto" + a) + "track"] = 2;
}
if (_root[("auto" + a) + "track"] < 1) {
_root[("auto" + a) + "track"] = 1;
}
_root.game.game.auttoto.createEmptyMovieClip("auto" + a, 4568 + a);
_root.game.game.auttoto["auto" + a].pp = 0;
_root.game.game.auttoto["auto" + a].na = a;
_root.game.game.auttoto["auto" + a].dep = a;
_root.game.game.auttoto["auto" + a].skin = Math.round(random(40) / 10) + 1;
if (_root.game.game.auttoto["auto" + a].skin > 5) {
_root.game.game.auttoto["auto" + a].skin = 5;
}
if (_root.game.game.auttoto["auto" + a].skin < 1) {
_root.game.game.auttoto["auto" + a].skin = 1;
}
_root.game.game.auttoto["auto" + a].vit = 180;
AutoANIMr1();
}
}
function Ffleche() {
_root.attachMovie("flecheg", "flecheg", 2);
flecheg._x = 10;
flecheg._y = 150;
flecheg._alpha = 75;
flecheg._visible = false;
flecheg.onEnterFrame = function () {
if (_root._xmouse < 30) {
if (_root._ymouse < 243) {
this._visible = true;
_root.game.game._x = _root.game.game._x + 3;
if (Grotationf == 0) {
if (_root.game.game._x >= 155) {
_root.game.game._x = 155;
}
if (_root.game.game._x <= -200) {
_root.game.game._x = -200;
}
if (_root.game.game._y >= -25) {
_root.game.game._y = -25;
}
if (_root.game.game._y <= -200) {
_root.game.game._y = -200;
}
}
if (Grotationf == 90) {
if (_root.game.game._x >= 350) {
_root.game.game._x = 350;
}
if (_root.game.game._x <= 0) {
_root.game.game._x = 0;
}
if (_root.game.game._y >= 55) {
_root.game.game._y = 55;
}
if (_root.game.game._y <= -125) {
_root.game.game._y = -125;
}
}
if (Grotationf == 180) {
if (_root.game.game._x >= 180) {
_root.game.game._x = 180;
}
if (_root.game.game._x <= -165) {
_root.game.game._x = -165;
}
if (_root.game.game._y >= 155) {
_root.game.game._y = 155;
}
if (_root.game.game._y <= 0) {
_root.game.game._y = 0;
}
}
if (Grotationf == 270) {
if (_root.game.game._x >= -20) {
_root.game.game._x = -20;
}
if (_root.game.game._x <= -350) {
_root.game.game._x = -350;
}
if (_root.game.game._y >= 75) {
_root.game.game._y = 75;
}
if (_root.game.game._y <= -100) {
_root.game.game._y = -100;
}
}
} else {
this._visible = false;
}
} else {
this._visible = false;
}
};
_root.attachMovie("flecheh", "flecheh", 3);
flecheh._x = 200;
flecheh._y = 10;
flecheh._alpha = 75;
flecheh._visible = false;
flecheh.onEnterFrame = function () {
if (_root._ymouse < 30) {
this._visible = true;
_root.game.game._y = _root.game.game._y + 3;
if (Grotationf == 0) {
if (_root.game.game._x >= 155) {
_root.game.game._x = 155;
}
if (_root.game.game._x <= -200) {
_root.game.game._x = -200;
}
if (_root.game.game._y >= -25) {
_root.game.game._y = -25;
}
if (_root.game.game._y <= -200) {
_root.game.game._y = -200;
}
}
if (Grotationf == 90) {
if (_root.game.game._x >= 350) {
_root.game.game._x = 350;
}
if (_root.game.game._x <= 0) {
_root.game.game._x = 0;
}
if (_root.game.game._y >= 55) {
_root.game.game._y = 55;
}
if (_root.game.game._y <= -125) {
_root.game.game._y = -125;
}
}
if (Grotationf == 180) {
if (_root.game.game._x >= 180) {
_root.game.game._x = 180;
}
if (_root.game.game._x <= -165) {
_root.game.game._x = -165;
}
if (_root.game.game._y >= 155) {
_root.game.game._y = 155;
}
if (_root.game.game._y <= 0) {
_root.game.game._y = 0;
}
}
if (Grotationf == 270) {
if (_root.game.game._x >= -20) {
_root.game.game._x = -20;
}
if (_root.game.game._x <= -350) {
_root.game.game._x = -350;
}
if (_root.game.game._y >= 75) {
_root.game.game._y = 75;
}
if (_root.game.game._y <= -100) {
_root.game.game._y = -100;
}
}
} else {
this._visible = false;
}
};
_root.attachMovie("flecheb", "flecheb", 5);
flecheb._x = 200;
flecheb._y = 275;
flecheb._alpha = 75;
flecheb._visible = false;
flecheb.onEnterFrame = function () {
if (_root._ymouse > 255) {
if (_root._ymouse < 280) {
if (_root._xmouse > 133.333333333333) {
this._visible = true;
_root.game.game._y = _root.game.game._y - 3;
if (Grotationf == 0) {
if (_root.game.game._x >= 155) {
_root.game.game._x = 155;
}
if (_root.game.game._x <= -200) {
_root.game.game._x = -200;
}
if (_root.game.game._y >= -25) {
_root.game.game._y = -25;
}
if (_root.game.game._y <= -200) {
_root.game.game._y = -200;
}
}
if (Grotationf == 90) {
if (_root.game.game._x >= 350) {
_root.game.game._x = 350;
}
if (_root.game.game._x <= 0) {
_root.game.game._x = 0;
}
if (_root.game.game._y >= 55) {
_root.game.game._y = 55;
}
if (_root.game.game._y <= -125) {
_root.game.game._y = -125;
}
}
if (Grotationf == 180) {
if (_root.game.game._x >= 180) {
_root.game.game._x = 180;
}
if (_root.game.game._x <= -165) {
_root.game.game._x = -165;
}
if (_root.game.game._y >= 155) {
_root.game.game._y = 155;
}
if (_root.game.game._y <= 0) {
_root.game.game._y = 0;
}
}
if (Grotationf == 270) {
if (_root.game.game._x >= -20) {
_root.game.game._x = -20;
}
if (_root.game.game._x <= -350) {
_root.game.game._x = -350;
}
if (_root.game.game._y >= 75) {
_root.game.game._y = 75;
}
if (_root.game.game._y <= -100) {
_root.game.game._y = -100;
}
}
} else {
this._visible = false;
}
} else {
this._visible = false;
}
} else {
this._visible = false;
}
};
_root.attachMovie("fleched", "fleched", 4);
fleched._alpha = 75;
fleched._x = 390;
fleched._y = 150;
fleched._visible = false;
fleched.onEnterFrame = function () {
if (_root._xmouse > 370) {
if (_root._ymouse < 280) {
this._visible = true;
_root.game.game._x = _root.game.game._x - 3;
if (Grotationf == 0) {
if (_root.game.game._x >= 155) {
_root.game.game._x = 155;
}
if (_root.game.game._x <= -200) {
_root.game.game._x = -200;
}
if (_root.game.game._y >= -25) {
_root.game.game._y = -25;
}
if (_root.game.game._y <= -200) {
_root.game.game._y = -200;
}
}
if (Grotationf == 90) {
if (_root.game.game._x >= 350) {
_root.game.game._x = 350;
}
if (_root.game.game._x <= 0) {
_root.game.game._x = 0;
}
if (_root.game.game._y >= 55) {
_root.game.game._y = 55;
}
if (_root.game.game._y <= -125) {
_root.game.game._y = -125;
}
}
if (Grotationf == 180) {
if (_root.game.game._x >= 180) {
_root.game.game._x = 180;
}
if (_root.game.game._x <= -165) {
_root.game.game._x = -165;
}
if (_root.game.game._y >= 155) {
_root.game.game._y = 155;
}
if (_root.game.game._y <= 0) {
_root.game.game._y = 0;
}
}
if (Grotationf == 270) {
if (_root.game.game._x >= -20) {
_root.game.game._x = -20;
}
if (_root.game.game._x <= -350) {
_root.game.game._x = -350;
}
if (_root.game.game._y >= 75) {
_root.game.game._y = 75;
}
if (_root.game.game._y <= -100) {
_root.game.game._y = -100;
}
}
} else {
this._visible = false;
}
} else {
this._visible = false;
}
};
}
function fFlecheSTOP() {
delete _root.fleched.onEnterFrame;
delete _root.flecheg.onEnterFrame;
delete _root.flecheb.onEnterFrame;
delete _root.flecheh.onEnterFrame;
_root.fleched.removeMovieClip();
_root.flecheg.removeMovieClip();
_root.flecheb.removeMovieClip();
_root.flecheh.removeMovieClip();
}
function activePlusKEYF() {
ohhFfleche = true;
_root.onEnterFrame = function () {
emplyTRUE2 = Math.round((Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2)) - Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2))) / 2);
emplxTRUE2 = Math.abs(Math.round((Math.round((_root.game.game.grid._xmouse + (_root.game.game.grid.xydup._width / 4)) / (_root.game.game.grid.xydup._width / 2)) + Math.round((_root.game.game.grid._ymouse + (_root.game.game.grid.xydup._height / 4)) / (_root.game.game.grid.xydup._height / 2))) / 2) - 1);
if (_root.buildingomg) {
if (ohhFfleche) {
Ffleche();
ohhFfleche = false;
}
} else {
fFlecheSTOP();
ohhFfleche = true;
}
if (rem) {
rem = false;
removeALLgame();
}
if (zoomPfunc) {
zoomp();
zoomPfunc = false;
menubas.Bzoomp.gotoAndPlay(3);
}
if (zoomMfunc) {
zoomm();
zoomMfunc = false;
menubas.Bzoomm.gotoAndPlay(3);
}
if (Bexitfunc) {
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
_root.cible1TOUCH = false;
_root.stopCIBLE1();
if (_root.languageL == "Fran\u00E7ais") {
windowMAKEfunc(false, false, true, "Vous quittez?", "\u00CAtes-vous s\u00FBre de vouloir quitter? Votre partie ne sera pas sauvegarder! Donc n'oubliez pas de sauvegarder.", "quitGAMEw");
}
if (_root.languageL == "English") {
windowMAKEfunc(false, false, true, "Quiting?", "Are you sure you want to quit? Your game will not be saved! Save it before or all data will be lost.", "quitGAMEw");
}
Bexitfunc = false;
menubas.Bexit.gotoAndPlay(3);
if (buildingomg) {
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
game.game.pointeur2._visible = false;
}
}
if (Bbuildfunc) {
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
_root.stopCIBLE1();
Bbuildfunc = false;
_root.pausedejeuner = true;
joblochtouneaa = false;
menubas.Bbuild.gotoAndPlay(3);
if (buildingomg != true) {
buildWINfunc();
} else {
buildWINfunc();
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
game.game.pointeur2._visible = false;
}
}
if (Bsavefunc) {
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
_root.pausedejeuner = true;
joblochtouneaa = false;
menubas.Bsave.gotoAndStop(2);
if (buildingomg != true) {
_root.stopCIBLE1();
if (_root.languageL == "Fran\u00E7ais") {
windowMAKEfunc(false, false, true, "Sauvegarde...", "\u00CAtes-vous certain de vouloir sauvegarder, votre sauvegarde pr\u00E9c\u00E9dente sera \u00E9cras\u00E9.", "savingGAMEw");
}
if (_root.languageL == "English") {
windowMAKEfunc(false, false, true, "Saving...", "Are you sure you want to SAVE, your previous game data will be delete.", "savingGAMEw");
}
} else {
_root.stopCIBLE1();
if (_root.languageL == "Fran\u00E7ais") {
windowMAKEfunc(false, false, true, "Sauvegarde...", "\u00CAtes-vous certain de vouloir sauvegarder, votre sauvegarde pr\u00E9c\u00E9dente sera \u00E9cras\u00E9.", "savingGAMEw");
}
if (_root.languageL == "English") {
windowMAKEfunc(false, false, true, "Saving...", "Are you sure you want to SAVE, your previous game data will be delete.", "savingGAMEw");
}
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
game.game.pointeur2._visible = false;
}
_root.cible1TOUCH = false;
_root.stopCIBLE1();
Bsavefunc = false;
menubas.Bsave.gotoAndPlay(3);
}
if (Bciblefunc) {
if (cible1TOUCH) {
menubas.Bcible.gotoAndStop(2);
_root.cible1TOUCH = false;
_root.stopCIBLE1();
_root.pogneOBJECT = true;
} else {
_root.cible1TOUCH = true;
menubas.Bcible.gotoAndStop(2);
cibleFUNC();
shitbuild1();
_root.buildingomg = false;
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
}
Bciblefunc = false;
menubas.Bcible.gotoAndPlay(3);
}
};
}
function cibleFUNC() {
_root.attachMovie("cible1", "cible1", 9999567);
_root.cible1TOUCH = true;
_root.cible1.onEnterFrame = function () {
if (MOUSEpress) {
if (oksCib != true) {
oksCib = true;
_root.game.game._x = _root.game.game._x + (200 - _root._xmouse);
_root.game.game._y = _root.game.game._y + (150 - _root._ymouse);
if (Grotationf == 0) {
if (_root.game.game._x >= 155) {
_root.game.game._x = 155;
}
if (_root.game.game._x <= -200) {
_root.game.game._x = -200;
}
if (_root.game.game._y >= -25) {
_root.game.game._y = -25;
}
if (_root.game.game._y <= -200) {
_root.game.game._y = -200;
}
}
if (Grotationf == 90) {
if (_root.game.game._x >= 350) {
_root.game.game._x = 350;
}
if (_root.game.game._x <= 0) {
_root.game.game._x = 0;
}
if (_root.game.game._y >= 55) {
_root.game.game._y = 55;
}
if (_root.game.game._y <= -125) {
_root.game.game._y = -125;
}
}
if (Grotationf == 180) {
if (_root.game.game._x >= 180) {
_root.game.game._x = 180;
}
if (_root.game.game._x <= -165) {
_root.game.game._x = -165;
}
if (_root.game.game._y >= 155) {
_root.game.game._y = 155;
}
if (_root.game.game._y <= 0) {
_root.game.game._y = 0;
}
}
if (Grotationf == 270) {
if (_root.game.game._x >= -20) {
_root.game.game._x = -20;
}
if (_root.game.game._x <= -350) {
_root.game.game._x = -350;
}
if (_root.game.game._y >= 75) {
_root.game.game._y = 75;
}
if (_root.game.game._y <= -100) {
_root.game.game._y = -100;
}
}
}
} else {
oksCib = false;
}
_root.cible1._x = (_root._xmouse - _root.cible1._width) + 13;
_root.cible1._y = (_root._ymouse - _root.cible1._height) + 13;
};
}
function stopCIBLE1() {
delete _root.cible1.onEnterFrame;
_root.cible1.removeMovieClip();
_root.cible1._visible = false;
_root.cible1TOUCH = false;
}
function removeALLgame() {
savex2 = 1;
while (savex2 <= _root.gridlx) {
savey2 = 1;
while (savey2 <= _root.gridly) {
delete _root[(("paintX" + savex2) + "Y") + savey2];
delete _root[((("paintX" + savex2) + "Y") + savey2) + "T"];
delete _root[((((("BUILDpaintWX" + savex2) + "Y") + savey2) + "P") + 1) + "N"];
delete _root[((((("BUILDpaintWX" + savex2) + "Y") + savey2) + "P") + 1) + "T"];
delete _root[((((("BUILDpaintWX" + savex2) + "Y") + savey2) + "P") + 1) + "L"];
delete _root[((((("BUILDpaintWX" + savex2) + "Y") + savey2) + "P") + 1) + "P"];
delete _root[((((("BUILDpaintWX" + savex2) + "Y") + savey2) + "P") + 2) + "N"];
delete _root[((((("BUILDpaintWX" + savex2) + "Y") + savey2) + "P") + 2) + "T"];
delete _root[((((("BUILDpaintWX" + savex2) + "Y") + savey2) + "P") + 2) + "L"];
delete _root[((((("BUILDpaintWX" + savex2) + "Y") + savey2) + "P") + 2) + "P"];
savey2++;
}
savex2++;
}
game.game.removeMovieClip();
game.removeMovieClip();
_root.XYshow.removeMovieClip();
i = 1;
while (i < (_root.nbMCfunc + 1)) {
_root[_root["MCfunc" + i]].removeMovieClip();
i++;
}
_root.fleched.removeMovieClip();
_root.flecheg.removeMovieClip();
_root.flecheb.removeMovieClip();
_root.flecheh.removeMovieClip();
_root.menubas.Bzoomp.removeMovieClip();
_root.menubas.Bzoomm.removeMovieClip();
_root.menubas.removeMovieClip();
_root.checkGrid.removeTextField();
i = 1;
while (i < (_root.nbMCfunc + 1)) {
delete _root["MCfunc" + i];
i++;
}
i = 1;
while (i <= nbBUILDobject) {
delete _root["BUILDobject" + i];
delete _root["BUILDobjectAL" + i];
delete _root["BUILDobjectP" + i];
delete _root["BUILDobjectPAL" + i];
delete _root["BUILDobjectT" + i];
delete _root["BUILDobjectX" + i];
delete _root["BUILDobjectXAL" + i];
delete _root["BUILDobjectY" + i];
delete _root["BUILDobjectYAL" + i];
delete _root["trouble" + i];
i++;
}
i = 1;
while (i <= nbBUILDobject2) {
delete _root["BUILDobject2N" + i];
delete _root["BUILDobject2L" + i];
delete _root["BUILDobject2P" + i];
delete _root["BUILDobject2T" + i];
delete _root["BUILDobject2X" + i];
delete _root["BUILDobject2Y" + i];
i++;
}
delete onEnterFrame;
delete _root.funcHELPpogneOBJ.onEnterFrame;
p = 1000;
nbMCfunc = 0;
_root.Grotationf = 0;
delete checkXYgrid;
delete gridlx;
delete gridly;
delete i;
delete rem;
delete x;
delete xlimit;
delete y;
delete ylimit;
delete zoomMfunc;
delete zoomPfunc;
nbBUILDobject = 0;
nbBUILDobjectAL = 0;
}
function gameSTARTFunc() {
music.stop();
_root.numCARC = 0;
_root.puMUR = false;
_root.Grotationf = 0;
_root.argentPLUS = 0;
_root.paintNUM = 0;
keyCODEwoot();
priceBUILD();
listePRIX();
_root.pogneOBJECT = true;
nbBUILDobjectAL = 0;
nbBUILDobject = 0;
nbBUILDobject2 = 0;
sombrero = 0;
nbBuI = 0;
buildingomg = false;
_root.currentMONEY = 12000;
_root.dateAUJOUR = new Date();
_root.currentYEAR = _root.dateAUJOUR.getFullYear() - 2000;
_root.currentMONTH = _root.dateAUJOUR.getMonth() + 1;
_root.currentDAY = _root.dateAUJOUR.getDate();
setGame();
PutBACKH("1", 36, 109.8, -236, -32.2, 170, 263.8);
activePlusKEYF();
menub();
_root.gridlx = 33;
_root.gridly = 24;
if (_root.loadingA) {
SharedOBJsbp = SharedObject.getLocal("Build_a_Bank");
_root.currentMONEY = SharedOBJsbp.data.currentMONEY;
_root.currentYEAR = SharedOBJsbp.data.currentYEAR;
_root.currentMONTH = SharedOBJsbp.data.currentMONTH;
_root.currentDAY = SharedOBJsbp.data.currentDAY;
nbBUILDobject = SharedOBJsbp.data.nbBUILDobject;
nbBUILDobject2 = SharedOBJsbp.data.nbBUILDobject2;
nbBUILDpaintW = SharedOBJsbp.data.nbBUILDpaintW;
_root.paintNUM = SharedOBJsbp.data.paintNUM;
i = 1;
while (i < SharedOBJsbp.data.nbBUILDobject) {
_root["BUILDobject" + i] = SharedOBJsbp.data["BUILDobject" + i];
_root["BUILDobjectAL" + i] = SharedOBJsbp.data["BUILDobjectAL" + i];
_root["BUILDobjectP" + i] = SharedOBJsbp.data["BUILDobjectP" + i];
_root["BUILDobjectPAL" + i] = SharedOBJsbp.data["BUILDobjectPAL" + i];
_root["BUILDobjectT" + i] = SharedOBJsbp.data["BUILDobjectT" + i];
_root["BUILDobjectX" + i] = SharedOBJsbp.data["BUILDobjectX" + i];
_root["BUILDobjectXAL" + i] = SharedOBJsbp.data["BUILDobjectXAL" + i];
_root["BUILDobjectY" + i] = SharedOBJsbp.data["BUILDobjectY" + i];
_root["BUILDobjectYAL" + i] = SharedOBJsbp.data["BUILDobjectYAL" + i];
_root["trouble" + i] = SharedOBJsbp.data["trouble" + i];
i++;
}
i = 1;
while (i <= SharedOBJsbp.data.nbBUILDobject2) {
_root["BUILDobject2N" + i] = SharedOBJsbp.data["BUILDobject2N" + i];
_root["BUILDobject2L" + i] = SharedOBJsbp.data["BUILDobject2L" + i];
_root["BUILDobject2P" + i] = SharedOBJsbp.data["BUILDobject2P" + i];
_root["BUILDobject2T" + i] = SharedOBJsbp.data["BUILDobject2T" + i];
_root["BUILDobject2X" + i] = SharedOBJsbp.data["BUILDobject2X" + i];
_root["BUILDobject2Y" + i] = SharedOBJsbp.data["BUILDobject2Y" + i];
i++;
}
i = 1;
while (i <= SharedOBJsbp.data.paintNUM) {
_root[("BUILDpaintW" + i) + "N"] = SharedOBJsbp.data[("BUILDpaintW" + i) + "N"];
_root[("BUILDpaintW" + i) + "T"] = SharedOBJsbp.data[("BUILDpaintW" + i) + "T"];
_root[("BUILDpaintW" + i) + "L"] = SharedOBJsbp.data[("BUILDpaintW" + i) + "L"];
_root[("BUILDpaintW" + i) + "P"] = SharedOBJsbp.data[("BUILDpaintW" + i) + "P"];
_root[("BUILDpaintW" + i) + "X"] = SharedOBJsbp.data[("BUILDpaintW" + i) + "X"];
_root[("BUILDpaintW" + i) + "Y"] = SharedOBJsbp.data[("BUILDpaintW" + i) + "Y"];
i++;
}
savex2 = 1;
while (savex2 <= _root.gridlx) {
savey2 = 1;
while (savey2 <= _root.gridly) {
_root[(("paintX" + savex2) + "Y") + savey2] = SharedOBJsbp.data[(("paintX" + savex2) + "Y") + savey2];
_root[((("paintX" + savex2) + "Y") + savey2) + "T"] = SharedOBJsbp.data[((("paintX" + savex2) + "Y") + savey2) + "T"];
savey2++;
}
savex2++;
}
}
setGrid(_root.gridlx, _root.gridly);
if (_root.loadingA) {
rotateGAMErefresh(SharedOBJsbp.data.ROT);
_root.loadingA = false;
}
AutoRANDOM();
pogneOBJdel();
putCARC(15, 10);
_root.pausedejeuner = false;
plusKEY((key1 = 107), (key2 = undefined), (key3 = undefined), (key4 = undefined), (key5 = undefined), (key6 = undefined), (key7 = undefined), (key8 = undefined), (ide = "zoomPfunc"));
plusKEY((key1 = 109), (key2 = undefined), (key3 = undefined), (key4 = undefined), (key5 = undefined), (key6 = undefined), (key7 = undefined), (key8 = undefined), (ide = "zoomMfunc"));
plusKEY((key1 = 81), (key2 = undefined), (key3 = undefined), (key4 = undefined), (key5 = undefined), (key6 = undefined), (key7 = undefined), (key8 = undefined), (ide = "Bexitfunc"));
plusKEY((key1 = 66), (key2 = undefined), (key3 = undefined), (key4 = undefined), (key5 = undefined), (key6 = undefined), (key7 = undefined), (key8 = undefined), (ide = "Bbuildfunc"));
plusKEY((key1 = 83), (key2 = undefined), (key3 = undefined), (key4 = undefined), (key5 = undefined), (key6 = undefined), (key7 = undefined), (key8 = undefined), (ide = "Bsavefunc"));
plusKEY((key1 = 67), (key2 = undefined), (key3 = undefined), (key4 = undefined), (key5 = undefined), (key6 = undefined), (key7 = undefined), (key8 = undefined), (ide = "Bciblefunc"));
plusKEY((key1 = 46), (key2 = undefined), (key3 = undefined), (key4 = undefined), (key5 = undefined), (key6 = undefined), (key7 = undefined), (key8 = undefined), (ide = "Bsupprfunc"));
music = new Sound();
iLED = 3;
music.attachSound("musicgame1");
if (_root.stopLED != true) {
music.start(0, 999999);
}
_root.musicN = "musicgame";
_root.led.textS.text = "Asain Ambience";
_root.led.textS2.text = "Asain Ambience";
_root.chansonT = "Asain Ambience by";
_root.chansonT2 = "craz";
_root.checktWEB = "http://newgrounds.com/audio/view.php?id=489825&sub=1535";
}
function readmeMLFunc() {
_root.attachMovie("mbREADME", "ReadMeML", 1);
ReadMeML._x = 200;
ReadMeML._y = 150;
_root.attachMovie("mbRetour", "retourML", 2);
retourML.useHandCursor = false;
retourML.onRelease = function () {
retourML.gotoAndStop(2);
blackscreenFunc();
DELreadmeMLFunc();
menuSTARTfunc();
};
retourML.onRollOver = function () {
retourML.gotoAndStop(2);
};
retourML.onRollOut = function () {
retourML.gotoAndStop(1);
};
retourML.onDragOut = function () {
retourML.gotoAndStop(1);
};
retourML.onPress = function () {
retourML.gotoAndStop(3);
};
ReadMeML.tut.useHandCursor = false;
ReadMeML.tut.onRelease = function () {
ReadMeML.tut.gotoAndStop(2);
};
ReadMeML.tut.onRollOver = function () {
ReadMeML.tut.gotoAndStop(2);
};
ReadMeML.tut.onRollOut = function () {
ReadMeML.tut.gotoAndStop(1);
};
ReadMeML.tut.onDragOut = function () {
ReadMeML.tut.gotoAndStop(1);
};
ReadMeML.tut.onPress = function () {
ReadMeML.tut.gotoAndStop(3);
};
retourML._x = 0;
retourML._y = 0;
}
function DELreadmeMLFunc() {
_root.ReadMeML.removeMovieClip();
_root.retourML.removeMovieClip();
}
function creditMLFunc() {
music.stop();
music = new Sound();
iLED = 1;
music.attachSound("creditm1");
if (_root.stopLED != true) {
music.start(0, 99999);
}
_root.musicN = "creditm";
_root.led.textS.text = "Teurastaja";
_root.led.textS2.text = "Teurastaja";
_root.chansonT = "Teurastaja by";
_root.chansonT2 = "Turmion K\u00E4til\u00F6t";
_root.checktWEB = "http://www.turmionkatilot.com/";
_root.attachMovie("mbCREDIT", "creditML", 1);
creditML._x = 200;
creditML._y = 150;
_root.attachMovie("mbRetour", "retourML", 2);
retourML.useHandCursor = false;
retourML.onRelease = function () {
retourML.gotoAndStop(2);
blackscreenFunc();
DELcreditMLFunc();
menuSTARTfunc();
};
retourML.onRollOver = function () {
retourML.gotoAndStop(2);
};
retourML.onRollOut = function () {
retourML.gotoAndStop(1);
};
retourML.onDragOut = function () {
retourML.gotoAndStop(1);
};
retourML.onPress = function () {
retourML.gotoAndStop(3);
};
retourML._x = 0;
retourML._y = 0;
}
function DELcreditMLFunc() {
_root.creditML.removeMovieClip();
_root.retourML.removeMovieClip();
}
function optionMLFunc() {
_root.attachMovie("mbOPTION", "optionML", 1);
_root.optionML.onEnterFrame = function () {
_root.optionML.qt1.text = _root._quality;
_root.optionML.qt2.text = _root._quality;
_root.optionML.lt1.text = _root.languageL;
_root.optionML.lt2.text = _root.languageL;
};
optionML._x = 200;
optionML._y = 150;
_root.attachMovie("mbRetour", "retourML", 2);
retourML.useHandCursor = false;
retourML.onRelease = function () {
retourML.gotoAndStop(2);
blackscreenFunc();
DELoptionMLFunc();
menuSTARTfunc();
};
retourML.onRollOver = function () {
retourML.gotoAndStop(2);
};
retourML.onRollOut = function () {
retourML.gotoAndStop(1);
};
retourML.onDragOut = function () {
retourML.gotoAndStop(1);
};
retourML.onPress = function () {
retourML.gotoAndStop(3);
};
optionML.fq1.useHandCursor = false;
optionML.fq1.onRelease = function () {
optionML.fq1.gotoAndStop(2);
if (ohNONq != true) {
if (_root._quality == "LOW") {
_root._quality = "HIGH";
ohNONq = true;
}
}
if (ohNONq != true) {
if (_root._quality == "MEDIUM") {
_root._quality = "LOW";
ohNONq = true;
}
}
if (ohNONq != true) {
if (_root._quality == "HIGH") {
_root._quality = "MEDIUM";
ohNONq = true;
}
}
ohNONq = false;
};
optionML.fq1.onRollOver = function () {
optionML.fq1.gotoAndStop(2);
};
optionML.fq1.onRollOut = function () {
optionML.fq1.gotoAndStop(1);
};
optionML.fq1.onDragOut = function () {
optionML.fq1.gotoAndStop(1);
};
optionML.fq1.onPress = function () {
optionML.fq1.gotoAndStop(3);
};
optionML.fq2.useHandCursor = false;
optionML.fq2.onRelease = function () {
optionML.fq2.gotoAndStop(2);
if (ohNONq != true) {
if (_root._quality == "LOW") {
_root._quality = "MEDIUM";
ohNONq = true;
}
}
if (ohNONq != true) {
if (_root._quality == "MEDIUM") {
_root._quality = "HIGH";
ohNONq = true;
}
}
if (ohNONq != true) {
if (_root._quality == "HIGH") {
_root._quality = "LOW";
ohNONq = true;
}
}
ohNONq = false;
};
optionML.fq2.onRollOver = function () {
optionML.fq2.gotoAndStop(2);
};
optionML.fq2.onRollOut = function () {
optionML.fq2.gotoAndStop(1);
};
optionML.fq2.onDragOut = function () {
optionML.fq2.gotoAndStop(1);
};
optionML.fq2.onPress = function () {
optionML.fq2.gotoAndStop(3);
};
retourML._x = 0;
retourML._y = 0;
optionML.fl1.useHandCursor = false;
optionML.fl1.onRelease = function () {
optionML.fl1.gotoAndStop(2);
if (ohNONl != true) {
if (_root.languageL == "English") {
_root.languageL = "Fran\u00E7ais";
ohNONl = true;
}
}
if (ohNONl != true) {
if (_root.languageL == "Fran\u00E7ais") {
_root.languageL = "English";
ohNONl = true;
}
}
ohNONl = false;
};
optionML.fl1.onRollOver = function () {
optionML.fl1.gotoAndStop(2);
};
optionML.fl1.onRollOut = function () {
optionML.fl1.gotoAndStop(1);
};
optionML.fl1.onDragOut = function () {
optionML.fl1.gotoAndStop(1);
};
optionML.fl1.onPress = function () {
optionML.fl1.gotoAndStop(3);
};
optionML.fl2.useHandCursor = false;
optionML.fl2.onRelease = function () {
optionML.fl2.gotoAndStop(2);
if (ohNONl != true) {
if (_root.languageL == "English") {
_root.languageL = "Fran\u00E7ais";
ohNONl = true;
}
}
if (ohNONl != true) {
if (_root.languageL == "Fran\u00E7ais") {
_root.languageL = "English";
ohNONl = true;
}
}
ohNONl = false;
};
optionML.fl2.onRollOver = function () {
optionML.fl2.gotoAndStop(2);
};
optionML.fl2.onRollOut = function () {
optionML.fl2.gotoAndStop(1);
};
optionML.fl2.onDragOut = function () {
optionML.fl2.gotoAndStop(1);
};
optionML.fl2.onPress = function () {
optionML.fl2.gotoAndStop(3);
};
}
function DELoptionMLFunc() {
_root.optionML.removeMovieClip();
_root.retourML.removeMovieClip();
}
function blackscreenFunc() {
_root.attachMovie("blackscreen", "blackscreen", 99998);
blackscreen._alpha = 100;
blackscreen.onEnterFrame = function () {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
}
function MENULbouton() {
iLED = 2;
music.stop();
music = new Sound();
music.attachSound("musicmenu1");
if (_root.stopLED != true) {
music.start(0, 999999);
}
_root.musicN = "musicmenu";
_root.led.textS.text = "Through the N...";
_root.led.textS2.text = "Through the N...";
_root.chansonT = "Through the Night by";
_root.chansonT2 = "mattcalpo";
_root.checktWEB = "http://www.calpoly.edu/~mghanson/flash/spacegrid.html";
_root.attachMovie("screen1", "screen1", 0);
_root.screen1._x = -81;
_root.screen1._y = -124;
_root.screen1._alpha = 45;
_root.attachMovie("logo", "logo", 567);
_root.logo._x = 2;
_root.logo._y = 245;
difBML = -50;
BOUTONhelpF("_root", "boutonML1", "boutonML", 1, 200, 104 - difBML);
boutonML1.name.text = "START";
boutonML1.name.selectable = false;
boutonML1.onRelease = function () {
boutonML1.gotoAndStop(2);
blackscreenFunc();
deleteALLmenuL();
gameSTARTFunc();
};
boutonML1.onPress = function () {
boutonML1.gotoAndStop(3);
};
BOUTONhelpF("_root", "boutonML2", "boutonML", 2, 200, 127 - difBML);
boutonML2.name.text = "LOAD";
boutonML2.name.selectable = false;
boutonML2.onRelease = function () {
boutonML2.gotoAndStop(2);
SharedOBJsbp = SharedObject.getLocal("Build_a_Bank");
if (SharedOBJsbp.data.OK) {
blackscreenFunc();
deleteALLmenuL();
_root.loadingA = true;
gameSTARTFunc();
} else {
if (_root.languageL == "Fran\u00E7ais") {
windowMAKEfunc(true, false, false, "Probl\u00E8me!", "Impossible d'acqu\u00E9rir la donn\u00E9...", "NOTHINGAGSFA");
}
if (_root.languageL == "English") {
windowMAKEfunc(true, false, false, "Problem!", "Unable to get game data...", "NOTHINGAGSFA");
}
}
};
boutonML2.onPress = function () {
boutonML2.gotoAndStop(3);
};
BOUTONhelpF("_root", "boutonML3", "boutonML", 3, 200, 150 - difBML);
boutonML3.name.text = "INSTRUCTION";
boutonML3.name.selectable = false;
boutonML3.onRelease = function () {
boutonML3.gotoAndStop(2);
blackscreenFunc();
deleteALLmenuL();
readmeMLFunc();
};
boutonML3.onPress = function () {
boutonML3.gotoAndStop(3);
};
BOUTONhelpF("_root", "boutonML4", "boutonML", 4, 200, 173 - difBML);
boutonML4.name.text = "OPTION";
boutonML4.name.selectable = false;
boutonML4.onRelease = function () {
boutonML4.gotoAndStop(2);
blackscreenFunc();
deleteALLmenuL();
optionMLFunc();
};
boutonML4.onPress = function () {
boutonML4.gotoAndStop(3);
};
BOUTONhelpF("_root", "boutonML5", "boutonML", 5, 200, 196 - difBML);
boutonML5.name.text = "CREDIT";
boutonML5.name.selectable = false;
boutonML5.onRelease = function () {
boutonML5.gotoAndStop(2);
blackscreenFunc();
deleteALLmenuL();
creditMLFunc();
};
boutonML5.onPress = function () {
boutonML5.gotoAndStop(3);
};
}
function deleteALLmenuL() {
_root.logo.removeMovieClip();
_root.screen1.removeMovieClip();
_root.boutonML1.removeMovieClip();
_root.boutonML2.removeMovieClip();
_root.boutonML3.removeMovieClip();
_root.boutonML4.removeMovieClip();
_root.boutonML5.removeMovieClip();
delete difBML;
}
function menuSTARTfunc() {
MENULbouton();
}
function musicNAME() {
_root.musicTY1 = "creditm1";
_root.musicN1 = "creditm";
_root.musicT1 = "Silent";
_root.chansonAAT1 = "Silent by";
_root.chanson1T2 = "CLOCK DAY 2006";
_root.checktWEB1 = "CLOCK DAY 2006";
_root.musicTY2 = "musicmenu1";
_root.musicN2 = "musicmenu";
_root.musicT2 = "Through the N...";
_root.chansonAAT2 = "Through the Night by";
_root.chanson2T2 = "mattcalpo";
_root.checktWEB2 = "http://www.calpoly.edu/~mghanson/flash/spacegrid.html";
_root.musicTY3 = "musicgame1";
_root.musicN3 = "musicgame";
_root.musicT3 = "Asain Ambience";
_root.chansonAAT3 = "Asain Ambience by";
_root.chanson3T2 = "craz";
_root.checktWEB3 = "http://newgrounds.com/audio/view.php?id=489825&sub=1535";
maxLED = 3;
}
function nextLED(cA) {
_root.iLED = _root.iLED + cA;
if (iLED <= 0) {
iLED = 3;
}
if (iLED >= (maxLED + 1)) {
iLED = 1;
}
music.stop();
music = new Sound();
music.attachSound(_root["musicTY" + iLED]);
if (_root.stopLED != true) {
music.start(0, 99999);
}
_root.musicN = _root["musicN" + iLED];
_root.led.textS.text = _root["musicT" + iLED];
_root.led.textS2.text = _root["musicT" + iLED];
_root.chansonT = _root["chansonAAT" + iLED];
_root.chansonT2 = _root[("chanson" + iLED) + "T2"];
_root.checktWEB = _root["checktWEB" + iLED];
}
function LEDf() {
_root.attachMovie("led", "led", 99868);
_root.led._x = 308;
_root.led._y = 23;
_root.led._alpha = 75;
_root.led.checkt.useHandCursor = false;
_root.led.checkt.onRollOver = function () {
_root.led.textS2.textColor = 10066329 /* 0x999999 */;
_root.led.attachMovie("checkT", "checktt", 1);
_root.led.checktt._visible = false;
_root.led.checktt.onEnterFrame = function () {
_root.led.checktt._visible = true;
_root.led.checktt._x = _root.led._xmouse - _root.led.checktt._width;
_root.led.checktt._y = _root.led._ymouse - _root.led.checktt._height;
};
_root.led.checktt._alpha = 75;
_root.led.checktt.mon.text = _root.chansonT;
_root.led.checktt.mon2.text = _root.chansonT2;
};
_root.led.checkt.onRelease = function () {
getURL (_root.checktWEB, "_blank");
_root.led.textS2.textColor = 6710886 /* 0x666666 */;
};
_root.led.checkt.onRollOut = function () {
_root.led.checktt._visible = false;
delete _root.led.checktt.onEnterFrame;
_root.led.textS2.textColor = 16777215 /* 0xFFFFFF */;
};
_root.led.checkt.onDragOut = function () {
_root.led.checktt._visible = false;
delete _root.led.checktt.onEnterFrame;
_root.led.textS2.textColor = 16777215 /* 0xFFFFFF */;
};
boutonLEDhelp("preS");
_root.led.preS.onRelease = function () {
this.gotoAndStop(1);
nextLED(-1);
boutonAVh1();
};
boutonLEDhelp("nextS");
_root.led.nextS.onRelease = function () {
this.gotoAndStop(1);
nextLED(1);
boutonAVh1();
};
boutonLEDhelp("playS");
_root.led.playS.onRelease = function () {
this.gotoAndStop(1);
_root.music.start(0, 99999);
_root.stopLED = false;
boutonAVh1();
};
boutonLEDhelp("stopS");
_root.led.stopS.onRelease = function () {
this.gotoAndStop(1);
music.stop();
_root.stopLED = true;
boutonAVh1();
};
_root.led.pogne.useHandCursor = false;
_root.led.pogne.onPress = function () {
startDrag (this._parent);
};
_root.led.pogne.onRelease = function () {
stopDrag();
};
}
function boutonAVh1() {
if (_root.holyFcible) {
cibleFUNC();
_root.holyFcible = false;
} else {
_root.holyFcible = false;
_root.pogneOBJECT = true;
}
if (holyFbuild1) {
if (_root.buildingKOKO2) {
if (_root.checkCFLOOR == "floor") {
_root.build2(_root.currentTYPEw, _root.currentDOLLARw, "floor");
} else if (_root.checkCFLOOR == "wall") {
_root.build2(_root.currentTYPEw, _root.currentDOLLARw, "wall");
} else {
_root.build2(_root.currentTYPEw, _root.currentDOLLARw);
}
enlevePOGNE();
} else {
_root.build1(_root.currentTYPEw, _root.currentDOLLARw);
if (_root.pogneOBJECT2) {
remetpogneOBJdel();
} else {
enlevePOGNE();
}
}
holyFbuild1 = false;
}
}
function boutonLEDhelp(nomLEDs) {
_root.led[nomLEDs].useHandCursor = false;
_root.led[nomLEDs].onPress = function () {
this.gotoAndStop(3);
enlevePOGNE();
if (cible1TOUCH) {
_root.stopCIBLE1();
_root.holyFcible = true;
}
if (_root.buildingomg) {
_root.holyFbuild1 = true;
_root.buildingomg = false;
shitbuild1();
delete game.game.murdup.onEnterFrame;
game.game.murdup._visible = false;
}
};
_root.led[nomLEDs].onRollOver = function () {
this.gotoAndStop(2);
};
_root.led[nomLEDs].onDragOut = function () {
this.gotoAndStop(1);
};
_root.led[nomLEDs].onRollOut = function () {
this.gotoAndStop(1);
};
}
stop();
_quality = "MEDIUM";
stopAllSounds();
buildMousePRESS = new Object();
buildMousePRESS.onMouseDown = function () {
if (_root.crocDOWN != true) {
MOUSEpress = true;
}
};
buildMousePRESS.onMouseUp = function () {
MOUSEpress = false;
if (_root.crocDOWN) {
_root.crocDOWN = false;
}
};
Mouse.addListener(buildMousePRESS);
nbBUILDobject = 0;
nbBUILDobject2 = 0;
p = 1000;
nbMCfunc = 0;
contour();
_root.Grotationf = 0;
autoI = 0;
numANIM = 0;
musicNAME();
_root.activePlusWINDOWSF();
LEDf();
_root.menuSTARTfunc();
_root.languageL = "English";
Symbol 24 MovieClip Frame 1
stop();
Instance of Symbol 15 MovieClip in Symbol 41 MovieClip [logo] Frame 1
onClipEvent (load) {
if (_root._currentframe == 3) {
this.gotoAndStop(85);
}
}
Instance of Symbol 24 MovieClip in Symbol 41 MovieClip [logo] Frame 1
onClipEvent (load) {
this.useHandCursor = false;
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onDragOut = function () {
this.gotoAndStop(1);
};
this.onPress = function () {
this.gotoAndStop(3);
};
this.onRelease = function () {
this.gotoAndStop(2);
getURL ("http://www.newgrounds.com/", "_blank");
};
}
Instance of Symbol 43 MovieClip in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
anc = this._width;
}
onClipEvent (enterFrame) {
if (chada != true) {
_parent.bite.text = ((Math.round(_root.getBytesLoaded() / 1024) + " ko / ") + Math.round(_root.getBytesTotal() / 1024)) + " ko";
_parent.bite2.text = _parent.bite.text;
_root.pourc = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
this._xscale = _root.pourc;
if (this._xscale >= 6) {
_parent.te._x = this._x + (_root.pourc * (anc / 100));
_parent.te.te.text = Math.round(_root.pourc) + " %";
}
if (_root.pourc == 100) {
chada = true;
_root.activePlusWINDOWSF();
_root.menuSTARTfunc();
_parent._visible = false;
delete this.onEnterFrame;
_root.gotoAndStop(3);
}
}
}
Symbol 72 MovieClip Frame 1
stop();
Instance of Symbol 70 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.arena == "Fuked up") {
tellTarget ("_parent") {
gotoAndPlay ("f");
};
}
if (_root.arena == "Stupid 1") {
tellTarget ("_parent") {
gotoAndPlay ("s1");
};
}
}
Symbol 78 MovieClip Frame 1
stop();
Instance of Symbol 73 MovieClip in Symbol 78 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.arena == "Fuked up") {
tellTarget ("_parent") {
gotoAndPlay ("f");
};
}
if (_root.arena == "Stupid 1") {
tellTarget ("_parent") {
gotoAndPlay ("s1");
};
}
}
Symbol 78 MovieClip Frame 2
stop();
Instance of Symbol 75 MovieClip in Symbol 78 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.arena == "Stupid 1") {
tellTarget ("_parent") {
gotoAndPlay ("s1");
};
}
}
Symbol 78 MovieClip Frame 3
stop();
Instance of Symbol 77 MovieClip in Symbol 78 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.arena == "Fuked up") {
tellTarget ("_parent") {
gotoAndPlay ("f");
};
}
}
Symbol 121 MovieClip [wall-1f1] Frame 1
stop();
Symbol 124 MovieClip [wall-1f3] Frame 1
stop();
Symbol 131 MovieClip [barbed-1B] Frame 1
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 2
mover = new Sound();
mover.attachSound("bOVERm");
mover.start(0, 0);
Symbol 146 MovieClip Frame 2
mover = new Sound();
mover.attachSound("bOVERm2");
mover.start(0, 0);
Symbol 146 MovieClip Frame 3
mover = new Sound();
mover.attachSound("bPRESSm");
mover.start(0, 0);
Symbol 151 MovieClip Frame 1
stop();
Instance of Symbol 141 MovieClip "b1" in Symbol 152 MovieClip [buildWIN] Frame 1
onClipEvent (load) {
name.text = "Wall";
}
Instance of Symbol 141 MovieClip "b2" in Symbol 152 MovieClip [buildWIN] Frame 1
onClipEvent (load) {
name.text = "Object";
}
Instance of Symbol 141 MovieClip "b3" in Symbol 152 MovieClip [buildWIN] Frame 1
onClipEvent (load) {
name.text = "Scenery";
}
Instance of Symbol 141 MovieClip "b4" in Symbol 152 MovieClip [buildWIN] Frame 1
onClipEvent (load) {
name.text = "Misc";
}
Symbol 158 MovieClip [mbbuild] Frame 1
stop();
Symbol 158 MovieClip [mbbuild] Frame 2
mover = new Sound();
mover.attachSound("bOVERm3");
mover.start(0, 0);
Symbol 158 MovieClip [mbbuild] Frame 3
mover = new Sound();
mover.attachSound("bPRESSm2");
mover.start(0, 0);
Symbol 162 MovieClip [mbexit] Frame 1
stop();
Symbol 162 MovieClip [mbexit] Frame 2
mover = new Sound();
mover.attachSound("bOVERm3");
mover.start(0, 0);
Symbol 162 MovieClip [mbexit] Frame 3
mover = new Sound();
mover.attachSound("bPRESSm2");
mover.start(0, 0);
Symbol 167 MovieClip [mbzoomm] Frame 1
stop();
Symbol 167 MovieClip [mbzoomm] Frame 2
mover = new Sound();
mover.attachSound("bOVERm2");
mover.start(0, 0);
Symbol 167 MovieClip [mbzoomm] Frame 3
mover2 = new Sound();
mover2.attachSound("bPRESSm");
mover2.start(0, 0);
Symbol 169 MovieClip [mbturnd] Frame 1
stop();
Symbol 169 MovieClip [mbturnd] Frame 2
mover = new Sound();
mover.attachSound("bOVERm2");
mover.start(0, 0);
Symbol 169 MovieClip [mbturnd] Frame 3
mover2 = new Sound();
mover2.attachSound("bPRESSm");
mover2.start(0, 0);
Symbol 172 MovieClip [mbcible] Frame 1
stop();
Symbol 172 MovieClip [mbcible] Frame 2
mover = new Sound();
mover.attachSound("bOVERm2");
mover.start(0, 0);
Symbol 172 MovieClip [mbcible] Frame 3
mover2 = new Sound();
mover2.attachSound("bPRESSm");
mover2.start(0, 0);
Symbol 176 MovieClip [mbzoomp] Frame 1
stop();
Symbol 176 MovieClip [mbzoomp] Frame 2
mover = new Sound();
mover.attachSound("bOVERm2");
mover.start(0, 0);
Symbol 176 MovieClip [mbzoomp] Frame 3
mover2 = new Sound();
mover2.attachSound("bPRESSm");
mover2.start(0, 0);
Symbol 178 MovieClip [mbturng] Frame 1
stop();
Symbol 178 MovieClip [mbturng] Frame 2
mover = new Sound();
mover.attachSound("bOVERm2");
mover.start(0, 0);
Symbol 178 MovieClip [mbturng] Frame 3
mover2 = new Sound();
mover2.attachSound("bPRESSm");
mover2.start(0, 0);
Symbol 180 MovieClip [mbplay] Frame 1
stop();
Symbol 180 MovieClip [mbplay] Frame 2
mover = new Sound();
mover.attachSound("bOVERm2");
mover.start(0, 0);
Symbol 182 MovieClip [mbpause] Frame 1
stop();
Symbol 182 MovieClip [mbpause] Frame 2
mover = new Sound();
mover.attachSound("bOVERm2");
mover.start(0, 0);
Symbol 184 MovieClip [mbmouse] Frame 1
stop();
Symbol 184 MovieClip [mbmouse] Frame 2
mover = new Sound();
mover.attachSound("bOVERm2");
mover.start(0, 0);
Symbol 184 MovieClip [mbmouse] Frame 3
mover2 = new Sound();
mover2.attachSound("bPRESSm");
mover2.start(0, 0);
Symbol 200 MovieClip [blackscreen] Frame 1
play();
Symbol 200 MovieClip [blackscreen] Frame 2
stop();
Symbol 205 MovieClip [boutonML] Frame 1
stop();
Symbol 205 MovieClip [boutonML] Frame 2
mover = new Sound();
mover.attachSound("bOVERm");
mover.start(0, 0);
Symbol 205 MovieClip [boutonML] Frame 3
mover2 = new Sound();
mover2.attachSound("bPRESSm");
mover2.start(0, 0);
Symbol 217 MovieClip Frame 1
stop();
Symbol 223 MovieClip [mbRetour] Frame 1
stop();
Symbol 223 MovieClip [mbRetour] Frame 2
mover = new Sound();
mover.attachSound("bOVERm2");
mover.start(0, 0);
Symbol 223 MovieClip [mbRetour] Frame 3
mover = new Sound();
mover.attachSound("bPRESSm");
mover.start(0, 0);
Symbol 228 MovieClip [BwindowMK] Frame 1
stop();
Symbol 228 MovieClip [BwindowMK] Frame 2
mover = new Sound();
mover.attachSound("bOVERm2");
mover.start(0, 0);
Symbol 228 MovieClip [BwindowMK] Frame 3
mover = new Sound();
mover.attachSound("bPRESSm");
mover.start(0, 0);
Instance of Symbol 249 MovieClip in Symbol 250 MovieClip [mbCREDIT] Frame 1
onClipEvent (load) {
alaY = this._y;
}
onClipEvent (enterFrame) {
this._y = this._y - 1;
if (this._y < (alaY - (this._height * 1.4))) {
this._y = alaY;
}
}
Symbol 257 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 2
mover = new Sound();
mover.attachSound("bOVERm3");
mover.start(0, 0);
Symbol 257 MovieClip Frame 3
mover = new Sound();
mover.attachSound("bPRESSm");
mover.start(0, 0);
Instance of Symbol 272 MovieClip in Symbol 273 MovieClip [auto1-1] Frame 1
onClipEvent (enterFrame) {
if (_root.pausedejeuner) {
stop();
} else {
play();
}
}
Instance of Symbol 272 MovieClip in Symbol 280 MovieClip [auto1-2] Frame 1
onClipEvent (enterFrame) {
if (_root.pausedejeuner) {
stop();
} else {
play();
}
}
Instance of Symbol 272 MovieClip in Symbol 310 MovieClip [auto1-3] Frame 1
onClipEvent (enterFrame) {
if (_root.pausedejeuner) {
stop();
} else {
play();
}
}
Instance of Symbol 272 MovieClip in Symbol 313 MovieClip [auto1-4] Frame 1
onClipEvent (enterFrame) {
if (_root.pausedejeuner) {
stop();
} else {
play();
}
}
Instance of Symbol 272 MovieClip in Symbol 316 MovieClip [auto2-1] Frame 1
onClipEvent (enterFrame) {
if (_root.pausedejeuner) {
stop();
} else {
play();
}
}
Instance of Symbol 272 MovieClip in Symbol 319 MovieClip [auto3-1] Frame 1
onClipEvent (enterFrame) {
if (_root.pausedejeuner) {
stop();
} else {
play();
}
}
Instance of Symbol 272 MovieClip in Symbol 322 MovieClip [auto4-1] Frame 1
onClipEvent (enterFrame) {
if (_root.pausedejeuner) {
stop();
} else {
play();
}
}
Instance of Symbol 272 MovieClip in Symbol 325 MovieClip [auto2-2] Frame 1
onClipEvent (enterFrame) {
if (_root.pausedejeuner) {
stop();
} else {
play();
}
}
Instance of Symbol 272 MovieClip in Symbol 328 MovieClip [auto3-2] Frame 1
onClipEvent (enterFrame) {
if (_root.pausedejeuner) {
stop();
} else {
play();
}
}
Instance of Symbol 272 MovieClip in Symbol 331 MovieClip [auto4-2] Frame 1
onClipEvent (enterFrame) {
if (_root.pausedejeuner) {
stop();
} else {
play();
}
}
Instance of Symbol 272 MovieClip in Symbol 334 MovieClip [auto2-3] Frame 1
onClipEvent (enterFrame) {
if (_root.pausedejeuner) {
stop();
} else {
play();
}
}
Instance of Symbol 272 MovieClip in Symbol 337 MovieClip [auto3-3] Frame 1
onClipEvent (enterFrame) {
if (_root.pausedejeuner) {
stop();
} else {
play();
}
}
Instance of Symbol 272 MovieClip in Symbol 340 MovieClip [auto4-3] Frame 1
onClipEvent (enterFrame) {
if (_root.pausedejeuner) {
stop();
} else {
play();
}
}
Instance of Symbol 272 MovieClip in Symbol 343 MovieClip [auto2-4] Frame 1
onClipEvent (enterFrame) {
if (_root.pausedejeuner) {
stop();
} else {
play();
}
}
Instance of Symbol 272 MovieClip in Symbol 346 MovieClip [auto3-4] Frame 1
onClipEvent (enterFrame) {
if (_root.pausedejeuner) {
stop();
} else {
play();
}
}
Instance of Symbol 272 MovieClip in Symbol 349 MovieClip [auto4-4] Frame 1
onClipEvent (enterFrame) {
if (_root.pausedejeuner) {
stop();
} else {
play();
}
}
Symbol 356 MovieClip [mbsave] Frame 1
stop();
Symbol 356 MovieClip [mbsave] Frame 2
mover = new Sound();
mover.attachSound("bOVERm3");
mover.start(0, 0);
Symbol 356 MovieClip [mbsave] Frame 3
mover = new Sound();
mover.attachSound("bPRESSm2");
mover.start(0, 0);
Instance of Symbol 272 MovieClip in Symbol 359 MovieClip [auto5-4] Frame 1
onClipEvent (enterFrame) {
if (_root.pausedejeuner) {
stop();
} else {
play();
}
}
Instance of Symbol 272 MovieClip in Symbol 362 MovieClip [auto5-3] Frame 1
onClipEvent (enterFrame) {
if (_root.pausedejeuner) {
stop();
} else {
play();
}
}
Instance of Symbol 272 MovieClip in Symbol 365 MovieClip [auto5-1] Frame 1
onClipEvent (enterFrame) {
if (_root.pausedejeuner) {
stop();
} else {
play();
}
}
Instance of Symbol 272 MovieClip in Symbol 368 MovieClip [auto5-2] Frame 1
onClipEvent (enterFrame) {
if (_root.pausedejeuner) {
stop();
} else {
play();
}
}
Symbol 384 MovieClip [buttonBUILDtut] Frame 1
stop();
Symbol 384 MovieClip [buttonBUILDtut] Frame 2
mover = new Sound();
mover.attachSound("bOVERm2");
mover.start(0, 0);
Symbol 384 MovieClip [buttonBUILDtut] Frame 3
mover = new Sound();
mover.attachSound("bPRESSm2");
mover.start(0, 0);
Symbol 411 MovieClip [bouton1tut] Frame 1
stop();
Symbol 411 MovieClip [bouton1tut] Frame 2
mover = new Sound();
mover.attachSound("bOVERm3");
mover.start(0, 0);
Symbol 411 MovieClip [bouton1tut] Frame 3
mover = new Sound();
mover.attachSound("bPRESSm2");
mover.start(0, 0);
Symbol 418 MovieClip [bouton1tut2] Frame 1
stop();
Symbol 418 MovieClip [bouton1tut2] Frame 2
mover = new Sound();
mover.attachSound("bOVERm3");
mover.start(0, 0);
Symbol 418 MovieClip [bouton1tut2] Frame 3
mover = new Sound();
mover.attachSound("bPRESSm2");
mover.start(0, 0);
Symbol 422 MovieClip [mbpaint] Frame 1
stop();
Symbol 422 MovieClip [mbpaint] Frame 2
mover = new Sound();
mover.attachSound("bOVERm3");
mover.start(0, 0);
Symbol 422 MovieClip [mbpaint] Frame 3
mover = new Sound();
mover.attachSound("bPRESSm2");
mover.start(0, 0);
Symbol 426 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 2
mover = new Sound();
mover.attachSound("bOVERm3");
mover.start(0, 0);
Symbol 426 MovieClip Frame 3
mover = new Sound();
mover.attachSound("bPRESSm2");
mover.start(0, 0);
Symbol 430 MovieClip Frame 1
stop();
Symbol 430 MovieClip Frame 2
mover = new Sound();
mover.attachSound("bOVERm3");
mover.start(0, 0);
Symbol 430 MovieClip Frame 3
mover = new Sound();
mover.attachSound("bPRESSm2");
mover.start(0, 0);
Symbol 434 MovieClip Frame 1
stop();
Symbol 434 MovieClip Frame 2
mover = new Sound();
mover.attachSound("bOVERm3");
mover.start(0, 0);
Symbol 434 MovieClip Frame 3
mover = new Sound();
mover.attachSound("bPRESSm2");
mover.start(0, 0);
Symbol 478 MovieClip [murENL1] Frame 2
mover = new Sound();
mover.attachSound("bOVERm2");
mover.start(0, 0);
Symbol 478 MovieClip [murENL1] Frame 3
mover2 = new Sound();
mover2.attachSound("bPRESSm");
mover2.start(0, 0);
Symbol 483 MovieClip [murENL2] Frame 2
mover = new Sound();
mover.attachSound("bOVERm2");
mover.start(0, 0);
Symbol 483 MovieClip [murENL2] Frame 3
mover2 = new Sound();
mover2.attachSound("bPRESSm");
mover2.start(0, 0);
Instance of Symbol 491 MovieClip in Symbol 493 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.stopLED != true) {
indicator = Math.round(Math.random() * 100);
if ((indicator > 55) && (this._y > 5)) {
this._y = this._y - 10;
} else if ((indicator < 45) && (this._y < 55)) {
this._y = this._y + 10;
}
} else {
indicator = 0;
if ((indicator > 55) && (this._y > 5)) {
this._y = this._y - 10;
} else if ((indicator < 45) && (this._y < 55)) {
this._y = this._y + 10;
}
}
}
Symbol 499 MovieClip Frame 1
stop();
Symbol 499 MovieClip Frame 2
mover = new Sound();
mover.attachSound("bOVERm4");
mover.start(0, 0);
Symbol 499 MovieClip Frame 3
mover = new Sound();
mover.attachSound("bPRESSm2");
mover.start(0, 0);
Symbol 503 MovieClip Frame 1
stop();
Symbol 503 MovieClip Frame 2
mover = new Sound();
mover.attachSound("bOVERm4");
mover.start(0, 0);
Symbol 503 MovieClip Frame 3
mover = new Sound();
mover.attachSound("bPRESSm2");
mover.start(0, 0);
Symbol 508 MovieClip Frame 1
stop();
Symbol 508 MovieClip Frame 2
mover = new Sound();
mover.attachSound("bOVERm4");
mover.start(0, 0);
Symbol 508 MovieClip Frame 3
mover = new Sound();
mover.attachSound("bPRESSm2");
mover.start(0, 0);
Symbol 526 MovieClip Frame 1
Symbol 543 MovieClip [brick-1f3] Frame 1
stop();
Symbol 546 MovieClip [brick-1f1] Frame 1
stop();