Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("c6e993fe", this, 10301, true);
var showingAds = false;
Frame 2
rezTotal = getBytesTotal();
rezLoaded = getBytesLoaded();
_root.rezPercent = Math.round(rezLoaded / (rezTotal / 100));
if (rezTotal == rezLoaded) {
gotoAndPlay (4);
}
Frame 3
gotoAndPlay (2);
Frame 4
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
duplicateMovieClip ("frame_gfx", "okvir_gfx", 261);
unloadMovie ("frame_gfx");
var click_sound = new Sound();
click_sound.attachSound("klik2_sound");
var click2_sound = new Sound();
click2_sound.attachSound("klik_sound");
var great_sound = new Sound();
great_sound.attachSound("great_sound");
var gameover_sound = new Sound();
gameover_sound.attachSound("gameover_sound");
var check_sound = new Sound();
check_sound.attachSound("check_sound");
Frame 5
stop();
Frame 6
MochiAd.showPreGameAd({id:"8834094e8620c91f", res:"640x480"});
Frame 10
play_btn.onRelease = function () {
great_sound.start();
gotoAndPlay (20);
};
instructions_btn.onRelease = function () {
great_sound.start();
gotoAndPlay (75);
};
Frame 12
gotoAndPlay (11);
Frame 20
function nivoFUN() {
prviBroj = Math.floor(_global.nivo / 10);
drugiBroj = _global.nivo % 10;
if (prviBroj == 0) {
prviBroj = 10;
}
if (drugiBroj == 0) {
drugiBroj = 10;
}
_root.nextUp_mc.level_mc.numbersd1_mc.gotoAndStop(prviBroj);
_root.nextUp_mc.level_mc.numbersd2_mc.gotoAndStop(drugiBroj);
nextUp_mc._visible = 1;
nextUp_mc.gotoAndPlay(1);
}
function sledeciNivoFUN() {
if (_global.nextLevel == 1) {
while (_global.brojac > 0) {
_root["pop" + _global.brojac].removeMovieClip();
_root["res" + _global.brojac].removeMovieClip();
_root.great2_mc.removeMovieClip();
_global.brojac--;
}
p1_mc._y = 422;
p2_mc._y = 422;
p3_mc._y = 422;
p4_mc._y = 422;
checkOff_mc._y = 392.5;
check_btn._y = 400.1;
resultBlk_mc._y = 418;
resultWht_mc._y = 418;
trace("Evo Ga !!!" + _global.nivo);
_global.nivo = _global.nivo + 1;
if (_global.nivo == 2) {
gotoAndPlay (30);
}
if (_global.nivo == 3) {
gotoAndPlay (40);
}
if (_global.nivo >= 4) {
gotoAndPlay (50);
}
_global.nextLevel = 0;
}
}
function proveri() {
if ((((_global.izbor1 != 7) && (_global.izbor2 != 7)) && (_global.izbor3 != 7)) && (_global.izbor4 != 7)) {
check_btn._alpha = 100;
checkOff_mc.gotoAndStop(2);
check_btn.enabled = true;
}
}
function ProveraFUN() {
_global.tacniTacni = 0;
_global.tacniBoja = 0;
izbor1 = _global.izbor1;
izbor2 = _global.izbor2;
izbor3 = _global.izbor3;
izbor4 = _global.izbor4;
if (_global.trazeni1 == izbor1) {
_global.tacniTacni++;
izbor1 = 9;
}
if (_global.trazeni2 == izbor2) {
_global.tacniTacni++;
izbor2 = 9;
}
if (_global.trazeni3 == izbor3) {
_global.tacniTacni++;
izbor3 = 9;
}
if (_global.trazeni4 == izbor4) {
_global.tacniTacni++;
izbor4 = 9;
}
trace((((" posle TACNI - " + izbor1) + izbor2) + izbor3) + izbor4);
if (izbor1 == 9) {
trace("Nema provere");
} else if (_global.trazeni1 == izbor2) {
_global.tacniBoja++;
izbor2 = 19;
trace("prvi je isti kao drugi");
} else if (_global.trazeni1 == izbor3) {
_global.tacniBoja++;
izbor3 = 19;
trace("prvi je isti kao treci");
} else if (_global.trazeni1 == izbor4) {
_global.tacniBoja++;
izbor4 = 19;
trace("prvi je isti kao cetvrti");
} else {
trave("Nista");
}
trace((((" posle BROJ1 - " + izbor1) + izbor2) + izbor3) + izbor4);
if (izbor2 == 9) {
trace("Nema provere");
} else if (_global.trazeni2 == izbor1) {
_global.tacniBoja++;
izbor1 = 19;
trace("drugi je isti kao prvi");
} else if (_global.trazeni2 == izbor3) {
_global.tacniBoja++;
izbor3 = 19;
trace("drugi je isti kao treci");
} else if (_global.trazeni2 == izbor4) {
_global.tacniBoja++;
izbor4 = 19;
trace("drugi je isti kao cetvrti");
} else {
trave("Nista");
}
trace((((" posle BROJ2 - " + izbor1) + izbor2) + izbor3) + izbor4);
if (izbor3 == 9) {
trace("Nema provere");
} else if (_global.trazeni3 == izbor1) {
_global.tacniBoja++;
izbor1 = 19;
trace("treci je isti kao prvi");
} else if (_global.trazeni3 == izbor2) {
_global.tacniBoja++;
izbor2 = 19;
trace("treci je isti kao drugi");
} else if (_global.trazeni3 == izbor4) {
_global.tacniBoja++;
izbor4 = 19;
trace("treci je isti kao cetvrti");
} else {
trave("Nista");
}
trace((((" posle BROJ3 - " + izbor1) + izbor2) + izbor3) + izbor4);
if (izbor4 == 9) {
trace("Nema provere");
} else if (_global.trazeni4 == izbor1) {
_global.tacniBoja++;
izbor1 = 19;
trace("cetvrti je isti kao prvi");
} else if (_global.trazeni4 == izbor2) {
_global.tacniBoja++;
izbor2 = 19;
trace("cetvrti je isti kao drugi");
} else if (_global.trazeni4 == izbor3) {
_global.tacniBoja++;
izbor3 = 19;
trace("cetvrti je isti kao treci");
} else {
trave("Nista");
}
trace((((" posle BROJ4 - " + izbor1) + izbor2) + izbor3) + izbor4);
if (_global.tacniTacni == 4) {
trace("PObeda - bravo,sve si pogodio");
}
}
_global.boja = 8;
_global.izbor1 = 7;
_global.izbor2 = 7;
_global.izbor3 = 7;
_global.izbor4 = 7;
_global.potez = 0;
_global.brojac = 10;
_global.tacniTacni = 0;
_global.tacniBoja = 0;
_global.nivo = 1;
_global.nextLevel = 0;
p1_mc.gotoAndStop(7);
p2_mc.gotoAndStop(7);
p3_mc.gotoAndStop(7);
p4_mc.gotoAndStop(7);
resultWht_mc.gotoAndStop(1);
resultBlk_mc.gotoAndStop(1);
cover_mc.gotoAndStop(1);
Mouse.hide();
check_btn.enabled = false;
checkOff_mc.gotoAndStop(1);
check_btn._alpha = 0;
great_mc.gotoAndStop(1);
_root.cLvlnumber1_mc.gotoAndStop(10);
_root.cLvlnumber2_mc.gotoAndStop(1);
duplicateMovieClip ("Back2Menu_mc", "Mozda_mc", 250);
duplicateMovieClip ("GameOver_mc", "GameOver2_mc", 251);
GameOver2_mc.onRelease = function () {
while (_global.brojac > 0) {
_root["pop" + _global.brojac].removeMovieClip();
_root["res" + _global.brojac].removeMovieClip();
_root.great2_mc.removeMovieClip();
_global.brojac--;
}
_root.p1_mc._y = 422;
_root.p2_mc._y = 422;
_root.p3_mc._y = 422;
_root.p4_mc._y = 422;
_root.checkOff_mc._y = 392.5;
_root.check_btn._y = 400.1;
_root.resultBlk_mc._y = 418;
_root.resultWht_mc._y = 418;
_root.kursor_mc.gotoAndStop(8);
_root.gotoAndPlay(10);
_root.Mozda_mc.removeMovieClip();
_root.GameOver2_mc.removeMovieClip();
};
exit_btn.onRelease = function () {
Mozda_mc.gotoAndPlay(5);
};
nivoFUN();
_global.trazeni1 = Math.floor(Math.random() * 3) + 1;
_global.trazeni2 = Math.floor(Math.random() * 3) + 1;
_global.trazeni3 = Math.floor(Math.random() * 3) + 1;
_global.trazeni4 = Math.floor(Math.random() * 3) + 1;
trace(_global.trazeni1);
trace(_global.trazeni2);
trace(_global.trazeni3);
trace(_global.trazeni4);
t1_mc.gotoAndStop(_global.trazeni1);
t2_mc.gotoAndStop(_global.trazeni2);
t3_mc.gotoAndStop(_global.trazeni3);
t4_mc.gotoAndStop(_global.trazeni4);
pickBlue_btn._visible = 0;
pickBlue_btn.enabled = 0;
pickPurple_btn._visible = 0;
pickPurple_btn.enabled = 0;
pickRed_btn._visible = 0;
pickRed_btn.enabled = 0;
this.attachMovie("Gem_mc", "kursor_mc", 500);
kursor_mc.gotoAndStop(8);
kursor_mc._rotation = -45;
pickYellow_btn.onRelease = function () {
click_sound.start();
kursor_mc.gotoAndStop(1);
_global.boja = 1;
};
pickOrange_btn.onRelease = function () {
click_sound.start();
kursor_mc.gotoAndStop(2);
_global.boja = 2;
};
pickGreen_btn.onRelease = function () {
click_sound.start();
kursor_mc.gotoAndStop(3);
_global.boja = 3;
};
pickBlue_btn.onRelease = function () {
click_sound.start();
kursor_mc.gotoAndStop(4);
_global.boja = 4;
};
pickPurple_btn.onRelease = function () {
click_sound.start();
kursor_mc.gotoAndStop(5);
_global.boja = 5;
};
pickRed_btn.onRelease = function () {
click_sound.start();
kursor_mc.gotoAndStop(6);
_global.boja = 6;
};
var mouseListener = new Object();
mouseListener.onMouseMove = function () {
kursor_mc._x = _xmouse;
kursor_mc._y = _ymouse;
};
Mouse.addListener(mouseListener);
p1_mc.onPress = function () {
if (_global.boja != 8) {
p1_mc.gotoAndStop(_global.boja);
_global.izbor1 = _global.boja;
_global.boja = 8;
click2_sound.start();
kursor_mc.gotoAndStop(8);
proveri();
}
};
p2_mc.onPress = function () {
if (_global.boja != 8) {
p2_mc.gotoAndStop(_global.boja);
_global.izbor2 = _global.boja;
_global.boja = 8;
kursor_mc.gotoAndStop(8);
click2_sound.start();
proveri();
}
};
p3_mc.onPress = function () {
if (_global.boja != 8) {
p3_mc.gotoAndStop(_global.boja);
_global.izbor3 = _global.boja;
_global.boja = 8;
kursor_mc.gotoAndStop(8);
click2_sound.start();
proveri();
}
};
p4_mc.onPress = function () {
if (_global.boja != 8) {
p4_mc.gotoAndStop(_global.boja);
_global.izbor4 = _global.boja;
_global.boja = 8;
kursor_mc.gotoAndStop(8);
click2_sound.start();
proveri();
}
};
dalje_btn.onRelease = function () {
while (_global.brojac > 0) {
_root["pop" + _global.brojac].removeMovieClip();
_root["res" + _global.brojac].removeMovieClip();
_global.brojac--;
}
p1_mc._y = 422;
p2_mc._y = 422;
p3_mc._y = 422;
p4_mc._y = 422;
checkOff_mc._y = 392.5;
check_btn._y = 400.1;
resultBlk_mc._y = 418;
resultWht_mc._y = 418;
gotoAndPlay (50);
};
sledeciNivoFUN();
check_btn.onRelease = function () {
check_sound.start();
ProveraFUN();
if (_global.tacniTacni == 4) {
duplicateMovieClip ("resultBlk_mc", "res" + _global.brojac, _global.brojac);
_root["res" + _global.brojac].gotoAndStop(_global.tacniTacni + 1);
_global.brojac++;
resultBlk_mc._y = resultBlk_mc._y - 45;
resultBlk_mc.gotoAndStop(1);
duplicateMovieClip ("great_mc", "great2_mc", _global.brojac);
great2_mc._y = 392 - (_global.potez * 45);
great2_mc.gotoAndPlay(1);
great_sound.start();
cover_mc.gotoAndStop(2);
check_btn.enabled = false;
check_btn._alpha = 0;
p1_mc.enabled = false;
p2_mc.enabled = false;
p3_mc.enabled = false;
p4_mc.enabled = false;
pickYellow_btn.enabled = false;
pickOrange_btn.enabled = false;
pickGreen_btn.enabled = false;
pickBlue_btn.enabled = false;
pickPurple_btn.enabled = false;
pickRed_btn.enabled = false;
} else {
duplicateMovieClip ("resultWht_mc", "res" + _global.brojac, _global.brojac);
_root["res" + _global.brojac].gotoAndStop(_global.tacniBoja + 1);
_global.brojac++;
resultWht_mc._y = resultWht_mc._y - 45;
resultWht_mc.gotoAndStop(1);
duplicateMovieClip ("resultBlk_mc", "res" + _global.brojac, _global.brojac);
_root["res" + _global.brojac].gotoAndStop(_global.tacniTacni + 1);
_global.brojac++;
resultBlk_mc._y = resultBlk_mc._y - 45;
resultBlk_mc.gotoAndStop(1);
duplicateMovieClip ("p1_mc", "pop" + _global.brojac, _global.brojac);
_root["pop" + _global.brojac].gotoAndStop(_global.izbor1);
_global.brojac++;
p1_mc._y = p1_mc._y - 45;
p1_mc.gotoAndStop(7);
_global.izbor1 = 7;
duplicateMovieClip ("p2_mc", "pop" + _global.brojac, _global.brojac);
_root["pop" + _global.brojac].gotoAndStop(_global.izbor2);
_global.brojac++;
p2_mc._y = p2_mc._y - 45;
p2_mc.gotoAndStop(7);
_global.izbor2 = 7;
duplicateMovieClip ("p3_mc", "pop" + _global.brojac, _global.brojac);
_root["pop" + _global.brojac].gotoAndStop(_global.izbor3);
_global.brojac++;
p3_mc._y = p3_mc._y - 45;
p3_mc.gotoAndStop(7);
_global.izbor3 = 7;
duplicateMovieClip ("p4_mc", "pop" + _global.brojac, _global.brojac);
_root["pop" + _global.brojac].gotoAndStop(_global.izbor4);
_global.brojac++;
p4_mc._y = p4_mc._y - 45;
p4_mc.gotoAndStop(7);
_global.izbor4 = 7;
_global.potez++;
if (_global.potez == 8) {
trace("IZGUBIO SI - KRAJ IGRE");
gameover_sound.start();
_root.exit_btn._visible = false;
GameOver2_mc.gotoAndPlay(1);
cover_mc.gotoAndStop(2);
check_btn.enabled = false;
check_btn._alpha = 0;
p1_mc.enabled = false;
p2_mc.enabled = false;
p3_mc.enabled = false;
p4_mc.enabled = false;
pickYellow_btn.enabled = false;
pickOrange_btn.enabled = false;
pickGreen_btn.enabled = false;
pickBlue_btn.enabled = false;
pickPurple_btn.enabled = false;
pickRed_btn.enabled = false;
} else {
checkOff_mc.gotoAndStop(1);
check_btn._alpha = 0;
check_btn.enabled = false;
check_btn._y = check_btn._y - 45;
checkOff_mc._y = checkOff_mc._y - 45;
}
kursor_mc.gotoAndStop(8);
_global.boja = 8;
trace("Tacno mesto i boja " + _global.tacniTacni);
trace("Tacna boja " + _global.tacniBoja);
}
};
Frame 21
sledeciNivoFUN();
Frame 22
gotoAndPlay (21);
Frame 30
nivoFUN();
_global.boja = 8;
_global.izbor1 = 7;
_global.izbor2 = 7;
_global.izbor3 = 7;
_global.izbor4 = 7;
_global.potez = 0;
_global.brojac = 10;
_global.tacniTacni = 0;
_global.tacniBoja = 0;
p1_mc.gotoAndStop(7);
p2_mc.gotoAndStop(7);
p3_mc.gotoAndStop(7);
p4_mc.gotoAndStop(7);
resultWht_mc.gotoAndStop(1);
resultBlk_mc.gotoAndStop(1);
cover_mc.gotoAndStop(1);
check_btn.enabled = false;
checkOff_mc.gotoAndStop(1);
check_btn._alpha = 0;
_global.trazeni1 = Math.floor(Math.random() * 4) + 1;
_global.trazeni2 = Math.floor(Math.random() * 4) + 1;
_global.trazeni3 = Math.floor(Math.random() * 4) + 1;
_global.trazeni4 = Math.floor(Math.random() * 4) + 1;
trace(_global.trazeni1);
trace(_global.trazeni2);
trace(_global.trazeni3);
trace(_global.trazeni4);
t1_mc.gotoAndStop(_global.trazeni1);
t2_mc.gotoAndStop(_global.trazeni2);
t3_mc.gotoAndStop(_global.trazeni3);
t4_mc.gotoAndStop(_global.trazeni4);
p1_mc.enabled = true;
p2_mc.enabled = true;
p3_mc.enabled = true;
p4_mc.enabled = true;
pickYellow_btn.enabled = true;
pickOrange_btn.enabled = true;
pickGreen_btn.enabled = true;
pickBlue_btn.enabled = true;
pickPurple_btn.enabled = true;
pickRed_btn.enabled = true;
pickBlue_btn._visible = true;
Frame 31
sledeciNivoFUN();
Frame 32
gotoAndPlay (31);
Frame 40
nivoFUN();
_global.boja = 8;
_global.izbor1 = 7;
_global.izbor2 = 7;
_global.izbor3 = 7;
_global.izbor4 = 7;
_global.potez = 0;
_global.brojac = 10;
_global.tacniTacni = 0;
_global.tacniBoja = 0;
p1_mc.gotoAndStop(7);
p2_mc.gotoAndStop(7);
p3_mc.gotoAndStop(7);
p4_mc.gotoAndStop(7);
resultWht_mc.gotoAndStop(1);
resultBlk_mc.gotoAndStop(1);
cover_mc.gotoAndStop(1);
check_btn.enabled = false;
checkOff_mc.gotoAndStop(1);
check_btn._alpha = 0;
_global.trazeni1 = Math.floor(Math.random() * 5) + 1;
_global.trazeni2 = Math.floor(Math.random() * 5) + 1;
_global.trazeni3 = Math.floor(Math.random() * 5) + 1;
_global.trazeni4 = Math.floor(Math.random() * 5) + 1;
trace(_global.trazeni1);
trace(_global.trazeni2);
trace(_global.trazeni3);
trace(_global.trazeni4);
t1_mc.gotoAndStop(_global.trazeni1);
t2_mc.gotoAndStop(_global.trazeni2);
t3_mc.gotoAndStop(_global.trazeni3);
t4_mc.gotoAndStop(_global.trazeni4);
p1_mc.enabled = true;
p2_mc.enabled = true;
p3_mc.enabled = true;
p4_mc.enabled = true;
pickYellow_btn.enabled = true;
pickOrange_btn.enabled = true;
pickGreen_btn.enabled = true;
pickBlue_btn.enabled = true;
pickPurple_btn.enabled = true;
pickPurple_btn._visible = true;
pickRed_btn.enabled = true;
Frame 41
sledeciNivoFUN();
Frame 42
gotoAndPlay (41);
Frame 50
nivoFUN();
_global.boja = 8;
_global.izbor1 = 7;
_global.izbor2 = 7;
_global.izbor3 = 7;
_global.izbor4 = 7;
_global.potez = 0;
_global.brojac = 10;
_global.tacniTacni = 0;
_global.tacniBoja = 0;
p1_mc.gotoAndStop(7);
p2_mc.gotoAndStop(7);
p3_mc.gotoAndStop(7);
p4_mc.gotoAndStop(7);
resultWht_mc.gotoAndStop(1);
resultBlk_mc.gotoAndStop(1);
cover_mc.gotoAndStop(1);
check_btn.enabled = false;
checkOff_mc.gotoAndStop(1);
check_btn._alpha = 0;
_global.trazeni1 = Math.floor(Math.random() * 6) + 1;
_global.trazeni2 = Math.floor(Math.random() * 6) + 1;
_global.trazeni3 = Math.floor(Math.random() * 6) + 1;
_global.trazeni4 = Math.floor(Math.random() * 6) + 1;
trace(_global.trazeni1);
trace(_global.trazeni2);
trace(_global.trazeni3);
trace(_global.trazeni4);
t1_mc.gotoAndStop(_global.trazeni1);
t2_mc.gotoAndStop(_global.trazeni2);
t3_mc.gotoAndStop(_global.trazeni3);
t4_mc.gotoAndStop(_global.trazeni4);
p1_mc.enabled = true;
p2_mc.enabled = true;
p3_mc.enabled = true;
p4_mc.enabled = true;
pickYellow_btn.enabled = true;
pickOrange_btn.enabled = true;
pickGreen_btn.enabled = true;
pickBlue_btn.enabled = true;
pickPurple_btn.enabled = true;
pickPurple_btn._visible = true;
pickRed_btn.enabled = true;
pickRed_btn._visible = true;
Frame 51
sledeciNivoFUN();
Frame 52
gotoAndPlay (51);
Frame 60
_global.boja = 8;
_global.izbor1 = 7;
_global.izbor2 = 7;
_global.izbor3 = 7;
_global.izbor4 = 7;
_global.potez = 0;
_global.brojac = 10;
_global.tacniTacni = 0;
_global.tacniBoja = 0;
p1_mc.gotoAndStop(7);
p2_mc.gotoAndStop(7);
p3_mc.gotoAndStop(7);
p4_mc.gotoAndStop(7);
resultWht_mc.gotoAndStop(1);
resultBlk_mc.gotoAndStop(1);
cover_mc.gotoAndStop(1);
check_btn.enabled = false;
checkOff_mc.gotoAndStop(1);
check_btn._alpha = 0;
_global.trazeni1 = Math.floor(Math.random() * 4) + 1;
_global.trazeni2 = Math.floor(Math.random() * 4) + 1;
_global.trazeni3 = Math.floor(Math.random() * 4) + 1;
_global.trazeni4 = Math.floor(Math.random() * 4) + 1;
trace(_global.trazeni1);
trace(_global.trazeni2);
trace(_global.trazeni3);
trace(_global.trazeni4);
t1_mc.gotoAndStop(_global.trazeni1);
t2_mc.gotoAndStop(_global.trazeni2);
t3_mc.gotoAndStop(_global.trazeni3);
t4_mc.gotoAndStop(_global.trazeni4);
p1_mc.enabled = true;
p2_mc.enabled = true;
p3_mc.enabled = true;
p4_mc.enabled = true;
pickYellow_btn.enabled = true;
pickOrange_btn.enabled = true;
pickGreen_btn.enabled = true;
pickBlue_btn.enabled = true;
pickPurple_btn.enabled = true;
pickRed_btn.enabled = true;
Frame 75
_global.vratiSe = 0;
_global.boja = 8;
_global.izbor1 = 7;
_global.izbor2 = 7;
_global.izbor3 = 7;
_global.izbor4 = 7;
_global.potez = 0;
_global.brojac = 10;
_global.tacniTacni = 0;
_global.tacniBoja = 0;
_global.nivo = 1;
_global.nextLevel = 0;
p1_mc.gotoAndStop(7);
p2_mc.gotoAndStop(7);
p3_mc.gotoAndStop(7);
p4_mc.gotoAndStop(7);
great_mc.gotoAndStop(1);
resultWht_mc.gotoAndStop(1);
resultBlk_mc.gotoAndStop(1);
cover_mc.gotoAndStop(1);
check_btn.enabled = false;
checkOff_mc.gotoAndStop(1);
check_btn._alpha = 0;
appear_mc.gotoAndStop(1);
helpLvl_1.gotoAndStop(10);
helpLvl_2.gotoAndStop(6);
exit_btn.onRelease = function () {
Back2Menu_mc.gotoAndPlay(5);
};
t1_mc.gotoAndStop(1);
t2_mc.gotoAndStop(6);
t3_mc.gotoAndStop(3);
t4_mc.gotoAndStop(5);
Goal_mc.onRelease = function () {
check_sound.start();
Goal_mc.gotoAndPlay(15);
Gems_mc.gotoAndPlay(1);
};
Gems_mc.onRelease = function () {
check_sound.start();
Gems_mc.gotoAndPlay(15);
appear_mc.gotoAndPlay(1);
Check_mc.gotoAndPlay(1);
};
Check_mc.onRelease = function () {
check_sound.start();
Check_mc.gotoAndPlay(15);
appear_mc.gotoAndStop(72);
checkOff_mc._visible = 0;
resultWht_mc.gotoAndStop(3);
resultBlk_mc.gotoAndStop(2);
Appear2_mc.gotoAndStop(3);
Result_mc.gotoAndPlay(1);
};
Result_mc.onRelease = function () {
check_sound.start();
Result_mc.gotoAndStop(30);
cover_mc.gotoAndStop(2);
Unhide_mc.gotoAndPlay(1);
};
Result_mc.onRelease = function () {
check_sound.start();
Result_mc.gotoAndStop(30);
cover_mc.gotoAndStop(2);
Unhide_mc.gotoAndPlay(1);
};
Unhide_mc.onRelease = function () {
check_sound.start();
Unhide_mc.gotoAndStop(30);
White_mc.gotoAndPlay(1);
};
White_mc.onRelease = function () {
check_sound.start();
White_mc.gotoAndStop(30);
Explanation_1_mc.gotoAndPlay(1);
};
Explanation_1_mc.onRelease = function () {
check_sound.start();
Explanation_1_mc.gotoAndStop(30);
Black_mc.gotoAndPlay(1);
};
Black_mc.onRelease = function () {
check_sound.start();
Black_mc.gotoAndStop(30);
Explanation_2_mc.gotoAndPlay(1);
};
Explanation_2_mc.onRelease = function () {
check_sound.start();
Explanation_2_mc.gotoAndStop(30);
Miss_mc.gotoAndPlay(1);
};
Miss_mc.onRelease = function () {
check_sound.start();
Miss_mc.gotoAndStop(30);
Explanation_3_mc.gotoAndPlay(1);
};
Explanation_3_mc.onRelease = function () {
check_sound.start();
Explanation_3_mc.gotoAndStop(30);
Appear2_mc.gotoAndPlay(5);
Again_1_mc.gotoAndPlay(1);
};
Again_1_mc.onRelease = function () {
check_sound.start();
Again_1_mc.gotoAndStop(30);
Appear2_mc.gotoAndPlay(20);
Again_2_mc.gotoAndPlay(1);
};
Again_2_mc.onRelease = function () {
check_sound.start();
Again_2_mc.gotoAndStop(30);
Appear2_mc.gotoAndPlay(25);
Again_3_mc.gotoAndPlay(1);
};
Again_3_mc.onRelease = function () {
check_sound.start();
Again_3_mc.gotoAndStop(30);
duplicateMovieClip ("great_mc", "grat2_mc", 200);
great2_mc.gotoAndPlay(1);
};
Frame 78
if (_global.vratiSe == 1) {
gotoAndPlay (9);
_root[great2_mc].removeMovieClip();
} else {
gotoAndPlay (76);
}
Symbol 10 MovieClip [GameOver_mc] Frame 1
stop();
Symbol 10 MovieClip [GameOver_mc] Frame 35
stop();
Symbol 260 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:10, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Instance of Symbol 15 MovieClip "rez_loaderFill" in Symbol 22 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = _root.rezPercent;
}
Symbol 43 MovieClip Frame 1
Symbol 43 MovieClip Frame 198
_root.gotoAndStop("splash2");
Symbol 65 Button
on (release) {
getURL ("http://www.yougame.com", "_top");
}
Symbol 70 Button
on (release) {
getURL ("http://www.yougame.com", "_top");
}
Symbol 164 MovieClip Frame 25
bigButton_btn.onRelease = function () {
gotoAndPlay (30);
};
Symbol 164 MovieClip Frame 27
gotoAndPlay (26);
Symbol 164 MovieClip Frame 62
stop();
MochiAd.showInterLevelAd({id:"8834094e8620c91f", res:"640x480", ad_finished:function () {
trace("ad finished");
_global.nextLevel = 1;
if (_root._currentframe > 70) {
_global.vratiSe = 1;
}
}});
Symbol 191 MovieClip Frame 65
stop();
this._visible = 0;
prviBroj = Math.floor(_global.nivo / 10);
drugiBroj = _global.nivo % 10;
if (prviBroj == 0) {
prviBroj = 10;
}
if (drugiBroj == 0) {
drugiBroj = 10;
}
_root.cLvlnumber1_mc.gotoAndStop(prviBroj);
_root.cLvlnumber2_mc.gotoAndStop(drugiBroj);
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 20
stop();
Yes_btn.onRelease = function () {
while (_global.brojac > 0) {
_root["pop" + _global.brojac].removeMovieClip();
_root["res" + _global.brojac].removeMovieClip();
_root.great2_mc.removeMovieClip();
_global.brojac--;
}
_root.p1_mc._y = 422;
_root.p2_mc._y = 422;
_root.p3_mc._y = 422;
_root.p4_mc._y = 422;
_root.checkOff_mc._y = 392.5;
_root.check_btn._y = 400.1;
_root.resultBlk_mc._y = 418;
_root.resultWht_mc._y = 418;
_root.kursor_mc.gotoAndStop(8);
_root.gotoAndPlay(10);
_root.Mozda_mc.removeMovieClip();
};
No_btn.onRelease = function () {
play();
};
Symbol 206 MovieClip [1_Goal_mc] Frame 15
this.gotoAndStop(15);
Symbol 206 MovieClip [1_Goal_mc] Frame 30
this.gotoAndStop(30);
Symbol 211 MovieClip Frame 15
click_sound.start();
Symbol 211 MovieClip Frame 75
click_sound.start();
this.gotoAndStop(76);
Symbol 220 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 20
stop();
Symbol 220 MovieClip Frame 25
stop();
Symbol 220 MovieClip Frame 40
stop();
Symbol 223 MovieClip Frame 1
this.gotoAndStop(1);
Symbol 223 MovieClip Frame 15
this.gotoAndStop(15);
Symbol 223 MovieClip Frame 30
this.gotoAndStop(30);
Symbol 226 MovieClip Frame 1
this.gotoAndStop(1);
Symbol 226 MovieClip Frame 15
this.gotoAndStop(15);
Symbol 226 MovieClip Frame 30
this.gotoAndStop(30);
Symbol 229 MovieClip Frame 1
this.gotoAndStop(1);
Symbol 229 MovieClip Frame 15
this.gotoAndStop(15);
Symbol 229 MovieClip Frame 30
this.gotoAndStop(30);
Symbol 232 MovieClip Frame 1
this.gotoAndStop(1);
Symbol 232 MovieClip Frame 15
this.gotoAndStop(15);
Symbol 232 MovieClip Frame 30
this.gotoAndStop(30);
Symbol 235 MovieClip Frame 1
this.gotoAndStop(1);
Symbol 235 MovieClip Frame 15
this.gotoAndStop(15);
Symbol 235 MovieClip Frame 30
this.gotoAndStop(30);
Symbol 238 MovieClip Frame 1
this.gotoAndStop(1);
Symbol 238 MovieClip Frame 15
this.gotoAndStop(15);
Symbol 238 MovieClip Frame 30
this.gotoAndStop(30);
Symbol 241 MovieClip Frame 1
this.gotoAndStop(1);
Symbol 241 MovieClip Frame 15
this.gotoAndStop(15);
Symbol 241 MovieClip Frame 30
this.gotoAndStop(30);
Symbol 244 MovieClip Frame 1
this.gotoAndStop(1);
Symbol 244 MovieClip Frame 15
this.gotoAndStop(15);
Symbol 244 MovieClip Frame 30
this.gotoAndStop(30);
Symbol 247 MovieClip Frame 1
this.gotoAndStop(1);
Symbol 247 MovieClip Frame 15
this.gotoAndStop(15);
Symbol 247 MovieClip Frame 30
this.gotoAndStop(30);
Symbol 250 MovieClip Frame 1
this.gotoAndStop(1);
Symbol 250 MovieClip Frame 15
this.gotoAndStop(15);
Symbol 250 MovieClip Frame 30
this.gotoAndStop(30);
Symbol 253 MovieClip Frame 1
this.gotoAndStop(1);
Symbol 253 MovieClip Frame 15
this.gotoAndStop(15);
Symbol 253 MovieClip Frame 30
this.gotoAndStop(30);
Symbol 256 MovieClip Frame 1
this.gotoAndStop(1);
Symbol 256 MovieClip Frame 15
this.gotoAndStop(15);
Symbol 256 MovieClip Frame 30
this.gotoAndStop(30);
Symbol 259 MovieClip Frame 1
this.gotoAndStop(1);
Symbol 259 MovieClip Frame 15
this.gotoAndStop(15);
Symbol 259 MovieClip Frame 30
this.gotoAndStop(30);