Frame 1
fscommand ("showmenu", false);
Instance of Symbol 49 MovieClip in Frame 1
onClipEvent (load) {
this.swapDepths(35555);
}
Frame 2
optBlock.useHandCursor = false;
optBlock._visible = false;
_root.slidemusic_X = 0;
_root.slidesound_X = 0;
countmain = 0;
countsound = 0;
activate = 0;
stop();
flag = new Array();
_root.subLevel = 1;
_root.firstTime = 0;
_root.timerSpeed = 0;
gotoAndStop (4);
Frame 3
options_bt._visible = false;
Frame 4
stop();
Frame 5
function cardsCompare() {
cornertile();
oneObject = eval (one);
twoObject = eval (two);
if (oneObject._currentframe == twoObject._currentframe) {
one = null;
two = null;
_root.snd4.correctObj.start(0, 1);
clearMe = setInterval(FadeMe, 10, oneObject, twoObject);
count = count + 50;
_root.dbInterface.updateScore(_root.count);
balanceCards = balanceCards - 2;
if ((balanceCards == 0) && (timer._x < 450)) {
levelNumber = 1;
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.snd3.levelCompleteObj.start(0, 1);
_root.gotoAndStop("comLevel1");
}
} else {
_root.snd5.wrongObj.start(0, 1);
oneObject.highLight.gotoAndPlay(3);
twoObject.highLight.gotoAndPlay(3);
if (rePosition == true) {
i = 1;
while (i <= maxCards) {
if (this["card" + i]._currentframe != undefined) {
Set(["cornertile" + i], 1);
}
i++;
}
}
one = null;
two = null;
}
}
function FadeMe(oneObj, twoObj) {
var _local1 = oneObj;
var _local2 = twoObj;
if (_local1._xscale >= 30) {
_local1._xscale = _local1._xscale - decrement;
_local2._xscale = _local2._xscale - decrement;
_local1._yscale = _local1._yscale - decrement;
_local2._yscale = _local2._yscale - decrement;
} else {
removeMovieClip(_local1);
removeMovieClip(_local2);
cornertile();
clearInterval(clearMe);
}
}
var one = null;
var two = null;
count = 0;
rePosition = false;
_root.dbInterface.updateScore(_root.count);
maxCards = 102;
levelNumber = 1;
balanceCards = maxCards;
yAdjust = 6.4;
options_bt._visible = true;
i = 1;
while (i <= 3) {
this["cornertile" + i] = 0;
i++;
}
cornertile1 = 1;
cornertile5 = 1;
cornertile6 = 1;
cornertile7 = 1;
cornertile11 = 1;
cornertile12 = 1;
cornertile15 = 1;
cornertile16 = 1;
cornertile18 = 1;
cornertile19 = 1;
cornertile22 = 1;
cornertile23 = 1;
cornertile25 = 1;
cornertile26 = 1;
cornertile30 = 1;
cornertile31 = 1;
cornertile33 = 1;
cornertile34 = 1;
cornertile35 = 1;
cornertile36 = 1;
cornertile42 = 1;
cornertile43 = 1;
cornertile44 = 1;
cornertile45 = 1;
cornertile47 = 1;
cornertile48 = 1;
cornertile52 = 1;
cornertile53 = 1;
cornertile55 = 1;
cornertile56 = 1;
cornertile59 = 1;
cornertile60 = 1;
cornertile62 = 1;
cornertile63 = 1;
cornertile66 = 1;
cornertile67 = 1;
cornertile71 = 1;
cornertile72 = 1;
cornertile73 = 1;
cornertile77 = 1;
cornertile78 = 1;
cornertile80 = 1;
cornertile81 = 1;
cornertile82 = 1;
cornertile83 = 1;
cornertile84 = 1;
cornertile86 = 1;
cornertile87 = 1;
cornertile88 = 1;
cornertile89 = 1;
cornertile90 = 1;
cornertile92 = 1;
cornertile93 = 1;
cornertile94 = 1;
cornertile95 = 1;
cornertile96 = 1;
cornertile98 = 1;
cornertile99 = 1;
cornertile100 = 1;
cornertile101 = 1;
cornertile102 = 1;
decrement = 4;
Frame 7
if (_root.firstTime == 0) {
_root.firstTime = 1;
_root.snd1.musicObj.start(0, 10000);
}
function cardCreator() {
var _local1 = this;
extra = -65;
xExtra = 130;
i = 1;
while (i <= (maxCards / 2)) {
duplicateMovieClip (card, "card" + i, i);
ran = random(18) + 2;
_local1["card" + i].gotoAndStop(ran);
i++;
}
i = (maxCards / 2) + 1;
while (i <= maxCards) {
duplicateMovieClip (card, "card" + i, i);
_local1["card" + i].gotoAndStop(_local1["card" + (i - (maxCards / 2))]._currentframe);
i++;
}
i = 1;
while (i <= maxCards) {
if (i <= 5) {
_local1["card" + i]._x = (xExtra + 10) + ((i - 1) * 30);
_local1["card" + i]._y = extra + 135;
_local1["card" + i].swapDepths(9000 + i);
}
if (i == 6) {
_local1["card" + i]._x = (xExtra + 190) + ((i - 6) * 30);
_local1["card" + i]._y = extra + 135;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 7) && (i <= 11)) {
_local1["card" + i]._x = (xExtra + 250) + ((i - 7) * 30);
_local1["card" + i]._y = extra + 135;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 12) && (i <= 15)) {
_local1["card" + i]._x = (xExtra + 10) + ((i - 12) * 30);
_local1["card" + i]._y = extra + 179.6;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 16) && (i <= 18)) {
_local1["card" + i]._x = (xExtra + 160) + ((i - 16) * 30);
_local1["card" + i]._y = extra + 179.6;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 19) && (i <= 22)) {
_local1["card" + i]._x = (xExtra + 280) + ((i - 19) * 30);
_local1["card" + i]._y = extra + 179.6;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 23) && (i <= 25)) {
_local1["card" + i]._x = (xExtra + 10) + ((i - 23) * 30);
_local1["card" + i]._y = extra + 223.4;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 26) && (i <= 30)) {
_local1["card" + i]._x = (xExtra + 130) + ((i - 26) * 30);
_local1["card" + i]._y = extra + 223.4;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 31) && (i <= 33)) {
_local1["card" + i]._x = (xExtra + 310) + ((i - 31) * 30);
_local1["card" + i]._y = extra + 223.4;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 34) && (i <= 35)) {
_local1["card" + i]._x = (xExtra + 10) + ((i - 34) * 30);
_local1["card" + i]._y = extra + 267.4;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 36) && (i <= 42)) {
_local1["card" + i]._x = (xExtra + 100) + ((i - 36) * 30);
_local1["card" + i]._y = extra + 267.4;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 43) && (i <= 44)) {
_local1["card" + i]._x = (xExtra + 340) + ((i - 43) * 30);
_local1["card" + i]._y = extra + 267.4;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 45) && (i <= 47)) {
_local1["card" + i]._x = (xExtra + 10) + ((i - 45) * 30);
_local1["card" + i]._y = extra + 311.5;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 48) && (i <= 52)) {
_local1["card" + i]._x = (xExtra + 130) + ((i - 48) * 30);
_local1["card" + i]._y = extra + 311.5;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 53) && (i <= 55)) {
_local1["card" + i]._x = (xExtra + 310) + ((i - 53) * 30);
_local1["card" + i]._y = extra + 311.5;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 56) && (i <= 59)) {
_local1["card" + i]._x = (xExtra + 10) + ((i - 56) * 30);
_local1["card" + i]._y = extra + 355.6;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 60) && (i <= 62)) {
_local1["card" + i]._x = (xExtra + 160) + ((i - 60) * 30);
_local1["card" + i]._y = extra + 355.6;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 63) && (i <= 66)) {
_local1["card" + i]._x = (xExtra + 280) + ((i - 63) * 30);
_local1["card" + i]._y = extra + 355.6;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 67) && (i <= 71)) {
_local1["card" + i]._x = (xExtra + 10) + ((i - 67) * 30);
_local1["card" + i]._y = extra + 399.6;
_local1["card" + i].swapDepths(9000 + i);
}
if (i == 72) {
_local1["card" + i]._x = (xExtra + 190) + ((i - 72) * 30);
_local1["card" + i]._y = extra + 399.6;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 73) && (i <= 77)) {
_local1["card" + i]._x = (xExtra + 250) + ((i - 73) * 30);
_local1["card" + i]._y = extra + 399.6;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 78) && (i <= 80)) {
_local1["card" + i]._x = (xExtra + 304) + ((i - 78) * 30);
_local1["card" + i]._y = extra + 397.4;
_local1["card" + i].swapDepths(9300 + i);
}
if ((i >= 81) && (i <= 82)) {
_local1["card" + i]._x = (xExtra + 334) + ((i - 81) * 30);
_local1["card" + i]._y = extra + 353.6;
_local1["card" + i].swapDepths(9200 + i);
}
if (i == 83) {
_local1["card" + i]._x = (xExtra + 364) + ((i - 83) * 30);
_local1["card" + i]._y = extra + 309;
_local1["card" + i].swapDepths(9100 + i);
}
if ((i >= 84) && (i <= 86)) {
_local1["card" + i]._x = (xExtra + 306) + ((i - 84) * 30);
_local1["card" + i]._y = extra + 130;
_local1["card" + i].swapDepths(9300 + i);
}
if ((i >= 87) && (i <= 88)) {
_local1["card" + i]._x = (xExtra + 336) + ((i - 87) * 30);
_local1["card" + i]._y = extra + 174.6;
_local1["card" + i].swapDepths(9300 + i);
}
if (i == 89) {
_local1["card" + i]._x = (xExtra + 366) + ((i - 89) * 30);
_local1["card" + i]._y = extra + 218.4;
_local1["card" + i].swapDepths(9300 + i);
}
if ((i >= 90) && (i <= 92)) {
_local1["card" + i]._x = (xExtra + 4) + ((i - 90) * 30);
_local1["card" + i]._y = extra + 128;
_local1["card" + i].swapDepths(9300 + i);
}
if ((i >= 93) && (i <= 94)) {
_local1["card" + i]._x = (xExtra + 4) + ((i - 93) * 30);
_local1["card" + i]._y = extra + 172.6;
_local1["card" + i].swapDepths(9300 + i);
}
if (i == 95) {
_local1["card" + i]._x = (xExtra + 4) + ((i - 95) * 30);
_local1["card" + i]._y = extra + 216.4;
_local1["card" + i].swapDepths(9300 + i);
}
if ((i >= 96) && (i <= 98)) {
_local1["card" + i]._x = (xExtra + 4) + ((i - 96) * 30);
_local1["card" + i]._y = extra + 393.3;
_local1["card" + i].swapDepths(9300 + i);
}
if ((i >= 99) && (i <= 100)) {
_local1["card" + i]._x = (xExtra + 4) + ((i - 99) * 30);
_local1["card" + i]._y = extra + 349.3;
_local1["card" + i].swapDepths(9200 + i);
}
if (i == 101) {
_local1["card" + i]._x = (xExtra + 4) + ((i - 101) * 30);
_local1["card" + i]._y = extra + 304.9;
_local1["card" + i].swapDepths(9100 + i);
}
if (i == 102) {
_local1["card" + i]._x = (xExtra + 186) + ((i - 102) * 30);
_local1["card" + i]._y = extra + 262;
_local1["card" + i].swapDepths(9700 + i);
}
i++;
}
}
function cornertile() {
var _local1 = this;
i = 1;
while (i <= maxCards) {
if (i <= 4) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 8) && (i <= 10)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 13) && (i <= 14)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 17) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 20) && (i <= 21)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 24) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 27) && (i <= 29)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 32) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 37) && (i <= 41)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 46) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 49) && (i <= 51)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 54) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 57) && (i <= 58)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 61) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 64) && (i <= 65)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 68) && (i <= 70)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 74) && (i <= 76)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 79) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 85) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 91) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 97) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
i++;
}
}
function shuffleCard() {
var _local1 = this;
_root.snd7.shuffleObj.start(0, 1);
tileCurrentFrame = new Array();
i = 1;
while (i <= maxCards) {
flag[i] = 0;
i++;
}
i = 1;
while (i <= maxCards) {
tileCurrentFrame[i] = _local1["card" + i]._currentframe;
i++;
}
cardsRemoved = 0;
j = 1;
while (j <= maxCards) {
if (_local1["card" + j]._currentframe != undefined) {
swapRandom = undefined;
while (tileCurrentFrame[swapRandom] == undefined) {
swapRandom = Randomgenerator();
if (tileCurrentFrame[swapRandom] != undefined) {
_local1["card" + j].gotoAndStop(tileCurrentFrame[swapRandom]);
}
}
} else {
cardsRemoved++;
}
j++;
}
if (((maxCards - cardsRemoved) == 4) || ((maxCards - cardsRemoved) < 4)) {
cardReposition();
}
}
function cardReposition() {
var _local1 = this;
var _local2 = 0;
i = 1;
while (i <= maxCards) {
if (_local1["card" + i]._currentframe != undefined) {
_local1["card" + i]._x = (xExtra + 120) + (_local2 * 60);
_local1["card" + i]._y = 250 - yAdjust;
_local1["card" + i].swapDepths(1000 + _local2);
Set(["cornertile" + i], 1);
rePosition = true;
_local2++;
}
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 83 MovieClip "timer" in Frame 7
onClipEvent (load) {
once = 0;
temptimerX = this._x;
}
onClipEvent (enterFrame) {
if (_root.options != 0) {
this._x = this._x + (_root.timerSpeed + 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("gameOver");
}
}
}
Frame 15
trace(options_bt._visible);
options_bt._visible = false;
trace(options_bt._visible);
Frame 17
function cardsCompare() {
cornertile();
oneObject = eval (one);
twoObject = eval (two);
if (oneObject._currentframe == twoObject._currentframe) {
_root.snd4.correctObj.start(0, 1);
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.snd3.levelCompleteObj.start(0, 1);
_root.gotoAndStop("comLevel2");
}
} else {
_root.snd5.wrongObj.start(0, 1);
oneObject.highLight.gotoAndPlay(3);
twoObject.highLight.gotoAndPlay(3);
if (rePosition == true) {
i = 1;
while (i <= maxCards) {
if (this["card" + i]._currentframe != undefined) {
Set(["cornertile" + i], 1);
}
i++;
}
}
one = null;
two = null;
}
}
function FadeMe(oneObj, twoObj) {
var _local1 = oneObj;
var _local2 = twoObj;
if (_local1._xscale >= 30) {
_local1._xscale = _local1._xscale - decrement;
_local2._xscale = _local2._xscale - decrement;
_local1._yscale = _local1._yscale - decrement;
_local2._yscale = _local2._yscale - decrement;
} else {
removeMovieClip(_local1);
removeMovieClip(_local2);
cornertile();
clearInterval(clearMe);
}
}
var one = null;
var two = null;
maxCards = 122;
rePosition = false;
levelNumber = 2;
balanceCards = maxCards;
yAdjust = 6.4;
options_bt._visible = true;
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 = 4;
Frame 20
function cardCreator() {
var _local1 = this;
extra = -65;
XExtra = 130;
i = 1;
while (i <= (maxCards / 2)) {
duplicateMovieClip (card, "card" + i, i);
ran = random(18) + 2;
_local1["card" + i].gotoAndStop(ran);
i++;
}
i = (maxCards / 2) + 1;
while (i <= maxCards) {
duplicateMovieClip (card, "card" + i, i);
_local1["card" + i].gotoAndStop(_local1["card" + (i - (maxCards / 2))]._currentframe);
i++;
}
i = 1;
while (i <= maxCards) {
if (i <= 16) {
_local1["card" + i]._x = (XExtra + -30) + ((i - 1) * 30);
_local1["card" + i]._y = (extra + 350) - yAdjust;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 17) && (i <= 32)) {
_local1["card" + i]._x = (XExtra + -30) + ((i - 17) * 30);
_local1["card" + i]._y = extra + 298;
_local1["card" + i].swapDepths(9500 + i);
}
if ((i >= 33) && (i <= 48)) {
_local1["card" + i]._x = (XExtra + -30) + ((i - 33) * 30);
_local1["card" + i]._y = extra + 253;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 49) && (i <= 58)) {
_local1["card" + i]._x = (XExtra + 60) + ((i - 49) * 30);
_local1["card" + i]._y = extra + 208;
_local1["card" + i].swapDepths(8500 + i);
}
if ((i >= 59) && (i <= 64)) {
_local1["card" + i]._x = (XExtra + 120) + ((i - 59) * 30);
_local1["card" + i]._y = extra + 164;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 65) && (i <= 67)) {
_local1["card" + i]._x = (XExtra + 30) + ((i - 65) * 30);
_local1["card" + i]._y = extra + 388;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 68) && (i <= 70)) {
_local1["card" + i]._x = (XExtra + 300) + ((i - 68) * 30);
_local1["card" + i]._y = extra + 388;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 71) && (i <= 78)) {
_local1["card" + i]._x = (XExtra + 86) + ((i - 71) * 30);
_local1["card" + i]._y = extra + 202;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 79) && (i <= 90)) {
_local1["card" + i]._x = (XExtra + 24) + ((i - 79) * 30);
_local1["card" + i]._y = extra + 247;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 91) && (i <= 104)) {
_local1["card" + i]._x = (XExtra + -5) + ((i - 91) * 30);
_local1["card" + i]._y = extra + 292;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 105) && (i <= 108)) {
_local1["card" + i]._x = (XExtra + 140) + ((i - 105) * 30);
_local1["card" + i]._y = extra + 196;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 109) && (i <= 114)) {
_local1["card" + i]._x = (XExtra + 110) + ((i - 109) * 30);
_local1["card" + i]._y = extra + 241;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 115) && (i <= 122)) {
_local1["card" + i]._x = (XExtra + 80) + ((i - 115) * 30);
_local1["card" + i]._y = extra + 286;
_local1["card" + i].swapDepths(11000 + i);
}
i++;
}
}
function cornertile() {
var _local1 = this;
i = 1;
while (i <= maxCards) {
if (i <= 15) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 18) && (i <= 31)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 34) && (i <= 47)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 50) && (i <= 57)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 60) && (i <= 63)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 66) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 69) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 72) && (i <= 77)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 80) && (i <= 89)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 92) && (i <= 103)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 106) && (i <= 107)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 110) && (i <= 113)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 116) && (i <= 121)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
i++;
}
}
stop();
cardCreator();
cornertile();
Instance of Symbol 161 MovieClip "timer" in Frame 20
onClipEvent (load) {
once = 0;
}
onClipEvent (enterFrame) {
if (_root.options != 0) {
this._x = this._x + (_root.timerSpeed + 0.05);
if ((this._x >= 450) && (once == 0)) {
i = 1;
while (i <= _parent.maxCards) {
removeMovieClip(_parent["card" + i]);
i++;
}
once = 1;
_root.gotoAndStop("gameOver");
}
}
}
Frame 27
options_bt._visible = false;
Frame 29
function cardsCompare() {
cornertile();
oneObject = eval (one);
twoObject = eval (two);
if (oneObject._currentframe == twoObject._currentframe) {
_root.snd4.correctObj.start(0, 1);
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.snd3.levelCompleteObj.start(0, 1);
_root.gotoAndStop("comLevel3");
}
} else {
_root.snd5.wrongObj.start(0, 1);
oneObject.highLight.gotoAndPlay(3);
twoObject.highLight.gotoAndPlay(3);
if (rePosition == true) {
i = 1;
while (i <= maxCards) {
if (this["card" + i]._currentframe != undefined) {
Set(["cornertile" + i], 1);
}
i++;
}
}
one = null;
two = null;
}
}
function FadeMe(oneObj, twoObj) {
var _local1 = oneObj;
var _local2 = twoObj;
if (_local1._xscale >= 30) {
_local1._xscale = _local1._xscale - decrement;
_local2._xscale = _local2._xscale - decrement;
_local1._yscale = _local1._yscale - decrement;
_local2._yscale = _local2._yscale - decrement;
} else {
removeMovieClip(_local1);
removeMovieClip(_local2);
cornertile();
clearInterval(clearMe);
}
}
var one = null;
var two = null;
maxCards = 134;
rePosition = false;
levelNumber = 3;
balanceCards = maxCards;
yAdjust = 6.4;
options_bt._visible = true;
i = 1;
while (i <= 3) {
this["cornertile" + i] = 0;
i++;
}
cornertile1 = 1;
cornertile12 = 1;
cornertile13 = 1;
cornertile22 = 1;
cornertile23 = 1;
cornertile30 = 1;
cornertile31 = 1;
cornertile36 = 1;
cornertile37 = 1;
cornertile40 = 1;
cornertile41 = 1;
cornertile42 = 1;
cornertile43 = 1;
cornertile54 = 1;
cornertile55 = 1;
cornertile57 = 1;
cornertile58 = 1;
cornertile59 = 1;
cornertile60 = 1;
cornertile62 = 1;
cornertile63 = 1;
cornertile64 = 1;
cornertile65 = 1;
cornertile76 = 1;
cornertile77 = 1;
cornertile86 = 1;
cornertile87 = 1;
cornertile94 = 1;
cornertile95 = 1;
cornertile100 = 1;
cornertile101 = 1;
cornertile104 = 1;
cornertile105 = 1;
cornertile106 = 1;
cornertile107 = 1;
cornertile118 = 1;
cornertile119 = 1;
cornertile120 = 1;
cornertile121 = 1;
cornertile122 = 1;
cornertile123 = 1;
cornertile125 = 1;
cornertile126 = 1;
cornertile129 = 1;
cornertile130 = 1;
cornertile134 = 1;
decrement = 4;
Frame 32
function cardCreator() {
var _local1 = this;
xExtra = 130;
i = 1;
while (i <= (maxCards / 2)) {
duplicateMovieClip (card, "card" + i, i);
ran = random(18) + 2;
_local1["card" + i].gotoAndStop(ran);
i++;
}
i = (maxCards / 2) + 1;
while (i <= maxCards) {
duplicateMovieClip (card, "card" + i, i);
_local1["card" + i].gotoAndStop(_local1["card" + (i - (maxCards / 2))]._currentframe);
i++;
}
i = 1;
while (i <= maxCards) {
if (i <= 12) {
_local1["card" + i]._x = (xExtra + 40) + ((i - 1) * 30);
_local1["card" + i]._y = tilePos;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 13) && (i <= 22)) {
_local1["card" + i]._x = (xExtra + 70) + ((i - 13) * 30);
_local1["card" + i]._y = tilePos - tileHeight;
_local1["card" + i].swapDepths(7800 + i);
}
if ((i >= 23) && (i <= 30)) {
_local1["card" + i]._x = (xExtra + 100) + ((i - 23) * 30);
_local1["card" + i]._y = tilePos - (tileHeight * 2);
_local1["card" + i].swapDepths(7600 + i);
}
if ((i >= 31) && (i <= 36)) {
_local1["card" + i]._x = (xExtra + 130) + ((i - 31) * 30);
_local1["card" + i]._y = tilePos - (tileHeight * 3);
_local1["card" + i].swapDepths(7400 + i);
}
if ((i >= 37) && (i <= 40)) {
_local1["card" + i]._x = (xExtra + 160) + ((i - 37) * 30);
_local1["card" + i]._y = tilePos - (tileHeight * 4);
_local1["card" + i].swapDepths(7200 + i);
}
if ((i >= 41) && (i <= 42)) {
_local1["card" + i]._x = (xExtra + 190) + ((i - 41) * 30);
_local1["card" + i]._y = tilePos - (tileHeight * 5);
_local1["card" + i].swapDepths(7100 + i);
}
if ((i >= 43) && (i <= 54)) {
_local1["card" + i]._x = (xExtra + 40) + ((i - 43) * 30);
_local1["card" + i]._y = tilePos - (tileHeight * 6);
_local1["card" + i].swapDepths(7000 + i);
}
if ((i >= 55) && (i <= 57)) {
_local1["card" + i]._x = (xExtra + 10) + ((i - 55) * 30);
_local1["card" + i]._y = tilePos - (tileHeight * 5);
_local1["card" + i].swapDepths(7000 + i);
}
if ((i >= 58) && (i <= 59)) {
_local1["card" + i]._x = (xExtra + 20) + ((i - 58) * 30);
_local1["card" + i]._y = tilePos - (tileHeight * 4);
_local1["card" + i].swapDepths(7000 + i);
}
if ((i >= 60) && (i <= 62)) {
_local1["card" + i]._x = (xExtra + 340) + ((i - 60) * 30);
_local1["card" + i]._y = tilePos - (tileHeight * 5);
_local1["card" + i].swapDepths(7000 + i);
}
if ((i >= 63) && (i <= 64)) {
_local1["card" + i]._x = (xExtra + 360) + ((i - 63) * 30);
_local1["card" + i]._y = tilePos - (tileHeight * 4);
_local1["card" + i].swapDepths(7000 + i);
}
if ((i >= 65) && (i <= 76)) {
_local1["card" + i]._x = (xExtra + 36) + ((i - 65) * 30);
_local1["card" + i]._y = tileTopPos;
_local1["card" + i].swapDepths(12000 + i);
}
if ((i >= 77) && (i <= 86)) {
_local1["card" + i]._x = (xExtra + 66) + ((i - 77) * 30);
_local1["card" + i]._y = tileTopPos - tileHeight;
_local1["card" + i].swapDepths(11800 + i);
}
if ((i >= 87) && (i <= 94)) {
_local1["card" + i]._x = (xExtra + 96) + ((i - 87) * 30);
_local1["card" + i]._y = tileTopPos - (tileHeight * 2);
_local1["card" + i].swapDepths(11600 + i);
}
if ((i >= 95) && (i <= 100)) {
_local1["card" + i]._x = (xExtra + 126) + ((i - 95) * 30);
_local1["card" + i]._y = tileTopPos - (tileHeight * 3);
_local1["card" + i].swapDepths(11400 + i);
}
if ((i >= 101) && (i <= 104)) {
_local1["card" + i]._x = (xExtra + 156) + ((i - 101) * 30);
_local1["card" + i]._y = tileTopPos - (tileHeight * 4);
_local1["card" + i].swapDepths(11200 + i);
}
if ((i >= 105) && (i <= 106)) {
_local1["card" + i]._x = (xExtra + 186) + ((i - 105) * 30);
_local1["card" + i]._y = tileTopPos - (tileHeight * 5);
_local1["card" + i].swapDepths(11100 + i);
}
if ((i >= 107) && (i <= 118)) {
_local1["card" + i]._x = (xExtra + 36) + ((i - 107) * 30);
_local1["card" + i]._y = tileTopPos - (tileHeight * 6);
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 119) && (i <= 120)) {
_local1["card" + i]._x = (xExtra + 6) + ((i - 119) * 30);
_local1["card" + i]._y = (tileTopPos - (tileHeight * 5)) + 0.4;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 121) && (i <= 122)) {
_local1["card" + i]._x = (xExtra + 16) + ((i - 121) * 30);
_local1["card" + i]._y = (tileTopPos - (tileHeight * 4)) + 0.4;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 123) && (i <= 125)) {
_local1["card" + i]._x = (xExtra + 336) + ((i - 123) * 30);
_local1["card" + i]._y = (tileTopPos - (tileHeight * 5)) + 0.4;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 126) && (i <= 129)) {
_local1["card" + i]._x = (xExtra + 150) + ((i - 126) * 30);
_local1["card" + i]._y = (tileTopPos - (tileHeight * 2)) - 6;
_local1["card" + i].swapDepths(13000 + i);
}
if ((i >= 130) && (i <= 134)) {
_local1["card" + i]._x = (xExtra + 150) + ((i - 130) * 30);
_local1["card" + i]._y = (tileTopPos - (tileHeight * 1)) - 6;
_local1["card" + i].swapDepths(13000 + i);
}
i++;
}
}
function cornertile() {
var _local1 = this;
i = 1;
while (i <= maxCards) {
if (i <= 11) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 14) && (i <= 21)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 24) && (i <= 29)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 32) && (i <= 35)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 38) && (i <= 39)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 44) && (i <= 53)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 56) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 61) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 66) && (i <= 75)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 78) && (i <= 85)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 88) && (i <= 93)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 96) && (i <= 99)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 102) && (i <= 103)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 108) && (i <= 117)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 124) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 127) && (i <= 128)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 131) && (i <= 133)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
i++;
}
}
stop();
tileHeight = 44;
tilePos = 340.4;
tileTopPos = 335.4;
cardCreator();
cornertile();
Instance of Symbol 176 MovieClip "timer" in Frame 32
onClipEvent (load) {
once = 0;
}
onClipEvent (enterFrame) {
if (_root.options != 0) {
this._x = this._x + (_root.timerSpeed + 0.05);
if ((this._x >= 450) && (once == 0)) {
i = 1;
while (i <= _parent.maxCards) {
removeMovieClip(_parent["card" + i]);
i++;
}
once = 1;
_root.gotoAndStop("gameOver");
}
}
}
Frame 39
options_bt._visible = false;
Frame 41
function cardsCompare() {
cornertile();
oneObject = eval (one);
twoObject = eval (two);
if (oneObject._currentframe == twoObject._currentframe) {
_root.snd4.correctObj.start(0, 1);
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.snd3.levelCompleteObj.start(0, 1);
_root.gotoAndStop("comLevel4");
}
} else {
_root.snd5.wrongObj.start(0, 1);
oneObject.highLight.gotoAndPlay(3);
twoObject.highLight.gotoAndPlay(3);
if (rePosition == true) {
i = 1;
while (i <= maxCards) {
if (this["card" + i]._currentframe != undefined) {
Set(["cornertile" + i], 1);
}
i++;
}
}
one = null;
two = null;
}
}
function FadeMe(oneObj, twoObj) {
var _local1 = oneObj;
var _local2 = twoObj;
if (_local1._xscale >= 30) {
_local1._xscale = _local1._xscale - decrement;
_local2._xscale = _local2._xscale - decrement;
_local1._yscale = _local1._yscale - decrement;
_local2._yscale = _local2._yscale - decrement;
} else {
removeMovieClip(_local1);
removeMovieClip(_local2);
cornertile();
clearInterval(clearMe);
}
}
var one = null;
var two = null;
maxCards = 126;
rePosition = false;
levelNumber = 4;
balanceCards = maxCards;
yAdjust = 6.4;
options_bt._visible = true;
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 = 4;
Frame 44
function cardCreator() {
var _local1 = this;
extra = -65;
xExtra = 130;
i = 1;
while (i <= (maxCards / 2)) {
duplicateMovieClip (card, "card" + i, i);
ran = random(18) + 2;
_local1["card" + i].gotoAndStop(ran);
i++;
}
i = (maxCards / 2) + 1;
while (i <= maxCards) {
duplicateMovieClip (card, "card" + i, i);
_local1["card" + i].gotoAndStop(_local1["card" + (i - (maxCards / 2))]._currentframe);
i++;
}
i = 1;
while (i <= maxCards) {
if (i <= 12) {
_local1["card" + i]._x = (xExtra + 0) + ((i - 1) * 30);
_local1["card" + i]._y = (extra + 145) - yAdjust;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 13) && (i <= 24)) {
_local1["card" + i]._x = (xExtra + 0) + ((i - 13) * 30);
_local1["card" + i]._y = extra + 183.1;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 25) && (i <= 36)) {
_local1["card" + i]._x = (xExtra + 0) + ((i - 25) * 30);
_local1["card" + i]._y = extra + 228;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 37) && (i <= 48)) {
_local1["card" + i]._x = (xExtra + 0) + ((i - 37) * 30);
_local1["card" + i]._y = extra + 273;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 49) && (i <= 60)) {
_local1["card" + i]._x = (xExtra + 0) + ((i - 49) * 30);
_local1["card" + i]._y = extra + 318;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 61) && (i <= 72)) {
_local1["card" + i]._x = (xExtra + 0) + ((i - 61) * 30);
_local1["card" + i]._y = extra + 363;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 73) && (i <= 84)) {
_local1["card" + i]._x = (xExtra + -5) + ((i - 73) * 30);
_local1["card" + i]._y = (extra + 140) - yAdjust;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 85) && (i <= 92)) {
_local1["card" + i]._x = (xExtra + 52) + ((i - 85) * 30);
_local1["card" + i]._y = extra + 178.1;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 93) && (i <= 98)) {
_local1["card" + i]._x = (xExtra + 82) + ((i - 93) * 30);
_local1["card" + i]._y = extra + 223;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 99) && (i <= 102)) {
_local1["card" + i]._x = (xExtra + 112) + ((i - 99) * 30);
_local1["card" + i]._y = extra + 268;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 103) && (i <= 110)) {
_local1["card" + i]._x = (xExtra + 54) + ((i - 103) * 30);
_local1["card" + i]._y = extra + 313.4;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 111) && (i <= 122)) {
_local1["card" + i]._x = (xExtra + 0) + ((i - 111) * 30);
_local1["card" + i]._y = extra + 358;
_local1["card" + i].swapDepths(11000 + i);
}
if (i == 123) {
_local1["card" + i]._x = xExtra + 370;
_local1["card" + i]._y = extra + 370;
_local1["card" + i].swapDepths(11000 + i);
}
if (i == 124) {
_local1["card" + i]._x = xExtra + 408;
_local1["card" + i]._y = extra + 400;
_local1["card" + i].swapDepths(11000 + i);
}
if (i == 125) {
_local1["card" + i]._x = xExtra + 448;
_local1["card" + i]._y = extra + 400;
_local1["card" + i].swapDepths(10000 + i);
}
if (i == 126) {
_local1["card" + i]._x = xExtra + 448;
_local1["card" + i]._y = extra + 400;
_local1["card" + i].swapDepths(11000 + i);
}
i++;
}
}
function cornertile() {
var _local1 = this;
i = 1;
while (i <= maxCards) {
if (i <= 11) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 14) && (i <= 23)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 26) && (i <= 35)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 38) && (i <= 47)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 50) && (i <= 59)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 62) && (i <= 71)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 74) && (i <= 83)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 86) && (i <= 91)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 94) && (i <= 97)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 100) && (i <= 101)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 104) && (i <= 109)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 112) && (i <= 121)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
i++;
}
}
stop();
cardCreator();
cornertile();
Instance of Symbol 189 MovieClip "timer" in Frame 44
onClipEvent (load) {
once = 0;
}
onClipEvent (enterFrame) {
if (_root.options != 0) {
this._x = this._x + (_root.timerSpeed + 0.1);
if ((this._x >= 450) && (once == 0)) {
i = 1;
while (i <= _parent.maxCards) {
removeMovieClip(_parent["card" + i]);
i++;
}
once = 1;
_root.gotoAndStop("gameOver");
}
}
}
Frame 51
options_bt._visible = false;
Frame 53
function cardsCompare() {
cornertile();
oneObject = eval (one);
twoObject = eval (two);
if (oneObject._currentframe == twoObject._currentframe) {
_root.snd4.correctObj.start(0, 1);
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.snd3.levelCompleteObj.start(0, 1);
_root.gotoAndStop("comLevel5");
}
} else {
_root.snd5.wrongObj.start(0, 1);
oneObject.highLight.gotoAndPlay(3);
twoObject.highLight.gotoAndPlay(3);
if (rePosition == true) {
i = 1;
while (i <= maxCards) {
if (this["card" + i]._currentframe != undefined) {
Set(["cornertile" + i], 1);
}
i++;
}
}
one = null;
two = null;
}
}
function FadeMe(oneObj, twoObj) {
var _local1 = oneObj;
var _local2 = twoObj;
if (_local1._xscale >= 30) {
_local1._xscale = _local1._xscale - decrement;
_local2._xscale = _local2._xscale - decrement;
_local1._yscale = _local1._yscale - decrement;
_local2._yscale = _local2._yscale - decrement;
} else {
removeMovieClip(_local1);
removeMovieClip(_local2);
cornertile();
clearInterval(clearMe);
}
}
var one = null;
var two = null;
maxCards = 138;
rePosition = false;
levelNumber = 5;
balanceCards = maxCards;
yAdjust = 6.4;
options_bt._visible = true;
i = 1;
while (i <= 3) {
this["cornertile" + i] = 0;
i++;
}
cornertile1 = 1;
cornertile4 = 1;
cornertile5 = 1;
cornertile6 = 1;
cornertile9 = 1;
cornertile10 = 1;
cornertile13 = 1;
cornertile14 = 1;
cornertile16 = 1;
cornertile17 = 1;
cornertile20 = 1;
cornertile21 = 1;
cornertile22 = 1;
cornertile32 = 1;
cornertile33 = 1;
cornertile34 = 1;
cornertile44 = 1;
cornertile45 = 1;
cornertile48 = 1;
cornertile49 = 1;
cornertile51 = 1;
cornertile52 = 1;
cornertile55 = 1;
cornertile56 = 1;
cornertile59 = 1;
cornertile60 = 1;
cornertile62 = 1;
cornertile63 = 1;
cornertile66 = 1;
cornertile67 = 1;
cornertile69 = 1;
cornertile70 = 1;
cornertile71 = 1;
cornertile72 = 1;
cornertile74 = 1;
cornertile75 = 1;
cornertile78 = 1;
cornertile79 = 1;
cornertile82 = 1;
cornertile83 = 1;
cornertile86 = 1;
cornertile87 = 1;
cornertile90 = 1;
cornertile91 = 1;
cornertile94 = 1;
cornertile95 = 1;
cornertile98 = 1;
cornertile99 = 1;
cornertile102 = 1;
cornertile103 = 1;
cornertile106 = 1;
cornertile107 = 1;
cornertile110 = 1;
cornertile111 = 1;
cornertile114 = 1;
cornertile115 = 1;
cornertile118 = 1;
cornertile119 = 1;
cornertile122 = 1;
cornertile123 = 1;
cornertile125 = 1;
cornertile126 = 1;
cornertile128 = 1;
cornertile129 = 1;
cornertile130 = 1;
cornertile131 = 1;
cornertile132 = 1;
cornertile133 = 1;
cornertile134 = 1;
cornertile135 = 1;
cornertile136 = 1;
cornertile137 = 1;
cornertile138 = 1;
decrement = 4;
Frame 56
function cardCreator() {
var _local1 = this;
xExtra = 130;
i = 1;
while (i <= (maxCards / 2)) {
duplicateMovieClip (card, "card" + i, i);
ran = random(18) + 2;
_local1["card" + i].gotoAndStop(ran);
i++;
}
i = (maxCards / 2) + 1;
while (i <= maxCards) {
duplicateMovieClip (card, "card" + i, i);
_local1["card" + i].gotoAndStop(_local1["card" + (i - (maxCards / 2))]._currentframe);
i++;
}
i = 1;
while (i <= maxCards) {
if (i <= 4) {
_local1["card" + i]._x = (xExtra + -20) + ((i - 1) * 30);
_local1["card" + i]._y = tilePos;
_local1["card" + i].swapDepths(8000 + i);
}
if (i == 5) {
_local1["card" + i]._x = (xExtra + 190) + ((i - 5) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 6)) - 1.6;
_local1["card" + i].swapDepths(8200 + i);
}
if ((i >= 6) && (i <= 9)) {
_local1["card" + i]._x = (xExtra + 310) + ((i - 6) * 30);
_local1["card" + i]._y = tilePos;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 10) && (i <= 13)) {
_local1["card" + i]._x = (xExtra + 10) + ((i - 10) * 30);
_local1["card" + i]._y = tilePos + tileHeight;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 14) && (i <= 16)) {
_local1["card" + i]._x = (xExtra + 160) + ((i - 14) * 30);
_local1["card" + i]._y = tilePos + tileHeight;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 17) && (i <= 20)) {
_local1["card" + i]._x = (xExtra + 280) + ((i - 17) * 30);
_local1["card" + i]._y = tilePos + tileHeight;
_local1["card" + i].swapDepths(8000 + i);
}
if (i == 21) {
_local1["card" + i]._x = (xExtra + 10) + ((i - 21) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 2)) + 20;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 22) && (i <= 32)) {
_local1["card" + i]._x = (xExtra + 40) + ((i - 22) * 30);
_local1["card" + i]._y = tilePos + (tileHeight * 2);
_local1["card" + i].swapDepths(8000 + i);
}
if (i == 33) {
_local1["card" + i]._x = (xExtra + 370) + ((i - 33) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 2)) + 20;
_local1["card" + i].swapDepths(8200 + i);
}
if ((i >= 34) && (i <= 44)) {
_local1["card" + i]._x = (xExtra + 40) + ((i - 34) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 3)) - 0.4;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 45) && (i <= 48)) {
_local1["card" + i]._x = (xExtra + 10) + ((i - 45) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 4)) - 1.2;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 49) && (i <= 51)) {
_local1["card" + i]._x = (xExtra + 160) + ((i - 49) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 4)) - 1.2;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 52) && (i <= 55)) {
_local1["card" + i]._x = (xExtra + 280) + ((i - 52) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 4)) - 1.2;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 56) && (i <= 59)) {
_local1["card" + i]._x = (xExtra + -20) + ((i - 56) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 5)) - 1.2;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 60) && (i <= 62)) {
_local1["card" + i]._x = (xExtra + 160) + ((i - 60) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 5)) - 1.2;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 63) && (i <= 66)) {
_local1["card" + i]._x = (xExtra + 310) + ((i - 63) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 5)) - 1.2;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 67) && (i <= 69)) {
_local1["card" + i]._x = (xExtra + -20) + ((i - 67) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 6)) - 1.6;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 70) && (i <= 71)) {
_local1["card" + i]._x = (xExtra + 180) + ((i - 70) * 30);
_local1["card" + i]._y = tilePos;
_local1["card" + i].swapDepths(7800 + i);
}
if ((i >= 72) && (i <= 74)) {
_local1["card" + i]._x = (xExtra + 340) + ((i - 72) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 6)) - 1.6;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 75) && (i <= 78)) {
_local1["card" + i]._x = (xExtra + -25) + ((i - 75) * 30);
_local1["card" + i]._y = tileTopPos;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 79) && (i <= 82)) {
_local1["card" + i]._x = (xExtra + 305) + ((i - 79) * 30);
_local1["card" + i]._y = tileTopPos;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 83) && (i <= 86)) {
_local1["card" + i]._x = (xExtra + 5) + ((i - 83) * 30);
_local1["card" + i]._y = tileTopPos + tileHeight;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 87) && (i <= 90)) {
_local1["card" + i]._x = (xExtra + 275) + ((i - 87) * 30);
_local1["card" + i]._y = tileTopPos + tileHeight;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 91) && (i <= 94)) {
_local1["card" + i]._x = (xExtra + 35) + ((i - 91) * 30);
_local1["card" + i]._y = tileTopPos + (tileHeight * 2);
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 95) && (i <= 98)) {
_local1["card" + i]._x = (xExtra + 245) + ((i - 95) * 30);
_local1["card" + i]._y = tileTopPos + (tileHeight * 2);
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 99) && (i <= 102)) {
_local1["card" + i]._x = (xExtra + 35) + ((i - 99) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 3)) - 0.4;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 103) && (i <= 106)) {
_local1["card" + i]._x = (xExtra + 245) + ((i - 103) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 3)) - 0.4;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 107) && (i <= 110)) {
_local1["card" + i]._x = (xExtra + 5) + ((i - 107) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 4)) - 1.2;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 111) && (i <= 114)) {
_local1["card" + i]._x = (xExtra + 275) + ((i - 111) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 4)) - 1.2;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 115) && (i <= 118)) {
_local1["card" + i]._x = (xExtra + -25) + ((i - 115) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 5)) - 1.2;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 119) && (i <= 122)) {
_local1["card" + i]._x = (xExtra + 305) + ((i - 119) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 5)) - 1.2;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 123) && (i <= 125)) {
_local1["card" + i]._x = (xExtra + -25) + ((i - 123) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 6)) - 1.6;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 126) && (i <= 128)) {
_local1["card" + i]._x = (xExtra + 335) + ((i - 126) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 6)) - 1.6;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 129) && (i <= 130)) {
_local1["card" + i]._x = (xExtra + 0) + ((i - 129) * 30);
_local1["card" + i]._y = tileTopPos1 + tileHeight;
_local1["card" + i].swapDepths(8700 + i);
}
if (i == 131) {
_local1["card" + i]._x = (xExtra + 60) + ((i - 131) * 30);
_local1["card" + i]._y = tileTopPos1 + (tileHeight * 3);
_local1["card" + i].swapDepths(8700 + i);
}
if ((i >= 132) && (i <= 133)) {
_local1["card" + i]._x = (xExtra + -30) + ((i - 132) * 30);
_local1["card" + i]._y = tileTopPos1 + (tileHeight * 5);
_local1["card" + i].swapDepths(8700 + i);
}
if ((i >= 134) && (i <= 135)) {
_local1["card" + i]._x = (xExtra + 330) + ((i - 134) * 30);
_local1["card" + i]._y = tileTopPos1 + tileHeight;
_local1["card" + i].swapDepths(8700 + i);
}
if (i == 136) {
_local1["card" + i]._x = (xExtra + 300) + ((i - 136) * 30);
_local1["card" + i]._y = tileTopPos1 + (tileHeight * 3);
_local1["card" + i].swapDepths(8700 + i);
}
if ((i >= 137) && (i <= 138)) {
_local1["card" + i]._x = (xExtra + 360) + ((i - 137) * 30);
_local1["card" + i]._y = tileTopPos1 + (tileHeight * 5);
_local1["card" + i].swapDepths(8700 + i);
}
i++;
}
}
function cornertile() {
var _local1 = this;
i = 1;
while (i <= maxCards) {
if (i <= 3) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 7) && (i <= 8)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 11) && (i <= 12)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 15) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 18) && (i <= 19)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 23) && (i <= 31)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 35) && (i <= 43)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 46) && (i <= 47)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 50) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 53) && (i <= 54)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 57) && (i <= 58)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 61) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 64) && (i <= 65)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 68) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 73) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 76) && (i <= 77)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 80) && (i <= 81)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 84) && (i <= 85)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 88) && (i <= 89)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 92) && (i <= 93)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 96) && (i <= 97)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 100) && (i <= 101)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 104) && (i <= 105)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 108) && (i <= 109)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 112) && (i <= 113)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 116) && (i <= 117)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 120) && (i <= 121)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 124) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 127) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
i++;
}
}
stop();
tileHeight = 44.4;
tilePos = 70;
tileTopPos = 65;
tileTopPos1 = 60;
cardCreator();
cornertile();
Instance of Symbol 202 MovieClip "timer" in Frame 56
onClipEvent (load) {
once = 0;
}
onClipEvent (enterFrame) {
if (_root.options != 0) {
this._x = this._x + (_root.timerSpeed + 0.1);
if ((this._x >= 450) && (once == 0)) {
i = 1;
while (i <= _parent.maxCards) {
removeMovieClip(_parent["card" + i]);
i++;
}
once = 1;
_root.gotoAndStop("gameOver");
}
}
}
Frame 63
options_bt._visible = false;
Frame 65
function cardsCompare() {
cornertile();
oneObject = eval (one);
twoObject = eval (two);
if (oneObject._currentframe == twoObject._currentframe) {
_root.snd4.correctObj.start(0, 1);
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.snd3.levelCompleteObj.start(0, 1);
_root.gotoAndStop("comLevel6");
}
} else {
_root.snd5.wrongObj.start(0, 1);
oneObject.highLight.gotoAndPlay(3);
twoObject.highLight.gotoAndPlay(3);
if (rePosition == true) {
i = 1;
while (i <= maxCards) {
if (this["card" + i]._currentframe != undefined) {
Set(["cornertile" + i], 1);
}
i++;
}
}
one = null;
two = null;
}
}
function FadeMe(oneObj, twoObj) {
var _local1 = oneObj;
var _local2 = twoObj;
if (_local1._xscale >= 30) {
_local1._xscale = _local1._xscale - decrement;
_local2._xscale = _local2._xscale - decrement;
_local1._yscale = _local1._yscale - decrement;
_local2._yscale = _local2._yscale - decrement;
} else {
removeMovieClip(_local1);
removeMovieClip(_local2);
cornertile();
clearInterval(clearMe);
}
}
var one = null;
var two = null;
maxCards = 128;
rePosition = false;
levelNumber = 6;
balanceCards = maxCards;
yAdjust = 6.4;
options_bt._visible = true;
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 = 4;
Frame 68
function cardCreator() {
var _local1 = this;
extra = -65;
xExtra = 130;
i = 1;
while (i <= (maxCards / 2)) {
duplicateMovieClip (card, "card" + i, i);
ran = random(18) + 2;
_local1["card" + i].gotoAndStop(ran);
i++;
}
i = (maxCards / 2) + 1;
while (i <= maxCards) {
duplicateMovieClip (card, "card" + i, i);
_local1["card" + i].gotoAndStop(_local1["card" + (i - (maxCards / 2))]._currentframe);
i++;
}
i = 1;
while (i <= maxCards) {
if (i <= 12) {
_local1["card" + i]._x = (xExtra + 40) + ((i - 1) * 30);
_local1["card" + i]._y = (extra + 180) - yAdjust;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 13) && (i <= 16)) {
_local1["card" + i]._x = (xExtra + 160) + ((i - 13) * 30);
_local1["card" + i]._y = extra + 130;
_local1["card" + i].swapDepths(9500 + i);
}
if ((i >= 17) && (i <= 22)) {
_local1["card" + i]._x = (xExtra + 130) + ((i - 17) * 30);
_local1["card" + i]._y = extra + 218;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 23) && (i <= 28)) {
_local1["card" + i]._x = (xExtra + 130) + ((i - 23) * 30);
_local1["card" + i]._y = extra + 263;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 29) && (i <= 34)) {
_local1["card" + i]._x = (xExtra + 130) + ((i - 29) * 30);
_local1["card" + i]._y = extra + 308;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 35) && (i <= 48)) {
_local1["card" + i]._x = (xExtra + 10) + ((i - 35) * 30);
_local1["card" + i]._y = extra + 353;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 49) && (i <= 62)) {
_local1["card" + i]._x = (xExtra + 10) + ((i - 49) * 30);
_local1["card" + i]._y = extra + 398;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 63) && (i <= 66)) {
_local1["card" + i]._x = (xExtra + -30) + ((i - 63) * 30);
_local1["card" + i]._y = extra + 238;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 67) && (i <= 70)) {
_local1["card" + i]._x = (xExtra + -30) + ((i - 67) * 30);
_local1["card" + i]._y = extra + 283;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 71) && (i <= 74)) {
_local1["card" + i]._x = (xExtra + 350) + ((i - 71) * 30);
_local1["card" + i]._y = extra + 238;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 75) && (i <= 78)) {
_local1["card" + i]._x = (xExtra + 350) + ((i - 75) * 30);
_local1["card" + i]._y = extra + 283;
_local1["card" + i].swapDepths(9000 + i);
}
if ((i >= 79) && (i <= 80)) {
_local1["card" + i]._x = (xExtra + -4) + ((i - 79) * 30);
_local1["card" + i]._y = extra + 232;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 81) && (i <= 82)) {
_local1["card" + i]._x = (xExtra + -4) + ((i - 81) * 30);
_local1["card" + i]._y = extra + 277;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 83) && (i <= 84)) {
_local1["card" + i]._x = (xExtra + 376) + ((i - 83) * 30);
_local1["card" + i]._y = extra + 232;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 85) && (i <= 86)) {
_local1["card" + i]._x = (xExtra + 376) + ((i - 85) * 30);
_local1["card" + i]._y = extra + 277;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 87) && (i <= 96)) {
_local1["card" + i]._x = (xExtra + 65) + ((i - 87) * 30);
_local1["card" + i]._y = extra + 345;
_local1["card" + i].swapDepths(12000 + i);
}
if ((i >= 97) && (i <= 106)) {
_local1["card" + i]._x = (xExtra + 65) + ((i - 97) * 30);
_local1["card" + i]._y = extra + 390;
_local1["card" + i].swapDepths(12000 + i);
}
if ((i >= 107) && (i <= 110)) {
_local1["card" + i]._x = (xExtra + 156) + ((i - 107) * 30);
_local1["card" + i]._y = extra + 210;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 111) && (i <= 114)) {
_local1["card" + i]._x = (xExtra + 156) + ((i - 111) * 30);
_local1["card" + i]._y = extra + 255;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 115) && (i <= 118)) {
_local1["card" + i]._x = (xExtra + 156) + ((i - 115) * 30);
_local1["card" + i]._y = extra + 300;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 119) && (i <= 126)) {
_local1["card" + i]._x = (xExtra + 96) + ((i - 119) * 30);
_local1["card" + i]._y = extra + 165;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 127) && (i <= 128)) {
_local1["card" + i]._x = (xExtra + 186) + ((i - 127) * 30);
_local1["card" + i]._y = extra + 120;
_local1["card" + i].swapDepths(9600 + i);
}
i++;
}
}
function cornertile() {
var _local1 = this;
i = 1;
while (i <= maxCards) {
if (i <= 11) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 14) && (i <= 15)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 18) && (i <= 21)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 24) && (i <= 27)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 30) && (i <= 33)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 36) && (i <= 47)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 50) && (i <= 61)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 64) && (i <= 65)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 68) && (i <= 69)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 72) && (i <= 73)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 76) && (i <= 77)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 88) && (i <= 95)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 98) && (i <= 105)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 108) && (i <= 109)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 112) && (i <= 113)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 116) && (i <= 117)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 120) && (i <= 125)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
i++;
}
}
stop();
cardCreator();
cornertile();
Instance of Symbol 215 MovieClip "timer" in Frame 68
onClipEvent (load) {
once = 0;
}
onClipEvent (enterFrame) {
if (_root.options != 0) {
this._x = this._x + (_root.timerSpeed + 0.1);
if ((this._x >= 450) && (once == 0)) {
i = 1;
while (i <= _parent.maxCards) {
removeMovieClip(_parent["card" + i]);
i++;
}
once = 1;
_root.gotoAndStop("gameOver");
}
}
}
Frame 75
options_bt._visible = false;
Frame 77
function cardsCompare() {
cornertile();
oneObject = eval (one);
twoObject = eval (two);
if (oneObject._currentframe == twoObject._currentframe) {
_root.snd4.correctObj.start(0, 1);
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.snd3.levelCompleteObj.start(0, 1);
_root.gotoAndStop("comLevel7");
}
} else {
_root.snd5.wrongObj.start(0, 1);
oneObject.highLight.gotoAndPlay(3);
twoObject.highLight.gotoAndPlay(3);
if (rePosition == true) {
i = 1;
while (i <= maxCards) {
if (this["card" + i]._currentframe != undefined) {
Set(["cornertile" + i], 1);
}
i++;
}
}
one = null;
two = null;
}
}
function FadeMe(oneObj, twoObj) {
var _local1 = oneObj;
var _local2 = twoObj;
if (_local1._xscale >= 30) {
_local1._xscale = _local1._xscale - decrement;
_local2._xscale = _local2._xscale - decrement;
_local1._yscale = _local1._yscale - decrement;
_local2._yscale = _local2._yscale - decrement;
} else {
removeMovieClip(_local1);
removeMovieClip(_local2);
cornertile();
clearInterval(clearMe);
}
}
var one = null;
var two = null;
maxCards = 174;
rePosition = false;
levelNumber = 7;
balanceCards = maxCards;
yAdjust = 6.4;
options_bt._visible = true;
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;
cornertile66 = 1;
cornertile67 = 1;
cornertile78 = 1;
cornertile79 = 1;
cornertile88 = 1;
cornertile89 = 1;
cornertile98 = 1;
cornertile99 = 1;
cornertile110 = 1;
cornertile111 = 1;
cornertile124 = 1;
cornertile125 = 1;
cornertile136 = 1;
cornertile137 = 1;
cornertile146 = 1;
cornertile147 = 1;
cornertile150 = 1;
cornertile151 = 1;
cornertile154 = 1;
cornertile155 = 1;
cornertile158 = 1;
cornertile159 = 1;
cornertile162 = 1;
cornertile163 = 1;
cornertile166 = 1;
cornertile167 = 1;
cornertile170 = 1;
cornertile171 = 1;
cornertile172 = 1;
cornertile173 = 1;
cornertile174 = 1;
decrement = 4;
Frame 80
function cardCreator() {
var _local1 = this;
extra = -65;
xExtra = 130;
i = 1;
while (i <= (maxCards / 2)) {
duplicateMovieClip (card, "card" + i, i);
ran = random(18) + 2;
_local1["card" + i].gotoAndStop(ran);
i++;
}
i = (maxCards / 2) + 1;
while (i <= maxCards) {
duplicateMovieClip (card, "card" + i, i);
_local1["card" + i].gotoAndStop(_local1["card" + (i - (maxCards / 2))]._currentframe);
i++;
}
i = 1;
while (i <= maxCards) {
if (i <= 16) {
_local1["card" + i]._x = (xExtra + -20) + ((i - 1) * 30);
_local1["card" + i]._y = (extra + 280) - yAdjust;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 17) && (i <= 30)) {
_local1["card" + i]._x = (xExtra + 10) + ((i - 17) * 30);
_local1["card" + i]._y = extra + 317.6;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 31) && (i <= 42)) {
_local1["card" + i]._x = (xExtra + 40) + ((i - 31) * 30);
_local1["card" + i]._y = extra + 361.4;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 43) && (i <= 52)) {
_local1["card" + i]._x = (xExtra + 70) + ((i - 43) * 30);
_local1["card" + i]._y = extra + 405.6;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 53) && (i <= 66)) {
_local1["card" + i]._x = (xExtra + 10) + ((i - 53) * 30);
_local1["card" + i]._y = extra + 229.6;
_local1["card" + i].swapDepths(10500 + i);
}
if ((i >= 67) && (i <= 78)) {
_local1["card" + i]._x = (xExtra + 40) + ((i - 67) * 30);
_local1["card" + i]._y = extra + 185;
_local1["card" + i].swapDepths(10200 + i);
}
if ((i >= 79) && (i <= 88)) {
_local1["card" + i]._x = (xExtra + 70) + ((i - 79) * 30);
_local1["card" + i]._y = extra + 140.9;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 89) && (i <= 98)) {
_local1["card" + i]._x = (xExtra + 64) + ((i - 89) * 30);
_local1["card" + i]._y = extra + 178;
_local1["card" + i].swapDepths(11200 + i);
}
if ((i >= 99) && (i <= 110)) {
_local1["card" + i]._x = (xExtra + 34) + ((i - 99) * 30);
_local1["card" + i]._y = extra + 222.6;
_local1["card" + i].swapDepths(11200 + i);
}
if ((i >= 111) && (i <= 124)) {
_local1["card" + i]._x = (xExtra + 4) + ((i - 111) * 30);
_local1["card" + i]._y = extra + 266.6;
_local1["card" + i].swapDepths(11200 + i);
}
if ((i >= 125) && (i <= 136)) {
_local1["card" + i]._x = (xExtra + 34) + ((i - 125) * 30);
_local1["card" + i]._y = extra + 310.6;
_local1["card" + i].swapDepths(11200 + i);
}
if ((i >= 137) && (i <= 146)) {
_local1["card" + i]._x = (xExtra + 64) + ((i - 137) * 30);
_local1["card" + i]._y = extra + 354.6;
_local1["card" + i].swapDepths(11200 + i);
}
if ((i >= 147) && (i <= 150)) {
_local1["card" + i]._x = (xExtra + 60) + ((i - 147) * 30);
_local1["card" + i]._y = extra + 216;
_local1["card" + i].swapDepths(11400 + i);
}
if ((i >= 151) && (i <= 154)) {
_local1["card" + i]._x = (xExtra + 60) + ((i - 151) * 30);
_local1["card" + i]._y = extra + 260.6;
_local1["card" + i].swapDepths(11400 + i);
}
if ((i >= 155) && (i <= 158)) {
_local1["card" + i]._x = (xExtra + 60) + ((i - 155) * 30);
_local1["card" + i]._y = extra + 304.7;
_local1["card" + i].swapDepths(11400 + i);
}
if ((i >= 159) && (i <= 162)) {
_local1["card" + i]._x = (xExtra + 238) + ((i - 159) * 30);
_local1["card" + i]._y = extra + 216;
_local1["card" + i].swapDepths(11300 + i);
}
if ((i >= 163) && (i <= 166)) {
_local1["card" + i]._x = (xExtra + 238) + ((i - 163) * 30);
_local1["card" + i]._y = extra + 260.6;
_local1["card" + i].swapDepths(11300 + i);
}
if ((i >= 167) && (i <= 170)) {
_local1["card" + i]._x = (xExtra + 238) + ((i - 167) * 30);
_local1["card" + i]._y = extra + 304.7;
_local1["card" + i].swapDepths(11300 + i);
}
if ((i >= 171) && (i <= 172)) {
_local1["card" + i]._x = (xExtra + 84) + ((i - 171) * 30);
_local1["card" + i]._y = extra + 253;
_local1["card" + i].swapDepths(11500 + i);
}
if ((i >= 173) && (i <= 174)) {
_local1["card" + i]._x = (xExtra + 264) + ((i - 173) * 30);
_local1["card" + i]._y = extra + 253;
_local1["card" + i].swapDepths(11500 + i);
}
i++;
}
}
function cornertile() {
var _local1 = this;
i = 1;
while (i <= maxCards) {
if (i <= 15) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 18) && (i <= 29)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 32) && (i <= 41)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 44) && (i <= 51)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 54) && (i <= 65)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 68) && (i <= 77)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 80) && (i <= 87)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 90) && (i <= 97)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 100) && (i <= 109)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 112) && (i <= 123)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 126) && (i <= 135)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 138) && (i <= 145)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 148) && (i <= 149)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 152) && (i <= 153)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 156) && (i <= 157)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 160) && (i <= 161)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 164) && (i <= 165)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 168) && (i <= 169)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
i++;
}
}
stop();
cardCreator();
cornertile();
Instance of Symbol 228 MovieClip "timer" in Frame 80
onClipEvent (load) {
once = 0;
}
onClipEvent (enterFrame) {
if (_root.options != 0) {
this._x = this._x + (_root.timerSpeed + 0.15);
if ((this._x >= 450) && (once == 0)) {
i = 1;
while (i <= _parent.maxCards) {
removeMovieClip(_parent["card" + i]);
i++;
}
once = 1;
_root.gotoAndStop("gameOver");
}
}
}
Frame 86
options_bt._visible = false;
stop();
Frame 88
function cardsCompare() {
cornertile();
oneObject = eval (one);
twoObject = eval (two);
if (oneObject._currentframe == twoObject._currentframe) {
_root.snd4.correctObj.start(0, 1);
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.snd3.levelCompleteObj.start(0, 1);
_root.gotoAndStop("comLevel8");
}
} else {
_root.snd5.wrongObj.start(0, 1);
oneObject.highLight.gotoAndPlay(3);
twoObject.highLight.gotoAndPlay(3);
if (rePosition == true) {
i = 1;
while (i <= maxCards) {
if (this["card" + i]._currentframe != undefined) {
Set(["cornertile" + i], 1);
}
i++;
}
}
one = null;
two = null;
}
}
function FadeMe(oneObj, twoObj) {
var _local1 = oneObj;
var _local2 = twoObj;
if (_local1._xscale >= 30) {
_local1._xscale = _local1._xscale - decrement;
_local2._xscale = _local2._xscale - decrement;
_local1._yscale = _local1._yscale - decrement;
_local2._yscale = _local2._yscale - decrement;
} else {
removeMovieClip(_local1);
removeMovieClip(_local2);
cornertile();
clearInterval(clearMe);
}
}
var one = null;
var two = null;
maxCards = 200;
rePosition = false;
levelNumber = 8;
balanceCards = maxCards;
yAdjust = 6.4;
options_bt._visible = true;
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 = 4;
Frame 91
function cardCreator() {
var _local1 = this;
extra = -65;
xExtra = 130;
i = 1;
while (i <= (maxCards / 2)) {
duplicateMovieClip (card, "card" + i, i);
ran = random(18) + 2;
_local1["card" + i].gotoAndStop(ran);
i++;
}
i = (maxCards / 2) + 1;
while (i <= maxCards) {
duplicateMovieClip (card, "card" + i, i);
_local1["card" + i].gotoAndStop(_local1["card" + (i - (maxCards / 2))]._currentframe);
i++;
}
i = 1;
while (i <= maxCards) {
if (i <= 14) {
_local1["card" + i]._x = (xExtra + 0) + ((i - 1) * 30);
_local1["card" + i]._y = (extra + 145) - yAdjust;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 15) && (i <= 28)) {
_local1["card" + i]._x = (xExtra + 0) + ((i - 15) * 30);
_local1["card" + i]._y = extra + 183.1;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 29) && (i <= 42)) {
_local1["card" + i]._x = (xExtra + 0) + ((i - 29) * 30);
_local1["card" + i]._y = extra + 228;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 43) && (i <= 56)) {
_local1["card" + i]._x = (xExtra + 0) + ((i - 43) * 30);
_local1["card" + i]._y = extra + 273;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 57) && (i <= 70)) {
_local1["card" + i]._x = (xExtra + 0) + ((i - 57) * 30);
_local1["card" + i]._y = extra + 318;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 71) && (i <= 84)) {
_local1["card" + i]._x = (xExtra + 0) + ((i - 71) * 30);
_local1["card" + i]._y = extra + 363;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 85) && (i <= 98)) {
_local1["card" + i]._x = (xExtra + 0) + ((i - 85) * 30);
_local1["card" + i]._y = extra + 408;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 99) && (i <= 110)) {
_local1["card" + i]._x = (xExtra + 24) + ((i - 99) * 30);
_local1["card" + i]._y = extra + 180;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 111) && (i <= 122)) {
_local1["card" + i]._x = (xExtra + 24) + ((i - 111) * 30);
_local1["card" + i]._y = extra + 225;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 123) && (i <= 134)) {
_local1["card" + i]._x = (xExtra + 24) + ((i - 123) * 30);
_local1["card" + i]._y = extra + 270;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 135) && (i <= 146)) {
_local1["card" + i]._x = (xExtra + 24) + ((i - 135) * 30);
_local1["card" + i]._y = extra + 315;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 147) && (i <= 158)) {
_local1["card" + i]._x = (xExtra + 24) + ((i - 147) * 30);
_local1["card" + i]._y = extra + 360;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 159) && (i <= 168)) {
_local1["card" + i]._x = (xExtra + 50) + ((i - 159) * 30);
_local1["card" + i]._y = extra + 218;
_local1["card" + i].swapDepths(12000 + i);
}
if ((i >= 169) && (i <= 178)) {
_local1["card" + i]._x = (xExtra + 50) + ((i - 169) * 30);
_local1["card" + i]._y = extra + 263;
_local1["card" + i].swapDepths(12000 + i);
}
if ((i >= 179) && (i <= 188)) {
_local1["card" + i]._x = (xExtra + 50) + ((i - 179) * 30);
_local1["card" + i]._y = extra + 308;
_local1["card" + i].swapDepths(12000 + i);
}
if ((i >= 189) && (i <= 192)) {
_local1["card" + i]._x = (xExtra + 135) + ((i - 189) * 30);
_local1["card" + i]._y = extra + 211.6;
_local1["card" + i].swapDepths(13000 + i);
}
if ((i >= 193) && (i <= 196)) {
_local1["card" + i]._x = (xExtra + 135) + ((i - 193) * 30);
_local1["card" + i]._y = extra + 256;
_local1["card" + i].swapDepths(13000 + i);
}
if ((i >= 197) && (i <= 200)) {
_local1["card" + i]._x = (xExtra + 135) + ((i - 197) * 30);
_local1["card" + i]._y = extra + 301.2;
_local1["card" + i].swapDepths(13000 + i);
}
i++;
}
}
function cornertile() {
var _local1 = this;
i = 1;
while (i <= maxCards) {
if (i <= 13) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 16) && (i <= 27)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 30) && (i <= 41)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 44) && (i <= 55)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 58) && (i <= 69)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 72) && (i <= 83)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 86) && (i <= 97)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 100) && (i <= 109)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 112) && (i <= 121)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 124) && (i <= 133)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 136) && (i <= 145)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 148) && (i <= 157)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 160) && (i <= 167)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 170) && (i <= 177)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 180) && (i <= 187)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 190) && (i <= 191)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 194) && (i <= 195)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 198) && (i <= 199)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
i++;
}
}
stop();
cardCreator();
cornertile();
Instance of Symbol 241 MovieClip "timer" in Frame 91
onClipEvent (load) {
once = 0;
}
onClipEvent (enterFrame) {
if (_root.options != 0) {
this._x = this._x + (_root.timerSpeed + 0.15);
if ((this._x >= 450) && (once == 0)) {
i = 1;
while (i <= _parent.maxCards) {
removeMovieClip(_parent["card" + i]);
i++;
}
once = 1;
_root.gotoAndStop("gameOver");
}
}
}
Frame 97
options_bt._visible = false;
Frame 99
function cardsCompare() {
cornertile();
oneObject = eval (one);
twoObject = eval (two);
if (oneObject._currentframe == twoObject._currentframe) {
_root.snd4.correctObj.start(0, 1);
one = null;
two = null;
clearMe = setInterval(FadeMe, 10, oneObject, twoObject);
count = count + 450;
_root.dbInterface.updateScore(_root.count);
balanceCards = balanceCards - 2;
if ((balanceCards == 0) && (timer._x < 450)) {
levelNumber = 9;
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.snd3.levelCompleteObj.start(0, 1);
_root.gotoAndStop("comLevel9");
}
} else {
_root.snd5.wrongObj.start(0, 1);
oneObject.highLight.gotoAndPlay(3);
twoObject.highLight.gotoAndPlay(3);
if (rePosition == true) {
i = 1;
while (i <= maxCards) {
if (this["card" + i]._currentframe != undefined) {
Set(["cornertile" + i], 1);
}
i++;
}
}
one = null;
two = null;
}
}
function FadeMe(oneObj, twoObj) {
var _local1 = oneObj;
var _local2 = twoObj;
if (_local1._xscale >= 30) {
_local1._xscale = _local1._xscale - decrement;
_local2._xscale = _local2._xscale - decrement;
_local1._yscale = _local1._yscale - decrement;
_local2._yscale = _local2._yscale - decrement;
} else {
removeMovieClip(_local1);
removeMovieClip(_local2);
cornertile();
clearInterval(clearMe);
}
}
var one = null;
var two = null;
maxCards = 210;
rePosition = false;
levelNumber = 9;
balanceCards = maxCards;
yAdjust = 6.4;
options_bt._visible = true;
i = 1;
while (i <= 3) {
this["cornertile" + i] = 0;
i++;
}
cornertile1 = 1;
cornertile14 = 1;
cornertile15 = 1;
cornertile18 = 1;
cornertile19 = 1;
cornertile22 = 1;
cornertile23 = 1;
cornertile26 = 1;
cornertile27 = 1;
cornertile32 = 1;
cornertile33 = 1;
cornertile36 = 1;
cornertile37 = 1;
cornertile40 = 1;
cornertile41 = 1;
cornertile46 = 1;
cornertile47 = 1;
cornertile50 = 1;
cornertile51 = 1;
cornertile54 = 1;
cornertile55 = 1;
cornertile60 = 1;
cornertile61 = 1;
cornertile64 = 1;
cornertile65 = 1;
cornertile68 = 1;
cornertile69 = 1;
cornertile72 = 1;
cornertile73 = 1;
cornertile86 = 1;
cornertile87 = 1;
cornertile89 = 1;
cornertile90 = 1;
cornertile92 = 1;
cornertile93 = 1;
cornertile95 = 1;
cornertile96 = 1;
cornertile98 = 1;
cornertile99 = 1;
cornertile101 = 1;
cornertile102 = 1;
cornertile103 = 1;
cornertile104 = 1;
cornertile105 = 1;
cornertile106 = 1;
cornertile107 = 1;
cornertile108 = 1;
cornertile109 = 1;
cornertile110 = 1;
cornertile111 = 1;
cornertile112 = 1;
cornertile113 = 1;
cornertile114 = 1;
cornertile115 = 1;
cornertile116 = 1;
cornertile117 = 1;
cornertile119 = 1;
cornertile120 = 1;
cornertile122 = 1;
cornertile123 = 1;
cornertile125 = 1;
cornertile126 = 1;
cornertile128 = 1;
cornertile129 = 1;
cornertile131 = 1;
cornertile132 = 1;
cornertile133 = 1;
cornertile134 = 1;
cornertile135 = 1;
cornertile136 = 1;
cornertile137 = 1;
cornertile138 = 1;
cornertile139 = 1;
cornertile140 = 1;
cornertile141 = 1;
cornertile142 = 1;
cornertile143 = 1;
cornertile144 = 1;
cornertile145 = 1;
cornertile146 = 1;
cornertile147 = 1;
cornertile152 = 1;
cornertile153 = 1;
cornertile158 = 1;
cornertile159 = 1;
cornertile164 = 1;
cornertile165 = 1;
cornertile170 = 1;
cornertile171 = 1;
cornertile176 = 1;
cornertile177 = 1;
cornertile182 = 1;
cornertile183 = 1;
cornertile196 = 1;
cornertile197 = 1;
cornertile210 = 1;
decrement = 4;
Frame 102
function cardCreator() {
var _local1 = this;
xExtra = 130;
i = 1;
while (i <= (maxCards / 2)) {
duplicateMovieClip (card, "card" + i, i);
ran = random(18) + 2;
_local1["card" + i].gotoAndStop(ran);
i++;
}
i = (maxCards / 2) + 1;
while (i <= maxCards) {
duplicateMovieClip (card, "card" + i, i);
_local1["card" + i].gotoAndStop(_local1["card" + (i - (maxCards / 2))]._currentframe);
i++;
}
i = 1;
while (i <= maxCards) {
if (i <= 14) {
_local1["card" + i]._x = (xExtra + 20) + ((i - 1) * 30);
_local1["card" + i]._y = tilePos;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 15) && (i <= 18)) {
_local1["card" + i]._x = (xExtra + -10) + ((i - 15) * 30);
_local1["card" + i]._y = tilePos + tileHeight;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 19) && (i <= 22)) {
_local1["card" + i]._x = (xExtra + 350) + ((i - 19) * 30);
_local1["card" + i]._y = tilePos + tileHeight;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 23) && (i <= 26)) {
_local1["card" + i]._x = (xExtra + -10) + ((i - 23) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 2)) - 0.4;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 27) && (i <= 32)) {
_local1["card" + i]._x = (xExtra + 140) + ((i - 27) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 2)) - 0.4;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 33) && (i <= 36)) {
_local1["card" + i]._x = (xExtra + 350) + ((i - 33) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 2)) - 0.4;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 37) && (i <= 40)) {
_local1["card" + i]._x = (xExtra + -10) + ((i - 37) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 3)) - 0.6;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 41) && (i <= 46)) {
_local1["card" + i]._x = (xExtra + 140) + ((i - 41) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 3)) - 0.6;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 47) && (i <= 50)) {
_local1["card" + i]._x = (xExtra + 350) + ((i - 47) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 3)) - 0.6;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 51) && (i <= 54)) {
_local1["card" + i]._x = (xExtra + -10) + ((i - 51) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 4)) - 1;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 55) && (i <= 60)) {
_local1["card" + i]._x = (xExtra + 140) + ((i - 55) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 4)) - 1;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 61) && (i <= 64)) {
_local1["card" + i]._x = (xExtra + 350) + ((i - 61) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 4)) - 1;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 65) && (i <= 68)) {
_local1["card" + i]._x = (xExtra + -10) + ((i - 65) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 5)) - 1.4;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 69) && (i <= 72)) {
_local1["card" + i]._x = (xExtra + 350) + ((i - 69) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 5)) - 1.4;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 73) && (i <= 86)) {
_local1["card" + i]._x = (xExtra + 20) + ((i - 73) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 6)) - 1.8;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 87) && (i <= 89)) {
_local1["card" + i]._x = (xExtra + -15) + ((i - 87) * 30);
_local1["card" + i]._y = tileTopPos + tileHeight;
_local1["card" + i].swapDepths(10200 + i);
}
if ((i >= 90) && (i <= 92)) {
_local1["card" + i]._x = (xExtra + -15) + ((i - 90) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 2)) - 0.4;
_local1["card" + i].swapDepths(10200 + i);
}
if ((i >= 93) && (i <= 95)) {
_local1["card" + i]._x = (xExtra + -15) + ((i - 93) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 3)) - 0.6;
_local1["card" + i].swapDepths(10200 + i);
}
if ((i >= 96) && (i <= 98)) {
_local1["card" + i]._x = (xExtra + -15) + ((i - 96) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 4)) - 1;
_local1["card" + i].swapDepths(10200 + i);
}
if ((i >= 99) && (i <= 101)) {
_local1["card" + i]._x = (xExtra + -15) + ((i - 99) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 5)) - 1.4;
_local1["card" + i].swapDepths(10200 + i);
}
if ((i >= 102) && (i <= 103)) {
_local1["card" + i]._x = (xExtra + -20) + ((i - 102) * 30);
_local1["card" + i]._y = tileTopPos1 + tileHeight;
_local1["card" + i].swapDepths(10300 + i);
}
if ((i >= 104) && (i <= 105)) {
_local1["card" + i]._x = (xExtra + -20) + ((i - 104) * 30);
_local1["card" + i]._y = (tileTopPos1 + (tileHeight * 2)) - 0.2;
_local1["card" + i].swapDepths(10300 + i);
}
if ((i >= 106) && (i <= 107)) {
_local1["card" + i]._x = (xExtra + -20) + ((i - 106) * 30);
_local1["card" + i]._y = (tileTopPos1 + (tileHeight * 3)) - 0.6;
_local1["card" + i].swapDepths(10300 + i);
}
if ((i >= 108) && (i <= 109)) {
_local1["card" + i]._x = (xExtra + -20) + ((i - 108) * 30);
_local1["card" + i]._y = (tileTopPos1 + (tileHeight * 4)) - 1;
_local1["card" + i].swapDepths(10300 + i);
}
if ((i >= 110) && (i <= 111)) {
_local1["card" + i]._x = (xExtra + -20) + ((i - 110) * 30);
_local1["card" + i]._y = (tileTopPos1 + (tileHeight * 5)) - 1.4;
_local1["card" + i].swapDepths(10300 + i);
}
if (i == 112) {
_local1["card" + i]._x = (xExtra + -25) + ((i - 112) * 30);
_local1["card" + i]._y = tileTopPos2 + tileHeight;
_local1["card" + i].swapDepths(10300 + i);
}
if (i == 113) {
_local1["card" + i]._x = (xExtra + -25) + ((i - 113) * 30);
_local1["card" + i]._y = (tileTopPos2 + (tileHeight * 2)) - 0.2;
_local1["card" + i].swapDepths(10400 + i);
}
if (i == 114) {
_local1["card" + i]._x = (xExtra + -25) + ((i - 114) * 30);
_local1["card" + i]._y = (tileTopPos2 + (tileHeight * 3)) - 0.6;
_local1["card" + i].swapDepths(10400 + i);
}
if (i == 115) {
_local1["card" + i]._x = (xExtra + -25) + ((i - 115) * 30);
_local1["card" + i]._y = (tileTopPos2 + (tileHeight * 4)) - 1;
_local1["card" + i].swapDepths(10400 + i);
}
if (i == 116) {
_local1["card" + i]._x = (xExtra + -25) + ((i - 116) * 30);
_local1["card" + i]._y = (tileTopPos2 + (tileHeight * 5)) - 1.4;
_local1["card" + i].swapDepths(10400 + i);
}
if ((i >= 117) && (i <= 119)) {
_local1["card" + i]._x = (xExtra + 375) + ((i - 117) * 30);
_local1["card" + i]._y = tileTopPos + tileHeight;
_local1["card" + i].swapDepths(10200 + i);
}
if ((i >= 120) && (i <= 122)) {
_local1["card" + i]._x = (xExtra + 375) + ((i - 120) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 2)) - 0.4;
_local1["card" + i].swapDepths(10200 + i);
}
if ((i >= 123) && (i <= 125)) {
_local1["card" + i]._x = (xExtra + 375) + ((i - 123) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 3)) - 0.6;
_local1["card" + i].swapDepths(10200 + i);
}
if ((i >= 126) && (i <= 128)) {
_local1["card" + i]._x = (xExtra + 375) + ((i - 126) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 4)) - 1;
_local1["card" + i].swapDepths(10200 + i);
}
if ((i >= 129) && (i <= 131)) {
_local1["card" + i]._x = (xExtra + 375) + ((i - 129) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 5)) - 1.4;
_local1["card" + i].swapDepths(10200 + i);
}
if ((i >= 132) && (i <= 133)) {
_local1["card" + i]._x = (xExtra + 400) + ((i - 132) * 30);
_local1["card" + i]._y = tileTopPos1 + tileHeight;
_local1["card" + i].swapDepths(10300 + i);
}
if ((i >= 134) && (i <= 135)) {
_local1["card" + i]._x = (xExtra + 400) + ((i - 134) * 30);
_local1["card" + i]._y = (tileTopPos1 + (tileHeight * 2)) - 0.2;
_local1["card" + i].swapDepths(10300 + i);
}
if ((i >= 136) && (i <= 137)) {
_local1["card" + i]._x = (xExtra + 400) + ((i - 136) * 30);
_local1["card" + i]._y = (tileTopPos1 + (tileHeight * 3)) - 0.6;
_local1["card" + i].swapDepths(10300 + i);
}
if ((i >= 138) && (i <= 139)) {
_local1["card" + i]._x = (xExtra + 400) + ((i - 138) * 30);
_local1["card" + i]._y = (tileTopPos1 + (tileHeight * 4)) - 1;
_local1["card" + i].swapDepths(10300 + i);
}
if ((i >= 140) && (i <= 141)) {
_local1["card" + i]._x = (xExtra + 400) + ((i - 140) * 30);
_local1["card" + i]._y = (tileTopPos1 + (tileHeight * 5)) - 1.4;
_local1["card" + i].swapDepths(10300 + i);
}
if (i == 142) {
_local1["card" + i]._x = (xExtra + 425) + ((i - 142) * 30);
_local1["card" + i]._y = tileTopPos2 + tileHeight;
_local1["card" + i].swapDepths(10300 + i);
}
if (i == 143) {
_local1["card" + i]._x = (xExtra + 425) + ((i - 143) * 30);
_local1["card" + i]._y = (tileTopPos2 + (tileHeight * 2)) - 0.2;
_local1["card" + i].swapDepths(10400 + i);
}
if (i == 144) {
_local1["card" + i]._x = (xExtra + 425) + ((i - 144) * 30);
_local1["card" + i]._y = (tileTopPos2 + (tileHeight * 3)) - 0.6;
_local1["card" + i].swapDepths(10400 + i);
}
if (i == 145) {
_local1["card" + i]._x = (xExtra + 425) + ((i - 145) * 30);
_local1["card" + i]._y = (tileTopPos2 + (tileHeight * 4)) - 1;
_local1["card" + i].swapDepths(10400 + i);
}
if (i == 146) {
_local1["card" + i]._x = (xExtra + 425) + ((i - 146) * 30);
_local1["card" + i]._y = (tileTopPos2 + (tileHeight * 5)) - 1.4;
_local1["card" + i].swapDepths(10400 + i);
}
if ((i >= 147) && (i <= 152)) {
_local1["card" + i]._x = (xExtra + 135) + ((i - 147) * 30);
_local1["card" + i]._y = (tileTopPos1 + (tileHeight * 2)) + 3;
_local1["card" + i].swapDepths(10200 + i);
}
if ((i >= 153) && (i <= 158)) {
_local1["card" + i]._x = (xExtra + 130) + ((i - 153) * 30);
_local1["card" + i]._y = (tileTopPos2 + (tileHeight * 2)) + 3;
_local1["card" + i].swapDepths(10400 + i);
}
if ((i >= 159) && (i <= 164)) {
_local1["card" + i]._x = (xExtra + 125) + ((i - 159) * 30);
_local1["card" + i]._y = (tileTopPos2 + (tileHeight * 2)) - 2;
_local1["card" + i].swapDepths(10600 + i);
}
if ((i >= 165) && (i <= 170)) {
_local1["card" + i]._x = (xExtra + 135) + ((i - 165) * 30);
_local1["card" + i]._y = (tileTopPos1 + (tileHeight * 3)) + 2.4;
_local1["card" + i].swapDepths(10200 + i);
}
if ((i >= 171) && (i <= 176)) {
_local1["card" + i]._x = (xExtra + 130) + ((i - 171) * 30);
_local1["card" + i]._y = (tileTopPos2 + (tileHeight * 3)) + 2;
_local1["card" + i].swapDepths(10400 + i);
}
if ((i >= 177) && (i <= 182)) {
_local1["card" + i]._x = (xExtra + 135) + ((i - 177) * 30);
_local1["card" + i]._y = (tileTopPos1 + (tileHeight * 4)) + 4;
_local1["card" + i].swapDepths(10200 + i);
}
if ((i >= 183) && (i <= 196)) {
_local1["card" + i]._x = (xExtra + 20) + ((i - 183) * 30);
_local1["card" + i]._y = tileTopPos1 + 5;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 197) && (i <= 210)) {
_local1["card" + i]._x = (xExtra + 15) + ((i - 197) * 30);
_local1["card" + i]._y = (tileTopPos1 + (tileHeight * 6)) + 4;
_local1["card" + i].swapDepths(10300 + i);
}
i++;
}
}
function cornertile() {
var _local1 = this;
i = 1;
while (i <= maxCards) {
if (i <= 13) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 16) && (i <= 17)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 20) && (i <= 21)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 24) && (i <= 25)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 28) && (i <= 31)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 34) && (i <= 35)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 38) && (i <= 39)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 42) && (i <= 45)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 48) && (i <= 49)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 52) && (i <= 53)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 56) && (i <= 59)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 62) && (i <= 63)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 66) && (i <= 67)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 70) && (i <= 71)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 74) && (i <= 85)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 88) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 91) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 94) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 97) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 100) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 118) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 121) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 124) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 127) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 130) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 148) && (i <= 151)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 154) && (i <= 157)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 160) && (i <= 163)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 166) && (i <= 169)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 172) && (i <= 175)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 178) && (i <= 181)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 184) && (i <= 195)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 198) && (i <= 209)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
i++;
}
}
stop();
tileHeight = 44.4;
tilePos = 70;
tileTopPos = 65;
tileTopPos1 = 60;
tileTopPos2 = 55;
cardCreator();
cornertile();
Instance of Symbol 228 MovieClip "timer" in Frame 102
onClipEvent (load) {
once = 0;
}
onClipEvent (enterFrame) {
if (_root.options != 0) {
this._x = this._x + (_root.timerSpeed + 0.15);
if ((this._x >= 450) && (once == 0)) {
i = 1;
while (i <= _parent.maxCards) {
removeMovieClip(_parent["card" + i]);
i++;
}
once = 1;
_root.gotoAndStop("gameOver");
}
}
}
Frame 108
options_bt._visible = false;
Frame 110
function cardsCompare() {
cornertile();
oneObject = eval (one);
twoObject = eval (two);
if (oneObject._currentframe == twoObject._currentframe) {
_root.snd4.correctObj.start(0, 1);
one = null;
two = null;
clearMe = setInterval(FadeMe, 10, oneObject, twoObject);
count = count + 500;
_root.dbInterface.updateScore(_root.count);
balanceCards = balanceCards - 2;
if ((balanceCards == 0) && (timer._x < 450)) {
levelNumber = 10;
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.snd3.levelCompleteObj.start(0, 1);
_root.gotoAndStop("comLevel10");
}
} else {
_root.snd5.wrongObj.start(0, 1);
oneObject.highLight.gotoAndPlay(3);
twoObject.highLight.gotoAndPlay(3);
if (rePosition == true) {
i = 1;
while (i <= maxCards) {
if (this["card" + i]._currentframe != undefined) {
Set(["cornertile" + i], 1);
}
i++;
}
}
one = null;
two = null;
}
}
function FadeMe(oneObj, twoObj) {
var _local1 = oneObj;
var _local2 = twoObj;
if (_local1._xscale >= 30) {
_local1._xscale = _local1._xscale - decrement;
_local2._xscale = _local2._xscale - decrement;
_local1._yscale = _local1._yscale - decrement;
_local2._yscale = _local2._yscale - decrement;
} else {
removeMovieClip(_local1);
removeMovieClip(_local2);
cornertile();
clearInterval(clearMe);
}
}
var one = null;
var two = null;
maxCards = 212;
rePosition = false;
levelNumber = 10;
balanceCards = maxCards;
yAdjust = 6.4;
options_bt._visible = true;
i = 1;
while (i <= 3) {
this["cornertile" + i] = 0;
i++;
}
cornertile1 = 1;
cornertile7 = 1;
cornertile8 = 1;
cornertile14 = 1;
cornertile15 = 1;
cornertile20 = 1;
cornertile21 = 1;
cornertile26 = 1;
cornertile27 = 1;
cornertile31 = 1;
cornertile32 = 1;
cornertile36 = 1;
cornertile37 = 1;
cornertile40 = 1;
cornertile41 = 1;
cornertile44 = 1;
cornertile45 = 1;
cornertile49 = 1;
cornertile50 = 1;
cornertile54 = 1;
cornertile55 = 1;
cornertile60 = 1;
cornertile61 = 1;
cornertile66 = 1;
cornertile67 = 1;
cornertile73 = 1;
cornertile74 = 1;
cornertile80 = 1;
cornertile81 = 1;
cornertile82 = 1;
cornertile83 = 1;
cornertile84 = 1;
cornertile87 = 1;
cornertile88 = 1;
cornertile87 = 1;
cornertile88 = 1;
cornertile91 = 1;
cornertile92 = 1;
cornertile93 = 1;
cornertile94 = 1;
cornertile95 = 1;
cornertile100 = 1;
cornertile101 = 1;
cornertile106 = 1;
cornertile107 = 1;
cornertile111 = 1;
cornertile112 = 1;
cornertile116 = 1;
cornertile117 = 1;
cornertile120 = 1;
cornertile121 = 1;
cornertile124 = 1;
cornertile125 = 1;
cornertile127 = 1;
cornertile128 = 1;
cornertile130 = 1;
cornertile131 = 1;
cornertile134 = 1;
cornertile135 = 1;
cornertile138 = 1;
cornertile139 = 1;
cornertile143 = 1;
cornertile144 = 1;
cornertile148 = 1;
cornertile149 = 1;
cornertile154 = 1;
cornertile155 = 1;
cornertile160 = 1;
cornertile161 = 1;
cornertile165 = 1;
cornertile166 = 1;
cornertile170 = 1;
cornertile171 = 1;
cornertile174 = 1;
cornertile175 = 1;
cornertile178 = 1;
cornertile179 = 1;
cornertile181 = 1;
cornertile182 = 1;
cornertile184 = 1;
cornertile185 = 1;
cornertile186 = 1;
cornertile187 = 1;
cornertile188 = 1;
cornertile189 = 1;
cornertile191 = 1;
cornertile192 = 1;
cornertile194 = 1;
cornertile195 = 1;
cornertile198 = 1;
cornertile199 = 1;
cornertile202 = 1;
cornertile203 = 1;
cornertile207 = 1;
cornertile208 = 1;
cornertile212 = 1;
decrement = 4;
Frame 113
function cardCreator() {
var _local1 = this;
xExtra = 120;
i = 1;
while (i <= (maxCards / 2)) {
duplicateMovieClip (card, "card" + i, i);
ran = random(18) + 2;
_local1["card" + i].gotoAndStop(ran);
i++;
}
i = (maxCards / 2) + 1;
while (i <= maxCards) {
duplicateMovieClip (card, "card" + i, i);
_local1["card" + i].gotoAndStop(_local1["card" + (i - (maxCards / 2))]._currentframe);
i++;
}
i = 1;
while (i <= maxCards) {
if (i <= 7) {
_local1["card" + i]._x = (xExtra + -30) + ((i - 1) * 30);
_local1["card" + i]._y = tilePos;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 8) && (i <= 14)) {
_local1["card" + i]._x = (xExtra + 270) + ((i - 8) * 30);
_local1["card" + i]._y = tilePos;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 15) && (i <= 20)) {
_local1["card" + i]._x = (xExtra + -30) + ((i - 15) * 30);
_local1["card" + i]._y = tilePos + tileHeight;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 21) && (i <= 26)) {
_local1["card" + i]._x = (xExtra + 300) + ((i - 21) * 30);
_local1["card" + i]._y = tilePos + tileHeight;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 27) && (i <= 31)) {
_local1["card" + i]._x = (xExtra + -30) + ((i - 27) * 30);
_local1["card" + i]._y = tilePos + (tileHeight * 2);
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 32) && (i <= 36)) {
_local1["card" + i]._x = (xExtra + 330) + ((i - 32) * 30);
_local1["card" + i]._y = tilePos + (tileHeight * 2);
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 37) && (i <= 40)) {
_local1["card" + i]._x = (xExtra + -30) + ((i - 37) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 3)) - 0.4;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 41) && (i <= 44)) {
_local1["card" + i]._x = (xExtra + 360) + ((i - 41) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 3)) - 0.4;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 45) && (i <= 49)) {
_local1["card" + i]._x = (xExtra + -30) + ((i - 45) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 4)) - 1;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 50) && (i <= 54)) {
_local1["card" + i]._x = (xExtra + 330) + ((i - 50) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 4)) - 1;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 55) && (i <= 60)) {
_local1["card" + i]._x = (xExtra + -30) + ((i - 55) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 5)) - 1.6;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 61) && (i <= 66)) {
_local1["card" + i]._x = (xExtra + 300) + ((i - 61) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 5)) - 1.6;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 67) && (i <= 73)) {
_local1["card" + i]._x = (xExtra + -30) + ((i - 67) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 6)) - 1.6;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 74) && (i <= 80)) {
_local1["card" + i]._x = (xExtra + 270) + ((i - 74) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 6)) - 1.6;
_local1["card" + i].swapDepths(8000 + i);
}
if ((i >= 81) && (i <= 82)) {
_local1["card" + i]._x = (xExtra + 195) + ((i - 81) * 30);
_local1["card" + i]._y = tilePos + tileHeight;
_local1["card" + i].swapDepths(8000 + i);
}
if (i == 83) {
_local1["card" + i]._x = (xExtra + 190) + ((i - 83) * 30);
_local1["card" + i]._y = (tilePos + tileHeight) - 5;
_local1["card" + i].swapDepths(8400 + i);
}
if ((i >= 84) && (i <= 87)) {
_local1["card" + i]._x = (xExtra + 165) + ((i - 84) * 30);
_local1["card" + i]._y = tilePos + (tileHeight * 2);
_local1["card" + i].swapDepths(8200 + i);
}
if ((i >= 88) && (i <= 91)) {
_local1["card" + i]._x = (xExtra + 165) + ((i - 88) * 30);
_local1["card" + i]._y = tilePos + (tileHeight * 4);
_local1["card" + i].swapDepths(8200 + i);
}
if ((i >= 92) && (i <= 93)) {
_local1["card" + i]._x = (xExtra + 195) + ((i - 92) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 5)) - 0.4;
_local1["card" + i].swapDepths(8200 + i);
}
if (i == 94) {
_local1["card" + i]._x = (xExtra + 222) + ((i - 94) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 5)) - 2;
_local1["card" + i].swapDepths(8500 + i);
}
if ((i >= 95) && (i <= 100)) {
_local1["card" + i]._x = (xExtra + -35) + ((i - 95) * 30);
_local1["card" + i]._y = tileTopPos;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 101) && (i <= 106)) {
_local1["card" + i]._x = (xExtra + 297) + ((i - 101) * 30);
_local1["card" + i]._y = tileTopPos;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 107) && (i <= 111)) {
_local1["card" + i]._x = (xExtra + -35) + ((i - 107) * 30);
_local1["card" + i]._y = tileTopPos + tileHeight;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 112) && (i <= 116)) {
_local1["card" + i]._x = (xExtra + 327) + ((i - 112) * 30);
_local1["card" + i]._y = tileTopPos + tileHeight;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 117) && (i <= 120)) {
_local1["card" + i]._x = (xExtra + -34) + ((i - 117) * 30);
_local1["card" + i]._y = tileTopPos + (tileHeight * 2);
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 121) && (i <= 124)) {
_local1["card" + i]._x = (xExtra + 357) + ((i - 121) * 30);
_local1["card" + i]._y = tileTopPos + (tileHeight * 2);
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 125) && (i <= 127)) {
_local1["card" + i]._x = (xExtra + -34) + ((i - 125) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 3)) - 0.4;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 128) && (i <= 130)) {
_local1["card" + i]._x = (xExtra + 387) + ((i - 128) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 3)) - 0.4;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 131) && (i <= 134)) {
_local1["card" + i]._x = (xExtra + -34) + ((i - 131) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 4)) - 1;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 135) && (i <= 138)) {
_local1["card" + i]._x = (xExtra + 357) + ((i - 135) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 4)) - 1;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 139) && (i <= 143)) {
_local1["card" + i]._x = (xExtra + -34) + ((i - 139) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 5)) - 1.6;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 144) && (i <= 148)) {
_local1["card" + i]._x = (xExtra + 327) + ((i - 144) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 5)) - 1.6;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 149) && (i <= 154)) {
_local1["card" + i]._x = (xExtra + -34) + ((i - 149) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 6)) - 1.6;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 155) && (i <= 160)) {
_local1["card" + i]._x = (xExtra + 297) + ((i - 155) * 30);
_local1["card" + i]._y = (tileTopPos + (tileHeight * 6)) - 1.6;
_local1["card" + i].swapDepths(8600 + i);
}
if ((i >= 161) && (i <= 165)) {
_local1["card" + i]._x = (xExtra + -40) + ((i - 161) * 30);
_local1["card" + i]._y = tileTopPos1;
_local1["card" + i].swapDepths(8700 + i);
}
if ((i >= 166) && (i <= 170)) {
_local1["card" + i]._x = (xExtra + 327) + ((i - 166) * 30);
_local1["card" + i]._y = tileTopPos1;
_local1["card" + i].swapDepths(8700 + i);
}
if ((i >= 171) && (i <= 174)) {
_local1["card" + i]._x = (xExtra + -40) + ((i - 171) * 30);
_local1["card" + i]._y = tileTopPos1 + tileHeight;
_local1["card" + i].swapDepths(8700 + i);
}
if ((i >= 175) && (i <= 178)) {
_local1["card" + i]._x = (xExtra + 357) + ((i - 175) * 30);
_local1["card" + i]._y = tileTopPos1 + tileHeight;
_local1["card" + i].swapDepths(8700 + i);
}
if ((i >= 179) && (i <= 181)) {
_local1["card" + i]._x = (xExtra + -40) + ((i - 179) * 30);
_local1["card" + i]._y = tileTopPos1 + (tileHeight * 2);
_local1["card" + i].swapDepths(8700 + i);
}
if ((i >= 182) && (i <= 184)) {
_local1["card" + i]._x = (xExtra + 387) + ((i - 182) * 30);
_local1["card" + i]._y = tileTopPos1 + (tileHeight * 2);
_local1["card" + i].swapDepths(8700 + i);
}
if ((i >= 185) && (i <= 186)) {
_local1["card" + i]._x = (xExtra + -40) + ((i - 185) * 30);
_local1["card" + i]._y = (tileTopPos1 + (tileHeight * 3)) - 0.4;
_local1["card" + i].swapDepths(8700 + i);
}
if ((i >= 187) && (i <= 188)) {
_local1["card" + i]._x = (xExtra + 417) + ((i - 187) * 30);
_local1["card" + i]._y = (tileTopPos1 + (tileHeight * 3)) - 0.4;
_local1["card" + i].swapDepths(8700 + i);
}
if ((i >= 189) && (i <= 191)) {
_local1["card" + i]._x = (xExtra + -40) + ((i - 189) * 30);
_local1["card" + i]._y = (tileTopPos1 + (tileHeight * 4)) - 1;
_local1["card" + i].swapDepths(8700 + i);
}
if ((i >= 192) && (i <= 194)) {
_local1["card" + i]._x = (xExtra + 387) + ((i - 192) * 30);
_local1["card" + i]._y = (tileTopPos1 + (tileHeight * 4)) - 1;
_local1["card" + i].swapDepths(8700 + i);
}
if ((i >= 195) && (i <= 198)) {
_local1["card" + i]._x = (xExtra + -40) + ((i - 195) * 30);
_local1["card" + i]._y = (tileTopPos1 + (tileHeight * 5)) - 1.6;
_local1["card" + i].swapDepths(8700 + i);
}
if ((i >= 199) && (i <= 202)) {
_local1["card" + i]._x = (xExtra + 357) + ((i - 199) * 30);
_local1["card" + i]._y = (tileTopPos1 + (tileHeight * 5)) - 1.6;
_local1["card" + i].swapDepths(8700 + i);
}
if ((i >= 203) && (i <= 207)) {
_local1["card" + i]._x = (xExtra + -40) + ((i - 203) * 30);
_local1["card" + i]._y = (tileTopPos1 + (tileHeight * 6)) - 1.6;
_local1["card" + i].swapDepths(8700 + i);
}
if ((i >= 208) && (i <= 212)) {
_local1["card" + i]._x = (xExtra + 327) + ((i - 208) * 30);
_local1["card" + i]._y = (tileTopPos1 + (tileHeight * 6)) - 1.6;
_local1["card" + i].swapDepths(8700 + i);
}
i++;
}
}
function cornertile() {
var _local1 = this;
i = 1;
while (i <= maxCards) {
if (i <= 6) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 9) && (i <= 13)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 16) && (i <= 19)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 22) && (i <= 25)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 28) && (i <= 30)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 33) && (i <= 35)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 38) && (i <= 39)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 42) && (i <= 43)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 46) && (i <= 48)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 51) && (i <= 53)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 56) && (i <= 59)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 62) && (i <= 65)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 68) && (i <= 72)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 75) && (i <= 79)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 85) && (i <= 86)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 89) && (i <= 90)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 96) && (i <= 99)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 102) && (i <= 105)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 108) && (i <= 110)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 113) && (i <= 115)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 118) && (i <= 119)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 122) && (i <= 123)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 126) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 129) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 132) && (i <= 133)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 136) && (i <= 137)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 140) && (i <= 142)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 145) && (i <= 147)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 150) && (i <= 153)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 156) && (i <= 159)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 162) && (i <= 164)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 167) && (i <= 169)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 172) && (i <= 173)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 176) && (i <= 177)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 180) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 183) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 190) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 193) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 196) && (i <= 197)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 200) && (i <= 201)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 204) && (i <= 206)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 209) && (i <= 211)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
i++;
}
}
stop();
tileHeight = 44.4;
tilePos = 75;
tileTopPos = 70;
tileTopPos1 = 65;
cardCreator();
cornertile();
Instance of Symbol 228 MovieClip "timer" in Frame 113
onClipEvent (load) {
once = 0;
}
onClipEvent (enterFrame) {
if (_root.options != 0) {
this._x = this._x + (_root.timerSpeed + 0.15);
if ((this._x >= 450) && (once == 0)) {
i = 1;
while (i <= _parent.maxCards) {
removeMovieClip(_parent["card" + i]);
i++;
}
once = 1;
_root.gotoAndStop("gameOver");
}
}
}
Frame 119
trace(options_bt._visible);
options_bt._visible = false;
trace(options_bt._visible);
Frame 121
function cardsCompare() {
cornertile();
oneObject = eval (one);
twoObject = eval (two);
if (oneObject._currentframe == twoObject._currentframe) {
_root.snd4.correctObj.start(0, 1);
one = null;
two = null;
clearMe1 = setInterval(FadeMe, 10, oneObject, twoObject);
count = count + 50;
_root.dbInterface.updateScore(_root.count);
balanceCards = balanceCards - 2;
if ((balanceCards == 0) && (timer._x < 450)) {
levelNumber = 1;
timeRemaining = 450 - Math.round(timer._x);
trace("timeRemaining-=" + timeRemaining);
count = count + (500 + timeRemaining);
_root.dbInterface.updateScore(_root.count);
}
cornertile();
if (balanceCards == 0) {
_root.snd3.levelCompleteObj.start(0, 1);
_root.RoundWin = true;
_root.gotoAndStop("comBRound");
}
} else {
_root.snd5.wrongObj.start(0, 1);
oneObject.highLight.gotoAndPlay(3);
twoObject.highLight.gotoAndPlay(3);
one = null;
two = null;
}
}
function FadeMe(oneObj, twoObj) {
var _local1 = oneObj;
var _local2 = twoObj;
if (_local1._xscale >= 30) {
trace("fade speed round ----------- ");
_local1._xscale = _local1._xscale - decrement;
_local2._xscale = _local2._xscale - decrement;
_local1._yscale = _local1._yscale - decrement;
_local2._yscale = _local2._yscale - decrement;
} else {
removeMovieClip(_local1);
removeMovieClip(_local2);
cornertile();
clearInterval(clearMe1);
}
}
var one = null;
var two = null;
maxCards = 48;
levelNumber = 1;
_root.subLevel = _root.subLevel + 1;
balanceCards = maxCards;
yAdjust = 6.4;
options_bt._visible = true;
i = 1;
while (i <= 3) {
this["cornertile" + i] = 0;
i++;
}
cornertile1 = 1;
cornertile4 = 1;
cornertile5 = 1;
cornertile6 = 1;
cornertile7 = 1;
cornertile8 = 1;
cornertile9 = 1;
cornertile10 = 1;
cornertile13 = 1;
cornertile14 = 1;
cornertile15 = 1;
cornertile16 = 1;
cornertile17 = 1;
cornertile18 = 1;
cornertile21 = 1;
cornertile22 = 1;
cornertile23 = 1;
cornertile25 = 1;
cornertile26 = 1;
cornertile27 = 1;
cornertile28 = 1;
cornertile29 = 1;
cornertile31 = 1;
cornertile32 = 1;
cornertile33 = 1;
cornertile35 = 1;
cornertile36 = 1;
cornertile38 = 1;
cornertile39 = 1;
cornertile40 = 1;
cornertile41 = 1;
cornertile42 = 1;
cornertile43 = 1;
cornertile44 = 1;
cornertile45 = 1;
cornertile46 = 1;
cornertile47 = 1;
cornertile48 = 1;
decrement = 4;
Frame 124
function cardCreator() {
var _local1 = this;
xExtra = 120;
i = 1;
while (i <= (maxCards / 2)) {
duplicateMovieClip (card, "card" + i, i);
ran = random(18) + 2;
_local1["card" + i].gotoAndStop(ran);
i++;
}
i = (maxCards / 2) + 1;
while (i <= maxCards) {
duplicateMovieClip (card, "card" + i, i);
_local1["card" + i].gotoAndStop(_local1["card" + (i - (maxCards / 2))]._currentframe);
i++;
}
i = 1;
while (i <= maxCards) {
if (i <= 4) {
_local1["card" + i]._x = (xExtra + 290) + ((i - 1) * 30);
_local1["card" + i]._y = tilePos;
_local1["card" + i].swapDepths(10000 + i);
}
if (i == 5) {
_local1["card" + i]._x = (xExtra + 410) + ((i - 5) * 30);
_local1["card" + i]._y = (tilePos + tileHeight) + 0.4;
_local1["card" + i].swapDepths(11000 + i);
}
if (i == 6) {
_local1["card" + i]._x = (xExtra + 440) + ((i - 6) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 2)) + 0.4;
_local1["card" + i].swapDepths(11000 + i);
}
if (i == 7) {
_local1["card" + i]._x = (xExtra + 460) + ((i - 7) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 3)) + 0.4;
_local1["card" + i].swapDepths(11000 + i);
}
if (i == 8) {
_local1["card" + i]._x = (xExtra + 440) + ((i - 8) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 4)) + 0.4;
_local1["card" + i].swapDepths(11000 + i);
}
if (i == 9) {
_local1["card" + i]._x = (xExtra + 410) + ((i - 9) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 5)) + 0.4;
_local1["card" + i].swapDepths(11000 + i);
}
if ((i >= 10) && (i <= 13)) {
_local1["card" + i]._x = (xExtra + 290) + ((i - 10) * 30);
_local1["card" + i]._y = tilePos + (tileHeight * 6);
_local1["card" + i].swapDepths(11300 + i);
}
if (i == 14) {
_local1["card" + i]._x = (xExtra + 260) + ((i - 14) * 30);
_local1["card" + i]._y = (tilePos + tileHeight) + 0.4;
_local1["card" + i].swapDepths(11000 + i);
}
if (i == 15) {
_local1["card" + i]._x = (xExtra + 240) + ((i - 15) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 2)) + 0.4;
_local1["card" + i].swapDepths(11000 + i);
}
if (i == 16) {
_local1["card" + i]._x = (xExtra + 240) + ((i - 16) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 4)) + 0.4;
_local1["card" + i].swapDepths(11100 + i);
}
if (i == 17) {
_local1["card" + i]._x = (xExtra + 260) + ((i - 17) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 5)) + 0.4;
_local1["card" + i].swapDepths(11200 + i);
}
if ((i >= 18) && (i <= 21)) {
_local1["card" + i]._x = (xExtra + 130) + ((i - 18) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 3)) + 0.4;
_local1["card" + i].swapDepths(11000 + i);
}
if (i == 22) {
_local1["card" + i]._x = (xExtra + 110) + ((i - 22) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 2)) + 0.4;
_local1["card" + i].swapDepths(9800 + i);
}
if ((i >= 23) && (i <= 25)) {
_local1["card" + i]._x = (xExtra + 20) + ((i - 23) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 1)) + 0.4;
_local1["card" + i].swapDepths(9500 + i);
}
if (i == 26) {
_local1["card" + i]._x = (xExtra + -10) + ((i - 26) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 2)) + 0.4;
_local1["card" + i].swapDepths(9800 + i);
}
if (i == 27) {
_local1["card" + i]._x = (xExtra + -30) + ((i - 27) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 3)) + 0.4;
_local1["card" + i].swapDepths(9800 + i);
}
if (i == 28) {
_local1["card" + i]._x = (xExtra + -10) + ((i - 28) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 4)) + 0.4;
_local1["card" + i].swapDepths(9800 + i);
}
if ((i >= 29) && (i <= 31)) {
_local1["card" + i]._x = (xExtra + 20) + ((i - 29) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 5)) + 0.4;
_local1["card" + i].swapDepths(10000 + i);
}
if (i == 32) {
_local1["card" + i]._x = (xExtra + 110) + ((i - 32) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 4)) + 0.4;
_local1["card" + i].swapDepths(11300 + i);
}
if ((i >= 33) && (i <= 35)) {
_local1["card" + i]._x = (xExtra + 140) + ((i - 33) * 30);
_local1["card" + i]._y = tilePos + 10;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 36) && (i <= 38)) {
_local1["card" + i]._x = (xExtra + 140) + ((i - 36) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 5)) + 30;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 39) && (i <= 40)) {
_local1["card" + i]._x = (xExtra + 330) + ((i - 39) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 1)) + 20;
_local1["card" + i].swapDepths(10000 + i);
}
if (i == 41) {
_local1["card" + i]._x = (xExtra + 300) + ((i - 41) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 2)) + 20;
_local1["card" + i].swapDepths(10000 + i);
}
if (i == 42) {
_local1["card" + i]._x = (xExtra + 300) + ((i - 42) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 3)) + 20.4;
_local1["card" + i].swapDepths(10000 + i);
}
if ((i >= 43) && (i <= 44)) {
_local1["card" + i]._x = (xExtra + 330) + ((i - 43) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 4)) + 20;
_local1["card" + i].swapDepths(10000 + i);
}
if (i == 45) {
_local1["card" + i]._x = (xExtra + 390) + ((i - 45) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 2)) + 20.4;
_local1["card" + i].swapDepths(10000 + i);
}
if (i == 46) {
_local1["card" + i]._x = (xExtra + 390) + ((i - 46) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 3)) + 20.4;
_local1["card" + i].swapDepths(10000 + i);
}
if (i == 47) {
_local1["card" + i]._x = (xExtra + 170) + ((i - 47) * 30);
_local1["card" + i]._y = (tilePos + (tileHeight * 5)) - 13.4;
_local1["card" + i].swapDepths(9700 + i);
}
if (i == 48) {
_local1["card" + i]._x = (xExtra + 170) + ((i - 48) * 30);
_local1["card" + i]._y = (tilePos + tileHeight) + 10.4;
_local1["card" + i].swapDepths(10000 + i);
}
i++;
}
}
function cornertile() {
var _local1 = this;
i = 1;
while (i <= maxCards) {
if (i <= 3) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 11) && (i <= 12)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if ((i >= 19) && (i <= 20)) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 24) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 30) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 34) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
if (i == 37) {
if ((typeof(_local1["card" + (i + 1)]) == "undefined") || (typeof(_local1["card" + (i - 1)]) == "undefined")) {
Set(["cornertile" + i], 1);
} else {
Set(["cornertile" + i], 0);
}
}
i++;
}
}
stop();
tileHeight = 44;
tilePos = 70;
cardCreator();
cornertile();
Instance of Symbol 228 MovieClip "timer" in Frame 124
onClipEvent (load) {
once = 0;
}
onClipEvent (enterFrame) {
if (_root.options != 0) {
this._x = this._x + 0.24;
if ((this._x >= 450) && (once == 0)) {
i = 1;
while (i <= _parent.maxCards) {
removeMovieClip(_parent["card" + i]);
i++;
}
once = 1;
clearInterval(_root.clearMe1);
_root.RoundLose = true;
_root.gotoAndStop("comBRound");
}
}
}
Frame 125
setDeactive();
levelNumberText = "level " + levelNumber;
_root.snd8.gOverObj.start(0, 1);
Symbol 13 MovieClip Frame 1
musicObj = new Sound(this);
musicObj.attachSound("bgmusic");
Symbol 14 MovieClip Frame 1
bonusSndObj = new Sound(this);
bonusSndObj.attachSound("speedRound");
Symbol 15 MovieClip Frame 1
levelCompleteObj = new Sound(this);
levelCompleteObj.attachSound("levelOver");
Symbol 16 MovieClip Frame 1
correctObj = new Sound(this);
correctObj.attachSound("correctPairs");
Symbol 17 MovieClip Frame 1
wrongObj = new Sound(this);
wrongObj.attachSound("wrongPairs");
Symbol 18 MovieClip Frame 1
BsrLoseObj = new Sound(this);
BsrLoseObj.attachSound("bsrLose");
Symbol 19 MovieClip Frame 1
shuffleObj = new Sound(this);
shuffleObj.attachSound("shuffsnd");
Symbol 20 MovieClip Frame 1
gOverObj = new Sound(this);
gOverObj.attachSound("gOversnd");
Symbol 30 Button
on (press) {
startDrag (this, true, left_M, top_M, right_M, bottom_M);
}
on (release, releaseOutside) {
stopDrag();
}
Symbol 32 Button
on (press) {
startDrag (this, false, left_j, top_j, right_j, bottom_j);
}
on (release, releaseOutside) {
stopDrag();
}
Symbol 35 Button
on (release) {
_root.options = 1;
_parent.optBlock._visible = false;
_root.slidemusic_X = slidemusic._x;
_root.slidesound_X = slidesound._x;
_root.controls.swapDepths(_parent.tempdepth);
gotoAndStop (1);
}
Symbol 36 MovieClip Frame 1
stop();
_root.activate = 0;
Symbol 36 MovieClip Frame 2
blocker.useHandCursor = false;
_root.activate = 1;
Symbol 36 MovieClip Frame 23
stop();
_root.activate = 1;
Instance of Symbol 31 MovieClip "slidemusic" in Symbol 36 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);
_root.snd2.bonusSndObj.setVolume(_x - left_M);
}
Instance of Symbol 33 MovieClip "slidesound" in Symbol 36 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.snd3.levelCompleteObj.setVolume(_x - left_j);
_root.snd4.correctObj.setVolume(_x - left_j);
_root.snd5.wrongObj.setVolume(_x - left_j);
_root.snd6.BsrLoseObj.setVolume(_x - left_j);
_root.snd7.shuffleObj.setVolume(_x - left_j);
_root.snd8.gOverObj.setVolume(_x - left_j);
}
Symbol 48 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 1
stop();
LoaderBlk.useHandCursor = false;
Instance of Symbol 48 MovieClip in Symbol 49 MovieClip Frame 1
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(2);
}
}
Symbol 49 MovieClip Frame 2
stop();
_parent.gotoAndStop(2);
Symbol 54 Button
on (release) {
_root.options = 0;
optBlock._visible = true;
beginX = timer.temptimerX;
tempdepth = controls.getDepth();
controls.swapDepths(18000);
controls.gotoAndPlay(2);
}
Symbol 67 Button
on (press) {
stop();
stopAllSounds();
_root.snd2.bonusSndObj.start(0, 10000);
trace("timerSpeed=" + _root.timerSpeed);
gotoAndPlay ("speedRoundStart");
}
Symbol 69 MovieClip Frame 1
Symbol 69 MovieClip Frame 16
stop();
Symbol 69 MovieClip Frame 45
_root.gotoAndPlay("bsRound");
Symbol 81 Button
on (release) {
gotoAndPlay ("Mlevel1");
}
Symbol 86 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 = _name;
highLight.gotoAndStop(2);
} else if (_parent.one != _name) {
highLight.gotoAndPlay(3);
_parent.two = _name;
_parent.cardsCompare();
} else {
highLight.gotoAndStop(1);
_parent.one = null;
}
}
}
}
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 2
stop();
Symbol 97 MovieClip Frame 1
Symbol 100 MovieClip Frame 1
Symbol 103 MovieClip Frame 1
Symbol 109 MovieClip Frame 1
Symbol 112 MovieClip Frame 1
Symbol 115 MovieClip Frame 1
Symbol 118 MovieClip Frame 1
Symbol 121 MovieClip Frame 1
Symbol 127 MovieClip Frame 1
Symbol 130 MovieClip Frame 1
Symbol 133 MovieClip Frame 1
Symbol 136 MovieClip Frame 1
Symbol 139 MovieClip Frame 1
Symbol 142 MovieClip Frame 1
Symbol 145 MovieClip Frame 1
var cornertile = false;
Symbol 146 MovieClip Frame 1
myname = "";
stop();
t1.a1._visible = false;
blockBut.useHandCursor = false;
Symbol 148 Button
on (press) {
if (_root.options != 0) {
timer._x = timer._x + 10;
_root.count = _root.count - 50;
if (_root.count < 0) {
_root.count = 0;
}
shuffleCard();
}
}
Symbol 155 Button
on (press) {
stopAllSounds();
_root.snd2.bonusSndObj.start(0, 10000);
trace("timerSpeed=" + _root.timerSpeed);
gotoAndPlay ("speedRoundStart");
}
Symbol 156 MovieClip Frame 16
stop();
Symbol 156 MovieClip Frame 45
_root.gotoAndPlay("bsRound");
Symbol 163 Button
on (release) {
i = 1;
while (i <= maxCards) {
trace((i + "X=") + this["card" + i]._x);
trace((i + "Y=") + this["card" + i]._y);
i++;
}
}
Symbol 170 Button
on (press) {
stopAllSounds();
_root.snd2.bonusSndObj.start(0, 10000);
trace("timerSpeed=" + _root.timerSpeed);
gotoAndPlay ("speedRoundStart");
}
Symbol 171 MovieClip Frame 16
stop();
Symbol 171 MovieClip Frame 45
_root.gotoAndPlay("bsRound");
Symbol 183 Button
on (press) {
stopAllSounds();
_root.snd2.bonusSndObj.start(0, 10000);
trace("timerSpeed=" + _root.timerSpeed);
gotoAndPlay ("speedRoundStart");
}
Symbol 184 MovieClip Frame 16
stop();
Symbol 184 MovieClip Frame 45
_root.gotoAndPlay("bsRound");
Symbol 196 Button
on (press) {
stopAllSounds();
_root.snd2.bonusSndObj.start(0, 10000);
trace("timerSpeed=" + _root.timerSpeed);
gotoAndPlay ("speedRoundStart");
}
Symbol 197 MovieClip Frame 16
stop();
Symbol 197 MovieClip Frame 45
_root.gotoAndPlay("bsRound");
Symbol 209 Button
on (press) {
stopAllSounds();
_root.snd2.bonusSndObj.start(0, 10000);
gotoAndPlay ("speedRoundStart");
}
Symbol 210 MovieClip Frame 16
stop();
Symbol 210 MovieClip Frame 45
_root.gotoAndPlay("bsRound");
Symbol 222 Button
on (press) {
stopAllSounds();
_root.snd2.bonusSndObj.start(0, 10000);
trace("timerSpeed=" + _root.timerSpeed);
gotoAndPlay ("speedRoundStart");
}
Symbol 223 MovieClip Frame 16
stop();
Symbol 223 MovieClip Frame 45
_root.gotoAndPlay("bsRound");
Symbol 235 Button
on (press) {
stopAllSounds();
_root.snd2.bonusSndObj.start(0, 10000);
gotoAndPlay ("speedRoundStart");
}
Symbol 236 MovieClip Frame 16
stop();
Symbol 236 MovieClip Frame 45
_root.gotoAndPlay("bsRound");
Symbol 246 Button
on (press) {
stopAllSounds();
_root.snd2.bonusSndObj.start(0, 10000);
gotoAndPlay ("speedRoundStart");
}
Symbol 247 MovieClip Frame 16
stop();
Symbol 247 MovieClip Frame 45
_root.gotoAndPlay("bsRound");
Symbol 254 Button
on (press) {
stopAllSounds();
_root.snd2.bonusSndObj.start(0, 10000);
_root.timeReducer = _root.timeReducer + 0.2;
gotoAndPlay ("speedRoundStart");
}
Symbol 255 MovieClip Frame 16
stop();
Symbol 255 MovieClip Frame 45
_root.gotoAndPlay("bsRound");
Symbol 261 Button
on (press) {
tempLevel = "Mlevel" + _root.subLevel;
stopAllSounds();
_root.snd1.musicObj.start(0, 10000);
if (tempLevel == "Mlevel11") {
_root.subLevel = 1;
_root.timerSpeed = _root.timerSpeed + 0.03;
_root.gotoAndPlay("Mlevel1");
} else {
_root.gotoAndPlay(tempLevel);
}
}
Symbol 264 MovieClip Frame 1
stop();
if (_root.RoundLose == true) {
_root.RoundLose = false;
gotoAndPlay ("speedRoundLose");
} else if (_root.RoundWin == true) {
_root.RoundWin = false;
gotoAndPlay ("speedRoundWin");
}
Symbol 264 MovieClip Frame 16
stop();
Symbol 264 MovieClip Frame 32
stop();
_root.snd6.BsrLoseObj.start(0, 1);
Symbol 268 Button
on (press) {
if (_root.options != 0) {
shuffleCard();
}
}
Symbol 278 Button
on (release) {
_parent.gotoAndStop(2);
}
Symbol 280 Button
on (release) {
getURL ("http://www.ikoncity.com/ic-master.asp?pageID=805", "_blank");
}
Symbol 281 MovieClip Frame 56
stop();
stopAllSounds();