Frame 1
ifFrameLoaded (11) {
gotoAndPlay (5);
}
Frame 2
ifFrameLoaded (11) {
gotoAndPlay (5);
}
Frame 3
gotoAndPlay (2);
Frame 5
Count = 0;
played = 0;
DoneCount = 0;
exclamation = false;
Pairs = 6;
card1Type = "";
card2Type = "";
card1Name = "";
card2Name = "";
play();
Frame 11
stop();
instruction.play();
cardCounter = 0;
while (Number(cardCounter) < 12) {
cardCounter = Number(cardCounter) + 1;
Set("card" add cardCounter, false);
}
cardCounter = 0;
Row = 0;
Column = 0;
while (Number(cardCounter) < 12) {
cardCounter = Number(cardCounter) + 1;
if ((Number(cardCounter) >= 1) and (6 >= Number(cardCounter))) {
Row = 1;
Column = cardCounter;
} else if ((Number(cardCounter) >= 7) and (12 >= Number(cardCounter))) {
Row = 2;
Column = cardCounter - 6;
}
Done = false;
while (Number(Done) == Number(false)) {
Currentcard = Number(random(12)) + 1;
if (eval ("card" add Currentcard) == false) {
setProperty("card" add Currentcard, _x , Number((Column - 1) * 98.8) + 53);
setProperty("card" add Currentcard, _y , Number((Row - 1) * 133.9) + 71.5);
Done = true;
Set("card" add Currentcard, true);
} else {
Done = false;
}
}
}
Frame 21
_root.soundcontroler.gotoAndPlay("youdidit");
Frame 26
_root.text.gotoAndPlay("youdidit");
Frame 59
stop();
Symbol 20 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 10
stop();
Symbol 20 MovieClip Frame 19
gotoAndStop (1);
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 58
stop();
Symbol 35 MovieClip Frame 59
gotoAndPlay("oups" add (Number(random(2)) + 1));
Symbol 35 MovieClip Frame 60
stop();
Symbol 35 MovieClip Frame 111
stop();
Symbol 35 MovieClip Frame 171
stop();
Symbol 35 MovieClip Frame 229
stop();
Symbol 35 MovieClip Frame 243
stop();
Symbol 39 Button
on (release) {
if (Number(/:Count) < 2) {
play();
}
if (Number(/:played) == 0) {
_root.instruction.gotoAndPlay("off");
/:played++;
}
_root.soundcontroler.gotoAndPlay("clic");
}
Symbol 43 MovieClip Frame 1
stop();
cardType = "typeone";
Symbol 43 MovieClip Frame 2
Set("/:Count", Number(/:Count) + 1);
Set(("/:card" add /:Count) add "Type", cardType);
Set(("/:card" add /:Count) add "Name", _name);
Symbol 43 MovieClip Frame 20
if (Number(/:Count) == 2) {
if ((/:card1Type eq /:card2Type) and (/:exclamation == false)) {
_root.soundcontroler.gotoAndPlay("yeah");
Set("/:exclamation", true);
} else if (/:exclamation == false) {
_root.soundcontroler.gotoAndPlay("oups");
Set("/:exclamation", true);
} else {
play();
}
}
Symbol 43 MovieClip Frame 60
Set("/:DoneCount", Number(/:DoneCount) + 1);
Symbol 43 MovieClip Frame 61
stop();
if (Number(/:DoneCount) < 2) {
play();
} else {
stop();
if (Number(/:DoneCount) < 2) {
play();
} else {
Set("/:DoneCount", 0);
if (Number(/:Count) == 2) {
if (/:card1Type eq /:card2Type) {
Set("/:Pairs", /:Pairs - 1);
Set("/:exclamation", false);
if (Number(/:Pairs) == 0) {
tellTarget ("_root") {
gotoAndPlay ("Try Again");
};
}
} else {
tellTarget ("/" add /:card1Name) {
gotoAndPlay ("close");
};
tellTarget ("/" add /:card2Name) {
gotoAndPlay ("close");
};
Set("/:exclamation", false);
}
Set("/:Count", 0);
}
}
}
Symbol 43 MovieClip Frame 62
prevFrame();
Symbol 43 MovieClip Frame 63
play();
Symbol 43 MovieClip Frame 70
gotoAndStop (1);
Symbol 46 MovieClip Frame 1
stop();
cardType = "typetwo";
Symbol 46 MovieClip Frame 2
Set("/:Count", Number(/:Count) + 1);
Set(("/:card" add /:Count) add "Type", cardType);
Set(("/:card" add /:Count) add "Name", _name);
Symbol 46 MovieClip Frame 20
if (Number(/:Count) == 2) {
if ((/:card1Type eq /:card2Type) and (/:exclamation == false)) {
_root.soundcontroler.gotoAndPlay("yeah");
Set("/:exclamation", true);
} else if (/:exclamation == false) {
_root.soundcontroler.gotoAndPlay("oups");
Set("/:exclamation", true);
} else {
play();
}
}
Symbol 46 MovieClip Frame 60
Set("/:DoneCount", Number(/:DoneCount) + 1);
Symbol 46 MovieClip Frame 61
stop();
if (Number(/:DoneCount) < 2) {
play();
} else {
stop();
if (Number(/:DoneCount) < 2) {
play();
} else {
Set("/:DoneCount", 0);
if (Number(/:Count) == 2) {
if (/:card1Type eq /:card2Type) {
Set("/:Pairs", /:Pairs - 1);
Set("/:exclamation", false);
if (Number(/:Pairs) == 0) {
tellTarget ("_root") {
gotoAndPlay ("Try Again");
};
}
} else {
tellTarget ("/" add /:card1Name) {
gotoAndPlay ("close");
};
tellTarget ("/" add /:card2Name) {
gotoAndPlay ("close");
};
Set("/:exclamation", false);
}
Set("/:Count", 0);
}
}
}
Symbol 46 MovieClip Frame 62
prevFrame();
Symbol 46 MovieClip Frame 63
play();
Symbol 46 MovieClip Frame 70
gotoAndStop (1);
Symbol 49 MovieClip Frame 1
stop();
cardType = "typethree";
Symbol 49 MovieClip Frame 2
Set("/:Count", Number(/:Count) + 1);
Set(("/:card" add /:Count) add "Type", cardType);
Set(("/:card" add /:Count) add "Name", _name);
Symbol 49 MovieClip Frame 20
if (Number(/:Count) == 2) {
if ((/:card1Type eq /:card2Type) and (/:exclamation == false)) {
_root.soundcontroler.gotoAndPlay("yeah");
Set("/:exclamation", true);
} else if (/:exclamation == false) {
_root.soundcontroler.gotoAndPlay("oups");
Set("/:exclamation", true);
} else {
play();
}
}
Symbol 49 MovieClip Frame 60
Set("/:DoneCount", Number(/:DoneCount) + 1);
Symbol 49 MovieClip Frame 61
stop();
if (Number(/:DoneCount) < 2) {
play();
} else {
stop();
if (Number(/:DoneCount) < 2) {
play();
} else {
Set("/:DoneCount", 0);
if (Number(/:Count) == 2) {
if (/:card1Type eq /:card2Type) {
Set("/:Pairs", /:Pairs - 1);
Set("/:exclamation", false);
if (Number(/:Pairs) == 0) {
tellTarget ("_root") {
gotoAndPlay ("Try Again");
};
}
} else {
tellTarget ("/" add /:card1Name) {
gotoAndPlay ("close");
};
tellTarget ("/" add /:card2Name) {
gotoAndPlay ("close");
};
Set("/:exclamation", false);
}
Set("/:Count", 0);
}
}
}
Symbol 49 MovieClip Frame 62
prevFrame();
Symbol 49 MovieClip Frame 63
play();
Symbol 49 MovieClip Frame 70
gotoAndStop (1);
Symbol 52 MovieClip Frame 1
stop();
cardType = "typefour";
Symbol 52 MovieClip Frame 2
Set("/:Count", Number(/:Count) + 1);
Set(("/:card" add /:Count) add "Type", cardType);
Set(("/:card" add /:Count) add "Name", _name);
Symbol 52 MovieClip Frame 20
if (Number(/:Count) == 2) {
if ((/:card1Type eq /:card2Type) and (/:exclamation == false)) {
_root.soundcontroler.gotoAndPlay("yeah");
Set("/:exclamation", true);
} else if (/:exclamation == false) {
_root.soundcontroler.gotoAndPlay("oups");
Set("/:exclamation", true);
} else {
play();
}
}
Symbol 52 MovieClip Frame 60
Set("/:DoneCount", Number(/:DoneCount) + 1);
Symbol 52 MovieClip Frame 61
stop();
if (Number(/:DoneCount) < 2) {
play();
} else {
stop();
if (Number(/:DoneCount) < 2) {
play();
} else {
Set("/:DoneCount", 0);
if (Number(/:Count) == 2) {
if (/:card1Type eq /:card2Type) {
Set("/:Pairs", /:Pairs - 1);
Set("/:exclamation", false);
if (Number(/:Pairs) == 0) {
tellTarget ("_root") {
gotoAndPlay ("Try Again");
};
}
} else {
tellTarget ("/" add /:card1Name) {
gotoAndPlay ("close");
};
tellTarget ("/" add /:card2Name) {
gotoAndPlay ("close");
};
Set("/:exclamation", false);
}
Set("/:Count", 0);
}
}
}
Symbol 52 MovieClip Frame 62
prevFrame();
Symbol 52 MovieClip Frame 63
play();
Symbol 52 MovieClip Frame 70
gotoAndStop (1);
Symbol 55 MovieClip Frame 1
stop();
cardType = "typefive";
Symbol 55 MovieClip Frame 2
Set("/:Count", Number(/:Count) + 1);
Set(("/:card" add /:Count) add "Type", cardType);
Set(("/:card" add /:Count) add "Name", _name);
Symbol 55 MovieClip Frame 20
if (Number(/:Count) == 2) {
if ((/:card1Type eq /:card2Type) and (/:exclamation == false)) {
_root.soundcontroler.gotoAndPlay("yeah");
Set("/:exclamation", true);
} else if (/:exclamation == false) {
_root.soundcontroler.gotoAndPlay("oups");
Set("/:exclamation", true);
} else {
play();
}
}
Symbol 55 MovieClip Frame 60
Set("/:DoneCount", Number(/:DoneCount) + 1);
Symbol 55 MovieClip Frame 61
stop();
if (Number(/:DoneCount) < 2) {
play();
} else {
stop();
if (Number(/:DoneCount) < 2) {
play();
} else {
Set("/:DoneCount", 0);
if (Number(/:Count) == 2) {
if (/:card1Type eq /:card2Type) {
Set("/:Pairs", /:Pairs - 1);
Set("/:exclamation", false);
if (Number(/:Pairs) == 0) {
tellTarget ("_root") {
gotoAndPlay ("Try Again");
};
}
} else {
tellTarget ("/" add /:card1Name) {
gotoAndPlay ("close");
};
tellTarget ("/" add /:card2Name) {
gotoAndPlay ("close");
};
Set("/:exclamation", false);
}
Set("/:Count", 0);
}
}
}
Symbol 55 MovieClip Frame 62
prevFrame();
Symbol 55 MovieClip Frame 63
play();
Symbol 55 MovieClip Frame 70
gotoAndStop (1);
Symbol 58 MovieClip Frame 1
stop();
cardType = "typesix";
Symbol 58 MovieClip Frame 2
Set("/:Count", Number(/:Count) + 1);
Set(("/:card" add /:Count) add "Type", cardType);
Set(("/:card" add /:Count) add "Name", _name);
Symbol 58 MovieClip Frame 20
if (Number(/:Count) == 2) {
if ((/:card1Type eq /:card2Type) and (/:exclamation == false)) {
_root.soundcontroler.gotoAndPlay("yeah");
Set("/:exclamation", true);
} else if (/:exclamation == false) {
_root.soundcontroler.gotoAndPlay("oups");
Set("/:exclamation", true);
} else {
play();
}
}
Symbol 58 MovieClip Frame 60
Set("/:DoneCount", Number(/:DoneCount) + 1);
Symbol 58 MovieClip Frame 61
stop();
if (Number(/:DoneCount) < 2) {
play();
} else {
stop();
if (Number(/:DoneCount) < 2) {
play();
} else {
Set("/:DoneCount", 0);
if (Number(/:Count) == 2) {
if (/:card1Type eq /:card2Type) {
Set("/:Pairs", /:Pairs - 1);
Set("/:exclamation", false);
if (Number(/:Pairs) == 0) {
tellTarget ("_root") {
gotoAndPlay ("Try Again");
};
}
} else {
tellTarget ("/" add /:card1Name) {
gotoAndPlay ("close");
};
tellTarget ("/" add /:card2Name) {
gotoAndPlay ("close");
};
Set("/:exclamation", false);
}
Set("/:Count", 0);
}
}
}
Symbol 58 MovieClip Frame 62
prevFrame();
Symbol 58 MovieClip Frame 63
play();
Symbol 58 MovieClip Frame 70
gotoAndStop (1);
Symbol 62 Button
on (release) {
tellTarget ("card1") {
gotoAndPlay ("close");
};
tellTarget ("card2") {
gotoAndPlay ("close");
};
tellTarget ("card3") {
gotoAndPlay ("close");
};
tellTarget ("card4") {
gotoAndPlay ("close");
};
tellTarget ("card5") {
gotoAndPlay ("close");
};
tellTarget ("card6") {
gotoAndPlay ("close");
};
tellTarget ("card7") {
gotoAndPlay ("close");
};
tellTarget ("card8") {
gotoAndPlay ("close");
};
tellTarget ("card9") {
gotoAndPlay ("close");
};
tellTarget ("card10") {
gotoAndPlay ("close");
};
tellTarget ("card11") {
gotoAndPlay ("close");
};
tellTarget ("card12") {
gotoAndPlay ("close");
};
call("initialize");
gotoAndStop (11);
}
on (release) {
tellTarget ("text") {
gotoAndPlay ("youdidit_end");
};
}