Frame 1
Stage.showMenu = false;
Instance of Symbol 73 MovieClip "controleurVariable" in Frame 2
onClipEvent (load) {
this._visible = false;
urlTemp = new String(this._url);
if (urlTemp.lastIndexOf("/") == -1) {
lastCar = urlTemp.lastIndexOf("/");
} else {
lastCar = urlTemp.lastIndexOf("\\");
}
_root.path = urlTemp.substring(0, lastCar + 1);
_root.bandeRetour = "";
_root.bandeCourante = "";
_root.bandeSortie = false;
_root.bandeACacher = "";
_root.bandeComplete = false;
_root.bandeBouge = false;
_root.readyToComeBack = "";
_root.contact = false;
_root.dragEnCours = "";
_root.numero = "";
_root.noObjetSign = 0;
_root.noObjetLight = 0;
_root.noObjetMisc = 0;
_root.noObjetBackLight = 0;
_root.profondeur = 500;
_root.currentObjectX = "";
_root.currentObjectY = "";
_root.signPresent = false;
_root.lastFrontLight = 0;
_root.lastMisc = 0;
_root.lastSign = 0;
_root.lastBackLight = 0;
_root.lastBackLightLoad = 0;
_root.lastFrontLightLoad = 0;
_root.lastMiscLoad = 0;
_root.selectedObject = "";
_root.selectedType = "";
_root.color1 = "0xFF0000";
_root.color2 = "0x00FF00";
_root.color3 = "0xFFFF00";
_root.color4 = "0xFF6600";
_root.color5 = "0xFF00FF";
_root.color6 = "0x0000FF";
_root.color7 = "0xFFFFFF";
_root.activeColor = "";
_root.activePot = "";
_root.contactMisc = false;
_root.carNo = 0;
_root.carNoPrec = 0;
_root.stringLevel1 = "";
_root.senderName = "";
_root.senderMail = "";
_root.friendName = "";
_root.friendMail = "";
_root.senderState = "";
_root.senderAge = "";
_root.mouseClick = false;
_root.levelSelector = _root.path + "HouseOfMouse.swf";
}
Frame 3
function toHex(num) {
var _local3 = num;
var _local2 = "0";
var _local1 = "0";
_local2 = Math.floor(_local3 / 16);
if (_local2 eq "10") {
_local2 = "a";
} else if (_local2 eq "11") {
_local2 = "b";
} else if (_local2 eq "12") {
_local2 = "c";
} else if (_local2 eq "13") {
_local2 = "d";
} else if (_local2 eq "14") {
_local2 = "e";
} else if (_local2 eq "15") {
_local2 = "f";
}
_local1 = _local3 - (Math.floor(_local3 / 16) * 16);
if (_local1 eq "10") {
_local1 = "a";
} else if (_local1 eq "11") {
_local1 = "b";
} else if (_local1 eq "12") {
_local1 = "c";
} else if (_local1 eq "13") {
_local1 = "d";
} else if (_local1 eq "14") {
_local1 = "e";
} else if (_local1 eq "15") {
_local1 = "f";
}
var outNum = (_local2 add _local1);
return(outNum);
}
function getMod(inValue) {
return(Math.floor(inValue));
}
function getR(rIn) {
rOut = rIn * 65536;
return(rOut);
}
function getG(gIn) {
gOut = gIn * 256;
return(gOut);
}
function getB(bIn) {
bOut = bIn * 1;
return(bOut);
}
function getColour(inputR, inputG, inputB) {
tempR = getR(inputR);
tempG = getG(inputG);
tempB = getB(inputB);
colourOutput = (tempR + tempG) + tempB;
return(colourOutput);
}
function getMIN(aMIN, bMIN, cMIN) {
var _local2 = bMIN;
var _local3 = cMIN;
var _local1 = aMIN;
if (_local1 > _local2) {
_local1 = _local2;
}
if (_local1 > _local3) {
_local1 = _local3;
}
return(_local1);
}
function getMAX(aMAX, bMAX, cMAX) {
var _local2 = bMAX;
var _local3 = cMAX;
var _local1 = aMAX;
if (_local1 > _local2) {
_local1 = _local2;
}
if (_local1 > _local3) {
_local1 = _local3;
}
return(_local1);
}
function rgb2hsv(rg) {
var _local1 = rg;
var _local2 = new Object();
m = _local1.r;
if (_local1.g < m) {
m = _local1.g;
}
if (_local1.b < m) {
m = _local1.b;
}
v = _local1.r;
if (_local1.g > v) {
v = _local1.g;
}
if (_local1.b > v) {
v = _local1.b;
}
value = (100 * v) / 255;
delta = v - m;
if (v == 0) {
_local2.s = 0;
} else {
_local2.s = (100 * delta) / v;
}
if (_local2.s == 0) {
_local2.h = 0;
} else {
if (_local1.r == v) {
_local2.h = (60 * (_local1.g - _local1.b)) / delta;
} else if (_local1.g == v) {
_local2.h = 120 + ((60 * (_local1.b - _local1.r)) / delta);
} else if ((_local1.b = v)) {
_local2.h = 240 + ((60 * (_local1.r - _local1.g)) / delta);
}
if (_local2.h < 0) {
_local2.h = _local2.h + 360;
}
}
_local2.v = Math.round(value);
_local2.h = Math.round(_local2.h);
_local2.s = Math.round(_local2.s);
return(_local2);
}
function hsv2rgb(hs) {
var _local2 = hs;
var _local1 = new Object();
if (_local2.s == 0) {
_local1.r = (_local1.g = (_local1.b = Math.round(_local2.v * 2.55)));
return(_local1);
}
_local2.s = _local2.s / 100;
_local2.v = _local2.v / 100;
_local2.h = _local2.h / 60;
i = Math.floor(_local2.h);
f = _local2.h - i;
p = _local2.v * (1 - _local2.s);
q = _local2.v * (1 - (_local2.s * f));
t = _local2.v * (1 - (_local2.s * (1 - f)));
switch (i) {
case 0 :
_local1.r = _local2.v;
_local1.g = t;
_local1.b = p;
break;
case 1 :
_local1.r = q;
_local1.g = _local2.v;
_local1.b = p;
break;
case 2 :
_local1.r = p;
_local1.g = _local2.v;
_local1.b = t;
break;
case 3 :
_local1.r = p;
_local1.g = q;
_local1.b = _local2.v;
break;
case 4 :
_local1.r = t;
_local1.g = p;
_local1.b = _local2.v;
break;
default :
_local1.r = _local2.v;
_local1.g = p;
_local1.b = q;
}
_local1.r = Math.floor(_local1.r * 255);
_local1.g = Math.floor(_local1.g * 255);
_local1.b = Math.floor(_local1.b * 255);
return(_local1);
}
if (inValue eq "") {
if (thisCount eq "") {
thisCount = 0;
} else {
thisCount++;
}
if (thisCount > 50) {
inValue = "acb";
}
} else {
if (length(inValue) ne "7") {
if (length(inValue) eq "4") {
inValue = inValue add (substring(inValue, 2, 3));
} else if (length(inValue) eq "3") {
inValue = (inValue add (substring(inValue, 2, 2))) add (substring(inValue, 2, 2));
}
trace(inValue);
}
var colourRGB = new Object();
var colourHSV = new Object();
colourRGB.r = parseInt(substring(inValue, 2, 2), 16);
colourRGB.g = parseInt(substring(inValue, 4, 2), 16);
colourRGB.b = parseInt(substring(inValue, 6, 2), 16);
colourHSV = rgb2hsv(colourRGB);
hue = 0;
sat = 50;
lum = 99;
}
Frame 4
_root.mainMusic = new Sound(this);
_root.mainMusic.attachSound("music");
_root.mainMusic.start(0, 1000);
Frame 16
function setTheColour() {
var _local1 = _root;
var _local2 = new Object();
var _local3 = new Object();
_local3.h = hue;
_local3.s = sat;
_local3.v = lum;
_local2 = hsv2rgb(_local3);
thisColour = getColour(_local2.r, _local2.g, _local2.b);
thisCross = new Color(_local1.main.mcColorPicker.thisBlock);
thisCross.setRGB(thisColour);
_local1.main.mcColorPicker.strip.gotoAndPlay("restart");
_local1.main.mcColorPicker.panel.gotoAndPlay("restart");
inHue = Hue;
inSat = sat;
inLum = lum;
inR = _local2.r;
inG = _local2.g;
inB = _local2.b;
inValue = (_local1.toHex(_local1.inR) add _local1.toHex(_local1.inG)) add _local1.toHex(_local1.inB);
pot = "pot" + _local1.activePot;
var colorful = new Color(_local1.main[pot].color);
colorful.setRGB("0x" + inValue);
}
function enterPressed() {
hue = inHue;
sat = inSat;
lum = inLum;
setTheColour();
}
stop();
Instance of Symbol 568 MovieClip "controlFonction" in Frame 16
onClipEvent (load) {
function paintCursor(mcRef) {
var _local1 = _root;
mcRef.onRelease = function () {
var _local1 = _root;
str = new String(this);
noBucket = str.charAt(str.length - 1);
Mouse.hide();
splashSound = new Sound(this);
splashSound.attachSound("splash");
splashSound.start();
currentCol = "_root.color" + noBucket;
if (noBucket == 1) {
_local1.activeColor = _local1.color1;
} else if (noBucket == 2) {
_local1.activeColor = _local1.color2;
} else if (noBucket == 3) {
_local1.activeColor = _local1.color3;
} else if (noBucket == 4) {
_local1.activeColor = _local1.color4;
} else if (noBucket == 5) {
_local1.activeColor = _local1.color5;
} else if (noBucket == 6) {
_local1.activeColor = _local1.color6;
} else if (noBucket == 7) {
_local1.activeColor = _local1.color7;
}
_local1.main.cursor._visible = true;
var _local2 = new Color(_local1.main.cursor.colorEdge);
_local2.setRGB(_local1.activeColor);
_local1.main[_local1.bandeACacher].gotoAndPlay(12);
_local1.bandeACacher = "";
};
}
function sendToDisney() {
var _local1 = _root;
sendVars = new LoadVars();
sendVars.to_code = "zoogs";
sendVars.BCC_code = "";
sendVars.subject = "toondinsey-packthehouse ";
sendVars.site = "ZoogDisney";
sendVars.redirect = "http://www.disney.go.com/disneychannel/global/email_success.html";
sendVars.error = "disneychannel/error.tpl";
sendVars.pass = "1";
sendVars.mail_format_template = "disneychannel/email_adv.tpl";
sendVars.EMail = "dc@disneychannel.com";
sendVars.Age = _local1.senderAge;
sendVars.State = _local1.senderState;
sendVars.Message = _local1.stringLevel1;
sendVars.Name = _local1.senderName;
sendVars.onLoad = function (success) {
if (success) {
} else {
trace("Error: could not establish connection with server.");
}
};
sendVars.sendAndLoad("http://dcapps.disney.go.com/cgi-bin/gmail/generic_db.cgi", sendVars, "POST");
}
function initialiseColor() {
var _local1 = _root;
var _local2 = new Color(_local1.main.pot1.color);
_local2.setRGB(_local1.color1);
_local2 = new Color(_local1.main.pot2.color);
_local2.setRGB(_local1.color2);
_local2 = new Color(_local1.main.pot3.color);
_local2.setRGB(_local1.color3);
_local2 = new Color(_local1.main.pot4.color);
_local2.setRGB(_local1.color4);
_local2 = new Color(_local1.main.pot5.color);
_local2.setRGB(_local1.color5);
_local2 = new Color(_local1.main.pot6.color);
_local2.setRGB(_local1.color6);
_local2 = new Color(_local1.main.pot7.color);
_local2.setRGB(_local1.color7);
}
function changeFacade(mcRef) {
var _local1 = _root;
mcRef.onPress = function () {
var _local1 = _root;
_local1.facade = new Object();
str = this._name;
_local1.numero = str.charAt(5);
_local1.main.house.facade._visible = true;
_local1.main.house.facade.gotoAndStop(_local1.numero);
_local1.facade.type = _local1.main.house.facade._currentframe;
dropSound2.attachSound("drop2");
dropSound2.start();
};
}
function changeEntrance(mcRef) {
var _local1 = _root;
mcRef.onPress = function () {
var _local1 = _root;
_local1.entrance = new Object();
str = this._name;
_local1.numero = str.charAt(5);
_local1.main.house.entrance._visible = true;
_local1.main.house.entrance.gotoAndStop(_local1.numero);
_local1.entrance.type = _local1.main.house.entrance._currentframe;
dropSound2.attachSound("drop2");
dropSound2.start();
};
}
function duplicateFrontLight(mcRef) {
var _local1 = _root;
var _local2 = mcRef;
var _local3 = this;
_local2.onPress = function () {
var _local1 = _root;
if (this.hitTest(_local1._xmouse, _local1._ymouse, true)) {
str = this._name;
_local1.numero = str.charAt(4);
frontLightDrag = "item0" + _local1.numero;
_local1.posxInitial = _local1.main.lightItems[frontLightDrag]._x;
_local1.posyInitial = _local1.main.lightItems[frontLightDrag]._y;
if ((_local1.noObjetLight + _local1.noObjetBackLight) < 30) {
_local1.dragEnCours = true;
i = 1;
while (i <= 9) {
itemVisible = "item0" + i;
if (i == _local1.numero) {
_local1.main.lightItems[itemVisible]._visible = true;
} else {
_local1.main.lightItems[itemVisible]._visible = false;
}
i++;
}
_local1.main.lightItems[frontLightDrag].startDrag(true);
_local1.main[_local1.bandeACacher].gotoAndPlay(13);
} else {
_local1.main.mickey.gotoAndPlay("maxLight");
}
}
};
_local2.onRelease = (_local2.onReleaseOutside = function () {
var _local1 = _root;
if ((_local1.noObjetLight + _local1.noObjetBackLight) < 30) {
_local1.main.lightItems[frontLightDrag]._visible = false;
_local1.main[_local1.bandeACacher].gotoAndPlay(3);
}
if (((_local1.contact == true) and (_local1.dragEnCours == true)) and (_local1.contactBande == false)) {
if ((_local1.noObjetLight + _local1.noObjetBackLight) < 30) {
_local1.contact = false;
_local1.dragEnCours = false;
str = this._name;
_local1.main.lightItems[frontLightDrag].stopDrag();
_local1.noObjetLight = _local1.noObjetLight + 1;
_local1.profondeur = _local1.profondeur + 1;
duplicateMovieClip (_local1.main.house.light, "light" + _local1.noObjetLight, _local1.profondeur);
dropSound.attachSound("drop");
dropSound.start();
_local1["frontLight" + _local1.noObjetLight] = new Object();
_local1.main.house["light" + _local1.noObjetLight]._visible = true;
_local1.main.house["light" + _local1.noObjetLight].gotoAndPlay(_local1.numero);
_local1["frontLight" + _local1.noObjetLight].type = _local1.numero;
_local1["frontLight" + _local1.noObjetLight].x = (_local1.main.house["light" + _local1.noObjetLight]._x = _local1.main.house._xmouse);
_local1["frontLight" + _local1.noObjetLight].y = (_local1.main.house["light" + _local1.noObjetLight]._y = _local1.main.house._ymouse);
_local1.lastFrontLight = _local1.lastFrontLight + 1;
_local1.main.lightItems[frontLightDrag]._x = _local1.posxInitial;
_local1.main.lightItems[frontLightDrag]._y = _local1.posyInitial;
}
} else {
_local1.dragEnCours = false;
_local1.main.lightItems[frontLightDrag].stopDrag();
_local1.main.lightItems[frontLightDrag]._x = _local1.posxInitial;
_local1.main.lightItems[frontLightDrag]._y = _local1.posyInitial;
errorSound.attachSound("error");
errorSound.start();
}
});
}
function duplicateBackLight(mcRef) {
var _local1 = _root;
var _local2 = mcRef;
var _local3 = this;
_local2.onPress = function () {
var _local1 = _root;
if (this.hitTest(_local1._xmouse, _local1._ymouse, true)) {
str = this._name;
_local1.numero = str.charAt(4);
backLightDrag = "item0" + _local1.numero;
_local1.posxInitial = _local1.main.lightItems[backLightDrag]._x;
_local1.posyInitial = _local1.main.lightItems[backLightDrag]._y;
if ((_local1.noObjetLight + _local1.noObjetBackLight) < 30) {
_local1.dragEnCours = true;
i = 1;
while (i <= 9) {
itemVisible = "item0" + i;
if (i == _local1.numero) {
_local1.main.lightItems[itemVisible]._visible = true;
} else {
_local1.main.lightItems[itemVisible]._visible = false;
}
i++;
}
_local1.main.lightItems[backLightDrag].startDrag(true);
_local1.main[_local1.bandeACacher].gotoAndPlay(13);
} else {
_local1.main.mickey.gotoAndPlay("maxLight");
}
}
};
_local2.onRelease = (_local2.onReleaseOutside = function () {
var _local1 = _root;
if ((_local1.noObjetLight + _local1.noObjetBackLight) < 30) {
_local1.main.lightItems[BackLightDrag]._visible = false;
_local1.main[_local1.bandeACacher].gotoAndPlay(3);
}
if ((_local1.dragEnCours == true) and (_local1.contactBande == false)) {
if (((_local1.noObjetLight + _local1.noObjetBackLight) < 30) and (_local1.contactBande == false)) {
_local1.dragEnCours = false;
str = this._name;
_local1.main.lightItems[backLightDrag].stopDrag();
_local1.noObjetBackLight = _local1.noObjetBackLight + 1;
_local1.profondeur = _local1.profondeur + 1;
duplicateMovieClip (_local1.main.house.backLight, "backLight" + _local1.noObjetBackLight, _local1.profondeur);
dropSound.attachSound("drop");
dropSound.start();
_local1.main.house["backLight" + _local1.noObjetBackLight]._visible = true;
_local1.main.house["backLight" + _local1.noObjetBackLight].gotoAndPlay(_local1.numero);
_local1.main.house["backLight" + _local1.noObjetBackLight]._x = _local1.main.house._xmouse;
_local1.main.house["backLight" + _local1.noObjetBackLight]._y = _local1.main.house._ymouse;
_local1.lastBackLight = _local1.lastBackLight + 1;
_local1.main.lightItems[backLightDrag]._x = _local1.posxInitial;
_local1.main.lightItems[backLightDrag]._y = _local1.posyInitial;
}
} else {
_local1.dragEnCours = false;
_local1.main.lightItems[backLightDrag].stopDrag();
_local1.main.lightItems[backLightDrag]._x = _local1.posxInitial;
_local1.main.lightItems[backLightDrag]._y = _local1.posyInitial;
errorSound.attachSound("error");
errorSound.start();
}
});
}
function duplicateSign(mcRef) {
var _local1 = _root;
var _local2 = this;
var _local3 = mcRef;
_local3.onPress = function () {
var _local1 = _root;
var _local2 = this;
if (_local2.hitTest(_local1._xmouse, _local1._ymouse, true) and (_local1.noObjetSign == 0)) {
_local1.sign = new Object();
_local1.sign.x = _local2._x;
_local1.sign.y = _local2._y;
_local1.posxInitial = _local2._x;
_local1.posyInitial = _local2._y;
_local1.dragEnCours = true;
if ((_local1.main.house.sign1._visible == false) or (_local1.main.house.sign1._visible == undefined)) {
_local2.startDrag(true);
}
}
};
_local3.onRelease = (_local3.onReleaseOutside = function () {
var _local1 = _root;
var _local2 = this;
if ((_local1.main.house.sign1._visible == undefined) or (_local1.main.house.sign1._visible == false)) {
if ((_local1.contact == true) and (_local1.dragEnCours == true)) {
_local1.contact = false;
_local1.dragEnCours = false;
str = _local2._name;
_local2.stopDrag();
_local1.numero = str.charAt(5);
_local1.noObjetSign = _local1.noObjetSign + 1;
_local1.profondeur = _local1.profondeur + 1;
duplicateMovieClip (_local1.main.house.sign, "sign" + _local1.noObjetSign, _local1.profondeur);
dropSound.attachSound("drop");
dropSound.start();
_local1.main.house["sign" + _local1.noObjetSign]._visible = true;
_local1.main.house["sign" + _local1.noObjetSign].gotoAndPlay(_local1.numero);
_local1.main.house["sign" + _local1.noObjetSign]._x = _local1.main.house._xmouse;
_local1.main.house["sign" + _local1.noObjetSign]._y = _local1.main.house._ymouse;
_local1.lastSign = _local1.lastSign + 1;
_local1.signPresent = true;
_local2._x = _local1.posxInitial;
_local2._y = _local1.posyInitial;
} else {
_local1.dragEnCours = false;
_local2.stopDrag();
_local2._x = _local1.posxInitial;
_local2._y = _local1.posyInitial;
errorSound.attachSound("error");
errorSound.start();
}
} else {
errorSound.attachSound("error");
errorSound.start();
}
});
}
function duplicateMisc(mcRef) {
var _local1 = _root;
var _local2 = mcRef;
var _local3 = this;
_local2.onPress = function () {
var _local1 = _root;
if (this.hitTest(_local1._xmouse, _local1._ymouse, true)) {
str = this._name;
_local1.numero = str.charAt(4);
miscDrag = "item0" + _local1.numero;
_local1.posxInitial = _local1.main.miscItems[miscDrag]._x;
_local1.posyInitial = _local1.main.miscItems[miscDrag]._y;
if (_local1.noObjetMisc < 30) {
_local1.dragEnCours = true;
i = 1;
while (i <= 9) {
itemVisible = "item0" + i;
ombreRemove = "ombre0" + i;
_local1.main.miscItems[ombreRemove]._visible = false;
if (i == _local1.numero) {
_local1.main.miscItems[itemVisible]._visible = true;
} else {
_local1.main.miscItems[itemVisible]._visible = false;
}
i++;
}
_local1.main.miscItems[miscDrag].startDrag(true);
_local1.main[_local1.bandeACacher].gotoAndPlay(13);
} else {
_local1.main.mickey.gotoAndPlay("maxMisc");
}
}
};
_local2.onRelease = (_local2.onReleaseOutside = function () {
var _local1 = _root;
if (_local1.noObjetMisc < 30) {
_local1.main.miscItems[miscDrag]._visible = false;
_local1.main[_local1.bandeACacher].gotoAndPlay(3);
}
if ((_local1.contactMisc == true) and (_local1.dragEnCours == true)) {
if (_local1.noObjetMisc < 30) {
_local1.dragEnCours = false;
_local1.contactMisc = false;
str = this._name;
_local1.main.miscItems[miscDrag].stopDrag();
_local1.main.miscItems[ombreRemove]._visible = true;
_local1.noObjetMisc = _local1.noObjetMisc + 1;
_local1.profondeur = _local1.profondeur + 1;
duplicateMovieClip (_local1.main.house.misc, "misc" + _local1.noObjetMisc, _local1.profondeur);
dropSound.attachSound("drop");
dropSound.start();
_local1["misc" + _local1.noObjetMisc] = new Object();
_local1.main.house["misc" + _local1.noObjetMisc]._visible = true;
_local1.main.house["misc" + _local1.noObjetMisc].gotoAndPlay(_local1.numero);
_local1["misc" + _local1.noObjetMisc].x = (_local1.main.house["misc" + _local1.noObjetMisc]._x = _local1.main.house._xmouse);
_local1["misc" + _local1.noObjetMisc].y = (_local1.main.house["misc" + _local1.noObjetMisc]._y = _local1.main.house._ymouse);
_local1["misc" + _local1.noObjetMisc].type = _local1.main.house["misc" + _local1.noObjetMisc]._currentframe;
_local1.lastMisc = _local1.lastMisc + 1;
_local1.main.miscItems[miscDrag]._x = _local1.posxInitial;
_local1.main.miscItems[miscDrag]._y = _local1.posyInitial;
}
} else {
_local1.dragEnCours = false;
_local1.main.miscItems[miscDrag].stopDrag();
_local1.main.miscItems[miscDrag]._x = _local1.posxInitial;
_local1.main.miscItems[miscDrag]._y = _local1.posyInitial;
errorSound.attachSound("error");
errorSound.start();
}
});
}
function moveObject(mcRef) {
var _local1 = _root;
var _local2 = this;
mcRef.onPress = function () {
var _local1 = _root;
var _local2 = this;
if (_local2.hitTest(_local1._xmouse, _local1._ymouse, true)) {
_local1.posxInitial = _local2._x;
_local1.posyInitial = _local2._y;
_local1.dragEnCours = true;
if (_local1.main.cursor._visible == false) {
_local2.startDrag(true);
}
_local1.contact = false;
}
};
mcRef.onRelease = function () {
var _local1 = _root;
var _local2 = this;
if (_local1.main.cursor._visible == false) {
if (_local2.hitTest(_local1.main.poubelle) and (_local1.dragEnCours == true)) {
if (_local2 != _local1.main.house.sign1) {
_local2.removeMovieClip();
garbageSound.attachSound("garbage");
garbageSound.start();
}
}
if ((_local1.contactLight == true) and (_local1.dragEnCours == true)) {
_local1.contact = false;
_local1.dragEnCours = false;
_local2.stopDrag();
dropSound.attachSound("drop");
dropSound.start();
} else {
_local1.dragEnCours = false;
_local2.stopDrag();
_local2._x = _local1.posxInitial;
_local2._y = _local1.posyInitial;
errorSound.attachSound("error");
errorSound.start();
}
}
};
}
function moveMisc(mcRef) {
var _local1 = _root;
var _local2 = this;
var _local3 = mcRef;
_local3.onPress = function () {
var _local1 = _root;
var _local2 = this;
_local1.selectedType = _local2;
if (_local2.hitTest(_local1._xmouse, _local1._ymouse, true)) {
str = new String(_local2);
strStart = str.lastIndexOf("misc");
noNumber = str.charAt(strStart + 5);
if (noNumber == ".") {
miscToMove = str.substring(strStart, strStart + 5);
noMisc = miscToMove.charAt(4);
} else {
miscToMove = str.substring(strStart, strStart + 6);
noMisc = miscToMove.substring(4, 6);
}
if (_local1.main.cursor._visible == true) {
if (_local1.activeColor != "") {
paintingSound.attachSound("painting");
paintingSound.start();
if (_local2._name == "color1") {
_local1["misc" + noMisc].color1 = _local1.activeColor;
level1SO.data[("misc" + noMisc) + "color1"] = _local1.activeColor;
} else {
_local1["misc" + noMisc].color2 = _local1.activeColor;
level1SO.data[("misc" + noMisc) + "color2"] = _local1.activeColor;
}
var _local3 = new Color(_local2);
_local3.setRGB(_local1.activeColor);
}
}
_local1.posxInitial = _local1.main.house[miscToMove]._x;
_local1.posyInitial = _local1.main.house[miscToMove]._y;
_local1.dragEnCours = true;
if (_local1.main.cursor._visible == false) {
_local1.main.house[miscToMove].startDrag(true);
}
_local1.selectedObject = _local1.main.house[miscToMove];
}
};
_local3.onRelease = (_local3.onReleaseOutside = function () {
var _local1 = _root;
var _local2 = this;
if (_local2.hitTest(_local1.main.poubelle) and (_local1.dragEnCours == true)) {
_local1.selectedObject.removeMovieClip();
garbageSound.attachSound("garbage");
garbageSound.start();
} else if ((_local1.contactMisc == true) and (_local1.dragEnCours == true)) {
_local1.dragEnCours = false;
_local2.stopDrag();
if (_local1.main.cursor._visible == false) {
dropSound.attachSound("drop");
dropSound.start();
}
level1SO.data[("misc" + noMisc) + "x"] = _local1.main.house[miscToMove]._x;
level1SO.data[("misc" + noMisc) + "y"] = _local1.main.house[miscToMove]._y;
} else {
_local1.dragEnCours = false;
_local2.stopDrag();
_local1.main.house[miscToMove]._x = _local1.posxInitial;
_local1.main.house[miscToMove]._y = _local1.posyInitial;
if (_local1.main.cursor._visible == false) {
errorSound.attachSound("error");
errorSound.start();
}
}
});
}
function moveLight(mcRef) {
var _local1 = _root;
var _local2 = this;
var _local3 = mcRef;
_local3.onPress = function () {
var _local1 = _root;
var _local2 = this;
_local1.selectedType = _local2;
if (_local2.hitTest(_local1._xmouse, _local1._ymouse, true)) {
str = new String(_local2);
strStart = str.lastIndexOf("light");
noNumber = str.charAt(strStart + 6);
lastDot = str.lastIndexOf(".");
afterLastDot = str.charAt(lastDot + 1);
if (noNumber == ".") {
miscToMove = str.substring(strStart, strStart + 6);
noFrontLight = miscToMove.charAt(5);
paintItem = ("_root.main.house." + miscToMove) + ".item05.color1";
} else {
miscToMove = str.substring(strStart, strStart + 7);
noFrontLight = miscToMove.substring(5, 7);
paintItem = ("_root.main.house." + miscToMove) + ".item05.color1";
}
if (_local1.main.cursor._visible == true) {
if (_local1.activeColor != "") {
if (afterLastDot != "d") {
paintingSound.attachSound("painting");
paintingSound.start();
_local1["frontLight" + noFrontLight].color1 = _local1.activeColor;
var _local3 = new Color(_local2);
_local3.setRGB(_local1.activeColor);
level1SO.data[("frontLight" + noFrontLight) + "color1"] = _local1.activeColor;
} else {
paintingSound.attachSound("painting");
paintingSound.start();
_local1["frontLight" + noFrontLight].color1 = _local1.activeColor;
var _local3 = new Color(paintItem);
_local3.setRGB(_local1.activeColor);
level1SO.data[("frontLight" + noFrontLight) + "color1"] = _local1.activeColor;
}
}
}
_local1.posxInitial = _local1.main.house[miscToMove]._x;
_local1.posyInitial = _local1.main.house[miscToMove]._y;
_local1.dragEnCours = true;
if (_local1.main.cursor._visible == false) {
_local1.main.house[miscToMove].startDrag(true);
}
_local1.selectedObject = _local1.main.house[miscToMove];
}
};
_local3.onRelease = (_local3.onReleaseOutside = function () {
var _local1 = _root;
var _local2 = this;
if (_local2.hitTest(_local1.main.poubelle) and (_local1.dragEnCours == true)) {
_local1.selectedObject.removeMovieClip();
garbageSound.attachSound("garbage");
garbageSound.start();
} else if ((_local1.contactLight == true) and (_local1.dragEnCours == true)) {
_local1.dragEnCours = false;
_local2.stopDrag();
if (_local1.main.cursor._visible == false) {
dropSound.attachSound("drop");
dropSound.start();
_local1["frontLight" + _local1.noObjetLight].x = _local1.main.house[miscToMove]._x;
_local1["frontLight" + _local1.noObjetLight].y = _local1.main.house[miscToMove]._y;
level1SO.data[("frontLight" + noFrontLight) + "x"] = _local1.main.house[miscToMove]._x;
level1SO.data[("frontLight" + noFrontLight) + "y"] = _local1.main.house[miscToMove]._y;
}
} else {
_local1.dragEnCours = false;
_local2.stopDrag();
_local1.main.house[miscToMove]._x = _local1.posxInitial;
_local1.main.house[miscToMove]._y = _local1.posyInitial;
if (_local1.main.cursor._visible == false) {
errorSound.attachSound("error");
errorSound.start();
}
}
});
}
function changeColor(mcRef) {
var _local1 = _root;
var _local2 = this;
mcRef.onPress = function () {
var _local1 = _root;
var _local2 = this;
if (_local1.main.cursor._visible == true) {
if (_local2._name == "color1") {
_local1.facade.color1 = _local1.activeColor;
} else {
_local1.facade.color2 = _local1.activeColor;
}
paintingSound.attachSound("painting");
paintingSound.start();
_local1.selectedObject = _local2;
var _local3 = new Color(_local2);
_local3.setRGB(_local1.activeColor);
}
};
}
function changeColorEntrance(mcRef) {
var _local1 = _root;
var _local2 = this;
mcRef.onPress = function () {
var _local1 = _root;
var _local2 = this;
if (_local1.main.cursor._visible == true) {
if (_local2._name == "color1") {
_local1.entrance.color1 = _local1.activeColor;
} else {
_local1.entrance.color2 = _local1.activeColor;
}
paintingSound.attachSound("painting");
paintingSound.start();
_local1.selectedObject = _local2;
var _local3 = new Color(_local2);
_local3.setRGB(_local1.activeColor);
}
};
}
function clearAll() {
var _local1 = _root;
if ((level1SO.data.lastFrontLight != undefined) and (level1SO.data.lastFrontLight != "")) {
_local1.lastFrontLight = _local1.lastFrontLight + level1SO.data.lastFrontLight;
}
if ((level1SO.data.lastBackLight != undefined) and (level1SO.data.lastBackLight != "")) {
_local1.lastBackLight = _local1.lastBackLight + level1SO.data.lastBackLight;
}
if ((level1SO.data.lastMisc != undefined) and (level1SO.data.lastMisc != "")) {
_local1.lastMisc = _local1.lastMisc + level1SO.data.lastMisc;
}
_local1.main.house.facade._visible = false;
_local1.main.house.entrance._visible = false;
_local1.main.house.sign._visible = false;
if (_local1.main.house.sign1._visible != undefined) {
_local1.main.house.sign1.removeMovieClip();
}
i = 1;
while (i <= _local1.lastBackLight) {
_local1.main.house["backLight" + i].removeMovieClip();
i++;
}
i = 1;
while (i <= _local1.lastFrontLight) {
_local1.main.house["light" + i].removeMovieClip();
i++;
}
i = 1;
while (i <= _local1.lastMisc) {
_local1.main.house["misc" + i].removeMovieClip();
i++;
}
_local1.noObjetSign = 0;
_local1.noObjetLight = 0;
_local1.noObjetMisc = 0;
_local1.noObjetBackLight = 0;
_local1.profondeur = 500;
_local1.lastFrontLight = 0;
_local1.lastMisc = 0;
_local1.lastSign = 0;
_local1.lastBackLight = 0;
_local1.lastBackLightLoad = 0;
_local1.lastFrontLightLoad = 0;
_local1.lastMiscLoad = 0;
level1SO = SharedObject.getLocal("level1", "/");
for (a in level1SO.data) {
delete level1SO.data[a];
}
level1SO.flush();
}
function resetAll() {
var _local1 = _root;
_local1.noObjetSign = 0;
_local1.noObjetLight = 0;
_local1.noObjetMisc = 0;
_local1.noObjetBackLight = 0;
_local1.profondeur = 500;
_local1.lastFrontLight = 0;
_local1.lastMisc = 0;
_local1.lastSign = 0;
_local1.lastBackLight = 0;
_local1.lastBackLightLoad = 0;
_local1.lastFrontLightLoad = 0;
_local1.lastMiscLoad = 0;
_local1.lastMiscLoad = 0;
_local1.stringLevel1 = "";
}
function creerSO() {
var _local1 = _root;
level1SO = SharedObject.getLocal("level1", "/");
level1SO.data.facade = _local1.facade.type;
if (_local1.facade.color1 != undefined) {
level1SO.data.facadeColor1 = _local1.facade.color1;
}
if (_local1.facade.color2 != undefined) {
level1SO.data.facadeColor2 = _local1.facade.color2;
}
level1SO.data.entrance = _local1.entrance.type;
if (_local1.entrance.color1 != undefined) {
level1SO.data.entranceColor1 = _local1.entrance.color1;
}
if (_local1.entrance.color2 != undefined) {
level1SO.data.entranceColor2 = _local1.entrance.color2;
}
level1SO.data.signX = _local1.main.house.sign1._x;
level1SO.data.signY = _local1.main.house.sign1._y;
i = 1;
while (i <= _local1.lastBackLight) {
level1SO.data["backLight" + i] = _local1.main.house["backLight" + i]._currentframe;
level1SO.data[("backLight" + i) + "x"] = _local1.main.house["backLight" + i]._x;
level1SO.data[("backLight" + i) + "y"] = _local1.main.house["backLight" + i]._y;
i++;
}
level1SO.data.lastBackLight = _local1.lastBackLight;
i = 1;
while (i <= _local1.lastFrontLight) {
if (_local1.lastFrontLightLoad != undefined) {
itemp = i + _local1.lastFrontLightLoad;
} else {
itemp = i;
}
level1SO.data["frontLight" + itemp] = _local1["frontLight" + itemp].type;
level1SO.data[("frontLight" + itemp) + "x"] = _local1["frontLight" + itemp].x;
level1SO.data[("frontLight" + itemp) + "y"] = _local1["frontLight" + itemp].y;
if (_local1["frontLight" + itemp].color1 != undefined) {
level1SO.data[("frontLight" + itemp) + "color1"] = _local1["frontLight" + itemp].color1;
}
i++;
}
if (_local1.lastFrontLightLoad != undefined) {
level1SO.data.lastFrontLight = _local1.lastFrontLight + _local1.lastFrontLightLoad;
} else {
level1SO.data.lastFrontLight = _local1.lastFrontLight;
}
i = 1;
while (i <= _local1.lastMisc) {
if (_local1.lastMiscLoad != undefined) {
itemp = i + _local1.lastMiscLoad;
} else {
itemp = i;
}
level1SO.data["misc" + itemp] = _local1["misc" + itemp].type;
level1SO.data[("misc" + itemp) + "x"] = _local1["misc" + itemp].x;
level1SO.data[("misc" + itemp) + "y"] = _local1["misc" + itemp].y;
if (_local1["misc" + itemp].color1 != undefined) {
level1SO.data[("misc" + itemp) + "color1"] = _local1["misc" + itemp].color1;
}
if (_local1["misc" + itemp].color2 != undefined) {
level1SO.data[("misc" + itemp) + "color2"] = _local1["misc" + itemp].color2;
}
i++;
}
if (_local1.lastMiscLoad != undefined) {
level1SO.data.lastMisc = _local1.lastMisc + _local1.lastMiscLoad;
} else {
level1SO.data.lastMisc = _local1.lastMisc;
}
level1SO.flush();
for (a in level1SO.data) {
trace((a + ": ") + level1SO.data[a]);
}
}
function chargerSO() {
var _local1 = _root;
level1SO = SharedObject.getLocal("level1", "/");
_local1.facade = new Object();
_local1.main.house.facade.gotoAndStop(level1SO.data.facade);
_local1.facade.type = level1SO.data.facade;
noFacade = "item0" + level1SO.data.facade;
if (level1SO.data.facadeColor1 != undefined) {
colorful = new Color(_local1.main.house.facade[noFacade].color1);
colorful.setRGB(level1SO.data.facadeColor1);
_local1.facade.color1 = level1SO.data.facadeColor1;
}
if (level1SO.data.facadeColor2 != undefined) {
var colorful = new Color(_local1.main.house.facade[noFacade].color2);
colorful.setRGB(level1SO.data.facadeColor2);
_local1.facade.color2 = level1SO.data.facadeColor2;
}
if (level1SO.data.facade != undefined) {
_local1.main.house.facade._visible = true;
}
_local1.entrance = new Object();
_local1.main.house.entrance.gotoAndStop(level1SO.data.entrance);
noEntrance = "item0" + level1SO.data.entrance;
_local1.entrance.type = level1SO.data.entrance;
if (level1SO.data.entranceColor1 != undefined) {
var colorful = new Color(_local1.main.house.entrance[noEntrance].color1);
colorful.setRGB(level1SO.data.entranceColor1);
_local1.entrance.color1 = level1SO.data.entranceColor1;
}
if (level1SO.data.entranceColor2 != undefined) {
var colorful = new Color(_local1.main.house.entrance[noEntrance].color2);
colorful.setRGB(level1SO.data.entranceColor2);
_local1.entrance.color2 = level1SO.data.entranceColor2;
}
if (level1SO.data.entrance != undefined) {
_local1.main.house.entrance._visible = true;
}
if (level1SO.data.signX != undefined) {
duplicateMovieClip (_local1.main.house.sign, "sign1", 10000);
_local1.main.house.sign1._x = level1SO.data.signX;
_local1.main.house.sign1._y = level1SO.data.signY;
_local1.sign = new Object();
_local1.main.house.sign1._visible = true;
_local1.sign.x = level1SO.data.signX;
_local1.sign.y = level1SO.data.signY;
}
_local1.lastBackLightLoad = level1SO.data.lastBackLight;
_local1.lastFrontLightLoad = level1SO.data.lastFrontLight;
_local1.lastMiscLoad = level1SO.data.lastMisc;
if (_local1.lastBackLightLoad != undefined) {
_local1.noObjetBackLight = _local1.noObjetBackLight + _local1.lastBackLightLoad;
_local1.lastBackLight = _local1.lastBackLight + _local1.lastBackLightLoad;
}
if (_local1.lastFrontLightLoad != undefined) {
_local1.noObjetLight = _local1.noObjetLight + _local1.lastFrontLightLoad;
}
if (_local1.lastMiscLoad != undefined) {
_local1.noObjetMisc = _local1.noObjetMisc + _local1.lastMiscLoad;
}
loadBackLight();
loadFrontLight();
loadMisc();
}
function loadBackLight() {
var _local1 = _root;
if ((_local1.lastBackLightLoad != 0) && (_local1.lastBackLightLoad != undefined)) {
i = 1;
while (i <= _local1.lastBackLightLoad) {
duplicateMovieClip (_local1.main.house.backLight, "backLight" + i, _local1.profondeur);
_local1.main.house["backLight" + i]._visible = true;
_local1.main.house["backLight" + i].gotoAndStop(level1SO.data["backLight" + i]);
_local1.main.house["backLight" + i]._x = level1SO.data[("backLight" + i) + "x"];
_local1.main.house["backLight" + i]._y = level1SO.data[("backLight" + i) + "y"];
_local1.profondeur = _local1.profondeur + 1;
i++;
}
}
}
function loadFrontLight() {
var _local1 = _root;
if ((_local1.lastFrontLightLoad != 0) && (_local1.lastFrontLightLoad != undefined)) {
i = 1;
while (i <= _local1.lastFrontLightLoad) {
duplicateMovieClip (_local1.main.house.light, "light" + i, _local1.profondeur);
_local1.main.house["light" + i]._visible = true;
_local1.main.house["light" + i].gotoAndStop(level1SO.data["frontLight" + i]);
_local1.main.house["light" + i]._x = level1SO.data[("frontLight" + i) + "x"];
_local1.main.house["light" + i]._y = level1SO.data[("frontLight" + i) + "y"];
noFrontLight = "item0" + level1SO.data["frontLight" + i];
_local1["frontLight" + i] = new Object();
_local1["frontLight" + i].type = level1SO.data["frontLight" + i];
_local1["frontLight" + i].x = level1SO.data[("frontLight" + i) + "x"];
_local1["frontLight" + i].y = level1SO.data[("frontLight" + i) + "y"];
if (level1SO.data[("frontLight" + i) + "color1"] != undefined) {
var _local2 = new Color(_local1.main.house["light" + i][noFrontLight].color1);
_local2.setRGB(level1SO.data[("frontLight" + i) + "color1"]);
_local1["frontLight" + i].color1 = level1SO.data[("frontLight" + i) + "color1"];
}
_local1.profondeur = _local1.profondeur + 1;
i++;
}
}
}
function loadMisc() {
var _local1 = _root;
if ((_local1.lastMiscLoad != 0) && (_local1.lastMiscLoad != undefined)) {
i = 1;
while (i <= _local1.lastMiscLoad) {
duplicateMovieClip (_local1.main.house.misc, "misc" + i, _local1.profondeur);
_local1.profondeur = _local1.profondeur + 1;
_local1.main.house["misc" + i]._visible = true;
_local1.main.house["misc" + i].gotoAndStop(level1SO.data["misc" + i]);
_local1.main.house["misc" + i]._x = level1SO.data[("misc" + i) + "x"];
_local1.main.house["misc" + i]._y = level1SO.data[("misc" + i) + "y"];
noMisc = "item0" + level1SO.data["misc" + i];
_local1["misc" + i] = new Object();
_local1["misc" + i].type = level1SO.data["misc" + i];
_local1["misc" + i].x = level1SO.data[("misc" + i) + "x"];
_local1["misc" + i].y = level1SO.data[("misc" + i) + "y"];
if (level1SO.data[("misc" + i) + "color1"] != undefined) {
var _local2 = new Color(_local1.main.house["misc" + i][noMisc].color1);
_local2.setRGB(level1SO.data[("misc" + i) + "color1"]);
_local1["misc" + i].color1 = level1SO.data[("misc" + i) + "color1"];
}
if (level1SO.data[("misc" + i) + "color2"] != undefined) {
var _local2 = new Color(_local1.main.house["misc" + i][noMisc].color2);
_local2.setRGB(level1SO.data[("misc" + i) + "color2"]);
_local1["misc" + i].color1 = level1SO.data[("misc" + i) + "color2"];
}
i++;
}
}
}
function creerString() {
var _local1 = _root;
level1SO = SharedObject.getLocal("level1", "/");
_local1.stringLevel1 = new String();
_local1.stringLevel1 = (("F" + level1SO.data.facade) + "K") + level1SO.data.facadeColor1;
if (level1SO.data.facadeColor2 != undefined) {
_local1.stringLevel1 = (_local1.stringLevel1 + "L") + level1SO.data.facadeColor2;
}
_local1.stringLevel1 = (((_local1.stringLevel1 + "E") + level1SO.data.entrance) + "K") + level1SO.data.entranceColor1;
if (level1SO.data.entranceColor2 != undefined) {
_local1.stringLevel1 = (_local1.stringLevel1 + "L") + level1SO.data.entranceColor2;
}
_local1.stringLevel1 = ((((_local1.stringLevel1 + "SX") + Math.round(level1SO.data.signX)) + "Y") + Math.round(level1SO.data.signY)) + "Z";
i = 1;
while (i <= level1SO.data.lastBackLight) {
_local1.stringLevel1 = (_local1.stringLevel1 + "T") + level1SO.data["backLight" + i];
_local1.stringLevel1 = (_local1.stringLevel1 + "X") + Math.round(level1SO.data[("backLight" + i) + "x"]);
_local1.stringLevel1 = (_local1.stringLevel1 + "Y") + Math.round(level1SO.data[("backLight" + i) + "y"]);
_local1.stringLevel1 = _local1.stringLevel1 + "Z";
i++;
}
i = 1;
while (i <= level1SO.data.lastFrontLight) {
_local1.stringLevel1 = (_local1.stringLevel1 + "L") + level1SO.data["frontLight" + i];
_local1.stringLevel1 = (_local1.stringLevel1 + "X") + Math.round(level1SO.data[("frontLight" + i) + "x"]);
_local1.stringLevel1 = (_local1.stringLevel1 + "Y") + Math.round(level1SO.data[("frontLight" + i) + "y"]);
_local1.stringLevel1 = (_local1.stringLevel1 + "K") + level1SO.data[("frontLight" + i) + "color1"];
_local1.stringLevel1 = _local1.stringLevel1 + "Z";
i++;
}
i = 1;
while (i <= level1SO.data.lastMisc) {
_local1.stringLevel1 = (_local1.stringLevel1 + "M") + level1SO.data["misc" + i];
_local1.stringLevel1 = (_local1.stringLevel1 + "X") + Math.round(level1SO.data[("misc" + i) + "x"]);
_local1.stringLevel1 = (_local1.stringLevel1 + "Y") + Math.round(level1SO.data[("misc" + i) + "y"]);
_local1.stringLevel1 = (_local1.stringLevel1 + "K") + level1SO.data[("misc" + i) + "color1"];
if (level1SO.data[("misc" + i) + "color2"] != undefined) {
_local1.stringLevel1 = (_local1.stringLevel1 + "L") + level1SO.data[("misc" + i) + "color2"];
}
_local1.stringLevel1 = _local1.stringLevel1 + "Z";
i++;
}
_local1.stringLevel1 = (_local1.stringLevel1 + "Q") + level1SO.data.lastBackLight;
_local1.stringLevel1 = (_local1.stringLevel1 + "W") + level1SO.data.lastFrontLight;
_local1.stringLevel1 = (_local1.stringLevel1 + "R") + level1SO.data.lastMisc;
_local1.stringLevel1 = _local1.stringLevel1 + "P";
trace(_local1.stringLevel1);
}
function decryptString() {
var _local1 = _root;
str = _local1.stringLevel1;
trace(str);
pos = 0;
pos = str.lastIndexOf("Q");
lastBackLight = str.charAt(pos + 1);
_local1.lastBackLight = _local1.lastBackLight + lastBackLight;
pos = str.lastIndexOf("W");
lastFrontLight = str.charAt(pos + 1);
_local1.lastFrontLight = _local1.lastFrontLight + lastFrontLight;
pos = str.lastIndexOf("R");
lastMisc = str.charAt(pos + 1);
_local1.lastMisc = _local1.lastMisc + lastMisc;
facade = str.charAt(1);
posTemp = str.indexOf("K") + 1;
facadeColor1 = str.substring(posTemp, posTemp + 8);
posTemp = posTemp + 8;
if (str.charAt(posTemp) == "L") {
posTemp = posTemp + 1;
facadeColor2 = str.substring(posTemp, posTemp + 8);
}
_local1.main.house.facade.gotoAndStop(facade);
noFacade = "item0" + facade;
colorful = new Color(_local1.main.house.facade[noFacade].color1);
colorful.setRGB(facadeColor1);
if (facadeColor2 != undefined) {
var colorful = new Color(_local1.main.house.facade[noFacade].color2);
colorful.setRGB(facadeColor2);
}
_local1.main.house.facade._visible = true;
posTemp = str.indexOf("E");
entrance = str.charAt(posTemp + 1);
posTemp = posTemp + 3;
entranceColor1 = str.substring(posTemp, posTemp + 8);
posTemp = posTemp + 8;
if (str.charAt(posTemp) == "L") {
posTemp = posTemp + 1;
entranceColor2 = str.substring(posTemp, posTemp + 8);
}
_local1.main.house.entrance.gotoAndStop(entrance);
noEntrance = "item0" + entrance;
var colorful = new Color(_local1.main.house.entrance[noEntrance].color1);
colorful.setRGB(entranceColor1);
if (entranceColor2 != undefined) {
var colorful = new Color(_local1.main.house.entrance[noEntrance].color2);
colorful.setRGB(entranceColor2);
}
_local1.main.house.entrance._visible = true;
posTemp = str.indexOf("S");
posTemp = posTemp + 2;
posTempFin = str.indexOf("Y", posTemp);
signX = str.substring(posTemp, posTempFin);
posTemp = posTempFin + 1;
posTempFin = str.indexOf("Z", posTemp);
signY = str.substring(posTemp, posTempFin);
duplicateMovieClip (_local1.main.house.sign, "sign1", 10000);
_local1.main.house.sign1._visible = true;
_local1.main.house.sign1._x = signX;
_local1.main.house.sign1._y = signY;
i = 1;
while (i <= lastBackLight) {
posTemp = posTempFin;
posTemp = str.indexOf("T", posTemp);
backlight = str.charAt(posTemp + 1);
posTemp = str.indexOf("X", posTemp);
posTempFin = str.indexOf("Y", posTemp);
backlightX = str.substring(posTemp + 1, posTempFin);
posTemp = str.indexOf("Y", posTemp);
posTempFin = str.indexOf("Z", posTemp);
backlightY = str.substring(posTemp + 1, posTempFin);
duplicateMovieClip (_local1.main.house.backLight, "backLight" + i, _local1.profondeur);
_local1.main.house["backLight" + i]._visible = true;
_local1.main.house["backLight" + i].gotoAndStop(backlight);
_local1.main.house["backLight" + i]._x = backlightX;
_local1.main.house["backLight" + i]._y = backlightY;
_local1.profondeur = _local1.profondeur + 1;
i++;
}
i = 1;
while (i <= lastFrontLight) {
posTemp = posTempFin;
posTemp = str.indexOf("L", posTemp);
light = str.charAt(posTemp + 1);
posTemp = str.indexOf("X", posTemp);
posTempFin = str.indexOf("Y", posTemp);
lightX = str.substring(posTemp + 1, posTempFin);
posTemp = str.indexOf("Y", posTemp);
posTempFin = str.indexOf("K", posTemp);
lightY = str.substring(posTemp + 1, posTempFin);
posTemp = str.indexOf("K", posTemp);
posTempFin = str.indexOf("Z", posTemp);
lightColor = str.substring(posTemp + 1, posTempFin);
duplicateMovieClip (_local1.main.house.light, "light" + i, _local1.profondeur);
_local1.main.house["light" + i]._visible = true;
_local1.main.house["light" + i].gotoAndStop(light);
_local1.main.house["light" + i]._x = lightX;
_local1.main.house["light" + i]._y = lightY;
noFrontLight = "item0" + light;
var colorful = new Color(_local1.main.house["light" + i][noFrontLight].color1);
colorful.setRGB(lightColor);
_local1.profondeur = _local1.profondeur + 1;
i++;
}
i = 1;
while (i <= lastMisc) {
posTemp = posTempFin;
posTemp = str.indexOf("M", posTemp);
misc = str.charAt(posTemp + 1);
posTemp = str.indexOf("X", posTemp);
posTempFin = str.indexOf("Y", posTemp);
miscX = str.substring(posTemp + 1, posTempFin);
posTemp = str.indexOf("Y", posTemp);
posTempFin = str.indexOf("K", posTemp);
miscY = str.substring(posTemp + 1, posTempFin);
posTemp = str.indexOf("K", posTemp);
posTempFin = posTemp + 9;
miscColor1 = str.substring(posTemp + 1, posTempFin);
if (str.charAt(posTempFin) == "L") {
posTempFin = posTempFin + 1;
miscColor2 = str.substring(posTempFin, posTempFin + 8);
}
duplicateMovieClip (_local1.main.house.misc, "misc" + i, _local1.profondeur);
_local1.profondeur = _local1.profondeur + 1;
_local1.main.house["misc" + i]._visible = true;
_local1.main.house["misc" + i].gotoAndStop(misc);
_local1.main.house["misc" + i]._x = miscX;
_local1.main.house["misc" + i]._y = miscY;
noMisc = "item0" + misc;
var colorful = new Color(_local1.main.house["misc" + i][noMisc].color1);
colorful.setRGB(miscColor1);
if (miscColor2 != undefined) {
var colorful = new Color(_local1.main.house["misc" + i][noMisc].color2);
colorful.setRGB(miscColor2);
}
i++;
}
}
_global.control = this;
paintingSound = new Sound(this);
dropSound = new Sound(this);
dropSound2 = new Sound(this);
errorSound = new Sound(this);
garbageSound = new Sound(this);
}
Symbol 4 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 4 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 7 MovieClip [FPushButtonSymbol] Frame 1
#initclip 3
function FPushButtonClass() {
this.init();
}
FPushButtonClass.prototype = new FUIComponentClass();
Object.registerClass("FPushButtonSymbol", FPushButtonClass);
FPushButtonClass.prototype.init = function () {
var _local1 = this;
super.setSize(_local1._width, _local1._height);
_local1.boundingBox_mc.unloadMovie();
_local1.attachMovie("fpb_states", "fpbState_mc", 1);
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 2);
_local1.attachMovie("fpb_hitArea", "fpb_hitArea_mc", 3);
super.init();
_local1.btnState = false;
_local1.setClickHandler(_local1.clickHandler);
_local1._xscale = 100;
_local1._yscale = 100;
_local1.setSize(_local1.width, _local1.height);
if (_local1.label != undefined) {
_local1.setLabel(_local1.label);
}
_local1.ROLE_SYSTEM_PUSHBUTTON = 43;
_local1.STATE_SYSTEM_PRESSED = 8;
_local1.EVENT_OBJECT_STATECHANGE = 32778;
_local1.EVENT_OBJECT_NAMECHANGE = 32780;
_local1._accImpl.master = _local1;
_local1._accImpl.stub = false;
_local1._accImpl.get_accRole = _local1.get_accRole;
_local1._accImpl.get_accName = _local1.get_accName;
_local1._accImpl.get_accState = _local1.get_accState;
_local1._accImpl.get_accDefaultAction = _local1.get_accDefaultAction;
_local1._accImpl.accDoDefaultAction = _local1.accDoDefaultAction;
};
FPushButtonClass.prototype.setHitArea = function (w, h) {
var _local1 = this.fpb_hitArea_mc;
this.hitArea = _local1;
_local1._visible = false;
_local1._width = w;
_local1._height = ((arguments.length > 1) ? (h) : (_local1._height));
};
FPushButtonClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = w;
var _local3 = h;
_local2 = ((_local2 < 6) ? 6 : (_local2));
if (arguments.length > 1) {
if (_local3 < 6) {
_local3 = 6;
}
}
super.setSize(_local2, _local3);
_local1.setLabel(_local1.getLabel());
_local1.arrangeLabel();
_local1.setHitArea(_local2, _local3);
_local1.boundingBox_mc._width = _local2;
_local1.boundingBox_mc._height = _local3;
_local1.drawFrame();
if (_local1.focused) {
super.myOnSetFocus();
}
_local1.initContentPos("fLabel_mc");
};
FPushButtonClass.prototype.arrangeLabel = function () {
var _local3 = this;
var _local1 = _local3.fLabel_mc;
var h = _local3.height;
var w = (_local3.width - 2);
var _local2 = 1;
_local3.fLabel_mc.setSize(w - (_local2 * 4));
_local1._x = _local2 * 3;
_local1._y = (h / 2) - (_local1._height / 2);
};
FPushButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FPushButtonClass.prototype.setLabel = function (label) {
var _local1 = this;
_local1.fLabel_mc.setLabel(label);
_local1.txtFormat();
_local1.arrangeLabel();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_NAMECHANGE);
}
};
FPushButtonClass.prototype.getEnabled = function () {
return(this.enabled);
};
FPushButtonClass.prototype.setEnabled = function (enable) {
var _local1 = this;
if (enable || (enable == undefined)) {
_local1.gotoFrame(1);
_local1.drawFrame();
_local1.flabel_mc.setEnabled(true);
_local1.enabled = true;
super.setEnabled(true);
} else {
_local1.gotoFrame(4);
_local1.drawFrame();
_local1.flabel_mc.setEnabled(false);
_local1.enabled = false;
super.setEnabled(false);
}
};
FPushButtonClass.prototype.txtFormat = function () {
var _local1 = this;
var _local2 = _local1.textStyle;
var _local3 = _local1.styleTable;
_local2.align = ((_local3.textAlign.value == undefined) ? ((_local2.align = "center")) : undefined);
_local2.leftMargin = ((_local3.textLeftMargin.value == undefined) ? ((_local2.leftMargin = 1)) : undefined);
_local2.rightMargin = ((_local3.textRightMargin.value == undefined) ? ((_local2.rightMargin = 1)) : undefined);
if (_local1.fLabel_mc._height > _local1.height) {
super.setSize(_local1.width, _local1.fLabel_mc._height);
} else {
super.setSize(_local1.width, _local1.height);
}
_local1.fLabel_mc.labelField.setTextFormat(_local1.textStyle);
_local1.setEnabled(_local1.enable);
};
FPushButtonClass.prototype.drawFrame = function () {
var _local3 = this;
var _local2 = 1;
var x1 = 0;
var y1 = 0;
var x2 = _local3.width;
var y2 = _local3.height;
var mc_array = ["up_mc", "over_mc", "down_mc", "disabled_mc"];
var frame = mc_array[_local3.fpbState_mc._currentframe - 1];
var mc = "frame";
var _local1 = 0;
while (_local1 < 6) {
x1 = x1 + ((_local1 % 2) * _local2);
y1 = y1 + ((_local1 % 2) * _local2);
x2 = x2 - (((_local1 + 1) % 2) * _local2);
y2 = y2 - (((_local1 + 1) % 2) * _local2);
var w = (Math.abs(x1 - x2) + (2 * _local2));
var h = (Math.abs(y1 - y2) + (2 * _local2));
_local3.fpbState_mc[frame][mc + _local1]._width = w;
_local3.fpbState_mc[frame][mc + _local1]._height = h;
_local3.fpbState_mc[frame][mc + _local1]._x = x1 - _local2;
_local3.fpbState_mc[frame][mc + _local1]._y = y1 - _local2;
_local1++;
}
};
FPushButtonClass.prototype.setClickHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((arguments.length < 2) ? (_local1._parent) : (obj));
_local1.clickHandler = chng;
};
FPushButtonClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.clickHandler](_local1);
};
FPushButtonClass.prototype.initContentPos = function (mc) {
var _local1 = this;
_local1.incrVal = 1;
_local1.initx = _local1[mc]._x - (_local1.getBtnState() * _local1.incrVal);
_local1.inity = _local1[mc]._y - (_local1.getBtnState() * _local1.incrVal);
_local1.togx = _local1.initx + _local1.incrVal;
_local1.togy = _local1.inity + _local1.incrVal;
};
FPushButtonClass.prototype.setBtnState = function (state) {
var _local1 = this;
_local1.btnState = state;
if (state) {
_local1.fLabel_mc._x = _local1.togx;
_local1.fLabel_mc._y = _local1.togy;
} else {
_local1.fLabel_mc._x = _local1.initx;
_local1.fLabel_mc._y = _local1.inity;
}
};
FPushButtonClass.prototype.getBtnState = function () {
return(this.btnState);
};
FPushButtonClass.prototype.myOnSetFocus = function () {
this.focused = true;
super.myOnSetFocus();
};
FPushButtonClass.prototype.onPress = function () {
var _local1 = this;
_local1.pressFocus();
_local1.fpbState_mc.gotoAndStop(3);
_local1.drawFrame();
_local1.setBtnState(true);
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRelease = function () {
var _local1 = this;
_local1.fpbState_mc.gotoAndStop(2);
_local1.drawFrame();
_local1.executeCallBack();
_local1.setBtnState(false);
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRollOver = function () {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
};
FPushButtonClass.prototype.onRollOut = function () {
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onReleaseOutside = function () {
var _local1 = this;
_local1.setBtnState(false);
_local1.fpbState_mc.gotoAndStop(1);
_local1.drawFrame();
};
FPushButtonClass.prototype.onDragOut = function () {
var _local1 = this;
_local1.setBtnState(false);
_local1.fpbState_mc.gotoAndStop(1);
_local1.drawFrame();
};
FPushButtonClass.prototype.onDragOver = function () {
var _local1 = this;
_local1.setBtnState(true);
_local1.fpbState_mc.gotoAndStop(3);
_local1.drawFrame();
};
FPushButtonClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if ((Key.getCode() == 32) && (_local1.pressOnce == undefined)) {
_local1.onPress();
_local1.pressOnce = 1;
}
};
FPushButtonClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.onRelease();
this.pressOnce = undefined;
}
};
FPushButtonClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_PUSHBUTTON);
};
FPushButtonClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FPushButtonClass.prototype.get_accState = function (childId) {
var _local1 = this;
if (_local1.pressOnce) {
return(_local1.master.STATE_SYSTEM_PRESSED);
}
return(_local1.master.STATE_SYSTEM_DEFAULT);
};
FPushButtonClass.prototype.get_accDefaultAction = function (childId) {
return("Press");
};
FPushButtonClass.prototype.accDoDefaultAction = function (childId) {
this.master.onPress();
this.master.onRelease();
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 12 MovieClip [FLabelSymbol] Frame 1
#initclip 1
_global.FLabelClass = function () {
var _local1 = this;
if (_local1.hostComponent == undefined) {
_local1.hostComponent = ((_local1._parent.controller == undefined) ? (_local1._parent) : (_local1._parent.controller));
}
if (_local1.customTextStyle == undefined) {
if (_local1.hostComponent.textStyle == undefined) {
_local1.hostComponent.textStyle = new TextFormat();
}
_local1.textStyle = _local1.hostComponent.textStyle;
_local1.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local1 = this;
var _local2 = _local1.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
_local1.labelField.embedFonts = _local2;
}
_local1.labelField.setNewTextFormat(_local1.textStyle);
_local1.labelField.text = label;
_local1.labelField._height = _local1.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
var _local2 = this;
var _local3 = enable;
_local2.enable = _local3;
var _local1 = _local2.hostComponent.styleTable[(_local3 ? "textColor" : "textDisabled")].value;
if (_local1 == undefined) {
_local1 = (_local3 ? 0 : 8947848);
}
_local2.setColor(_local1);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 21 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 27 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 33 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame4, "shadow");
component.registerSkinElement(frame2, "darkshadow");
component.registerSkinElement(frame3, "highlight");
component.registerSkinElement(frame1, "highlight3D");
Symbol 39 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 40 MovieClip [fpb_states] Frame 1
stop();
Symbol 40 MovieClip [fpb_states] Frame 2
stop();
Symbol 40 MovieClip [fpb_states] Frame 3
stop();
Symbol 40 MovieClip [fpb_states] Frame 4
stop();
Symbol 41 MovieClip [FUIComponentSymbol] Frame 1
#initclip 2
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Instance of Symbol 70 MovieClip "percent" in Symbol 71 MovieClip Frame 1
onClipEvent (load) {
vPercent = 0;
}
onClipEvent (enterFrame) {
vPercent = Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
tPercent = vPercent add "%";
if (vPercent == 100) {
_root.gotoAndPlay(3);
} else {
_root.gotoAndPlay(1);
}
}
Symbol 86 MovieClip Frame 1
_root.carNo = Math.ceil(Math.random() * 10);
if ((_root.carNoPrec == 3) and (_root.carNo == 4)) {
_root.carNo = 9;
}
if ((_root.carNoPrec == 3) and (_root.carNo == 5)) {
_root.carNo = 9;
}
_root.carNoPrec = _root.carNo;
Symbol 86 MovieClip Frame 2
if (_root.carNo == 3) {
_root.main.car1.gotoAndPlay("car1-2_Stop");
}
Symbol 86 MovieClip Frame 26
if ((_root.carNo == 4) or (_root.carNo == 7)) {
_root.main.car1.gotoAndPlay("car1_cross");
}
if ((_root.carNo == 5) or (_root.carNo == 8)) {
_root.main.car1.gotoAndPlay("car2_cross");
}
Symbol 86 MovieClip Frame 80
if (_root.carNo == 8) {
_root.main.car1.gotoAndPlay("car1_cross");
}
Symbol 86 MovieClip Frame 127
if ((_root.carNo == 1) or (_root.carNo == 6)) {
_root.main.car3.gotoAndPlay("car3_Stop");
}
if (_root.carNo == 7) {
_root.main.car1.gotoAndPlay("car2_cross");
}
Symbol 86 MovieClip Frame 176
if (_root.carNo == 2) {
_root.main.car3.gotoAndPlay("car3_cross");
}
Symbol 86 MovieClip Frame 270
if (_root.carNo == 6) {
_root.main.car3.gotoAndPlay("car3_cross");
}
Symbol 86 MovieClip Frame 290
Instance of Symbol 90 MovieClip "miscHotZone" in Symbol 91 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.contactMisc = true;
} else {
_root.contactMisc = false;
}
}
Instance of Symbol 105 MovieClip "color1" in Symbol 107 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveMisc(this);
}
Instance of Symbol 95 MovieClip in Symbol 111 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
Instance of Symbol 99 MovieClip in Symbol 111 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
Instance of Symbol 110 MovieClip in Symbol 111 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 111 MovieClip in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
Instance of Symbol 112 MovieClip in Symbol 113 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
Symbol 125 Button
on (release) {
_root.main.gotoAndPlay("Play");
}
Symbol 135 Button
on (release) {
_root.main.mickey.gotoAndPlay("instructions");
}
Instance of Symbol 113 MovieClip in Symbol 136 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
Symbol 148 Button
on (release) {
this.gotoAndPlay(1);
}
Symbol 151 Button
on (release) {
gotoAndPlay ("instructions");
}
Symbol 164 Button
on (release) {
gotoAndPlay ("instructions");
}
Symbol 176 Button
on (release) {
loadMovie (_root.levelSelector, _root);
}
Symbol 181 Button
on (release) {
this.gotoAndPlay("printing");
_root.main.gotoAndPlay("#p");
}
Symbol 187 Button
on (release) {
_root.main.mickey.gotoAndPlay("sendDisney");
}
Symbol 191 Button
on (release) {
this.gotoAndPlay(1);
clearSound = new Sound(this);
clearSound.attachSound("clear");
clearSound.start();
_global.control.clearAll();
}
Symbol 195 Button
on (release) {
this.gotoAndPlay(1);
}
Symbol 203 Button
on (release) {
_root.senderName = from_name;
_root.senderAge = from_age;
_root.senderState = from_state;
if ((_root.senderName.length == 0) or (_root.senderName == undefined)) {
_root.main.mickey.errorMessage.gotoAndStop(4);
} else if ((_root.senderAge.length == 0) or (_root.senderAge == undefined)) {
_root.main.mickey.errorMessage.gotoAndStop(5);
} else if ((_root.senderState.length == 0) or (_root.senderState == undefined)) {
_root.main.mickey.errorMessage.gotoAndStop(6);
} else {
sendSound = new Sound(this);
sendSound.attachSound("send");
sendSound.start();
_global.control.creerString();
_global.control.sendToDisney();
this.gotoAndPlay("sentDisney");
}
}
Symbol 206 Button
on (release) {
this.gotoAndPlay("done");
}
Symbol 213 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 2
stop();
Symbol 213 MovieClip Frame 3
stop();
Symbol 213 MovieClip Frame 4
stop();
Symbol 213 MovieClip Frame 5
stop();
Symbol 213 MovieClip Frame 6
stop();
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 2
stop();
Instance of Symbol 140 MovieClip in Symbol 223 MovieClip Frame 2
onClipEvent (load) {
this.onRollOver = function () {
this.useHandCursor = false;
};
}
Symbol 223 MovieClip Frame 3
stop();
Symbol 223 MovieClip Frame 4
stop();
Symbol 223 MovieClip Frame 5
stop();
Symbol 223 MovieClip Frame 6
stop();
Symbol 223 MovieClip Frame 7
stop();
Symbol 223 MovieClip Frame 8
stop();
Symbol 223 MovieClip Frame 9
stop();
Symbol 223 MovieClip Frame 10
stop();
Symbol 223 MovieClip Frame 11
yourName._accProps = new Object();
yourAge._accProps = new Object();
yourState._accProps = new Object();
yourName.tabIndex = 3;
yourAge.tabIndex = 4;
yourState.tabIndex = 4;
stop();
Symbol 223 MovieClip Frame 65
this.gotoAndPlay("done");
Symbol 223 MovieClip Frame 114
this.gotoAndPlay("done");
Symbol 256 Button
on (release) {
if (_root.mouseClick == false) {
timer = getTimer() / 1000;
_root.mouseClick = true;
} else {
_root.selectedObject.removeMovieClip();
timer2 = getTimer() / 1000;
if ((timer2 - timer) < 0.25) {
_root.main.mickey.gotoAndPlay("confirm");
} else {
timer = getTimer() / 1000;
_root.mouseClick = true;
}
}
if (_root.main.cursor._visible == true) {
_root.main.cursor._visible = false;
Mouse.show();
}
}
on (rollOver) {
_root.main.altMessage.gotoAndPlay(2);
}
on (rollOut) {
_root.main.altMessage.gotoAndPlay(1);
}
Symbol 260 Button
on (release) {
_root.mainMusic.stop();
this.gotoAndPlay(2);
}
Symbol 263 Button
on (release) {
_root.mainMusic.start(0, 1000);
this.gotoAndPlay(1);
}
Symbol 264 MovieClip Frame 1
stop();
Symbol 264 MovieClip Frame 2
stop();
Symbol 266 MovieClip Frame 1
stop();
Symbol 266 MovieClip Frame 2
stop();
Instance of Symbol 97 MovieClip "color1" in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (mouseDown) {
_global.control.changeColor(this);
}
Instance of Symbol 274 MovieClip "color1" in Symbol 276 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (mouseDown) {
_global.control.changeColor(this);
}
Instance of Symbol 280 MovieClip "color1" in Symbol 282 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (mouseDown) {
_global.control.changeColor(this);
}
Instance of Symbol 286 MovieClip "color2" in Symbol 290 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (mouseDown) {
_global.control.changeColor(this);
}
Instance of Symbol 288 MovieClip "color1" in Symbol 290 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (mouseDown) {
_global.control.changeColor(this);
}
Instance of Symbol 294 MovieClip "color1" in Symbol 298 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (mouseDown) {
_global.control.changeColor(this);
}
Instance of Symbol 296 MovieClip "color2" in Symbol 298 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (mouseDown) {
_global.control.changeColor(this);
}
Instance of Symbol 302 MovieClip "color1" in Symbol 304 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (mouseDown) {
_global.control.changeColor(this);
}
Symbol 307 MovieClip Frame 1
stop();
Instance of Symbol 272 MovieClip in Symbol 307 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.contactLight = true;
} else {
_root.contactLight = false;
}
}
Symbol 307 MovieClip Frame 2
stop();
Instance of Symbol 278 MovieClip in Symbol 307 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.contactLight = true;
} else {
_root.contactLight = false;
}
}
Symbol 307 MovieClip Frame 3
stop();
Instance of Symbol 284 MovieClip in Symbol 307 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.contactLight = true;
} else {
_root.contactLight = false;
}
}
Symbol 307 MovieClip Frame 4
stop();
Instance of Symbol 292 MovieClip in Symbol 307 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.contactLight = true;
} else {
_root.contactLight = false;
}
}
Symbol 307 MovieClip Frame 5
stop();
Instance of Symbol 300 MovieClip in Symbol 307 MovieClip Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.contactLight = true;
} else {
_root.contactLight = false;
}
}
Symbol 307 MovieClip Frame 6
stop();
Instance of Symbol 306 MovieClip in Symbol 307 MovieClip Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.contactLight = true;
} else {
_root.contactLight = false;
}
}
Instance of Symbol 310 MovieClip "color1" in Symbol 322 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (mouseDown) {
_global.control.changeColorEntrance(this);
}
Instance of Symbol 324 MovieClip "color1" in Symbol 334 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (mouseDown) {
_global.control.changeColorEntrance(this);
}
Instance of Symbol 326 MovieClip "color2" in Symbol 334 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (mouseDown) {
_global.control.changeColorEntrance(this);
}
Instance of Symbol 336 MovieClip "color1" in Symbol 347 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (mouseDown) {
_global.control.changeColorEntrance(this);
}
Instance of Symbol 338 MovieClip "color2" in Symbol 347 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (mouseDown) {
_global.control.changeColorEntrance(this);
}
Instance of Symbol 349 MovieClip "color2" in Symbol 357 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (mouseDown) {
_global.control.changeColorEntrance(this);
}
Instance of Symbol 351 MovieClip "color1" in Symbol 357 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (mouseDown) {
_global.control.changeColorEntrance(this);
}
Instance of Symbol 359 MovieClip "color2" in Symbol 370 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (mouseDown) {
_global.control.changeColorEntrance(this);
}
Instance of Symbol 361 MovieClip "color1" in Symbol 370 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
onClipEvent (mouseDown) {
_global.control.changeColorEntrance(this);
}
Symbol 371 MovieClip Frame 1
stop();
Symbol 371 MovieClip Frame 2
stop();
Symbol 371 MovieClip Frame 3
stop();
Symbol 371 MovieClip Frame 4
stop();
Symbol 371 MovieClip Frame 5
stop();
Symbol 371 MovieClip Frame 6
stop();
Instance of Symbol 373 MovieClip "color1" in Symbol 377 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveMisc(this);
}
Instance of Symbol 375 MovieClip "color2" in Symbol 377 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveMisc(this);
}
Instance of Symbol 379 MovieClip "color1" in Symbol 381 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveMisc(this);
}
Instance of Symbol 383 MovieClip "color1" in Symbol 392 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveMisc(this);
}
Instance of Symbol 388 MovieClip "color2" in Symbol 392 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveMisc(this);
}
Instance of Symbol 394 MovieClip "color1" in Symbol 398 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveMisc(this);
}
Instance of Symbol 396 MovieClip "color2" in Symbol 398 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveMisc(this);
}
Instance of Symbol 400 MovieClip "color1" in Symbol 402 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveMisc(this);
}
Symbol 403 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 2
stop();
Symbol 403 MovieClip Frame 3
stop();
Symbol 403 MovieClip Frame 4
stop();
Symbol 403 MovieClip Frame 5
stop();
Symbol 403 MovieClip Frame 6
stop();
Instance of Symbol 405 MovieClip "color1" in Symbol 407 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveLight(this);
}
Instance of Symbol 409 MovieClip "color1" in Symbol 413 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveLight(this);
}
Instance of Symbol 412 MovieClip "drag" in Symbol 413 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveLight(this);
}
Instance of Symbol 354 MovieClip "drag" in Symbol 414 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveLight(this);
}
Instance of Symbol 416 MovieClip "color1" in Symbol 418 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveLight(this);
}
Instance of Symbol 420 MovieClip "drag" in Symbol 421 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveLight(this);
}
Symbol 422 MovieClip Frame 1
stop();
Symbol 422 MovieClip Frame 2
stop();
Symbol 422 MovieClip Frame 3
stop();
Symbol 422 MovieClip Frame 4
stop();
Symbol 422 MovieClip Frame 5
stop();
Symbol 422 MovieClip Frame 6
stop();
Symbol 422 MovieClip Frame 7
stop();
Symbol 422 MovieClip Frame 8
stop();
Symbol 422 MovieClip Frame 9
stop();
Symbol 423 MovieClip Frame 1
stop();
Symbol 424 MovieClip Frame 1
stop();
Instance of Symbol 266 MovieClip "backLight" in Symbol 424 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveObject(this);
}
Instance of Symbol 95 MovieClip in Symbol 424 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 307 MovieClip "facade" in Symbol 424 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
Instance of Symbol 371 MovieClip "entrance" in Symbol 424 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
Instance of Symbol 403 MovieClip "misc" in Symbol 424 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 423 MovieClip "sign" in Symbol 424 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.moveObject(this);
}
Symbol 454 MovieClip Frame 1
stop();
Symbol 454 MovieClip Frame 60
stop();
Symbol 454 MovieClip Frame 84
stop();
Symbol 454 MovieClip Frame 108
stop();
Symbol 457 MovieClip Frame 1
stop();
Symbol 457 MovieClip Frame 71
stop();
Symbol 457 MovieClip Frame 89
stop();
Symbol 461 Button
on (release) {
if (_root.bandeACacher == "bandeSign") {
_root.main[_root.bandeACacher].gotoAndPlay(6);
} else {
_root.main[_root.bandeACacher].gotoAndPlay(12);
}
_root.bandeACacher = "";
if (_root.main.cursor._visible == true) {
_root.main.cursor._visible = false;
Mouse.show();
}
if (_root.main.house.facade._visible == false) {
_root.main.mickey.gotoAndPlay("facade");
} else if (_root.main.house.entrance._visible == false) {
_root.main.mickey.gotoAndPlay("entrance");
} else if ((_root.main.house.sign1._visible == false) or (_root.main.house.sign1._visible == undefined)) {
_root.main.mickey.gotoAndPlay("sign");
} else {
niceSound = new Sound(this);
niceSound.attachSound("nice");
niceSound.start();
_global.control.creerSO();
_root.main.mickey.gotoAndPlay("done");
}
}
Symbol 472 Button
on (release) {
if (_root.bandeACacher == "bandeSign") {
_root.main[_root.bandeACacher].gotoAndPlay(6);
} else {
_root.main[_root.bandeACacher].gotoAndPlay(12);
}
_root.bandeACacher = "";
if (_root.main.cursor._visible == true) {
_root.main.cursor._visible = false;
Mouse.show();
}
_root.main.mickey.gotoAndPlay("instructions");
}
Symbol 476 MovieClip Frame 1
_root.bandeBouge = false;
barreCache._visible = false;
stop();
Instance of Symbol 140 MovieClip "barreCache" in Symbol 476 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
this.useHandCursor = false;
};
}
Symbol 476 MovieClip Frame 2
_root.bandeSortie = true;
_root.bandeBouge = true;
Symbol 476 MovieClip Frame 11
_root.main[_root.bandeCourante]._visible = true;
if (_root.bandeCourante == "lightItems") {
i = 1;
while (i <= 9) {
itemVisible = "item0" + i;
_root.main.lightItems[itemVisible]._visible = true;
i++;
}
}
if (_root.bandeCourante == "miscItems") {
i = 1;
while (i <= 6) {
itemVisible = "item0" + i;
_root.main.miscItems[itemVisible]._visible = true;
ombreRemove = "ombre0" + i;
_root.main.miscItems[ombreRemove]._visible = true;
i++;
}
}
_root.bandeSortie = true;
_root.bandeComplete = true;
_root.bandeBouge = false;
barreCache._visible = true;
stop();
Instance of Symbol 475 MovieClip in Symbol 476 MovieClip Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.contactBande = true;
} else {
_root.contactBande = false;
}
}
Symbol 476 MovieClip Frame 12
_root.main[_root.bandeCourante]._visible = false;
_root.bandeRetour = "true";
_root.bandeBouge = true;
barreCache._visible = false;
Symbol 476 MovieClip Frame 21
_root.bandeRetour = "false";
_root.bandeBouge = false;
gotoAndStop (1);
Symbol 477 MovieClip Frame 1
_root.bandeBouge = false;
barreCache._visible = false;
stop();
Symbol 477 MovieClip Frame 2
_root.bandeSortie = true;
_root.bandeBouge = true;
Symbol 477 MovieClip Frame 5
_root.main[_root.bandeCourante]._visible = true;
_root.bandeSortie = true;
_root.bandeComplete = true;
_root.bandeBouge = false;
barreCache._visible = true;
stop();
Symbol 477 MovieClip Frame 6
_root.main[_root.bandeCourante]._visible = false;
_root.bandeRetour = "true";
_root.bandeBouge = true;
barreCache._visible = false;
Symbol 477 MovieClip Frame 9
_root.bandeRetour = "false";
_root.bandeBouge = false;
gotoAndStop (1);
Instance of Symbol 478 MovieClip "item05" in Symbol 479 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.changeFacade(this);
}
onClipEvent (load) {
this.onRollOver = function () {
_root.readyToComeBack = "true";
};
}
Instance of Symbol 478 MovieClip "item04" in Symbol 479 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.changeFacade(this);
}
onClipEvent (load) {
this.onRollOver = function () {
_root.readyToComeBack = "true";
};
}
Instance of Symbol 478 MovieClip "item03" in Symbol 479 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.changeFacade(this);
}
onClipEvent (load) {
this.onRollOver = function () {
_root.readyToComeBack = "true";
};
}
Instance of Symbol 478 MovieClip "item02" in Symbol 479 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.changeFacade(this);
}
onClipEvent (load) {
this.onRollOver = function () {
_root.readyToComeBack = "true";
};
}
Instance of Symbol 478 MovieClip "item01" in Symbol 479 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.changeFacade(this);
}
onClipEvent (load) {
this.onRollOver = function () {
_root.readyToComeBack = "true";
};
}
Instance of Symbol 478 MovieClip "item06" in Symbol 479 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.changeFacade(this);
}
onClipEvent (load) {
this.onRollOver = function () {
_root.readyToComeBack = "true";
};
}
Instance of Symbol 478 MovieClip "item01" in Symbol 480 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.changeEntrance(this);
}
onClipEvent (load) {
this.onRollOver = function () {
_root.readyToComeBack = "true";
};
}
Instance of Symbol 478 MovieClip "item02" in Symbol 480 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.changeEntrance(this);
}
onClipEvent (load) {
this.onRollOver = function () {
_root.readyToComeBack = "true";
};
}
Instance of Symbol 478 MovieClip "item03" in Symbol 480 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.changeEntrance(this);
}
onClipEvent (load) {
this.onRollOver = function () {
_root.readyToComeBack = "true";
};
}
Instance of Symbol 478 MovieClip "item04" in Symbol 480 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.changeEntrance(this);
}
onClipEvent (load) {
this.onRollOver = function () {
_root.readyToComeBack = "true";
};
}
Instance of Symbol 478 MovieClip "item05" in Symbol 480 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.changeEntrance(this);
}
onClipEvent (load) {
this.onRollOver = function () {
_root.readyToComeBack = "true";
};
}
Instance of Symbol 478 MovieClip "item1" in Symbol 483 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.duplicateBackLight(this);
}
Instance of Symbol 478 MovieClip "item2" in Symbol 483 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.duplicateBackLight(this);
}
Instance of Symbol 478 MovieClip "item3" in Symbol 483 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.duplicateFrontLight(this);
}
Instance of Symbol 478 MovieClip "item4" in Symbol 483 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.duplicateFrontLight(this);
}
Instance of Symbol 478 MovieClip "item5" in Symbol 483 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.duplicateFrontLight(this);
}
Instance of Symbol 478 MovieClip "item6" in Symbol 483 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.duplicateFrontLight(this);
}
Instance of Symbol 478 MovieClip "item7" in Symbol 483 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.duplicateFrontLight(this);
}
Instance of Symbol 478 MovieClip "item8" in Symbol 483 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.duplicateFrontLight(this);
}
Instance of Symbol 478 MovieClip "item9" in Symbol 483 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.duplicateFrontLight(this);
}
Instance of Symbol 110 MovieClip "item01" in Symbol 484 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.duplicateSign(this);
}
onClipEvent (load) {
this.onRollOver = function () {
_root.readyToComeBack = "true";
};
}
Instance of Symbol 107 MovieClip "item01" in Symbol 485 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 478 MovieClip "item1" in Symbol 485 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.duplicateMisc(this);
}
Instance of Symbol 478 MovieClip "item2" in Symbol 485 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.duplicateMisc(this);
}
Instance of Symbol 478 MovieClip "item3" in Symbol 485 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.duplicateMisc(this);
}
Instance of Symbol 478 MovieClip "item4" in Symbol 485 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.duplicateMisc(this);
}
Instance of Symbol 478 MovieClip "item5" in Symbol 485 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.duplicateMisc(this);
}
Instance of Symbol 478 MovieClip "item6" in Symbol 485 MovieClip Frame 1
onClipEvent (mouseDown) {
_global.control.duplicateMisc(this);
}
Symbol 495 Button
on (press) {
if (_root.bandeBouge == false) {
soundBande = new Sound(this);
soundBande.attachSound("bande");
soundBande2 = new Sound(this);
soundBande2.attachSound("bande2");
if (((_root.bandeSortie == true) and (root.bandeACacher != "")) and (_root.bandeACacher != "bandeFacade")) {
if (_root.bandeACacher == "bandeSign") {
if (_root.main[_root.bandeACacher]._currentframe == 5) {
_root.main[_root.bandeACacher].gotoAndPlay(6);
_root.main[_root.bandeCourante]._visible = false;
}
} else if (_root.main[_root.bandeACacher]._currentframe == 11) {
_root.main[_root.bandeACacher].gotoAndPlay(12);
_root.main[_root.bandeCourante]._visible = false;
}
_root.bandeSortie = false;
_root.bandeACacher = "";
}
if ((_root.bandeSortie == false) and (_root.bandeACacher != "bandeFacade")) {
_root.bandeCourante = "facadeItems";
_root.bandeACacher = "bandeFacade";
if (_root.main.cursor._visible == true) {
_root.main.cursor._visible = false;
Mouse.show();
}
soundBande.start();
bandeFacade.gotoAndPlay(2);
}
if ((_root.bandeSortie == true) and (_root.bandeACacher == "bandeFacade")) {
soundBande2.start();
_root.main[_root.bandeACacher].gotoAndPlay(12);
_root.bandeACacher = "";
_root.bandeSortie = false;
}
}
}
Symbol 497 Button
on (press) {
if (_root.bandeBouge == false) {
soundBande = new Sound(this);
soundBande.attachSound("bande");
soundBande2 = new Sound(this);
soundBande2.attachSound("bande2");
if (((_root.bandeSortie == true) and (root.bandeACacher != "")) and (_root.bandeACacher != "bandeEntrance")) {
if (_root.bandeACacher == "bandeSign") {
if (_root.main[_root.bandeACacher]._currentframe == 5) {
_root.main[_root.bandeACacher].gotoAndPlay(6);
_root.main[_root.bandeCourante]._visible = false;
}
} else if (_root.main[_root.bandeACacher]._currentframe == 11) {
_root.main[_root.bandeACacher].gotoAndPlay(12);
_root.main[_root.bandeCourante]._visible = false;
}
_root.bandeSortie = false;
_root.bandeACacher = "";
}
if ((_root.bandeSortie == false) and (_root.bandeACacher != "bandeEntrance")) {
_root.bandeCourante = "entranceItems";
_root.bandeACacher = "bandeEntrance";
if (_root.main.cursor._visible == true) {
_root.main.cursor._visible = false;
Mouse.show();
}
soundBande.start();
bandeEntrance.gotoAndPlay(2);
}
if ((_root.bandeSortie == true) and (_root.bandeACacher == "bandeEntrance")) {
soundBande2.start();
_root.main[_root.bandeACacher].gotoAndPlay(12);
_root.bandeACacher = "";
_root.bandeSortie = false;
}
}
}
Symbol 499 Button
on (press) {
if (_root.bandeBouge == false) {
soundBande = new Sound(this);
soundBande.attachSound("bande");
soundBande2 = new Sound(this);
soundBande2.attachSound("bande2");
if (((_root.bandeSortie == true) and (root.bandeACacher != "")) and (_root.bandeACacher != "bandeLights")) {
if (_root.bandeACacher == "bandeSign") {
if (_root.main[_root.bandeACacher]._currentframe == 5) {
_root.main[_root.bandeACacher].gotoAndPlay(6);
_root.main[_root.bandeCourante]._visible = false;
}
} else if (_root.main[_root.bandeACacher]._currentframe == 11) {
_root.main[_root.bandeACacher].gotoAndPlay(12);
_root.main[_root.bandeCourante]._visible = false;
}
_root.bandeSortie = false;
_root.bandeACacher = "";
}
if ((_root.bandeSortie == false) and (_root.bandeACacher != "bandeLights")) {
_root.bandeCourante = "lightItems";
_root.bandeACacher = "bandeLights";
if (_root.main.cursor._visible == true) {
_root.main.cursor._visible = false;
Mouse.show();
}
soundBande.start();
bandeLights.gotoAndPlay(2);
}
if ((_root.bandeSortie == true) and (_root.bandeACacher == "bandeLights")) {
soundBande2.start();
_root.main[_root.bandeACacher].gotoAndPlay(12);
_root.bandeACacher = "";
_root.bandeSortie = false;
}
}
}
Symbol 501 Button
on (press) {
if (_root.bandeBouge == false) {
soundBande = new Sound(this);
soundBande.attachSound("bande");
soundBande2 = new Sound(this);
soundBande2.attachSound("bande2");
if (((_root.bandeSortie == true) and (root.bandeACacher != "")) and (_root.bandeACacher != "bandeSign")) {
if (_root.bandeACacher == "bandeSign") {
if (_root.main[_root.bandeACacher]._currentframe == 5) {
_root.main[_root.bandeACacher].gotoAndPlay(6);
_root.main[_root.bandeCourante]._visible = false;
}
} else if (_root.main[_root.bandeACacher]._currentframe == 11) {
_root.main[_root.bandeACacher].gotoAndPlay(12);
_root.main[_root.bandeCourante]._visible = false;
}
_root.bandeSortie = false;
_root.bandeACacher = "";
}
if ((_root.bandeSortie == false) and (_root.bandeACacher != "bandeSign")) {
_root.bandeCourante = "signItems";
_root.bandeACacher = "bandeSign";
if (_root.main.cursor._visible == true) {
_root.main.cursor._visible = false;
Mouse.show();
}
soundBande.start();
bandeSign.gotoAndPlay(2);
}
if ((_root.bandeSortie == true) and (_root.bandeACacher == "bandeSign")) {
soundBande2.start();
_root.main[_root.bandeACacher].gotoAndPlay(6);
_root.bandeACacher = "";
_root.bandeSortie = false;
}
}
}
Symbol 503 Button
on (press) {
if (_root.bandeBouge == false) {
soundBande = new Sound(this);
soundBande.attachSound("bande");
soundBande2 = new Sound(this);
soundBande2.attachSound("bande2");
if (((_root.bandeSortie == true) and (root.bandeACacher != "")) and (_root.bandeACacher != "bandeMisc")) {
if (_root.bandeACacher == "bandeSign") {
if (_root.main[_root.bandeACacher]._currentframe == 5) {
_root.main[_root.bandeACacher].gotoAndPlay(6);
_root.main[_root.bandeCourante]._visible = false;
}
} else if (_root.main[_root.bandeACacher]._currentframe == 11) {
_root.main[_root.bandeACacher].gotoAndPlay(12);
_root.main[_root.bandeCourante]._visible = false;
}
_root.bandeSortie = false;
_root.bandeACacher = "";
}
if ((_root.bandeSortie == false) and (_root.bandeACacher != "bandeMisc")) {
_root.bandeCourante = "miscItems";
_root.bandeACacher = "bandeMisc";
if (_root.main.cursor._visible == true) {
_root.main.cursor._visible = false;
Mouse.show();
}
soundBande.start();
bandeMisc.gotoAndPlay(2);
}
if ((_root.bandeSortie == true) and (_root.bandeACacher == "bandeMisc")) {
soundBande2.start();
_root.main[_root.bandeACacher].gotoAndPlay(12);
_root.bandeACacher = "";
_root.bandeSortie = false;
}
}
}
Instance of Symbol 140 MovieClip in Symbol 507 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
this.useHandCursor = false;
};
}
Symbol 513 Button
on (release) {
_root.lum = Math.floor((_ymouse / MovieHeight) * 100);
setCurser();
}
Symbol 516 MovieClip Frame 1
function getR(rIn) {
rOut = rIn * 65536;
return(rOut);
}
function getG(gIn) {
gOut = gIn * 256;
return(gOut);
}
function getB(bIn) {
bOut = bIn * 1;
return(bOut);
}
function getColour(inputR, inputG, inputB) {
tempR = getR(inputR);
tempG = getG(inputG);
tempB = getB(inputB);
colourOutput = (tempR + tempG) + tempB;
return(colourOutput);
}
function getMIN(aMIN, bMIN, cMIN) {
var _local2 = bMIN;
var _local3 = cMIN;
var _local1 = aMIN;
if (_local1 > _local2) {
_local1 = _local2;
}
if (_local1 > _local3) {
_local1 = _local3;
}
return(_local1);
}
function getMAX(aMAX, bMAX, cMAX) {
var _local2 = bMAX;
var _local3 = cMAX;
var _local1 = aMAX;
if (_local1 > _local2) {
_local1 = _local2;
}
if (_local1 > _local3) {
_local1 = _local3;
}
return(_local1);
}
function rgb2hsv(rg) {
var _local1 = rg;
m = _local1.r;
if (_local1.g < m) {
m = _local1.g;
}
if (_local1.b < m) {
m = _local1.b;
}
v = _local1.r;
if (_local1.g > v) {
v = _local1.g;
}
if (_local1.b > v) {
v = _local1.b;
}
value = (100 * v) / 255;
delta = v - m;
if (v == 0) {
hs.s = 0;
} else {
hs.s = (100 * delta) / v;
}
if (hs.s == 0) {
hs.h = 0;
} else {
if (_local1.r == v) {
hs.h = (60 * (_local1.g - _local1.b)) / delta;
} else if (_local1.g == v) {
hs.h = 120 + ((60 * (_local1.b - _local1.r)) / delta);
} else if ((_local1.b = v)) {
hs.h = 240 + ((60 * (_local1.r - _local1.g)) / delta);
}
if (hs.h < 0) {
hs.h = hs.h + 360;
}
}
hs.v = Math.round(value);
hs.h = Math.round(hs.h);
hs.s = Math.round(hs.s);
return(hs);
}
function hsv2rgb(hs) {
var _local2 = hs;
var _local1 = new Object();
if (_local2.s == 0) {
_local1.r = (_local1.g = (_local1.b = Math.round(_local2.v * 2.55)));
return(_local1);
}
_local2.s = _local2.s / 100;
_local2.v = _local2.v / 100;
_local2.h = _local2.h / 60;
i = Math.floor(_local2.h);
f = _local2.h - i;
p = _local2.v * (1 - _local2.s);
q = _local2.v * (1 - (_local2.s * f));
t = _local2.v * (1 - (_local2.s * (1 - f)));
switch (i) {
case 0 :
_local1.r = _local2.v;
_local1.g = t;
_local1.b = p;
break;
case 1 :
_local1.r = q;
_local1.g = _local2.v;
_local1.b = p;
break;
case 2 :
_local1.r = p;
_local1.g = _local2.v;
_local1.b = t;
break;
case 3 :
_local1.r = p;
_local1.g = q;
_local1.b = _local2.v;
break;
case 4 :
_local1.r = t;
_local1.g = p;
_local1.b = _local2.v;
break;
default :
_local1.r = _local2.v;
_local1.g = p;
_local1.b = q;
}
_local1.r = Math.round(_local1.r * 255);
_local1.g = Math.round(_local1.g * 255);
_local1.b = Math.round(_local1.b * 255);
return(_local1);
}
Symbol 516 MovieClip Frame 2
thisColour = "000000";
MovieHeight = 128;
MovieWidth = 16;
zRange = 32;
hue = 78;
sat = 90;
lum = 100;
Symbol 516 MovieClip Frame 3
function setCurser() {
cross._y = (MovieHeight / 100) * _root.lum;
_root.setTheColour();
}
zStep = MovieHeight / zRange;
var z = 0;
while (z < zRange) {
var colourRGB = new Object();
var colourHSV = new Object();
colourHSV.h = _root.hue;
colourHSV.s = _root.sat;
colourHSV.v = (z / zRange) * 100;
colourRGB = hsv2rgb(colourHSV);
thisColour = getColour(colourRGB.r, colourRGB.g, colourRGB.b);
beginFill(thisColour);
moveTo(0, z * zStep);
lineTo(0 + MovieWidth, z * zStep);
lineTo(0 + MovieWidth, (z * zStep) + zStep);
lineTo(0, (z * zStep) + zStep);
lineTo(0, z * zStep);
endFill();
z++;
}
setCurser();
Instance of Symbol 515 MovieClip "cross" in Symbol 516 MovieClip Frame 3
onClipEvent (load) {
this.onPress = function () {
var _local1 = _parent;
var _local2 = this;
_local2.onEnterFrame = function () {
var _local1 = _parent;
var _local2 = this;
if (_local1._ymouse <= 0) {
_local2._y = 0;
} else if (_local1._ymouse >= 126.7) {
_local2._y = 126.7;
} else {
_local2._y = _local1._ymouse;
}
_root.lum = Math.floor((_local2._y / _local1.MovieHeight) * 100);
_local1.setCurser();
};
};
this.onRelease = (this.onReleaseOutside = function () {
delete this.onEnterFrame;
});
}
Symbol 516 MovieClip Frame 5
stop();
Symbol 519 Button
on (release) {
_root.hue = Math.floor((_xmouse / MovieWidth) * 360);
_root.sat = Math.floor((_ymouse / MovieHeight) * 100);
setCurser();
}
Symbol 522 Button
on (release) {
_root.hue = Math.floor((_xmouse / MovieWidth) * 360);
_root.sat = Math.floor((_ymouse / MovieHeight) * 100);
setCurser();
}
Symbol 523 MovieClip Frame 2
thisColour = "000000";
MovieHeight = 128;
MovieWidth = 128;
xRange = 32;
yRange = 32;
defaultAmountOfColour = 95;
hue = 90;
sat = 90;
Symbol 523 MovieClip Frame 4
function setCurser() {
var _local1 = _root;
cross._x = (MovieWidth / 360) * _local1.hue;
cross._y = (MovieHeight / 100) * _local1.sat;
_local1.setTheColour();
}
setCurser();
Symbol 523 MovieClip Frame 6
stop();
Symbol 524 Button
on (release) {
pot = "pot" + _root.activePot;
couleur = "color" + _root.activePot;
_root[couleur] = "0x" + _root.inValue;
var colorful = new Color(_root.main[pot].color);
colorful.setRGB("0x" + _root.inValue);
_root.main.mcColorPicker._visible = false;
_root.main.colorWindow._visible = false;
}
Symbol 525 Button
on (release) {
pot = "pot" + _root.activePot;
couleur = "color" + _root.activePot;
var colorful = new Color(_root.main[pot].color);
colorful.setRGB(_root[couleur]);
_root.main.mcColorPicker._visible = false;
_root.main.colorWindow._visible = false;
}
Symbol 538 MovieClip Frame 1
stop();
Symbol 538 MovieClip Frame 99
stop();
Symbol 551 Button
on (release) {
_global.control.resetAll();
_root.main.gotoAndPlay("title");
}
Symbol 555 MovieClip Frame 1
if ((_root.stringLevel1 != "") and (_root.stringLevel1 != undefined)) {
_root.main.gotoAndPlay("visual");
}
Symbol 555 MovieClip Frame 3
stop();
Symbol 555 MovieClip Frame 4
_root.main.house.facade._visible = false;
_root.main.house.entrance._visible = false;
_root.main.house.backLight._visible = false;
_root.main.house.light._visible = false;
_root.main.house.sign._visible = false;
_root.main.house.sign1._visible = false;
_root.main.house.misc._visible = false;
_global.control.initialiseColor();
_global.control.chargerSO();
Instance of Symbol 140 MovieClip in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this.useHandCursor = false;
this.onRollOver = function () {
var _local1 = _root;
if (((_local1.bandeRetour != "true") and (_local1.bandeSortie == true)) and (_local1.readyToComeBack == "true")) {
if (_local1.bandeACacher == "bandeSign") {
_local1.main[_local1.bandeACacher].gotoAndPlay(6);
} else {
_local1.main[_local1.bandeACacher].gotoAndPlay(12);
}
_local1.readyToComeBack = "false";
_local1.bandeACacher = "";
}
};
}
Instance of Symbol 140 MovieClip in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this.useHandCursor = false;
this.onRollOver = function () {
var _local1 = _root;
if (((_local1.bandeRetour != "true") and (_local1.bandeSortie == true)) and (_local1.readyToComeBack == "true")) {
if (_local1.bandeACacher == "bandeSign") {
_local1.main[_local1.bandeACacher].gotoAndPlay(6);
} else {
_local1.main[_local1.bandeACacher].gotoAndPlay(12);
}
_local1.readyToComeBack = "false";
_local1.bandeACacher = "";
}
};
}
Instance of Symbol 140 MovieClip in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this.useHandCursor = false;
this.onRollOver = function () {
var _local1 = _root;
if (((_local1.bandeRetour != "true") and (_local1.bandeSortie == true)) and (_local1.readyToComeBack == "true")) {
if (_local1.bandeACacher == "bandeSign") {
_local1.main[_local1.bandeACacher].gotoAndPlay(6);
} else {
_local1.main[_local1.bandeACacher].gotoAndPlay(12);
}
_local1.readyToComeBack = "false";
_local1.bandeACacher = "";
}
};
}
Instance of Symbol 140 MovieClip in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this.useHandCursor = false;
this.onRollOver = function () {
var _local1 = _root;
if (((_local1.bandeRetour != "true") and (_local1.bandeSortie == true)) and (_local1.readyToComeBack == "true")) {
if (_local1.bandeACacher == "bandeSign") {
_local1.main[_local1.bandeACacher].gotoAndPlay(6);
} else {
_local1.main[_local1.bandeACacher].gotoAndPlay(12);
}
_local1.readyToComeBack = "false";
_local1.bandeACacher = "";
}
};
}
Instance of Symbol 140 MovieClip in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this.useHandCursor = false;
this.onRollOver = function () {
var _local1 = _root;
if (((_local1.bandeRetour != "true") and (_local1.bandeSortie == true)) and (_local1.readyToComeBack == "true")) {
if (_local1.bandeACacher == "bandeSign") {
_local1.main[_local1.bandeACacher].gotoAndPlay(6);
} else {
_local1.main[_local1.bandeACacher].gotoAndPlay(12);
}
_local1.readyToComeBack = "false";
_local1.bandeACacher = "";
}
};
}
Instance of Symbol 140 MovieClip in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this.useHandCursor = false;
this.onRollOver = function () {
var _local1 = _root;
if (((_local1.bandeRetour != "true") and (_local1.bandeSortie == true)) and (_local1.readyToComeBack == "true")) {
if (_local1.bandeACacher == "bandeSign") {
_local1.main[_local1.bandeACacher].gotoAndPlay(6);
} else {
_local1.main[_local1.bandeACacher].gotoAndPlay(12);
}
_local1.readyToComeBack = "false";
_local1.bandeACacher = "";
}
};
}
Instance of Symbol 140 MovieClip in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this.useHandCursor = false;
this.onRollOver = function () {
var _local1 = _root;
if (((_local1.bandeRetour != "true") and (_local1.bandeSortie == true)) and (_local1.readyToComeBack == "true")) {
if (_local1.bandeACacher == "bandeSign") {
_local1.main[_local1.bandeACacher].gotoAndPlay(6);
} else {
_local1.main[_local1.bandeACacher].gotoAndPlay(12);
}
_local1.readyToComeBack = "false";
_local1.bandeACacher = "";
}
};
}
Instance of Symbol 140 MovieClip in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this.useHandCursor = false;
this.onRollOver = function () {
var _local1 = _root;
if (((_local1.bandeRetour != "true") and (_local1.bandeSortie == true)) and (_local1.readyToComeBack == "true")) {
if (_local1.bandeACacher == "bandeSign") {
_local1.main[_local1.bandeACacher].gotoAndPlay(6);
} else {
_local1.main[_local1.bandeACacher].gotoAndPlay(12);
}
_local1.readyToComeBack = "false";
_local1.bandeACacher = "";
}
};
}
Instance of Symbol 229 MovieClip "pot7" in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this.onPress = function () {
_global.control.paintCursor(this);
};
}
Instance of Symbol 233 MovieClip "pot6" in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this.onPress = function () {
_global.control.paintCursor(this);
};
}
Instance of Symbol 237 MovieClip "pot5" in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this.onPress = function () {
_global.control.paintCursor(this);
};
}
Instance of Symbol 241 MovieClip "pot4" in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this.onPress = function () {
_global.control.paintCursor(this);
};
}
Instance of Symbol 245 MovieClip "pot3" in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this.onPress = function () {
_global.control.paintCursor(this);
};
}
Instance of Symbol 158 MovieClip "pot2" in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this.onPress = function () {
_global.control.paintCursor(this);
};
}
Instance of Symbol 249 MovieClip "pot1" in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this.onPress = function () {
_global.control.paintCursor(this);
};
}
Instance of Symbol 264 MovieClip "stopSound" in Symbol 555 MovieClip Frame 4
/* no clip actions */
Instance of Symbol 424 MovieClip "house" in Symbol 555 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.contact = true;
} else {
_root.contact = false;
}
}
Instance of Symbol 479 MovieClip "facadeItems" in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 480 MovieClip "entranceItems" in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 483 MovieClip "lightItems" in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 484 MovieClip "signItems" in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 485 MovieClip "miscItems" in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 507 MovieClip "colorWindow" in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 526 MovieClip "mcColorPicker" in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 528 MovieClip in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this.onRelease = function () {
var _local1 = _root;
_local1.activePot = "1";
_local1.main.mcColorPicker._visible = true;
_local1.main.colorWindow._visible = true;
clickSound = new Sound(this);
clickSound.attachSound("click");
clickSound.start();
if (_local1.main.cursor._visible == true) {
_local1.main.cursor._visible = false;
Mouse.show();
}
if (_local1.bandeACacher == "bandeSign") {
_local1.main[_local1.bandeACacher].gotoAndPlay(6);
} else {
_local1.main[_local1.bandeACacher].gotoAndPlay(12);
}
_local1.bandeACacher = "";
};
}
Instance of Symbol 528 MovieClip in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this.onRelease = function () {
var _local1 = _root;
_local1.activePot = "2";
_local1.main.mcColorPicker._visible = true;
_local1.main.colorWindow._visible = true;
clickSound = new Sound(this);
clickSound.attachSound("click");
clickSound.start();
if (_local1.main.cursor._visible == true) {
_local1.main.cursor._visible = false;
Mouse.show();
}
if (_local1.bandeACacher == "bandeSign") {
_local1.main[_local1.bandeACacher].gotoAndPlay(6);
} else {
_local1.main[_local1.bandeACacher].gotoAndPlay(12);
}
_local1.bandeACacher = "";
};
}
Instance of Symbol 528 MovieClip in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this.onRelease = function () {
var _local1 = _root;
_local1.activePot = "3";
_local1.main.mcColorPicker._visible = true;
_local1.main.colorWindow._visible = true;
clickSound = new Sound(this);
clickSound.attachSound("click");
clickSound.start();
if (_local1.main.cursor._visible == true) {
_local1.main.cursor._visible = false;
Mouse.show();
}
if (_local1.bandeACacher == "bandeSign") {
_local1.main[_local1.bandeACacher].gotoAndPlay(6);
} else {
_local1.main[_local1.bandeACacher].gotoAndPlay(12);
}
_local1.bandeACacher = "";
};
}
Instance of Symbol 528 MovieClip in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this.onRelease = function () {
var _local1 = _root;
_local1.activePot = "4";
_local1.main.mcColorPicker._visible = true;
_local1.main.colorWindow._visible = true;
clickSound = new Sound(this);
clickSound.attachSound("click");
clickSound.start();
if (_local1.main.cursor._visible == true) {
_local1.main.cursor._visible = false;
Mouse.show();
}
if (_local1.bandeACacher == "bandeSign") {
_local1.main[_local1.bandeACacher].gotoAndPlay(6);
} else {
_local1.main[_local1.bandeACacher].gotoAndPlay(12);
}
_local1.bandeACacher = "";
};
}
Instance of Symbol 528 MovieClip in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this.onRelease = function () {
var _local1 = _root;
_local1.activePot = "5";
_local1.main.mcColorPicker._visible = true;
_local1.main.colorWindow._visible = true;
clickSound = new Sound(this);
clickSound.attachSound("click");
clickSound.start();
if (_local1.main.cursor._visible == true) {
_local1.main.cursor._visible = false;
Mouse.show();
}
if (_local1.bandeACacher == "bandeSign") {
_local1.main[_local1.bandeACacher].gotoAndPlay(6);
} else {
_local1.main[_local1.bandeACacher].gotoAndPlay(12);
}
_local1.bandeACacher = "";
};
}
Instance of Symbol 528 MovieClip in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this.onRelease = function () {
var _local1 = _root;
_local1.activePot = "6";
_local1.main.mcColorPicker._visible = true;
_local1.main.colorWindow._visible = true;
clickSound = new Sound(this);
clickSound.attachSound("click");
clickSound.start();
if (_local1.main.cursor._visible == true) {
_local1.main.cursor._visible = false;
Mouse.show();
}
if (_local1.bandeACacher == "bandeSign") {
_local1.main[_local1.bandeACacher].gotoAndPlay(6);
} else {
_local1.main[_local1.bandeACacher].gotoAndPlay(12);
}
_local1.bandeACacher = "";
};
}
Instance of Symbol 528 MovieClip in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this.onRelease = function () {
var _local1 = _root;
_local1.activePot = "7";
_local1.main.mcColorPicker._visible = true;
_local1.main.colorWindow._visible = true;
clickSound = new Sound(this);
clickSound.attachSound("click");
clickSound.start();
if (_local1.main.cursor._visible == true) {
_local1.main.cursor._visible = false;
Mouse.show();
}
if (_local1.bandeACacher == "bandeSign") {
_local1.main[_local1.bandeACacher].gotoAndPlay(6);
} else {
_local1.main[_local1.bandeACacher].gotoAndPlay(12);
}
_local1.bandeACacher = "";
};
}
Instance of Symbol 533 MovieClip "cursor" in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this._visible = false;
}
onClipEvent (mouseMove) {
this._x = _root.main._xmouse;
this._y = _root.main._ymouse;
}
Symbol 555 MovieClip Frame 6
stop();
Symbol 555 MovieClip Frame 7
function decryptString() {
var _local1 = _root;
trace("decryptString");
str = _local1.stringLevel1;
trace(str);
pos = 0;
pos = str.lastIndexOf("Q");
lastBackLight = str.charAt(pos + 1);
_local1.lastBackLight = _local1.lastBackLight + lastBackLight;
pos = str.lastIndexOf("W");
lastFrontLight = str.charAt(pos + 1);
_local1.lastFrontLight = _local1.lastFrontLight + lastFrontLight;
pos = str.lastIndexOf("R");
lastMisc = str.charAt(pos + 1);
_local1.lastMisc = _local1.lastMisc + lastMisc;
facade = str.charAt(1);
posTemp = str.indexOf("K") + 1;
facadeColor1 = str.substring(posTemp, posTemp + 8);
posTemp = posTemp + 8;
if (str.charAt(posTemp) == "L") {
posTemp = posTemp + 1;
facadeColor2 = str.substring(posTemp, posTemp + 8);
}
_local1.main.house.facade.gotoAndStop(facade);
noFacade = "item0" + facade;
colorful = new Color(_local1.main.house.facade[noFacade].color1);
colorful.setRGB(facadeColor1);
if (facadeColor2 != undefined) {
var colorful = new Color(_local1.main.house.facade[noFacade].color2);
colorful.setRGB(facadeColor2);
}
_local1.main.house.facade._visible = true;
posTemp = str.indexOf("E");
entrance = str.charAt(posTemp + 1);
posTemp = posTemp + 3;
entranceColor1 = str.substring(posTemp, posTemp + 8);
posTemp = posTemp + 8;
if (str.charAt(posTemp) == "L") {
posTemp = posTemp + 1;
entranceColor2 = str.substring(posTemp, posTemp + 8);
}
_local1.main.house.entrance.gotoAndStop(entrance);
noEntrance = "item0" + entrance;
var colorful = new Color(_local1.main.house.entrance[noEntrance].color1);
colorful.setRGB(entranceColor1);
if (entranceColor2 != undefined) {
var colorful = new Color(_local1.main.house.entrance[noEntrance].color2);
colorful.setRGB(entranceColor2);
}
_local1.main.house.entrance._visible = true;
posTemp = str.indexOf("S");
posTemp = posTemp + 2;
posTempFin = str.indexOf("Y", posTemp);
signX = str.substring(posTemp, posTempFin);
posTemp = posTempFin + 1;
posTempFin = str.indexOf("Z", posTemp);
signY = str.substring(posTemp, posTempFin);
duplicateMovieClip (_local1.main.house.sign, "sign1", 10000);
_local1.main.house.sign1._visible = true;
_local1.main.house.sign1._x = signX;
_local1.main.house.sign1._y = signY;
i = 1;
while (i <= lastBackLight) {
posTemp = posTempFin;
posTemp = str.indexOf("T", posTemp);
backlight = str.charAt(posTemp + 1);
posTemp = str.indexOf("X", posTemp);
posTempFin = str.indexOf("Y", posTemp);
backlightX = str.substring(posTemp + 1, posTempFin);
posTemp = str.indexOf("Y", posTemp);
posTempFin = str.indexOf("Z", posTemp);
backlightY = str.substring(posTemp + 1, posTempFin);
duplicateMovieClip (_local1.main.house.backLight, "backLight" + i, _local1.profondeur);
_local1.main.house["backLight" + i]._visible = true;
_local1.main.house["backLight" + i].gotoAndStop(backlight);
_local1.main.house["backLight" + i]._x = backlightX;
_local1.main.house["backLight" + i]._y = backlightY;
_local1.profondeur = _local1.profondeur + 1;
i++;
}
i = 1;
while (i <= lastFrontLight) {
posTemp = posTempFin;
posTemp = str.indexOf("L", posTemp);
light = str.charAt(posTemp + 1);
posTemp = str.indexOf("X", posTemp);
posTempFin = str.indexOf("Y", posTemp);
lightX = str.substring(posTemp + 1, posTempFin);
posTemp = str.indexOf("Y", posTemp);
posTempFin = str.indexOf("K", posTemp);
lightY = str.substring(posTemp + 1, posTempFin);
posTemp = str.indexOf("K", posTemp);
posTempFin = str.indexOf("Z", posTemp);
lightColor = str.substring(posTemp + 1, posTempFin);
duplicateMovieClip (_local1.main.house.light, "light" + i, _local1.profondeur);
_local1.main.house["light" + i]._visible = true;
_local1.main.house["light" + i].gotoAndStop(light);
_local1.main.house["light" + i]._x = lightX;
_local1.main.house["light" + i]._y = lightY;
noFrontLight = "item0" + light;
var colorful = new Color(_local1.main.house["light" + i][noFrontLight].color1);
colorful.setRGB(lightColor);
_local1.profondeur = _local1.profondeur + 1;
i++;
}
i = 1;
while (i <= lastMisc) {
posTemp = posTempFin;
posTemp = str.indexOf("M", posTemp);
misc = str.charAt(posTemp + 1);
posTemp = str.indexOf("X", posTemp);
posTempFin = str.indexOf("Y", posTemp);
miscX = str.substring(posTemp + 1, posTempFin);
posTemp = str.indexOf("Y", posTemp);
posTempFin = str.indexOf("K", posTemp);
miscY = str.substring(posTemp + 1, posTempFin);
posTemp = str.indexOf("K", posTemp);
posTempFin = posTemp + 9;
miscColor1 = str.substring(posTemp + 1, posTempFin);
if (str.charAt(posTempFin) == "L") {
posTempFin = posTempFin + 1;
miscColor2 = str.substring(posTempFin, posTempFin + 8);
}
duplicateMovieClip (_local1.main.house.misc, "misc" + i, _local1.profondeur);
_local1.profondeur = _local1.profondeur + 1;
_local1.main.house["misc" + i]._visible = true;
_local1.main.house["misc" + i].gotoAndStop(misc);
_local1.main.house["misc" + i]._x = miscX;
_local1.main.house["misc" + i]._y = miscY;
noMisc = "item0" + misc;
var colorful = new Color(_local1.main.house["misc" + i][noMisc].color1);
colorful.setRGB(miscColor1);
if (miscColor2 != undefined) {
var colorful = new Color(_local1.main.house["misc" + i][noMisc].color2);
colorful.setRGB(miscColor2);
}
i++;
}
}
_root.main.house.facade._visible = false;
_root.main.house.entrance._visible = false;
_root.main.house.backLight._visible = false;
_root.main.house.light._visible = false;
_root.main.house.sign._visible = false;
_root.main.house.sign1._visible = false;
_root.main.house.misc._visible = false;
decryptString();
Mouse.show();
stop();
Instance of Symbol 424 MovieClip "house" in Symbol 555 MovieClip Frame 7
onClipEvent (load) {
_global.control.decryptString();
}
Symbol 555 MovieClip Frame 8
function chargerSO() {
var _local1 = _root;
level1SO = SharedObject.getLocal("level1", "/");
_local1.facade = new Object();
_local1.main.house.facade.gotoAndStop(level1SO.data.facade);
_local1.facade.type = level1SO.data.facade;
noFacade = "item0" + level1SO.data.facade;
if (level1SO.data.facadeColor1 != undefined) {
colorful = new Color(_local1.main.house.facade[noFacade].color1);
colorful.setRGB(level1SO.data.facadeColor1);
_local1.facade.color1 = level1SO.data.facadeColor1;
}
if (level1SO.data.facadeColor2 != undefined) {
var colorful = new Color(_local1.main.house.facade[noFacade].color2);
colorful.setRGB(level1SO.data.facadeColor2);
_local1.facade.color2 = level1SO.data.facadeColor2;
}
if (level1SO.data.facade != undefined) {
_local1.main.house.facade._visible = true;
}
_local1.entrance = new Object();
_local1.main.house.entrance.gotoAndStop(level1SO.data.entrance);
noEntrance = "item0" + level1SO.data.entrance;
_local1.entrance.type = level1SO.data.entrance;
if (level1SO.data.entranceColor1 != undefined) {
var colorful = new Color(_local1.main.house.entrance[noEntrance].color1);
colorful.setRGB(level1SO.data.entranceColor1);
_local1.entrance.color1 = level1SO.data.entranceColor1;
}
if (level1SO.data.entranceColor2 != undefined) {
var colorful = new Color(_local1.main.house.entrance[noEntrance].color2);
colorful.setRGB(level1SO.data.entranceColor2);
_local1.entrance.color2 = level1SO.data.entranceColor2;
}
if (level1SO.data.entrance != undefined) {
_local1.main.house.entrance._visible = true;
}
if (level1SO.data.signX != undefined) {
duplicateMovieClip (_local1.main.house.sign, "sign1", 10000);
_local1.main.house.sign1._x = level1SO.data.signX;
_local1.main.house.sign1._y = level1SO.data.signY;
_local1.sign = new Object();
_local1.main.house.sign1._visible = true;
_local1.sign.x = level1SO.data.signX;
_local1.sign.y = level1SO.data.signY;
}
_local1.lastBackLightLoad = level1SO.data.lastBackLight;
_local1.lastFrontLightLoad = level1SO.data.lastFrontLight;
_local1.lastMiscLoad = level1SO.data.lastMisc;
if (_local1.lastBackLightLoad != undefined) {
_local1.noObjetBackLight = _local1.noObjetBackLight + _local1.lastBackLightLoad;
_local1.lastBackLight = _local1.lastBackLight + _local1.lastBackLightLoad;
}
if (_local1.lastFrontLightLoad != undefined) {
_local1.noObjetLight = _local1.noObjetLight + _local1.lastFrontLightLoad;
}
if (_local1.lastMiscLoad != undefined) {
_local1.noObjetMisc = _local1.noObjetMisc + _local1.lastMiscLoad;
}
loadBackLight();
loadFrontLight();
loadMisc();
}
function loadBackLight() {
var _local1 = _root;
if ((_local1.lastBackLightLoad != 0) && (_local1.lastBackLightLoad != undefined)) {
i = 1;
while (i <= _local1.lastBackLightLoad) {
duplicateMovieClip (_local1.main.house.backLight, "backLight" + i, _local1.profondeur);
_local1.main.house["backLight" + i]._visible = true;
_local1.main.house["backLight" + i].gotoAndStop(level1SO.data["backLight" + i]);
_local1.main.house["backLight" + i]._x = level1SO.data[("backLight" + i) + "x"];
_local1.main.house["backLight" + i]._y = level1SO.data[("backLight" + i) + "y"];
_local1.profondeur = _local1.profondeur + 1;
i++;
}
}
}
function loadFrontLight() {
var _local1 = _root;
if ((_local1.lastFrontLightLoad != 0) && (_local1.lastFrontLightLoad != undefined)) {
i = 1;
while (i <= _local1.lastFrontLightLoad) {
duplicateMovieClip (_local1.main.house.light, "light" + i, _local1.profondeur);
_local1.main.house["light" + i]._visible = true;
_local1.main.house["light" + i].gotoAndStop(level1SO.data["frontLight" + i]);
_local1.main.house["light" + i]._x = level1SO.data[("frontLight" + i) + "x"];
_local1.main.house["light" + i]._y = level1SO.data[("frontLight" + i) + "y"];
noFrontLight = "item0" + level1SO.data["frontLight" + i];
_local1["frontLight" + i] = new Object();
_local1["frontLight" + i].type = level1SO.data["frontLight" + i];
_local1["frontLight" + i].x = level1SO.data[("frontLight" + i) + "x"];
_local1["frontLight" + i].y = level1SO.data[("frontLight" + i) + "y"];
if (level1SO.data[("frontLight" + i) + "color1"] != undefined) {
var _local2 = new Color(_local1.main.house["light" + i][noFrontLight].color1);
_local2.setRGB(level1SO.data[("frontLight" + i) + "color1"]);
_local1["frontLight" + i].color1 = level1SO.data[("frontLight" + i) + "color1"];
}
_local1.profondeur = _local1.profondeur + 1;
i++;
}
}
}
function loadMisc() {
var _local1 = _root;
if ((_local1.lastMiscLoad != 0) && (_local1.lastMiscLoad != undefined)) {
i = 1;
while (i <= _local1.lastMiscLoad) {
duplicateMovieClip (_local1.main.house.misc, "misc" + i, _local1.profondeur);
_local1.profondeur = _local1.profondeur + 1;
_local1.main.house["misc" + i]._visible = true;
_local1.main.house["misc" + i].gotoAndStop(level1SO.data["misc" + i]);
_local1.main.house["misc" + i]._x = level1SO.data[("misc" + i) + "x"];
_local1.main.house["misc" + i]._y = level1SO.data[("misc" + i) + "y"];
noMisc = "item0" + level1SO.data["misc" + i];
_local1["misc" + i] = new Object();
_local1["misc" + i].type = level1SO.data["misc" + i];
_local1["misc" + i].x = level1SO.data[("misc" + i) + "x"];
_local1["misc" + i].y = level1SO.data[("misc" + i) + "y"];
if (level1SO.data[("misc" + i) + "color1"] != undefined) {
var _local2 = new Color(_local1.main.house["misc" + i][noMisc].color1);
_local2.setRGB(level1SO.data[("misc" + i) + "color1"]);
_local1["misc" + i].color1 = level1SO.data[("misc" + i) + "color1"];
}
if (level1SO.data[("misc" + i) + "color2"] != undefined) {
var _local2 = new Color(_local1.main.house["misc" + i][noMisc].color2);
_local2.setRGB(level1SO.data[("misc" + i) + "color2"]);
_local1["misc" + i].color1 = level1SO.data[("misc" + i) + "color2"];
}
i++;
}
}
}
chargerSO();
printAsBitmap (_root.main, "bmovie");
Symbol 555 MovieClip Frame 9
_root.main.gotoAndPlay("play");
_root.main.mickey.gotoAndPlay("done");