Frame 1
stop();
Instance of Symbol 44 MovieClip in Frame 1
onClipEvent (load) {
this.swapDepths(15000);
}
Instance of Symbol 74 MovieClip "preLoadClip" in Frame 1
onClipEvent (load) {
this.swapDepths(35555);
}
Instance of Symbol 77 MovieClip in Frame 1
onClipEvent (load) {
this.swapDepths(60000);
}
Frame 2
fscommand ("showmenu", false);
_root.slidemusic_X = 0;
_root.slidesound_X = 0;
countmain = 0;
countsound = 0;
activate = 0;
flag = new Array();
stopAllSounds();
gotoAndPlay (5);
Frame 5
function cardsCompare() {
cornertile();
oneObject = one;
twoObject = two;
if (oneObject._currentframe == twoObject._currentframe) {
one = null;
two = null;
clearMe = setInterval(FadeMe, 10, oneObject, twoObject);
count = count + 50;
balanceCards = balanceCards - 2;
if ((balanceCards == 0) && (timer._x < 450)) {
levelNumber = 1;
timeRemaining = 450 - Math.round(timer._x);
count = count + ((250 * levelNumber) + timeRemaining);
}
timer._x = timer._x - 7;
if (timer._x <= 290) {
timer._x = 293;
}
if (balanceCards == 0) {
_root.gotoAndStop(3);
}
} else {
_root.snd3.wrongObj.start(0, 1);
oneObject.highLight.gotoAndPlay(3);
twoObject.highLight.gotoAndPlay(3);
one = null;
two = null;
}
}
function FadeMe(oneObj, twoObj) {
if (oneObj._alpha > 0) {
oneObj._alpha = oneObj._alpha - decrement;
twoObj._alpha = twoObj._alpha - decrement;
} else {
_root.snd2.correctObj.start(0, 1);
trace("---------------");
trace("removed ");
trace("---------------");
removeMovieClip(oneObj);
removeMovieClip(twoObj);
cornertile();
clearInterval(clearMe);
}
}
_root.snd1.musicObj.start(0, 10000);
var one = null;
var two = null;
count = 0;
_root.dbInterface.updateScore(_root.count);
maxCards = 72;
levelNumber = 1;
balanceCards = maxCards;
yAdjust = 6.4;
i = 1;
while (i <= 3) {
this["cornertile" + i] = 0;
i++;
}
cornertile1 = 1;
cornertile6 = 1;
cornertile7 = 1;
cornertile11 = 1;
cornertile12 = 1;
cornertile15 = 1;
cornertile16 = 1;
cornertile20 = 1;
cornertile21 = 1;
cornertile24 = 1;
cornertile25 = 1;
cornertile30 = 1;
cornertile31 = 1;
cornertile34 = 1;
cornertile35 = 1;
cornertile37 = 1;
cornertile38 = 1;
cornertile42 = 1;
cornertile43 = 1;
cornertile45 = 1;
cornertile46 = 1;
cornertile49 = 1;
cornertile50 = 1;
cornertile52 = 1;
cornertile53 = 1;
cornertile55 = 1;
cornertile56 = 1;
cornertile57 = 1;
cornertile58 = 1;
cornertile60 = 1;
cornertile61 = 1;
cornertile62 = 1;
cornertile63 = 1;
cornertile64 = 1;
cornertile65 = 1;
cornertile66 = 1;
cornertile68 = 1;
cornertile69 = 1;
cornertile70 = 1;
cornertile71 = 1;
cornertile72 = 1;
decrement = 10;
Frame 7
function cardCreator() {
i = 1;
while (i <= (maxCards / 2)) {
duplicateMovieClip (card, "card" + i, i);
ran = random(18) + 2;
this["card" + i].gotoAndStop(ran);
i++;
}
i = (maxCards / 2) + 1;
while (i <= maxCards) {
duplicateMovieClip (card, "card" + i, i);
this["card" + i].gotoAndStop(this["card" + (i - (maxCards / 2))]._currentframe);
i++;
}
i = 1;
while (i <= maxCards) {
if (i <= 6) {
this["card" + i]._x = 120 + ((i - 1) * 30);
this["card" + i]._y = 250 - yAdjust;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 7) && (i <= 11)) {
this["card" + i]._x = 120 + ((i - 7) * 30);
this["card" + i]._y = 198.8;
this["card" + i].swapDepths(10600 + i);
}
if ((i >= 12) && (i <= 15)) {
this["card" + i]._x = 120 + ((i - 12) * 30);
this["card" + i]._y = 154;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 16) && (i <= 20)) {
this["card" + i]._x = 150 + ((i - 16) * 30);
this["card" + i]._y = 288.4;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 21) && (i <= 24)) {
this["card" + i]._x = 180 + ((i - 21) * 30);
this["card" + i]._y = 332.6;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 25) && (i <= 30)) {
this["card" + i]._x = 118 + ((i - 25) * 30);
this["card" + i]._y = 240.6;
this["card" + i].swapDepths(12000 + i);
}
if ((i >= 31) && (i <= 34)) {
this["card" + i]._x = 118 + ((i - 31) * 30);
this["card" + i]._y = 196;
this["card" + i].swapDepths(11500 + i);
}
if ((i >= 35) && (i <= 37)) {
this["card" + i]._x = 120 + ((i - 35) * 30);
this["card" + i]._y = 151.5;
this["card" + i].swapDepths(11200 + i);
}
if ((i >= 38) && (i <= 42)) {
this["card" + i]._x = 148 + ((i - 38) * 30);
this["card" + i]._y = 284.6;
this["card" + i].swapDepths(12000 + i);
}
if ((i >= 43) && (i <= 45)) {
this["card" + i]._x = 208 + ((i - 43) * 30);
this["card" + i]._y = 328.5;
this["card" + i].swapDepths(12000 + i);
}
if ((i >= 46) && (i <= 49)) {
this["card" + i]._x = 142 + ((i - 46) * 30);
this["card" + i]._y = 242 - yAdjust;
this["card" + i].swapDepths(13000 + i);
}
if ((i >= 50) && (i <= 52)) {
this["card" + i]._x = 142 + ((i - 50) * 30);
this["card" + i]._y = 191.3;
this["card" + i].swapDepths(12800 + i);
}
if ((i >= 53) && (i <= 55)) {
this["card" + i]._x = 170 + ((i - 53) * 30);
this["card" + i]._y = 280;
this["card" + i].swapDepths(17000 + i);
}
if (i == 56) {
this["card" + i]._x = 80;
this["card" + i]._y = 200;
this["card" + i].swapDepths(10000 + i);
}
if (i == 57) {
this["card" + i]._x = 40;
this["card" + i]._y = 150;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 58) && (i <= 60)) {
this["card" + i]._x = 10 + ((i - 58) * 30);
this["card" + i]._y = 250;
this["card" + i].swapDepths(11000 + i);
}
if (i == 61) {
this["card" + i]._x = 2;
this["card" + i]._y = 245;
this["card" + i].swapDepths(11000 + i);
}
if (i == 62) {
this["card" + i]._x = 90;
this["card" + i]._y = 330;
this["card" + i].swapDepths(10000 + i);
}
if (i == 63) {
this["card" + i]._x = 55;
this["card" + i]._y = 370;
this["card" + i].swapDepths(11000 + i);
}
if (i == 64) {
this["card" + i]._x = 310;
this["card" + i]._y = 200;
this["card" + i].swapDepths(10000 + i);
}
if (i == 65) {
this["card" + i]._x = 340;
this["card" + i]._y = 150;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 66) && (i <= 68)) {
this["card" + i]._x = 330 + ((i - 66) * 30);
this["card" + i]._y = 250;
this["card" + i].swapDepths(11000 + i);
}
if (i == 69) {
this["card" + i]._x = 387;
this["card" + i]._y = 246;
this["card" + i].swapDepths(12500 + i);
}
if (i == 70) {
this["card" + i]._x = 340;
this["card" + i]._y = 340;
this["card" + i].swapDepths(10000 + i);
}
if (i == 71) {
this["card" + i]._x = 384;
this["card" + i]._y = 380;
this["card" + i].swapDepths(11000 + i);
}
if (i == 72) {
this["card" + i]._x = 380;
this["card" + i]._y = 375;
this["card" + i].swapDepths(14000 + i);
}
i++;
}
}
function cornertile() {
i = 1;
while (i <= maxCards) {
if (i <= 5) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 8) && (i <= 10)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 13) && (i <= 14)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 17) && (i <= 19)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 22) && (i <= 23)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 26) && (i <= 29)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 32) && (i <= 33)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if (i == 36) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 39) && (i <= 41)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if (i == 44) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 47) && (i <= 48)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if (i == 51) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if (i == 54) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if (i == 59) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if (i == 67) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
i++;
}
}
function shuffleCard() {
tileCurrentFrame = new Array();
i = 1;
while (i <= maxCards) {
flag[i] = 0;
i++;
}
i = 1;
while (i <= maxCards) {
tileCurrentFrame[i] = this["card" + i]._currentframe;
i++;
}
cardsRemoved = 0;
j = 1;
while (j <= maxCards) {
if (this["card" + j]._currentframe != undefined) {
swapRandom = undefined;
while (tileCurrentFrame[swapRandom] == undefined) {
swapRandom = Randomgenerator();
if (tileCurrentFrame[swapRandom] != undefined) {
this["card" + j].gotoAndStop(tileCurrentFrame[swapRandom]);
}
}
} else {
cardsRemoved++;
}
j++;
}
if (((maxCards - cardsRemoved) == 4) || ((maxCards - cardsRemoved) < 4)) {
trace(cardsRemoved);
cardReposition();
}
}
function cardReposition() {
trace("inside card position");
var _local3 = 0;
i = 1;
while (i <= maxCards) {
if (this["card" + i]._currentframe != undefined) {
this["card" + i]._x = 120 + (_local3 * 60);
this["card" + i]._y = 250 - yAdjust;
this["card" + i].swapDepths(1000 + _local3);
_root["cornertile" + i] = 1;
_local3++;
trace("cardReposition");
}
i++;
}
}
function Randomgenerator() {
ran = random(maxCards) + 1;
if (flag[ran] == 0) {
flag[ran] = 1;
return(ran);
}
i = 1;
while (i <= maxCards) {
if (flag[i] == 0) {
flag[i] = 1;
return(i);
}
i++;
}
}
stop();
cardCreator();
cornertile();
var cardsRemoved = 0;
Instance of Symbol 92 MovieClip "timer" in Frame 7
onClipEvent (load) {
once = 0;
temptimerX = this._x;
trace("temptimerX = " + temptimerX);
}
onClipEvent (enterFrame) {
if (_root.options != 0) {
this._x = this._x + 0.05;
temptimerX = this._x;
if ((this._x >= 450) && (once == 0)) {
i = 1;
while (i <= _parent.maxCards) {
removeMovieClip(_parent["card" + i]);
i++;
}
once = 1;
_root.gotoAndStop(92);
}
}
}
Frame 14
function Randomgenerator() {
ran = random(maxCards) + 1;
if (flag[ran] == 0) {
flag[ran] = 1;
return(ran);
}
i = 1;
while (i <= maxCards) {
if (flag[i] == 0) {
flag[i] = 1;
return(i);
}
i++;
}
}
flag = new Array();
gotoAndStop (20);
Frame 15
options_bt._visible = false;
Frame 17
function cardsCompare() {
cornertile();
oneObject = one;
twoObject = two;
if (oneObject._currentframe == twoObject._currentframe) {
one = null;
two = null;
clearMe = setInterval(FadeMe, 10, oneObject, twoObject);
count = count + 100;
_root.dbInterface.updateScore(_root.count);
balanceCards = balanceCards - 2;
if ((balanceCards == 0) && (timer._x < 450)) {
levelNumber = 2;
timeRemaining = 450 - Math.round(timer._x);
count = count + ((250 * levelNumber) + timeRemaining);
_root.dbInterface.updateScore(_root.count);
}
timer._x = timer._x - 7;
if (timer._x <= 290) {
timer._x = 293;
}
if (balanceCards == 0) {
_root.gotoAndStop(15);
}
} else {
_root.snd3.wrongObj.start(0, 1);
oneObject.highLight.gotoAndPlay(3);
twoObject.highLight.gotoAndPlay(3);
one = null;
two = null;
}
}
function FadeMe(oneObj, twoObj) {
trace(oneObj._alpha);
if (oneObj._alpha > 0) {
oneObj._alpha = oneObj._alpha - decrement;
twoObj._alpha = twoObj._alpha - decrement;
} else {
_root.snd2.correctObj.start(0, 1);
trace("---------------");
trace("removed ");
trace("---------------");
removeMovieClip(oneObj);
removeMovieClip(twoObj);
cornertile();
clearInterval(clearMe);
}
}
var one = null;
var two = null;
maxCards = 122;
levelNumber = 2;
balanceCards = maxCards;
yAdjust = 6.4;
i = 1;
while (i <= 3) {
this["cornertile" + i] = 0;
i++;
}
cornertile1 = 1;
cornertile16 = 1;
cornertile17 = 1;
cornertile32 = 1;
cornertile33 = 1;
cornertile48 = 1;
cornertile49 = 1;
cornertile58 = 1;
cornertile59 = 1;
cornertile64 = 1;
cornertile65 = 1;
cornertile67 = 1;
cornertile68 = 1;
cornertile70 = 1;
cornertile71 = 1;
cornertile78 = 1;
cornertile79 = 1;
cornertile90 = 1;
cornertile91 = 1;
cornertile104 = 1;
cornertile105 = 1;
cornertile108 = 1;
cornertile109 = 1;
cornertile114 = 1;
cornertile115 = 1;
cornertile122 = 1;
decrement = 10;
Frame 20
function cardCreator() {
i = 1;
while (i <= (maxCards / 2)) {
duplicateMovieClip (card, "card" + i, i);
ran = random(18) + 2;
this["card" + i].gotoAndStop(ran);
i++;
}
i = (maxCards / 2) + 1;
while (i <= maxCards) {
duplicateMovieClip (card, "card" + i, i);
this["card" + i].gotoAndStop(this["card" + (i - (maxCards / 2))]._currentframe);
i++;
}
i = 1;
while (i <= maxCards) {
if (i <= 16) {
this["card" + i]._x = -30 + ((i - 1) * 30);
this["card" + i]._y = 350 - yAdjust;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 17) && (i <= 32)) {
this["card" + i]._x = -30 + ((i - 17) * 30);
this["card" + i]._y = 298;
this["card" + i].swapDepths(9500 + i);
}
if ((i >= 33) && (i <= 48)) {
this["card" + i]._x = -30 + ((i - 33) * 30);
this["card" + i]._y = 253;
this["card" + i].swapDepths(9000 + i);
}
if ((i >= 49) && (i <= 58)) {
this["card" + i]._x = 60 + ((i - 49) * 30);
this["card" + i]._y = 208;
this["card" + i].swapDepths(8500 + i);
}
if ((i >= 59) && (i <= 64)) {
this["card" + i]._x = 120 + ((i - 59) * 30);
this["card" + i]._y = 164;
this["card" + i].swapDepths(8000 + i);
}
if ((i >= 65) && (i <= 67)) {
this["card" + i]._x = 30 + ((i - 65) * 30);
this["card" + i]._y = 388;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 68) && (i <= 70)) {
this["card" + i]._x = 300 + ((i - 68) * 30);
this["card" + i]._y = 388;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 71) && (i <= 78)) {
this["card" + i]._x = 86 + ((i - 71) * 30);
this["card" + i]._y = 202;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 79) && (i <= 90)) {
this["card" + i]._x = 24 + ((i - 79) * 30);
this["card" + i]._y = 247;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 91) && (i <= 104)) {
this["card" + i]._x = -5 + ((i - 91) * 30);
this["card" + i]._y = 292;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 105) && (i <= 108)) {
this["card" + i]._x = 140 + ((i - 105) * 30);
this["card" + i]._y = 196;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 109) && (i <= 114)) {
this["card" + i]._x = 110 + ((i - 109) * 30);
this["card" + i]._y = 241;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 115) && (i <= 122)) {
this["card" + i]._x = 80 + ((i - 115) * 30);
this["card" + i]._y = 286;
this["card" + i].swapDepths(11000 + i);
}
i++;
}
}
function cornertile() {
i = 1;
while (i <= maxCards) {
if (i <= 15) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 18) && (i <= 31)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 34) && (i <= 47)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 50) && (i <= 57)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 60) && (i <= 63)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if (i == 66) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if (i == 69) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 72) && (i <= 77)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 80) && (i <= 89)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 92) && (i <= 103)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 106) && (i <= 107)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 110) && (i <= 113)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 116) && (i <= 121)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
i++;
}
}
options_bt._visible = true;
stop();
cardCreator();
cornertile();
Instance of Symbol 158 MovieClip "timer" in Frame 20
onClipEvent (load) {
once = 0;
}
onClipEvent (enterFrame) {
if (_root.options != 0) {
this._x = this._x + 0.05;
if ((this._x >= 450) && (once == 0)) {
i = 1;
while (i <= _parent.maxCards) {
removeMovieClip(_parent["card" + i]);
i++;
}
once = 1;
_root.gotoAndStop(92);
}
}
}
Frame 26
function Randomgenerator() {
ran = random(maxCards) + 1;
if (flag[ran] == 0) {
flag[ran] = 1;
return(ran);
}
i = 1;
while (i <= maxCards) {
if (flag[i] == 0) {
flag[i] = 1;
return(i);
}
i++;
}
}
flag = new Array();
gotoAndStop (32);
Frame 27
options_bt._visible = false;
Frame 29
function cardsCompare() {
cornertile();
oneObject = one;
twoObject = two;
if (oneObject._currentframe == twoObject._currentframe) {
one = null;
two = null;
clearMe = setInterval(FadeMe, 10, oneObject, twoObject);
count = count + 150;
_root.dbInterface.updateScore(_root.count);
balanceCards = balanceCards - 2;
if ((balanceCards == 0) && (timer._x < 450)) {
levelNumber = 3;
timeRemaining = 450 - Math.round(timer._x);
count = count + ((250 * levelNumber) + timeRemaining);
_root.dbInterface.updateScore(_root.count);
}
cornertile();
timer._x = timer._x - 7;
if (timer._x <= 290) {
timer._x = 293;
}
if (balanceCards == 0) {
_root.gotoAndStop(27);
}
} else {
_root.snd3.wrongObj.start(0, 1);
oneObject.highLight.gotoAndPlay(3);
twoObject.highLight.gotoAndPlay(3);
one = null;
two = null;
}
}
function FadeMe(oneObj, twoObj) {
trace(oneObj._alpha);
if (oneObj._alpha > 0) {
oneObj._alpha = oneObj._alpha - decrement;
twoObj._alpha = twoObj._alpha - decrement;
} else {
_root.snd2.correctObj.start(0, 1);
trace("---------------");
trace("removed ");
trace("---------------");
removeMovieClip(oneObj);
removeMovieClip(twoObj);
cornertile();
clearInterval(clearMe);
}
}
var one = null;
var two = null;
maxCards = 126;
levelNumber = 3;
balanceCards = maxCards;
yAdjust = 6.4;
i = 1;
while (i <= 3) {
this["cornertile" + i] = 0;
i++;
}
cornertile1 = 1;
cornertile16 = 1;
cornertile17 = 1;
cornertile30 = 1;
cornertile31 = 1;
cornertile42 = 1;
cornertile43 = 1;
cornertile52 = 1;
cornertile53 = 1;
cornertile60 = 1;
cornertile61 = 1;
cornertile66 = 1;
cornertile67 = 1;
cornertile68 = 1;
cornertile69 = 1;
cornertile76 = 1;
cornertile77 = 1;
cornertile84 = 1;
cornertile85 = 1;
cornertile92 = 1;
cornertile93 = 1;
cornertile100 = 1;
cornertile101 = 1;
cornertile104 = 1;
cornertile105 = 1;
cornertile108 = 1;
cornertile109 = 1;
cornertile112 = 1;
cornertile113 = 1;
cornertile115 = 1;
cornertile116 = 1;
cornertile118 = 1;
cornertile119 = 1;
cornertile121 = 1;
cornertile122 = 1;
cornertile124 = 1;
cornertile125 = 1;
cornertile126 = 1;
decrement = 10;
Frame 32
function cardCreator() {
i = 1;
while (i <= (maxCards / 2)) {
duplicateMovieClip (card, "card" + i, i);
ran = random(18) + 2;
this["card" + i].gotoAndStop(ran);
i++;
}
i = (maxCards / 2) + 1;
while (i <= maxCards) {
duplicateMovieClip (card, "card" + i, i);
this["card" + i].gotoAndStop(this["card" + (i - (maxCards / 2))]._currentframe);
i++;
}
i = 1;
while (i <= maxCards) {
if (i <= 16) {
this["card" + i]._x = -30 + ((i - 1) * 30);
this["card" + i]._y = 400 - yAdjust;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 17) && (i <= 30)) {
this["card" + i]._x = 0 + ((i - 17) * 30);
this["card" + i]._y = 349;
this["card" + i].swapDepths(9000 + i);
}
if ((i >= 31) && (i <= 42)) {
this["card" + i]._x = 30 + ((i - 31) * 30);
this["card" + i]._y = 304.5;
this["card" + i].swapDepths(8000 + i);
}
if ((i >= 43) && (i <= 52)) {
this["card" + i]._x = 60 + ((i - 43) * 30);
this["card" + i]._y = 260;
this["card" + i].swapDepths(7000 + i);
}
if ((i >= 53) && (i <= 60)) {
this["card" + i]._x = 90 + ((i - 53) * 30);
this["card" + i]._y = 215.5;
this["card" + i].swapDepths(6000 + i);
}
if ((i >= 61) && (i <= 66)) {
this["card" + i]._x = 120 + ((i - 61) * 30);
this["card" + i]._y = 171;
this["card" + i].swapDepths(5000 + i);
}
if ((i >= 67) && (i <= 68)) {
this["card" + i]._x = 180 + ((i - 67) * 30);
this["card" + i]._y = 130;
this["card" + i].swapDepths(4000 + i);
}
if ((i >= 69) && (i <= 76)) {
this["card" + i]._x = 86 + ((i - 69) * 30);
this["card" + i]._y = 254;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 77) && (i <= 84)) {
this["card" + i]._x = 86 + ((i - 77) * 30);
this["card" + i]._y = 298.4;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 85) && (i <= 92)) {
this["card" + i]._x = 86 + ((i - 85) * 30);
this["card" + i]._y = 343;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 93) && (i <= 100)) {
this["card" + i]._x = 86 + ((i - 93) * 30);
this["card" + i]._y = 388;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 101) && (i <= 104)) {
this["card" + i]._x = 142 + ((i - 101) * 30);
this["card" + i]._y = 250;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 105) && (i <= 108)) {
this["card" + i]._x = 142 + ((i - 105) * 30);
this["card" + i]._y = 294.5;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 109) && (i <= 112)) {
this["card" + i]._x = 142 + ((i - 109) * 30);
this["card" + i]._y = 339;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 113) && (i <= 115)) {
this["card" + i]._x = -25 + ((i - 113) * 30);
this["card" + i]._y = 160;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 116) && (i <= 118)) {
this["card" + i]._x = -25 + ((i - 116) * 30);
this["card" + i]._y = 205;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 119) && (i <= 121)) {
this["card" + i]._x = 355 + ((i - 119) * 30);
this["card" + i]._y = 160;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 122) && (i <= 124)) {
this["card" + i]._x = 355 + ((i - 122) * 30);
this["card" + i]._y = 205;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 125) && (i <= 126)) {
this["card" + i]._x = 166 + ((i - 125) * 30);
this["card" + i]._y = 290;
this["card" + i].swapDepths(13000 + i);
}
i++;
}
}
function cornertile() {
i = 1;
while (i <= maxCards) {
if (i <= 15) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 18) && (i <= 29)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 32) && (i <= 41)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 44) && (i <= 51)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 54) && (i <= 59)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 62) && (i <= 65)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 70) && (i <= 75)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 78) && (i <= 83)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 86) && (i <= 91)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 94) && (i <= 99)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 102) && (i <= 103)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 106) && (i <= 107)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 110) && (i <= 111)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if (i == 114) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if (i == 117) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if (i == 120) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if (i == 123) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
i++;
}
}
options_bt._visible = true;
stop();
cardCreator();
cornertile();
Instance of Symbol 167 MovieClip "timer" in Frame 32
onClipEvent (load) {
once = 0;
}
onClipEvent (enterFrame) {
if (_root.options != 0) {
this._x = this._x + 0.05;
if ((this._x >= 450) && (once == 0)) {
i = 1;
while (i <= _parent.maxCards) {
removeMovieClip(_parent["card" + i]);
i++;
}
once = 1;
_root.gotoAndStop(92);
}
}
}
Frame 38
function Randomgenerator() {
ran = random(maxCards) + 1;
if (flag[ran] == 0) {
flag[ran] = 1;
return(ran);
}
i = 1;
while (i <= maxCards) {
if (flag[i] == 0) {
flag[i] = 1;
return(i);
}
i++;
}
}
flag = new Array();
gotoAndStop (44);
Frame 39
options_bt._visible = false;
Frame 40
options_bt._visible = true;
Frame 41
function cardsCompare() {
cornertile();
oneObject = one;
twoObject = two;
if (oneObject._currentframe == twoObject._currentframe) {
one = null;
two = null;
clearMe = setInterval(FadeMe, 10, oneObject, twoObject);
count = count + 200;
_root.dbInterface.updateScore(_root.count);
balanceCards = balanceCards - 2;
if ((balanceCards == 0) && (timer._x < 450)) {
levelNumber = 4;
timeRemaining = 450 - Math.round(timer._x);
count = count + ((250 * levelNumber) + timeRemaining);
_root.dbInterface.updateScore(_root.count);
}
cornertile();
timer._x = timer._x - 7;
if (timer._x <= 290) {
timer._x = 293;
}
if (balanceCards == 0) {
_root.gotoAndStop(39);
}
} else {
_root.snd3.wrongObj.start(0, 1);
oneObject.highLight.gotoAndPlay(3);
twoObject.highLight.gotoAndPlay(3);
trace("bad");
one = null;
two = null;
}
}
function FadeMe(oneObj, twoObj) {
if (oneObj._alpha > 0) {
oneObj._alpha = oneObj._alpha - decrement;
twoObj._alpha = twoObj._alpha - decrement;
} else {
_root.snd2.correctObj.start(0, 1);
trace("---------------");
trace("removed ");
trace("---------------");
removeMovieClip(oneObj);
removeMovieClip(twoObj);
cornertile();
clearInterval(clearMe);
}
}
var one = null;
var two = null;
maxCards = 126;
levelNumber = 4;
balanceCards = maxCards;
yAdjust = 6.4;
i = 1;
while (i <= 3) {
this["cornertile" + i] = 0;
i++;
}
cornertile1 = 1;
cornertile12 = 1;
cornertile13 = 1;
cornertile24 = 1;
cornertile25 = 1;
cornertile36 = 1;
cornertile37 = 1;
cornertile48 = 1;
cornertile49 = 1;
cornertile60 = 1;
cornertile61 = 1;
cornertile72 = 1;
cornertile73 = 1;
cornertile84 = 1;
cornertile85 = 1;
cornertile92 = 1;
cornertile93 = 1;
cornertile98 = 1;
cornertile99 = 1;
cornertile102 = 1;
cornertile103 = 1;
cornertile110 = 1;
cornertile111 = 1;
cornertile122 = 1;
cornertile123 = 1;
cornertile124 = 1;
cornertile125 = 1;
cornertile126 = 1;
decrement = 10;
Frame 44
function cardCreator() {
i = 1;
while (i <= (maxCards / 2)) {
duplicateMovieClip (card, "card" + i, i);
ran = random(18) + 2;
this["card" + i].gotoAndStop(ran);
i++;
}
i = (maxCards / 2) + 1;
while (i <= maxCards) {
duplicateMovieClip (card, "card" + i, i);
this["card" + i].gotoAndStop(this["card" + (i - (maxCards / 2))]._currentframe);
i++;
}
i = 1;
while (i <= maxCards) {
if (i <= 12) {
this["card" + i]._x = 0 + ((i - 1) * 30);
this["card" + i]._y = 145 - yAdjust;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 13) && (i <= 24)) {
this["card" + i]._x = 0 + ((i - 13) * 30);
this["card" + i]._y = 183.1;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 25) && (i <= 36)) {
this["card" + i]._x = 0 + ((i - 25) * 30);
this["card" + i]._y = 228;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 37) && (i <= 48)) {
this["card" + i]._x = 0 + ((i - 37) * 30);
this["card" + i]._y = 273;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 49) && (i <= 60)) {
this["card" + i]._x = 0 + ((i - 49) * 30);
this["card" + i]._y = 318;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 61) && (i <= 72)) {
this["card" + i]._x = 0 + ((i - 61) * 30);
this["card" + i]._y = 363;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 73) && (i <= 84)) {
this["card" + i]._x = -5 + ((i - 73) * 30);
this["card" + i]._y = 140 - yAdjust;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 85) && (i <= 92)) {
this["card" + i]._x = 52 + ((i - 85) * 30);
this["card" + i]._y = 178.1;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 93) && (i <= 98)) {
this["card" + i]._x = 82 + ((i - 93) * 30);
this["card" + i]._y = 223;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 99) && (i <= 102)) {
this["card" + i]._x = 112 + ((i - 99) * 30);
this["card" + i]._y = 268;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 103) && (i <= 110)) {
this["card" + i]._x = 54 + ((i - 103) * 30);
this["card" + i]._y = 313.4;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 111) && (i <= 122)) {
this["card" + i]._x = 0 + ((i - 111) * 30);
this["card" + i]._y = 358;
this["card" + i].swapDepths(11000 + i);
}
if (i == 123) {
this["card" + i]._x = 370;
this["card" + i]._y = 370;
this["card" + i].swapDepths(11000 + i);
}
if (i == 124) {
this["card" + i]._x = 408;
this["card" + i]._y = 400;
this["card" + i].swapDepths(11000 + i);
}
if (i == 125) {
this["card" + i]._x = 448;
this["card" + i]._y = 400;
this["card" + i].swapDepths(10000 + i);
}
if (i == 126) {
this["card" + i]._x = 448;
this["card" + i]._y = 400;
this["card" + i].swapDepths(11000 + i);
}
i++;
}
}
function cornertile() {
i = 1;
while (i <= maxCards) {
if (i <= 11) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 14) && (i <= 23)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 26) && (i <= 35)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 38) && (i <= 47)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 50) && (i <= 59)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 62) && (i <= 71)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 74) && (i <= 83)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 86) && (i <= 91)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 94) && (i <= 97)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 100) && (i <= 101)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 104) && (i <= 109)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 112) && (i <= 121)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
i++;
}
}
options_bt._visible = true;
stop();
cardCreator();
cornertile();
Instance of Symbol 176 MovieClip "timer" in Frame 44
onClipEvent (load) {
once = 0;
}
onClipEvent (enterFrame) {
if (_root.options != 0) {
this._x = this._x + 0.1;
if ((this._x >= 450) && (once == 0)) {
i = 1;
while (i <= _parent.maxCards) {
removeMovieClip(_parent["card" + i]);
i++;
}
once = 1;
_root.gotoAndStop(92);
}
}
}
Frame 50
function Randomgenerator() {
ran = random(maxCards) + 1;
if (flag[ran] == 0) {
flag[ran] = 1;
return(ran);
}
i = 1;
while (i <= maxCards) {
if (flag[i] == 0) {
flag[i] = 1;
return(i);
}
i++;
}
}
flag = new Array();
gotoAndStop (56);
Frame 51
options_bt._visible = false;
Frame 53
function cardsCompare() {
cornertile();
oneObject = one;
twoObject = two;
if (oneObject._currentframe == twoObject._currentframe) {
trace("good");
one = null;
two = null;
clearMe = setInterval(FadeMe, 10, oneObject, twoObject);
count = count + 250;
_root.dbInterface.updateScore(_root.count);
balanceCards = balanceCards - 2;
if ((balanceCards == 0) && (timer._x < 451)) {
levelNumber = 5;
timeRemaining = 450 - Math.round(timer._x);
count = count + ((250 * levelNumber) + timeRemaining);
_root.dbInterface.updateScore(_root.count);
}
cornertile();
timer._x = timer._x - 7;
if (timer._x <= 290) {
timer._x = 293;
}
if (balanceCards == 0) {
_root.gotoAndStop(51);
}
} else {
_root.snd3.wrongObj.start(0, 1);
oneObject.highLight.gotoAndPlay(3);
twoObject.highLight.gotoAndPlay(3);
trace("bad");
one = null;
two = null;
}
}
function FadeMe(oneObj, twoObj) {
trace(oneObj._alpha);
if (oneObj._alpha > 0) {
oneObj._alpha = oneObj._alpha - decrement;
twoObj._alpha = twoObj._alpha - decrement;
} else {
_root.snd2.correctObj.start(0, 1);
trace("---------------");
trace("removed ");
trace("---------------");
removeMovieClip(oneObj);
removeMovieClip(twoObj);
cornertile();
clearInterval(clearMe);
}
}
var one = null;
var two = null;
maxCards = 126;
levelNumber = 5;
balanceCards = maxCards;
yAdjust = 6.4;
i = 1;
while (i <= 3) {
this["cornertile" + i] = 0;
i++;
}
cornertile1 = 1;
cornertile16 = 1;
cornertile17 = 1;
cornertile30 = 1;
cornertile31 = 1;
cornertile42 = 1;
cornertile43 = 1;
cornertile52 = 1;
cornertile53 = 1;
cornertile60 = 1;
cornertile61 = 1;
cornertile66 = 1;
cornertile67 = 1;
cornertile68 = 1;
cornertile69 = 1;
cornertile76 = 1;
cornertile77 = 1;
cornertile84 = 1;
cornertile85 = 1;
cornertile92 = 1;
cornertile93 = 1;
cornertile100 = 1;
cornertile101 = 1;
cornertile104 = 1;
cornertile105 = 1;
cornertile108 = 1;
cornertile109 = 1;
cornertile112 = 1;
cornertile113 = 1;
cornertile115 = 1;
cornertile116 = 1;
cornertile118 = 1;
cornertile119 = 1;
cornertile121 = 1;
cornertile122 = 1;
cornertile124 = 1;
cornertile125 = 1;
cornertile126 = 1;
decrement = 10;
Frame 56
function cardCreator() {
i = 1;
while (i <= (maxCards / 2)) {
duplicateMovieClip (card, "card" + i, i);
ran = random(18) + 2;
this["card" + i].gotoAndStop(ran);
i++;
}
i = (maxCards / 2) + 1;
while (i <= maxCards) {
duplicateMovieClip (card, "card" + i, i);
this["card" + i].gotoAndStop(this["card" + (i - (maxCards / 2))]._currentframe);
i++;
}
i = 1;
while (i <= maxCards) {
if (i <= 16) {
this["card" + i]._x = -30 + ((i - 1) * 30);
this["card" + i]._y = 140 - yAdjust;
this["card" + i].swapDepths(9000 + i);
}
if ((i >= 17) && (i <= 30)) {
this["card" + i]._x = 0 + ((i - 17) * 30);
this["card" + i]._y = 177.5;
this["card" + i].swapDepths(9000 + i);
}
if ((i >= 31) && (i <= 42)) {
this["card" + i]._x = 30 + ((i - 31) * 30);
this["card" + i]._y = 222.1;
this["card" + i].swapDepths(9000 + i);
}
if ((i >= 43) && (i <= 52)) {
this["card" + i]._x = 60 + ((i - 43) * 30);
this["card" + i]._y = 266.6;
this["card" + i].swapDepths(9000 + i);
}
if ((i >= 53) && (i <= 60)) {
this["card" + i]._x = 90 + ((i - 53) * 30);
this["card" + i]._y = 311.1;
this["card" + i].swapDepths(9000 + i);
}
if ((i >= 61) && (i <= 66)) {
this["card" + i]._x = 120 + ((i - 61) * 30);
this["card" + i]._y = 356.2;
this["card" + i].swapDepths(9000 + i);
}
if ((i >= 67) && (i <= 68)) {
this["card" + i]._x = 180 + ((i - 67) * 30);
this["card" + i]._y = 400.8;
this["card" + i].swapDepths(9000 + i);
}
if ((i >= 69) && (i <= 76)) {
this["card" + i]._x = 86 + ((i - 69) * 30);
this["card" + i]._y = 263;
this["card" + i].swapDepths(13000 + i);
}
if ((i >= 77) && (i <= 84)) {
this["card" + i]._x = 86 + ((i - 77) * 30);
this["card" + i]._y = 218.6;
this["card" + i].swapDepths(12600 + i);
}
if ((i >= 85) && (i <= 92)) {
this["card" + i]._x = 86 + ((i - 85) * 30);
this["card" + i]._y = 174;
this["card" + i].swapDepths(12200 + i);
}
if ((i >= 93) && (i <= 100)) {
this["card" + i]._x = 86 + ((i - 93) * 30);
this["card" + i]._y = 129;
this["card" + i].swapDepths(12000 + i);
}
if ((i >= 101) && (i <= 104)) {
this["card" + i]._x = 142 + ((i - 101) * 30);
this["card" + i]._y = 170;
this["card" + i].swapDepths(14000 + i);
}
if ((i >= 105) && (i <= 108)) {
this["card" + i]._x = 142 + ((i - 105) * 30);
this["card" + i]._y = 214.6;
this["card" + i].swapDepths(14000 + i);
}
if ((i >= 109) && (i <= 112)) {
this["card" + i]._x = 142 + ((i - 109) * 30);
this["card" + i]._y = 258.5;
this["card" + i].swapDepths(14000 + i);
}
if ((i >= 113) && (i <= 115)) {
this["card" + i]._x = -25 + ((i - 113) * 30);
this["card" + i]._y = 330;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 116) && (i <= 118)) {
this["card" + i]._x = -25 + ((i - 116) * 30);
this["card" + i]._y = 374.6;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 119) && (i <= 121)) {
this["card" + i]._x = 355 + ((i - 119) * 30);
this["card" + i]._y = 330;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 122) && (i <= 124)) {
this["card" + i]._x = 355 + ((i - 122) * 30);
this["card" + i]._y = 374.6;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 125) && (i <= 126)) {
this["card" + i]._x = 166 + ((i - 125) * 30);
this["card" + i]._y = 210;
this["card" + i].swapDepths(15000 + i);
}
i++;
}
}
function cornertile() {
i = 1;
while (i <= maxCards) {
if (i <= 15) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 18) && (i <= 29)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 32) && (i <= 41)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 44) && (i <= 51)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 54) && (i <= 59)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 62) && (i <= 65)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 70) && (i <= 75)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 78) && (i <= 83)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 86) && (i <= 91)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 94) && (i <= 99)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 102) && (i <= 103)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 106) && (i <= 107)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 110) && (i <= 111)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if (i == 114) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if (i == 117) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if (i == 120) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if (i == 123) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
i++;
}
}
options_bt._visible = true;
stop();
cardCreator();
cornertile();
Instance of Symbol 185 MovieClip "timer" in Frame 56
onClipEvent (load) {
once = 0;
}
onClipEvent (enterFrame) {
if (_root.options != 0) {
this._x = this._x + 0.1;
if ((this._x >= 450) && (once == 0)) {
i = 1;
while (i <= _parent.maxCards) {
removeMovieClip(_parent["card" + i]);
i++;
}
once = 1;
_root.gotoAndStop(92);
}
}
}
Frame 62
function Randomgenerator() {
ran = random(maxCards) + 1;
if (flag[ran] == 0) {
flag[ran] = 1;
return(ran);
}
i = 1;
while (i <= maxCards) {
if (flag[i] == 0) {
flag[i] = 1;
return(i);
}
i++;
}
}
flag = new Array();
gotoAndStop (68);
Frame 63
options_bt._visible = false;
Frame 65
function cardsCompare() {
cornertile();
oneObject = one;
twoObject = two;
if (oneObject._currentframe == twoObject._currentframe) {
trace("good");
one = null;
two = null;
clearMe = setInterval(FadeMe, 10, oneObject, twoObject);
count = count + 300;
_root.dbInterface.updateScore(_root.count);
balanceCards = balanceCards - 2;
if ((balanceCards == 0) && (timer._x < 450)) {
levelNumber = 6;
timeRemaining = 450 - Math.round(timer._x);
count = count + ((250 * levelNumber) + timeRemaining);
_root.dbInterface.updateScore(_root.count);
}
cornertile();
timer._x = timer._x - 7;
if (timer._x <= 290) {
timer._x = 293;
}
if (balanceCards == 0) {
_root.gotoAndStop(63);
}
} else {
_root.snd3.wrongObj.start(0, 1);
oneObject.highLight.gotoAndPlay(3);
twoObject.highLight.gotoAndPlay(3);
trace("bad");
one = null;
two = null;
}
}
function FadeMe(oneObj, twoObj) {
trace(oneObj._alpha);
if (oneObj._alpha > 0) {
oneObj._alpha = oneObj._alpha - decrement;
twoObj._alpha = twoObj._alpha - decrement;
} else {
_root.snd2.correctObj.start(0, 1);
trace("---------------");
trace("removed ");
trace("---------------");
removeMovieClip(oneObj);
removeMovieClip(twoObj);
cornertile();
clearInterval(clearMe);
}
}
var one = null;
var two = null;
maxCards = 128;
levelNumber = 6;
balanceCards = maxCards;
yAdjust = 6.4;
i = 1;
while (i <= 3) {
this["cornertile" + i] = 0;
i++;
}
cornertile1 = 1;
cornertile12 = 1;
cornertile13 = 1;
cornertile16 = 1;
cornertile17 = 1;
cornertile22 = 1;
cornertile23 = 1;
cornertile28 = 1;
cornertile29 = 1;
cornertile34 = 1;
cornertile35 = 1;
cornertile48 = 1;
cornertile49 = 1;
cornertile62 = 1;
cornertile63 = 1;
cornertile66 = 1;
cornertile67 = 1;
cornertile70 = 1;
cornertile71 = 1;
cornertile74 = 1;
cornertile75 = 1;
cornertile78 = 1;
cornertile79 = 1;
cornertile80 = 1;
cornertile81 = 1;
cornertile82 = 1;
cornertile83 = 1;
cornertile84 = 1;
cornertile85 = 1;
cornertile86 = 1;
cornertile87 = 1;
cornertile96 = 1;
cornertile97 = 1;
cornertile106 = 1;
cornertile107 = 1;
cornertile110 = 1;
cornertile111 = 1;
cornertile114 = 1;
cornertile115 = 1;
cornertile118 = 1;
cornertile119 = 1;
cornertile126 = 1;
cornertile127 = 1;
cornertile128 = 1;
decrement = 10;
Frame 68
function cardCreator() {
i = 1;
while (i <= (maxCards / 2)) {
duplicateMovieClip (card, "card" + i, i);
ran = random(18) + 2;
this["card" + i].gotoAndStop(ran);
i++;
}
i = (maxCards / 2) + 1;
while (i <= maxCards) {
duplicateMovieClip (card, "card" + i, i);
this["card" + i].gotoAndStop(this["card" + (i - (maxCards / 2))]._currentframe);
i++;
}
i = 1;
while (i <= maxCards) {
if (i <= 12) {
this["card" + i]._x = 40 + ((i - 1) * 30);
this["card" + i]._y = 180 - yAdjust;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 13) && (i <= 16)) {
this["card" + i]._x = 160 + ((i - 13) * 30);
this["card" + i]._y = 130;
this["card" + i].swapDepths(9500 + i);
}
if ((i >= 17) && (i <= 22)) {
this["card" + i]._x = 130 + ((i - 17) * 30);
this["card" + i]._y = 218;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 23) && (i <= 28)) {
this["card" + i]._x = 130 + ((i - 23) * 30);
this["card" + i]._y = 263;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 29) && (i <= 34)) {
this["card" + i]._x = 130 + ((i - 29) * 30);
this["card" + i]._y = 308;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 35) && (i <= 48)) {
this["card" + i]._x = 10 + ((i - 35) * 30);
this["card" + i]._y = 353;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 49) && (i <= 62)) {
this["card" + i]._x = 10 + ((i - 49) * 30);
this["card" + i]._y = 398;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 63) && (i <= 66)) {
this["card" + i]._x = -30 + ((i - 63) * 30);
this["card" + i]._y = 238;
this["card" + i].swapDepths(9000 + i);
}
if ((i >= 67) && (i <= 70)) {
this["card" + i]._x = -30 + ((i - 67) * 30);
this["card" + i]._y = 283;
this["card" + i].swapDepths(9000 + i);
}
if ((i >= 71) && (i <= 74)) {
this["card" + i]._x = 350 + ((i - 71) * 30);
this["card" + i]._y = 238;
this["card" + i].swapDepths(9000 + i);
}
if ((i >= 75) && (i <= 78)) {
this["card" + i]._x = 350 + ((i - 75) * 30);
this["card" + i]._y = 283;
this["card" + i].swapDepths(9000 + i);
}
if ((i >= 79) && (i <= 80)) {
this["card" + i]._x = -4 + ((i - 79) * 30);
this["card" + i]._y = 232;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 81) && (i <= 82)) {
this["card" + i]._x = -4 + ((i - 81) * 30);
this["card" + i]._y = 277;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 83) && (i <= 84)) {
this["card" + i]._x = 376 + ((i - 83) * 30);
this["card" + i]._y = 232;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 85) && (i <= 86)) {
this["card" + i]._x = 376 + ((i - 85) * 30);
this["card" + i]._y = 277;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 87) && (i <= 96)) {
this["card" + i]._x = 65 + ((i - 87) * 30);
this["card" + i]._y = 345;
this["card" + i].swapDepths(12000 + i);
}
if ((i >= 97) && (i <= 106)) {
this["card" + i]._x = 65 + ((i - 97) * 30);
this["card" + i]._y = 390;
this["card" + i].swapDepths(12000 + i);
}
if ((i >= 107) && (i <= 110)) {
this["card" + i]._x = 156 + ((i - 107) * 30);
this["card" + i]._y = 210;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 111) && (i <= 114)) {
this["card" + i]._x = 156 + ((i - 111) * 30);
this["card" + i]._y = 255;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 115) && (i <= 118)) {
this["card" + i]._x = 156 + ((i - 115) * 30);
this["card" + i]._y = 300;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 119) && (i <= 126)) {
this["card" + i]._x = 96 + ((i - 119) * 30);
this["card" + i]._y = 165;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 127) && (i <= 128)) {
this["card" + i]._x = 186 + ((i - 127) * 30);
this["card" + i]._y = 120;
this["card" + i].swapDepths(9600 + i);
}
i++;
}
}
function cornertile() {
i = 1;
while (i <= maxCards) {
if (i <= 11) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 14) && (i <= 15)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 18) && (i <= 21)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 24) && (i <= 27)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 30) && (i <= 33)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 36) && (i <= 47)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 50) && (i <= 61)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 64) && (i <= 65)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 68) && (i <= 69)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 72) && (i <= 73)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 76) && (i <= 77)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 88) && (i <= 95)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 98) && (i <= 105)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 108) && (i <= 109)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 112) && (i <= 113)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 116) && (i <= 117)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 120) && (i <= 125)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
i++;
}
}
options_bt._visible = true;
stop();
cardCreator();
cornertile();
Instance of Symbol 194 MovieClip "timer" in Frame 68
onClipEvent (load) {
once = 0;
}
onClipEvent (enterFrame) {
if (_root.options != 0) {
this._x = this._x + 0.1;
if ((this._x >= 450) && (once == 0)) {
i = 1;
while (i <= _parent.maxCards) {
removeMovieClip(_parent["card" + i]);
i++;
}
once = 1;
_root.gotoAndStop(92);
}
}
}
Frame 74
function Randomgenerator() {
ran = random(maxCards) + 1;
if (flag[ran] == 0) {
flag[ran] = 1;
return(ran);
}
i = 1;
while (i <= maxCards) {
if (flag[i] == 0) {
flag[i] = 1;
return(i);
}
i++;
}
}
flag = new Array();
gotoAndStop (80);
Frame 75
options_bt._visible = false;
Frame 77
function cardsCompare() {
cornertile();
oneObject = one;
twoObject = two;
if (oneObject._currentframe == twoObject._currentframe) {
one = null;
two = null;
clearMe = setInterval(FadeMe, 10, oneObject, twoObject);
count = count + 350;
_root.dbInterface.updateScore(_root.count);
balanceCards = balanceCards - 2;
if ((balanceCards == 0) && (timer._x < 450)) {
levelNumber = 7;
timeRemaining = 450 - Math.round(timer._x);
count = count + ((250 * levelNumber) + timeRemaining);
_root.dbInterface.updateScore(_root.count);
}
cornertile();
timer._x = timer._x - 7;
if (timer._x <= 290) {
timer._x = 293;
}
if (balanceCards == 0) {
_root.gotoAndStop(75);
}
} else {
_root.snd3.wrongObj.start(0, 1);
oneObject.highLight.gotoAndPlay(3);
twoObject.highLight.gotoAndPlay(3);
trace("bad");
one = null;
two = null;
}
}
function FadeMe(oneObj, twoObj) {
trace(oneObj._alpha);
if (oneObj._alpha > 0) {
oneObj._alpha = oneObj._alpha - decrement;
twoObj._alpha = twoObj._alpha - decrement;
} else {
_root.snd2.correctObj.start(0, 1);
trace("---------------");
trace("removed ");
trace("---------------");
removeMovieClip(oneObj);
removeMovieClip(twoObj);
cornertile();
clearInterval(clearMe);
}
}
var one = null;
var two = null;
maxCards = 150;
levelNumber = 7;
balanceCards = maxCards;
yAdjust = 6.4;
i = 1;
while (i <= 3) {
this["cornertile" + i] = 0;
i++;
}
cornertile1 = 1;
cornertile14 = 1;
cornertile15 = 1;
cornertile26 = 1;
cornertile27 = 1;
cornertile36 = 1;
cornertile37 = 1;
cornertile44 = 1;
cornertile45 = 1;
cornertile54 = 1;
cornertile55 = 1;
cornertile66 = 1;
cornertile67 = 1;
cornertile80 = 1;
cornertile81 = 1;
cornertile88 = 1;
cornertile89 = 1;
cornertile96 = 1;
cornertile97 = 1;
cornertile104 = 1;
cornertile105 = 1;
cornertile112 = 1;
cornertile113 = 1;
cornertile120 = 1;
cornertile121 = 1;
cornertile126 = 1;
cornertile127 = 1;
cornertile132 = 1;
cornertile133 = 1;
cornertile138 = 1;
cornertile139 = 1;
cornertile142 = 1;
cornertile143 = 1;
cornertile146 = 1;
cornertile147 = 1;
cornertile150 = 1;
decrement = 10;
Frame 80
function cardCreator() {
i = 1;
while (i <= (maxCards / 2)) {
duplicateMovieClip (card, "card" + i, i);
ran = random(18) + 2;
this["card" + i].gotoAndStop(ran);
i++;
}
i = (maxCards / 2) + 1;
while (i <= maxCards) {
duplicateMovieClip (card, "card" + i, i);
this["card" + i].gotoAndStop(this["card" + (i - (maxCards / 2))]._currentframe);
i++;
}
i = 1;
while (i <= maxCards) {
if (i <= 14) {
this["card" + i]._x = 0 + ((i - 1) * 30);
this["card" + i]._y = 140 - yAdjust;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 15) && (i <= 26)) {
this["card" + i]._x = 30 + ((i - 15) * 30);
this["card" + i]._y = 178;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 27) && (i <= 36)) {
this["card" + i]._x = 60 + ((i - 27) * 30);
this["card" + i]._y = 222.2;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 37) && (i <= 44)) {
this["card" + i]._x = 90 + ((i - 37) * 30);
this["card" + i]._y = 267;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 45) && (i <= 54)) {
this["card" + i]._x = 60 + ((i - 45) * 30);
this["card" + i]._y = 312;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 55) && (i <= 66)) {
this["card" + i]._x = 30 + ((i - 55) * 30);
this["card" + i]._y = 356.4;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 67) && (i <= 80)) {
this["card" + i]._x = 0 + ((i - 67) * 30);
this["card" + i]._y = 401;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 81) && (i <= 88)) {
this["card" + i]._x = 84 + ((i - 81) * 30);
this["card" + i]._y = 172;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 89) && (i <= 96)) {
this["card" + i]._x = 84 + ((i - 89) * 30);
this["card" + i]._y = 216.4;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 97) && (i <= 104)) {
this["card" + i]._x = 84 + ((i - 97) * 30);
this["card" + i]._y = 261;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 105) && (i <= 112)) {
this["card" + i]._x = 84 + ((i - 105) * 30);
this["card" + i]._y = 305.5;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 113) && (i <= 120)) {
this["card" + i]._x = 84 + ((i - 113) * 30);
this["card" + i]._y = 350;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 121) && (i <= 126)) {
this["card" + i]._x = 108 + ((i - 121) * 30);
this["card" + i]._y = 210;
this["card" + i].swapDepths(12000 + i);
}
if ((i >= 127) && (i <= 132)) {
this["card" + i]._x = 108 + ((i - 127) * 30);
this["card" + i]._y = 254.4;
this["card" + i].swapDepths(12000 + i);
}
if ((i >= 133) && (i <= 138)) {
this["card" + i]._x = 108 + ((i - 133) * 30);
this["card" + i]._y = 299;
this["card" + i].swapDepths(12000 + i);
}
if ((i >= 139) && (i <= 142)) {
this["card" + i]._x = 133 + ((i - 139) * 30);
this["card" + i]._y = 204;
this["card" + i].swapDepths(13000 + i);
}
if ((i >= 143) && (i <= 146)) {
this["card" + i]._x = 133 + ((i - 143) * 30);
this["card" + i]._y = 248.4;
this["card" + i].swapDepths(13000 + i);
}
if ((i >= 147) && (i <= 150)) {
this["card" + i]._x = 133 + ((i - 147) * 30);
this["card" + i]._y = 293.2;
this["card" + i].swapDepths(13000 + i);
}
i++;
}
}
function cornertile() {
i = 1;
while (i <= maxCards) {
if (i <= 13) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 16) && (i <= 25)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 28) && (i <= 35)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 38) && (i <= 43)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 46) && (i <= 53)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 56) && (i <= 65)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 68) && (i <= 79)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 82) && (i <= 87)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 90) && (i <= 95)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 98) && (i <= 103)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 106) && (i <= 111)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 114) && (i <= 119)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 122) && (i <= 125)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 128) && (i <= 131)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 134) && (i <= 137)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 140) && (i <= 141)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 144) && (i <= 145)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 148) && (i <= 149)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
i++;
}
}
options_bt._visible = true;
stop();
cardCreator();
cornertile();
Instance of Symbol 203 MovieClip "timer" in Frame 80
onClipEvent (load) {
once = 0;
}
onClipEvent (enterFrame) {
if (_root.options != 0) {
this._x = this._x + 0.15;
if ((this._x >= 450) && (once == 0)) {
i = 1;
while (i <= _parent.maxCards) {
removeMovieClip(_parent["card" + i]);
i++;
}
once = 1;
_root.gotoAndStop(92);
}
}
}
Frame 85
function Randomgenerator() {
ran = random(maxCards) + 1;
if (flag[ran] == 0) {
flag[ran] = 1;
return(ran);
}
i = 1;
while (i <= maxCards) {
if (flag[i] == 0) {
flag[i] = 1;
return(i);
}
i++;
}
}
flag = new Array();
gotoAndStop (91);
Frame 86
options_bt._visible = false;
stop();
setDeactive();
Frame 88
function cardsCompare() {
cornertile();
oneObject = one;
twoObject = two;
if (oneObject._currentframe == twoObject._currentframe) {
one = null;
two = null;
clearMe = setInterval(FadeMe, 10, oneObject, twoObject);
count = count + 400;
_root.dbInterface.updateScore(_root.count);
balanceCards = balanceCards - 2;
if ((balanceCards == 0) && (timer._x < 451)) {
levelNumber = 8;
timeRemaining = 450 - Math.round(timer._x);
count = count + ((250 * levelNumber) + timeRemaining);
_root.dbInterface.updateScore(_root.count);
}
cornertile();
timer._x = timer._x - 7;
if (timer._x <= 290) {
timer._x = 293;
}
if (balanceCards == 0) {
_root.gotoAndStop(86);
}
} else {
_root.snd3.wrongObj.start(0, 1);
oneObject.highLight.gotoAndPlay(3);
twoObject.highLight.gotoAndPlay(3);
trace("bad");
one = null;
two = null;
}
}
function FadeMe(oneObj, twoObj) {
trace(oneObj._alpha);
if (oneObj._alpha > 0) {
oneObj._alpha = oneObj._alpha - decrement;
twoObj._alpha = twoObj._alpha - decrement;
} else {
_root.snd2.correctObj.start(0, 1);
trace("---------------");
trace("removed ");
trace("---------------");
removeMovieClip(oneObj);
removeMovieClip(twoObj);
cornertile();
clearInterval(clearMe);
}
}
var one = null;
var two = null;
maxCards = 200;
levelNumber = 8;
balanceCards = maxCards;
yAdjust = 6.4;
i = 1;
while (i <= 3) {
this["cornertile" + i] = 0;
i++;
}
cornertile1 = 1;
cornertile14 = 1;
cornertile15 = 1;
cornertile28 = 1;
cornertile29 = 1;
cornertile42 = 1;
cornertile43 = 1;
cornertile56 = 1;
cornertile57 = 1;
cornertile70 = 1;
cornertile71 = 1;
cornertile84 = 1;
cornertile85 = 1;
cornertile98 = 1;
cornertile99 = 1;
cornertile110 = 1;
cornertile111 = 1;
cornertile122 = 1;
cornertile123 = 1;
cornertile134 = 1;
cornertile135 = 1;
cornertile146 = 1;
cornertile147 = 1;
cornertile158 = 1;
cornertile159 = 1;
cornertile168 = 1;
cornertile169 = 1;
cornertile178 = 1;
cornertile179 = 1;
cornertile188 = 1;
cornertile189 = 1;
cornertile192 = 1;
cornertile193 = 1;
cornertile196 = 1;
cornertile197 = 1;
cornertile200 = 1;
decrement = 10;
Frame 91
function cardCreator() {
i = 1;
while (i <= (maxCards / 2)) {
duplicateMovieClip (card, "card" + i, i);
ran = random(18) + 2;
this["card" + i].gotoAndStop(ran);
i++;
}
i = (maxCards / 2) + 1;
while (i <= maxCards) {
duplicateMovieClip (card, "card" + i, i);
this["card" + i].gotoAndStop(this["card" + (i - (maxCards / 2))]._currentframe);
i++;
}
i = 1;
while (i <= maxCards) {
if (i <= 14) {
this["card" + i]._x = 0 + ((i - 1) * 30);
this["card" + i]._y = 145 - yAdjust;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 15) && (i <= 28)) {
this["card" + i]._x = 0 + ((i - 15) * 30);
this["card" + i]._y = 183.1;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 29) && (i <= 42)) {
this["card" + i]._x = 0 + ((i - 29) * 30);
this["card" + i]._y = 228;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 43) && (i <= 56)) {
this["card" + i]._x = 0 + ((i - 43) * 30);
this["card" + i]._y = 273;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 57) && (i <= 70)) {
this["card" + i]._x = 0 + ((i - 57) * 30);
this["card" + i]._y = 318;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 71) && (i <= 84)) {
this["card" + i]._x = 0 + ((i - 71) * 30);
this["card" + i]._y = 363;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 85) && (i <= 98)) {
this["card" + i]._x = 0 + ((i - 85) * 30);
this["card" + i]._y = 408;
this["card" + i].swapDepths(10000 + i);
}
if ((i >= 99) && (i <= 110)) {
this["card" + i]._x = 24 + ((i - 99) * 30);
this["card" + i]._y = 180;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 111) && (i <= 122)) {
this["card" + i]._x = 24 + ((i - 111) * 30);
this["card" + i]._y = 225;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 123) && (i <= 134)) {
this["card" + i]._x = 24 + ((i - 123) * 30);
this["card" + i]._y = 270;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 135) && (i <= 146)) {
this["card" + i]._x = 24 + ((i - 135) * 30);
this["card" + i]._y = 315;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 147) && (i <= 158)) {
this["card" + i]._x = 24 + ((i - 147) * 30);
this["card" + i]._y = 360;
this["card" + i].swapDepths(11000 + i);
}
if ((i >= 159) && (i <= 168)) {
this["card" + i]._x = 50 + ((i - 159) * 30);
this["card" + i]._y = 218;
this["card" + i].swapDepths(12000 + i);
}
if ((i >= 169) && (i <= 178)) {
this["card" + i]._x = 50 + ((i - 169) * 30);
this["card" + i]._y = 263;
this["card" + i].swapDepths(12000 + i);
}
if ((i >= 179) && (i <= 188)) {
this["card" + i]._x = 50 + ((i - 179) * 30);
this["card" + i]._y = 308;
this["card" + i].swapDepths(12000 + i);
}
if ((i >= 189) && (i <= 192)) {
this["card" + i]._x = 135 + ((i - 189) * 30);
this["card" + i]._y = 211.6;
this["card" + i].swapDepths(13000 + i);
}
if ((i >= 193) && (i <= 196)) {
this["card" + i]._x = 135 + ((i - 193) * 30);
this["card" + i]._y = 256;
this["card" + i].swapDepths(13000 + i);
}
if ((i >= 197) && (i <= 200)) {
this["card" + i]._x = 135 + ((i - 197) * 30);
this["card" + i]._y = 301.2;
this["card" + i].swapDepths(13000 + i);
}
i++;
}
}
function cornertile() {
i = 1;
while (i <= maxCards) {
if (i <= 13) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 16) && (i <= 27)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 30) && (i <= 41)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 44) && (i <= 55)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 58) && (i <= 69)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 72) && (i <= 83)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 86) && (i <= 97)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 100) && (i <= 109)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 112) && (i <= 121)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 124) && (i <= 133)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 136) && (i <= 145)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 148) && (i <= 157)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 160) && (i <= 167)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 170) && (i <= 177)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 180) && (i <= 187)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 190) && (i <= 191)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 194) && (i <= 195)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
if ((i >= 198) && (i <= 199)) {
if ((typeof(this["card" + (i + 1)]) == "undefined") || (typeof(this["card" + (i - 1)]) == "undefined")) {
_root["cornertile" + i] = 1;
} else {
_root["cornertile" + i] = 0;
}
}
i++;
}
}
options_bt._visible = true;
stop();
cardCreator();
cornertile();
Instance of Symbol 220 MovieClip "timer" in Frame 91
onClipEvent (load) {
once = 0;
}
onClipEvent (enterFrame) {
if (_root.options != 0) {
this._x = this._x + 0.15;
if ((this._x >= 450) && (once == 0)) {
i = 1;
while (i <= _parent.maxCards) {
removeMovieClip(_parent["card" + i]);
i++;
}
once = 1;
_root.gotoAndStop(92);
}
}
}
Frame 92
setDeactive();
levelNumberText = "level " + levelNumber;
Symbol 10 Button
on (press) {
if (_root.options != 0) {
timer._x = timer._x + 10;
shuffleCard();
}
}
Symbol 13 Button
on (release) {
options = 0;
beginX = timer.temptimerX;
trace(beginX);
controls.gotoAndPlay(2);
}
Symbol 26 Button
on (press) {
startDrag (this, true, left_M, top_M, right_M, bottom_M);
}
on (release, releaseOutside) {
stopDrag();
}
Symbol 28 Button
on (press) {
startDrag (this, false, left_j, top_j, right_j, bottom_j);
}
on (release, releaseOutside) {
stopDrag();
}
Symbol 31 Button
on (release) {
_root.options = 1;
_root.slidemusic_X = slidemusic._x;
_root.slidesound_X = slidesound._x;
gotoAndStop (1);
}
Symbol 32 MovieClip Frame 1
stop();
_root.activate = 0;
Symbol 32 MovieClip Frame 2
blocker.useHandCursor = false;
_root.activate = 1;
Symbol 32 MovieClip Frame 23
stop();
blocker.useHandCursor = false;
_root.activate = 1;
Instance of Symbol 27 MovieClip "slidemusic" in Symbol 32 MovieClip Frame 23
onClipEvent (load) {
right_M = _x + 100;
top_M = _y;
bottom_M = _y;
left_M = _x;
if (_root.countmain == 0) {
_x = (_x + 100);
} else {
_x = _root.slidemusic_X;
}
}
onClipEvent (enterFrame) {
_root.countmain = 1;
_root.snd1.musicObj.setVolume(_x - left_M);
}
Instance of Symbol 29 MovieClip "slidesound" in Symbol 32 MovieClip Frame 23
onClipEvent (load) {
top_j = _y;
bottom_j = _y;
left_j = _x;
right_j = _x + 100;
if (_root.countsound == 0) {
_x = (_x + 100);
} else {
_x = _root.slidesound_X;
}
}
onClipEvent (enterFrame) {
_root.countsound = 1;
_root.snd2.correctObj.setVolume(_x - left_j);
_root.snd3.wrongObj.setVolume(_x - left_j);
}
Symbol 34 MovieClip Frame 1
musicObj = new Sound(this);
musicObj.attachSound("bgmusic");
Symbol 35 MovieClip Frame 1
correctObj = new Sound(this);
correctObj.attachSound("correct");
Symbol 36 MovieClip Frame 1
wrongObj = new Sound(this);
wrongObj.attachSound("wrong");
Symbol 46 Button
on (release) {
getURL ("http://www.freegames911.com", "_self");
}
Symbol 62 MovieClip Frame 1
stop();
Symbol 69 Button
on (release) {
_root.gotoAndPlay(2);
gotoAndStop (75);
}
Symbol 74 MovieClip Frame 1
LoaderBlk.useHandCursor = false;
Instance of Symbol 62 MovieClip in Symbol 74 MovieClip Frame 72
onClipEvent (load) {
total = _parent._parent.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _parent._parent.getBytesLoaded();
percent = int((loaded / total) * 100);
gotoAndStop(percent);
perText = percent + "%";
if (percent >= 100) {
_parent.gotoAndStop(74);
}
}
Symbol 74 MovieClip Frame 73
stop();
LoaderBlk.useHandCursor = false;
Symbol 74 MovieClip Frame 74
LoaderBlk.useHandCursor = false;
Symbol 74 MovieClip Frame 75
stop();
Symbol 86 Button
on (press) {
_root.gotoAndPlay(17);
}
Symbol 89 MovieClip Frame 16
stop();
Symbol 95 Button
on (release) {
myname = _name;
mynum = Number(myname.substr(4));
if (_parent["cornertile" + mynum] == 1) {
if (_root.options != 0) {
if (_parent.one == null) {
_parent.one = this;
trace("_parent.one =" + _parent.one);
highLight.gotoAndStop(2);
} else if (_parent.one != this) {
trace("two");
highLight.gotoAndPlay(3);
_parent.two = this;
trace("_parent.one = " + _parent.one);
_parent.cardsCompare();
} else {
highLight.gotoAndStop(1);
_parent.one = null;
}
}
}
}
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 2
stop();
Symbol 153 MovieClip Frame 1
var cornertile = false;
Symbol 154 MovieClip Frame 1
myname = "";
stop();
t1.a1._visible = false;
Symbol 156 Button
on (press) {
_root.gotoAndPlay(29);
}
Symbol 157 MovieClip Frame 16
stop();
Symbol 160 Button
on (release) {
myname = _name;
trace(myname);
mynum = Number(myname.substr(4));
trace(mynum);
trace(_parent["cornertile" + mynum]);
if (_parent["cornertile" + mynum] == 1) {
if (_root.options != 0) {
if (_parent.one == null) {
_parent.one = this;
highLight.gotoAndStop(2);
} else if (_parent.one != this) {
highLight.gotoAndPlay(3);
_parent.two = this;
_parent.cardsCompare();
} else {
highLight.gotoAndStop(1);
_parent.one = null;
}
} else {
trace("red glow");
}
}
}
Symbol 162 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 2
stop();
Symbol 163 MovieClip Frame 1
myname = "";
stop();
t1.a1._visible = false;
Symbol 165 Button
on (press) {
_root.gotoAndPlay(41);
}
Symbol 166 MovieClip Frame 16
stop();
Symbol 169 Button
on (release) {
myname = _name;
trace(myname);
mynum = Number(myname.substr(4));
trace(mynum);
trace(_parent["cornertile" + mynum]);
if (_parent["cornertile" + mynum] == 1) {
if (_root.options != 0) {
if (_parent.one == null) {
_parent.one = this;
highLight.gotoAndStop(2);
} else if (_parent.one != this) {
highLight.gotoAndPlay(3);
_parent.two = this;
_parent.cardsCompare();
} else {
highLight.gotoAndStop(1);
_parent.one = null;
}
} else {
trace("red glow");
}
}
}
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 2
stop();
Symbol 172 MovieClip Frame 1
myname = "";
stop();
t1.a1._visible = false;
Symbol 174 Button
on (press) {
_root.gotoAndPlay(53);
}
Symbol 175 MovieClip Frame 16
stop();
Symbol 178 Button
on (release) {
myname = _name;
trace(myname);
mynum = Number(myname.substr(4));
trace(mynum);
trace(_parent["cornertile" + mynum]);
if (_parent["cornertile" + mynum] == 1) {
if (_root.options != 0) {
if (_parent.one == null) {
_parent.one = this;
highLight.gotoAndStop(2);
} else if (_parent.one != this) {
highLight.gotoAndPlay(3);
_parent.two = this;
_parent.cardsCompare();
} else {
highLight.gotoAndStop(1);
_parent.one = null;
}
} else {
trace("red glow");
}
}
}
Symbol 180 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 2
stop();
Symbol 181 MovieClip Frame 1
myname = "";
stop();
t1.a1._visible = false;
Symbol 183 Button
on (press) {
_root.gotoAndPlay(65);
}
Symbol 184 MovieClip Frame 16
stop();
Symbol 187 Button
on (release) {
myname = _name;
trace(myname);
mynum = Number(myname.substr(4));
trace(mynum);
trace(_parent["cornertile" + mynum]);
if (_parent["cornertile" + mynum] == 1) {
if (_root.options != 0) {
if (_parent.one == null) {
_parent.one = this;
highLight.gotoAndStop(2);
} else if (_parent.one != this) {
highLight.gotoAndPlay(3);
_parent.two = this;
_parent.cardsCompare();
} else {
highLight.gotoAndStop(1);
_parent.one = null;
}
} else {
trace("red glow");
}
}
}
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 2
stop();
Symbol 190 MovieClip Frame 1
myname = "";
stop();
t1.a1._visible = false;
Symbol 192 Button
on (press) {
_root.gotoAndPlay(77);
}
Symbol 193 MovieClip Frame 16
stop();
Symbol 196 Button
on (release) {
myname = _name;
trace(myname);
mynum = Number(myname.substr(4));
trace(mynum);
trace(_parent["cornertile" + mynum]);
if (_parent["cornertile" + mynum] == 1) {
if (_root.options != 0) {
if (_parent.one == null) {
_parent.one = this;
highLight.gotoAndStop(2);
} else if (_parent.one != this) {
highLight.gotoAndPlay(3);
_parent.two = this;
_parent.cardsCompare();
} else {
highLight.gotoAndStop(1);
_parent.one = null;
}
} else {
trace("red glow");
}
}
}
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 2
stop();
Symbol 199 MovieClip Frame 1
myname = "";
stop();
t1.a1._visible = false;
Symbol 201 Button
on (press) {
_root.gotoAndPlay(88);
}
Symbol 202 MovieClip Frame 16
stop();
Symbol 205 Button
on (release) {
myname = _name;
trace(myname);
mynum = Number(myname.substr(4));
trace(mynum);
trace(_parent["cornertile" + mynum]);
if (_parent["cornertile" + mynum] == 1) {
if (_root.options != 0) {
if (_parent.one == null) {
_parent.one = this;
highLight.gotoAndStop(2);
} else if (_parent.one != this) {
highLight.gotoAndPlay(3);
_parent.two = this;
_parent.cardsCompare();
} else {
highLight.gotoAndStop(1);
_parent.one = null;
}
} else {
trace("red glow");
}
}
}
Symbol 207 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 2
stop();
Symbol 208 MovieClip Frame 1
myname = "";
stop();
t1.a1._visible = false;
Symbol 216 Button
on (release) {
_root.snd1.musicObj.stop();
_root.gotoAndPlay(2);
}
Symbol 219 MovieClip Frame 16
stop();
Symbol 222 Button
on (release) {
myname = _name;
trace(myname);
mynum = Number(myname.substr(4));
trace(mynum);
trace(_parent["cornertile" + mynum]);
if (_parent["cornertile" + mynum] == 1) {
if (_root.options != 0) {
if (_parent.one == null) {
_parent.one = this;
highLight.gotoAndStop(2);
} else if (_parent.one != this) {
highLight.gotoAndPlay(3);
_parent.two = this;
_parent.cardsCompare();
} else {
highLight.gotoAndStop(1);
_parent.one = null;
}
} else {
trace("red glow");
}
}
}
Symbol 224 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 2
stop();
Symbol 225 MovieClip Frame 1
myname = "";
stop();
t1.a1._visible = false;
Symbol 233 Button
on (release) {
_root.snd1.musicObj.stop();
_root.gotoAndPlay(2);
}
Symbol 236 MovieClip Frame 18
stop();