Frame 6
stop();
Frame 8
Set("/:positioncarte", 760);
myDate1 = new Date();
jour1 = myDate1.getUTCDay();
heure1 = myDate1.getUTCHours();
minute1 = myDate1.getUTCMinutes();
seconde1 = myDate1.getUTCSeconds();
milliseconds1 = myDate1.getUTCMilliseconds();
Set("/:time1", (((((((jour1 * 24) + heure1) * 60) + minute1) * 60) + seconde1) * 1000) + milliseconds1);
trycount = "0";
GameCount = 0;
CountX = 0;
CountY = 0;
Liste = "abcdefghijklmn";
LongListe = 0;
while (LongListe < 8) {
RandomPosListe = Number(random(length(Liste))) + 1;
TypeListe = substring(Liste, RandomPosListe, 1);
Shuffle = (Shuffle + TypeListe) + TypeListe;
NewShuffleListe = (substring(Liste, 1, RandomPosListe - 1)) add (substring(Liste, RandomPosListe + 1, 99));
Liste = NewShuffleListe;
LongListe = LongListe + 1;
}
while (Number(CountX) < 4) {
while (Number(CountY) < 4) {
CurrentCount = Number(Number(CountX * 4) + Number(CountY)) + 1;
duplicateMovieClip ("/Card0", "Card" add CurrentCount, CurrentCount);
setProperty("/Card" add CurrentCount, _x , Number(CountX * 80) + 80);
setProperty("/Card" add CurrentCount, _y , Number(CountY * 80) + 50);
call("GetCard");
tellTarget ("/Card" add CurrentCount) {
MyCard = /:NewCard;
};
CountY = Number(CountY) + 1;
}
CountY = 0;
CountX = Number(CountX) + 1;
}
ClickCount = "0";
FirstClick = "";
stop();
Frame 9
RandomPos = Number(random(length(Shuffle))) + 1;
Type = substring(Shuffle, RandomPos, 1);
if (Type == "a") {
NewCard = 1;
}
if (Type == "b") {
NewCard = 2;
}
if (Type == "c") {
NewCard = 3;
}
if (Type == "d") {
NewCard = 4;
}
if (Type == "e") {
NewCard = 5;
}
if (Type == "f") {
NewCard = 6;
}
if (Type == "g") {
NewCard = 7;
}
if (Type == "h") {
NewCard = 8;
}
if (Type == "i") {
NewCard = 9;
}
if (Type == "j") {
NewCard = 10;
}
if (Type == "k") {
NewCard = 11;
}
if (Type == "l") {
NewCard = 12;
}
if (Type == "m") {
NewCard = 13;
}
if (Type == "n") {
NewCard = 14;
}
NewShuffle = (substring(Shuffle, 1, RandomPos - 1)) add (substring(Shuffle, RandomPos + 1, 99));
Shuffle = NewShuffle;
Frame 10
stop();
Frame 12
if (/:valson == 0) {
setProperty("/sans", _x , 730);
setProperty("/avec", _x , 870);
} else {
setProperty("/avec", _x , 730);
setProperty("/sans", _x , 870);
}
Frame 18
stop();
Symbol 10 MovieClip Frame 1
var total = _parent.getBytesTotal();
var encours = _parent.getBytesLoaded();
var pourcentage = Math.round((encours * 100) / total);
resultat = pourcentage add " %";
if (pourcentage > 99) {
gotoAndPlay (103);
} else {
play();
}
Symbol 10 MovieClip Frame 5
var total = _parent.getBytesTotal();
var encours = _parent.getBytesLoaded();
var pourcentage = Math.round((encours * 100) / total);
resultat = pourcentage add " %";
if (pourcentage > 5) {
play();
} else {
gotoAndPlay (5);
}
sonGlobal = new Sound();
sonGlobal.setVolume(0);
Symbol 10 MovieClip Frame 10
var total = _parent.getBytesTotal();
var encours = _parent.getBytesLoaded();
var pourcentage = Math.round((encours * 100) / total);
resultat = pourcentage add " %";
if (pourcentage > 10) {
play();
} else {
gotoAndPlay (10);
}
Symbol 10 MovieClip Frame 15
var total = _parent.getBytesTotal();
var encours = _parent.getBytesLoaded();
var pourcentage = Math.round((encours * 100) / total);
resultat = pourcentage add " %";
if (pourcentage > 15) {
play();
} else {
gotoAndPlay (15);
}
Symbol 10 MovieClip Frame 20
var total = _parent.getBytesTotal();
var encours = _parent.getBytesLoaded();
var pourcentage = Math.round((encours * 100) / total);
resultat = pourcentage add " %";
if (pourcentage > 20) {
play();
} else {
gotoAndPlay (20);
}
Symbol 10 MovieClip Frame 25
var total = _parent.getBytesTotal();
var encours = _parent.getBytesLoaded();
var pourcentage = Math.round((encours * 100) / total);
resultat = pourcentage add " %";
if (pourcentage > 25) {
play();
} else {
gotoAndPlay (25);
}
Symbol 10 MovieClip Frame 30
var total = _parent.getBytesTotal();
var encours = _parent.getBytesLoaded();
var pourcentage = Math.round((encours * 100) / total);
resultat = pourcentage add " %";
if (pourcentage > 30) {
play();
} else {
gotoAndPlay (30);
}
Symbol 10 MovieClip Frame 35
var total = _parent.getBytesTotal();
var encours = _parent.getBytesLoaded();
var pourcentage = Math.round((encours * 100) / total);
resultat = pourcentage add " %";
if (pourcentage > 35) {
play();
} else {
gotoAndPlay (35);
}
Symbol 10 MovieClip Frame 40
var total = _parent.getBytesTotal();
var encours = _parent.getBytesLoaded();
var pourcentage = Math.round((encours * 100) / total);
resultat = pourcentage add " %";
if (pourcentage > 40) {
play();
} else {
gotoAndPlay (40);
}
Symbol 10 MovieClip Frame 45
var total = _parent.getBytesTotal();
var encours = _parent.getBytesLoaded();
var pourcentage = Math.round((encours * 100) / total);
resultat = pourcentage add " %";
if (pourcentage > 45) {
play();
} else {
gotoAndPlay (45);
}
Symbol 10 MovieClip Frame 50
var total = _parent.getBytesTotal();
var encours = _parent.getBytesLoaded();
var pourcentage = Math.round((encours * 100) / total);
resultat = pourcentage add " %";
if (pourcentage > 50) {
play();
} else {
gotoAndPlay (50);
}
Symbol 10 MovieClip Frame 55
var total = _parent.getBytesTotal();
var encours = _parent.getBytesLoaded();
var pourcentage = Math.round((encours * 100) / total);
resultat = pourcentage add " %";
if (pourcentage > 55) {
play();
} else {
gotoAndPlay (55);
}
Symbol 10 MovieClip Frame 60
var total = _parent.getBytesTotal();
var encours = _parent.getBytesLoaded();
var pourcentage = Math.round((encours * 100) / total);
resultat = pourcentage add " %";
if (pourcentage > 60) {
play();
} else {
gotoAndPlay (60);
}
Symbol 10 MovieClip Frame 65
var total = _parent.getBytesTotal();
var encours = _parent.getBytesLoaded();
var pourcentage = Math.round((encours * 100) / total);
resultat = pourcentage add " %";
if (pourcentage > 65) {
play();
} else {
gotoAndPlay (65);
}
Symbol 10 MovieClip Frame 70
var total = _parent.getBytesTotal();
var encours = _parent.getBytesLoaded();
var pourcentage = Math.round((encours * 100) / total);
resultat = pourcentage add " %";
if (pourcentage > 70) {
play();
} else {
gotoAndPlay (70);
}
Symbol 10 MovieClip Frame 75
var total = _parent.getBytesTotal();
var encours = _parent.getBytesLoaded();
var pourcentage = Math.round((encours * 100) / total);
resultat = pourcentage add " %";
if (pourcentage > 75) {
play();
} else {
gotoAndPlay (75);
}
Symbol 10 MovieClip Frame 80
var total = _parent.getBytesTotal();
var encours = _parent.getBytesLoaded();
var pourcentage = Math.round((encours * 100) / total);
resultat = pourcentage add " %";
if (pourcentage > 80) {
play();
} else {
gotoAndPlay (80);
}
Symbol 10 MovieClip Frame 85
var total = _parent.getBytesTotal();
var encours = _parent.getBytesLoaded();
var pourcentage = Math.round((encours * 100) / total);
resultat = pourcentage add " %";
if (pourcentage > 85) {
play();
} else {
gotoAndPlay (85);
}
Symbol 10 MovieClip Frame 90
var total = _parent.getBytesTotal();
var encours = _parent.getBytesLoaded();
var pourcentage = Math.round((encours * 100) / total);
resultat = pourcentage add " %";
if (pourcentage > 90) {
play();
} else {
gotoAndPlay (90);
}
Symbol 10 MovieClip Frame 95
var total = _parent.getBytesTotal();
var encours = _parent.getBytesLoaded();
var pourcentage = Math.round((encours * 100) / total);
resultat = pourcentage add " %";
if (pourcentage > 95) {
play();
} else {
gotoAndPlay (95);
}
Symbol 10 MovieClip Frame 100
var total = _parent.getBytesTotal();
var encours = _parent.getBytesLoaded();
var pourcentage = Math.round((encours * 100) / total);
resultat = pourcentage add " %";
if (pourcentage > 99) {
play();
} else {
gotoAndPlay (99);
}
Symbol 10 MovieClip Frame 106
_parent.play();
Symbol 19 Button
on (release) {
CountX = 0;
CountY = 0;
while (Number(CountX) < 4) {
while (Number(CountY) < 4) {
CurrentCount = Number(Number(CountX * 4) + Number(CountY)) + 1;
duplicateMovieClip ("/Card0", "Card" add CurrentCount, CurrentCount);
setProperty("/Card" add CurrentCount, _x , -100);
setProperty("/Card" add CurrentCount, _y , -100);
call("GetCard");
tellTarget ("/Card" add CurrentCount) {
MyCard = /:NewCard;
};
CountY = Number(CountY) + 1;
}
CountY = 0;
CountX = Number(CountX) + 1;
}
gotoAndPlay (12);
}
Symbol 23 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 1
stop();
Symbol 32 Button
on (press) {
valeurde = getProperty(_target, _rotation);
if (Number(valeurde) != 10) {
pourquoi = 0;
if (Number(Faceup) == 1) {
} else {
Display = 0;
Set("/:trycount", Number(/:trycount) + 1);
Set("/:trymatch", /:trycount / 2);
if (Number(Faceup) != 1) {
if (Number(/:ClickCount) == 0) {
Display = 1;
Set("/:ClickCount", 1);
Set("/:FirstClick", _target);
} else if (Number(/:ClickCount) == 1) {
if (_target ne /:FirstClick) {
Set("/:SecondClick", _target);
Display = 1;
if (MyCard != eval (/:FirstClick add "/:MyCard")) {
Set("/:ClickCount", 2);
} else {
Set("/:ClickCount", 0);
Set(eval (/:FirstClick add "/:Faceup"), "1");
Set(eval (/:SecondClick add "/:Faceup"), "1");
pourquoi = 1;
tellTarget ("/sonpaire") {
gotoAndPlay (2);
};
Set("/:GameCount", Number(/:GameCount) + 1);
if (Number(/:GameCount) == 8) {
tellTarget ("/EOG") {
gotoAndPlay (2);
};
tellTarget ("/sonwin") {
gotoAndPlay (2);
};
}
}
}
} else {
Set("/:ClickCount", 0);
tellTarget (/:FirstClick) {
gotoAndStop (1);
};
tellTarget (/:SecondClick) {
gotoAndStop (1);
};
}
if (Number(Display) == 1) {
gotoAndStop(Number(MyCard) + 1);
}
}
}
}
}
on (release) {
if (pourquoi == 1) {
mainStopTime = getTimer() + 400;
while (getTimer() <= mainStopTime) {
}
setProperty(/:FirstClick, _alpha , 65);
setProperty(/:FirstClick, _rotation , 10);
setProperty(/:SecondClick, _alpha , 65);
setProperty(/:SecondClick, _rotation , 10);
pourquoi = 0;
}
}
Symbol 36 MovieClip Frame 11
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 65 Button
on (release) {
tellTarget ("/") {
CountX = 0;
CountY = 0;
while (Number(CountX) < 4) {
while (Number(CountY) < 4) {
CurrentCount = Number(Number(CountX * 4) + Number(CountY)) + 1;
duplicateMovieClip ("/Card0", "Card" add CurrentCount, CurrentCount);
setProperty("/Card" add CurrentCount, _x , -100);
setProperty("/Card" add CurrentCount, _y , -100);
call("GetCard");
tellTarget ("/Card" add CurrentCount) {
MyCard = /:NewCard;
};
CountY = Number(CountY) + 1;
}
CountY = 0;
CountX = Number(CountX) + 1;
}
gotoAndPlay (1);
};
gotoAndStop (1);
}
Symbol 70 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 2
Set("/:trycount", int(/:trycount));
myDate2 = new Date();
jour2 = myDate2.getUTCDay();
heure2 = myDate2.getUTCHours();
minute2 = myDate2.getUTCMinutes();
seconde2 = myDate2.getUTCSeconds();
milliseconds2 = myDate2.getUTCMilliseconds();
Set("/:time2", (((((((jour2 * 24) + heure2) * 60) + minute2) * 60) + seconde2) * 1000) + milliseconds2);
totalsec = (/:time2 - /:time1) / 1000;
mainStopTime2 = getTimer() + 500;
while (getTimer() <= mainStopTime2) {
}
Set("/:texte", ("Bravo, vous avez gagn\u00E9 en " + totalsec) + " s !");
hiscore = int((35 - totalsec) * 500) - int((/:trycount - 16) * 125);
if (hiscore <= 100) {
hiscore = 100;
}
Set("/:score", ("Votre habilit\u00E9 vous rapporte " + hiscore) + " points.");
Symbol 70 MovieClip Frame 7
stop();
Symbol 76 Button
on (release) {
getURL ("http://www.saispas.com/loftgame.exe", "_blank");
}
Symbol 81 MovieClip Frame 56
stop();
Symbol 85 MovieClip Frame 75
stop();
Symbol 88 Button
on (release) {
sonGlobal = new Sound();
sonGlobal.setVolume(0);
setProperty("/sans", _x , 730);
setProperty("/avec", _x , 870);
Set("/:valson", 0);
}
Symbol 90 Button
on (release) {
sonGlobal = new Sound();
sonGlobal.setVolume(50);
setProperty("/avec", _x , 730);
setProperty("/sans", _x , 870);
Set("/:valson", 50);
}