Frame 1
total = Math.round(getBytesTotal() / 1024);
Frame 2
loadtext = ("Loading " add total) add " Kb";
Frame 19
var loadAmount = _totalframes;
if (_framesloaded == loadAmount) {
stop();
gotoAndStop (21);
} else {
loaded = Math.round(getBytesLoaded() / 1024);
total = Math.round(getBytesTotal() / 1024);
gotoAndPlay (2);
}
Frame 20
nextFrame();
Frame 21
stop();
Frame 22
_root.done = false;
if (_root.level == 1) {
counter = 60;
}
if (_root.level == 2) {
counter = 50;
}
if (_root.level == 3) {
counter = 40;
}
if (_root.level == 4) {
counter = 30;
}
if (_root.level == 5) {
counter = 20;
}
if (_root.level == 6) {
counter = 10;
}
if (_root.level == 7) {
counter = 5;
}
timer = counter;
_root.correct = 0;
level = _root.level;
Set("/:player", _root.player);
Frame 23
trycount = "0";
GameCount = 0;
CountX = 0;
CountY = 0;
Shuffle = "1122334455667788";
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 * 70) + 225);
setProperty("/Card" add CurrentCount, _y , Number(CountY * 70) + 150);
call("GetCard");
tellTarget ("/Card" add CurrentCount) {
MyCard = /:NewCard;
};
trace((((CountY add " ") add CountX) add " ") add CurrentCount);
CountY = Number(CountY) + 1;
trace((("Card " add CurrentCount) add " is number ") add MyCard);
}
CountY = 0;
CountX = Number(CountX) + 1;
}
ClickCount = "0";
FirstClick = "";
stop();
Frame 24
timer = counter;
_root.correct = 0;
Set("/:player", _root.player);
RandomPos = Number(random(length(Shuffle))) + 1;
NewCard = 0 + Number(substring(Shuffle, RandomPos, 1));
NewShuffle = (substring(Shuffle, 1, RandomPos - 1)) add (substring(Shuffle, RandomPos + 1, 99));
Shuffle = NewShuffle;
play();
Frame 25
_root.level = _root.level + 1;
gotoAndPlay (22);
Frame 26
stop();
if ((_root.level == 1) and (score >= 6)) {
tellTarget ("/rank") {
gotoAndStop (2);
};
tellTarget ("/image") {
gotoAndStop (1);
};
}
if ((_root.level == 1) and (score < 6)) {
tellTarget ("/rank") {
gotoAndStop (1);
};
tellTarget ("/image") {
gotoAndStop (1);
};
}
if (_root.level == 2) {
tellTarget ("/rank") {
gotoAndStop (2);
};
tellTarget ("/image") {
gotoAndStop (2);
};
}
if ((_root.level == 2) and (10 < score)) {
tellTarget ("/rank") {
gotoAndStop (3);
};
tellTarget ("/image") {
gotoAndStop (3);
};
}
if (_root.level == 3) {
tellTarget ("/rank") {
gotoAndStop (4);
};
tellTarget ("/image") {
gotoAndStop (4);
};
}
if (_root.level >= 3) {
tellTarget ("/rank") {
gotoAndStop (5);
};
tellTarget ("/image") {
gotoAndStop (5);
};
}
level = _root.level;
Symbol 15 Button
on (release) {
gotoAndPlay (2);
}
Symbol 18 Button
on (release) {
gotoAndPlay (1);
}
Symbol 20 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 2
stop();
Symbol 29 Button
on (release) {
tellTarget ("info") {
gotoAndPlay (2);
};
}
Symbol 37 MovieClip Frame 5
stop();
Symbol 48 Button
on (release) {
gotoAndPlay (22);
_root.level = 1;
_root.player = name;
}
Symbol 53 Button
on (release) {
gotoAndPlay (16);
}
Symbol 54 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 10
stop();
Symbol 54 MovieClip Frame 19
stop();
Symbol 63 MovieClip Frame 15
if (../:counter == 0) {
tellTarget ("../") {
trycount = "0";
GameCount = 0;
CountX = 0;
CountY = 0;
while (Number(CountX) < 4) {
while (Number(CountY) < 4) {
CurrentCount = Number(Number(CountX * 4) + Number(CountY)) + 1;
removeMovieClip("Card" add CurrentCount);
trace((((CountY add " ") add CountX) add " ") add CurrentCount);
CountY = Number(CountY) + 1;
}
CountY = 0;
CountX = Number(CountX) + 1;
}
ClickCount = "0";
FirstClick = "";
gotoAndPlay ("end");
};
} else {
Set("../:timer", ../:counter);
Set("../:counter", int(../:counter) - 1);
gotoAndPlay (1);
}
Symbol 67 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 26
stop();
Symbol 67 MovieClip Frame 51
stop();
Symbol 67 MovieClip Frame 76
tellTarget ("../") {
gotoAndPlay ("GetCard");
};
stop();
Symbol 69 Button
on (release) {
getURL ("http://www.matmi.com", "_parent");
}
Symbol 70 Button
on (release) {
getURL ("www.monstermafia.com", "_parent");
}
Symbol 71 Button
on (release) {
tellTarget ("../") {
trycount = "0";
GameCount = 0;
CountX = 0;
CountY = 0;
while (Number(CountX) < 4) {
while (Number(CountY) < 4) {
CurrentCount = Number(Number(CountX * 4) + Number(CountY)) + 1;
removeMovieClip("Card" add CurrentCount);
trace((((CountY add " ") add CountX) add " ") add CurrentCount);
CountY = Number(CountY) + 1;
}
CountY = 0;
CountX = Number(CountX) + 1;
}
ClickCount = "0";
FirstClick = "";
};
gotoAndPlay (1);
}
Symbol 72 Button
on (release) {
tellTarget ("info") {
gotoAndPlay (2);
};
}
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 10
stop();
Symbol 73 MovieClip Frame 19
stop();
Symbol 75 MovieClip Frame 1
if (1 < /:cardnum) {
gotoAndStop(/:cardnum);
}
stop();
Symbol 76 Button
on (release) {
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) {
Display = 1;
if (MyCard != eval (/:FirstClick add "/:MyCard")) {
Set("/:SecondClick", _target);
Set("/:ClickCount", 2);
tellTarget ("../tryagain") {
gotoAndPlay (2);
};
Set("../:score", ../:score - 1);
_root.score = int(_root.score) - 1;
} else {
Set("/:ClickCount", 0);
FaceUp = 1;
Set(eval (/:FirstClick add "/:Faceup"), "1");
Set("/:GameCount", Number(/:GameCount) + 1);
tellTarget ("../tryagain") {
gotoAndPlay (27);
};
Set("../:score", ../:score + 2);
_root.score = ../:score;
if (Number(/:GameCount) == 8) {
tellTarget ("../tryagain") {
gotoAndPlay (52);
};
}
}
}
} else {
Set("/:ClickCount", 0);
tellTarget (/:FirstClick) {
gotoAndStop (1);
};
tellTarget (/:SecondClick) {
gotoAndStop (1);
};
}
if (Number(Display) == 1) {
gotoAndStop(Number(MyCard) + 1);
}
}
}
Symbol 78 MovieClip Frame 10
stop();
Symbol 80 MovieClip Frame 10
stop();
Symbol 82 MovieClip Frame 10
stop();
Symbol 84 MovieClip Frame 10
stop();
Symbol 86 MovieClip Frame 10
stop();
Symbol 88 MovieClip Frame 10
stop();
Symbol 89 MovieClip Frame 10
stop();
Symbol 91 MovieClip Frame 10
stop();
Symbol 92 MovieClip Frame 1
stop();
Instance of Symbol 75 MovieClip in Symbol 92 MovieClip Frame 1
onClipEvent (load) {
Set("../:correct", 1);
}
Symbol 106 MovieClip Frame 10
if (random(100) < 15) {
gotoAndPlay (36);
} else {
gotoAndPlay (1);
}
Symbol 113 Button
on (release) {
score = 0;
_root.score = 0;
gotoAndPlay (1);
}
Symbol 115 Button
on (release) {
getURL ("http://www.matmi.com", "_blank");
}
Symbol 116 Button
on (release) {
getURL ("http://www.monstermafia.com", "_parent");
}
Symbol 117 Button
on (release) {
gotoAndPlay (1);
}
Symbol 118 Button
on (release) {
tellTarget ("info") {
gotoAndPlay (2);
};
}
Symbol 119 Button
on (release) {
getURL ("http://www.monstermafia.com/signup/request_details.asp", "_blank");
}