Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("492350a0", this, 10301, true);
function LoadUser() {
niveauAtteint = so_global.data.niveauAtteint;
volumeSon = so_global.data.volumeSon;
volumeMusique = so_global.data.volumeMusique;
rotation = so_global.data.rotation;
texture = so_global.data.texture;
ornement = so_global.data.ornement;
nbGrade = so_global.data.nbGrade;
tabUserCitations = so_global.data.tabUserCitations;
tabUserPiecesP = so_global.data.tabUserPiecesP;
tabUserPiecesNP = so_global.data.tabUserPiecesNP;
tabUserWP = so_global.data.tabUserWP;
tabUserTrophees = so_global.data.tabUserTrophees;
tabUserScoreStory = so_global.data.tabUserScoreStory;
tabUsersScoreLP = so_global.data.tabUsersScoreLP;
tabUsersScoreFW = so_global.data.tabUsersScoreFW;
Volume();
}
function Init() {
texture = "texture0";
tabCitationsList = [];
tabNiveau = ["120", "002", "023", "020", "012", "049", "050", "014", "015", "016", "018", "024", "025", "028", "029", "030", "036", "039", "045", "046", "051", "053", "056", "059", "067", "081", "082", "117", "118", "126", "137", "138", "011", "017", "033", "038", "040", "054", "057", "060", "065"];
fromGame = false;
fromScore = false;
ornement = true;
newTropheeSH = false;
newTropheeMU = false;
newGradeTrophee = false;
numberTrophee = 0;
nbGrade = 0;
isTrophee = false;
isWallpaper = false;
isCitation = false;
i = 0;
while (i < 40) {
tabCitationsList.push(i);
i++;
}
niveauAtteint = -5;
niveauActuel = -5;
tabUserPreferences = [];
tabUserCitations = [];
tabUserPiecesP = [];
tabUserPiecesNP = [];
tabUserWP = [];
tabUserTrophees = [];
tabUserScoreStory = [];
niveauActuel = niveauAtteint;
nbGrade = 0;
tabUserCitations = [];
tabUserPiecesP = [];
tabUserPiecesNP = [];
tabUserWP = [16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16];
tabUserTrophees = [0, 0, 0, 0, 80, 1];
so_global.data.dummy = 1;
hover.setVolume(volumeSon);
clicks.setVolume(volumeSon);
musique.attachSound("story_sound");
musique.setVolume(volumeMusique);
Save();
}
function SaveUser() {
so_global.data.niveauAtteint = niveauAtteint;
so_global.data.volumeSon = volumeSon;
so_global.data.volumeMusique = volumeMusique;
so_global.data.rotation = rotation;
so_global.data.texture = texture;
so_global.data.ornement = ornement;
so_global.data.nbGrade = nbGrade;
so_global.data.tabUserCitations = tabUserCitations;
so_global.data.tabUserPiecesP = tabUserPiecesP;
so_global.data.tabUserPiecesNP = tabUserPiecesNP;
so_global.data.tabUserWP = tabUserWP;
so_global.data.tabUserTrophees = tabUserTrophees;
so_global.data.tabUserScoreStory = tabUserScoreStory;
so_global.data.tabUsersScoreLP = tabUsersScoreLP;
so_global.data.tabUsersScoreFW = tabUsersScoreFW;
so_global.flush();
}
function Volume() {
musique.setVolume(volumeMusique);
hover.setVolume(volumeSon);
clicks.setVolume(volumeSon);
placeSound.setVolume(volumeSon);
rollSound.setVolume(volumeSon);
rouleauSon.setVolume(volumeSon);
victorySound.setVolume(volumeSon);
victoryMusique.setVolume(volumeMusique);
sonPlace.setVolume(volumeSon);
sonWrong.setVolume(volumeSon);
soundChime.setVolume(volumeSon);
}
function Retexturer(tex) {
MTRouge.Texturage(tex);
PTJaune.Texturage(tex);
PTBleu.Texturage(tex);
GTMauve.Texturage(tex);
GTBleu.Texturage(tex);
CarreVert.Texturage(tex);
ParaBlanc.Texturage(tex);
}
function Mute() {
musique.setVolume(0);
hover.setVolume(0);
clicks.setVolume(0);
rouleauSon.setVolume(0);
placeSound.setVolume(0);
rollSound.setVolume(0);
victorySound.setVolume(0);
victoryMusique.setVolume(0);
sonPlace.setVolume(0);
sonWrong.setVolume(0);
soundChime.setVolume(0);
}
function Pause(enPause) {
estEnPause = enPause;
if (enPause) {
_root.timePause = getTimer();
switch (_root._currentframe) {
case 9 :
clearInterval(_root.sablier.sable.interval);
break;
case 10 :
clearInterval(_root.intTime);
break;
case 11 :
clearInterval(_root.sablier.sable.interval);
}
} else {
switch (_root._currentframe) {
case 9 :
if (_root.sablier._currentframe == 1) {
_root.sablier.sable.interval = setInterval(_root.sablier.sable, "Timer", 1000);
}
break;
case 10 :
_root.intTime = setInterval(_root, "Timer", 1000);
break;
case 11 :
if (_root.sablier._currentframe != 1) {
break;
}
_root.sablier.sable.interval = setInterval(_root.sablier.sable, "Timer", 1000);
}
_root.timePause = getTimer() - _root.timePause;
}
}
this._lockroot = true;
gamename = "way_of_the_tangram";
_root.localization_url1 = "http://www.gamesgames.com/moregames/?utm_medium=brandedgames_as2&utm_campaign=" + gamename;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 17;
_root.localization_portal = "family";
var _mochiads_game_id = "6e6ad5bdcfe9d3df";
mochi.as2.MochiServices.connect("6e6ad5bdcfe9d3df");
mochi.as2.MochiAd.showPreGameAd({id:"6e6ad5bdcfe9d3df", res:"800x600"});
stop();
var urlBUY = "http://www.cccplay.com/download/way-of-the-tangram";
var urlWEB = "http://www.cccplay.com/games/way-of-the-tangram";
var so_global = SharedObject.getLocal("GlobalPlayers.wott.CCCP", "/");
var peuxJouer = true;
var peuxContinuer = true;
var tempsTotal = getTimer();
fenetreQuitter.swapDepths(20000);
fenetrePause.swapDepths(20001);
var estEnPause = false;
Stage.align = "T";
Stage.scaleMode = "exactFit";
var texture = "texture0";
var tabCitations = new Array();
var tabUserCitationsBonus = new Array();
var tabCitationsBonus = new Array();
var tabCitationsList = new Array();
var tabCitationsBonusList = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];
var tabNiveau = ["120", "002", "023", "020", "012", "049", "050", "014", "015", "016", "018", "024", "025", "028", "029", "030", "036", "039", "045", "046", "051", "053", "056", "059", "067", "081", "082", "117", "118", "126", "137", "138", "011", "017", "033", "038", "040", "054", "057", "060", "065"];
var fromGame = false;
var fromScore = false;
var ornement = true;
var newTropheeSH = false;
var newTropheeMU = false;
var newGradeTrophee = false;
var numberTrophee;
var nbGrade = 0;
var isTrophee = false;
var isWallpaper = false;
var isCitation = false;
i = 0;
while (i < 40) {
tabCitationsList.push(i);
i++;
}
var focused = true;
var minimized = false;
var playerName;
var profileSelected;
var rotation = true;
var windowed = false;
var volumeSon = 50;
var volumeMusique = 50;
var niveauAtteint = -5;
var niveauActuel = -5;
var tabUserPreferences = new Array();
var tabUserCitations = new Array();
var tabUserPiecesP = new Array();
var tabUserPiecesNP = new Array();
var tabUserWP = new Array();
var tabUserTrophees = new Array();
var tabUserScoreStory = new Array();
var tabUsersScoreLP = new Array();
var tabUsersScoreFW = new Array();
var tabProfiles = new Array();
this.createEmptyMovieClip("zic", 9999999999);
this.createEmptyMovieClip("snd", 9999999998);
var musique = new Sound(zic);
musique.attachSound("story_sound");
musique.setVolume(volumeMusique);
var clicks = new Sound(snd);
var hover = new Sound(snd);
var soundChime = new Sound(snd);
var rouleauSon = new Sound(snd);
clicks.attachSound("fx_click2");
hover.attachSound("fx_hover2");
soundChime.attachSound("fx_chime");
rouleauSon.attachSound("fx_rouleau");
rouleauSon.setVolume(volumeSon);
soundChime.setVolume(volumeSon);
hover.setVolume(volumeSon);
clicks.setVolume(volumeSon);
musique.onSoundComplete = function () {
musique.start();
};
file = "<Quotes>";
file = file + "<adventure>";
file = file + "<quote num=\"1\" text=\"Be not ashamed of mistakes and thus make them crimes.\" author=\"Confucius\"/>";
file = file + "<quote num=\"2\" text=\"Before you embark on a journey of revenge, dig two graves.\" author=\"Confucius\"/>";
file = file + "<quote num=\"3\" text=\"Everything has its beauty but not everyone sees it.\" author=\"Confucius\"/>";
file = file + "<quote num=\"4\" text=\"Forget injuries, never forget kindnesses.\" author=\"Confucius\"/>";
file = file + "<quote num=\"5\" text=\"I hear and I forget. I see and I remember. I do and I understand.\" author=\"Confucius\"/>";
file = file + "<quote num=\"6\" text=\"Ignorance is the night of the mind, but a night without moon and star.\" author=\"Confucius\"/>";
file = file + "<quote num=\"7\" text=\"It does not matter how slowly you go so long as you do not stop.\" author=\"Confucius\"/>";
file = file + "<quote num=\"8\" text=\"Men's natures are alike, it is their habits that carry them far apart.\" author=\"Confucius\"/>";
file = file + "<quote num=\"9\" text=\"Our greatest glory is not in never falling, but in getting up every time we do.\" author=\"Confucius\"/>";
file = file + "<quote num=\"10\" text=\"Respect yourself and others will respect you.\" author=\"Confucius\"/>";
file = file + "<quote num=\"11\" text=\"To see what is right and not to do it is want of courage.\" author=\"Confucius\"/>";
file = file + "<quote num=\"12\" text=\"What the superior man seeks is in himself; what the small man seeks is in others.\" author=\"Confucius\"/>";
file = file + "<quote num=\"13\" text=\"When we see men of a contrary character, we should turn inwards and examine ourselves.\" author=\"Confucius\"/>";
file = file + "<quote num=\"14\" text=\"Wheresoever you go, go with all your heart.\" author=\"Confucius\"/>";
file = file + "<quote num=\"15\" text=\"They must often change who would be constant in happiness or wisdom.\" author=\"Confucius\"/>";
file = file + "<quote num=\"16\" text=\"Have no friends not equal to yourself.\" author=\"Confucius\"/>";
file = file + "<quote num=\"17\" text=\"He who speaks without modesty will find it difficult to make his words good.\" author=\"Confucius\"/>";
file = file + "<quote num=\"18\" text=\"I am not one who was born in the possession of knowledge; I am one who is fond of antiquity, and earnest in seeking it there.\" author=\"Confucius\"/>";
file = file + "<quote num=\"19\" text=\"If a man takes no thought about what is distant, he will find sorrow near at hand.\" author=\"Confucius\"/>";
file = file + "<quote num=\"20\" text=\"Learning without thought is labor lost; thought without learning is perilous.\" author=\"Confucius\"/>";
file = file + "<quote num=\"21\" text=\"Recompense injury with justice, and recompense kindness with kindness.\" author=\"Confucius\"/>";
file = file + "<quote num=\"22\" text=\"The cautious seldom err.\" author=\"Confucius\"/>";
file = file + "<quote num=\"23\" text=\"The determined scholar and the man of virtue will not seek to live at the expense of injuring their virtue. They will even sacrifice their lives to preserve their virtue complete.\" author=\"Confucius\"/>";
file = file + "<quote num=\"24\" text=\"The man of virtue makes the difficulty to be overcome his first business, and success only a subsequent consideration.\" author=\"Confucius\"/>";
file = file + "<quote num=\"25\" text=\"The people may be made to follow a path of action, but they may not be made to understand it.\" author=\"Confucius\"/>";
file = file + "<quote num=\"26\" text=\"The scholar who cherishes the love of comfort is not fit to be deemed a scholar.\" author=\"Confucius\"/>";
file = file + "<quote num=\"27\" text=\"The superior man is modest in his speech, but exceeds in his actions.\" author=\"Confucius\"/>";
file = file + "<quote num=\"28\" text=\"The superior man...does not set his mind either for anything, or against anything; what is right he will follow.\" author=\"Confucius\"/>";
file = file + "<quote num=\"29\" text=\"Things that are done, it is needless to speak about...things that are past, it is needless to blame.\" author=\"Confucius\"/>";
file = file + "<quote num=\"30\" text=\"To go beyond is as wrong as to fall short.\" author=\"Confucius\"/>";
file = file + "<quote num=\"31\" text=\"Virtue is more to man than either water or fire. I have seen men die from treading on water and fire, but I have never seen a man die from treading the course of virtue.\" author=\"Confucius\"/>";
file = file + "<quote num=\"32\" text=\"Virtue is not left to stand alone. He who practices it will have neighbors.\" author=\"Confucius\"/>";
file = file + "<quote num=\"33\" text=\"What you do not want done to yourself, do not do to others.\" author=\"Confucius\"/>";
file = file + "<quote num=\"34\" text=\"When a man's knowledge is sufficient to attain, and his virtue is not sufficient to enable him to hold, whatever he may have gained, he will lose again.\" author=\"Confucius\"/>";
file = file + "<quote num=\"35\" text=\"With coarse rice to eat, with water to drink, and my bended arm for a pillow - I have still joy in the midst of these things. Riches and honors acquired by unrighteousness are to me as a floating cloud.\" author=\"Confucius\"/>";
file = file + "<quote num=\"36\" text=\"A good traveler has no fixed plans, and is not intent on arriving.\" author=\"Lao Tzu\"/>";
file = file + "<quote num=\"37\" text=\"A leader is best when people barely know he exists, when his work is done, his aim fulfilled, they will say: we did it ourselves.\" author=\"Lao Tzu\"/>";
file = file + "<quote num=\"38\" text=\"Ambition has one heel nailed in well, though she stretch her fingers to touch the heavens.\" author=\"Lao Tzu\"/>";
file = file + "<quote num=\"39\" text=\"An ant on the move does more than a dozing ox.\" author=\"Lao Tzu\"/>";
file = file + "<quote num=\"40\" text=\"At the center of your being you have the answer; you know who you are and you know what you want.\" author=\"Lao Tzu\"/>";
file = file + "</adventure>";
file = file + "</Quotes>";
var flux = new XML();
flux.parseXML(file);
flux.ignoreWhite = true;
var nombreLigne = flux.firstChild.childNodes[0].childNodes.length;
i = 0;
while (i < nombreLigne) {
var citation = new Object();
citation.num = flux.firstChild.childNodes[0].childNodes[i].attributes.num;
citation.quote = flux.firstChild.childNodes[0].childNodes[i].attributes.text;
citation.author = flux.firstChild.childNodes[0].childNodes[i].attributes.author;
tabCitations.push(citation);
i++;
}
if (!so_global.data.dummy) {
Init();
} else {
LoadUser();
}
Frame 2
Frame 3
stop();
musique.stop();
musique.start();
removeMovieClip(MTRouge);
removeMovieClip(PTJaune);
removeMovieClip(PTBleu);
removeMovieClip(GTMauve);
removeMovieClip(GTBleu);
removeMovieClip(CarreVert);
removeMovieClip(ParaBlanc);
Frame 4
barreProfile.profileName.text = playerName;
barreProfile.bout._visible = false;
if (niveauAtteint < -4) {
rouleau.btnContinue.enabled = false;
var color = new Color(rouleau.btnContinue);
color.setTransform({ra:40, rb:61, ga:40, gb:61, ba:40, bb:61, aa:100, ab:0});
}
if (niveauAtteint < 1) {
var color = new Color(rouleau.btnFP);
color.setTransform({ra:40, rb:61, ga:40, gb:61, ba:40, bb:61, aa:100, ab:0});
}
if (_root.tabUserPiecesP.length < 40) {
var color = new Color(rouleau.btnLP);
color.setTransform({ra:40, rb:61, ga:40, gb:61, ba:40, bb:61, aa:100, ab:0});
var color = new Color(rouleau.btnFW);
color.setTransform({ra:40, rb:61, ga:40, gb:61, ba:40, bb:61, aa:100, ab:0});
} else if (_root.tabUserPiecesP.length < 80) {
var color = new Color(rouleau.btnFW);
color.setTransform({ra:40, rb:61, ga:40, gb:61, ba:40, bb:61, aa:100, ab:0});
}
Frame 5
stop();
Frame 7
function MoveCarte() {
if (niveau > 60) {
if (niveau < 90) {
carte._y = carte._y + 600;
} else if (niveau < 120) {
carte._y = carte._y + 1000;
} else if (niveau <= 150) {
carte._y = carte._y + 1400;
}
}
if (300 > eval ("carte.point" + niveau)._y) {
if ((300 - eval ("carte.point" + niveau)._y) < 1840) {
this.onEnterFrame = function () {
if (Math.floor(((300 - eval ("carte.point" + niveau)._y) - carte._y) / 20) == 0) {
this.onEnterFrame = null;
}
carte._y = carte._y + Math.floor(((300 - eval ("carte.point" + niveau)._y) - carte._y) / 20);
};
} else {
this.onEnterFrame = function () {
if (Math.floor((1840 - carte._y) / 20) == 0) {
this.onEnterFrame = null;
}
carte._y = carte._y + ((1840 - carte._y) / 20);
};
}
}
TestTrophee();
}
function GetNiveau() {
return(carteActivee.substr(5, carteActivee.length));
}
function TestTrophee() {
numberTrophee = 0;
trophee.gotoAndStop(1);
if (!(niveau % 10)) {
if (_root.tabUserWP[(niveau / 10) - 1] == 16) {
numberTrophee++;
UnlockTrophee("wallpaper", niveau / 10);
if (niveau == 150) {
niveau = 149;
}
}
}
if (!(niveau % 5)) {
var _local3 = niveau / 5;
switch (_local3) {
case 1 :
unlock = 2;
break;
case 3 :
unlock = 3;
}
if (unlock > Number(_root.tabUserTrophees[5])) {
numberTrophee++;
_root.UnlockTrophee("texture", unlock);
}
}
if (newTropheeSH) {
numberTrophee++;
var _local2 = Number(_root.tabUserTrophees[1]);
switch (_local2) {
case 150 :
UnlockTrophee("tropheesh", 4);
break;
case 100 :
UnlockTrophee("tropheesh", 3);
break;
case 60 :
UnlockTrophee("tropheesh", 2);
break;
case 30 :
UnlockTrophee("tropheesh", 1);
break;
case 10 :
UnlockTrophee("tropheesh", 0);
break;
default :
newTropheeSH = false;
numberTrophee--;
}
}
if (newTropheeMU) {
numberTrophee++;
var _local2 = Number(_root.tabUserTrophees[2]);
switch (_local2) {
case 140 :
UnlockTrophee("tropheemu", 4);
break;
case 85 :
UnlockTrophee("tropheemu", 3);
break;
case 50 :
UnlockTrophee("tropheemu", 2);
break;
case 20 :
UnlockTrophee("tropheemu", 1);
break;
case 5 :
UnlockTrophee("tropheemu", 0);
break;
default :
newTropheeMU = false;
numberTrophee--;
}
}
if (niveau > 0) {
}
}
function UnlockTrophee(type, index) {
if (numberTrophee == 1) {
switch (type) {
case "wallpaper" :
_root.tabUserWP[index - 1] = index;
_root.saveUser(_root.playerName);
_root.GetUnlockTrophee = function () {
return(["New wallpaper unlocked", 27, "(see the new wallpaper in the awards section)", index]);
};
break;
case "texture" :
_root.tabUserTrophees[5] = index;
_root.saveUser(_root.playerName);
_root.GetUnlockTrophee = function () {
return(["New pieces unlocked", index, "(Pieces design can be change in the in-game menu)"]);
};
break;
case "tropheesh" :
_root.saveUser(_root.playerName);
_root.GetUnlockTrophee = function () {
_root.newTropheeSH = false;
return(["New trophy unlocked", index + 17, "(see the new trophy in the awards section)"]);
};
break;
case "tropheemu" :
_root.saveUser(_root.playerName);
_root.GetUnlockTrophee = function () {
_root.newTropheeMU = false;
return(["New trophee unlocked", index + 22, "(see the new trophy in the awards section)"]);
};
break;
case "bonus" :
_root.saveUser(_root.playerName);
trace("index : " + index);
if (!(index % 2)) {
var _local2 = (nbGrade - 10) / 10;
_root.tabUserTrophees[7] = _local2 + 1;
} else {
var _local2 = (nbGrade - 5) / 10;
_root.tabUserTrophees[6] = _local2 + 1;
}
_root.GetUnlockTrophee = function () {
_root.newGradeTrophee = false;
if (!(index % 2)) {
index = (nbGrade - 10) / 10;
return(["New bonus citation unlocked", 29, "(see the new citation in the awards section)", index]);
}
index = (nbGrade - 5) / 10;
return(["New bonus piece unlocked", 28, "(Play the new piece in the other game modes)", index + 151]);
};
}
trophee.gotoAndStop(2);
} else if ((numberTrophee == 0) and rappel) {
reminder.play();
}
}
musique.stop();
musique.attachSound("story_sound");
musique.start();
musique.setVolume(volumeMusique);
var niveau;
var rappel = false;
_root.SaveUser();
if (niveauAtteint < 1) {
_root.help.gotoAndStop(9);
}
var hscoretxt = 0;
var i = 0;
while (i < _root.tabUserScoreStory.length) {
_root.hscoretxt = _root.hscoretxt + _root.tabUserScoreStory[i].score;
i++;
}
if (niveauAtteint > 15) {
niveauAtteint = 15;
niveauActuel = 15;
teaser.play();
var i = 0;
while (i < _root.tabUserScoreStory.length) {
highScore = highScore + _root.tabUserScoreStory[i].score;
i++;
}
}
if (_root.fromScore) {
niveau = niveauActuel;
eval ("carte.point" + niveau).attachMovie("pointPetitSelected", "point", 8);
} else {
niveauActuel = niveauAtteint;
niveau = niveauAtteint;
}
var carteActivee;
var ensembleTrophee = new Array();
MoveCarte();
i = 0;
while (i <= niveau) {
eval ("carte.point" + i).gotoAndStop(2);
i++;
}
Frame 8
var texteTrophee;
Frame 9
function ShowGrid() {
grille.clear();
grille._alpha = 30;
i = 245;
while (i <= 798) {
if (i % 70) {
grille.lineStyle(1, 9518643, 100);
} else {
grille.lineStyle(1, 0, 100);
}
grille.moveTo(i, 0);
grille.lineTo(i, 0);
grille.lineTo(i, 595);
i = i + 7;
}
i = 0;
while (i <= 595) {
if (i % 70) {
grille.lineStyle(1, 9518643, 100);
} else {
grille.lineStyle(1, 0, 100);
}
grille.moveTo(245, i);
grille.lineTo(245, i);
grille.lineTo(798, i);
i = i + 7;
}
grille2.clear();
grille2._alpha = 40;
i = 0;
while (i <= 142) {
if (i % 20) {
grille2.lineStyle(1, 9518643, 100);
} else {
grille2.lineStyle(1, 0, 100);
}
grille2.moveTo(i, 0);
grille2.lineTo(i, 0);
grille2.lineTo(i, 164);
i = i + 2;
}
i = 0;
while (i <= 164) {
if (i % 20) {
grille2.lineStyle(1, 9518643, 100);
} else {
grille2.lineStyle(1, 0, 100);
}
grille2.moveTo(0, i);
grille2.lineTo(0, i);
grille2.lineTo(142, i);
i = i + 2;
}
grille.cacheAsBitmap = true;
grille2.cacheAsBitmap = true;
gridUsed = true;
EnableHint(false);
}
function ShowShape() {
shape._visible = true;
shapeUsed = true;
EnableHint(false);
}
function Carre() {
MTRouge._x = 52.5;
MTRouge._y = 52.5;
MTRouge._rotation = -45;
PTJaune._x = 52.5;
PTJaune._y = 175;
PTJaune._rotation = 90;
PTBleu._x = 126;
PTBleu._y = 101.5;
PTBleu._rotation = 180;
GTMauve._x = 126;
GTMauve._y = 175;
GTMauve._rotation = 0;
GTBleu._x = 175;
GTBleu._y = 126;
GTBleu._rotation = -90;
CarreVert._x = 77;
CarreVert._y = 126;
CarreVert._rotation = -45;
if (!ParaBlanc.sens) {
ParaBlanc._xscale = 100;
ParaBlanc.sens = true;
}
if (!ParaBlanc.sens) {
ParaBlanc._xscale = 100;
ParaBlanc.sens = true;
}
ParaBlanc._x = 150.5;
ParaBlanc._y = 52.5;
ParaBlanc._rotation = 0;
}
function Verif(indice) {
var collision = false;
var nbPieces = tabPieces.length;
tabCoord = new Array();
tabCoordDecal = new Array();
i = 0;
while (i < nbPieces) {
var nbPoint = (tabPieces[i].tabPoint.length - 1);
k = 0;
while (k < nbPoint) {
tabCoord.push({pointX:tabPieces[i].tabPoint[k].x, pointY:tabPieces[i].tabPoint[k].y});
tabCoordDecal.push({pointX:tabPieces[i].tabPointDeca[k].x, pointY:tabPieces[i].tabPointDeca[k].y});
k++;
}
i++;
}
tabCoord.sortOn(["pointX", "pointY"], Array.NUMERIC);
removeMovieClip(solution);
_root.attachMovie(figure, "solution", -2, {_x:tabCoord[0].pointX, _y:tabCoord[0].pointY});
_root.solution.cacheAsBitmap = true;
_root.solution._xscale = 70;
_root.solution._yscale = 70;
solution._visible = figureVisible;
j = 0;
k = 0;
while (k < tabCoordDecal.length) {
if (solution.hitTest(tabCoordDecal[k].pointX, tabCoordDecal[k].pointY, true)) {
j++;
}
k++;
}
l = 0;
k = 0;
while (k < tabCoord.length) {
if (solution.hitTest(tabCoord[k].pointX, tabCoord[k].pointY, true)) {
l++;
}
k++;
}
if (j != 23) {
collision = true;
}
if (!collision) {
i = 0;
while (i < nbPieces) {
l = 0;
while (l < nbPieces) {
var nbPoint = (tabPieces[l].tabPoint.length - 1);
j = 0;
while (j < nbPoint) {
var nbPoint = (tabPieces[i].tabPoint.length - 1);
k = 0;
while (k < nbPoint) {
if (CollisionSegment(tabPieces[l].tabPoint[j], tabPieces[l].tabPoint[j + 1], tabPieces[i].tabPoint[k], tabPieces[i].tabPoint[k + 1])) {
collision = true;
}
if (collision) {
break;
}
k++;
}
if (collision) {
break;
}
j++;
}
if (collision) {
break;
}
l++;
}
if (collision) {
break;
}
i++;
}
tabPieces.splice(0, tabPieces.length);
tabPieces.push(MTRouge);
tabPieces.push(PTJaune);
tabPieces.push(PTBleu);
tabPieces.push(GTMauve);
tabPieces.push(GTBleu);
tabPieces.push(CarreVert);
tabPieces.push(ParaBlanc);
if (!collision) {
i = 0;
while (i < nbPieces) {
j = 0;
while (j < nbPieces) {
if (tabPieces[i] != tabPieces[j]) {
if (tabPieces[i].hitTest(tabPieces[j]._x, tabPieces[j]._y, true)) {
collision = true;
}
}
if (collision) {
break;
}
j++;
}
if (collision) {
break;
}
i++;
}
}
}
if (!collision) {
Fini();
}
}
function CollisionSegment(p1, p2, p3, p4) {
var _local7 = true;
var _local5;
var _local12;
var _local10;
var _local8;
var _local2 = p1.x;
var _local1 = p1.y;
var _local6 = p2.x;
var _local13 = p2.y;
var _local4 = p3.x;
var _local3 = p3.y;
var _local11 = p4.x;
var _local9 = p4.y;
if (!((((Math.max(_local2, _local6) >= Math.min(_local4, _local11)) and (Math.max(_local4, _local11) >= Math.min(_local2, _local6))) and (Math.max(_local1, _local13) >= Math.min(_local3, _local9))) and (Math.max(_local3, _local9) >= Math.min(_local1, _local13)))) {
_local7 = false;
}
if (_local7) {
_local5 = ((_local4 - _local2) * (_local13 - _local1)) - ((_local3 - _local1) * (_local6 - _local2));
if (_local5 != 0) {
_local5 = _local5 / Math.abs(_local5);
}
_local12 = ((_local11 - _local2) * (_local13 - _local1)) - ((_local9 - _local1) * (_local6 - _local2));
if (_local12 != 0) {
_local12 = _local12 / Math.abs(_local12);
}
_local10 = ((_local2 - _local4) * (_local9 - _local3)) - ((_local1 - _local3) * (_local11 - _local4));
if (_local10 != 0) {
_local10 = _local10 / Math.abs(_local10);
}
_local8 = ((_local6 - _local4) * (_local9 - _local3)) - ((_local13 - _local3) * (_local11 - _local4));
if (_local8 != 0) {
_local8 = _local8 / Math.abs(_local8);
}
if (((_local5 * _local12) < 0) and ((_local10 * _local8) < 0)) {
_local7 = true;
} else {
_local7 = false;
}
}
return(_local7);
}
function Arrondi(coord) {
if ((coord - Math.floor(coord)) > 0.5) {
coord = Math.floor(coord) + 1;
} else {
coord = Math.floor(coord);
}
if ((coord % 7) < 3.5) {
coord = coord - (coord % 7);
} else {
coord = coord + (7 - (coord % 7));
}
return(coord);
}
function Arrondi5(coord) {
if ((coord - Math.floor(coord)) > 0.5) {
coord = Math.floor(coord) + 1;
} else {
coord = Math.floor(coord);
}
if ((coord % 4) < 2) {
coord = coord - (coord % 4);
} else {
coord = coord + (4 - (coord % 4));
}
return(coord);
}
function Fini() {
musique.stop();
victoryMusique.start();
sablierTime.text = "";
timePassed = Math.floor((getTimer() - timePassed) / 1000) - Math.floor(timePause / 1000);
removeMovieClip(dustTr);
sablier.sable.gotoAndStop(1);
clearInterval(sablier.sable.interval);
_root.attachMovie("ecranScore", "fin", 104);
}
function ChargementNiveau(niveau) {
fond.gotoAndStop(Math.floor(niveau / 10) + 1);
sablier.sable.gotoAndPlay(2);
hintEnabled = false;
tabHint = [0, 1, 2, 3, 4, 5, 6];
timePassed = getTimer();
nbClick = 0;
gridUsed = false;
shapeUsed = false;
EnableHint(false);
figure = tabNiveau[niveau];
if (niveau < tabNiveau.length) {
if (Number(figure) < 100) {
figureNum = Number(figure.substr(1, figure.length));
} else {
figureNum = Number(figure);
}
_root.figures.gotoAndStop(figureNum);
_root.shape.gotoAndStop(figureNum);
_root.shape._visible = false;
_root.image.cacheAsBitmap = true;
removeMovieClip(solution);
_root.attachMovie(figure, "solution", -2, {_x:0, _y:0});
_root.solution.cacheAsBitmap = true;
_root.solution._xscale = 70;
_root.solution._yscale = 70;
solution._visible = figureVisible;
} else {
removeMovieClip(image);
removeMovieClip(solution);
clearInterval(sablier.sable.interval);
gotoAndStop (7);
}
Carre();
}
function Chling() {
_root.attachMovie("chling", "chling", 106);
removeMovieClip(_root.silhouetteP);
_root.attachMovie("silhouetteContainer", "silhouette", 105, {_x:_root.solution._x, _y:_root.solution._y});
silhouette.attachMovie(_root.figure, "silhouetteShape", 1);
var _local7 = new Color(silhouette.silhouetteShape);
_local7.setRGB(16750848);
var _local9 = 5;
var _local4 = 45;
var _local19 = 16777062 /* 0xFFFF66 */;
var _local12 = 1;
var _local8 = 0;
var _local6 = 1;
var _local13 = 8;
var _local11 = 8;
var _local16 = 1;
var _local5 = 1;
var _local20 = "inner";
var _local17 = false;
var _local18 = new flash.filters.BevelFilter(_local9, _local4, _local19, _local12, _local8, _local6, _local13, _local11, _local16, _local5, _local20, _local17);
_local9 = 0;
_local4 = 45;
_local7 = 0;
var _local21 = 1;
_local13 = 2;
_local11 = 2;
_local16 = 10;
_local5 = 1;
var _local10 = false;
_local17 = false;
var _local14 = false;
var _local15 = new flash.filters.DropShadowFilter(_local9, _local4, _local7, _local21, _local13, _local11, _local16, _local5, _local10, _local17, _local14);
var _local3 = new Array();
_local3.push(_local18);
_local3.push(_local15);
silhouette.filters = _local3;
_root.silhouette._xscale = 70;
_root.silhouette._yscale = 70;
intervalFin = setInterval(this, "Score", 2000);
}
function Score() {
clearInterval(intervalFin);
MTRouge._x = -1000;
PTJaune._x = -1000;
PTBleu._x = -1000;
GTMauve._x = -1000;
GTBleu._x = -1000;
CarreVert._x = -1000;
ParaBlanc._x = -1000;
silhouette.onEnterFrame = function () {
if (this._alpha <= 0) {
this.onEnterFrame = null;
} else {
this._alpha = this._alpha - 5;
}
};
_root.fin.swapDepths(110);
_root.fin.play();
}
function ArriveeSilhouette() {
removeMovieClip(_root.silhouette);
_root.attachMovie("silhouetteContainer", "silhouette", 115, {_x:_root.solution._x, _y:_root.solution._y});
silhouette.attachMovie("smallFigure", "silhouetteShape", 1);
silhouette.silhouetteShape.gotoAndStop(figureNum);
var _local6 = new Color(silhouette.silhouetteShape);
_local6.setRGB(16750848);
var _local8 = 5;
var _local3 = 45;
var _local18 = 16777062 /* 0xFFFF66 */;
var _local11 = 1;
var _local7 = 0;
var _local5 = 1;
var _local12 = 8;
var _local10 = 8;
var _local15 = 1;
var _local4 = 1;
var _local19 = "inner";
var _local16 = false;
var _local17 = new flash.filters.BevelFilter(_local8, _local3, _local18, _local11, _local7, _local5, _local12, _local10, _local15, _local4, _local19, _local16);
_local8 = 0;
_local3 = 45;
_local6 = 0;
var _local20 = 1;
_local12 = 2;
_local10 = 2;
_local15 = 10;
_local4 = 1;
var _local9 = false;
_local16 = false;
var _local13 = false;
var _local14 = new flash.filters.DropShadowFilter(_local8, _local3, _local6, _local20, _local12, _local10, _local15, _local4, _local9, _local16, _local13);
var _local2 = new Array();
_local2.push(_local17);
_local2.push(_local14);
silhouette.filters = _local2;
silhouette._xscale = 20;
silhouette._yscale = 20;
silhouette._x = 650 - (silhouette._width / 2);
silhouette._y = 400 + (silhouette._height / 2);
soundChime.start();
}
function Reset() {
_root.tabHint = [0, 1, 2, 3, 4, 5, 6];
_root.timePassed = getTimer();
_root.nbClick = 0;
_root.shapeUsed = false;
_root.gridUsed = false;
hintEnabled = false;
for (clip in _root.figures) {
eval (_root.figures[clip] + ".p0")._visible = false;
eval (_root.figures[clip] + ".p1")._visible = false;
eval (_root.figures[clip] + ".p2")._visible = false;
eval (_root.figures[clip] + ".p3")._visible = false;
eval (_root.figures[clip] + ".p4")._visible = false;
eval (_root.figures[clip] + ".p5")._visible = false;
eval (_root.figures[clip] + ".p6")._visible = false;
}
bulle.gotoAndStop(1);
grille.clear();
grille2.clear();
shape._visible = false;
_root.sablierTime.text = "60";
clearInterval(sablier.sable.interval);
sablier.sable.gotoAndPlay(1);
sablier.gotoAndStop(1);
interfa.btHint.enabled = false;
var color = new Color(interfa.btHint);
color.setTransform({ra:40, rb:60, ga:40, gb:60, ba:40, bb:60, aa:100, ab:0});
Carre();
}
function EnableHint(bool) {
if (bool) {
sablier.gotoAndPlay(2);
hintEnabled = true;
interfa.btHint.enabled = true;
var _local2 = new Color(interfa.btHint);
_local2.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
} else if ((_root.gridUsed and _root.shapeUsed) and (_root.tabHint.length <= 0)) {
interfa.btHint.enabled = false;
var _local2 = new Color(interfa.btHint);
_local2.setTransform({ra:40, rb:60, ga:40, gb:60, ba:40, bb:60, aa:100, ab:0});
hintEnabled = false;
} else {
hintEnabled = false;
_root.sablierTime.text = "60";
sablier.sablierRetour.sable.play();
sablier.play();
interfa.btHint.enabled = false;
var _local2 = new Color(interfa.btHint);
_local2.setTransform({ra:40, rb:60, ga:40, gb:60, ba:40, bb:60, aa:100, ab:0});
}
}
_root.SaveUser();
stop();
var fromton = 0;
fenetreQuitter.swapDepths(20000);
fenetrePause.swapDepths(20001);
boutons.swapDepths(11);
menuPause.swapDepths(13);
choixTex.swapDepths(14);
option.swapDepths(15);
interfa.swapDepths(9);
bulle.swapDepths(10);
figures.gotoAndStop(1);
place.swapDepths(10000);
persogame.swapDepths(12);
persogame.gotoAndPlay(2);
var piecesVisibles = false;
var tempsSable = 1;
var intervalFin;
var tabPieces = new Array();
var trouve = false;
var figureNum;
var tabCoord;
var tabCoordDecal = new Array();
var figure;
var figureVisible;
figureVisible = false;
sablierTime.text = "60";
var hintEnabled;
var tabHint;
var timePassed;
var timePause = 0;
var nbClick;
var shapeUsed;
var gridUsed;
_root.attachMovie("MTRouge", "MTRouge", 0);
_root.attachMovie("PTJaune", "PTJaune", 1);
_root.attachMovie("PTBleu", "PTBleu", 2);
_root.attachMovie("GTMauve", "GTMauve", 3);
_root.attachMovie("GTBleu", "GTBleu", 4);
_root.attachMovie("CarreVert", "CarreVert", 5);
_root.attachMovie("ParaBlanc", "ParaBlanc", 6);
tabPieces.push(MTRouge);
tabPieces.push(PTJaune);
tabPieces.push(PTBleu);
tabPieces.push(GTMauve);
tabPieces.push(GTBleu);
tabPieces.push(CarreVert);
tabPieces.push(ParaBlanc);
var alea = Math.floor((Math.random() * 5) + 1);
musique.stop();
musique.attachSound("story_sound");
musique.start();
var placeSound = new Sound(snd);
var rollSound = new Sound(snd);
var victorySound = new Sound(snd);
var victoryMusique = new Sound(snd);
placeSound.attachSound("fx_place");
rollSound.attachSound("fx_roll");
victoryMusique.attachSound("fx_puzzle_completed");
Volume();
ChargementNiveau(niveauActuel);
Frame 10
function Carre() {
MTRouge._x = 52.5;
MTRouge._y = 52.5;
MTRouge._rotation = -45;
PTJaune._x = 52.5;
PTJaune._y = 175;
PTJaune._rotation = 90;
PTBleu._x = 126;
PTBleu._y = 101.5;
PTBleu._rotation = 180;
GTMauve._x = 126;
GTMauve._y = 175;
GTMauve._rotation = 0;
GTBleu._x = 175;
GTBleu._y = 126;
GTBleu._rotation = -90;
CarreVert._x = 77;
CarreVert._y = 126;
CarreVert._rotation = -45;
if (!ParaBlanc.sens) {
ParaBlanc._xscale = 100;
ParaBlanc.sens = true;
}
if (!ParaBlanc.sens) {
ParaBlanc._xscale = 100;
ParaBlanc.sens = true;
}
ParaBlanc._x = 150.5;
ParaBlanc._y = 52.5;
ParaBlanc._rotation = 0;
}
function Verif(indice) {
var collision = false;
var nbPieces = tabPieces.length;
tabCoord = new Array();
tabCoordDecal = new Array();
i = 0;
while (i < nbPieces) {
var nbPoint = (tabPieces[i].tabPoint.length - 1);
k = 0;
while (k < nbPoint) {
tabCoord.push({pointX:tabPieces[i].tabPoint[k].x, pointY:tabPieces[i].tabPoint[k].y});
tabCoordDecal.push({pointX:tabPieces[i].tabPointDeca[k].x, pointY:tabPieces[i].tabPointDeca[k].y});
k++;
}
i++;
}
tabCoord.sortOn(["pointX", "pointY"], Array.NUMERIC);
removeMovieClip(solution);
_root.attachMovie(figure, "solution", -2, {_x:tabCoord[0].pointX, _y:tabCoord[0].pointY});
_root.solution.cacheAsBitmap = true;
_root.solution._xscale = 70;
_root.solution._yscale = 70;
solution._visible = figureVisible;
j = 0;
k = 0;
while (k < tabCoordDecal.length) {
if (solution.hitTest(tabCoordDecal[k].pointX, tabCoordDecal[k].pointY, true)) {
j++;
}
k++;
}
l = 0;
k = 0;
while (k < tabCoord.length) {
if (solution.hitTest(tabCoord[k].pointX, tabCoord[k].pointY, true)) {
l++;
}
k++;
}
if (j != 23) {
collision = true;
}
if (!collision) {
i = 0;
while (i < nbPieces) {
l = 0;
while (l < nbPieces) {
var nbPoint = (tabPieces[l].tabPoint.length - 1);
j = 0;
while (j < nbPoint) {
var nbPoint = (tabPieces[i].tabPoint.length - 1);
k = 0;
while (k < nbPoint) {
if (CollisionSegment(tabPieces[l].tabPoint[j], tabPieces[l].tabPoint[j + 1], tabPieces[i].tabPoint[k], tabPieces[i].tabPoint[k + 1])) {
collision = true;
}
if (collision) {
break;
}
k++;
}
if (collision) {
break;
}
j++;
}
if (collision) {
break;
}
l++;
}
if (collision) {
break;
}
i++;
}
tabPieces.splice(0, tabPieces.length);
tabPieces.push(MTRouge);
tabPieces.push(PTJaune);
tabPieces.push(PTBleu);
tabPieces.push(GTMauve);
tabPieces.push(GTBleu);
tabPieces.push(CarreVert);
tabPieces.push(ParaBlanc);
if (!collision) {
i = 0;
while (i < nbPieces) {
j = 0;
while (j < nbPieces) {
if (tabPieces[i] != tabPieces[j]) {
if (tabPieces[i].hitTest(tabPieces[j]._x, tabPieces[j]._y, true)) {
collision = true;
}
}
if (collision) {
break;
}
j++;
}
if (collision) {
break;
}
i++;
}
}
}
if (!collision) {
soundChime.start();
clearInterval(intTime);
Chling();
}
}
function Fini() {
soundChime.start();
clearInterval(intTime);
Chling();
}
function CollisionSegment(p1, p2, p3, p4) {
var _local7 = true;
var _local5;
var _local12;
var _local10;
var _local8;
var _local2 = p1.x;
var _local1 = p1.y;
var _local6 = p2.x;
var _local13 = p2.y;
var _local4 = p3.x;
var _local3 = p3.y;
var _local11 = p4.x;
var _local9 = p4.y;
if (!((((Math.max(_local2, _local6) >= Math.min(_local4, _local11)) and (Math.max(_local4, _local11) >= Math.min(_local2, _local6))) and (Math.max(_local1, _local13) >= Math.min(_local3, _local9))) and (Math.max(_local3, _local9) >= Math.min(_local1, _local13)))) {
_local7 = false;
}
if (_local7) {
_local5 = ((_local4 - _local2) * (_local13 - _local1)) - ((_local3 - _local1) * (_local6 - _local2));
if (_local5 != 0) {
_local5 = _local5 / Math.abs(_local5);
}
_local12 = ((_local11 - _local2) * (_local13 - _local1)) - ((_local9 - _local1) * (_local6 - _local2));
if (_local12 != 0) {
_local12 = _local12 / Math.abs(_local12);
}
_local10 = ((_local2 - _local4) * (_local9 - _local3)) - ((_local1 - _local3) * (_local11 - _local4));
if (_local10 != 0) {
_local10 = _local10 / Math.abs(_local10);
}
_local8 = ((_local6 - _local4) * (_local9 - _local3)) - ((_local13 - _local3) * (_local11 - _local4));
if (_local8 != 0) {
_local8 = _local8 / Math.abs(_local8);
}
if (((_local5 * _local12) < 0) and ((_local10 * _local8) < 0)) {
_local7 = true;
} else {
_local7 = false;
}
}
return(_local7);
}
function Arrondi(coord) {
if ((coord - Math.floor(coord)) > 0.5) {
coord = Math.floor(coord) + 1;
} else {
coord = Math.floor(coord);
}
if ((coord % 7) < 3.5) {
coord = coord - (coord % 7);
} else {
coord = coord + (7 - (coord % 7));
}
return(coord);
}
function Arrondi5(coord) {
if ((coord - Math.floor(coord)) > 0.5) {
coord = Math.floor(coord) + 1;
} else {
coord = Math.floor(coord);
}
if ((coord % 4) < 2) {
coord = coord - (coord % 4);
} else {
coord = coord + (4 - (coord % 4));
}
return(coord);
}
function ChargementNiveau(niveau) {
trace(nombreNiveau);
if (--nombreNiveau) {
intTime = setInterval(this, "Timer", 1000);
figure = tabNiveauFW[niveau];
tabNiveauFW.splice(niveau, 1);
if (Number(figure) < 100) {
figureNum = Number(figure.substr(1, figure.length));
} else {
figureNum = Number(figure);
}
_root.figures.gotoAndStop(figureNum);
_root.shape.gotoAndStop(figureNum);
_root.shape._visible = false;
for (clip in shape) {
var _local3 = {x:shape[clip]._x, y:shape[clip]._y};
localToGlobal(_local3);
shape[clip]._x = _local3.x - (_local3.x % 7);
shape[clip]._y = _local3.y - (_local3.y % 7);
}
_root.image.cacheAsBitmap = true;
removeMovieClip(solution);
_root.attachMovie(figure, "solution", -2, {_x:0, _y:0});
_root.solution.cacheAsBitmap = true;
_root.solution._xscale = 70;
_root.solution._yscale = 70;
solution._visible = figureVisible;
Carre();
} else {
num = Number(minuterie.timeClockMin.text);
trace(num);
if (num < Number(tabUserTrophees[4])) {
var _local6 = Number(_root.tabUserTrophees[4]);
if (num < _local6) {
if (num <= 20) {
tabUserTrophees[4] = 0;
trophee = true;
} else if (num <= 35) {
tabUserTrophees[4] = 21;
trophee = true;
} else if (num <= 45) {
tabUserTrophees[4] = 36;
trophee = true;
} else if (num <= 65) {
tabUserTrophees[4] = 46;
trophee = true;
} else if (num <= 70) {
tabUserTrophees[4] = 61;
trophee = true;
}
}
}
_root.attachMovie("ecranScoreFW", "fin", 1000);
}
}
function GetTrophy() {
if (num <= 20) {
return(5);
}
if (num <= 35) {
return(4);
}
if (num <= 45) {
return(3);
}
if (num <= 60) {
return(2);
}
if (num <= 70) {
return(1);
}
}
function Chling() {
removeMovieClip(dustTr);
_root.attachMovie("chling", "chling", 106);
victorySound.start();
removeMovieClip(_root.silhouetteP);
_root.attachMovie("silhouetteContainer", "silhouette", 105, {_x:_root.solution._x, _y:_root.solution._y});
silhouette.attachMovie(_root.figure, "silhouetteShape", 1);
var _local7 = new Color(silhouette.silhouetteShape);
_local7.setRGB(16750848);
var _local9 = 5;
var _local4 = 45;
var _local19 = 16777062 /* 0xFFFF66 */;
var _local12 = 1;
var _local8 = 0;
var _local6 = 1;
var _local13 = 8;
var _local11 = 8;
var _local16 = 1;
var _local5 = 1;
var _local20 = "inner";
var _local17 = false;
var _local18 = new flash.filters.BevelFilter(_local9, _local4, _local19, _local12, _local8, _local6, _local13, _local11, _local16, _local5, _local20, _local17);
_local9 = 0;
_local4 = 45;
_local7 = 0;
var _local21 = 1;
_local13 = 2;
_local11 = 2;
_local16 = 10;
_local5 = 1;
var _local10 = false;
_local17 = false;
var _local14 = false;
var _local15 = new flash.filters.DropShadowFilter(_local9, _local4, _local7, _local21, _local13, _local11, _local16, _local5, _local10, _local17, _local14);
var _local3 = new Array();
_local3.push(_local18);
_local3.push(_local15);
silhouette.filters = _local3;
_root.silhouette._xscale = 70;
_root.silhouette._yscale = 70;
intervalFin = setInterval(this, "Score", 2000);
}
function Score() {
clearInterval(intervalFin);
removeMovieClip(chling);
timePassed = ((Number(minuterie.timeClockMin.text) * 60) + Number(minuterie.timeClockSec.text)) - timePassed2;
timePassed2 = (Number(minuterie.timeClockMin.text) * 60) + Number(minuterie.timeClockSec.text);
if ((300 - timePassed) > 0) {
score = score + ((300 - timePassed) * 2);
}
bulle.play();
MTRouge._x = -1000;
PTJaune._x = -1000;
PTBleu._x = -1000;
GTMauve._x = -1000;
GTBleu._x = -1000;
CarreVert._x = -1000;
ParaBlanc._x = -1000;
silhouette.onEnterFrame = function () {
if (!_root.estEnPause) {
clearInterval(intTime);
if (this._alpha <= 0) {
this.onEnterFrame = null;
var _local3 = Math.floor(Math.random() * tabNiveauFW.length);
_root.ChargementNiveau(_local3);
removeMovieClip(this);
} else {
this._alpha = this._alpha - 5;
}
}
};
}
function Timer() {
time++;
if (!(time % 60)) {
minTime++;
}
if ((time % 60) < 10) {
minuterie.timeClockSec.text = "0" + (time % 60);
} else {
minuterie.timeClockSec.text = time % 60;
}
if (minTime < 10) {
minuterie.timeClockMin.text = "0" + minTime;
} else {
minuterie.timeClockMin.text = minTime;
}
}
stop();
var time = 0;
var minTime = 0;
var intTime = 0;
var nombreNiveau = 21;
fenetreQuitter.swapDepths(20000);
fenetrePause.swapDepths(20001);
var num;
menuPause.swapDepths(13);
choixTex.swapDepths(14);
option.swapDepths(15);
interfa.swapDepths(9);
bulle.swapDepths(10);
minuterie.swapDepths(11);
figures.gotoAndStop(1);
persogame.swapDepths(12);
persogame.gotoAndPlay(2);
place.swapDepths(10000);
var piecesVisibles = false;
var trophee = false;
var intervalFin;
var tabPieces = new Array();
var trouve = false;
var figureNum;
var score = 0;
var tabCoord;
var tabCoordDecal = new Array();
var figure;
var figureVisible;
var shapeUsed;
figureVisible = false;
var hintEnabled;
var timePassed = 0;
var timePassed2 = 0;
_root.attachMovie("MTRouge", "MTRouge", 0);
_root.attachMovie("PTJaune", "PTJaune", 1);
_root.attachMovie("PTBleu", "PTBleu", 2);
_root.attachMovie("GTMauve", "GTMauve", 3);
_root.attachMovie("GTBleu", "GTBleu", 4);
_root.attachMovie("CarreVert", "CarreVert", 5);
_root.attachMovie("ParaBlanc", "ParaBlanc", 6);
tabPieces.push(MTRouge);
tabPieces.push(PTJaune);
tabPieces.push(PTBleu);
tabPieces.push(GTMauve);
tabPieces.push(GTBleu);
tabPieces.push(CarreVert);
tabPieces.push(ParaBlanc);
var alea = Math.floor((Math.random() * 5) + 1);
musique.stop();
musique.attachSound("story_sound");
musique.start();
var placeSound = new Sound(snd);
var rollSound = new Sound(snd);
var victorySound = new Sound(snd);
var victoryMusique = new Sound(snd);
placeSound.attachSound("fx_place");
rollSound.attachSound("fx_roll");
victoryMusique.attachSound("fx_puzzle_completed");
Volume();
var tabNiveauFW = tabUserPiecesP.slice(0, tabUserPiecesP.length);
tabNiveauFW = tabNiveauFW.concat(tabNiveauBonus.slice(0, Number(_root.tabUserTrophee[6])));
var alea = Math.floor(Math.random() * tabNiveauFW.length);
fond.gotoAndStop(Math.floor(alea / 10) + 1);
ChargementNiveau(alea);
Frame 11
function Carre() {
MTRouge._x = 52.5;
MTRouge._y = 52.5;
MTRouge._rotation = -45;
PTJaune._x = 52.5;
PTJaune._y = 175;
PTJaune._rotation = 90;
PTBleu._x = 126;
PTBleu._y = 101.5;
PTBleu._rotation = 180;
GTMauve._x = 126;
GTMauve._y = 175;
GTMauve._rotation = 0;
GTBleu._x = 175;
GTBleu._y = 126;
GTBleu._rotation = -90;
CarreVert._x = 77;
CarreVert._y = 126;
CarreVert._rotation = -45;
if (!ParaBlanc.sens) {
ParaBlanc._xscale = 100;
ParaBlanc.sens = true;
}
if (!ParaBlanc.sens) {
ParaBlanc._xscale = 100;
ParaBlanc.sens = true;
}
ParaBlanc._x = 150.5;
ParaBlanc._y = 52.5;
ParaBlanc._rotation = 0;
}
function Fini() {
soundChime.start();
clearInterval(sablier.sable.interval);
sablier.sable.gotoAndStop(1);
_root.nbPieceSolved++;
timePassed = Math.floor((getTimer() - timePassed) / 1000) - Math.floor(timePause / 1000);
Chling();
}
function Verif(indice) {
var collision = false;
var nbPieces = tabPieces.length;
tabCoord = new Array();
tabCoordDecal = new Array();
i = 0;
while (i < nbPieces) {
var nbPoint = (tabPieces[i].tabPoint.length - 1);
k = 0;
while (k < nbPoint) {
tabCoord.push({pointX:tabPieces[i].tabPoint[k].x, pointY:tabPieces[i].tabPoint[k].y});
tabCoordDecal.push({pointX:tabPieces[i].tabPointDeca[k].x, pointY:tabPieces[i].tabPointDeca[k].y});
k++;
}
i++;
}
tabCoord.sortOn(["pointX", "pointY"], Array.NUMERIC);
removeMovieClip(solution);
_root.attachMovie(figure, "solution", -2, {_x:tabCoord[0].pointX, _y:tabCoord[0].pointY});
_root.solution.cacheAsBitmap = true;
_root.solution._xscale = 70;
_root.solution._yscale = 70;
solution._visible = figureVisible;
j = 0;
k = 0;
while (k < tabCoordDecal.length) {
if (solution.hitTest(tabCoordDecal[k].pointX, tabCoordDecal[k].pointY, true)) {
j++;
}
k++;
}
l = 0;
k = 0;
while (k < tabCoord.length) {
if (solution.hitTest(tabCoord[k].pointX, tabCoord[k].pointY, true)) {
l++;
}
k++;
}
if (j != 23) {
collision = true;
}
if (!collision) {
i = 0;
while (i < nbPieces) {
l = 0;
while (l < nbPieces) {
var nbPoint = (tabPieces[l].tabPoint.length - 1);
j = 0;
while (j < nbPoint) {
var nbPoint = (tabPieces[i].tabPoint.length - 1);
k = 0;
while (k < nbPoint) {
if (CollisionSegment(tabPieces[l].tabPoint[j], tabPieces[l].tabPoint[j + 1], tabPieces[i].tabPoint[k], tabPieces[i].tabPoint[k + 1])) {
collision = true;
}
if (collision) {
break;
}
k++;
}
if (collision) {
break;
}
j++;
}
if (collision) {
break;
}
l++;
}
if (collision) {
break;
}
i++;
}
tabPieces.splice(0, tabPieces.length);
tabPieces.push(MTRouge);
tabPieces.push(PTJaune);
tabPieces.push(PTBleu);
tabPieces.push(GTMauve);
tabPieces.push(GTBleu);
tabPieces.push(CarreVert);
tabPieces.push(ParaBlanc);
if (!collision) {
i = 0;
while (i < nbPieces) {
j = 0;
while (j < nbPieces) {
if (tabPieces[i] != tabPieces[j]) {
if (tabPieces[i].hitTest(tabPieces[j]._x, tabPieces[j]._y, true)) {
collision = true;
}
}
if (collision) {
break;
}
j++;
}
if (collision) {
break;
}
i++;
}
}
}
if (!collision) {
soundChime.start();
clearInterval(sablier.sable.interval);
timePassed = Math.floor((getTimer() - timePassed) / 1000) - Math.floor(timePause / 1000);
sablier.sable.gotoAndStop(1);
_root.nbPieceSolved++;
Chling();
}
}
function CollisionSegment(p1, p2, p3, p4) {
var _local7 = true;
var _local5;
var _local12;
var _local10;
var _local8;
var _local2 = p1.x;
var _local1 = p1.y;
var _local6 = p2.x;
var _local13 = p2.y;
var _local4 = p3.x;
var _local3 = p3.y;
var _local11 = p4.x;
var _local9 = p4.y;
if (!((((Math.max(_local2, _local6) >= Math.min(_local4, _local11)) and (Math.max(_local4, _local11) >= Math.min(_local2, _local6))) and (Math.max(_local1, _local13) >= Math.min(_local3, _local9))) and (Math.max(_local3, _local9) >= Math.min(_local1, _local13)))) {
_local7 = false;
}
if (_local7) {
_local5 = ((_local4 - _local2) * (_local13 - _local1)) - ((_local3 - _local1) * (_local6 - _local2));
if (_local5 != 0) {
_local5 = _local5 / Math.abs(_local5);
}
_local12 = ((_local11 - _local2) * (_local13 - _local1)) - ((_local9 - _local1) * (_local6 - _local2));
if (_local12 != 0) {
_local12 = _local12 / Math.abs(_local12);
}
_local10 = ((_local2 - _local4) * (_local9 - _local3)) - ((_local1 - _local3) * (_local11 - _local4));
if (_local10 != 0) {
_local10 = _local10 / Math.abs(_local10);
}
_local8 = ((_local6 - _local4) * (_local9 - _local3)) - ((_local13 - _local3) * (_local11 - _local4));
if (_local8 != 0) {
_local8 = _local8 / Math.abs(_local8);
}
if (((_local5 * _local12) < 0) and ((_local10 * _local8) < 0)) {
_local7 = true;
} else {
_local7 = false;
}
}
return(_local7);
}
function Arrondi(coord) {
if ((coord - Math.floor(coord)) > 0.5) {
coord = Math.floor(coord) + 1;
} else {
coord = Math.floor(coord);
}
if ((coord % 7) < 3.5) {
coord = coord - (coord % 7);
} else {
coord = coord + (7 - (coord % 7));
}
return(coord);
}
function Arrondi5(coord) {
if ((coord - Math.floor(coord)) > 0.5) {
coord = Math.floor(coord) + 1;
} else {
coord = Math.floor(coord);
}
if ((coord % 4) < 2) {
coord = coord - (coord % 4);
} else {
coord = coord + (4 - (coord % 4));
}
return(coord);
}
function ChargementNiveau(niveau) {
sablierTime.text = "120";
fond.gotoAndStop(Math.floor(niveau / 10) + 1);
timePassed = getTimer();
sablier.sable.gotoAndPlay(2);
figure = tabNiveauLP[niveau];
tabNiveauLP.splice(niveau, 1);
if (Number(figure) < 100) {
figureNum = Number(figure.substr(1, figure.length));
} else {
figureNum = Number(figure);
}
_root.figures.gotoAndStop(figureNum);
_root.shape.gotoAndStop(figureNum);
_root.shape._visible = false;
for (clip in shape) {
var _local2 = {x:shape[clip]._x, y:shape[clip]._y};
localToGlobal(_local2);
shape[clip]._x = (_local2.x - (_local2.x % 7)) - 2;
shape[clip]._y = (_local2.y - (_local2.y % 7)) - 2;
}
_root.image.cacheAsBitmap = true;
removeMovieClip(solution);
_root.attachMovie(figure, "solution", -2, {_x:0, _y:0});
_root.solution.cacheAsBitmap = true;
_root.solution._xscale = 70;
_root.solution._yscale = 70;
solution._visible = figureVisible;
Carre();
}
function Chling() {
removeMovieClip(dustTr);
_root.attachMovie("chling", "chling", 106);
victorySound.start();
removeMovieClip(_root.silhouetteP);
_root.attachMovie("silhouetteContainer", "silhouette", 105, {_x:_root.solution._x, _y:_root.solution._y});
silhouette.attachMovie(_root.figure, "silhouetteShape", 1);
var _local7 = new Color(silhouette.silhouetteShape);
_local7.setRGB(16750848);
var _local9 = 5;
var _local4 = 45;
var _local19 = 16777062 /* 0xFFFF66 */;
var _local12 = 1;
var _local8 = 0;
var _local6 = 1;
var _local13 = 8;
var _local11 = 8;
var _local16 = 1;
var _local5 = 1;
var _local20 = "inner";
var _local17 = false;
var _local18 = new flash.filters.BevelFilter(_local9, _local4, _local19, _local12, _local8, _local6, _local13, _local11, _local16, _local5, _local20, _local17);
_local9 = 0;
_local4 = 45;
_local7 = 0;
var _local21 = 1;
_local13 = 2;
_local11 = 2;
_local16 = 10;
_local5 = 1;
var _local10 = false;
_local17 = false;
var _local14 = false;
var _local15 = new flash.filters.DropShadowFilter(_local9, _local4, _local7, _local21, _local13, _local11, _local16, _local5, _local10, _local17, _local14);
var _local3 = new Array();
_local3.push(_local18);
_local3.push(_local15);
silhouette.filters = _local3;
_root.silhouette._xscale = 70;
_root.silhouette._yscale = 70;
intervalFin = setInterval(this, "Score", 2000);
}
function GetTrophy() {
if (nbPieceSolved >= 125) {
return(10);
}
if (nbPieceSolved >= 80) {
return(9);
}
if (nbPieceSolved >= 50) {
return(8);
}
if (nbPieceSolved >= 25) {
return(7);
}
if (nbPieceSolved >= 10) {
return(6);
}
}
function Score() {
clearInterval(intervalFin);
removeMovieClip(chling);
if ((120 - timePassed) > 0) {
score = score + ((120 - timePassed) * 5);
bulle.play();
}
MTRouge._x = -1000;
PTJaune._x = -1000;
PTBleu._x = -1000;
GTMauve._x = -1000;
GTBleu._x = -1000;
CarreVert._x = -1000;
ParaBlanc._x = -1000;
silhouette.onEnterFrame = function () {
if (!_root.estEnPause) {
clearInterval(sablier.sable.interval);
if (this._alpha <= 0) {
this.onEnterFrame = null;
if (_root.tabNiveauLP.length > 0) {
_root.sablier.sable.play();
var _local4 = Math.floor(Math.random() * tabNiveauLP.length);
_root.ChargementNiveau(_local4);
} else {
if (_root.nbPieceSolved > _root.tabUserTrophees[3]) {
var _local3 = Number(_root.tabUserTrophees[3]);
if ((_local3 >= 80) and (_local3 < 125)) {
if (_root.nbPieceSolved >= 125) {
_root.tabUserTrophees[3] = _root.nbPieceSolved;
trophee = true;
}
} else if (_local3 >= 50) {
if (_root.nbPieceSolved >= 80) {
_root.tabUserTrophees[3] = _root.nbPieceSolved;
trophee = true;
}
} else if (_local3 >= 25) {
if (_root.nbPieceSolved >= 50) {
_root.tabUserTrophees[3] = _root.nbPieceSolved;
trophee = true;
}
} else if (_local3 >= 10) {
if (_root.nbPieceSolved >= 25) {
_root.tabUserTrophees[3] = _root.nbPieceSolved;
trophee = true;
}
} else if (_root.nbPieceSolved >= 10) {
_root.tabUserTrophees[3] = _root.nbPieceSolved;
trophee = true;
} else {
trophee = false;
}
}
_root.attachMovie("ecranScoreLP", "fin", 1000);
}
removeMovieClip(this);
} else {
this._alpha = this._alpha - 5;
}
}
};
}
function EnableHint(bool) {
hintEnabled = true;
this.onEnterFrame = function () {
if (_root.MTRouge._alpha <= 0) {
_root.MTRouge._x = -1000;
_root.PTJaune._x = -1000;
_root.PTBleu._x = -1000;
_root.GTMauve._x = -1000;
_root.GTBleu._x = -1000;
_root.CarreVert._x = -1000;
_root.ParaBlanc._x = -1000;
this.onEnterFrame = null;
if (_root.nbPieceSolved > _root.tabUserTrophees[3]) {
var _local3 = Number(_root.tabUserTrophees[3]);
if ((_local3 >= 80) and (_local3 < 125)) {
if (_root.nbPieceSolved >= 125) {
_root.tabUserTrophees[3] = _root.nbPieceSolved;
trophee = true;
}
} else if (_local3 >= 50) {
if (_root.nbPieceSolved >= 80) {
_root.tabUserTrophees[3] = _root.nbPieceSolved;
trophee = true;
}
} else if (_local3 >= 25) {
if (_root.nbPieceSolved >= 50) {
_root.tabUserTrophees[3] = _root.nbPieceSolved;
trophee = true;
}
} else if (_local3 >= 10) {
if (_root.nbPieceSolved >= 25) {
_root.tabUserTrophees[3] = _root.nbPieceSolved;
trophee = true;
}
} else if (_root.nbPieceSolved >= 10) {
_root.tabUserTrophees[3] = _root.nbPieceSolved;
trophee = true;
} else {
trophee = false;
}
}
_root.attachMovie("ecranScoreLP", "fin", 1000);
} else {
_root.MTRouge._alpha = _root.MTRouge._alpha - 10;
_root.PTJaune._alpha = _root.PTJaune._alpha - 10;
_root.PTBleu._alpha = _root.PTBleu._alpha - 10;
_root.GTMauve._alpha = _root.GTMauve._alpha - 10;
_root.GTBleu._alpha = _root.GTBleu._alpha - 10;
_root.CarreVert._alpha = _root.CarreVert._alpha - 10;
_root.ParaBlanc._alpha = _root.ParaBlanc._alpha - 10;
}
};
}
stop();
fenetreQuitter.swapDepths(20000);
fenetrePause.swapDepths(20001);
menuPause.swapDepths(13);
choixTex.swapDepths(14);
option.swapDepths(15);
interfa.swapDepths(9);
bulle.swapDepths(10);
figures.gotoAndStop(1);
persogame.swapDepths(12);
persogame.gotoAndPlay(2);
place.swapDepths(10000);
var piecesVisibles = false;
var hintEnabled = false;
var intervalFin;
var tabPieces = new Array();
var trouve = false;
var figureNum;
var tempsSable = 2;
var tabCoord;
var tabCoordDecal = new Array();
var timePassed = 0;
var timePause = 0;
var nbPieceSolved = 0;
var figure;
var figureVisible;
var shapeUsed;
var score = 0;
var trophee = false;
figureVisible = false;
var hintEnabled;
_root.attachMovie("MTRouge", "MTRouge", 0);
_root.attachMovie("PTJaune", "PTJaune", 1);
_root.attachMovie("PTBleu", "PTBleu", 2);
_root.attachMovie("GTMauve", "GTMauve", 3);
_root.attachMovie("GTBleu", "GTBleu", 4);
_root.attachMovie("CarreVert", "CarreVert", 5);
_root.attachMovie("ParaBlanc", "ParaBlanc", 6);
tabPieces.push(MTRouge);
tabPieces.push(PTJaune);
tabPieces.push(PTBleu);
tabPieces.push(GTMauve);
tabPieces.push(GTBleu);
tabPieces.push(CarreVert);
tabPieces.push(ParaBlanc);
sablierTime.text = "120";
var alea = Math.floor((Math.random() * 5) + 1);
musique.stop();
musique.attachSound("story_sound");
musique.start();
var placeSound = new Sound(snd);
var rollSound = new Sound(snd);
var victorySound = new Sound(snd);
var victoryMusique = new Sound(snd);
placeSound.attachSound("fx_place");
rollSound.attachSound("fx_roll");
victoryMusique.attachSound("fx_puzzle_completed");
Volume();
var tabNiveauLP = tabUserPiecesP.slice(0, tabUserPiecesP.length);
tabNiveauLP = tabNiveauLP.concat(tabNiveauBonus.slice(0, Number(_root.tabUserTrophee[6])));
alea = Math.floor(Math.random() * tabNiveauLP.length);
ChargementNiveau(alea);
Frame 12
function ShowGrid() {
grille.clear();
grille._alpha = 30;
i = 0;
while (i <= 800) {
if (i % 70) {
grille.lineStyle(1, 9518643, 100);
} else {
grille.lineStyle(1, 0, 100);
}
grille.moveTo(i, 0);
grille.lineTo(i, 0);
grille.lineTo(i, 600);
i = i + 7;
}
i = 0;
while (i <= 600) {
if (i % 70) {
grille.lineStyle(1, 9518643, 100);
} else {
grille.lineStyle(1, 0, 100);
}
grille.moveTo(0, i);
grille.lineTo(0, i);
grille.lineTo(800, i);
i = i + 7;
}
grille2.clear();
grille2._alpha = 40;
i = 0;
while (i <= 142) {
if (i % 20) {
grille2.lineStyle(1, 9518643, 100);
} else {
grille2.lineStyle(1, 0, 100);
}
grille2.moveTo(i, 0);
grille2.lineTo(i, 0);
grille2.lineTo(i, 164);
i = i + 2;
}
i = 0;
while (i <= 164) {
if (i % 20) {
grille2.lineStyle(1, 9518643, 100);
} else {
grille2.lineStyle(1, 0, 100);
}
grille2.moveTo(0, i);
grille2.lineTo(0, i);
grille2.lineTo(142, i);
i = i + 2;
}
grille.cacheAsBitmap = true;
grille2.cacheAsBitmap = true;
_root.gridUsed = true;
}
function ShowShape() {
shape._visible = true;
_root.shapeUsed = false;
}
function Carre() {
MTRouge._x = 52.5;
MTRouge._y = 52.5;
MTRouge._rotation = -45;
PTJaune._x = 52.5;
PTJaune._y = 175;
PTJaune._rotation = 90;
PTBleu._x = 126;
PTBleu._y = 101.5;
PTBleu._rotation = 180;
GTMauve._x = 126;
GTMauve._y = 175;
GTMauve._rotation = 0;
GTBleu._x = 175;
GTBleu._y = 126;
GTBleu._rotation = -90;
CarreVert._x = 77;
CarreVert._y = 126;
CarreVert._rotation = -45;
if (!ParaBlanc.sens) {
ParaBlanc._xscale = 100;
ParaBlanc.sens = true;
}
if (!ParaBlanc.sens) {
ParaBlanc._xscale = 100;
ParaBlanc.sens = true;
}
ParaBlanc._x = 150.5;
ParaBlanc._y = 52.5;
ParaBlanc._rotation = 0;
}
function Verif(indice) {
var collision = false;
var nbPieces = tabPieces.length;
tabCoord = new Array();
tabCoordDecal = new Array();
i = 0;
while (i < nbPieces) {
var nbPoint = (tabPieces[i].tabPoint.length - 1);
k = 0;
while (k < nbPoint) {
tabCoord.push({pointX:tabPieces[i].tabPoint[k].x, pointY:tabPieces[i].tabPoint[k].y});
tabCoordDecal.push({pointX:tabPieces[i].tabPointDeca[k].x, pointY:tabPieces[i].tabPointDeca[k].y});
k++;
}
i++;
}
tabCoord.sortOn(["pointX", "pointY"], Array.NUMERIC);
removeMovieClip(solution);
_root.attachMovie(figure, "solution", -2, {_x:tabCoord[0].pointX, _y:tabCoord[0].pointY});
_root.solution.cacheAsBitmap = true;
_root.solution._xscale = 70;
_root.solution._yscale = 70;
solution._visible = figureVisible;
j = 0;
k = 0;
while (k < tabCoordDecal.length) {
if (solution.hitTest(tabCoordDecal[k].pointX, tabCoordDecal[k].pointY, true)) {
j++;
}
k++;
}
l = 0;
k = 0;
while (k < tabCoord.length) {
if (solution.hitTest(tabCoord[k].pointX, tabCoord[k].pointY, true)) {
l++;
}
k++;
}
if ((j != 23) or (l != 23)) {
collision = true;
}
if (!collision) {
i = 0;
while (i < nbPieces) {
l = 0;
while (l < nbPieces) {
var nbPoint = (tabPieces[l].tabPoint.length - 1);
j = 0;
while (j < nbPoint) {
var nbPoint = (tabPieces[i].tabPoint.length - 1);
k = 0;
while (k < nbPoint) {
if (CollisionSegment(tabPieces[l].tabPoint[j], tabPieces[l].tabPoint[j + 1], tabPieces[i].tabPoint[k], tabPieces[i].tabPoint[k + 1])) {
collision = true;
}
if (collision) {
break;
}
k++;
}
if (collision) {
break;
}
j++;
}
if (collision) {
break;
}
l++;
}
if (collision) {
break;
}
i++;
}
tabPieces.splice(0, tabPieces.length);
tabPieces.push(MTRouge);
tabPieces.push(PTJaune);
tabPieces.push(PTBleu);
tabPieces.push(GTMauve);
tabPieces.push(GTBleu);
tabPieces.push(CarreVert);
tabPieces.push(ParaBlanc);
if (!collision) {
i = 0;
while (i < nbPieces) {
j = 0;
while (j < nbPieces) {
if (tabPieces[i] != tabPieces[j]) {
if (tabPieces[i].hitTest(tabPieces[j]._x, tabPieces[j]._y, true)) {
collision = true;
}
}
if (collision) {
break;
}
j++;
}
if (collision) {
break;
}
i++;
}
}
}
if (!collision) {
Fini();
}
}
function CollisionSegment(p1, p2, p3, p4) {
var _local7 = true;
var _local5;
var _local12;
var _local10;
var _local8;
var _local2 = p1.x;
var _local1 = p1.y;
var _local6 = p2.x;
var _local13 = p2.y;
var _local4 = p3.x;
var _local3 = p3.y;
var _local11 = p4.x;
var _local9 = p4.y;
if (!((((Math.max(_local2, _local6) >= Math.min(_local4, _local11)) and (Math.max(_local4, _local11) >= Math.min(_local2, _local6))) and (Math.max(_local1, _local13) >= Math.min(_local3, _local9))) and (Math.max(_local3, _local9) >= Math.min(_local1, _local13)))) {
_local7 = false;
}
if (_local7) {
_local5 = ((_local4 - _local2) * (_local13 - _local1)) - ((_local3 - _local1) * (_local6 - _local2));
if (_local5 != 0) {
_local5 = _local5 / Math.abs(_local5);
}
_local12 = ((_local11 - _local2) * (_local13 - _local1)) - ((_local9 - _local1) * (_local6 - _local2));
if (_local12 != 0) {
_local12 = _local12 / Math.abs(_local12);
}
_local10 = ((_local2 - _local4) * (_local9 - _local3)) - ((_local1 - _local3) * (_local11 - _local4));
if (_local10 != 0) {
_local10 = _local10 / Math.abs(_local10);
}
_local8 = ((_local6 - _local4) * (_local9 - _local3)) - ((_local13 - _local3) * (_local11 - _local4));
if (_local8 != 0) {
_local8 = _local8 / Math.abs(_local8);
}
if (((_local5 * _local12) < 0) and ((_local10 * _local8) < 0)) {
_local7 = true;
} else {
_local7 = false;
}
}
return(_local7);
}
function Arrondi(coord) {
if ((coord - Math.floor(coord)) > 0.5) {
coord = Math.floor(coord) + 1;
} else {
coord = Math.floor(coord);
}
if ((coord % 7) < 3.5) {
coord = coord - (coord % 7);
} else {
coord = coord + (7 - (coord % 7));
}
return(coord);
}
function Arrondi5(coord) {
if ((coord - Math.floor(coord)) > 0.5) {
coord = Math.floor(coord) + 1;
} else {
coord = Math.floor(coord);
}
if ((coord % 4) < 2) {
coord = coord - (coord % 4);
} else {
coord = coord + (4 - (coord % 4));
}
return(coord);
}
function Fini() {
removeMovieClip(dustTr);
sablier.sable.gotoAndStop(1);
clearInterval(sablier.sable.interval);
Chling();
}
function ChargementNiveau(niveau) {
if (niveau >= tabNiveauFP.length) {
niveau = (niveauFP = 0);
} else if (niveau < 0) {
niveau = (niveauFP = tabNiveauFP.length - 1);
}
fond.gotoAndStop(Math.floor(niveau / 10) + 1);
timePassed = getTimer();
tabHint = [0, 1, 2, 3, 4, 5, 6];
figure = tabNiveauFP[niveau];
if (Number(figure) < 100) {
figureNum = Number(figure.substr(1, figure.length));
} else {
figureNum = Number(figure);
}
_root.figures.gotoAndStop(figureNum);
_root.shape.gotoAndStop(figureNum);
_root.shape._visible = false;
var _local2 = {x:shape._x, y:shape._y};
localToGlobal(_local2);
shape._x = _local2.x - (_local2.x % 7);
shape._y = _local2.y - (_local2.y % 7);
_root.image.cacheAsBitmap = true;
removeMovieClip(solution);
_root.attachMovie(figure, "solution", -2, {_x:0, _y:0});
_root.solution.cacheAsBitmap = true;
_root.solution._xscale = 70;
_root.solution._yscale = 70;
solution._visible = figureVisible;
Carre();
}
function Chling() {
_root.attachMovie("chling", "chling", 106);
victorySound.start();
removeMovieClip(_root.silhouetteP);
_root.attachMovie("silhouetteContainer", "silhouette", 105, {_x:_root.solution._x, _y:_root.solution._y});
silhouette.attachMovie(_root.figure, "silhouetteShape", 1);
var _local7 = new Color(silhouette.silhouetteShape);
_local7.setRGB(16750848);
var _local9 = 5;
var _local4 = 45;
var _local19 = 16777062 /* 0xFFFF66 */;
var _local12 = 1;
var _local8 = 0;
var _local6 = 1;
var _local13 = 8;
var _local11 = 8;
var _local16 = 1;
var _local5 = 1;
var _local20 = "inner";
var _local17 = false;
var _local18 = new flash.filters.BevelFilter(_local9, _local4, _local19, _local12, _local8, _local6, _local13, _local11, _local16, _local5, _local20, _local17);
_local9 = 0;
_local4 = 45;
_local7 = 0;
var _local21 = 1;
_local13 = 2;
_local11 = 2;
_local16 = 10;
_local5 = 1;
var _local10 = false;
_local17 = false;
var _local14 = false;
var _local15 = new flash.filters.DropShadowFilter(_local9, _local4, _local7, _local21, _local13, _local11, _local16, _local5, _local10, _local17, _local14);
var _local3 = new Array();
_local3.push(_local18);
_local3.push(_local15);
silhouette.filters = _local3;
_root.silhouette._xscale = 70;
_root.silhouette._yscale = 70;
intervalFin = setInterval(this, "Score", 2000);
}
function Score() {
clearInterval(intervalFin);
removeMovieClip(chling);
MTRouge._x = -1000;
PTJaune._x = -1000;
PTBleu._x = -1000;
GTMauve._x = -1000;
GTBleu._x = -1000;
CarreVert._x = -1000;
ParaBlanc._x = -1000;
silhouette.onEnterFrame = function () {
if (this._alpha <= 0) {
this.onEnterFrame = null;
} else {
this._alpha = this._alpha - 5;
}
};
ChargementNiveau(++niveauFP);
}
function EnableHint(bool) {
}
function Reset() {
for (clip in _root.figures) {
eval (_root.figures[clip] + ".p0")._visible = false;
eval (_root.figures[clip] + ".p1")._visible = false;
eval (_root.figures[clip] + ".p2")._visible = false;
eval (_root.figures[clip] + ".p3")._visible = false;
eval (_root.figures[clip] + ".p4")._visible = false;
eval (_root.figures[clip] + ".p5")._visible = false;
eval (_root.figures[clip] + ".p6")._visible = false;
}
interfa.btHint.enabled = true;
var color = new Color(interfa.btHint);
color.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
_root.tabHint = [0, 1, 2, 3, 4, 5, 6];
_root.timePassed = getTimer();
_root.nbClick = 0;
_root.shapeUsed = false;
_root.gridUsed = false;
bulle.gotoAndStop(1);
grille.clear();
grille2.clear();
shape._visible = false;
Carre();
}
function Timer(niveau) {
trace("temps : " + timing);
niveauFP = niveau + niveauFP;
ChargementNiveau(niveauFP);
clearInterval(inTime);
if (timing > 20) {
timing = timing - ((timing - 20) / 3);
} else {
timing = 20;
}
inTime = setInterval(this, "Timer", timing, niveau);
}
_root.SaveUser();
stop();
fenetreQuitter.swapDepths(20000);
fenetrePause.swapDepths(20001);
menuPause.swapDepths(13);
choixTex.swapDepths(14);
option.swapDepths(15);
boutons.swapDepths(11);
interfa.swapDepths(9);
bulle.swapDepths(10);
figures.gotoAndStop(1);
persogame.swapDepths(12);
persogame.gotoAndPlay(2);
place.swapDepths(10000);
var piecesVisibles = false;
var tempsSable = 1000;
var intervalFin;
var tabPieces = new Array();
var trouve = false;
var figureNum;
var timing = 1000;
var tabCoord;
var tabCoordDecal = new Array();
var figure;
var figureVisible;
var shapeUsed;
var niveauFP = 0;
figureVisible = false;
var hintEnabled;
var tabHint;
var timePassed;
var nbClick;
var gridUsed;
_root.attachMovie("MTRouge", "MTRouge", 0);
_root.attachMovie("PTJaune", "PTJaune", 1);
_root.attachMovie("PTBleu", "PTBleu", 2);
_root.attachMovie("GTMauve", "GTMauve", 3);
_root.attachMovie("GTBleu", "GTBleu", 4);
_root.attachMovie("CarreVert", "CarreVert", 5);
_root.attachMovie("ParaBlanc", "ParaBlanc", 6);
tabPieces.push(MTRouge);
tabPieces.push(PTJaune);
tabPieces.push(PTBleu);
tabPieces.push(GTMauve);
tabPieces.push(GTBleu);
tabPieces.push(CarreVert);
tabPieces.push(ParaBlanc);
var alea = Math.floor((Math.random() * 5) + 1);
musique.stop();
musique.attachSound("story_sound");
musique.start();
var placeSound = new Sound(snd);
var rollSound = new Sound(snd);
var victorySound = new Sound(snd);
var victoryMusique = new Sound(snd);
placeSound.attachSound("fx_place");
rollSound.attachSound("fx_roll");
victoryMusique.attachSound("fx_puzzle_completed");
Volume();
var tabNiveauFP = tabNiveau.slice(0, niveauAtteint);
tabNiveauFP = tabNiveauFP.concat(tabNiveauBonus.slice(0, Number(_root.tabUserTrophees[6])));
ChargementNiveau(niveauFP);
Frame 13
function Scale() {
if (zoomPuzzle) {
puzzle._x = puzzleX;
puzzle._y = puzzleY;
puzzle._xscale = 81;
puzzle._yscale = 81;
} else {
puzzle._x = iniX;
puzzle._y = iniY;
puzzle._xscale = 27;
puzzle._yscale = 27;
}
}
function Move() {
puzzle._xscale = 81;
puzzle._yscale = 81;
zoomPuzzle = true;
loupe.gotoAndStop(1);
i = 0;
while (i < 10) {
if (i == marqueur) {
eval ("bouton" + i).gotoAndStop(2);
} else {
eval ("bouton" + i).gotoAndStop(1);
}
i++;
}
switch (marqueur) {
case 0 :
puzzle._x = iniX;
puzzle._y = iniY;
break;
case 1 :
puzzle._x = iniX - 646;
puzzle._y = iniY;
break;
case 2 :
puzzle._x = iniX - 1292;
puzzle._y = iniY;
break;
case 3 :
puzzle._x = iniX;
puzzle._y = iniY - 485;
break;
case 4 :
puzzle._x = iniX - 646;
puzzle._y = iniY - 485;
break;
case 5 :
puzzle._x = iniX - 1292;
puzzle._y = iniY - 485;
break;
case 6 :
puzzle._x = iniX;
puzzle._y = iniY - 970;
break;
case 7 :
puzzle._x = iniX - 646;
puzzle._y = iniY - 970;
break;
case 8 :
puzzle._x = iniX - 1292;
puzzle._y = iniY - 970;
}
puzzleX = puzzle._x;
puzzleY = puzzle._y;
}
function SetPieceP() {
i = 0;
while (i < tabUserPiecesP.length) {
eval ("_root.puzzle.ecran." + tabUserPiecesP[i]).blendMode = 0;
i++;
}
SetFigure();
}
function SetFigure() {
removeMovieClip(_root.getInstanceAtDepth(0));
removeMovieClip(_root.getInstanceAtDepth(1));
removeMovieClip(_root.getInstanceAtDepth(2));
removeMovieClip(_root.getInstanceAtDepth(3));
removeMovieClip(_root.getInstanceAtDepth(4));
i = 0;
while (i < 5) {
if (tabUserPiecesNP.length < 6) {
decal = 0;
}
var nIndex;
if ((decal + i) >= 0) {
if ((i + decal) > (tabUserPiecesNP.length - 1)) {
nIndex = (decal + i) - tabUserPiecesNP.length;
} else {
nIndex = i + decal;
}
} else {
nIndex = (tabUserPiecesNP.length + decal) + i;
}
if (i > (tabUserPiecesNP.length - 1)) {
return;
}
_root.attachMovie("smallFigure", tabUserPiecesNP[nIndex], i, {_x:66, _y:100 + (78 * i)});
var piece = eval (tabUserPiecesNP[nIndex]);
piece.num = nIndex;
figure = tabUserPiecesNP[nIndex];
if (Number(figure) < 100) {
var figureNum = Number(figure.substr(1, figure.length));
} else {
var figureNum = Number(figure);
}
piece.gotoAndStop(figureNum);
for (clip in piece) {
var pieceChild = piece[clip];
}
pieceChild.piecesVisibles = true;
var color = new Color(pieceChild.p0);
color.setRGB(16750848);
var color = new Color(pieceChild.p1);
color.setRGB(16750848);
var color = new Color(pieceChild.p2);
color.setRGB(16750848);
var color = new Color(pieceChild.p3);
color.setRGB(16750848);
var color = new Color(pieceChild.p4);
color.setRGB(16750848);
var color = new Color(pieceChild.p5);
color.setRGB(16750848);
var color = new Color(pieceChild.p6);
color.setRGB(16750848);
var distance = 5;
var angleInDegrees = 45;
var highlightColor = 16777062;
var highlightAlpha = 1;
var shadowColor = 0;
var shadowAlpha = 1;
var blurX = 8;
var blurY = 8;
var strength = 1;
var quality = 1;
var type = "inner";
var knockout = false;
var filterB = (new flash.filters.BevelFilter(distance, angleInDegrees, highlightColor, highlightAlpha, shadowColor, shadowAlpha, blurX, blurY, strength, quality, type, knockout));
var distance = 0;
var angleInDegrees = 45;
var color = 0;
var alpha = 1;
var blurX = 2;
var blurY = 2;
var strength = 10;
var quality = 1;
var inner = false;
var knockout = false;
var hideObject = false;
var filterD = (new flash.filters.DropShadowFilter(distance, angleInDegrees, color, alpha, blurX, blurY, strength, quality, inner, knockout, hideObject));
var filterArray = new Array();
filterArray.push(filterB);
filterArray.push(filterD);
piece.filters = filterArray;
piece._xscale = 12;
piece._yscale = 12;
piece.iniX = 66;
piece.iniY = 100 + (78 * i);
piece.onPress = function () {
nIniXM = _root._xmouse;
nIniYM = _root._ymouse;
this.onMouseMove = function () {
startDrag (this);
stopDrag();
if (((eval (this._droptarget)._parent == _root.puzzle.ecran) && (drop == null)) && (eval (this._droptarget).blendMode != 0)) {
drop = eval (this._droptarget);
victorySound.start();
_root.pika._x = _root._xmouse - (_root.pika._width / 2);
_root.pika._y = _root._ymouse - (_root.pika._height / 2);
_root.pika.gotoAndPlay(2);
} else if ((drop != null) && (eval (this._droptarget)._parent != _root.puzzle.ecran)) {
drop = null;
victorySound.stop();
_root.pika._x = -100;
_root.pika._y = -100;
_root.pika.gotoAndStop(1);
}
this._x = this._x + (_root._xmouse - nIniXM);
nIniXM = _root._xmouse;
this._y = this._y + (_root._ymouse - nIniYM);
nIniYM = _root._ymouse;
};
};
piece.onRelease = function () {
this.onMouseMove = null;
stopDrag();
if (eval (this._droptarget)._name == this._name) {
var drop = eval (this._droptarget);
var coord = drop.getBounds(_root.puzzle);
_root.puzzle.shoupBoom.swapDepths(5);
removeMovieClip(_root.puzzle.shoupBoom);
victorySound.stop();
sonPlace.start();
_root.puzzle.attachMovie("shoupBoom", "shoupBoom", 5, {_x:coord.xMin + (drop._width / 2), _y:coord.yMin + (drop._height / 2)});
_root.puzzle.shoupBoom.swapDepths(_root.puzzle.ecran);
_root.puzzle.shoupBoom.blendMode = 5;
drop._visible = false;
drop.blendMode = 0;
_root.puzzle.shoupBoom.drop = drop;
_root.tabUserPiecesP.push(this._name);
_root.tabUserPiecesNP.splice(this.num, 1);
_root.TestUnlock();
_root.SaveUser(_root.playerName);
if (_root.tabUserPiecesP.length == 150) {
_root.gotoAndStop(15);
} else {
_root.SetFigure();
removeMovieClip(this);
}
} else {
victorySound.stop();
sonWrong.start();
this._x = this.iniX;
this._y = this.iniY;
}
_root.pika._x = -100;
_root.pika._y = -100;
_root.pika.gotoAndStop(1);
};
piece.onReleaseOutside = function () {
this.onMouseMove = null;
stopDrag();
if (eval (this._droptarget)._name == this._name) {
var drop = eval (this._droptarget);
var coord = drop.getBounds(_root.puzzle);
_root.puzzle.shoupBoom.swapDepths(5);
removeMovieClip(_root.puzzle.shoupBoom);
victorySound.stop();
sonPlace.start();
_root.puzzle.attachMovie("shoupBoom", "shoupBoom", 5, {_x:coord.xMin + (drop._width / 2), _y:coord.yMin + (drop._height / 2)});
_root.puzzle.shoupBoom.swapDepths(_root.puzzle.ecran);
_root.tabUserPiecesP.push(this._name);
_root.tabUserPiecesNP.splice(this.num, 1);
_root.TestUnlock();
_root.SaveUser(_root.playerName);
removeMovieClip(this);
if (_root.tabUserPiecesP.length == 150) {
_root.gotoAndStop(15);
} else {
_root.SetFigure();
}
} else {
victorySound.stop();
sonWrong.start();
this._x = this.iniX;
this._y = this.iniY;
}
_root.pika._x = -100;
_root.pika._y = -100;
_root.pika.gotoAndStop(1);
};
i++;
}
}
function TestUnlock() {
var _local2 = _root.tabUserPiecesP.length;
if (((((((((_local2 == 135) or (_local2 == 120)) or (_local2 == 105)) or (_local2 == 90)) or (_local2 == 75)) or (_local2 == 60)) or (_local2 == 45)) or (_local2 == 30)) or (_local2 == 15)) {
_root.trophee.play();
}
}
this.onEnterFrame = null;
stop();
fenetreQuitter.swapDepths(20000);
fenetrePause.swapDepths(20001);
var drop;
var zoomPuzzle = true;
var marqueur = 0;
var iniX = puzzle._x;
var iniY = puzzle._y;
var puzzleX = iniX;
var puzzleY = iniY;
var decal = 0;
var piecesVisibles = true;
bouton0.gotoAndStop(2);
loupe.gotoAndStop(1);
musique.stop();
musique.attachSound("great_puzzle");
musique.start();
var sonPlace = new Sound(snd);
var sonWrong = new Sound(snd);
sonPlace.attachSound("fx_placeGP");
sonWrong.attachSound("fx_wrong");
victorySound.attachSound("fx_stars");
musique.setVolume(volumeMusique);
sonPlace.setVolume(volumeSon);
sonWrong.setVolume(volumeSon);
victorySound.setVolume(_root.volumeSon);
if (tabUserPiecesP.length < 1) {
}
Instance of Symbol 2272 MovieClip "loupe" in Frame 13
on (press) {
_root.zoomPuzzle = !_root.zoomPuzzle;
_root.Scale();
if (_root.zoomPuzzle) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(4);
}
}
on (rollOver) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(4);
}
}
on (rollOut) {
if (this._currentframe == 2) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(3);
}
}
Instance of Symbol 2279 MovieClip "bouton3" in Frame 13
on (press) {
_root.marqueur = Number(this._name.substr(6, 7));
_root.Move();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
if (_root.marqueur != Number(this._name.substr(6, 7))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 2279 MovieClip "bouton4" in Frame 13
on (press) {
_root.marqueur = Number(this._name.substr(6, 7));
_root.Move();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
if (_root.marqueur != Number(this._name.substr(6, 7))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 2279 MovieClip "bouton5" in Frame 13
on (press) {
_root.marqueur = Number(this._name.substr(6, 7));
_root.Move();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
if (_root.marqueur != Number(this._name.substr(6, 7))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 2279 MovieClip "bouton0" in Frame 13
on (press) {
_root.marqueur = Number(this._name.substr(6, 7));
_root.Move();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
if (_root.marqueur != Number(this._name.substr(6, 7))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 2279 MovieClip "bouton1" in Frame 13
on (press) {
_root.marqueur = Number(this._name.substr(6, 7));
_root.Move();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
if (_root.marqueur != Number(this._name.substr(6, 7))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 2279 MovieClip "bouton2" in Frame 13
on (press) {
_root.marqueur = Number(this._name.substr(6, 7));
_root.Move();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
if (_root.marqueur != Number(this._name.substr(6, 7))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 2279 MovieClip "bouton6" in Frame 13
on (press) {
_root.marqueur = Number(this._name.substr(6, 7));
_root.Move();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
if (_root.marqueur != Number(this._name.substr(6, 7))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 2279 MovieClip "bouton7" in Frame 13
on (press) {
_root.marqueur = Number(this._name.substr(6, 7));
_root.Move();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
if (_root.marqueur != Number(this._name.substr(6, 7))) {
this.gotoAndStop(1);
}
}
Instance of Symbol 2279 MovieClip "bouton8" in Frame 13
on (press) {
_root.marqueur = Number(this._name.substr(6, 7));
_root.Move();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
if (_root.marqueur != Number(this._name.substr(6, 7))) {
this.gotoAndStop(1);
}
}
Frame 14
musique.stop();
musique.attachSound("story_sound");
musique.start();
musique.setVolume(volumeMusique);
fenetreQuitter.swapDepths(20000);
fenetrePause.swapDepths(20001);
Frame 15
musique.stop();
musique.attachSound("story_sound");
musique.start();
musique.setVolume(volumeMusique);
fenetreQuitter.swapDepths(20000);
fenetrePause.swapDepths(20001);
Frame 16
function ShowGrid() {
grille.clear();
grille._alpha = 30;
i = 245;
while (i <= 798) {
if (i % 70) {
grille.lineStyle(1, 9518643, 100);
} else {
grille.lineStyle(1, 0, 100);
}
grille.moveTo(i, 0);
grille.lineTo(i, 0);
grille.lineTo(i, 595);
i = i + 7;
}
i = 0;
while (i <= 595) {
if (i % 70) {
grille.lineStyle(1, 9518643, 100);
} else {
grille.lineStyle(1, 0, 100);
}
grille.moveTo(245, i);
grille.lineTo(245, i);
grille.lineTo(798, i);
i = i + 7;
}
grille2.clear();
grille2._alpha = 40;
i = 0;
while (i <= 142) {
if (i % 20) {
grille2.lineStyle(1, 9518643, 100);
} else {
grille2.lineStyle(1, 0, 100);
}
grille2.moveTo(i, 0);
grille2.lineTo(i, 0);
grille2.lineTo(i, 164);
i = i + 2;
}
i = 0;
while (i <= 164) {
if (i % 20) {
grille2.lineStyle(1, 9518643, 100);
} else {
grille2.lineStyle(1, 0, 100);
}
grille2.moveTo(0, i);
grille2.lineTo(0, i);
grille2.lineTo(142, i);
i = i + 2;
}
grille.cacheAsBitmap = true;
grille2.cacheAsBitmap = true;
gridUsed = true;
EnableHint(false);
}
function ShowShape() {
shape._visible = true;
shapeUsed = true;
EnableHint(false);
}
function CarreTuto() {
clearInterval(intervalFin);
bulle.gotoAndStop(1);
MTRouge._visible = true;
PTJaune._visible = true;
PTBleu._visible = true;
GTMauve._visible = true;
GTBleu._visible = true;
CarreVert._visible = true;
ParaBlanc._visible = true;
if (!ParaBlanc.sens) {
ParaBlanc._xscale = 100;
ParaBlanc.sens = true;
}
MTRouge.enabled = true;
PTJaune.enabled = true;
PTBleu.enabled = true;
GTMauve.enabled = true;
GTBleu.enabled = true;
CarreVert.enabled = true;
ParaBlanc.para.enabled = true;
ParaBlanc.bout.enabled = true;
switch (niveauAtteint) {
case -5 :
tabHint = [];
MTRouge._x = 539;
MTRouge._y = 399;
MTRouge._rotation = 90;
PTJaune._x = 486.5;
PTJaune._y = 241.5;
PTJaune._rotation = 135;
PTBleu._x = 451.5;
PTBleu._y = 311.5;
PTBleu._rotation = -135;
GTMauve._x = 126;
GTMauve._y = 175;
GTMauve._rotation = 0;
GTBleu._x = 469;
GTBleu._y = 154;
GTBleu._rotation = -45;
CarreVert._x = 469;
CarreVert._y = 434;
CarreVert._rotation = 0;
ParaBlanc._xscale = -100;
ParaBlanc.sens = false;
ParaBlanc._x = 574;
ParaBlanc._y = 154;
ParaBlanc._rotation = 135;
MTRouge.Test();
PTJaune.Test();
PTBleu.Test();
GTBleu.Test();
CarreVert.Test();
ParaBlanc.Test();
MTRouge.enabled = false;
PTJaune.enabled = false;
PTBleu.enabled = false;
GTBleu.enabled = false;
CarreVert.enabled = false;
ParaBlanc.para.enabled = false;
ParaBlanc.bout.enabled = false;
piecesVisibles = true;
ShowGrid();
return;
case -4 :
tabHint = [];
MTRouge._x = 479.5;
MTRouge._y = 185.5;
MTRouge._rotation = 45;
PTJaune._x = 52.5;
PTJaune._y = 175;
PTJaune._rotation = 90;
PTBleu._x = 126;
PTBleu._y = 101.5;
PTBleu._rotation = 180;
GTMauve._x = 504;
GTMauve._y = 308;
GTMauve._rotation = 0;
GTBleu._x = 455;
GTBleu._y = 259;
GTBleu._rotation = 90;
CarreVert._x = 567;
CarreVert._y = 392;
CarreVert._rotation = 0;
ParaBlanc._xscale = -100;
ParaBlanc.sens = false;
ParaBlanc._x = 577.5;
ParaBlanc._y = 234.5;
ParaBlanc._rotation = 90;
MTRouge.Test();
GTMauve.Test();
GTBleu.Test();
CarreVert.Test();
ParaBlanc.Test();
MTRouge.enabled = false;
GTMauve.enabled = false;
GTBleu.enabled = false;
CarreVert.enabled = false;
ParaBlanc.para.enabled = false;
ParaBlanc.bout.enabled = false;
piecesVisibles = true;
ShowGrid();
return;
case -3 :
MTRouge._x = 490;
MTRouge._y = 441;
MTRouge._rotation = 180;
PTJaune._x = 52.5;
PTJaune._y = 175;
PTJaune._rotation = 90;
PTBleu._x = 126;
PTBleu._y = 101.5;
PTBleu._rotation = 180;
GTMauve._x = 532;
GTMauve._y = 161;
GTMauve._rotation = 0;
GTBleu._x = 609;
GTBleu._y = 378;
GTBleu._rotation = 90;
CarreVert._x = 77;
CarreVert._y = 126;
CarreVert._rotation = -45;
ParaBlanc._xscale = 100;
ParaBlanc.sens = true;
ParaBlanc._x = 150.5;
ParaBlanc._y = 52.5;
ParaBlanc._rotation = 0;
MTRouge.Test();
GTMauve.Test();
GTBleu.Test();
MTRouge.enabled = false;
GTMauve.enabled = false;
GTBleu.enabled = false;
piecesVisibles = true;
ShowGrid();
return;
case -2 :
MTRouge._x = 52.5;
MTRouge._y = 52.5;
MTRouge._rotation = -45;
PTJaune._x = 451.5;
PTJaune._y = 206.5;
PTJaune._rotation = 135;
PTBleu._x = 126;
PTBleu._y = 101.5;
PTBleu._rotation = 180;
GTMauve._x = 126;
GTMauve._y = 175;
GTMauve._rotation = 0;
GTBleu._x = 175;
GTBleu._y = 126;
GTBleu._rotation = -90;
CarreVert._x = 504;
CarreVert._y = 189;
CarreVert._rotation = 0;
ParaBlanc._xscale = 100;
ParaBlanc.sens = true;
ParaBlanc._x = 469;
ParaBlanc._y = 259;
ParaBlanc._rotation = 45;
PTJaune.Test();
CarreVert.Test();
ParaBlanc.Test();
PTJaune.enabled = false;
CarreVert.enabled = false;
ParaBlanc.para.enabled = false;
ParaBlanc.bout.enabled = false;
var color = new Color(interfa.btHint);
color.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
interfa.btHint.enabled = true;
piecesVisibles = false;
_root.gridUsed = false;
grille2.clear();
grille.clear();
_root.tabHint = [0, 1, 2, 3, 4, 5, 6];
hintEnabled = false;
for (clip in _root.figures) {
eval (_root.figures[clip] + ".p0")._visible = false;
eval (_root.figures[clip] + ".p1")._visible = false;
eval (_root.figures[clip] + ".p2")._visible = false;
eval (_root.figures[clip] + ".p3")._visible = false;
eval (_root.figures[clip] + ".p4")._visible = false;
eval (_root.figures[clip] + ".p5")._visible = false;
eval (_root.figures[clip] + ".p6")._visible = false;
}
return;
case -1 :
MTRouge._x = 52.5;
MTRouge._y = 52.5;
MTRouge._rotation = -45;
PTJaune._x = 52.5;
PTJaune._y = 175;
PTJaune._rotation = 90;
PTBleu._x = 126;
PTBleu._y = 101.5;
PTBleu._rotation = 180;
GTMauve._x = 126;
GTMauve._y = 175;
GTMauve._rotation = 0;
GTBleu._x = 588;
GTBleu._y = 273;
GTBleu._rotation = -90;
CarreVert._x = 77;
CarreVert._y = 126;
CarreVert._rotation = -45;
ParaBlanc._xscale = 100;
ParaBlanc.sens = true;
ParaBlanc._x = 150.5;
ParaBlanc._y = 52.5;
ParaBlanc._rotation = 0;
GTBleu.Test();
GTBleu.enabled = false;
var color = new Color(interfa.btHint);
color.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
interfa.btHint.enabled = true;
piecesVisibles = false;
_root.gridUsed = false;
grille2.clear();
grille.clear();
_root.tabHint = [0, 1, 2, 3, 4, 5, 6];
hintEnabled = false;
for (clip in _root.figures) {
eval (_root.figures[clip] + ".p0")._visible = false;
eval (_root.figures[clip] + ".p1")._visible = false;
eval (_root.figures[clip] + ".p2")._visible = false;
eval (_root.figures[clip] + ".p3")._visible = false;
eval (_root.figures[clip] + ".p4")._visible = false;
eval (_root.figures[clip] + ".p5")._visible = false;
eval (_root.figures[clip] + ".p6")._visible = false;
}
}
}
function Verif(indice) {
var collision = false;
var nbPieces = tabPieces.length;
tabCoord = new Array();
tabCoordDecal = new Array();
i = 0;
while (i < nbPieces) {
var nbPoint = (tabPieces[i].tabPoint.length - 1);
k = 0;
while (k < nbPoint) {
tabCoord.push({pointX:tabPieces[i].tabPoint[k].x, pointY:tabPieces[i].tabPoint[k].y});
tabCoordDecal.push({pointX:tabPieces[i].tabPointDeca[k].x, pointY:tabPieces[i].tabPointDeca[k].y});
k++;
}
i++;
}
tabCoord.sortOn(["pointX", "pointY"], Array.NUMERIC);
removeMovieClip(solution);
_root.attachMovie(figure, "solution", -2, {_x:tabCoord[0].pointX, _y:tabCoord[0].pointY});
_root.solution.cacheAsBitmap = true;
solution._visible = figureVisible;
j = 0;
k = 0;
while (k < tabCoordDecal.length) {
if (solution.hitTest(tabCoordDecal[k].pointX, tabCoordDecal[k].pointY, true)) {
j++;
}
k++;
}
l = 0;
k = 0;
while (k < tabCoord.length) {
if (solution.hitTest(tabCoord[k].pointX, tabCoord[k].pointY, true)) {
l++;
}
k++;
}
if (j != 23) {
collision = true;
}
if (!collision) {
i = 0;
while (i < nbPieces) {
l = 0;
while (l < nbPieces) {
var nbPoint = (tabPieces[l].tabPoint.length - 1);
j = 0;
while (j < nbPoint) {
var nbPoint = (tabPieces[i].tabPoint.length - 1);
k = 0;
while (k < nbPoint) {
if (CollisionSegment(tabPieces[l].tabPoint[j], tabPieces[l].tabPoint[j + 1], tabPieces[i].tabPoint[k], tabPieces[i].tabPoint[k + 1])) {
collision = true;
}
if (collision) {
break;
}
k++;
}
if (collision) {
break;
}
j++;
}
if (collision) {
break;
}
l++;
}
if (collision) {
break;
}
i++;
}
tabPieces.splice(0, tabPieces.length);
tabPieces.push(MTRouge);
tabPieces.push(PTJaune);
tabPieces.push(PTBleu);
tabPieces.push(GTMauve);
tabPieces.push(GTBleu);
tabPieces.push(CarreVert);
tabPieces.push(ParaBlanc);
if (!collision) {
i = 0;
while (i < nbPieces) {
j = 0;
while (j < nbPieces) {
if (tabPieces[i] != tabPieces[j]) {
if (tabPieces[i].hitTest(tabPieces[j]._x, tabPieces[j]._y, true)) {
collision = true;
}
}
if (collision) {
break;
}
j++;
}
if (collision) {
break;
}
i++;
}
}
}
if (!collision) {
Chling();
}
}
function CollisionSegment(p1, p2, p3, p4) {
var _local7 = true;
var _local5;
var _local12;
var _local10;
var _local8;
var _local2 = p1.x;
var _local1 = p1.y;
var _local6 = p2.x;
var _local13 = p2.y;
var _local4 = p3.x;
var _local3 = p3.y;
var _local11 = p4.x;
var _local9 = p4.y;
if (!((((Math.max(_local2, _local6) >= Math.min(_local4, _local11)) and (Math.max(_local4, _local11) >= Math.min(_local2, _local6))) and (Math.max(_local1, _local13) >= Math.min(_local3, _local9))) and (Math.max(_local3, _local9) >= Math.min(_local1, _local13)))) {
_local7 = false;
}
if (_local7) {
_local5 = ((_local4 - _local2) * (_local13 - _local1)) - ((_local3 - _local1) * (_local6 - _local2));
if (_local5 != 0) {
_local5 = _local5 / Math.abs(_local5);
}
_local12 = ((_local11 - _local2) * (_local13 - _local1)) - ((_local9 - _local1) * (_local6 - _local2));
if (_local12 != 0) {
_local12 = _local12 / Math.abs(_local12);
}
_local10 = ((_local2 - _local4) * (_local9 - _local3)) - ((_local1 - _local3) * (_local11 - _local4));
if (_local10 != 0) {
_local10 = _local10 / Math.abs(_local10);
}
_local8 = ((_local6 - _local4) * (_local9 - _local3)) - ((_local13 - _local3) * (_local11 - _local4));
if (_local8 != 0) {
_local8 = _local8 / Math.abs(_local8);
}
if (((_local5 * _local12) < 0) and ((_local10 * _local8) < 0)) {
_local7 = true;
} else {
_local7 = false;
}
}
return(_local7);
}
function Arrondi(coord) {
if ((coord - Math.floor(coord)) > 0.5) {
coord = Math.floor(coord) + 1;
} else {
coord = Math.floor(coord);
}
if ((coord % 7) < 3.5) {
coord = coord - (coord % 7);
} else {
coord = coord + (7 - (coord % 7));
}
return(coord);
}
function Arrondi5(coord) {
if ((coord - Math.floor(coord)) > 0.5) {
coord = Math.floor(coord) + 1;
} else {
coord = Math.floor(coord);
}
if ((coord % 4) < 2) {
coord = coord - (coord % 4);
} else {
coord = coord + (4 - (coord % 4));
}
return(coord);
}
function ChargementNiveau(niveau) {
grille2.clear();
grille.clear();
musique.start();
fond.gotoAndStop(1);
tabHint = [0, 1, 2, 3, 4, 5, 6];
timePassed = getTimer();
nbClick = 0;
gridUsed = false;
shapeUsed = true;
figure = tabNiveauTuto[niveau];
if (niveau < tabNiveauTuto.length) {
CarreTuto();
_root.figures.gotoAndStop(niveau + 1);
_root.shape.gotoAndStop(niveau + 1);
_root.shape._visible = true;
_root.image.cacheAsBitmap = true;
removeMovieClip(solution);
_root.attachMovie(figure, "solution", -2, {_x:0, _y:0});
_root.solution.cacheAsBitmap = true;
solution._visible = figureVisible;
CarreTuto();
} else {
finTuto.gotoAndStop(2);
}
}
function Chling() {
musique.stop();
victoryMusique.start();
removeMovieClip(dustTr);
_root.attachMovie("chling", "chling", 106);
removeMovieClip(_root.silhouetteP);
_root.attachMovie("silhouetteContainer", "silhouette", 105, {_x:_root.solution._x, _y:_root.solution._y});
silhouette.attachMovie(_root.figure, "silhouetteShape", 1);
var _local7 = new Color(silhouette.silhouetteShape);
_local7.setRGB(16750848);
var _local9 = 5;
var _local4 = 45;
var _local19 = 16777062 /* 0xFFFF66 */;
var _local12 = 1;
var _local8 = 0;
var _local6 = 1;
var _local13 = 8;
var _local11 = 8;
var _local16 = 1;
var _local5 = 1;
var _local20 = "inner";
var _local17 = false;
var _local18 = new flash.filters.BevelFilter(_local9, _local4, _local19, _local12, _local8, _local6, _local13, _local11, _local16, _local5, _local20, _local17);
_local9 = 0;
_local4 = 45;
_local7 = 0;
var _local21 = 1;
_local13 = 2;
_local11 = 2;
_local16 = 10;
_local5 = 1;
var _local10 = false;
_local17 = false;
var _local14 = false;
var _local15 = new flash.filters.DropShadowFilter(_local9, _local4, _local7, _local21, _local13, _local11, _local16, _local5, _local10, _local17, _local14);
var _local3 = new Array();
_local3.push(_local18);
_local3.push(_local15);
silhouette.filters = _local3;
intervalFin = setInterval(this, "Score", 2000);
MTRouge._visible = false;
PTJaune._visible = false;
PTBleu._visible = false;
GTMauve._visible = false;
GTBleu._visible = false;
CarreVert._visible = false;
ParaBlanc._visible = false;
}
function Score() {
clearInterval(intervalFin);
removeMovieClip(chling);
niveauAtteint++;
silhouette.onEnterFrame = function () {
if (this._alpha <= 0) {
this.onEnterFrame = null;
for (clip in _root) {
removeMovieClip(_root[clip]);
}
gotoAndStop (17);
} else {
this._alpha = this._alpha - 5;
}
};
}
function EnableHint(bool) {
if ((_root.gridUsed and _root.shapeUsed) and (_root.tabHint.length <= 0)) {
interfa.btHint.enabled = false;
var _local2 = new Color(interfa.btHint);
_local2.setTransform({ra:40, rb:60, ga:40, gb:60, ba:40, bb:60, aa:100, ab:0});
}
}
stop();
_root.SaveUser();
fenetreQuitter.swapDepths(20000);
fenetrePause.swapDepths(20001);
boutons.swapDepths(11);
menuPause.swapDepths(13);
finTuto.swapDepths(14);
interfa.swapDepths(9);
bulle.swapDepths(10);
figures.gotoAndStop(1);
place.swapDepths(10000);
persogame.swapDepths(12);
var color = new Color(interfa.btHint);
color.setTransform({ra:40, rb:60, ga:40, gb:60, ba:40, bb:60, aa:100, ab:0});
interfa.btHint.enabled = false;
var shapeUsed;
var gridUsed;
var piecesVisibles = true;
var tempsSable = 1;
var intervalFin;
var tabPieces = new Array();
var trouve = false;
var tabNiveauTuto = ["t05", "t04", "t03", "t02", "t01"];
var tabCoord;
var tabHint = new Array();
var tabCoordDecal = new Array();
var figure;
var figureVisible = false;
var placeSound = new Sound();
var rollSound = new Sound();
var victorySound = new Sound();
var victoryMusique = new Sound();
_root.attachMovie("MTRouge", "MTRouge", 0);
_root.attachMovie("PTJaune", "PTJaune", 1);
_root.attachMovie("PTBleu", "PTBleu", 2);
_root.attachMovie("GTMauve", "GTMauve", 3);
_root.attachMovie("GTBleu", "GTBleu", 4);
_root.attachMovie("CarreVert", "CarreVert", 5);
_root.attachMovie("ParaBlanc", "ParaBlanc", 6);
tabPieces.push(MTRouge);
tabPieces.push(PTJaune);
tabPieces.push(PTBleu);
tabPieces.push(GTMauve);
tabPieces.push(GTBleu);
tabPieces.push(CarreVert);
tabPieces.push(ParaBlanc);
var tutoTexte = "";
var alea = Math.floor((Math.random() * 5) + 1);
musique.stop();
musique.attachSound("story_sound");
musique.start();
var placeSound = new Sound(snd);
var rollSound = new Sound(snd);
var victorySound = new Sound(snd);
var victoryMusique = new Sound(snd);
placeSound.attachSound("fx_place");
rollSound.attachSound("fx_roll");
victoryMusique.attachSound("fx_puzzle_completed");
Volume();
if (niveauAtteint == -5) {
help.gotoAndStop(2);
persogame.gotoAndPlay(2);
} else {
persogame.gotoAndPlay(124);
}
ChargementNiveau(5 + niveauAtteint);
var alea = Math.floor((Math.random() * 5) + 1);
musique.setVolume(volumeMusique);
Frame 17
gotoAndStop (16);
Symbol 19 MovieClip [curRot] Frame 12
removeMovieClip(this);
Symbol 50 MovieClip [001] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 52 MovieClip [002] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 54 MovieClip [003] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 56 MovieClip [004] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 58 MovieClip [005] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 60 MovieClip [006] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 62 MovieClip [007] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 64 MovieClip [008] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 66 MovieClip [009] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 68 MovieClip [010] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 70 MovieClip [011] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 72 MovieClip [012] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 74 MovieClip [013] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 76 MovieClip [014] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 78 MovieClip [015] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 80 MovieClip [016] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 82 MovieClip [017] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 84 MovieClip [018] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 86 MovieClip [019] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 88 MovieClip [020] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 90 MovieClip [021] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 92 MovieClip [022] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 94 MovieClip [023] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 96 MovieClip [024] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 98 MovieClip [025] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 100 MovieClip [026] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 102 MovieClip [027] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 104 MovieClip [028] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 106 MovieClip [029] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 108 MovieClip [030] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 110 MovieClip [031] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 112 MovieClip [032] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 114 MovieClip [033] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 116 MovieClip [034] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 118 MovieClip [035] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 120 MovieClip [036] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 122 MovieClip [037] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 124 MovieClip [038] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 126 MovieClip [039] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 128 MovieClip [040] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 130 MovieClip [041] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 132 MovieClip [042] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 134 MovieClip [043] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 136 MovieClip [044] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 138 MovieClip [045] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 140 MovieClip [046] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 142 MovieClip [047] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 144 MovieClip [048] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 146 MovieClip [049] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 148 MovieClip [050] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 150 MovieClip [051] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 152 MovieClip [052] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 154 MovieClip [053] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 156 MovieClip [054] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 158 MovieClip [055] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 160 MovieClip [056] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 162 MovieClip [057] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 164 MovieClip [058] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 166 MovieClip [059] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 168 MovieClip [060] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 170 MovieClip [061] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 172 MovieClip [062] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 174 MovieClip [063] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 176 MovieClip [064] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 178 MovieClip [065] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 180 MovieClip [066] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 182 MovieClip [067] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 184 MovieClip [068] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 186 MovieClip [069] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 188 MovieClip [070] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 190 MovieClip [071] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 192 MovieClip [072] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 194 MovieClip [073] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 196 MovieClip [074] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 198 MovieClip [075] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 200 MovieClip [076] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 202 MovieClip [077] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 204 MovieClip [078] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 206 MovieClip [079] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 208 MovieClip [080] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 210 MovieClip [081] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 212 MovieClip [082] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 214 MovieClip [083] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 216 MovieClip [084] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 218 MovieClip [085] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 220 MovieClip [086] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 222 MovieClip [087] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 224 MovieClip [088] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 226 MovieClip [089] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 228 MovieClip [090] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 230 MovieClip [091] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 232 MovieClip [092] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 234 MovieClip [093] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 236 MovieClip [094] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 238 MovieClip [095] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 240 MovieClip [096] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 242 MovieClip [097] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 244 MovieClip [098] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 246 MovieClip [099] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 248 MovieClip [100] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 250 MovieClip [101] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 252 MovieClip [102] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 254 MovieClip [103] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 256 MovieClip [104] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 258 MovieClip [105] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 260 MovieClip [106] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 262 MovieClip [107] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 264 MovieClip [108] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 266 MovieClip [109] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 268 MovieClip [110] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 270 MovieClip [111] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 272 MovieClip [112] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 274 MovieClip [113] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 276 MovieClip [114] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 278 MovieClip [115] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 280 MovieClip [116] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 282 MovieClip [117] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 284 MovieClip [118] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 286 MovieClip [119] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 288 MovieClip [120] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 290 MovieClip [121] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 292 MovieClip [122] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 294 MovieClip [123] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 296 MovieClip [124] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 298 MovieClip [125] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 300 MovieClip [126] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 302 MovieClip [127] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 304 MovieClip [128] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 306 MovieClip [129] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 308 MovieClip [130] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 310 MovieClip [131] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 312 MovieClip [132] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 314 MovieClip [133] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 316 MovieClip [134] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 318 MovieClip [135] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 320 MovieClip [136] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 322 MovieClip [137] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 324 MovieClip [138] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 326 MovieClip [139] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 328 MovieClip [140] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 330 MovieClip [141] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 332 MovieClip [142] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 334 MovieClip [143] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 336 MovieClip [144] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 338 MovieClip [145] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 340 MovieClip [146] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 342 MovieClip [147] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 344 MovieClip [148] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 346 MovieClip [149] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 348 MovieClip [150] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 350 MovieClip [151] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 352 MovieClip [152] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 354 MovieClip [153] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 356 MovieClip [154] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 358 MovieClip [155] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 360 MovieClip [156] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 362 MovieClip [157] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 364 MovieClip [158] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 366 MovieClip [159] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 368 MovieClip [160] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 370 MovieClip [161] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 372 MovieClip [162] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 374 MovieClip [163] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 376 MovieClip [164] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 378 MovieClip [165] Frame 1
i = 0;
while (i < 7) {
if (this.piecesVisibles == null) {
var piecesVisibles = false;
}
eval ("p" + i)._visible = piecesVisibles;
i++;
}
Symbol 381 MovieClip Frame 1
var niveau = Number(_root.GetNiveau());
var figure = _root.tabNiveau[niveau];
var figureNum;
if (Number(figure) < 100) {
figureNum = Number(figure.substr(1, figure.length));
} else {
figureNum = Number(figure);
}
if (niveau >= _root.niveauAtteint) {
score.text = 0;
grade.gotoAndStop(6);
figures._visible = false;
} else {
score.text = _root.tabUserScoreStory[niveau].score;
grade.gotoAndStop(Number(_root.tabUserScoreStory[niveau].grade) + 1);
figures.piece.gotoAndStop(figureNum);
}
Symbol 382 MovieClip [bulleCarteG] Frame 15
stop();
Symbol 383 MovieClip [bulleCarteD] Frame 15
stop();
Symbol 398 Button
on (press) {
for (clip in _root) {
removeMovieClip(_root[clip]);
}
_root.gotoAndStop(4);
}
Symbol 421 MovieClip Frame 1
function TexteNext(num) {
if (num < 4) {
eval ("score0" + num).play();
} else if (_root.trophee) {
_parent.rouleau.play();
}
}
play();
musique.loadSound("sounds/fx_puzzle.completed.wotts", false);
musique.setVolume(volumeMusique);
score01 = "tangram solved : ";
num01 = _root.nbPieceSolved;
num02 = _root.score;
_root.tabUsersScoreLP.push({nom:_root.playerName, score:Number(_root.score)});
Symbol 421 MovieClip Frame 17
stop();
if (_root.trophee) {
_parent.rouleau.play();
}
Symbol 433 Button
on (press) {
_root.clicks.start();
_root.fromGame = false;
_root.isTrophee = true;
_root.gotoAndStop(8);
for (clip in _root) {
removeMovieClip(_root[clip]);
}
_root.gotoAndStop(8);
}
on (rollOver) {
_root.hover.start();
}
Symbol 460 MovieClip Frame 1
stop();
Symbol 460 MovieClip Frame 2
play();
Symbol 460 MovieClip Frame 129
gotoAndPlay (2);
Instance of Symbol 438 MovieClip "fw0" in Symbol 477 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "70 minutes lasted in\r\"As fast as the wind\"";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 441 MovieClip "fw1" in Symbol 477 MovieClip Frame 2
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "60 minutes lasted in\r\"As fast as the wind\"";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 444 MovieClip "fw2" in Symbol 477 MovieClip Frame 3
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "45 minutes lasted in\r\"As fast as the wind\"";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 447 MovieClip "fw3" in Symbol 477 MovieClip Frame 4
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "35 minutes lasted in\r\"As fast as the wind\"";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 461 MovieClip "fw4" in Symbol 477 MovieClip Frame 5
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "20 minutes lasted in\r\"As fast as the wind\"";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 464 MovieClip "lp0" in Symbol 477 MovieClip Frame 6
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "10 tangrams solved in\r\"The longest path\"";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 467 MovieClip "lp1" in Symbol 477 MovieClip Frame 7
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "25 tangrams solved in\r\"The longest path\"";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 470 MovieClip "lp2" in Symbol 477 MovieClip Frame 8
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "50 tangrams solved in\r\"The longest path\"";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 473 MovieClip "lp3" in Symbol 477 MovieClip Frame 9
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "80 tangrams solved in\r\"The longest path\"";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 476 MovieClip "lp4" in Symbol 477 MovieClip Frame 10
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "125 tangrams solved in\r\"The longest path\"";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Symbol 487 MovieClip Frame 161
gotoAndPlay (103);
Symbol 488 MovieClip Frame 1
stop();
var enable = false;
awards.gotoAndStop(_root.GetTrophy());
Symbol 488 MovieClip Frame 2
play();
Symbol 488 MovieClip Frame 17
enable = true;
stop();
Symbol 489 MovieClip Frame 1
stop();
Symbol 489 MovieClip Frame 2
play();
Symbol 489 MovieClip Frame 47
_parent.rouleauscore.gotoAndPlay(2);
stop();
Symbol 490 MovieClip Frame 1
stop();
Symbol 490 MovieClip Frame 16
persogamescore.gotoAndPlay(2);
stop();
Symbol 491 MovieClip [ecranScoreLP] Frame 11
stop();
Symbol 493 MovieClip Frame 1
function TexteNext(num) {
if (num < 4) {
eval ("score0" + num).play();
} else if (_root.trophee) {
_parent.rouleau.play();
}
}
play();
musique.loadSound("sounds/fx_puzzle.completed.wotts", false);
musique.setVolume(volumeMusique);
score01 = "Time";
num01 = (_root.minuterie.timeClockMin.text + "'") + _root.minuterie.timeClockSec.text;
num02 = _root.score;
_root.tabUsersScoreFW.push({nom:_root.playerName, score:Number(_root.score)});
Symbol 493 MovieClip Frame 17
stop();
if (_root.trophee) {
_parent.rouleau.play();
}
Symbol 494 MovieClip [ecranScoreFW] Frame 11
stop();
Symbol 510 Button
on (release) {
_root.fromGame = false;
mochi.as2.MochiScores.closeLeaderboard();
removeMovieClip(_root.go);
_root.gotoAndStop(13);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 513 Button
on (release) {
_root.fromGame = false;
removeMovieClip(_root.go);
_root.gotoAndStop(13);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 514 MovieClip Frame 1
stop();
Symbol 514 MovieClip Frame 20
if (_root.tabUserPiecesNP.length > 0) {
play();
} else {
stop();
}
Symbol 517 Button
on (release) {
for (clip in _root) {
removeMovieClip(_root[clip]);
}
_root.fromScore = false;
_root.gotoAndStop(4);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 518 MovieClip [goPuzzle] Frame 11
stop();
Symbol 574 MovieClip Frame 26
stop();
Symbol 578 MovieClip Frame 1
stop();
Symbol 578 MovieClip Frame 2
_root.soundChime.start();
Symbol 578 MovieClip Frame 25
_parent.TexteNext(Number(this._name.substr(5, 7)) + 1);
stop();
Symbol 584 MovieClip Frame 1
stop();
texteC.text = this.texte;
numC.text = this.num;
trace((this.texte + " ") + this.num);
Symbol 584 MovieClip Frame 2
texteC.text = this.texte;
numC.text = this.num;
_root.soundChime.start();
Symbol 584 MovieClip Frame 25
_parent.TexteNext(Number(this._name.substr(5, 7)) + 1);
stop();
Symbol 586 MovieClip Frame 1
function TexteNext(num) {
if (num < 9) {
eval ("score0" + num).play();
} else {
_parent.btnContinue.gotoAndStop(2);
var grade = 0;
var index;
gradePerso._visible = true;
switch (score08.num) {
case "Apprentice" :
gradePerso.gotoAndStop(1);
break;
case "Journeyman" :
grade = 1;
gradePerso.gotoAndStop(2);
break;
case "Expert" :
grade = 2;
gradePerso.gotoAndStop(3);
break;
case "Master" :
grade = 3;
gradePerso.gotoAndStop(4);
break;
case "Great Master" :
gradePerso.gotoAndStop(5);
if (_root.tabUserScoreStory[_root.niveauActuel].grade != 4) {
_root.nbGrade++;
if (!(_root.nbGrade % 5)) {
_root.newGradeTrophee = true;
}
}
grade = 4;
}
_parent.unlocked.text = "Quote unlocked";
if ((_root.niveauAtteint == _root.niveauActuel) and (_root.tabUserCitations.length < 20)) {
var numCit = Math.floor(Math.random() * _root.tabCitationsList.length);
_root.tabUserCitations.push(_root.tabCitationsList[numCit]);
index = Number(_root.tabCitationsList[numCit]);
_root.tabCitationsList.splice(numCit, 1);
_root.tabUserPiecesNP.push(_root.tabNiveau[_root.niveauActuel]);
} else {
index = Number(_root.tabUserCitations[_root.niveauActuel]);
}
var hint = 0;
var temps = 0;
if (((Math.abs(_root.tabHint.length - 7) == 0) and (!_root.gridUsed)) and (!_root.shapeUsed)) {
if (!_root.tabUserScoreStory[_root.niveauActuel].hint) {
hint = 1;
_root.newTropheeSH = true;
_root.tabUserTrophees[1] = Number(_root.tabUserTrophees[1]) + 1;
} else {
hint = _root.tabUserScoreStory[_root.niveauActuel].hint;
}
} else {
hint = _root.tabUserScoreStory[_root.niveauActuel].hint;
}
if (Math.floor(_root.timePassed / 60) < 1) {
if ((!_root.tabUserScoreStory[_root.niveauActuel].temps) or (_root.tabUserScoreStory[_root.niveauActuel].temps == undefined)) {
temps = 1;
_root.newTropheeMU = true;
_root.tabUserTrophees[2] = Number(_root.tabUserTrophees[2]) + 1;
} else {
temps = _root.tabUserScoreStory[_root.niveauActuel].temps;
}
} else {
temps = _root.tabUserScoreStory[_root.niveauActuel].temps;
}
if (Number(_root.tabUserScoreStory[_root.niveauActuel].score) > score) {
score = Number(_root.tabUserScoreStory[_root.niveauActuel].score);
}
if (Number(_root.tabUserScoreStory[_root.niveauActuel].grade) > grade) {
grade = Number(_root.tabUserScoreStory[_root.niveauActuel].grade);
}
var obj = {score:score, grade:grade, hint:hint, temps:temps};
_root.tabUserScoreStory[_root.niveauActuel] = obj;
_parent.num.text = _root.tabCitations[index].num;
_parent.quote.text = _root.tabCitations[index].quote;
_parent.author.text = _root.tabCitations[index].author;
_root.SaveUser();
_parent.rouleau.play();
}
}
play();
var score = 0;
score01.texte = "\t\tPuzzle solved\t";
score02.texte = "hint \"shown\" used : " + Math.abs(_root.tabHint.length - 7);
score03.texte = "Hint \"grid\" used ";
gradePerso._visible = false;
switch (Math.abs(_root.tabHint.length - 7)) {
case 0 :
score02.num = "+1150";
score = score + 1150;
break;
case 1 :
score02.num = "+750";
score = score + 750;
break;
case 2 :
score02.num = "+500";
score = score + 500;
break;
case 3 :
score02.num = "+250";
score = score + 250;
break;
case 4 :
score02.num = "+100";
score = score + 100;
break;
case 5 :
score02.num = "+50";
score = score + 50;
break;
case 6 :
score02.num = "+0";
break;
case 7 :
score02.num = "+0";
}
if (_root.gridUsed) {
score03.texte = score03.texte + " : Yes";
score03.num = 0;
} else {
score03.texte = score03.texte + " : No";
score03.num = "+200";
score = score + 200;
}
score04.texte = "Hint \"shape\" used ";
if (_root.shapeUsed) {
score04.texte = score04.texte + " : Yes";
score04.num = "+0";
} else {
score04.texte = score04.texte + " : No";
score04.num = "+500";
score = score + 500;
}
var minutes = Math.floor(_root.timePassed / 60);
var secondes = (_root.timePassed % 60);
if (secondes < 10) {
secondes = "0" + secondes;
}
score05.texte = (("Time passed : " + minutes) + " ' ") + secondes;
score06.texte = "clicks : " + _root.nbClick;
var scoreTemps = (2000 - _root.timePassed);
if (scoreTemps < 0) {
scoreTemps = 0;
}
score05.num = "+" + scoreTemps;
score = score + scoreTemps;
var scoreClicks = (1000 - _root.nbClick);
if (scoreClicks < 0) {
scoreClicks = 0;
}
score06.num = "+" + scoreClicks;
score = score + scoreClicks;
score07.texte = "Score";
score07.num = score;
score08.texte = "";
if (score < 1501) {
score08.num = "Apprentice";
} else if (score < 2501) {
score08.num = "Journeyman";
} else if (score < 3001) {
score08.num = "Expert";
} else if (score < 4800) {
score08.num = "Master";
} else {
score08.num = "Great Master";
}
Symbol 586 MovieClip Frame 17
stop();
score01.play();
Symbol 597 Button
on (release) {
_root.fromGame = true;
for (clip in _root) {
removeMovieClip(_root[clip]);
}
_root.gotoAndStop(8);
}
on (press) {
_root.clicks.start();
}
Symbol 598 MovieClip Frame 1
stop();
var enable = false;
Symbol 598 MovieClip Frame 2
play();
_root.rouleauSon.start();
Symbol 598 MovieClip Frame 17
stop();
_root.ArriveeSilhouette();
Symbol 599 MovieClip Frame 1
stop();
Symbol 599 MovieClip Frame 2
stop();
persogamescore.gotoAndPlay(2);
Symbol 608 Button
on (release) {
if (_parent.score.score08._currentframe < 25) {
if (_parent.score._currentframe > 16) {
_parent.score.score01.gotoAndStop(26);
_parent.score.score02.gotoAndStop(26);
_parent.score.score03.gotoAndStop(26);
_parent.score.score04.gotoAndStop(26);
_parent.score.score05.gotoAndStop(26);
_parent.score.score06.gotoAndStop(26);
_parent.score.score07.gotoAndStop(26);
_parent.score.score08.gotoAndStop(26);
_parent.score.TexteNext(9);
}
} else if (_parent.rouleau._currentframe > 2) {
_root.SaveUser(_root.playerName);
for (clip in _root) {
removeMovieClip(_root[clip]);
}
removeMovieClip(_root.etincelle);
_root.gotoAndStop(7);
}
}
Symbol 610 Button
on (release) {
if (_root.niveauAtteint == _root.niveauActuel) {
_root.niveauAtteint++;
_root.niveauActuel = _root.niveauAtteint;
}
_root.SaveUser(_root.playerName);
for (clip in _root) {
removeMovieClip(_root[clip]);
}
removeMovieClip(_root.etincelle);
_root.fromton = 1;
_root.gotoAndStop(7);
}
Symbol 611 MovieClip Frame 1
stop();
Symbol 612 MovieClip [ecranScore] Frame 11
_root.attachMovie(_root.figure + "s", "silhouetteP", 1001, {_x:_root.solution._x, _y:_root.solution._y});
_root.victorySound.start();
_root.silhouetteP._xscale = 70;
_root.silhouetteP._yscale = 70;
_root.silhouetteP.ligne.swapDepths(1002);
stop();
Symbol 612 MovieClip [ecranScore] Frame 12
mochi.as2.MochiAd.showClickAwayAd({clip:clickawayad_mc, id:"6e6ad5bdcfe9d3df"});
stop();
Symbol 618 MovieClip [shoupBoom] Frame 1
var drop;
Symbol 618 MovieClip [shoupBoom] Frame 31
drop._visible = true;
Symbol 618 MovieClip [shoupBoom] Frame 59
this.swapDepths(5);
removeMovieClip(this);
Symbol 619 MovieClip [etincelle] Frame 1
function updateParticles() {
var _local2;
if (!this.fin) {
if (particles.length > 40) {
_local2 = particles.shift();
_local2.clip.swapDepths(1);
removeMovieClip(_local2.clip);
}
} else {
_local2 = particles.shift();
_local2.clip.swapDepths(1);
removeMovieClip(_local2.clip);
if (particles.length == 0) {
removeMovieClip(this);
}
}
var _local3 = 0;
while (_local3 < particles.length) {
_local2 = particles[_local3];
_local2.clip._x = _local2.clip._x + _local2.xVel;
_local2.clip._y = _local2.clip._y + _local2.yVel;
_local2.clip._rotation = _local2.clip._rotation + 30;
_local2.xVel = _local2.xVel * _local2.drag;
_local2.yVel = _local2.yVel * _local2.drag;
_local2.clip._alpha = _local2.clip._alpha + _local2.fade;
_local2.clip._xscale = (_local2.clip._yscale = _local2.clip._yscale * _local2.shrink);
_local2.yVel = _local2.yVel + _local2.gravity;
_local3++;
}
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
var particles = new Array();
var particle;
var counter = 0;
var fin = false;
this.onEnterFrame = function () {
updateParticles();
if (!this.fin) {
particle = {xVel:0, yVel:0, drag:1, fade:0, shrink:1, gravity:0, clip:null};
var _local2 = this.getNextHighestDepth();
particle.clip = this.attachMovie("spark", "particle" + _local2, _local2);
particle.clip._x = 0;
particle.clip._y = 0;
particle.xVel = randRange(-10, 10);
particle.yVel = randRange(-10, 10);
particle.clip._xscale = (particle.clip._yscale = randRange(0, 150));
particle.shrink = 0.95;
particle.gravity = 0;
particle.drag = 0.98;
particles.push(particle);
}
};
Symbol 625 MovieClip Frame 1
function updateParticles() {
var _local1;
if (particles.length > 30) {
_local1 = particles.shift();
_local1.clip.swapDepths(1);
removeMovieClip(_local1.clip);
}
var _local2 = 0;
while (_local2 < particles.length) {
_local1 = particles[_local2];
_local1.clip._x = _local1.clip._x + _local1.xVel;
_local1.clip._y = _local1.clip._y + _local1.yVel;
_local1.clip._rotation = _local1.clip._rotation + 30;
_local1.xVel = _local1.xVel * _local1.drag;
_local1.yVel = _local1.yVel * _local1.drag;
_local1.clip._alpha = _local1.clip._alpha + _local1.fade;
_local1.clip._xscale = (_local1.clip._yscale = _local1.clip._yscale * _local1.shrink);
_local1.yVel = _local1.yVel + _local1.gravity;
var _local3 = {x:0, y:_local1.clip._y};
localToGlobal(_local3);
if (_local3.y >= 600) {
_local1.yVel = (-_local1.yVel) * 0.5;
}
_local2++;
}
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
var particles = new Array();
var particle;
var counter = 0;
_parent.ligne.ligneFluo.moveTo(this._x, this._y);
_parent.ligne.ligneFluo.lineStyle(2, 16777062, 100);
this.onEnterFrame = function () {
if (_parent.fin) {
this.onEnterFrame = null;
}
updateParticles();
particle = {xVel:0, yVel:0, drag:1, fade:0, shrink:1, gravity:0, clip:null};
var _local3 = _parent.getNextHighestDepth();
particle.clip = _parent.attachMovie("spark", "particle" + _local3, _local3);
particle.clip._x = this._x;
particle.clip._y = this._y;
_parent.ligne.ligneFluo.lineTo(this._x, this._y);
particle.xVel = randRange(-10, 10);
particle.yVel = randRange(-10, 10);
particle.clip._xscale = (particle.clip._yscale = randRange(0, 150));
particle.shrink = 0.9;
particle.gravity = 1.5;
particle.drag = 0.98;
particles.push(particle);
};
Symbol 626 MovieClip [165s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 627 MovieClip [151s] Frame 60
fin = true;
stop();
_parent.Chling();
Symbol 628 MovieClip [152s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 629 MovieClip [153s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 630 MovieClip [154s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 631 MovieClip [155s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 632 MovieClip [156s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 633 MovieClip [157s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 634 MovieClip [158s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 635 MovieClip [159s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 636 MovieClip [160s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 637 MovieClip [161s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 638 MovieClip [162s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 639 MovieClip [163s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 640 MovieClip [164s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 641 MovieClip [080s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 642 MovieClip [072s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 643 MovieClip [075s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 644 MovieClip [071s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 645 MovieClip [078s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 646 MovieClip [079s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 647 MovieClip [073s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 648 MovieClip [074s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 649 MovieClip [076s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 650 MovieClip [077s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 651 MovieClip [114s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 652 MovieClip [119s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 653 MovieClip [115s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 654 MovieClip [117s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 655 MovieClip [111s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 656 MovieClip [118s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 657 MovieClip [112s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 658 MovieClip [113s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 659 MovieClip [120s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 660 MovieClip [116s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 661 MovieClip [069s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 662 MovieClip [067s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 663 MovieClip [063s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 664 MovieClip [065s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 665 MovieClip [064s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 666 MovieClip [068s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 667 MovieClip [061s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 668 MovieClip [066s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 669 MovieClip [062s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 670 MovieClip [070s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 671 MovieClip [135s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 672 MovieClip [134s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 673 MovieClip [137s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 674 MovieClip [140s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 675 MovieClip [131s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 676 MovieClip [138s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 677 MovieClip [132s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 678 MovieClip [133s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 679 MovieClip [136s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 680 MovieClip [139s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 681 MovieClip [057s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 682 MovieClip [052s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 683 MovieClip [051s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 684 MovieClip [056s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 685 MovieClip [055s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 686 MovieClip [058s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 687 MovieClip [053s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 688 MovieClip [054s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 689 MovieClip [060s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 690 MovieClip [059s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 691 MovieClip [106s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 692 MovieClip [101s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 693 MovieClip [107s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 694 MovieClip [104s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 695 MovieClip [105s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 696 MovieClip [103s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 697 MovieClip [102s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 698 MovieClip [108s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 699 MovieClip [110s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 700 MovieClip [109s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 701 MovieClip [020s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 702 MovieClip [019s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 703 MovieClip [014s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 704 MovieClip [013s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 705 MovieClip [012s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 706 MovieClip [015s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 707 MovieClip [017s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 708 MovieClip [016s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 709 MovieClip [018s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 710 MovieClip [011s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 711 MovieClip [143s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 712 MovieClip [142s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 713 MovieClip [149s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 714 MovieClip [144s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 715 MovieClip [145s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 716 MovieClip [148s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 717 MovieClip [146s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 718 MovieClip [147s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 719 MovieClip [141s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 720 MovieClip [150s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 721 MovieClip [037s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 722 MovieClip [031s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 723 MovieClip [033s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 724 MovieClip [036s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 725 MovieClip [038s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 726 MovieClip [035s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 727 MovieClip [039s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 728 MovieClip [032s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 729 MovieClip [034s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 730 MovieClip [040s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 731 MovieClip [096s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 732 MovieClip [092s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 733 MovieClip [095s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 734 MovieClip [099s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 735 MovieClip [093s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 736 MovieClip [094s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 737 MovieClip [097s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 738 MovieClip [091s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 739 MovieClip [098s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 740 MovieClip [100s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 741 MovieClip [083s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 742 MovieClip [087s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 743 MovieClip [088s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 744 MovieClip [085s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 745 MovieClip [081s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 746 MovieClip [090s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 747 MovieClip [082s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 748 MovieClip [084s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 749 MovieClip [089s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 750 MovieClip [086s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 751 MovieClip [123s] Frame 60
fin = true;
stop();
_parent.Chling();
Symbol 752 MovieClip [127s] Frame 60
fin = true;
stop();
_parent.Chling();
Symbol 753 MovieClip [129s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 754 MovieClip [122s] Frame 60
fin = true;
stop();
_parent.Chling();
Symbol 755 MovieClip [126s] Frame 60
fin = true;
stop();
_parent.Chling();
Symbol 756 MovieClip [125s] Frame 60
fin = true;
stop();
_parent.Chling();
Symbol 757 MovieClip [124s] Frame 60
fin = true;
stop();
_parent.Chling();
Symbol 758 MovieClip [128s] Frame 60
fin = true;
stop();
_parent.Chling();
Symbol 759 MovieClip [121s] Frame 60
fin = true;
stop();
_parent.Chling();
Symbol 760 MovieClip [130s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 761 MovieClip [048s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 762 MovieClip [041s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 763 MovieClip [050s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 764 MovieClip [049s] Frame 60
fin = true;
stop();
_parent.Chling();
Symbol 765 MovieClip [043s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 766 MovieClip [047s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 767 MovieClip [045s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 768 MovieClip [044s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 769 MovieClip [046s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 770 MovieClip [042s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 771 MovieClip [027s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 772 MovieClip [029s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 773 MovieClip [024s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 774 MovieClip [028s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 775 MovieClip [022s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 776 MovieClip [023s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 777 MovieClip [030s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 778 MovieClip [021s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 779 MovieClip [026s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 780 MovieClip [025s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 781 MovieClip [001s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 782 MovieClip [008s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 783 MovieClip [007s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 784 MovieClip [002s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 785 MovieClip [003s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 786 MovieClip [010s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 787 MovieClip [005s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 788 MovieClip [009s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 789 MovieClip [006s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 790 MovieClip [004s] Frame 60
fin = true;
stop();
_parent.Chling()()();
Symbol 795 MovieClip [rouleauTrophee] Frame 17
stop();
Symbol 801 MovieClip [dust] Frame 1
this._x = _root._xmouse;
this._y = _root._ymouse;
this._visible = true;
vx = (random(3) - 1) / 5;
vy = (random(3) - 1) / 5;
life = 70;
this.onEnterFrame = function () {
this._x = this._x + vx;
this._y = this._y + vy;
ap = (100 * life) / 70;
this._alpha = ap;
this._xscale = ap;
this._yscale = ap;
vx = Number(vx) + Number((random(51) - 25) / ap);
vy = Number(vy) + Number((random(51) - 25) / ap);
life = life - 1;
if (Number(life) < 0) {
removeMovieClip(this);
}
};
Symbol 802 MovieClip [dustGen] Frame 1
var Stop = false;
Symbol 802 MovieClip [dustGen] Frame 2
duplicateMovieClip ("dust", ("dust" + this.getNextHighestDepth()) + 1, this.getNextHighestDepth() + 1);
Symbol 802 MovieClip [dustGen] Frame 3
if (!Stop) {
gotoAndPlay (2);
} else {
stop();
}
Symbol 803 MovieClip [dust02] Frame 1
this._x = _parent._x;
this._y = _parent._y;
this._visible = true;
vx = (random(3) - 1) / 5;
vy = (random(3) - 1) / 5;
life = 70;
this.onEnterFrame = function () {
this._x = this._x + vx;
this._y = this._y + vy;
ap = (100 * life) / 70;
this._alpha = ap;
this._xscale = ap;
this._yscale = ap;
vx = Number(vx) + Number((random(51) - 25) / ap);
vy = Number(vy) + Number((random(51) - 25) / ap);
life = life - 1;
if (Number(life) < 0) {
removeMovieClip(this);
}
};
Symbol 807 MovieClip [MTRouge] Frame 1
function Initialiser() {
tabPoint = new Array();
tabPointDeca = new Array();
point1 = {x:Som1._x, y:Som1._y};
localToGlobal(point1);
point1.x = _root.Arrondi(point1.x);
point1.y = _root.Arrondi(point1.y);
point2 = {x:Som2._x, y:Som2._y};
localToGlobal(point2);
point2.x = _root.Arrondi(point2.x);
point2.y = _root.Arrondi(point2.y);
point3 = {x:Som3._x, y:Som3._y};
localToGlobal(point3);
point3.x = _root.Arrondi(point3.x);
point3.y = _root.Arrondi(point3.y);
tabPoint.push(point1);
tabPoint.push(point2);
tabPoint.push(point3);
tabPoint.push(point1);
point1Tmp = {x:Som1._x, y:Som1._y + 3.5};
localToGlobal(point1Tmp);
point2Tmp = {x:Som2._x - 7, y:Som2._y - 3.5};
localToGlobal(point2Tmp);
point3Tmp = {x:Som3._x + 7, y:Som3._y - 3.5};
localToGlobal(point3Tmp);
tabPointDeca.push(point1Tmp);
tabPointDeca.push(point2Tmp);
tabPointDeca.push(point3Tmp);
}
function Texturage(texture) {
var bmpd = flash.display.BitmapData.loadBitmap(texture);
removeMovieClip(bmp_fill_mc);
this.createEmptyMovieClip("bmp_fill_mc", this.getNextHighestDepth());
with (bmp_fill_mc) {
repeat = true;
matrix = new flash.geom.Matrix();
matrix.translate(bmpd.width / 2, bmpd.height / 2);
switch (Number(texture.substr(7, texture.length))) {
case 3 :
matrix.scale(0.3, 0.3);
break;
case 4 :
matrix.scale(0.5, 0.5);
break;
case 5 :
matrix.scale(0.5, 0.5);
break;
case 6 :
matrix.scale(0.5, 0.5);
break;
case 12 :
matrix.scale(0.2, 0.2);
break;
case 13 :
matrix.scale(0.5, 0.5);
break;
case 14 :
break;
case 15 :
matrix.scale(0.5, 0.5);
break;
default :
matrix.scale(0.5, 0.5);
}
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, -35);
lineTo(70, 35);
lineTo(-70, 35);
lineTo(0, -35);
endFill();
}
if (bmp_fill_mc.getDepth() > enlu.getDepth()) {
bmp_fill_mc.swapDepths(enlu);
}
enlu._visible = _root.ornement;
var distance = 5;
var angleInDegrees = 70;
var highlightColor = 16777215;
var highlightAlpha = 1;
var shadowColor = 0;
var shadowAlpha = 1;
var blurX = 2;
var blurY = 2;
var strength = 0.5;
var quality = 1;
var type = "inner";
var knockout = false;
var filterB = (new flash.filters.BevelFilter(distance, angleInDegrees, highlightColor, highlightAlpha, shadowColor, shadowAlpha, blurX, blurY, strength, quality, type, knockout));
var distance = 0;
var angleInDegrees = 45;
var color = 0;
var alpha = 1;
var blurX = 2;
var blurY = 2;
var strength = 1;
var quality = 1;
var inner = false;
var knockout = false;
var hideObject = false;
var filterD = (new flash.filters.DropShadowFilter(distance, angleInDegrees, color, alpha, blurX, blurY, strength, quality, inner, knockout, hideObject));
var filterArray = new Array();
filterArray.push(filterB);
filterArray.push(filterD);
this.filters = filterArray;
}
function Test() {
startDrag (this);
stopDrag();
if (eval (this._droptarget)._name == "place") {
this._x = 52.5;
this._y = 52.5;
this._rotation = -45;
} else {
point1 = {x:Som1._x, y:Som1._y};
localToGlobal(point1);
point2 = {x:Som2._x, y:Som2._y};
localToGlobal(point2);
point3 = {x:Som3._x, y:Som3._y};
localToGlobal(point3);
if (((((((point1.x < 260) or (point1.x > 783)) or ((point1.y < 20) or (point1.y > 582))) or ((point2.x < 260) or (point2.x > 783))) or ((point2.y < 20) or (point2.y > 582))) or ((point3.x < 260) or (point3.x > 783))) or ((point3.y < 20) or (point3.y > 582))) {
decalX1 = 0;
decalX2 = 0;
decalX3 = 0;
decalY1 = 0;
decalY2 = 0;
decalY3 = 0;
coefX = 1;
coefY = 1;
if (point1.x < 260) {
decalX1 = 260 - point1.x;
}
if (point1.x > 783) {
decalX1 = point1.x - 783;
coefX = -1;
}
if (point1.y < 20) {
decalY1 = 20 - point1.y;
coefY = -1;
}
if (point1.y > 582) {
decalY1 = point1.y - 582;
}
if (point2.x < 260) {
decalX2 = 260 - point2.x;
}
if (point2.x > 783) {
decalX2 = point2.x - 783;
coefX = -1;
}
if (point2.y < 20) {
decalY2 = 20 - point2.y;
coefY = -1;
}
if (point2.y > 582) {
decalY2 = point2.y - 582;
}
if (point3.x < 260) {
decalX3 = 260 - point3.x;
}
if (point3.x > 783) {
decalX3 = point3.x - 783;
coefX = -1;
}
if (point3.y < 20) {
decalY3 = 20 - point3.y;
coefY = -1;
}
if (point3.y > 582) {
decalY3 = point3.y - 582;
}
decalX = Math.max(decalX1, decalX2);
decalX = Math.max(decalX3, decalX);
decalX = decalX * coefX;
decalY = Math.max(decalY1, decalY2);
decalY = Math.max(decalY3, decalY);
decalY = decalY * coefY;
enPlace = false;
} else {
enPlace = true;
}
if (enPlace) {
switch (Math.abs(this._rotation)) {
case 0 :
coefX = 0;
coefY = 35;
break;
case 45 :
coefX = (-(this._rotation / Math.abs(this._rotation))) * 24.5;
coefY = 24.5;
break;
case 90 :
coefX = (-(this._rotation / Math.abs(this._rotation))) * 35;
coefY = 0;
break;
case 135 :
coefX = (-(this._rotation / Math.abs(this._rotation))) * 24.5;
coefY = -24.5;
break;
case 180 :
coefX = 0;
coefY = -35;
}
if (enmain) {
if ((point1.x % 7) < 3.5) {
this._x = (point1.x - (point1.x % 7)) + coefX;
} else {
this._x = (point1.x + (7 - (point1.x % 7))) + coefX;
}
if ((point1.y % 7) < 3.5) {
this._y = (point1.y - (point1.y % 7)) + coefY;
} else {
this._y = (point1.y + (7 - (point1.y % 7))) + coefY;
}
}
point1 = {x:Som1._x, y:Som1._y};
localToGlobal(point1);
point2 = {x:Som2._x, y:Som2._y};
localToGlobal(point2);
point3 = {x:Som3._x, y:Som3._y};
localToGlobal(point3);
point1.x = _root.Arrondi(point1.x);
point1.y = _root.Arrondi(point1.y);
point2.x = _root.Arrondi(point2.x);
point2.y = _root.Arrondi(point2.y);
point3.x = _root.Arrondi(point3.x);
point3.y = _root.Arrondi(point3.y);
tabPoint[0] = point1;
tabPoint[1] = point2;
tabPoint[2] = point3;
tabPoint[3] = point1;
point1Tmp = {x:Som1._x, y:Som1._y + 3.5};
localToGlobal(point1Tmp);
point2Tmp = {x:Som2._x - 7, y:Som2._y - 3.5};
localToGlobal(point2Tmp);
point3Tmp = {x:Som3._x + 7, y:Som3._y - 3.5};
localToGlobal(point3Tmp);
tabPointDeca[0] = point1Tmp;
tabPointDeca[1] = point2Tmp;
tabPointDeca[2] = point3Tmp;
_root.Verif(this.indice);
} else {
this._x = this._x + decalX;
this._y = this._y - decalY;
Test();
}
}
}
function Wait() {
enmain = true;
clearInterval(interval);
}
var nIniX;
var nIniY;
var enmain = false;
var nIniXM;
var nIniYM;
var sens = true;
var enCollision = false;
var interval;
var indice = 0;
var point1;
var point2;
var point3;
var tabPoint = new Array();
var point1Tmp;
var point2Tmp;
var point3Tmp;
var tabPointDeca = new Array();
Initialiser();
Texturage(_root.texture);
this.onPress = function () {
_root.attachMovie("dustGen", "dustTr", 5000);
_root.nbClick++;
this.swapDepths(8);
nIniX = this._x;
nIniY = this._y;
nIniXM = _root._xmouse;
nIniYM = _root._ymouse;
excentre = true;
interval = setInterval(this, "Wait", 50);
};
this.onRelease = function () {
clearInterval(interval);
_root.dustTr.Stop = true;
if ((!enmain) or ((this._x == nIniX) and (this._y == nIniY))) {
_root.rollSound.start();
_root.attachMovie("curRot", "curRot", 101, {_x:_root._xmouse, _y:_root._ymouse});
_root.curRot._xscale = 50;
_root.curRot._yscale = 50;
if (!_root.rotation) {
this._rotation = this._rotation + 45;
enmain = false;
Test();
} else {
this.onEnterFrame = function () {
this._rotation = this._rotation + 15;
if (!(this._rotation % 45)) {
this.onEnterFrame = null;
enmain = false;
Test();
}
};
}
} else {
_root.placeSound.start();
Test();
enmain = false;
}
};
this.onReleaseOutside = function () {
clearInterval(interval);
_root.dustTr.Stop = true;
if ((!enmain) or ((this._x == nIniX) and (this._y == nIniY))) {
_root.rollSound.start();
_root.attachMovie("curRot", "curRot", 101, {_x:_root._xmouse, _y:_root._ymouse});
_root.curRot._xscale = 50;
_root.curRot._yscale = 50;
if (!_root.rotation) {
this._rotation = this._rotation + 45;
enmain = false;
Test();
} else {
this.onEnterFrame = function () {
this._rotation = this._rotation + 15;
if (!(this._rotation % 45)) {
this.onEnterFrame = null;
enmain = false;
Test();
}
};
}
} else {
_root.placeSound.start();
Test();
enmain = false;
}
};
this.onMouseMove = function () {
if (enmain) {
nIniX = 0;
nIniY = 0;
this._x = this._x + (_root._xmouse - nIniXM);
nIniXM = _root._xmouse;
this._y = this._y + (_root._ymouse - nIniYM);
nIniYM = _root._ymouse;
}
};
Symbol 816 Button
on (press) {
_root.rollSound.start();
_root.nbClick++;
this._xscale = -this._xscale;
sens = !sens;
Test();
}
Symbol 817 MovieClip [ParaBlanc] Frame 1
function Initialiser() {
tabPoint = new Array();
tabPointDeca = new Array();
point1 = {x:Som1._x, y:Som1._y};
localToGlobal(point1);
point1.x = _root.Arrondi(point1.x);
point1.y = _root.Arrondi(point1.y);
point2 = {x:Som2._x, y:Som2._y};
localToGlobal(point2);
point2.x = _root.Arrondi(point2.x);
point2.y = _root.Arrondi(point2.y);
point3 = {x:Som3._x, y:Som3._y};
localToGlobal(point3);
point3.x = _root.Arrondi(point3.x);
point3.y = _root.Arrondi(point3.y);
point4 = {x:Som4._x, y:Som4._y};
localToGlobal(point4);
point4.x = _root.Arrondi(point4.x);
point4.y = _root.Arrondi(point4.y);
point1Tmp = {x:Som1._x + 7, y:Som1._y + 7};
localToGlobal(point1Tmp);
point2Tmp = {x:Som2._x - 7, y:Som2._y + 3.5};
localToGlobal(point2Tmp);
point3Tmp = {x:Som3._x - 7, y:Som3._y - 7};
localToGlobal(point3Tmp);
point4Tmp = {x:Som4._x + 7, y:Som4._y - 3.5};
localToGlobal(point4Tmp);
tabPointDeca.push(point1Tmp);
tabPointDeca.push(point2Tmp);
tabPointDeca.push(point3Tmp);
tabPointDeca.push(point4Tmp);
tabPoint.push(point1);
tabPoint.push(point2);
tabPoint.push(point3);
tabPoint.push(point4);
tabPoint.push(point1);
}
function Texturage(texture) {
var bmpd = flash.display.BitmapData.loadBitmap(texture);
with (para) {
repeat = true;
matrix = new flash.geom.Matrix();
matrix.translate(bmpd.width / 2, bmpd.height / 2);
switch (Number(texture.substr(7, texture.length))) {
case 3 :
matrix.scale(0.3, 0.3);
break;
case 4 :
matrix.scale(0.5, 0.5);
break;
case 5 :
matrix.scale(0.5, 0.5);
break;
case 6 :
matrix.scale(0.5, 0.5);
break;
case 12 :
matrix.scale(0.2, 0.2);
break;
case 13 :
matrix.scale(0.5, 0.5);
break;
case 14 :
break;
case 15 :
matrix.scale(0.5, 0.5);
break;
default :
matrix.scale(0.5, 0.5);
}
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(-24.6, -24.6);
lineTo(73.2, -24.6);
lineTo(24.1, 24.4);
lineTo(-73.7, 24.4);
lineTo(-24.6, -24.6);
endFill();
}
if (para.getDepth() > enlu.getDepth()) {
para.swapDepths(enlu);
}
enlu._visible = _root.ornement;
var distance = 5;
var angleInDegrees = 70;
var highlightColor = 16777215;
var highlightAlpha = 1;
var shadowColor = 0;
var shadowAlpha = 1;
var blurX = 2;
var blurY = 2;
var strength = 0.5;
var quality = 1;
var type = "inner";
var knockout = false;
var filterB = (new flash.filters.BevelFilter(distance, angleInDegrees, highlightColor, highlightAlpha, shadowColor, shadowAlpha, blurX, blurY, strength, quality, type, knockout));
var distance = 0;
var angleInDegrees = 45;
var color = 0;
var alpha = 1;
var blurX = 2;
var blurY = 2;
var strength = 1;
var quality = 1;
var inner = false;
var knockout = false;
var hideObject = false;
var filterD = (new flash.filters.DropShadowFilter(distance, angleInDegrees, color, alpha, blurX, blurY, strength, quality, inner, knockout, hideObject));
var filterArray = new Array();
filterArray.push(filterB);
filterArray.push(filterD);
this.filters = filterArray;
}
function Test() {
point1 = {x:Som1._x, y:Som1._y};
localToGlobal(point1);
point2 = {x:Som2._x, y:Som2._y};
localToGlobal(point2);
point3 = {x:Som3._x, y:Som3._y};
localToGlobal(point3);
point4 = {x:Som4._x, y:Som4._y};
localToGlobal(point4);
startDrag (this);
stopDrag();
if (eval (this._droptarget)._name == "place") {
if (!this.sens) {
this._xscale = 100;
this.sens = true;
}
this._x = 150.5;
this._y = 52.5;
this._rotation = 0;
} else {
if (((((((((point1.x < 260) or (point1.x > 783)) or ((point1.y < 20) or (point1.y > 582))) or ((point2.x < 260) or (point2.x > 783))) or ((point2.y < 20) or (point2.y > 582))) or ((point3.x < 260) or (point3.x > 783))) or ((point3.y < 20) or (point3.y > 582))) or ((point4.x < 260) or (point4.x > 783))) or ((point4.y < 20) or (point4.y > 582))) {
decalX1 = 0;
decalX2 = 0;
decalX3 = 0;
decalX4 = 0;
decalY1 = 0;
decalY2 = 0;
decalY3 = 0;
decalY4 = 0;
coefX = 1;
coefY = 1;
if (point1.x < 260) {
decalX1 = 260 - point1.x;
}
if (point1.x > 783) {
decalX1 = point1.x - 783;
coefX = -1;
}
if (point1.y < 20) {
decalY1 = 20 - point1.y;
coefY = -1;
}
if (point1.y > 582) {
decalY1 = point1.y - 582;
}
if (point2.x < 260) {
decalX2 = 260 - point2.x;
}
if (point2.x > 783) {
decalX2 = point2.x - 783;
coefX = -1;
}
if (point2.y < 20) {
decalY2 = 20 - point2.y;
coefY = -1;
}
if (point2.y > 582) {
decalY2 = point2.y - 582;
}
if (point3.x < 260) {
decalX3 = 260 - point3.x;
}
if (point3.x > 783) {
decalX3 = point3.x - 783;
coefX = -1;
}
if (point3.y < 20) {
decalY3 = 20 - point3.y;
coefY = -1;
}
if (point3.y > 582) {
decalY3 = point3.y - 582;
}
if (point4.x < 260) {
decalX4 = 260 - point4.x;
}
if (point4.x > 783) {
decalX4 = point4.x - 783;
coefX = -1;
}
if (point4.y < 20) {
decalY4 = 20 - point4.y;
coefY = -1;
}
if (point4.y > 582) {
decalY4 = point4.y - 582;
}
decalX = Math.max(decalX1, decalX2);
decalX = Math.max(decalX3, decalX);
decalX = Math.max(decalX4, decalX);
decalX = decalX * coefX;
decalY = Math.max(decalY1, decalY2);
decalY = Math.max(decalY3, decalY);
decalY = Math.max(decalY, decalY4);
decalY = decalY * coefY;
enPlace = false;
} else {
enPlace = true;
}
if (enPlace) {
switch (this._rotation) {
case 0 :
if (sens) {
coefS = 1;
} else {
coefS = -1;
}
coefX = coefS * 24.5;
coefY = 24.5;
break;
case 45 :
if (sens) {
coefX = 0;
coefY = 35;
} else {
coefX = -35;
coefY = 0;
}
break;
case -45 :
if (sens) {
coefX = 35;
coefY = 0;
} else {
coefX = 0;
coefY = 35;
}
break;
case 90 :
if (sens) {
coefX = -24.5;
coefY = 24.5;
} else {
coefX = -24.5;
coefY = -24.5;
}
break;
case -90 :
if (sens) {
coefX = 24.5;
coefY = -24.5;
} else {
coefX = 24.5;
coefY = 24.5;
}
break;
case 135 :
if (sens) {
coefX = -35;
coefY = 0;
} else {
coefX = 0;
coefY = -35;
}
break;
case -135 :
if (sens) {
coefX = 0;
coefY = -35;
} else {
coefX = 35;
coefY = 0;
}
break;
case 180 :
if (sens) {
coefS = 1;
} else {
coefS = -1;
}
coefX = (-coefS) * 24.5;
coefY = -24.5;
}
if (enmain) {
if ((point1.x % 7) < 3.5) {
this._x = (point1.x - (point1.x % 7)) + coefX;
} else {
this._x = (point1.x + (7 - (point1.x % 7))) + coefX;
}
if ((point1.y % 7) < 3.5) {
this._y = (point1.y - (point1.y % 7)) + coefY;
} else {
this._y = (point1.y + (7 - (point1.y % 7))) + coefY;
}
}
point1 = {x:Som1._x, y:Som1._y};
localToGlobal(point1);
point2 = {x:Som2._x, y:Som2._y};
localToGlobal(point2);
point3 = {x:Som3._x, y:Som3._y};
localToGlobal(point3);
point4 = {x:Som4._x, y:Som4._y};
localToGlobal(point4);
point1.x = _root.Arrondi(point1.x);
point1.y = _root.Arrondi(point1.y);
point2.x = _root.Arrondi(point2.x);
point2.y = _root.Arrondi(point2.y);
point3.x = _root.Arrondi(point3.x);
point3.y = _root.Arrondi(point3.y);
point4.x = _root.Arrondi(point4.x);
point4.y = _root.Arrondi(point4.y);
tabPoint[0] = point1;
tabPoint[1] = point2;
tabPoint[2] = point3;
tabPoint[3] = point4;
tabPoint[4] = point1;
point1Tmp = {x:Som1._x + 7, y:Som1._y + 7};
localToGlobal(point1Tmp);
point2Tmp = {x:Som2._x - 7, y:Som2._y + 3.5};
localToGlobal(point2Tmp);
point3Tmp = {x:Som3._x - 7, y:Som3._y - 7};
localToGlobal(point3Tmp);
point4Tmp = {x:Som4._x + 7, y:Som4._y - 3.5};
localToGlobal(point4Tmp);
tabPointDeca[0] = point1Tmp;
tabPointDeca[1] = point2Tmp;
tabPointDeca[2] = point3Tmp;
tabPointDeca[3] = point4Tmp;
_root.Verif(this.indice);
} else {
this._x = this._x + decalX;
this._y = this._y - decalY;
Test();
}
}
}
function Wait() {
enmain = true;
clearInterval(interval);
}
var nIniX;
var nIniY;
var enmain = false;
var nIniXM;
var nIniYM;
var sens = true;
var enCollision = false;
var interval;
var indice = 6;
var point1;
var point2;
var point3;
var point4;
var tabPoint = new Array();
var point1Tmp;
var point2Tmp;
var point3Tmp;
var point4Tmp;
var tabPointDeca = new Array();
Initialiser();
Texturage(_root.texture);
this.para.onPress = function () {
this._parent.swapDepths(8);
_root.nbClick++;
_root.attachMovie("dustGen", "dustTr", 5000);
nIniX = this._parent._x;
nIniY = this._parent._y;
nIniXM = _root._xmouse;
nIniYM = _root._ymouse;
excentre = true;
interval = setInterval(this._parent, "Wait", 50);
};
this.para.onRelease = function () {
clearInterval(interval);
_root.dustTr.Stop = true;
if ((!enmain) or ((this._parent._x == nIniX) and (this._parent._y == nIniY))) {
_root.rollSound.start();
_root.attachMovie("curRot", "curRot", 101, {_x:_root._xmouse, _y:_root._ymouse});
_root.curRot._xscale = 50;
_root.curRot._yscale = 50;
if (!_root.rotation) {
this._parent._rotation = this._parent._rotation + 45;
enmain = false;
Test();
} else {
this.onEnterFrame = function () {
this._parent._rotation = this._parent._rotation + 15;
if (!(this._parent._rotation % 45)) {
this.onEnterFrame = null;
enmain = false;
Test();
}
};
}
enmain = false;
Test();
} else {
_root.placeSound.start();
Test();
enmain = false;
}
};
this.para.onReleaseOutside = function () {
clearInterval(interval);
_root.dustTr.Stop = true;
if ((!enmain) or ((this._parent._x == nIniX) and (this._parent._y == nIniY))) {
_root.rollSound.start();
_root.attachMovie("curRot", "curRot", 101, {_x:_root._xmouse, _y:_root._ymouse});
_root.curRot._xscale = 50;
_root.curRot._yscale = 50;
if (!_root.rotation) {
this._parent._rotation = this._parent._rotation + 45;
enmain = false;
Test();
} else {
this.onEnterFrame = function () {
this._parent._rotation = this._parent._rotation + 15;
if (!(this._parent._rotation % 45)) {
this.onEnterFrame = null;
enmain = false;
Test();
}
};
}
enmain = false;
Test();
} else {
Test();
enmain = false;
}
};
this.onMouseMove = function () {
if (enmain) {
nIniX = 0;
nIniY = 0;
this._x = this._x + (_root._xmouse - nIniXM);
nIniXM = _root._xmouse;
this._y = this._y + (_root._ymouse - nIniYM);
nIniYM = _root._ymouse;
}
};
Symbol 820 MovieClip [CarreVert] Frame 1
function Initialiser() {
tabPoint = new Array();
tabPointDeca = new Array();
point1 = {x:Som1._x, y:Som1._y};
localToGlobal(point1);
point1.x = _root.Arrondi(point1.x);
point1.y = _root.Arrondi(point1.y);
point2 = {x:Som2._x, y:Som2._y};
localToGlobal(point2);
point2.x = _root.Arrondi(point2.x);
point2.y = _root.Arrondi(point2.y);
point3 = {x:Som3._x, y:Som3._y};
localToGlobal(point3);
point3.x = _root.Arrondi(point3.x);
point3.y = _root.Arrondi(point3.y);
point4 = {x:Som4._x, y:Som4._y};
localToGlobal(point4);
point4.x = _root.Arrondi(point4.x);
point4.y = _root.Arrondi(point4.y);
tabPoint.push(point1);
tabPoint.push(point2);
tabPoint.push(point3);
tabPoint.push(point4);
tabPoint.push(point1);
point1Tmp = {x:Som1._x + 7, y:Som1._y + 7};
localToGlobal(point1Tmp);
point2Tmp = {x:Som2._x - 7, y:Som2._y + 7};
localToGlobal(point2Tmp);
point3Tmp = {x:Som3._x - 7, y:Som3._y - 7};
localToGlobal(point3Tmp);
point4Tmp = {x:Som4._x + 7, y:Som4._y - 7};
localToGlobal(point4Tmp);
tabPointDeca.push(point1Tmp);
tabPointDeca.push(point2Tmp);
tabPointDeca.push(point3Tmp);
tabPointDeca.push(point4Tmp);
}
function Texturage(texture) {
var bmpd = flash.display.BitmapData.loadBitmap(texture);
removeMovieClip(bmp_fill_mc);
this.createEmptyMovieClip("bmp_fill_mc", this.getNextHighestDepth());
with (bmp_fill_mc) {
repeat = true;
matrix = new flash.geom.Matrix();
matrix.translate(bmpd.width / 2, bmpd.height / 2);
switch (Number(texture.substr(7, texture.length))) {
case 3 :
matrix.scale(0.3, 0.3);
break;
case 4 :
matrix.scale(0.5, 0.5);
break;
case 5 :
matrix.scale(0.5, 0.5);
break;
case 6 :
matrix.scale(0.5, 0.5);
break;
case 12 :
matrix.scale(0.2, 0.2);
break;
case 13 :
matrix.scale(0.5, 0.5);
break;
case 14 :
break;
case 15 :
matrix.scale(0.5, 0.5);
break;
default :
matrix.scale(0.5, 0.5);
}
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(-35, -35);
lineTo(35, -35);
lineTo(35, 35);
lineTo(-35, 35);
lineTo(-35, -35);
endFill();
}
if (bmp_fill_mc.getDepth() > enlu.getDepth()) {
bmp_fill_mc.swapDepths(enlu);
}
enlu._visible = _root.ornement;
var distance = 5;
var angleInDegrees = 70;
var highlightColor = 16777215;
var highlightAlpha = 1;
var shadowColor = 0;
var shadowAlpha = 1;
var blurX = 2;
var blurY = 2;
var strength = 0.5;
var quality = 1;
var type = "inner";
var knockout = false;
var filterB = (new flash.filters.BevelFilter(distance, angleInDegrees, highlightColor, highlightAlpha, shadowColor, shadowAlpha, blurX, blurY, strength, quality, type, knockout));
var distance = 0;
var angleInDegrees = 45;
var color = 0;
var alpha = 1;
var blurX = 2;
var blurY = 2;
var strength = 1;
var quality = 1;
var inner = false;
var knockout = false;
var hideObject = false;
var filterD = (new flash.filters.DropShadowFilter(distance, angleInDegrees, color, alpha, blurX, blurY, strength, quality, inner, knockout, hideObject));
var filterArray = new Array();
filterArray.push(filterB);
filterArray.push(filterD);
this.filters = filterArray;
}
function Test() {
point1 = {x:Som1._x, y:Som1._y};
localToGlobal(point1);
point2 = {x:Som2._x, y:Som2._y};
localToGlobal(point2);
point3 = {x:Som3._x, y:Som3._y};
localToGlobal(point3);
point4 = {x:Som4._x, y:Som4._y};
localToGlobal(point4);
startDrag (this);
stopDrag();
if (eval (this._droptarget)._name == "place") {
this._x = 77;
this._y = 126;
this._rotation = -45;
} else {
if (((((((((point1.x < 260) or (point1.x > 783)) or ((point1.y < 20) or (point1.y > 582))) or ((point2.x < 260) or (point2.x > 783))) or ((point2.y < 20) or (point2.y > 582))) or ((point3.x < 260) or (point3.x > 783))) or ((point3.y < 20) or (point3.y > 582))) or ((point4.x < 260) or (point4.x > 783))) or ((point4.y < 20) or (point4.y > 582))) {
decalX1 = 0;
decalX2 = 0;
decalX3 = 0;
decalX4 = 0;
decalY1 = 0;
decalY2 = 0;
decalY3 = 0;
decalY4 = 0;
coefX = 1;
coefY = 1;
if (point1.x < 260) {
decalX1 = 260 - point1.x;
}
if (point1.x > 783) {
decalX1 = point1.x - 783;
coefX = -1;
}
if (point1.y < 20) {
decalY1 = 20 - point1.y;
coefY = -1;
}
if (point1.y > 582) {
decalY1 = point1.y - 582;
}
if (point2.x < 260) {
decalX2 = 260 - point2.x;
}
if (point2.x > 783) {
decalX2 = point2.x - 783;
coefX = -1;
}
if (point2.y < 20) {
decalY2 = 20 - point2.y;
coefY = -1;
}
if (point2.y > 582) {
decalY2 = point2.y - 582;
}
if (point3.x < 260) {
decalX3 = 260 - point3.x;
}
if (point3.x > 783) {
decalX3 = point3.x - 783;
coefX = -1;
}
if (point3.y < 20) {
decalY3 = 20 - point3.y;
coefY = -1;
}
if (point3.y > 582) {
decalY3 = point3.y - 582;
}
if (point4.x < 260) {
decalX4 = 260 - point4.x;
}
if (point4.x > 783) {
decalX4 = point4.x - 783;
coefX = -1;
}
if (point4.y < 20) {
decalY4 = 20 - point4.y;
coefY = -1;
}
if (point4.y > 582) {
decalY4 = point4.y - 582;
}
decalX = Math.max(decalX1, decalX2);
decalX = Math.max(decalX3, decalX);
decalX = Math.max(decalX4, decalX);
decalX = decalX * coefX;
decalY = Math.max(decalY1, decalY2);
decalY = Math.max(decalY3, decalY);
decalY = Math.max(decalY, decalY4);
decalY = decalY * coefY;
enPlace = false;
} else {
enPlace = true;
}
if (enPlace) {
switch (this._rotation) {
case 0 :
coefX = 35;
coefY = 35;
break;
case 45 :
coefX = 0;
coefY = 49;
break;
case -45 :
coefX = 49;
coefY = 0;
break;
case 90 :
coefX = -35;
coefY = 35;
break;
case -90 :
coefX = 35;
coefY = -35;
break;
case 135 :
coefX = -49;
coefY = 0;
break;
case -135 :
coefX = 0;
coefY = -49;
break;
case 180 :
coefX = -35;
coefY = -35;
}
if (enmain) {
if ((point1.x % 7) < 3.5) {
this._x = (point1.x - (point1.x % 7)) + coefX;
} else {
this._x = (point1.x + (7 - (point1.x % 7))) + coefX;
}
if ((point1.y % 7) < 3.5) {
this._y = (point1.y - (point1.y % 7)) + coefY;
} else {
this._y = (point1.y + (7 - (point1.y % 7))) + coefY;
}
}
point1 = {x:Som1._x, y:Som1._y};
localToGlobal(point1);
point2 = {x:Som2._x, y:Som2._y};
localToGlobal(point2);
point3 = {x:Som3._x, y:Som3._y};
localToGlobal(point3);
point4 = {x:Som4._x, y:Som4._y};
localToGlobal(point4);
point1.x = _root.Arrondi(point1.x);
point1.y = _root.Arrondi(point1.y);
point2.x = _root.Arrondi(point2.x);
point2.y = _root.Arrondi(point2.y);
point3.x = _root.Arrondi(point3.x);
point3.y = _root.Arrondi(point3.y);
point4.x = _root.Arrondi(point4.x);
point4.y = _root.Arrondi(point4.y);
tabPoint[0] = point1;
tabPoint[1] = point2;
tabPoint[2] = point3;
tabPoint[3] = point4;
tabPoint[4] = point1;
point1Tmp = {x:Som1._x + 7, y:Som1._y + 7};
localToGlobal(point1Tmp);
point2Tmp = {x:Som2._x - 7, y:Som2._y + 7};
localToGlobal(point2Tmp);
point3Tmp = {x:Som3._x - 7, y:Som3._y - 7};
localToGlobal(point3Tmp);
point4Tmp = {x:Som4._x + 7, y:Som4._y - 7};
localToGlobal(point4Tmp);
tabPointDeca[0] = point1Tmp;
tabPointDeca[1] = point2Tmp;
tabPointDeca[2] = point3Tmp;
tabPointDeca[3] = point4Tmp;
_root.Verif(this.indice);
} else {
this._x = this._x + decalX;
this._y = this._y - decalY;
Test();
}
}
}
function Wait() {
enmain = true;
clearInterval(interval);
}
var nIniX;
var nIniY;
var enmain = false;
var nIniXM;
var nIniYM;
var sens = true;
var enCollision = false;
var interval;
var indice = 5;
var point1;
var point2;
var point3;
var point4;
var tabPoint = new Array();
var point1Tmp;
var point2Tmp;
var point3Tmp;
var point4Tmp;
var tabPointDeca = new Array();
Initialiser();
Texturage(_root.texture);
this.onPress = function () {
this.swapDepths(8);
_root.nbClick++;
_root.attachMovie("dustGen", "dustTr", 5000);
nIniX = this._x;
nIniY = this._y;
nIniXM = _root._xmouse;
nIniYM = _root._ymouse;
excentre = true;
interval = setInterval(this, "Wait", 50);
};
this.onRelease = function () {
clearInterval(interval);
_root.dustTr.Stop = true;
if ((!enmain) or ((this._x == nIniX) and (this._y == nIniY))) {
_root.rollSound.start();
_root.attachMovie("curRot", "curRot", 101, {_x:_root._xmouse, _y:_root._ymouse});
_root.curRot._xscale = 50;
_root.curRot._yscale = 50;
if (!_root.rotation) {
this._rotation = this._rotation + 45;
enmain = false;
Test();
} else {
this.onEnterFrame = function () {
this._rotation = this._rotation + 15;
if (!(this._rotation % 45)) {
this.onEnterFrame = null;
enmain = false;
Test();
}
};
}
} else {
_root.placeSound.start();
Test();
enmain = false;
}
};
this.onReleaseOutside = function () {
clearInterval(interval);
_root.dustTr.Stop = true;
trace(eval (this._droptarget)._name);
if ((!enmain) or ((this._x == nIniX) and (this._y == nIniY))) {
_root.rollSound.start();
_root.attachMovie("curRot", "curRot", 101, {_x:_root._xmouse, _y:_root._ymouse});
_root.curRot._xscale = 50;
_root.curRot._yscale = 50;
if (!_root.rotation) {
this._rotation = this._rotation + 45;
enmain = false;
Test();
} else {
this.onEnterFrame = function () {
this._rotation = this._rotation + 15;
if (!(this._rotation % 45)) {
this.onEnterFrame = null;
enmain = false;
Test();
}
};
}
} else {
_root.placeSound.start();
Test();
enmain = false;
}
};
this.onMouseMove = function () {
if (enmain) {
nIniX = 0;
nIniY = 0;
this._x = this._x + (_root._xmouse - nIniXM);
nIniXM = _root._xmouse;
this._y = this._y + (_root._ymouse - nIniYM);
nIniYM = _root._ymouse;
}
};
Symbol 823 MovieClip [PTBleu] Frame 1
function Initialiser() {
tabPoint = new Array();
tabPointDeca = new Array();
point1 = {x:Som1._x, y:Som1._y};
localToGlobal(point1);
point1.x = _root.Arrondi(point1.x);
point1.y = _root.Arrondi(point1.y);
point2 = {x:Som2._x, y:Som2._y};
localToGlobal(point2);
point2.x = _root.Arrondi(point2.x);
point2.y = _root.Arrondi(point2.y);
point3 = {x:Som3._x, y:Som3._y};
localToGlobal(point3);
point3.x = _root.Arrondi(point3.x);
point3.y = _root.Arrondi(point3.y);
tabPoint.push(point1);
tabPoint.push(point2);
tabPoint.push(point3);
tabPoint.push(point1);
point1Tmp = {x:Som1._x, y:Som1._y + 3.5};
localToGlobal(point1Tmp);
point2Tmp = {x:Som2._x - 7, y:Som2._y - 3.5};
localToGlobal(point2Tmp);
point3Tmp = {x:Som3._x + 7, y:Som3._y - 3.5};
localToGlobal(point3Tmp);
tabPointDeca.push(point1Tmp);
tabPointDeca.push(point2Tmp);
tabPointDeca.push(point3Tmp);
}
function Texturage(texture) {
var bmpd = flash.display.BitmapData.loadBitmap(texture);
removeMovieClip(bmp_fill_mc);
this.createEmptyMovieClip("bmp_fill_mc", this.getNextHighestDepth());
with (bmp_fill_mc) {
repeat = true;
matrix = new flash.geom.Matrix();
matrix.translate(bmpd.width / 2, bmpd.height / 2);
switch (Number(texture.substr(7, texture.length))) {
case 3 :
matrix.scale(0.3, 0.3);
break;
case 4 :
matrix.scale(0.5, 0.5);
break;
case 5 :
matrix.scale(0.5, 0.5);
break;
case 6 :
matrix.scale(0.5, 0.5);
break;
case 12 :
matrix.scale(0.2, 0.2);
break;
case 13 :
matrix.scale(0.5, 0.5);
break;
case 14 :
break;
case 15 :
matrix.scale(0.5, 0.5);
break;
default :
matrix.scale(0.5, 0.5);
}
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, -24.5);
lineTo(49, 24.5);
lineTo(-49, 24.5);
lineTo(0, -24.5);
endFill();
}
if (bmp_fill_mc.getDepth() > enlu.getDepth()) {
bmp_fill_mc.swapDepths(enlu);
}
enlu._visible = _root.ornement;
var distance = 5;
var angleInDegrees = 70;
var highlightColor = 16777215;
var highlightAlpha = 1;
var shadowColor = 0;
var shadowAlpha = 1;
var blurX = 2;
var blurY = 2;
var strength = 0.5;
var quality = 1;
var type = "inner";
var knockout = false;
var filterB = (new flash.filters.BevelFilter(distance, angleInDegrees, highlightColor, highlightAlpha, shadowColor, shadowAlpha, blurX, blurY, strength, quality, type, knockout));
var distance = 0;
var angleInDegrees = 45;
var color = 0;
var alpha = 1;
var blurX = 2;
var blurY = 2;
var strength = 1;
var quality = 1;
var inner = false;
var knockout = false;
var hideObject = false;
var filterD = (new flash.filters.DropShadowFilter(distance, angleInDegrees, color, alpha, blurX, blurY, strength, quality, inner, knockout, hideObject));
var filterArray = new Array();
filterArray.push(filterB);
filterArray.push(filterD);
this.filters = filterArray;
}
function Test() {
point1 = {x:Som1._x, y:Som1._y};
localToGlobal(point1);
point2 = {x:Som2._x, y:Som2._y};
localToGlobal(point2);
point3 = {x:Som3._x, y:Som3._y};
localToGlobal(point3);
startDrag (this);
stopDrag();
if (eval (this._droptarget)._name == "place") {
this._x = 126;
this._y = 101.5;
this._rotation = 180;
} else {
if (((((((point1.x < 260) or (point1.x > 783)) or ((point1.y < 20) or (point1.y > 582))) or ((point2.x < 260) or (point2.x > 783))) or ((point2.y < 20) or (point2.y > 582))) or ((point3.x < 260) or (point3.x > 783))) or ((point3.y < 20) or (point3.y > 582))) {
decalX1 = 0;
decalX2 = 0;
decalX3 = 0;
decalY1 = 0;
decalY2 = 0;
decalY3 = 0;
coefX = 1;
coefY = 1;
if (point1.x < 260) {
decalX1 = 260 - point1.x;
}
if (point1.x > 783) {
decalX1 = point1.x - 783;
coefX = -1;
}
if (point1.y < 20) {
decalY1 = 20 - point1.y;
coefY = -1;
}
if (point1.y > 582) {
decalY1 = point1.y - 582;
}
if (point2.x < 260) {
decalX2 = 260 - point2.x;
}
if (point2.x > 783) {
decalX2 = point2.x - 783;
coefX = -1;
}
if (point2.y < 20) {
decalY2 = 20 - point2.y;
coefY = -1;
}
if (point2.y > 582) {
decalY2 = point2.y - 582;
}
if (point3.x < 260) {
decalX3 = 260 - point3.x;
}
if (point3.x > 783) {
decalX3 = point3.x - 783;
coefX = -1;
}
if (point3.y < 20) {
decalY3 = 20 - point3.y;
coefY = -1;
}
if (point3.y > 582) {
decalY3 = point3.y - 582;
}
decalX = Math.max(decalX1, decalX2);
decalX = Math.max(decalX3, decalX);
decalX = decalX * coefX;
decalY = Math.max(decalY1, decalY2);
decalY = Math.max(decalY3, decalY);
decalY = decalY * coefY;
enPlace = false;
} else {
enPlace = true;
}
if (enPlace) {
switch (Math.abs(this._rotation)) {
case 0 :
coefX = 0;
coefY = 24.5;
break;
case 45 :
coefX = (-(this._rotation / Math.abs(this._rotation))) * 17.5;
coefY = 17.5;
break;
case 90 :
coefX = (-(this._rotation / Math.abs(this._rotation))) * 24.5;
coefY = 0;
break;
case 135 :
coefX = (-(this._rotation / Math.abs(this._rotation))) * 17.5;
coefY = -17.5;
break;
case 180 :
coefX = 0;
coefY = -24.5;
}
if (enmain) {
if ((point1.x % 7) < 3.5) {
this._x = (point1.x - (point1.x % 7)) + coefX;
} else {
this._x = (point1.x + (7 - (point1.x % 7))) + coefX;
}
if ((point1.y % 7) < 3.5) {
this._y = (point1.y - (point1.y % 7)) + coefY;
} else {
this._y = (point1.y + (7 - (point1.y % 7))) + coefY;
}
}
point1 = {x:Som1._x, y:Som1._y};
localToGlobal(point1);
point2 = {x:Som2._x, y:Som2._y};
localToGlobal(point2);
point3 = {x:Som3._x, y:Som3._y};
localToGlobal(point3);
point1.x = _root.Arrondi(point1.x);
point1.y = _root.Arrondi(point1.y);
point2.x = _root.Arrondi(point2.x);
point2.y = _root.Arrondi(point2.y);
point3.x = _root.Arrondi(point3.x);
point3.y = _root.Arrondi(point3.y);
tabPoint[0] = point1;
tabPoint[1] = point2;
tabPoint[2] = point3;
tabPoint[3] = point1;
point1Tmp = {x:Som1._x, y:Som1._y + 2};
localToGlobal(point1Tmp);
point1Tmp = {x:Som1._x, y:Som1._y + 3.5};
localToGlobal(point1Tmp);
point2Tmp = {x:Som2._x - 7, y:Som2._y - 3.5};
localToGlobal(point2Tmp);
point3Tmp = {x:Som3._x + 7, y:Som3._y - 3.5};
localToGlobal(point3Tmp);
tabPointDeca[0] = point1Tmp;
tabPointDeca[1] = point2Tmp;
tabPointDeca[2] = point3Tmp;
_root.Verif(this.indice);
} else {
this._x = this._x + decalX;
this._y = this._y - decalY;
Test();
}
}
}
function Wait() {
enmain = true;
clearInterval(interval);
}
var nIniX;
var nIniY;
var enmain = false;
var nIniXM;
var nIniYM;
var sens = true;
var enCollision = false;
var interval;
var indice = 2;
var point1;
var point2;
var point3;
var tabPoint = new Array();
var point1Tmp;
var point2Tmp;
var point3Tmp;
var tabPointDeca = new Array();
Initialiser();
Texturage(_root.texture);
this.onPress = function () {
this.swapDepths(8);
_root.nbClick++;
_root.attachMovie("dustGen", "dustTr", 5000);
nIniX = this._x;
nIniY = this._y;
nIniXM = _root._xmouse;
nIniYM = _root._ymouse;
excentre = true;
interval = setInterval(this, "Wait", 50);
};
this.onRelease = function () {
clearInterval(interval);
_root.dustTr.Stop = true;
if ((!enmain) or ((this._x == nIniX) and (this._y == nIniY))) {
_root.rollSound.start();
_root.attachMovie("curRot", "curRot", 101, {_x:_root._xmouse, _y:_root._ymouse});
_root.curRot._xscale = 50;
_root.curRot._yscale = 50;
if (!_root.rotation) {
this._rotation = this._rotation + 45;
enmain = false;
Test();
} else {
this.onEnterFrame = function () {
this._rotation = this._rotation + 15;
if (!(this._rotation % 45)) {
this.onEnterFrame = null;
enmain = false;
Test();
}
};
}
} else {
_root.placeSound.start();
Test();
enmain = false;
}
};
this.onReleaseOutside = function () {
clearInterval(interval);
_root.dustTr.Stop = true;
if ((!enmain) or ((this._x == nIniX) and (this._y == nIniY))) {
_root.rollSound.start();
_root.attachMovie("curRot", "curRot", 101, {_x:_root._xmouse, _y:_root._ymouse});
_root.curRot._xscale = 50;
_root.curRot._yscale = 50;
if (!_root.rotation) {
this._rotation = this._rotation + 45;
enmain = false;
Test();
} else {
this.onEnterFrame = function () {
this._rotation = this._rotation + 15;
if (!(this._rotation % 45)) {
this.onEnterFrame = null;
enmain = false;
Test();
}
};
}
} else {
_root.placeSound.start();
Test();
enmain = false;
}
};
this.onMouseMove = function () {
if (enmain) {
nIniX = 0;
nIniY = 0;
this._x = this._x + (_root._xmouse - nIniXM);
nIniXM = _root._xmouse;
this._y = this._y + (_root._ymouse - nIniYM);
nIniYM = _root._ymouse;
}
};
Symbol 824 MovieClip [PTJaune] Frame 1
function Initialiser() {
tabPoint = new Array();
tabPointDeca = new Array();
point1 = {x:Som1._x, y:Som1._y};
localToGlobal(point1);
point1.x = _root.Arrondi(point1.x);
point1.y = _root.Arrondi(point1.y);
point2 = {x:Som2._x, y:Som2._y};
localToGlobal(point2);
point2.x = _root.Arrondi(point2.x);
point2.y = _root.Arrondi(point2.y);
point3 = {x:Som3._x, y:Som3._y};
localToGlobal(point3);
point3.x = _root.Arrondi(point3.x);
point3.y = _root.Arrondi(point3.y);
tabPoint.push(point1);
tabPoint.push(point2);
tabPoint.push(point3);
tabPoint.push(point1);
point1Tmp = {x:Som1._x, y:Som1._y + 3.5};
localToGlobal(point1Tmp);
point2Tmp = {x:Som2._x - 7, y:Som2._y - 3.5};
localToGlobal(point2Tmp);
point3Tmp = {x:Som3._x + 7, y:Som3._y - 3.5};
localToGlobal(point3Tmp);
tabPointDeca.push(point1Tmp);
tabPointDeca.push(point2Tmp);
tabPointDeca.push(point3Tmp);
}
function Texturage(texture) {
var bmpd = flash.display.BitmapData.loadBitmap(texture);
removeMovieClip(bmp_fill_mc);
this.createEmptyMovieClip("bmp_fill_mc", this.getNextHighestDepth());
with (bmp_fill_mc) {
repeat = true;
matrix = new flash.geom.Matrix();
matrix.translate(bmpd.width / 2, bmpd.height / 2);
switch (Number(texture.substr(7, texture.length))) {
case 3 :
matrix.scale(0.3, 0.3);
break;
case 4 :
matrix.scale(0.5, 0.5);
break;
case 5 :
matrix.scale(0.5, 0.5);
break;
case 6 :
matrix.scale(0.5, 0.5);
break;
case 12 :
matrix.scale(0.2, 0.2);
break;
case 13 :
matrix.scale(0.5, 0.5);
break;
case 14 :
break;
case 15 :
matrix.scale(0.5, 0.5);
break;
default :
matrix.scale(0.5, 0.5);
}
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, -24.5);
lineTo(49, 24.5);
lineTo(-49, 24.5);
lineTo(0, -24.5);
endFill();
}
if (bmp_fill_mc.getDepth() > enlu.getDepth()) {
bmp_fill_mc.swapDepths(enlu);
}
enlu._visible = _root.ornement;
var distance = 5;
var angleInDegrees = 70;
var highlightColor = 16777215;
var highlightAlpha = 1;
var shadowColor = 0;
var shadowAlpha = 1;
var blurX = 2;
var blurY = 2;
var strength = 0.5;
var quality = 1;
var type = "inner";
var knockout = false;
var filterB = (new flash.filters.BevelFilter(distance, angleInDegrees, highlightColor, highlightAlpha, shadowColor, shadowAlpha, blurX, blurY, strength, quality, type, knockout));
var distance = 0;
var angleInDegrees = 45;
var color = 0;
var alpha = 1;
var blurX = 2;
var blurY = 2;
var strength = 1;
var quality = 1;
var inner = false;
var knockout = false;
var hideObject = false;
var filterD = (new flash.filters.DropShadowFilter(distance, angleInDegrees, color, alpha, blurX, blurY, strength, quality, inner, knockout, hideObject));
var filterArray = new Array();
filterArray.push(filterB);
filterArray.push(filterD);
this.filters = filterArray;
}
function Test() {
point1 = {x:Som1._x, y:Som1._y};
localToGlobal(point1);
point2 = {x:Som2._x, y:Som2._y};
localToGlobal(point2);
point3 = {x:Som3._x, y:Som3._y};
localToGlobal(point3);
startDrag (this);
stopDrag();
if (eval (this._droptarget)._name == "place") {
this._x = 52.5;
this._y = 175;
this._rotation = 90;
} else {
if (((((((point1.x < 260) or (point1.x > 783)) or ((point1.y < 20) or (point1.y > 582))) or ((point2.x < 260) or (point2.x > 783))) or ((point2.y < 20) or (point2.y > 582))) or ((point3.x < 260) or (point3.x > 783))) or ((point3.y < 20) or (point3.y > 582))) {
decalX1 = 0;
decalX2 = 0;
decalX3 = 0;
decalY1 = 0;
decalY2 = 0;
decalY3 = 0;
coefX = 1;
coefY = 1;
if (point1.x < 260) {
decalX1 = 260 - point1.x;
}
if (point1.x > 783) {
decalX1 = point1.x - 783;
coefX = -1;
}
if (point1.y < 20) {
decalY1 = 20 - point1.y;
coefY = -1;
}
if (point1.y > 582) {
decalY1 = point1.y - 582;
}
if (point2.x < 260) {
decalX2 = 260 - point2.x;
}
if (point2.x > 783) {
decalX2 = point2.x - 783;
coefX = -1;
}
if (point2.y < 20) {
decalY2 = 20 - point2.y;
coefY = -1;
}
if (point2.y > 582) {
decalY2 = point2.y - 582;
}
if (point3.x < 260) {
decalX3 = 260 - point3.x;
}
if (point3.x > 783) {
decalX3 = point3.x - 783;
coefX = -1;
}
if (point3.y < 20) {
decalY3 = 20 - point3.y;
coefY = -1;
}
if (point3.y > 582) {
decalY3 = point3.y - 582;
}
decalX = Math.max(decalX1, decalX2);
decalX = Math.max(decalX3, decalX);
decalX = decalX * coefX;
decalY = Math.max(decalY1, decalY2);
decalY = Math.max(decalY3, decalY);
decalY = decalY * coefY;
enPlace = false;
} else {
enPlace = true;
}
if (enPlace) {
switch (Math.abs(this._rotation)) {
case 0 :
coefX = 0;
coefY = 24.5;
break;
case 45 :
coefX = (-(this._rotation / Math.abs(this._rotation))) * 17.5;
coefY = 17.5;
break;
case 90 :
coefX = (-(this._rotation / Math.abs(this._rotation))) * 24.5;
coefY = 0;
break;
case 135 :
coefX = (-(this._rotation / Math.abs(this._rotation))) * 17.5;
coefY = -17.5;
break;
case 180 :
coefX = 0;
coefY = -24.5;
}
if (enmain) {
if ((point1.x % 7) < 3.5) {
this._x = (point1.x - (point1.x % 7)) + coefX;
} else {
this._x = (point1.x + (7 - (point1.x % 7))) + coefX;
}
if ((point1.y % 7) < 3.5) {
this._y = (point1.y - (point1.y % 7)) + coefY;
} else {
this._y = (point1.y + (7 - (point1.y % 7))) + coefY;
}
}
point1 = {x:Som1._x, y:Som1._y};
localToGlobal(point1);
point2 = {x:Som2._x, y:Som2._y};
localToGlobal(point2);
point3 = {x:Som3._x, y:Som3._y};
localToGlobal(point3);
point1.x = _root.Arrondi(point1.x);
point1.y = _root.Arrondi(point1.y);
point2.x = _root.Arrondi(point2.x);
point2.y = _root.Arrondi(point2.y);
point3.x = _root.Arrondi(point3.x);
point3.y = _root.Arrondi(point3.y);
tabPoint[0] = point1;
tabPoint[1] = point2;
tabPoint[2] = point3;
tabPoint[3] = point1;
point1Tmp = {x:Som1._x, y:Som1._y + 2};
localToGlobal(point1Tmp);
point1Tmp = {x:Som1._x, y:Som1._y + 3.5};
localToGlobal(point1Tmp);
point2Tmp = {x:Som2._x - 7, y:Som2._y - 3.5};
localToGlobal(point2Tmp);
point3Tmp = {x:Som3._x + 7, y:Som3._y - 3.5};
localToGlobal(point3Tmp);
tabPointDeca[0] = point1Tmp;
tabPointDeca[1] = point2Tmp;
tabPointDeca[2] = point3Tmp;
_root.Verif(this.indice);
} else {
this._x = this._x + decalX;
this._y = this._y - decalY;
Test();
}
}
}
function Wait() {
enmain = true;
clearInterval(interval);
}
var nIniX;
var nIniY;
var enmain = false;
var nIniXM;
var nIniYM;
var sens = true;
var enCollision = false;
var interval;
var indice = 2;
var point1;
var point2;
var point3;
var tabPoint = new Array();
var point1Tmp;
var point2Tmp;
var point3Tmp;
var tabPointDeca = new Array();
Initialiser();
Texturage(_root.texture);
this.onPress = function () {
this.swapDepths(8);
_root.nbClick++;
_root.attachMovie("dustGen", "dustTr", 5000);
nIniX = this._x;
nIniY = this._y;
nIniXM = _root._xmouse;
nIniYM = _root._ymouse;
excentre = true;
interval = setInterval(this, "Wait", 50);
};
this.onRelease = function () {
clearInterval(interval);
_root.dustTr.Stop = true;
if ((!enmain) or ((this._x == nIniX) and (this._y == nIniY))) {
_root.rollSound.start();
_root.attachMovie("curRot", "curRot", 101, {_x:_root._xmouse, _y:_root._ymouse});
_root.curRot._xscale = 50;
_root.curRot._yscale = 50;
if (!_root.rotation) {
this._rotation = this._rotation + 45;
enmain = false;
Test();
} else {
this.onEnterFrame = function () {
this._rotation = this._rotation + 15;
if (!(this._rotation % 45)) {
this.onEnterFrame = null;
enmain = false;
Test();
}
};
}
} else {
_root.placeSound.start();
Test();
enmain = false;
}
};
this.onReleaseOutside = function () {
clearInterval(interval);
_root.dustTr.Stop = true;
if ((!enmain) or ((this._x == nIniX) and (this._y == nIniY))) {
_root.rollSound.start();
_root.attachMovie("curRot", "curRot", 101, {_x:_root._xmouse, _y:_root._ymouse});
_root.curRot._xscale = 50;
_root.curRot._yscale = 50;
if (!_root.rotation) {
this._rotation = this._rotation + 45;
enmain = false;
Test();
} else {
this.onEnterFrame = function () {
this._rotation = this._rotation + 15;
if (!(this._rotation % 45)) {
this.onEnterFrame = null;
enmain = false;
Test();
}
};
}
} else {
_root.placeSound.start();
Test();
enmain = false;
}
};
this.onMouseMove = function () {
if (enmain) {
nIniX = 0;
nIniY = 0;
this._x = this._x + (_root._xmouse - nIniXM);
nIniXM = _root._xmouse;
this._y = this._y + (_root._ymouse - nIniYM);
nIniYM = _root._ymouse;
}
};
Symbol 828 MovieClip [GTBleu] Frame 1
function Initialiser() {
tabPoint = new Array();
tabPointDeca = new Array();
point1 = {x:Som1._x, y:Som1._y};
localToGlobal(point1);
point1.x = _root.Arrondi(point1.x);
point1.y = _root.Arrondi(point1.y);
point2 = {x:Som2._x, y:Som2._y};
localToGlobal(point2);
point2.x = _root.Arrondi(point2.x);
point2.y = _root.Arrondi(point2.y);
point3 = {x:Som3._x, y:Som3._y};
localToGlobal(point3);
point3.x = _root.Arrondi(point3.x);
point3.y = _root.Arrondi(point3.y);
tabPoint.push(point1);
tabPoint.push(point2);
tabPoint.push(point3);
tabPoint.push(point1);
point1Tmp = {x:Som1._x, y:Som1._y + 3.5};
localToGlobal(point1Tmp);
point2Tmp = {x:Som2._x - 7, y:Som2._y - 3.5};
localToGlobal(point2Tmp);
point3Tmp = {x:Som3._x + 7, y:Som3._y - 3.5};
localToGlobal(point3Tmp);
tabPointDeca.push(point1Tmp);
tabPointDeca.push(point2Tmp);
tabPointDeca.push(point3Tmp);
}
function Texturage(texture) {
var bmpd = flash.display.BitmapData.loadBitmap(texture);
removeMovieClip(bmp_fill_mc);
this.createEmptyMovieClip("bmp_fill_mc", this.getNextHighestDepth());
with (bmp_fill_mc) {
repeat = true;
matrix = new flash.geom.Matrix();
matrix.translate(bmpd.width / 2, bmpd.height / 2);
switch (Number(texture.substr(7, texture.length))) {
case 3 :
matrix.scale(0.3, 0.3);
break;
case 4 :
matrix.scale(0.5, 0.5);
break;
case 5 :
matrix.scale(0.5, 0.5);
break;
case 6 :
matrix.scale(0.5, 0.5);
break;
case 12 :
matrix.scale(0.2, 0.2);
break;
case 13 :
matrix.scale(0.5, 0.5);
break;
case 14 :
break;
case 15 :
matrix.scale(0.5, 0.5);
break;
default :
matrix.scale(0.5, 0.5);
}
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, -49);
lineTo(98, 49);
lineTo(-98, 49);
lineTo(0, -49);
endFill();
}
if (bmp_fill_mc.getDepth() > enlu.getDepth()) {
bmp_fill_mc.swapDepths(enlu);
}
enlu._visible = _root.ornement;
var distance = 5;
var angleInDegrees = 70;
var highlightColor = 16777215;
var highlightAlpha = 1;
var shadowColor = 0;
var shadowAlpha = 1;
var blurX = 2;
var blurY = 2;
var strength = 0.5;
var quality = 1;
var type = "inner";
var knockout = false;
var filterB = (new flash.filters.BevelFilter(distance, angleInDegrees, highlightColor, highlightAlpha, shadowColor, shadowAlpha, blurX, blurY, strength, quality, type, knockout));
var distance = 0;
var angleInDegrees = 45;
var color = 0;
var alpha = 1;
var blurX = 2;
var blurY = 2;
var strength = 1;
var quality = 1;
var inner = false;
var knockout = false;
var hideObject = false;
var filterD = (new flash.filters.DropShadowFilter(distance, angleInDegrees, color, alpha, blurX, blurY, strength, quality, inner, knockout, hideObject));
var filterArray = new Array();
filterArray.push(filterB);
filterArray.push(filterD);
this.filters = filterArray;
}
function Test() {
point1 = {x:Som1._x, y:Som1._y};
localToGlobal(point1);
point2 = {x:Som2._x, y:Som2._y};
localToGlobal(point2);
point3 = {x:Som3._x, y:Som3._y};
localToGlobal(point3);
startDrag (this);
stopDrag();
if (eval (this._droptarget)._name == "place") {
this._x = 175;
this._y = 126;
this._rotation = -90;
} else {
if (((((((point1.x < 260) or (point1.x > 783)) or ((point1.y < 20) or (point1.y > 582))) or ((point2.x < 260) or (point2.x > 783))) or ((point2.y < 20) or (point2.y > 582))) or ((point3.x < 260) or (point3.x > 783))) or ((point3.y < 20) or (point3.y > 582))) {
decalX1 = 0;
decalX2 = 0;
decalX3 = 0;
decalY1 = 0;
decalY2 = 0;
decalY3 = 0;
coefX = 1;
coefY = 1;
if (point1.x < 260) {
decalX1 = 260 - point1.x;
}
if (point1.x > 783) {
decalX1 = point1.x - 783;
coefX = -1;
}
if (point1.y < 20) {
decalY1 = 20 - point1.y;
coefY = -1;
}
if (point1.y > 582) {
decalY1 = point1.y - 582;
}
if (point2.x < 260) {
decalX2 = 260 - point2.x;
}
if (point2.x > 783) {
decalX2 = point2.x - 783;
coefX = -1;
}
if (point2.y < 20) {
decalY2 = 20 - point2.y;
coefY = -1;
}
if (point2.y > 582) {
decalY2 = point2.y - 582;
}
if (point3.x < 260) {
decalX3 = 260 - point3.x;
}
if (point3.x > 783) {
decalX3 = point3.x - 783;
coefX = -1;
}
if (point3.y < 20) {
decalY3 = 20 - point3.y;
coefY = -1;
}
if (point3.y > 582) {
decalY3 = point3.y - 582;
}
decalX = Math.max(decalX1, decalX2);
decalX = Math.max(decalX3, decalX);
decalX = decalX * coefX;
decalY = Math.max(decalY1, decalY2);
decalY = Math.max(decalY3, decalY);
decalY = decalY * coefY;
enPlace = false;
} else {
enPlace = true;
}
if (enPlace) {
switch (Math.abs(this._rotation)) {
case 0 :
coefX = 0;
coefY = 49;
break;
case 45 :
coefX = (-(this._rotation / Math.abs(this._rotation))) * 35;
coefY = 35;
break;
case 90 :
coefX = (-(this._rotation / Math.abs(this._rotation))) * 49;
coefY = 0;
break;
case 135 :
coefX = (-(this._rotation / Math.abs(this._rotation))) * 35;
coefY = -35;
break;
case 180 :
coefX = 0;
coefY = -49;
}
if (enmain) {
if ((point1.x % 7) < 3.5) {
this._x = (point1.x - (point1.x % 7)) + coefX;
} else {
this._x = (point1.x + (7 - (point1.x % 7))) + coefX;
}
if ((point1.y % 7) < 3.5) {
this._y = (point1.y - (point1.y % 7)) + coefY;
} else {
this._y = (point1.y + (7 - (point1.y % 7))) + coefY;
}
}
point1 = {x:Som1._x, y:Som1._y};
localToGlobal(point1);
point2 = {x:Som2._x, y:Som2._y};
localToGlobal(point2);
point3 = {x:Som3._x, y:Som3._y};
localToGlobal(point3);
point1.x = _root.Arrondi(point1.x);
point1.y = _root.Arrondi(point1.y);
point2.x = _root.Arrondi(point2.x);
point2.y = _root.Arrondi(point2.y);
point3.x = _root.Arrondi(point3.x);
point3.y = _root.Arrondi(point3.y);
tabPoint[0] = point1;
tabPoint[1] = point2;
tabPoint[2] = point3;
tabPoint[3] = point1;
point1Tmp = {x:Som1._x, y:Som1._y + 3.5};
localToGlobal(point1Tmp);
point2Tmp = {x:Som2._x - 7, y:Som2._y - 3.5};
localToGlobal(point2Tmp);
point3Tmp = {x:Som3._x + 7, y:Som3._y - 3.5};
localToGlobal(point3Tmp);
tabPointDeca[0] = point1Tmp;
tabPointDeca[1] = point2Tmp;
tabPointDeca[2] = point3Tmp;
_root.Verif(this.indice);
} else {
this._x = this._x + decalX;
this._y = this._y - decalY;
Test();
}
}
}
function Wait() {
enmain = true;
clearInterval(interval);
}
var nIniX;
var nIniY;
var enmain = false;
var nIniXM;
var nIniYM;
var sens = true;
var enCollision = false;
var interval;
var indice = 4;
var point1;
var point2;
var point3;
var tabPoint = new Array();
var point1Tmp;
var point2Tmp;
var point3Tmp;
var tabPointDeca = new Array();
var enPlace;
Initialiser();
Texturage(_root.texture);
this.onPress = function () {
this.swapDepths(8);
_root.nbClick++;
_root.attachMovie("dustGen", "dustTr", 5000);
nIniX = this._x;
nIniY = this._y;
nIniXM = _root._xmouse;
nIniYM = _root._ymouse;
excentre = true;
interval = setInterval(this, "Wait", 50);
};
this.onRelease = function () {
clearInterval(interval);
_root.dustTr.Stop = true;
if ((!enmain) or ((this._x == nIniX) and (this._y == nIniY))) {
_root.rollSound.start();
_root.attachMovie("curRot", "curRot", 101, {_x:_root._xmouse, _y:_root._ymouse});
_root.curRot._xscale = 50;
_root.curRot._yscale = 50;
if (!_root.rotation) {
this._rotation = this._rotation + 45;
enmain = false;
Test();
} else {
this.onEnterFrame = function () {
this._rotation = this._rotation + 15;
if (!(this._rotation % 45)) {
this.onEnterFrame = null;
enmain = false;
Test();
}
};
}
} else {
_root.placeSound.start();
Test();
enmain = false;
}
};
this.onReleaseOutside = function () {
clearInterval(interval);
_root.dustTr.Stop = true;
if ((!enmain) or ((this._x == nIniX) and (this._y == nIniY))) {
_root.rollSound.start();
_root.attachMovie("curRot", "curRot", 101, {_x:_root._xmouse, _y:_root._ymouse});
_root.curRot._xscale = 50;
_root.curRot._yscale = 50;
if (!_root.rotation) {
this._rotation = this._rotation + 45;
enmain = false;
Test();
} else {
this.onEnterFrame = function () {
this._rotation = this._rotation + 15;
if (!(this._rotation % 45)) {
this.onEnterFrame = null;
enmain = false;
Test();
}
};
}
} else {
_root.placeSound.start();
Test();
enmain = false;
}
};
this.onMouseMove = function () {
if (enmain) {
this._x = this._x + (_root._xmouse - nIniXM);
nIniXM = _root._xmouse;
this._y = this._y + (_root._ymouse - nIniYM);
nIniYM = _root._ymouse;
}
};
Symbol 829 MovieClip [GTMauve] Frame 1
function Initialiser() {
tabPoint = new Array();
tabPointDeca = new Array();
point1 = {x:Som1._x, y:Som1._y};
localToGlobal(point1);
point1.x = _root.Arrondi(point1.x);
point1.y = _root.Arrondi(point1.y);
point2 = {x:Som2._x, y:Som2._y};
localToGlobal(point2);
point2.x = _root.Arrondi(point2.x);
point2.y = _root.Arrondi(point2.y);
point3 = {x:Som3._x, y:Som3._y};
localToGlobal(point3);
point3.x = _root.Arrondi(point3.x);
point3.y = _root.Arrondi(point3.y);
tabPoint.push(point1);
tabPoint.push(point2);
tabPoint.push(point3);
tabPoint.push(point1);
point1Tmp = {x:Som1._x, y:Som1._y + 3.5};
localToGlobal(point1Tmp);
point2Tmp = {x:Som2._x - 7, y:Som2._y - 3.5};
localToGlobal(point2Tmp);
point3Tmp = {x:Som3._x + 7, y:Som3._y - 3.5};
localToGlobal(point3Tmp);
tabPointDeca.push(point1Tmp);
tabPointDeca.push(point2Tmp);
tabPointDeca.push(point3Tmp);
}
function Texturage(texture) {
var bmpd = flash.display.BitmapData.loadBitmap(texture);
removeMovieClip(bmp_fill_mc);
this.createEmptyMovieClip("bmp_fill_mc", this.getNextHighestDepth());
with (bmp_fill_mc) {
repeat = true;
matrix = new flash.geom.Matrix();
matrix.translate(bmpd.width / 2, bmpd.height / 2);
switch (Number(texture.substr(7, texture.length))) {
case 3 :
matrix.scale(0.3, 0.3);
break;
case 4 :
matrix.scale(0.5, 0.5);
break;
case 5 :
matrix.scale(0.5, 0.5);
break;
case 6 :
matrix.scale(0.5, 0.5);
break;
case 12 :
matrix.scale(0.2, 0.2);
break;
case 13 :
matrix.scale(0.5, 0.5);
break;
case 14 :
break;
case 15 :
matrix.scale(0.5, 0.5);
break;
default :
matrix.scale(0.5, 0.5);
}
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, -49);
lineTo(98, 49);
lineTo(-98, 49);
lineTo(0, -49);
endFill();
}
if (bmp_fill_mc.getDepth() > enlu.getDepth()) {
bmp_fill_mc.swapDepths(enlu);
}
enlu._visible = _root.ornement;
var distance = 5;
var angleInDegrees = 70;
var highlightColor = 16777215;
var highlightAlpha = 1;
var shadowColor = 0;
var shadowAlpha = 1;
var blurX = 2;
var blurY = 2;
var strength = 0.5;
var quality = 1;
var type = "inner";
var knockout = false;
var filterB = (new flash.filters.BevelFilter(distance, angleInDegrees, highlightColor, highlightAlpha, shadowColor, shadowAlpha, blurX, blurY, strength, quality, type, knockout));
var distance = 0;
var angleInDegrees = 45;
var color = 0;
var alpha = 1;
var blurX = 2;
var blurY = 2;
var strength = 1;
var quality = 1;
var inner = false;
var knockout = false;
var hideObject = false;
var filterD = (new flash.filters.DropShadowFilter(distance, angleInDegrees, color, alpha, blurX, blurY, strength, quality, inner, knockout, hideObject));
var filterArray = new Array();
filterArray.push(filterB);
filterArray.push(filterD);
this.filters = filterArray;
}
function Test() {
point1 = {x:Som1._x, y:Som1._y};
localToGlobal(point1);
point2 = {x:Som2._x, y:Som2._y};
localToGlobal(point2);
point3 = {x:Som3._x, y:Som3._y};
localToGlobal(point3);
startDrag (this);
stopDrag();
if (eval (this._droptarget)._name == "place") {
this._x = 126;
this._y = 175;
this._rotation = 0;
} else {
if (((((((point1.x < 260) or (point1.x > 783)) or ((point1.y < 20) or (point1.y > 582))) or ((point2.x < 260) or (point2.x > 783))) or ((point2.y < 20) or (point2.y > 582))) or ((point3.x < 260) or (point3.x > 783))) or ((point3.y < 20) or (point3.y > 582))) {
decalX1 = 0;
decalX2 = 0;
decalX3 = 0;
decalY1 = 0;
decalY2 = 0;
decalY3 = 0;
coefX = 1;
coefY = 1;
if (point1.x < 260) {
decalX1 = 260 - point1.x;
}
if (point1.x > 783) {
decalX1 = point1.x - 783;
coefX = -1;
}
if (point1.y < 20) {
decalY1 = 20 - point1.y;
coefY = -1;
}
if (point1.y > 582) {
decalY1 = point1.y - 582;
}
if (point2.x < 260) {
decalX2 = 260 - point2.x;
}
if (point2.x > 783) {
decalX2 = point2.x - 783;
coefX = -1;
}
if (point2.y < 20) {
decalY2 = 20 - point2.y;
coefY = -1;
}
if (point2.y > 582) {
decalY2 = point2.y - 582;
}
if (point3.x < 260) {
decalX3 = 260 - point3.x;
}
if (point3.x > 783) {
decalX3 = point3.x - 783;
coefX = -1;
}
if (point3.y < 20) {
decalY3 = 20 - point3.y;
coefY = -1;
}
if (point3.y > 582) {
decalY3 = point3.y - 582;
}
decalX = Math.max(decalX1, decalX2);
decalX = Math.max(decalX3, decalX);
decalX = decalX * coefX;
decalY = Math.max(decalY1, decalY2);
decalY = Math.max(decalY3, decalY);
decalY = decalY * coefY;
enPlace = false;
} else {
enPlace = true;
}
if (enPlace) {
switch (Math.abs(this._rotation)) {
case 0 :
coefX = 0;
coefY = 49;
break;
case 45 :
coefX = (-(this._rotation / Math.abs(this._rotation))) * 35;
coefY = 35;
break;
case 90 :
coefX = (-(this._rotation / Math.abs(this._rotation))) * 49;
coefY = 0;
break;
case 135 :
coefX = (-(this._rotation / Math.abs(this._rotation))) * 35;
coefY = -35;
break;
case 180 :
coefX = 0;
coefY = -49;
}
if (enmain) {
if ((point1.x % 7) < 3.5) {
this._x = (point1.x - (point1.x % 7)) + coefX;
} else {
this._x = (point1.x + (7 - (point1.x % 7))) + coefX;
}
if ((point1.y % 7) < 3.5) {
this._y = (point1.y - (point1.y % 7)) + coefY;
} else {
this._y = (point1.y + (7 - (point1.y % 7))) + coefY;
}
}
point1 = {x:Som1._x, y:Som1._y};
localToGlobal(point1);
point2 = {x:Som2._x, y:Som2._y};
localToGlobal(point2);
point3 = {x:Som3._x, y:Som3._y};
localToGlobal(point3);
point1.x = _root.Arrondi(point1.x);
point1.y = _root.Arrondi(point1.y);
point2.x = _root.Arrondi(point2.x);
point2.y = _root.Arrondi(point2.y);
point3.x = _root.Arrondi(point3.x);
point3.y = _root.Arrondi(point3.y);
tabPoint[0] = point1;
tabPoint[1] = point2;
tabPoint[2] = point3;
tabPoint[3] = point1;
point1Tmp = {x:Som1._x, y:Som1._y + 3.5};
localToGlobal(point1Tmp);
point2Tmp = {x:Som2._x - 7, y:Som2._y - 3.5};
localToGlobal(point2Tmp);
point3Tmp = {x:Som3._x + 7, y:Som3._y - 3.5};
localToGlobal(point3Tmp);
tabPointDeca[0] = point1Tmp;
tabPointDeca[1] = point2Tmp;
tabPointDeca[2] = point3Tmp;
_root.Verif(this.indice);
} else {
this._x = this._x + decalX;
this._y = this._y - decalY;
Test();
}
}
}
function Wait() {
enmain = true;
clearInterval(interval);
}
var nIniX;
var nIniY;
var enmain = false;
var nIniXM;
var nIniYM;
var sens = true;
var enCollision = false;
var interval;
var indice = 4;
var point1;
var point2;
var point3;
var tabPoint = new Array();
var point1Tmp;
var point2Tmp;
var point3Tmp;
var tabPointDeca = new Array();
var enPlace;
Initialiser();
Texturage(_root.texture);
this.onPress = function () {
this.swapDepths(8);
_root.nbClick++;
_root.attachMovie("dustGen", "dustTr", 5000);
nIniX = this._x;
nIniY = this._y;
nIniXM = _root._xmouse;
nIniYM = _root._ymouse;
excentre = true;
interval = setInterval(this, "Wait", 50);
};
this.onRelease = function () {
clearInterval(interval);
_root.dustTr.Stop = true;
if ((!enmain) or ((this._x == nIniX) and (this._y == nIniY))) {
_root.rollSound.start();
_root.attachMovie("curRot", "curRot", 101, {_x:_root._xmouse, _y:_root._ymouse});
_root.curRot._xscale = 50;
_root.curRot._yscale = 50;
if (!_root.rotation) {
this._rotation = this._rotation + 45;
enmain = false;
Test();
} else {
this.onEnterFrame = function () {
this._rotation = this._rotation + 15;
if (!(this._rotation % 45)) {
this.onEnterFrame = null;
enmain = false;
Test();
}
};
}
} else {
_root.placeSound.start();
Test();
enmain = false;
}
};
this.onReleaseOutside = function () {
clearInterval(interval);
_root.dustTr.Stop = true;
if ((!enmain) or ((this._x == nIniX) and (this._y == nIniY))) {
_root.rollSound.start();
_root.attachMovie("curRot", "curRot", 101, {_x:_root._xmouse, _y:_root._ymouse});
_root.curRot._xscale = 50;
_root.curRot._yscale = 50;
if (!_root.rotation) {
this._rotation = this._rotation + 45;
enmain = false;
Test();
} else {
this.onEnterFrame = function () {
this._rotation = this._rotation + 15;
if (!(this._rotation % 45)) {
this.onEnterFrame = null;
enmain = false;
Test();
}
};
}
} else {
_root.placeSound.start();
Test();
enmain = false;
}
};
this.onMouseMove = function () {
if (enmain) {
this._x = this._x + (_root._xmouse - nIniXM);
nIniXM = _root._xmouse;
this._y = this._y + (_root._ymouse - nIniYM);
nIniYM = _root._ymouse;
}
};
Symbol 833 MovieClip [btnProfile] Frame 1
var bSelected;
stop();
Symbol 838 MovieClip [chling] Frame 16
fond.useHandCursor = false;
this.swapDepths(101);
stop();
Symbol 846 MovieClip [t01] Frame 1
i = 0;
while (i < 7) {
if (_parent._name == "shape") {
eval ("p" + i)._visible = false;
} else {
eval ("p" + i)._visible = _root.piecesVisibles;
}
i++;
}
Symbol 848 MovieClip [t02] Frame 1
i = 0;
while (i < 7) {
if (_parent._name == "shape") {
eval ("p" + i)._visible = false;
} else {
eval ("p" + i)._visible = _root.piecesVisibles;
}
i++;
}
Symbol 850 MovieClip [t03] Frame 1
i = 0;
while (i < 7) {
if (_parent._name == "shape") {
eval ("p" + i)._visible = false;
} else {
eval ("p" + i)._visible = _root.piecesVisibles;
}
i++;
}
Symbol 852 MovieClip [t04] Frame 1
i = 0;
while (i < 7) {
if (_parent._name == "shape") {
eval ("p" + i)._visible = false;
} else {
eval ("p" + i)._visible = _root.piecesVisibles;
}
i++;
}
Symbol 854 MovieClip [t05] Frame 1
i = 0;
while (i < 7) {
if (_parent._name == "shape") {
eval ("p" + i)._visible = false;
} else {
eval ("p" + i)._visible = _root.piecesVisibles;
}
i++;
}
Symbol 863 Button
on (press) {
_parent.gotoAndStop(1);
_root.clicks.start();
}
Symbol 867 Button
on (press) {
_parent.gotoAndStop(2);
_root.clicks.start();
}
Symbol 870 Button
on (press) {
_parent.gotoAndStop(3);
_root.clicks.start();
}
Symbol 880 Button
on (press) {
frame = frame + 2;
if (frame <= (_root.tabUserCitations.length - 1)) {
AfficherCitation(frame);
} else if (((frame - _root.tabUserCitations.length) <= _root.tabUserCitationsBonus.length) and (_root.tabUserCitationsBonus.length > 0)) {
AfficherCitationBonus((frame - _root.tabUserCitations.length) - (_root.tabUserCitations.length % 2));
} else {
frame = 0;
AfficherCitation(frame);
}
}
Symbol 881 Button
on (press) {
frame = frame - 2;
if ((frame >= 0) and (frame <= (_root.tabUserCitations.length - 2))) {
AfficherCitation(frame);
} else if ((_root.tabUserCitationsBonus.length > 0) and (frame < 0)) {
if ((((_root.tabUserCitationsBonus.length + (_root.tabUserCitationsBonus.length % 2)) + frame) >= 0) and (((_root.tabUserCitationsBonus.length - (_root.tabUserCitationsBonus.length % 2)) + frame) <= (_root.tabUserCitationsBonus.length - 2))) {
AfficherCitationBonus((frame + _root.tabUserCitationsBonus.length) + (_root.tabUserCitationsBonus.length % 2));
} else {
frame = _root.tabUserCitations.length - (_root.tabUserCitations.length % 2);
AfficherCitation(frame);
}
} else {
if (_root.tabUserCitations.length % 2) {
frame = _root.tabUserCitations.length - (_root.tabUserCitations.length % 2);
} else {
frame = _root.tabUserCitations.length - 2;
}
AfficherCitation(frame);
}
}
Symbol 897 MovieClip [Quotes] Frame 1
function AfficherCitation(num) {
if (_root.tabCitations[Number(_root.tabUserCitations[num])]) {
num1.text = _root.tabCitations[Number(_root.tabUserCitations[num])].num;
quote1.text = _root.tabCitations[Number(_root.tabUserCitations[num])].quote;
author1.text = _root.tabCitations[Number(_root.tabUserCitations[num])].author;
none1._visible = false;
var _local4 = new Color(rouleau1);
var _local3 = {ra:84, rb:41, ga:84, gb:41, ba:84, bb:16, aa:100, ab:0};
_local4.setTransform(_local3);
numQuote.text = Math.ceil((num + 1) / 2);
} else {
num1.text = "";
quote1.text = "";
author1.text = "";
none1._visible = true;
var _local4 = new Color(rouleau1);
var _local3 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
_local4.setTransform(_local3);
}
if (_root.tabUserCitations[num + 1]) {
num2.text = _root.tabCitations[Number(_root.tabUserCitations[num + 1])].num;
quote2.text = _root.tabCitations[Number(_root.tabUserCitations[num + 1])].quote;
author2.text = _root.tabCitations[Number(_root.tabUserCitations[num + 1])].author;
none2._visible = false;
var _local4 = new Color(rouleau2);
var _local3 = {ra:84, rb:41, ga:84, gb:41, ba:84, bb:16, aa:100, ab:0};
_local4.setTransform(_local3);
} else {
num2.text = "";
quote2.text = "";
author2.text = "";
none2._visible = true;
var _local4 = new Color(rouleau2);
var _local3 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
_local4.setTransform(_local3);
}
}
function AfficherCitationBonus(num) {
trace(num);
if (_root.tabUserCitationsBonus[num]) {
num1.text = _root.tabUserCitationsBonus[num].num;
quote1.text = _root.tabUserCitationsBonus[num].quote;
author1.text = _root.tabUserCitationsBonus[num].author;
none1._visible = false;
var _local4 = new Color(rouleau1);
var _local3 = {ra:84, rb:41, ga:84, gb:0, ba:84, bb:16, aa:100, ab:0};
_local4.setTransform(_local3);
numQuote.text = Math.ceil(_root.tabUserCitations.length / 2) + Math.ceil((num + 1) / 2);
} else {
num1.text = "";
quote1.text = "";
author1.text = "";
none1._visible = true;
var _local4 = new Color(rouleau1);
var _local3 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
_local4.setTransform(_local3);
}
if (_root.tabUserCitationsBonus[num + 1]) {
num2.text = _root.tabUserCitationsBonus[num + 1].num;
quote2.text = _root.tabUserCitationsBonus[num + 1].quote;
author2.text = _root.tabUserCitationsBonus[num + 1].author;
none2._visible = false;
var _local4 = new Color(rouleau2);
var _local3 = {ra:84, rb:41, ga:84, gb:0, ba:84, bb:16, aa:100, ab:0};
_local4.setTransform(_local3);
} else {
num2.text = "";
quote2.text = "";
author2.text = "";
none2._visible = true;
var _local4 = new Color(rouleau2);
var _local3 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
_local4.setTransform(_local3);
}
}
var frame = 0;
_root.tabUserCitationsBonus = _root.tabCitationsBonus.slice(0, Number(_root.tabUserTrophees[7]));
if (_root.tabUserCitations.length != 0) {
AfficherCitation(frame);
totQuote.text = Math.ceil(_root.tabUserCitations.length / 2) + Math.ceil(_root.tabUserCitationsBonus.length / 2);
} else {
numQuote.text = 0;
totQuote.text = 0;
}
Symbol 902 Button
on (press) {
_parent.gotoAndStop(3);
_root.clicks.start();
}
Symbol 903 Button
on (press) {
_parent.gotoAndStop(5);
_root.clicks.start();
}
Symbol 966 MovieClip Frame 1
function UnlockTropheePP(num) {
if (num == 150) {
Recolore(pp0);
Recolore(pp1);
Recolore(pp2);
Recolore(pp3);
Recolore(pp4);
Recolore(pp5);
Recolore(pp6);
Recolore(pp7);
Recolore(pp8);
Recolore(pp9);
pp8.pika0.gotoAndPlay(2);
pp9.pika0.gotoAndPlay(2);
} else if (num >= 135) {
Recolore(pp0);
Recolore(pp1);
Recolore(pp2);
Recolore(pp3);
Recolore(pp4);
Recolore(pp5);
Recolore(pp6);
Recolore(pp7);
Recolore(pp8);
pp8.pika0.gotoAndPlay(2);
} else if (num >= 120) {
Recolore(pp0);
Recolore(pp1);
Recolore(pp2);
Recolore(pp3);
Recolore(pp4);
Recolore(pp5);
Recolore(pp6);
Recolore(pp7);
} else if (num >= 105) {
Recolore(pp0);
Recolore(pp1);
Recolore(pp2);
Recolore(pp3);
Recolore(pp4);
Recolore(pp5);
Recolore(pp6);
} else if (num >= 90) {
Recolore(pp0);
Recolore(pp1);
Recolore(pp2);
Recolore(pp3);
Recolore(pp4);
Recolore(pp5);
} else if (num >= 75) {
Recolore(pp0);
Recolore(pp1);
Recolore(pp2);
Recolore(pp3);
Recolore(pp4);
} else if (num >= 60) {
Recolore(pp0);
Recolore(pp1);
Recolore(pp2);
Recolore(pp3);
} else if (num >= 45) {
Recolore(pp0);
Recolore(pp1);
Recolore(pp2);
} else if (num >= 30) {
Recolore(pp0);
Recolore(pp1);
} else if (num >= 15) {
Recolore(pp0);
}
}
function UnlockTropheeSH(num) {
if (num == 150) {
Recolore(sh0);
Recolore(sh1);
Recolore(sh2);
Recolore(sh3);
Recolore(sh4);
sh4.pika0.gotoAndPlay(2);
sh4.pika1.gotoAndPlay(2);
} else if (num >= 100) {
Recolore(sh0);
Recolore(sh1);
Recolore(sh2);
Recolore(sh3);
} else if (num >= 60) {
Recolore(sh0);
Recolore(sh1);
Recolore(sh2);
} else if (num >= 30) {
Recolore(sh0);
Recolore(sh1);
} else if (num >= 10) {
Recolore(sh0);
}
}
function UnlockTropheeMU(num) {
if (num >= 140) {
Recolore(mu0);
Recolore(mu1);
Recolore(mu2);
Recolore(mu3);
Recolore(mu4);
mu4.pika0.gotoAndPlay(2);
mu4.pika1.gotoAndPlay(2);
} else if (num >= 85) {
Recolore(mu0);
Recolore(mu1);
Recolore(mu2);
Recolore(mu3);
} else if (num >= 50) {
Recolore(mu0);
Recolore(mu1);
Recolore(mu2);
} else if (num >= 20) {
Recolore(mu0);
Recolore(mu1);
} else if (num >= 5) {
Recolore(mu0);
}
}
function UnlockTropheeLP(num) {
if (num >= 125) {
Recolore(lp0);
Recolore(lp1);
Recolore(lp2);
Recolore(lp3);
Recolore(lp4);
lp4.pika0.gotoAndPlay(2);
lp4.pika1.gotoAndPlay(2);
} else if (num >= 80) {
Recolore(lp0);
Recolore(lp1);
Recolore(lp2);
Recolore(lp3);
} else if (num >= 50) {
Recolore(lp0);
Recolore(lp1);
Recolore(lp2);
} else if (num >= 25) {
Recolore(lp0);
Recolore(lp1);
} else if (num >= 10) {
Recolore(lp0);
}
}
function UnlockTropheeFW(num) {
if (num <= 20) {
Recolore(fw0);
Recolore(fw1);
Recolore(fw2);
Recolore(fw3);
Recolore(fw4);
fw4.pika0.gotoAndPlay(2);
fw4.pika1.gotoAndPlay(2);
} else if (num <= 35) {
Recolore(fw0);
Recolore(fw1);
Recolore(fw2);
Recolore(fw3);
} else if (num <= 45) {
Recolore(fw0);
Recolore(fw1);
Recolore(fw2);
} else if (num <= 60) {
Recolore(fw0);
Recolore(fw1);
} else if (num <= 70) {
Recolore(fw0);
}
}
function Recolore(obj) {
var _local1 = new Color(obj);
_local1.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
}
UnlockTropheePP(Number(_root.tabUserTrophees[0]));
UnlockTropheeSH(Number(_root.tabUserTrophees[1]));
UnlockTropheeMU(Number(_root.tabUserTrophees[2]));
UnlockTropheeLP(Number(_root.tabUserTrophees[3]));
UnlockTropheeFW(Number(_root.tabUserTrophees[4]));
Instance of Symbol 908 MovieClip "pp0" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "15 well-placed tangrams on the Great puzzle";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 911 MovieClip "pp2" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "45 well-placed tangrams on the Great puzzle";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 914 MovieClip "pp4" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "75 well-placed tangrams on the Great puzzle";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 917 MovieClip "pp6" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "105 well-placed tangrams on the Great puzzle";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 920 MovieClip "pp8" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "135 well-placed tangrams on the Great puzzle";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 923 MovieClip "pp9" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "150 well-placed tangrams on the Great puzzle";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 926 MovieClip "pp7" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "120 well-placed tangrams on the Great puzzle";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 929 MovieClip "pp5" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "90 well-placed tangrams on the Great puzzle";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 932 MovieClip "pp3" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "60 well-placed tangrams on the Great puzzle";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 935 MovieClip "pp1" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "30 well-placed tangrams on the Great puzzle";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 938 MovieClip "mu4" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "140 tangrams solved within one minute";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 941 MovieClip "mu0" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "5 tangrams solved within one minute";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 944 MovieClip "mu1" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "20 tangrams solved within one minute";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 947 MovieClip "mu2" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "50 tangrams solved within one minute";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 950 MovieClip "mu3" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "85 tangrams solved within one minute";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 953 MovieClip "sh4" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "150 tangrams solved without using hints";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 956 MovieClip "sh0" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "10 tangrams solved without using hints";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 476 MovieClip "lp4" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "125 tangrams solved in\r\"The longest path\"";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 461 MovieClip "fw4" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "Finished \r\"As fast as the wind\" in less than 20 minutes";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 959 MovieClip "sh1" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "30 tangrams solved without using hints";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 962 MovieClip "sh2" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "60 tangrams solved without using hints";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 965 MovieClip "sh3" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "100 tangrams solved without using hints";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 464 MovieClip "lp0" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "10 tangrams solved in\r\"The longest path\"";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 467 MovieClip "lp1" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "25 tangrams solved in\r\"The longest path\"";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 470 MovieClip "lp2" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "50 tangrams solved in\r\"The longest path\"";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 473 MovieClip "lp3" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "80 tangrams solved in\r\"The longest path\"";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 438 MovieClip "fw0" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "Finished \r\"As fast as the wind\" in less than 70 minutes";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 441 MovieClip "fw1" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "Finished \r\"As fast as the wind\" in less than 60 minutes";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 444 MovieClip "fw2" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "Finished \r\"As fast as the wind\" in less than 45 minutes";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 447 MovieClip "fw3" in Symbol 966 MovieClip Frame 1
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "Finished \r\"As fast as the wind\" in less than 35 minutes";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Symbol 972 MovieClip [OberonClass] Frame 1
#initclip 6
Object.registerClass("OberonClass", OberonClass);
#endinitclip
Symbol 1267 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 1272 MovieClip Frame 90
Symbol 1272 MovieClip Frame 91
stop();
Symbol 1275 MovieClip Frame 1
if (_root.localization_portal == "game_com_cn") {
this.logo_intro.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.logo_intro.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=logo_intro", "_blank");
};
}
Symbol 1275 MovieClip Frame 90
stop();
Symbol 1281 MovieClip Frame 89
stop();
Symbol 1289 MovieClip Frame 89
stop();
Symbol 1292 MovieClip Frame 89
stop();
Symbol 1293 MovieClip Frame 1
if (_root.localization_portal == "family") {
gotoAndStop (1);
}
if (_root.localization_portal == "tweens") {
gotoAndStop (2);
}
if (_root.localization_portal == "girl") {
gotoAndStop (3);
}
if (_root.localization_portal == "game_com_cn") {
gotoAndStop (4);
}
Symbol 1302 Button
on (press) {
_parent.gotoAndStop(1);
}
Symbol 1304 Button
on (release) {
getURL (_root.urlBUY, "_BLANK");
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1322 MovieClip Frame 1
stop();
Symbol 1322 MovieClip Frame 2
play();
Symbol 1322 MovieClip Frame 10
stop();
fond.useHandCursor = false;
if (_root.currentframe < 9) {
fenetre.texteBouton = "Back";
} else {
fenetre.texteBouton = "Back to menuPause";
}
Symbol 2299 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if ((options.clip == null) || (options.clip == undefined)) {
options.clip = mochi.as2.MochiServices.clip;
}
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 2300 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.0");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local3 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servicesURL != undefined) {
_servicesURL = urlOptions().servicesURL;
}
allowDomains(_servicesURL);
_clip = clip.createEmptyMovieClip(_local3, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip((((_servicesURL + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
if (_root.mochiad_options) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static var _servicesURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
}
Symbol 2301 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 2302 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("3.0 as2");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
if (_local7._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 968 MovieClip [__Packages.OberonClass] Frame 0
class OberonClass
{
var gameName, gameID, gameIdStr, _mcBoundingBox, alertmci;
function OberonClass (theGameName, theGameID) {
gameName = theGameName;
gameID = theGameID;
gameIdStr = ((("<gameName>" + gameName) + "</gameName><gameID>") + gameID) + "</gameID>";
_mcBoundingBox._visible = false;
_level0.OberonClassPointer = this;
}
function CustomEvent(eventStr) {
Game_CustomEvent(eventStr);
}
function DataBroadcast(eventStr) {
Chat_DataBroadcast(eventStr);
}
function GameBreak(breakLevel) {
Game_EndOfLevel(breakLevel);
}
function GameEnd() {
Game_GameOver();
}
function GameError() {
Game_Error("Unknown");
}
function GameReady(gameMode, gameDifficulty, startLevel, moreXML) {
Game_GameReady(gameMode, gameDifficulty, startLevel, moreXML);
}
function LoadBroadcast(percentcomplete) {
Game_LoadBroadcast(percentcomplete);
}
function ScoreBroadcast(score, theTime, moreXML) {
Game_ScoreBroadcast(score, theTime, moreXML);
}
function ScoreSubmit(score, theTime, moreXML) {
Game_ScoreSubmit(score, theTime, moreXML);
}
function SessionReady() {
Game_SessionReady();
}
function Chat_AddStatusMessage(theText, theSender, theFormat) {
var _local1 = ((((("<data><text>" + theText) + "</text><sender>") + theSender) + "</sender><format>") + theFormat) + "</format></data>";
fscommand ("Chat_AddStatusMessage", _local1);
}
function Chat_DataBroadcast(eventStr) {
fscommand ("DataBroadcast", ("<game><data>" + eventStr) + "</data></game>");
}
function Chat_HandleKeyPress(theKey) {
var _local1 = ("<data><char>" + theKey) + "</char></data>";
fscommand ("Chat_HandleKeyPress", _local1);
}
function Data_GetHighScores(currentScore, gameMode, gameDifficulty, startLevel, scoreListType, scoreListRange) {
var _local2 = (((((("<data>" + vod(currentScore, "", ("<score>" + currentScore.toString()) + "</score>")) + vod(gameMode, "", ("<mode>" + gameMode) + "</mode>")) + vod(gameDifficulty, "", ("<difficulty>" + gameDifficulty) + "</difficulty>")) + vod(startLevel, "", ("<startlevel>" + startLevel) + "</startlevel>")) + vod(scoreListType, "", ("<scorelisttype>" + scoreListType) + "</scorelisttype>")) + vod(scoreListRange, "", ("<scorelistrange>" + scoreListRange.toString()) + "</scorelistrange>")) + "</data>";
fscommand ("GetHighScores", _local2);
}
function Game_CustomEvent(eventStr) {
fscommand ("CustomEvent", eventStr);
}
function Game_DeluxeDownload() {
fscommand ("CustomEvent", "<gamedata>DeluxeDownload</gamedata>");
}
function Game_EndOfLevel(breakLevel, score, theTime) {
fscommand ("GameBreak", (((("<data><breakpoint>" + breakLevel.toString()) + "</breakpoint><breakreason>EndOfLevel</breakreason>") + vod(score, "", ("<score>" + score) + "</score>")) + vod(theTime, "", ("<time>" + Math.floor(theTime)) + "</time>")) + "</data>");
}
function Game_Error(errorStr) {
fscommand ("GameError", ("<data><error>" + vod(errorStr, "")) + "</error></data>");
}
function Game_GameBreak(breakReason) {
fscommand ("GameBreak", ("<data><breakpoint>0</breakpoint>" + vod(breakReason, "", ("<breakreason>" + breakReason) + "</breakreason>")) + "</data>");
}
function Game_GameOver() {
fscommand ("GameEnd", "<data></data>");
}
function Game_GameReady(gameMode, gameDifficulty, startLevel, moreXML) {
var _local4 = (((("<data>" + vod(gameMode, "", ("<mode>" + gameMode) + "</mode>")) + vod(gameDifficulty, "", ("<difficulty>" + gameDifficulty) + "</difficulty>")) + vod(startLevel, "", ("<startlevel>" + startLevel) + "</startlevel>")) + vod(moreXML, "")) + "</data>";
if (((vod(gameMode, "") == "") || (vod(gameDifficulty, "") == "")) || (vod(startLevel, "") == "")) {
trace("OberonClass Warning: Game_GameReady must include all parameters!");
alertmci.alertf.text = "Oberon Warning: Game_GameReady must include all paremeters!";
}
fscommand ("GameReady", _local4);
}
function Game_LoadBroadcast(percentcomplete) {
if (multiHelpStatus == 0) {
Game_OpenHelp();
}
fscommand ("LoadBroadcast", ("<data>" + vod(percentcomplete, "", ("<percentcomplete>" + percentcomplete) + "</percentcomplete>")) + "</data>");
}
function Game_ScoreBroadcast(score, theTime, moreXML) {
var _local2 = ((("<data>" + vod(score, "", ("<score>" + score) + "</score>")) + vod(theTime, "", ("<time>" + Math.floor(theTime)) + "</time>")) + vod(moreXML, "")) + "</data>";
fscommand ("ScoreBroadcast", _local2);
}
function Game_ScoreSubmit(score, theTime, moreXML) {
var _local2 = ((("<game>" + vod(score, "", ("<score>" + score) + "</score>")) + vod(theTime, "", ("<time>" + Math.floor(theTime)) + "</time>")) + vod(moreXML, "")) + "</game>";
fscommand ("ScoreSubmit", _local2);
}
function Game_SessionReady() {
switch (multiHelpStatus) {
case 0 :
SessionReadyOnHelpClose = true;
Game_OpenHelp();
break;
case 1 :
SessionReadyOnHelpClose = true;
break;
case 2 :
default :
fscommand ("SessionReady", "<data></data>");
}
}
function Game_OpenHelp(helpLanguage) {
var _local8;
_local8 = _level0.OMultiHelp;
if (_level0.OMultiHelp != undefined) {
multiHelpStatus = 1;
if (helpLanguage == undefined) {
helpLanguage = vod(_level0.OLang, "");
}
if (helpLanguage != "") {
_level0.menustate = helpLanguage;
}
var _local3 = new Object();
_local3.gameID = gameID;
_local3.OLang = _level0.OLang;
_local3.ODataPath = _level0.ODataPath;
_local3.OTheme = _level0.OTheme;
var _local5 = new Object();
_local5.multiHelpObject = _local3;
_local5.onLoadError = function (target_mc, errorCode, httpStatus) {
_level0.OberonClassPointer.Game_CloseHelp();
};
var _local7 = new MovieClipLoader();
_local7.addListener(_local5);
var _local6 = _level0.createEmptyMovieClip("OCmultihelpi", _root.getNextHighestDepth());
_local7.loadClip(_local8, _local6);
_local6._lockroot = true;
fscommand ("OpenHelp", ("<data><language>" + helpLanguage) + "</language></data>");
} else {
Game_CloseHelp();
}
}
function Game_CloseHelp() {
if (_level0.OCmultihelpi != undefined) {
var _local3 = new MovieClipLoader();
_local3.unloadClip(_level0.OCmultihelpi);
_root.CallLabel("HelpClosed");
}
multiHelpStatus = 2;
if (SessionReadyOnHelpClose) {
Game_SessionReady();
}
}
function Game_StatBroadcast(theEvent, theTime, moreXML) {
var _local2 = ((("<data>" + vod(theEvent, "", ("<event>" + theEvent) + "</event>")) + vod(theTime, "", ("<time>" + Math.floor(theTime)) + "</time>")) + vod(moreXML, "")) + "</data>";
fscommand ("Game_StatBroadcast", _local2);
}
function vod(value1, valueIfNull, valueIfNotNull) {
if (((value1 == null) || (value1 == undefined)) || (value1 == NaN)) {
return(valueIfNull);
}
if (valueIfNotNull == undefined) {
return(value1);
}
return(valueIfNotNull);
}
static var symbolName = "OberonClass";
static var symbolOwner = "Oberon";
var className = "OberonClass";
var multiHelpStatus = 0;
var SessionReadyOnHelpClose = false;
}
Symbol 1323 Button
on (release) {
if (_root.peuxJouer) {
_root.nextFrame();
}
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1324 Button
on (release) {
if (_root.peuxJouer) {
_root.gotoAndStop(_root._currentframe + 2);
}
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1325 Button
on (release) {
if (_root.peuxJouer) {
_root.fromGame = false;
_root.gotoAndStop(8);
}
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1329 MovieClip Frame 2
_root.rouleauSon.start();
Symbol 1329 MovieClip Frame 17
stop();
Symbol 1333 Button
on (press) {
getURL ("http://www.cccplay.com/", "_BLANK");
}
Symbol 1334 Button
on (release) {
getURL (_root.urlWEB, "_BLANK");
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1338 Button
on (release) {
if (_root.localization_portal == "game_com_cn") {
getURL (_root.localization_url1, "_blank");
} else {
getURL (_root.localization_url1 + "&utm_content=button_mainscreen_moregames", "_blank");
}
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1343 Button
on (release) {
trace(_root.niveauAtteint);
if (_root.niveauAtteint >= 1) {
OC.Game_GameReady("Freeplay", "Normal", 0);
_root.gotoAndStop(12);
}
}
on (rollOver) {
if (enable) {
_root.help.titre = "Free play";
_root.help.texte = "Replay any tangram you solved in the story mode, anytime.";
_root.help.locked = "";
_root.help.play();
_root.hover.start();
}
}
on (rollOut) {
_root.help.gotoAndStop(1);
}
on (press) {
_root.clicks.start();
}
Symbol 1345 Button
on (release) {
if (_root.tabUserPiecesP.length > 80) {
_root.gotoAndStop(10);
}
}
on (rollOver) {
if (enable) {
_root.help.titre = "As fast as the wind";
_root.help.texte = "Try to solve 20 tangram as fast as possible.";
_root.help.locked = "Try it in full version.";
_root.help.play();
_root.hover.start();
}
}
on (rollOut) {
_root.help.gotoAndStop(1);
}
on (press) {
_root.choixTrial.gotoAndPlay(2);
}
Symbol 1347 Button
on (release) {
if (_root.tabUserPiecesP.length > 40) {
_root.gotoAndStop(11);
}
}
on (rollOver) {
if (enable) {
_root.help.titre = "The longuest path";
_root.help.texte = "Try to solve as much puzzle as you can before the time's up. Each time you solve a puzzle, time is reseted";
_root.help.locked = "Try it in full version.";
_root.help.play();
_root.hover.start();
}
}
on (rollOut) {
_root.help.gotoAndStop(1);
}
on (press) {
_root.choixTrial.gotoAndPlay(2);
}
Symbol 1349 Button
on (release) {
if (_root.niveauAtteint < 0) {
_root.gotoAndStop(16);
} else {
_root.gotoAndStop(7);
}
}
on (rollOver) {
if (enable) {
_root.help.titre = "Story mode";
_root.help.texte = "Continue adventure.";
_root.help.locked = "";
_root.help.play();
_root.hover.start();
}
}
on (rollOut) {
_root.help.gotoAndStop(1);
}
on (press) {
_root.clicks.start();
}
Symbol 1351 Button
on (release) {
_root.Init();
_root.gotoAndStop(6);
}
on (rollOver) {
if (enable) {
_root.help.titre = "Story mode";
_root.help.texte = "Help yan-yan and tanguy the tangram to find all the tangrams and replace them on the great puzzle.";
_root.help.locked = "";
_root.help.play();
_root.hover.start();
}
}
on (rollOut) {
_root.help.gotoAndStop(1);
}
on (press) {
_root.clicks.start();
}
Symbol 1353 MovieClip Frame 1
var enable = false;
Symbol 1353 MovieClip Frame 2
_root.rouleauSon.start();
Symbol 1353 MovieClip Frame 17
enable = true;
stop();
Symbol 1354 Button
on (release) {
_root.gotoAndStop(3);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1379 MovieClip Frame 1
stop();
Symbol 1379 MovieClip Frame 2
play();
Symbol 1379 MovieClip Frame 125
gotoAndPlay (2);
Instance of Symbol 1382 MovieClip in Symbol 1383 MovieClip Frame 1
onClipEvent (keyDown) {
if (Key.getCode() == 17) {
this.enabled = true;
this.onPress = function () {
_root.tabHint = [0, 0, 0, 0, 0, 0, 0];
_root.nbClick = 0;
_root.shapeUsed = false;
_root.gridUsed = false;
_root.timePassed = getTimer();
_root.Fini();
};
}
}
onClipEvent (keyUp) {
this.enabled = false;
this.onPress = null;
}
Symbol 1395 MovieClip Frame 1
stop();
Symbol 1395 MovieClip Frame 2
play();
Symbol 1395 MovieClip Frame 11
stop();
Symbol 1403 MovieClip Frame 1
stop();
Symbol 1403 MovieClip Frame 5
stop();
Symbol 1405 MovieClip Frame 1
stop();
Symbol 1405 MovieClip Frame 5
stop();
Symbol 1410 MovieClip Frame 1
this.masque._x = _root.volumeSon - 100;
Symbol 1411 MovieClip Frame 1
this.masque._x = _root.volumeMusique - 100;
Symbol 1414 Button
on (release) {
if (hardware._currentframe == 1) {
hardware.gotoAndStop(2);
_root.rotation = true;
} else {
hardware.gotoAndStop(1);
_root.rotation = false;
}
}
on (press) {
_root.clicks.start();
}
Symbol 1417 MovieClip Frame 1
stop();
Symbol 1417 MovieClip Frame 2
stop();
Symbol 1418 MovieClip Frame 1
if (_root.windowed) {
windowed.gotoAndStop(2);
}
if (_root.rotation) {
hardware.gotoAndStop(2);
}
Instance of Symbol 1403 MovieClip in Symbol 1418 MovieClip Frame 1
on (press) {
if (_parent.effetSon.masque._x < 0) {
_parent.effetSon.masque._x = _parent.effetSon.masque._x + 10;
_root.volumeSon = _parent.effetSon.masque._x + 100;
if (_parent.effetSon.masque._x > 0) {
_parent.effetSon.masque._x = 0;
_root.volumeSon = 100;
}
} else {
_parent.effetSon.masque._x = 0;
_root.volumeSon = 100;
}
_root.Volume();
}
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndPlay(6);
}
on (release) {
_root.clicks2.start();
}
on (releaseOutside) {
this.gotoAndPlay(6);
}
Instance of Symbol 1405 MovieClip in Symbol 1418 MovieClip Frame 1
on (press) {
if (_parent.effetSon.masque._x > -100) {
_parent.effetSon.masque._x = _parent.effetSon.masque._x - 10;
_root.volumeSon = _parent.effetSon.masque._x + 100;
if (_parent.effetSon.masque._x < -100) {
_parent.effetSon.masque._x = -100;
_root.volumeSon = 0;
}
} else {
_parent.effetSon.masque._x = -100;
_root.volumeSon = 0;
}
_root.Volume();
}
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndPlay(6);
}
on (release) {
_root.clicks2.start();
}
on (releaseOutside) {
this.gotoAndPlay(6);
}
Instance of Symbol 1410 MovieClip "effetSon" in Symbol 1418 MovieClip Frame 1
on (release) {
stopDrag();
this.onMouseMove = null;
}
on (press) {
this.masque._x = this._xmouse - 50;
_root.volumeSon = this.masque._x + 100;
_root.Volume();
startDrag (this.masque, false, 0, 0, -100, 0);
this.onMouseMove = function () {
_root.volumeSon = this.masque._x + 100;
_root.Volume();
};
}
on (releaseOutside) {
stopDrag();
this.onMouseMove = null;
}
Instance of Symbol 1411 MovieClip "musicSon" in Symbol 1418 MovieClip Frame 1
on (release) {
stopDrag();
this.onMouseMove = null;
}
on (press) {
this.masque._x = this._xmouse - 50;
_root.volumeMusique = this.masque._x + 100;
_root.Volume();
startDrag (this.masque, false, 0, 0, -100, 0);
this.onMouseMove = function () {
_root.volumeMusique = this.masque._x + 100;
_root.Volume();
};
}
on (releaseOutside) {
stopDrag();
this.onMouseMove = null;
}
Instance of Symbol 1403 MovieClip in Symbol 1418 MovieClip Frame 1
on (press) {
if (_parent.musicSon.masque._x < 0) {
_parent.musicSon.masque._x = _parent.musicSon.masque._x + 10;
_root.volumeMusique = _parent.musicSon.masque._x + 100;
if (_parent.musicSon.masque._x > 0) {
_parent.musicSon.masque._x = 0;
_root.volumeMusique = 100;
}
} else {
_parent.musicSon.masque._x = 0;
_root.volumeMusique = 100;
}
_root.Volume();
}
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndPlay(6);
}
on (releaseOutside) {
this.gotoAndPlay(6);
}
Instance of Symbol 1405 MovieClip in Symbol 1418 MovieClip Frame 1
on (press) {
if (_parent.musicSon.masque._x > -100) {
_parent.musicSon.masque._x = _parent.musicSon.masque._x - 10;
_root.volumeMusique = _parent.musicSon.masque._x + 100;
if (_parent.musicSon.masque._x < -100) {
_parent.musicSon.masque._x = -100;
_root.volumeMusique = 0;
}
} else {
_parent.musicSon.masque._x = -100;
_root.volumeMusique = 0;
}
_root.Volume();
}
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndPlay(6);
}
on (releaseOutside) {
this.gotoAndPlay(6);
}
Symbol 1418 MovieClip Frame 2
_root.rouleauSon.start();
Symbol 1418 MovieClip Frame 17
stop();
Symbol 1419 Button
on (release) {
_root.choixTex.gotoAndStop(2);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1429 Button
on (release) {
for (clip in _root) {
removeMovieClip(_root[clip]);
}
_root.gotoAndStop(3);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1436 Button
on (release) {
for (clip in _root) {
removeMovieClip(_root[clip]);
}
_root.gotoAndStop(14);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1438 Button
on (release) {
_root.choixTex.gotoAndStop(2);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1440 Button
on (release) {
switch (_root._currentframe) {
case 9 :
if (_root.sablier._currentframe == 1) {
_root.sablier.sable.interval = setInterval(_root.sablier.sable, "Timer", 1000);
}
break;
case 10 :
_root.intTime = setInterval(_root, "Timer", 1000);
break;
case 11 :
if (_root.sablier._currentframe != 1) {
break;
}
_root.sablier.sable.interval = setInterval(_root.sablier.sable, "Timer", 1000);
}
_root.timePause = getTimer() - _root.timePause;
_parent.gotoAndStop(1);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1444 Button
on (release) {
_root.musique.loadSound("sounds/inter_sound.wotts", false);
_root.musique.setVolume(_root.volumeMusique);
for (clip in _root) {
removeMovieClip(_root[clip]);
}
_root.gotoAndStop(4);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1447 Button
on (release) {
for (clip in _root) {
removeMovieClip(_root[clip]);
}
_root.gotoAndStop(7);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1448 Button
on (release) {
_root.option.gotoAndStop(2);
_parent.gotoAndStop(2);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1450 Button
on (release) {
_root.help.gotoAndStop(2);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1452 MovieClip Frame 1
if (_root._currentframe != 9) {
btnBack._visible = false;
} else {
btnBack._visible = true;
}
Symbol 1454 MovieClip Frame 1
stop();
Symbol 1454 MovieClip Frame 2
switch (_root._currentframe) {
case 10 :
clearInterval(_root.intTime);
break;
case 11 :
clearInterval(sablier.sable.interval);
}
Symbol 1454 MovieClip Frame 11
stop();
Symbol 1456 Button
on (release) {
_root.saveUser(_root.playerName);
_root.menuPause.gotoAndPlay(2);
gotoAndStop (1);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1458 MovieClip Frame 1
stop();
Symbol 1458 MovieClip Frame 2
stop();
fond.useHandCursor = false;
if (_root.windowed) {
windowed.gotoAndStop(2);
}
if (_root.rotation) {
hardware.gotoAndStop(2);
}
Instance of Symbol 1403 MovieClip in Symbol 1458 MovieClip Frame 2
on (press) {
if (_parent.effetSon.masque._x < 0) {
_parent.effetSon.masque._x = _parent.effetSon.masque._x + 10;
_root.volumeSon = _parent.effetSon.masque._x + 100;
if (_parent.effetSon.masque._x > 0) {
_parent.effetSon.masque._x = 0;
_root.volumeSon = 100;
}
} else {
_parent.effetSon.masque._x = 0;
_root.volumeSon = 100;
}
_root.Volume();
}
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndPlay(6);
}
on (release) {
_root.clicks2.start();
}
on (releaseOutside) {
this.gotoAndPlay(6);
}
Instance of Symbol 1405 MovieClip in Symbol 1458 MovieClip Frame 2
on (press) {
if (_parent.effetSon.masque._x > -100) {
_parent.effetSon.masque._x = _parent.effetSon.masque._x - 10;
_root.volumeSon = _parent.effetSon.masque._x + 100;
if (_parent.effetSon.masque._x < -100) {
_parent.effetSon.masque._x = -100;
_root.volumeSon = 0;
}
} else {
_parent.effetSon.masque._x = -100;
_root.volumeSon = 0;
}
_root.Volume();
}
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndPlay(6);
}
on (release) {
_root.clicks2.start();
}
on (releaseOutside) {
this.gotoAndPlay(6);
}
Instance of Symbol 1410 MovieClip "effetSon" in Symbol 1458 MovieClip Frame 2
on (release) {
stopDrag();
this.onMouseMove = null;
}
on (press) {
this.masque._x = this._xmouse - 50;
startDrag (this.masque, false, 0, 0, -100, 0);
_root.volumeSon = this.masque._x + 100;
_root.Volume();
this.onMouseMove = function () {
_root.volumeSon = this.masque._x + 100;
_root.Volume();
};
}
on (releaseOutside) {
stopDrag();
this.onMouseMove = null;
}
Instance of Symbol 1411 MovieClip "musicSon" in Symbol 1458 MovieClip Frame 2
on (release) {
stopDrag();
this.onMouseMove = null;
}
on (press) {
this.masque._x = this._xmouse - 50;
startDrag (this.masque, false, 0, 0, -100, 0);
_root.volumeMusique = this.masque._x + 100;
_root.Volume();
this.onMouseMove = function () {
_root.volumeMusique = this.masque._x + 100;
_root.Volume();
};
}
on (releaseOutside) {
stopDrag();
this.onMouseMove = null;
}
Instance of Symbol 1403 MovieClip in Symbol 1458 MovieClip Frame 2
on (press) {
if (_parent.musicSon.masque._x < 0) {
_parent.musicSon.masque._x = _parent.musicSon.masque._x + 10;
_root.volumeMusique = _parent.musicSon.masque._x + 100;
if (_parent.musicSon.masque._x > 0) {
_parent.musicSon.masque._x = 0;
_root.volumeMusique = 100;
}
} else {
_parent.musicSon.masque._x = 0;
_root.volumeMusique = 100;
}
_root.Volume();
}
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndPlay(6);
}
on (releaseOutside) {
this.gotoAndPlay(6);
}
Instance of Symbol 1405 MovieClip in Symbol 1458 MovieClip Frame 2
on (press) {
if (_parent.musicSon.masque._x > -100) {
_parent.musicSon.masque._x = _parent.musicSon.masque._x - 10;
_root.volumeMusique = _parent.musicSon.masque._x + 100;
if (_parent.musicSon.masque._x < -100) {
_parent.musicSon.masque._x = -100;
_root.volumeMusique = 0;
}
} else {
_parent.musicSon.masque._x = -100;
_root.volumeMusique = 0;
}
_root.Volume();
}
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndPlay(6);
}
on (releaseOutside) {
this.gotoAndPlay(6);
}
Symbol 1461 Button
on (release) {
_parent.gotoAndStop(1);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1464 Button
on (release) {
_root.texture = texture;
_root.ornement = ornement;
_root.Retexturer(texture);
_root.saveUser(_root.playerName);
_parent.gotoAndStop(1);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1494 Button
on (press) {
if (caseOrne._currentframe == 1) {
ornement = true;
caseOrne.gotoAndStop(2);
Ornement(ornement);
} else {
ornement = false;
caseOrne.gotoAndStop(1);
Ornement(ornement);
}
}
Symbol 1495 MovieClip Frame 1
function Ornement(bool) {
texture0.enlu._visible = bool;
texture1.enlu._visible = bool;
texture2.enlu._visible = bool;
texture3.enlu._visible = bool;
texture4.enlu._visible = bool;
texture5.enlu._visible = bool;
texture6.enlu._visible = bool;
texture7.enlu._visible = bool;
texture8.enlu._visible = bool;
texture9.enlu._visible = bool;
texture10.enlu._visible = bool;
texture11.enlu._visible = bool;
texture12.enlu._visible = bool;
texture13.enlu._visible = bool;
texture14.enlu._visible = bool;
texture15.enlu._visible = bool;
}
function Recolore(obj) {
var _local1 = new Color(obj);
_local1.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
}
var texture = _root.texture;
var ornement = _root.ornement;
texture0.onPress = function () {
selec._x = texture0._x;
selec._y = texture0._y;
texture = this._name;
};
texture1.onPress = function () {
selec._x = texture1._x;
selec._y = texture1._y;
texture = this._name;
};
texture2.onPress = function () {
selec._x = texture2._x;
selec._y = texture2._y;
texture = this._name;
};
texture3.onPress = function () {
selec._x = texture3._x;
selec._y = texture3._y;
texture = this._name;
};
texture4.onPress = function () {
selec._x = texture4._x;
selec._y = texture4._y;
texture = this._name;
};
texture5.onPress = function () {
selec._x = texture5._x;
selec._y = texture5._y;
texture = this._name;
};
texture6.onPress = function () {
selec._x = texture6._x;
selec._y = texture6._y;
texture = this._name;
};
texture7.onPress = function () {
selec._x = texture7._x;
selec._y = texture7._y;
texture = this._name;
};
texture8.onPress = function () {
selec._x = texture8._x;
selec._y = texture8._y;
texture = this._name;
};
texture9.onPress = function () {
selec._x = texture9._x;
selec._y = texture9._y;
texture = this._name;
};
texture10.onPress = function () {
selec._x = texture10._x;
selec._y = texture10._y;
texture = this._name;
};
texture11.onPress = function () {
selec._x = texture11._x;
selec._y = texture11._y;
texture = this._name;
};
texture12.onPress = function () {
selec._x = texture12._x;
selec._y = texture12._y;
texture = this._name;
};
texture13.onPress = function () {
selec._x = texture13._x;
selec._y = texture13._y;
texture = this._name;
};
texture14.onPress = function () {
selec._x = texture14._x;
selec._y = texture14._y;
texture = this._name;
};
texture15.onPress = function () {
selec._x = texture15._x;
selec._y = texture15._y;
texture = this._name;
};
switch (Number(_root.tabUserTrophees[5])) {
case 1 :
Recolore(texture0);
texture1.onPress = null;
texture2.onPress = null;
texture3.onPress = null;
texture4.onPress = null;
texture5.onPress = null;
texture6.onPress = null;
texture7.onPress = null;
texture8.onPress = null;
texture9.onPress = null;
texture10.onPress = null;
texture11.onPress = null;
texture12.onPress = null;
texture13.onPress = null;
texture14.onPress = null;
texture15.onPress = null;
break;
case 2 :
Recolore(texture0);
Recolore(texture1);
texture2.onPress = null;
texture3.onPress = null;
texture4.onPress = null;
texture5.onPress = null;
texture6.onPress = null;
texture7.onPress = null;
texture8.onPress = null;
texture9.onPress = null;
texture10.onPress = null;
texture11.onPress = null;
texture12.onPress = null;
texture13.onPress = null;
texture14.onPress = null;
texture15.onPress = null;
break;
case 3 :
Recolore(texture0);
Recolore(texture1);
Recolore(texture2);
texture3.onPress = null;
texture4.onPress = null;
texture5.onPress = null;
texture6.onPress = null;
texture7.onPress = null;
texture8.onPress = null;
texture9.onPress = null;
texture10.onPress = null;
texture11.onPress = null;
texture12.onPress = null;
texture13.onPress = null;
texture14.onPress = null;
texture15.onPress = null;
break;
case 4 :
Recolore(texture0);
Recolore(texture1);
Recolore(texture2);
Recolore(texture3);
texture4.onPress = null;
texture5.onPress = null;
texture6.onPress = null;
texture7.onPress = null;
texture8.onPress = null;
texture9.onPress = null;
texture10.onPress = null;
texture11.onPress = null;
texture12.onPress = null;
texture13.onPress = null;
texture14.onPress = null;
texture15.onPress = null;
break;
case 5 :
Recolore(texture0);
Recolore(texture1);
Recolore(texture2);
Recolore(texture3);
Recolore(texture4);
texture5.onPress = null;
texture6.onPress = null;
texture7.onPress = null;
texture8.onPress = null;
texture9.onPress = null;
texture10.onPress = null;
texture11.onPress = null;
texture12.onPress = null;
texture13.onPress = null;
texture14.onPress = null;
texture15.onPress = null;
break;
case 6 :
Recolore(texture0);
Recolore(texture1);
Recolore(texture2);
Recolore(texture3);
Recolore(texture4);
Recolore(texture5);
texture6.onPress = null;
texture7.onPress = null;
texture8.onPress = null;
texture9.onPress = null;
texture10.onPress = null;
texture11.onPress = null;
texture12.onPress = null;
texture13.onPress = null;
texture14.onPress = null;
texture15.onPress = null;
break;
case 7 :
Recolore(texture0);
Recolore(texture1);
Recolore(texture2);
Recolore(texture3);
Recolore(texture4);
Recolore(texture5);
Recolore(texture6);
texture7.onPress = null;
texture8.onPress = null;
texture9.onPress = null;
texture10.onPress = null;
texture11.onPress = null;
texture12.onPress = null;
texture13.onPress = null;
texture14.onPress = null;
texture15.onPress = null;
break;
case 8 :
Recolore(texture0);
Recolore(texture1);
Recolore(texture2);
Recolore(texture3);
Recolore(texture4);
Recolore(texture5);
Recolore(texture6);
Recolore(texture7);
texture8.onPress = null;
texture9.onPress = null;
texture10.onPress = null;
texture11.onPress = null;
texture12.onPress = null;
texture13.onPress = null;
texture14.onPress = null;
texture15.onPress = null;
break;
case 9 :
Recolore(texture0);
Recolore(texture1);
Recolore(texture2);
Recolore(texture3);
Recolore(texture4);
Recolore(texture5);
Recolore(texture6);
Recolore(texture7);
Recolore(texture8);
texture9.onPress = null;
texture10.onPress = null;
texture11.onPress = null;
texture12.onPress = null;
texture13.onPress = null;
texture14.onPress = null;
texture15.onPress = null;
break;
case 10 :
Recolore(texture0);
Recolore(texture1);
Recolore(texture2);
Recolore(texture3);
Recolore(texture4);
Recolore(texture5);
Recolore(texture6);
Recolore(texture7);
Recolore(texture8);
Recolore(texture9);
texture10.onPress = null;
texture11.onPress = null;
texture12.onPress = null;
texture13.onPress = null;
texture14.onPress = null;
texture15.onPress = null;
break;
case 11 :
Recolore(texture0);
Recolore(texture1);
Recolore(texture2);
Recolore(texture3);
Recolore(texture4);
Recolore(texture5);
Recolore(texture6);
Recolore(texture7);
Recolore(texture8);
Recolore(texture9);
Recolore(texture10);
texture11.onPress = null;
texture12.onPress = null;
texture13.onPress = null;
texture14.onPress = null;
texture15.onPress = null;
break;
case 12 :
Recolore(texture0);
Recolore(texture1);
Recolore(texture2);
Recolore(texture3);
Recolore(texture4);
Recolore(texture5);
Recolore(texture6);
Recolore(texture7);
Recolore(texture8);
Recolore(texture9);
Recolore(texture10);
Recolore(texture11);
texture12.onPress = null;
texture13.onPress = null;
texture14.onPress = null;
texture15.onPress = null;
break;
case 13 :
Recolore(texture0);
Recolore(texture1);
Recolore(texture2);
Recolore(texture3);
Recolore(texture4);
Recolore(texture5);
Recolore(texture6);
Recolore(texture7);
Recolore(texture8);
Recolore(texture9);
Recolore(texture10);
Recolore(texture11);
Recolore(texture12);
texture13.onPress = null;
texture14.onPress = null;
texture15.onPress = null;
break;
case 14 :
Recolore(texture0);
Recolore(texture1);
Recolore(texture2);
Recolore(texture3);
Recolore(texture4);
Recolore(texture5);
Recolore(texture6);
Recolore(texture7);
Recolore(texture8);
Recolore(texture9);
Recolore(texture10);
Recolore(texture11);
Recolore(texture12);
Recolore(texture13);
texture14.onPress = null;
texture15.onPress = null;
break;
case 15 :
Recolore(texture0);
Recolore(texture1);
Recolore(texture2);
Recolore(texture3);
Recolore(texture4);
Recolore(texture5);
Recolore(texture6);
Recolore(texture7);
Recolore(texture8);
Recolore(texture9);
Recolore(texture10);
Recolore(texture11);
Recolore(texture12);
Recolore(texture13);
Recolore(texture14);
texture15.onPress = null;
break;
case 16 :
Recolore(texture0);
Recolore(texture1);
Recolore(texture2);
Recolore(texture3);
Recolore(texture4);
Recolore(texture5);
Recolore(texture6);
Recolore(texture7);
Recolore(texture8);
Recolore(texture9);
Recolore(texture10);
Recolore(texture11);
Recolore(texture12);
Recolore(texture13);
Recolore(texture14);
Recolore(texture15);
}
selec._x = eval (_root.texture)._x;
selec._y = eval (_root.texture)._y;
if (_root.ornement) {
caseOrne.gotoAndStop(2);
} else {
caseOrne.gotoAndStop(1);
}
Ornement(_root.ornement);
Symbol 1496 MovieClip Frame 1
stop();
Symbol 1496 MovieClip Frame 2
stop();
fond.useHandCursor = false;
if (_root.currentframe < 9) {
fenetre.texteBouton = "Back";
} else {
fenetre.texteBouton = "Back to menuPause";
}
Symbol 1507 Button
on (release) {
gotoAndStop (1);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1508 Button
on (press) {
nextFrame();
}
Symbol 1517 Button
on (press) {
prevFrame();
}
Symbol 1552 Button
on (press) {
rand = Math.round(Math.random() * (_root.tabHint.length - 1));
for (clip in _root.figures) {
eval ((_root.figures[clip] + ".p") + _root.tabHint[rand])._visible = true;
}
_root.tabHint.splice(rand, 1);
_root.EnableHint(false);
_root.hintUsed = _root.hintUsed + 1;
_parent._parent.play();
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1555 Button
on (release) {
_root.ShowGrid();
_root.hintUsed = _root.hintUsed + 1;
_parent._parent.play();
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1558 Button
on (release) {
_root.ShowShape();
_root.hintUsed = _root.hintUsed + 1;
_parent._parent.play();
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1568 Button
on (press) {
_parent.play();
}
Symbol 1569 MovieClip Frame 1
if (_root.gridUsed) {
var color = new Color(btGrid.bouton);
color.setTransform({ra:40, rb:61, ga:40, gb:61, ba:40, bb:61, aa:100, ab:0});
btGrid.bouton.enabled = false;
}
if (_root.shapeUsed) {
var color = new Color(btShape.bouton);
color.setTransform({ra:40, rb:61, ga:40, gb:61, ba:40, bb:61, aa:100, ab:0});
btShape.bouton.enabled = false;
}
if (_root.tabHint.length <= 0) {
var color = new Color(btShow.bouton);
color.setTransform({ra:40, rb:61, ga:40, gb:61, ba:40, bb:61, aa:100, ab:0});
btShow.bouton.enabled = false;
}
Symbol 1638 MovieClip Frame 1
if (this.getDepth() != 16) {
this.swapDepths(16);
}
stop();
Symbol 1638 MovieClip Frame 2
if (this.getDepth() != 16) {
this.swapDepths(16);
}
stop();
fond.useHandCursor = true;
Symbol 1638 MovieClip Frame 3
if (this.getDepth() != 16) {
this.swapDepths(16);
}
stop();
Symbol 1638 MovieClip Frame 4
if (this.getDepth() != 16) {
this.swapDepths(16);
}
stop();
Symbol 1638 MovieClip Frame 5
if (this.getDepth() != 16) {
this.swapDepths(16);
}
stop();
Symbol 1638 MovieClip Frame 6
if (this.getDepth() != 16) {
this.swapDepths(16);
}
stop();
Symbol 1638 MovieClip Frame 7
if (this.getDepth() != 16) {
this.swapDepths(16);
}
stop();
Symbol 1638 MovieClip Frame 8
if (this.getDepth() != 16) {
this.swapDepths(16);
}
stop();
Symbol 1638 MovieClip Frame 9
if (this.getDepth() != 16) {
this.swapDepths(16);
}
stop();
Symbol 1638 MovieClip Frame 10
if (this.getDepth() != 16) {
this.swapDepths(16);
}
titre = "Great puzzle 1/2";
stop();
Symbol 1638 MovieClip Frame 11
if (this.getDepth() != 16) {
this.swapDepths(16);
}
stop();
Symbol 1640 Button
on (release) {
_root.saveUser(_root.playerName);
_root.menuPause.gotoAndPlay(2);
gotoAndStop (1);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1645 Button
on (release) {
_parent.play();
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1650 MovieClip Frame 17
gotoAndPlay (8);
Symbol 1651 MovieClip Frame 1
stop();
Symbol 1651 MovieClip Frame 15
stop();
Symbol 1651 MovieClip Frame 20
gotoAndStop (1);
Symbol 1652 Button
on (release) {
_parent.play();
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 1658 MovieClip Frame 1
stop();
Symbol 1658 MovieClip Frame 15
stop();
Symbol 1658 MovieClip Frame 20
gotoAndStop (1);
Symbol 1697 MovieClip Frame 14
gotoAndPlay (1);
Symbol 1697 MovieClip Frame 15
play();
Symbol 1697 MovieClip Frame 106
stop();
Symbol 1697 MovieClip Frame 107
play();
Symbol 1697 MovieClip Frame 151
gotoAndPlay (141);
Symbol 1697 MovieClip Frame 152
play();
Symbol 1697 MovieClip Frame 163
gotoAndPlay (152);
Symbol 1697 MovieClip Frame 164
play();
Symbol 1697 MovieClip Frame 193
stop();
Symbol 1697 MovieClip Frame 194
play();
Symbol 1697 MovieClip Frame 347
stop();
Symbol 1697 MovieClip Frame 348
play();
Symbol 1697 MovieClip Frame 644
stop();
Symbol 1697 MovieClip Frame 645
play();
Symbol 1697 MovieClip Frame 739
stop();
Symbol 1697 MovieClip Frame 740
play();
Symbol 1697 MovieClip Frame 872
gotoAndPlay (856);
Symbol 1697 MovieClip Frame 873
play();
Symbol 1697 MovieClip Frame 1026
stop();
Symbol 1697 MovieClip Frame 1111
stop();
Symbol 1697 MovieClip Frame 1112
play();
Symbol 1697 MovieClip Frame 1192
stop();
Symbol 1697 MovieClip Frame 1193
play();
Symbol 1697 MovieClip Frame 1389
stop();
Symbol 1697 MovieClip Frame 1390
play();
Symbol 1697 MovieClip Frame 1444
play();
Symbol 1697 MovieClip Frame 1608
gotoAndPlay (1489);
Symbol 1698 MovieClip Frame 16
gotoAndPlay (1);
Symbol 1698 MovieClip Frame 17
play();
Symbol 1698 MovieClip Frame 132
stop();
Symbol 1701 MovieClip Frame 20
gotoAndPlay (2);
Symbol 2047 MovieClip Frame 164
gotoAndPlay (112);
Symbol 2060 MovieClip Frame 1
Symbol 2060 MovieClip Frame 363
perso01.gotoAndPlay(15);
Symbol 2060 MovieClip Frame 534
perso01.gotoAndPlay(107);
Symbol 2060 MovieClip Frame 613
perso01.gotoAndPlay(152);
Symbol 2060 MovieClip Frame 665
perso01.gotoAndPlay(164);
Symbol 2060 MovieClip Frame 823
perso01.gotoAndPlay(194);
Symbol 2060 MovieClip Frame 1029
perso01.gotoAndPlay(351);
Symbol 2060 MovieClip Frame 1432
perso01.gotoAndPlay(645);
Symbol 2060 MovieClip Frame 1670
perso01.gotoAndPlay(740);
Symbol 2060 MovieClip Frame 1997
perso01.gotoAndPlay(873);
Symbol 2060 MovieClip Frame 2278
perso01.gotoAndPlay(1027);
Symbol 2060 MovieClip Frame 2457
stop();
_parent.persogame.gotoAndPlay(2);
Symbol 2065 MovieClip Frame 1
stop();
Symbol 2065 MovieClip Frame 2
play();
Symbol 2065 MovieClip Frame 124
stop();
_parent.bulleIntro.gotoAndPlay(2);
Symbol 2067 Button
on (release) {
_root.gotoAndStop(16);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 2073 MovieClip Frame 1
stop();
Symbol 2073 MovieClip Frame 10
_parent.interfIntro.avatar.bouche.gotoAndPlay(2);
Symbol 2073 MovieClip Frame 70
_parent.interfIntro.avatar.bouche.gotoAndStop(1);
stop();
Symbol 2078 MovieClip Frame 1
stop();
if (_root.niveauAtteint >= Number(this._name.substr(5, this.name.length))) {
gotoAndStop (2);
}
Symbol 2078 MovieClip Frame 2
var niveau = Number(this._name.substr(5, this.name.length));
if ((_root.niveauAtteint == niveau) and (!_root.fromScore)) {
this.attachMovie("pointGrosSelected", "point", 8);
}
this.onPress = function () {
removeMovieClip(eval ("_parent.point" + _root.niveauActuel).point);
_root.niveauActuel = Number(this._name.substr(5, this.name.length));
this.attachMovie("pointPetitSelected", "point", 8);
};
this.onRollOver = function () {
var _local4 = this._x + (this._width / 2);
var _local3 = (this._y + (this._height / 2)) + _root.carte._y;
if (this._x < 400) {
_root.attachMovie("bulleCarteD", "bulleCarte", this.getNextHighestDepth(), {_x:_local4, _y:_local3});
} else {
_root.attachMovie("bulleCarteG", "bulleCarte", this.getNextHighestDepth(), {_x:_local4, _y:_local3});
}
_root.carteActivee = this._name;
};
this.onRollOut = function () {
removeMovieClip(_root.bulleCarte);
};
this.onReleaseOutside = function () {
removeMovieClip(_root.bulleCarte);
};
Symbol 2079 MovieClip Frame 1
stop();
if (_root.niveauAtteint >= Number(this._name.substr(5, this.name.length))) {
gotoAndStop (2);
}
Symbol 2079 MovieClip Frame 2
var index = ((Number(this._name.substr(5, this.name.length)) / 10) - 1);
if ((_root.niveauAtteint == Number(this._name.substr(5, this.name.length))) and (!_root.fromScore)) {
this.attachMovie("pointGrosSelected", "point", 8);
} else if (((_root.niveauAtteint >= 150) and (Number(this._name.substr(5, this.name.length)) == 149)) and (!_root.fromScore)) {
this.attachMovie("pointGrosSelected", "point", 8);
}
this.onPress = function () {
removeMovieClip(eval ("_parent.point" + _root.niveauActuel).point);
_root.niveauActuel = Number(this._name.substr(5, this.name.length));
this.attachMovie("pointGrosSelected", "point", 8);
};
this.onRollOver = function () {
var _local4 = this._x + (this._width / 2);
var _local3 = (this._y + (this._height / 2)) + _root.carte._y;
if (this._x < 400) {
_root.attachMovie("bulleCarteD", "bulleCarte", this.getNextHighestDepth(), {_x:_local4, _y:_local3});
} else {
_root.attachMovie("bulleCarteG", "bulleCarte", this.getNextHighestDepth(), {_x:_local4, _y:_local3});
}
_root.carteActivee = this._name;
};
this.onRollOut = function () {
removeMovieClip(_root.bulleCarte);
};
this.onReleaseOutside = function () {
removeMovieClip(_root.bulleCarte);
};
Symbol 2088 Button
on (release) {
for (clip in _root) {
removeMovieClip(_root[clip]);
}
_root.fromScore = false;
mochi.as2.MochiScores.closeLeaderboard();
_root.gotoAndStop(4);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 2089 Button
on (release) {
_root.fromScore = false;
_root.teaser.gotoAndStop(1);
_root.reminder.gotoAndStop(1);
mochi.as2.MochiScores.closeLeaderboard();
_root.gotoAndStop(9);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 2092 Button
on (press) {
if (carte._y > 0) {
this.onEnterFrame = function () {
if ((carte._y - 16) > 0) {
carte._y = carte._y - 16;
} else {
carte._y = 0;
this.onEnterFrame = null;
}
};
}
}
on (release) {
this.onEnterFrame = null;
if ((carte._y - 32) > 0) {
var reach = (carte._y - 32);
this.onEnterFrame = function () {
carte._y = carte._y - Math.floor((carte._y - reach) / 7);
if (Math.floor((carte._y - reach) / 7) == 0) {
this.onEnterFrame = null;
}
};
}
}
on (releaseOutside) {
this.onEnterFrame = null;
}
Symbol 2093 Button
on (press) {
if (carte._y < 1840) {
this.onEnterFrame = function () {
if ((carte._y + 16) < 1840) {
carte._y = carte._y + 16;
} else {
carte._y = 1840;
this.onEnterFrame = null;
}
};
}
}
on (release) {
this.onEnterFrame = null;
if ((carte._y + 32) < 1840) {
var reach = (carte._y + 32);
this.onEnterFrame = function () {
carte._y = carte._y + Math.floor((reach - carte._y) / 7);
if (Math.floor((reach - carte._y) / 7) == 0) {
this.onEnterFrame = null;
}
};
}
}
on (releaseOutside) {
this.onEnterFrame = null;
}
Symbol 2108 MovieClip Frame 12
_parent.bwp4.enabled = true;
Symbol 2108 MovieClip Frame 16
_parent.bwp4.enabled = false;
Instance of Symbol 956 MovieClip "sh0" in Symbol 2112 MovieClip Frame 17
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "10 tangrams solved without using hints";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 959 MovieClip "sh1" in Symbol 2112 MovieClip Frame 18
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "30 tangrams solved without using hints";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 962 MovieClip "sh2" in Symbol 2112 MovieClip Frame 19
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "60 tangrams solved without using hints";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 965 MovieClip "sh3" in Symbol 2112 MovieClip Frame 20
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "100 tangrams solved without using hints";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 953 MovieClip "sh4" in Symbol 2112 MovieClip Frame 21
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse, _y:_root._ymouse});
_root.texteTrophee = "150 tangrams solved without using hints";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 941 MovieClip "mu0" in Symbol 2112 MovieClip Frame 22
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "5 tangrams solved within one minute";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 944 MovieClip "mu1" in Symbol 2112 MovieClip Frame 23
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "20 tangrams solved within one minute";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 947 MovieClip "mu2" in Symbol 2112 MovieClip Frame 24
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "50 tangrams solved within one minute";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 950 MovieClip "mu3" in Symbol 2112 MovieClip Frame 25
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "85 tangrams solved within one minute";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 938 MovieClip "mu4" in Symbol 2112 MovieClip Frame 26
on (rollOver) {
_root.attachMovie("rouleauTrophee", "rouleauTrophee", 0, {_x:_root._xmouse - 310, _y:_root._ymouse});
_root.texteTrophee = "140 tangrams solved within one minute";
}
on (rollOut) {
removeMovieClip(_root.rouleauTrophee);
}
Instance of Symbol 2108 MovieClip "wallpaper" in Symbol 2112 MovieClip Frame 27
onClipEvent (load) {
mdm.Application.Library.extractToFile(("wallpaper" + Number(_parent._parent.tableau[3])) + ".jpg", ((mdm.FileSystem.getCurrentDir() + "/wallpaper") + Number(_parent._parent.tableau[3])) + ".jpg");
gotoAndStop(Number(_parent._parent.tableau[3]));
}
Instance of Symbol 379 MovieClip [smallFigure] "figures" in Symbol 2112 MovieClip Frame 28
onClipEvent (load) {
gotoAndStop(Number(_parent._parent.tableau[3]));
for (clip in this) {
var pieceChild = this[clip];
}
pieceChild.piecesVisibles = true;
var color = new Color(pieceChild.p0);
color.setRGB(16750848);
var color = new Color(pieceChild.p1);
color.setRGB(16750848);
var color = new Color(pieceChild.p2);
color.setRGB(16750848);
var color = new Color(pieceChild.p3);
color.setRGB(16750848);
var color = new Color(pieceChild.p4);
color.setRGB(16750848);
var color = new Color(pieceChild.p5);
color.setRGB(16750848);
var color = new Color(pieceChild.p6);
color.setRGB(16750848);
var distance = 5;
var angleInDegrees = 45;
var highlightColor = 16777062;
var highlightAlpha = 1;
var shadowColor = 0;
var shadowAlpha = 1;
var blurX = 8;
var blurY = 8;
var strength = 1;
var quality = 1;
var type = "inner";
var knockout = false;
var filterB = (new flash.filters.BevelFilter(distance, angleInDegrees, highlightColor, highlightAlpha, shadowColor, shadowAlpha, blurX, blurY, strength, quality, type, knockout));
var distance = 0;
var angleInDegrees = 45;
var color = 0;
var alpha = 1;
var blurX = 2;
var blurY = 2;
var strength = 10;
var quality = 1;
var inner = false;
var knockout = false;
var hideObject = false;
var filterD = (new flash.filters.DropShadowFilter(distance, angleInDegrees, color, alpha, blurX, blurY, strength, quality, inner, knockout, hideObject));
var filterArray = new Array();
filterArray.push(filterB);
filterArray.push(filterD);
this.filters = filterArray;
}
Instance of Symbol 589 MovieClip in Symbol 2112 MovieClip Frame 29
onClipEvent (load) {
_parent.num.text = _root.tabCitationsBonus[Number(_parent._parent.tableau[3])].num;
_parent.quote.text = _root.tabCitationsBonus[Number(_parent._parent.tableau[3])].quote;
_parent.author.text = _root.tabCitationsBonus[Number(_parent._parent.tableau[3])].author;
}
Symbol 2114 Button
on (release) {
if (_root.numberTrophee) {
_root.numberTrophee--;
_root.TestTrophee();
} else {
_parent.gotoAndStop(1);
}
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 2118 Button
on (release) {
trace(awards._currentframe);
if (awards._currentframe < 17) {
_root.choixTex.swapDepths(10);
_root.choixTex.gotoAndStop(2);
} else if (awards._currentframe < 27) {
_root.fromGame = true;
_root.isTrophee = true;
_root.gotoAndStop(8);
} else if (awards._currentframe == 27) {
_root.fromGame = true;
_root.isWallpaper = true;
_root.gotoAndStop(8);
} else if (awards._currentframe == 29) {
_root.fromGame = true;
_root.isCitation = true;
_root.gotoAndStop(8);
}
_parent.gotoAndStop(1);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 2119 MovieClip Frame 1
var tableau = new Array();
tableau = _root.GetUnlockTrophee();
if (Number(tableau[1]) == 28) {
btnAwards._visible = false;
btnOk1._visible = false;
} else {
btnOk2._visible = false;
}
titre.text = tableau[0];
awards.gotoAndStop(Number(tableau[1]));
detail.text = tableau[2];
Symbol 2120 MovieClip Frame 1
stop();
Symbol 2120 MovieClip Frame 2
stop();
Symbol 2128 Button
on (release) {
wait._x = 325;
wait._y = 300;
var highScore = 0;
var i = 0;
while (i < _root.tabUserScoreStory.length) {
highScore = highScore + _root.tabUserScoreStory[i].score;
i++;
}
mochi.as2.MochiScores.showLeaderboard({boardID:"9c6d546459c7c391", score:highScore, onClose:function () {
wait._x = -400;
wait._y = -300;
}});
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 2138 Button
on (press) {
mochi.as2.MochiScores.closeLeaderboard();
_parent.gotoAndStop(2);
_root.clicks.start();
}
Symbol 2139 Button
on (press) {
mochi.as2.MochiScores.closeLeaderboard();
_parent.gotoAndStop(3);
_root.clicks.start();
}
Symbol 2140 Button
on (press) {
mochi.as2.MochiScores.closeLeaderboard();
_parent.gotoAndStop(5);
_root.clicks.start();
}
Symbol 2141 MovieClip Frame 1
Symbol 2144 Button
on (press) {
_parent.gotoAndStop(1);
_root.clicks.start();
}
Symbol 2158 MovieClip Frame 1
stop();
Symbol 2160 Button
on (press) {
frameSelected = wp1._currentframe;
nextFrame();
}
Symbol 2161 Button
on (press) {
frameSelected = wp2._currentframe;
nextFrame();
}
Symbol 2162 Button
on (press) {
frameSelected = wp3._currentframe;
nextFrame();
}
Symbol 2163 Button
on (press) {
frameSelected = wp4._currentframe;
nextFrame();
}
Symbol 2164 Button
on (press) {
if (frame < 12) {
frame = frame + 4;
if (frame == 12) {
inter4._visible = false;
wp4._visible = false;
} else {
inter4._visible = true;
wp4._visible = true;
}
Activer(frame);
} else {
frame = 0;
inter4._visible = true;
wp4._visible = true;
Activer(frame);
}
}
Symbol 2165 Button
on (press) {
if (frame > 0) {
frame = frame - 4;
inter4._visible = true;
wp4._visible = true;
Activer(frame);
} else {
frame = 12;
inter4._visible = false;
wp4._visible = false;
Activer(frame);
}
}
Symbol 2166 Button
on (press) {
_root.back._visible = true;
_parent.gotoAndStop(1);
}
Symbol 2167 Button
on (press) {
_root.back._visible = true;
_parent.gotoAndStop(2);
}
Symbol 2168 Button
on (press) {
_root.back._visible = true;
_parent.gotoAndStop(5);
}
Symbol 2176 Button
on (release) {
_root.back._visible = true;
_parent.gotoAndStop(1);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 2178 MovieClip Frame 1
function Activer(num) {
wp1.gotoAndStop(Number(_root.tabUserWP[num]));
wp2.gotoAndStop(16);
wp3.gotoAndStop(16);
wp4.gotoAndStop(16);
if (_root.tabUserWP[num] == 16) {
bwp1.enabled = false;
} else {
bwp1.enabled = true;
}
if (_root.tabUserWP[num + 1] == 16) {
bwp2.enabled = false;
} else {
bwp2.enabled = true;
}
if (_root.tabUserWP[num + 2] == 16) {
bwp3.enabled = false;
} else {
bwp3.enabled = true;
}
if (_root.tabUserWP[num + 3] == 16) {
bwp4.enabled = false;
} else {
bwp4.enabled = true;
}
}
stop();
var frameSelected;
var frame = 0;
Activer(frame);
wp1.gotoAndStop(Number(_root.tabUserWP[num]));
wp2.gotoAndStop(16);
wp3.gotoAndStop(16);
wp4.gotoAndStop(16);
Symbol 2178 MovieClip Frame 2
zoom.gotoAndStop(frameSelected);
_root.back._visible = false;
num.text = frameSelected;
Symbol 2179 MovieClip Frame 1
stop();
if (_root.tabUserCitations.length < 2) {
_root.help.gotoAndStop(8);
}
if (_root.isTrophee) {
gotoAndStop (2);
} else if (_root.isWallpaper) {
gotoAndStop (3);
} else if (_root.isCitation) {
gotoAndStop (4);
} else {
mochi.as2.MochiScores.showLeaderboard({boardID:"9c6d546459c7c391", hideDoneButton:true, onClose:function () {
}});
}
Symbol 2179 MovieClip Frame 2
_root.isTrophee = false;
stop();
Symbol 2179 MovieClip Frame 3
_root.isWallpaper = false;
stop();
Symbol 2179 MovieClip Frame 4
_root.isCitation = false;
stop();
Symbol 2180 Button
on (release) {
mochi.as2.MochiScores.closeLeaderboard();
for (clip in _root) {
removeMovieClip(_root[clip]);
}
if (_root.fromGame) {
_root.fromGame = false;
_root.isTrophee = false;
_root.isWallpaper = false;
_root.isCitation = false;
_root.gotoAndStop(7);
} else {
_root.gotoAndStop(3);
}
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 2181 Button
on (release) {
if (_root.localization_portal == "game_com_cn") {
getURL (_root.localization_url1, "_blank");
} else {
getURL (_root.localization_url1 + "&utm_content=button_highscore_3000games", "_blank");
}
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 2189 MovieClip Frame 1
stop();
Symbol 2189 MovieClip Frame 2
stop();
Symbol 2189 MovieClip Frame 3
stop();
Symbol 2189 MovieClip Frame 4
stop();
Symbol 2192 MovieClip Frame 1
stop();
Symbol 2218 MovieClip Frame 1
function Timer() {
_root.sablierTime.text = Number(_root.sablierTime.text) - 1;
if ((_root.tempsSable == 2) and (!(Number(_root.sablierTime.text) % 2))) {
this.gotoAndStop(_currentframe + 1);
} else if (_root.tempsSable == 1) {
this.gotoAndStop(_currentframe + 1);
}
}
var interval;
if (_root.hintEnabled) {
stop();
}
Symbol 2218 MovieClip Frame 5
stop();
interval = setInterval(this, "Timer", 1000);
Symbol 2218 MovieClip Frame 65
clearInterval(interval);
play();
Symbol 2218 MovieClip Frame 70
_root.EnableHint(true);
_parent.gotoAndPlay(2);
Symbol 2225 MovieClip Frame 1
stop();
Symbol 2227 MovieClip Frame 1
stop();
Symbol 2227 MovieClip Frame 2
stop();
_root.sablierTime.text = "";
Symbol 2229 Button
on (release) {
_root.timePause = getTimer();
clearInterval(_root.sablier.sable.interval);
menuPause.gotoAndPlay(2);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 2235 MovieClip Frame 1
switch (_root._currentframe) {
case 9 :
break;
case 10 :
var numzero = "";
if ((_root.timePassed % 60) < 10) {
numzero = "0";
}
texteScore.text = ((((((("Solved within " + Math.floor(_root.timePassed / 60)) + "'") + numzero) + (_root.timePassed % 60)) + " + ") + ((300 - _root.timePassed) * 2)) + " Pts : ") + _root.score;
break;
case 11 :
var temps = (120 - _root.timePassed);
var numzero = "";
if ((temps % 60) < 10) {
numzero = "0";
}
texteScore.text = ((((((("Time Left : " + Math.floor(temps / 60)) + "'") + numzero) + (temps % 60)) + " +") + ((120 - _root.timePassed) * 5)) + "Pts : ") + _root.score;
break;
case 16 :
texteScore.text = _root.getTexteTuto();
}
Symbol 2236 MovieClip Frame 1
stop();
Symbol 2236 MovieClip Frame 2
Symbol 2236 MovieClip Frame 15
stop();
Symbol 2236 MovieClip Frame 19
gotoAndStop (1);
Symbol 2240 Button
on (release) {
_root.bulle.play();
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 2245 Button
on (release) {
if (_root._currentframe == 16) {
_root.CarreTuto();
} else {
_root.Reset();
}
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 2250 Button
on (press) {
menuPause.gotoAndPlay(2);
}
Symbol 2251 Button
on (press) {
_root.clicks.start();
timing = 1000;
_root.inTime = setInterval(this, "Timer", timing, -1);
ChargementNiveau(--niveauFP);
}
on (rollOver) {
_root.hover.start();
}
on (release) {
clearInterval(_root.inTime);
}
on (releaseOutside) {
clearInterval(_root.inTime);
}
Symbol 2252 Button
on (press) {
_root.clicks.start();
timing = 1000;
_root.inTime = setInterval(this, "Timer", timing, 1);
ChargementNiveau(++niveauFP);
}
on (rollOver) {
_root.hover.start();
}
on (release) {
clearInterval(_root.inTime);
}
on (releaseOutside) {
clearInterval(_root.inTime);
}
Symbol 2254 Button
on (release) {
_root.fromGame = true;
_root.isTrophee = true;
for (clip in _root) {
removeMovieClip(_root[clip]);
}
_root.gotoAndStop(8);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 2256 Button
on (press) {
play();
}
Symbol 2258 MovieClip Frame 1
stop();
var enable = false;
var num = _root.tabUserPiecesP.length;
if (num == 150) {
num = 10;
} else if (num >= 135) {
num = 9;
} else if (num >= 120) {
num = 8;
} else if (num >= 105) {
num = 7;
} else if (num >= 90) {
num = 6;
} else if (num >= 75) {
num = 5;
} else if (num >= 60) {
num = 4;
} else if (num >= 45) {
num = 3;
} else if (num >= 30) {
num = 2;
} else if (num >= 15) {
num = 1;
}
awards.gotoAndStop(num);
Symbol 2258 MovieClip Frame 2
play();
_root.rouleauSon.start();
Symbol 2258 MovieClip Frame 17
enable = true;
stop();
Symbol 2258 MovieClip Frame 18
_root.rouleauSon.start();
Symbol 2258 MovieClip Frame 35
_parent.play();
Symbol 2259 MovieClip Frame 1
stop();
Symbol 2259 MovieClip Frame 16
persogamescore.gotoAndPlay(2);
stop();
Symbol 2263 Button
on (press) {
if (this.onEnterFrame == null) {
if (tabUserPiecesNP.length > 5) {
if (decal < ((-tabUserPiecesNP.length) + 2)) {
decal = 0;
} else {
decal--;
}
var tempo = 0;
this.onEnterFrame = function () {
_root.getInstanceAtDepth(0)._y = _root.getInstanceAtDepth(0)._y + tempo;
_root.getInstanceAtDepth(1)._y = _root.getInstanceAtDepth(1)._y + tempo;
_root.getInstanceAtDepth(2)._y = _root.getInstanceAtDepth(2)._y + tempo;
_root.getInstanceAtDepth(3)._y = _root.getInstanceAtDepth(3)._y + tempo;
_root.getInstanceAtDepth(4)._y = _root.getInstanceAtDepth(4)._y + tempo;
tempo = tempo + 2;
if (tempo >= 8) {
_root.SetFigure();
this.onEnterFrame = null;
}
};
}
}
}
Symbol 2264 Button
on (press) {
if (this.onEnterFrame == null) {
if (tabUserPiecesNP.length > 5) {
if (decal > (tabUserPiecesNP.length - 2)) {
decal = 0;
} else {
decal++;
}
var tempo = 0;
this.onEnterFrame = function () {
_root.getInstanceAtDepth(0)._y = _root.getInstanceAtDepth(0)._y - tempo;
_root.getInstanceAtDepth(1)._y = _root.getInstanceAtDepth(1)._y - tempo;
_root.getInstanceAtDepth(2)._y = _root.getInstanceAtDepth(2)._y - tempo;
_root.getInstanceAtDepth(3)._y = _root.getInstanceAtDepth(3)._y - tempo;
_root.getInstanceAtDepth(4)._y = _root.getInstanceAtDepth(4)._y - tempo;
tempo = tempo + 2;
if (tempo >= 8) {
_root.SetFigure();
this.onEnterFrame = null;
}
};
}
}
}
Symbol 2279 MovieClip Frame 1
stop();
Symbol 2282 Button
on (release) {
_root.help.swapDepths(-166);
for (clip in _root) {
removeMovieClip(_root[clip]);
}
_root.gotoAndStop(7);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 2284 MovieClip Frame 44
play();
Symbol 2284 MovieClip Frame 52
stop();
fond.useHandCursor = false;
if (_root.currentframe < 9) {
fenetre.texteBouton = "Back";
} else {
fenetre.texteBouton = "Back to menuPause";
}
Symbol 2284 MovieClip Frame 53
stop();
Symbol 2290 Button
on (press) {
_root.musique.attachSound("story_sound");
_root.musique.setVolume(_root.volumeMusique);
gotoAndStop (5);
}
Symbol 2293 Button
on (release) {
for (clip in _root) {
removeMovieClip(_root[clip]);
}
_root.musique.attachSound("story_sound");
_root.musique.setVolume(_root.volumeMusique);
_root.gotoAndStop(4);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 2295 Button
on (release) {
for (clip in _root) {
removeMovieClip(_root[clip]);
}
_root.gotoAndStop(7);
_parent.gotoAndStop(1);
}
on (rollOver) {
_root.hover.start();
}
on (press) {
_root.clicks.start();
}
Symbol 2298 MovieClip Frame 1
stop();
Symbol 2298 MovieClip Frame 2
stop();
fond.useHandCursor = false;