Frame 1
fscommand ("showmenu", false);
_root.best = 0;
_root.sunet = 1;
stop();
logo.onEnterFrame = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
this.play();
} else {
tgFrame = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
this.progress.gotoAndStop(tgFrame);
}
};
Frame 2
son = new Sound();
son.attachSound("muzica");
son.setVolume(40);
son1 = new Sound();
son1.attachSound("shot");
if (_root.kx == null) {
son.start(1, 9999);
_root.kx = 1;
}
stop();
but.onPress = function () {
_root.gotoAndStop(3);
};
Frame 3
stop();
_root.score = 0;
_root.moves = 0;
tgFrame = new Array();
_root.card1 = null;
_root.card2 = null;
tex1.text = 0;
tex2.text = 0;
tex3.text = _root.best;
i = 1;
while (i <= 24) {
ok = false;
while (ok == false) {
cont = 0;
ran = random(12) + 2;
k = 1;
while (k < i) {
if (tgFrame[k] == ran) {
cont++;
}
k++;
}
if (cont < 2) {
ok = true;
}
}
tgFrame[i] = ran;
_root["c" + i].gotoAndStop(tgFrame[i]);
i++;
}
this.onMouseUp = function () {
if ((_root.card1 == _root.card2) && (_root.card1 != null)) {
tg = _root.card1;
j = 1;
while (j <= 24) {
if (tgFrame[j] == (tg + 1)) {
_root["c" + j].gotoAndPlay(14);
}
j++;
}
_root.score++;
if (_root.score >= 12) {
this.gotoAndStop(4);
}
}
tex1.text = _root.moves;
tex2.text = _root.score;
};
Frame 4
stop();
scor1 = Math.round(50000 / _root.moves);
scor.text = scor1;
if (scor1 > _root.best) {
_root.best = scor1;
tex3.text = scor1;
}
Symbol 9 MovieClip Frame 1
stop();
Symbol 13 MovieClip Frame 63
stop();
Symbol 13 MovieClip Frame 272
_root.gotoAndStop(2);
Symbol 18 Button
on (release) {
if (_root.sunet == 0) {
_root.sunet = 1;
_root.son.start(0, 100);
} else {
_root.sunet = 0;
_root.son.stop();
}
}
Symbol 44 MovieClip Frame 1
stop();
if (_root.card2 != null) {
_root.card2 = null;
} else if (_root.card1 != null) {
_root.card1 = null;
}
this.onPress = function () {
_root.moves++;
this.play();
};
Symbol 44 MovieClip Frame 2
stop();
if (_root.card1 == null) {
_root.card1 = 1;
} else if (_root.card2 == null) {
_root.card2 = 1;
} else {
i = 1;
while (i <= 24) {
_root["c" + i]["carte" + _root.tgFrame[i]].gotoAndStop(1);
i++;
}
this.gotoAndStop(2);
_root.card1 = 1;
_root.card2 = null;
}
Symbol 45 MovieClip Frame 1
stop();
if (_root.card2 != null) {
_root.card2 = null;
} else if (_root.card1 != null) {
_root.card1 = null;
}
this.onPress = function () {
_root.moves++;
this.play();
};
Symbol 45 MovieClip Frame 2
stop();
if (_root.card1 == null) {
_root.card1 = 2;
} else if (_root.card2 == null) {
_root.card2 = 2;
} else {
i = 1;
while (i <= 24) {
_root["c" + i]["carte" + _root.tgFrame[i]].gotoAndStop(1);
i++;
}
this.gotoAndStop(2);
_root.card1 = 2;
_root.card2 = null;
}
Symbol 46 MovieClip Frame 1
stop();
if (_root.card2 != null) {
_root.card2 = null;
} else if (_root.card1 != null) {
_root.card1 = null;
}
this.onPress = function () {
_root.moves++;
this.play();
};
Symbol 46 MovieClip Frame 2
stop();
if (_root.card1 == null) {
_root.card1 = 3;
} else if (_root.card2 == null) {
_root.card2 = 3;
} else {
i = 1;
while (i <= 24) {
_root["c" + i]["carte" + _root.tgFrame[i]].gotoAndStop(1);
i++;
}
this.gotoAndStop(2);
_root.card1 = 3;
_root.card2 = null;
}
Symbol 49 MovieClip Frame 1
stop();
if (_root.card2 != null) {
_root.card2 = null;
} else if (_root.card1 != null) {
_root.card1 = null;
}
this.onPress = function () {
_root.moves++;
this.play();
};
Symbol 49 MovieClip Frame 2
stop();
if (_root.card1 == null) {
_root.card1 = 4;
} else if (_root.card2 == null) {
_root.card2 = 4;
} else {
i = 1;
while (i <= 24) {
_root["c" + i]["carte" + _root.tgFrame[i]].gotoAndStop(1);
i++;
}
this.gotoAndStop(2);
_root.card1 = 4;
_root.card2 = null;
}
Symbol 53 MovieClip Frame 1
stop();
if (_root.card2 != null) {
_root.card2 = null;
} else if (_root.card1 != null) {
_root.card1 = null;
}
this.onPress = function () {
_root.moves++;
this.play();
};
Symbol 53 MovieClip Frame 2
stop();
if (_root.card1 == null) {
_root.card1 = 5;
} else if (_root.card2 == null) {
_root.card2 = 5;
} else {
i = 1;
while (i <= 24) {
_root["c" + i]["carte" + _root.tgFrame[i]].gotoAndStop(1);
i++;
}
this.gotoAndStop(2);
_root.card1 = 5;
_root.card2 = null;
}
Symbol 56 MovieClip Frame 1
stop();
if (_root.card2 != null) {
_root.card2 = null;
} else if (_root.card1 != null) {
_root.card1 = null;
}
this.onPress = function () {
_root.moves++;
this.play();
};
Symbol 56 MovieClip Frame 2
stop();
if (_root.card1 == null) {
_root.card1 = 6;
} else if (_root.card2 == null) {
_root.card2 = 6;
} else {
i = 1;
while (i <= 24) {
_root["c" + i]["carte" + _root.tgFrame[i]].gotoAndStop(1);
i++;
}
this.gotoAndStop(2);
_root.card1 = 6;
_root.card2 = null;
}
Symbol 59 MovieClip Frame 1
stop();
if (_root.card2 != null) {
_root.card2 = null;
} else if (_root.card1 != null) {
_root.card1 = null;
}
this.onPress = function () {
_root.moves++;
this.play();
};
Symbol 59 MovieClip Frame 2
stop();
if (_root.card1 == null) {
_root.card1 = 7;
} else if (_root.card2 == null) {
_root.card2 = 7;
} else {
i = 1;
while (i <= 24) {
_root["c" + i]["carte" + _root.tgFrame[i]].gotoAndStop(1);
i++;
}
this.gotoAndStop(2);
_root.card1 = 7;
_root.card2 = null;
}
Symbol 62 MovieClip Frame 1
stop();
if (_root.card2 != null) {
_root.card2 = null;
} else if (_root.card1 != null) {
_root.card1 = null;
}
this.onPress = function () {
_root.moves++;
this.play();
};
Symbol 62 MovieClip Frame 2
stop();
if (_root.card1 == null) {
_root.card1 = 8;
} else if (_root.card2 == null) {
_root.card2 = 8;
} else {
i = 1;
while (i <= 24) {
_root["c" + i]["carte" + _root.tgFrame[i]].gotoAndStop(1);
i++;
}
this.gotoAndStop(2);
_root.card1 = 8;
_root.card2 = null;
}
Symbol 65 MovieClip Frame 1
stop();
if (_root.card2 != null) {
_root.card2 = null;
} else if (_root.card1 != null) {
_root.card1 = null;
}
this.onPress = function () {
_root.moves++;
this.play();
};
Symbol 65 MovieClip Frame 2
stop();
if (_root.card1 == null) {
_root.card1 = 9;
} else if (_root.card2 == null) {
_root.card2 = 9;
} else {
i = 1;
while (i <= 24) {
_root["c" + i]["carte" + _root.tgFrame[i]].gotoAndStop(1);
i++;
}
this.gotoAndStop(2);
_root.card1 = 9;
_root.card2 = null;
}
Symbol 68 MovieClip Frame 1
stop();
if (_root.card2 != null) {
_root.card2 = null;
} else if (_root.card1 != null) {
_root.card1 = null;
}
this.onPress = function () {
_root.moves++;
this.play();
};
Symbol 68 MovieClip Frame 2
stop();
if (_root.card1 == null) {
_root.card1 = 10;
} else if (_root.card2 == null) {
_root.card2 = 10;
} else {
i = 1;
while (i <= 24) {
_root["c" + i]["carte" + _root.tgFrame[i]].gotoAndStop(1);
i++;
}
this.gotoAndStop(2);
_root.card1 = 10;
_root.card2 = null;
}
Symbol 71 MovieClip Frame 1
stop();
if (_root.card2 != null) {
_root.card2 = null;
} else if (_root.card1 != null) {
_root.card1 = null;
}
this.onPress = function () {
_root.moves++;
this.play();
};
Symbol 71 MovieClip Frame 2
stop();
if (_root.card1 == null) {
_root.card1 = 11;
} else if (_root.card2 == null) {
_root.card2 = 11;
} else {
i = 1;
while (i <= 24) {
_root["c" + i]["carte" + _root.tgFrame[i]].gotoAndStop(1);
i++;
}
this.gotoAndStop(2);
_root.card1 = 11;
_root.card2 = null;
}
Symbol 74 MovieClip Frame 1
stop();
if (_root.card2 != null) {
_root.card2 = null;
} else if (_root.card1 != null) {
_root.card1 = null;
}
this.onPress = function () {
_root.moves++;
this.play();
};
Symbol 74 MovieClip Frame 2
stop();
if (_root.card1 == null) {
_root.card1 = 12;
} else if (_root.card2 == null) {
_root.card2 = 12;
} else {
i = 1;
while (i <= 24) {
_root["c" + i]["carte" + _root.tgFrame[i]].gotoAndStop(1);
i++;
}
this.gotoAndStop(2);
_root.card1 = 12;
_root.card2 = null;
}
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 2
delete this.onEnterFrame;
Symbol 75 MovieClip Frame 3
delete this.onEnterFrame;
Symbol 75 MovieClip Frame 4
delete this.onEnterFrame;
Symbol 75 MovieClip Frame 5
delete this.onEnterFrame;
Symbol 75 MovieClip Frame 6
delete this.onEnterFrame;
Symbol 75 MovieClip Frame 7
delete this.onEnterFrame;
Symbol 75 MovieClip Frame 8
delete this.onEnterFrame;
Symbol 75 MovieClip Frame 9
delete this.onEnterFrame;
Symbol 75 MovieClip Frame 10
delete this.onEnterFrame;
Symbol 75 MovieClip Frame 11
delete this.onEnterFrame;
Symbol 75 MovieClip Frame 12
delete this.onEnterFrame;
Symbol 75 MovieClip Frame 13
delete this.onEnterFrame;
Symbol 75 MovieClip Frame 27
stop();
Symbol 79 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 84 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 86 Button
on (release) {
_root.gotoAndStop(3);
}