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;
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);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&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__("d397222e", this, 10301, true);
mochi.MochiServices.connect("c30d2b9ac95dc55f");
var NoMenu = new ContextMenu();
NoMenu.hideBuiltInItems();
this.menu = NoMenu;
fscommand ("allowscale", false);
fscommand ("showmenu", false);
_root.soundsw = 1;
var numbazarr = Array(12);
nnn = 0;
while (nnn < 12) {
numbazarr[nnn] = 0;
nnn++;
}
Frame 2
rezTotal = getBytesTotal();
rezLoaded = getBytesLoaded();
_root.rezPercent = Math.round(rezLoaded / (rezTotal / 100));
if (rezTotal == rezLoaded) {
_root.soundsw = 1;
gotoAndStop (17);
}
Instance of Symbol 5 MovieClip in Frame 2
onClipEvent (enterFrame) {
this._width = _root.rezPercent * 1.76;
}
Frame 3
gotoAndPlay (2);
Frame 4
stop();
_root.clickenabled = false;
Instance of Symbol 20 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.soundsw == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Frame 5
function nextlevel() {
_root.gotoAndStop(6);
}
_root.limit = 3;
_root.level = 1;
_root.clickenabled = false;
stop();
_root.maincounter = 0;
numberOfElements = 21;
myNumbers = new Array(numberOfElements);
randomNumbers = new Array(numberOfElements);
randomNumbers2 = new Array(_root.limit);
checklist = new Array(_root.limit);
i = 0;
while (i < numberOfElements) {
myNumbers[i] = i + 1;
i++;
}
i = 0;
while (myNumbers.length > 0) {
thePosition = Math.round(Math.random() * (myNumbers.length - 1));
randomNumbers[i] = myNumbers[thePosition];
i++;
myNumbers.splice(thePosition, 1);
}
Array.prototype.customSort = function (min, max) {
var _local2;
var _local3 = new Array((max - min) + 1);
var _local4;
_local2 = this.length;
while (_local2--) {
_local4 = this[_local2] - min;
if (_local3[_local4] == undefined) {
_local3[_local4] = 0;
}
_local3[_local4]++;
}
var _local5 = new Array();
_local2 = _local3.length;
while (_local2--) {
if (_local3[_local2] != undefined) {
while (_local3[_local2]--) {
_local5.push(_local2);
}
}
}
_local2 = this.length;
while (_local2--) {
this[(this.length - _local2) - 1] = _local5[_local2] + min;
}
};
i = 0;
while (i < _root.limit) {
checklist[i] = randomNumbers[i];
randomNumbers2[i] = randomNumbers[i];
i++;
}
checklist.customSort(1, 21);
_root.num1.gotoAndStop(2);
_root.num1.numba = randomNumbers2[0];
_root.num1.box.gotoAndStop(_root.num1.numba);
_root.num2.gotoAndStop(2);
_root.num2.numba = randomNumbers2[1];
_root.num2.box.gotoAndStop(_root.num2.numba);
_root.num3.gotoAndStop(2);
_root.num3.numba = randomNumbers2[2];
_root.num3.box.gotoAndStop(_root.num3.numba);
_root.num4.gotoAndStop(2);
_root.num4.numba = randomNumbers2[3];
_root.num4.box.gotoAndStop(_root.num4.numba);
_root.num5.gotoAndStop(2);
_root.num5.numba = randomNumbers2[4];
_root.num5.box.gotoAndStop(_root.num5.numba);
_root.num6.gotoAndStop(2);
_root.num6.numba = randomNumbers2[5];
_root.num6.box.gotoAndStop(_root.num6.numba);
_root.num7.gotoAndStop(2);
_root.num7.numba = randomNumbers2[6];
_root.num7.box.gotoAndStop(_root.num7.numba);
_root.num8.gotoAndStop(2);
_root.num8.numba = randomNumbers2[7];
_root.num8.box.gotoAndStop(_root.num8.numba);
_root.num9.gotoAndStop(2);
_root.num9.numba = randomNumbers2[8];
_root.num9.box.gotoAndStop(_root.num9.numba);
_root.num10.gotoAndStop(2);
_root.num10.numba = randomNumbers2[9];
_root.num10.box.gotoAndStop(_root.num10.numba);
_root.num11.gotoAndStop(2);
_root.num11.numba = randomNumbers2[10];
_root.num11.box.gotoAndStop(_root.num11.numba);
_root.num12.gotoAndStop(2);
_root.num12.numba = randomNumbers2[11];
_root.num12.box.gotoAndStop(_root.num12.numba);
stop();
Instance of Symbol 114 MovieClip "num1" in Frame 5
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.leveljump.gotoAndPlay(2);
}
}
}
Instance of Symbol 114 MovieClip "num2" in Frame 5
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.leveljump.gotoAndPlay(2);
}
}
}
Instance of Symbol 114 MovieClip "num3" in Frame 5
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.leveljump.gotoAndPlay(2);
}
}
}
Frame 6
function nextlevel() {
_root.gotoAndStop(7);
}
_root.limit = 4;
_root.level = 2;
_root.clickenabled = false;
stop();
_root.maincounter = 0;
numberOfElements = 21;
myNumbers = new Array(numberOfElements);
randomNumbers = new Array(numberOfElements);
randomNumbers2 = new Array(_root.limit);
checklist = new Array(_root.limit);
i = 0;
while (i < numberOfElements) {
myNumbers[i] = i + 1;
i++;
}
i = 0;
while (myNumbers.length > 0) {
thePosition = Math.round(Math.random() * (myNumbers.length - 1));
randomNumbers[i] = myNumbers[thePosition];
i++;
myNumbers.splice(thePosition, 1);
}
Array.prototype.customSort = function (min, max) {
var _local2;
var _local3 = new Array((max - min) + 1);
var _local4;
_local2 = this.length;
while (_local2--) {
_local4 = this[_local2] - min;
if (_local3[_local4] == undefined) {
_local3[_local4] = 0;
}
_local3[_local4]++;
}
var _local5 = new Array();
_local2 = _local3.length;
while (_local2--) {
if (_local3[_local2] != undefined) {
while (_local3[_local2]--) {
_local5.push(_local2);
}
}
}
_local2 = this.length;
while (_local2--) {
this[(this.length - _local2) - 1] = _local5[_local2] + min;
}
};
_root.timer1.gotoAndPlay(2);
i = 0;
while (i < _root.limit) {
checklist[i] = randomNumbers[i];
randomNumbers2[i] = randomNumbers[i];
i++;
}
checklist.customSort(1, 21);
_root.num1.gotoAndStop(2);
_root.num1.numba = randomNumbers2[0];
_root.num1.box.gotoAndStop(_root.num1.numba);
_root.num2.gotoAndStop(2);
_root.num2.numba = randomNumbers2[1];
_root.num2.box.gotoAndStop(_root.num2.numba);
_root.num3.gotoAndStop(2);
_root.num3.numba = randomNumbers2[2];
_root.num3.box.gotoAndStop(_root.num3.numba);
_root.num4.gotoAndStop(2);
_root.num4.numba = randomNumbers2[3];
_root.num4.box.gotoAndStop(_root.num4.numba);
_root.num5.gotoAndStop(2);
_root.num5.numba = randomNumbers2[4];
_root.num5.box.gotoAndStop(_root.num5.numba);
_root.num6.gotoAndStop(2);
_root.num6.numba = randomNumbers2[5];
_root.num6.box.gotoAndStop(_root.num6.numba);
_root.num7.gotoAndStop(2);
_root.num7.numba = randomNumbers2[6];
_root.num7.box.gotoAndStop(_root.num7.numba);
_root.num8.gotoAndStop(2);
_root.num8.numba = randomNumbers2[7];
_root.num8.box.gotoAndStop(_root.num8.numba);
_root.num9.gotoAndStop(2);
_root.num9.numba = randomNumbers2[8];
_root.num9.box.gotoAndStop(_root.num9.numba);
_root.num10.gotoAndStop(2);
_root.num10.numba = randomNumbers2[9];
_root.num10.box.gotoAndStop(_root.num10.numba);
_root.num11.gotoAndStop(2);
_root.num11.numba = randomNumbers2[10];
_root.num11.box.gotoAndStop(_root.num11.numba);
_root.num12.gotoAndStop(2);
_root.num12.numba = randomNumbers2[11];
_root.num12.box.gotoAndStop(_root.num12.numba);
stop();
Instance of Symbol 20 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.soundsw == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 114 MovieClip "num1" in Frame 6
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.leveljump.gotoAndPlay(2);
}
}
}
Instance of Symbol 114 MovieClip "num4" in Frame 6
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.leveljump.gotoAndPlay(2);
}
}
}
Frame 7
function nextlevel() {
_root.gotoAndStop(8);
}
_root.limit = 5;
_root.level = 3;
_root.clickenabled = false;
stop();
_root.maincounter = 0;
numberOfElements = 21;
myNumbers = new Array(numberOfElements);
randomNumbers = new Array(numberOfElements);
randomNumbers2 = new Array(_root.limit);
checklist = new Array(_root.limit);
i = 0;
while (i < numberOfElements) {
myNumbers[i] = i + 1;
i++;
}
i = 0;
while (myNumbers.length > 0) {
thePosition = Math.round(Math.random() * (myNumbers.length - 1));
randomNumbers[i] = myNumbers[thePosition];
i++;
myNumbers.splice(thePosition, 1);
}
Array.prototype.customSort = function (min, max) {
var _local2;
var _local3 = new Array((max - min) + 1);
var _local4;
_local2 = this.length;
while (_local2--) {
_local4 = this[_local2] - min;
if (_local3[_local4] == undefined) {
_local3[_local4] = 0;
}
_local3[_local4]++;
}
var _local5 = new Array();
_local2 = _local3.length;
while (_local2--) {
if (_local3[_local2] != undefined) {
while (_local3[_local2]--) {
_local5.push(_local2);
}
}
}
_local2 = this.length;
while (_local2--) {
this[(this.length - _local2) - 1] = _local5[_local2] + min;
}
};
_root.timer1.gotoAndPlay(2);
i = 0;
while (i < _root.limit) {
checklist[i] = randomNumbers[i];
randomNumbers2[i] = randomNumbers[i];
i++;
}
checklist.customSort(1, 21);
_root.num1.gotoAndStop(2);
_root.num1.numba = randomNumbers2[0];
_root.num1.box.gotoAndStop(_root.num1.numba);
_root.num2.gotoAndStop(2);
_root.num2.numba = randomNumbers2[1];
_root.num2.box.gotoAndStop(_root.num2.numba);
_root.num3.gotoAndStop(2);
_root.num3.numba = randomNumbers2[2];
_root.num3.box.gotoAndStop(_root.num3.numba);
_root.num4.gotoAndStop(2);
_root.num4.numba = randomNumbers2[3];
_root.num4.box.gotoAndStop(_root.num4.numba);
_root.num5.gotoAndStop(2);
_root.num5.numba = randomNumbers2[4];
_root.num5.box.gotoAndStop(_root.num5.numba);
_root.num6.gotoAndStop(2);
_root.num6.numba = randomNumbers2[5];
_root.num6.box.gotoAndStop(_root.num6.numba);
_root.num7.gotoAndStop(2);
_root.num7.numba = randomNumbers2[6];
_root.num7.box.gotoAndStop(_root.num7.numba);
_root.num8.gotoAndStop(2);
_root.num8.numba = randomNumbers2[7];
_root.num8.box.gotoAndStop(_root.num8.numba);
_root.num9.gotoAndStop(2);
_root.num9.numba = randomNumbers2[8];
_root.num9.box.gotoAndStop(_root.num9.numba);
_root.num10.gotoAndStop(2);
_root.num10.numba = randomNumbers2[9];
_root.num10.box.gotoAndStop(_root.num10.numba);
_root.num11.gotoAndStop(2);
_root.num11.numba = randomNumbers2[10];
_root.num11.box.gotoAndStop(_root.num11.numba);
_root.num12.gotoAndStop(2);
_root.num12.numba = randomNumbers2[11];
_root.num12.box.gotoAndStop(_root.num12.numba);
stop();
Instance of Symbol 114 MovieClip "num5" in Frame 7
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.leveljump.gotoAndPlay(2);
}
}
}
Frame 8
function nextlevel() {
_root.gotoAndStop(9);
}
_root.limit = 6;
_root.level = 4;
_root.clickenabled = false;
stop();
_root.maincounter = 0;
numberOfElements = 21;
myNumbers = new Array(numberOfElements);
randomNumbers = new Array(numberOfElements);
randomNumbers2 = new Array(_root.limit);
checklist = new Array(_root.limit);
i = 0;
while (i < numberOfElements) {
myNumbers[i] = i + 1;
i++;
}
i = 0;
while (myNumbers.length > 0) {
thePosition = Math.round(Math.random() * (myNumbers.length - 1));
randomNumbers[i] = myNumbers[thePosition];
i++;
myNumbers.splice(thePosition, 1);
}
Array.prototype.customSort = function (min, max) {
var _local2;
var _local3 = new Array((max - min) + 1);
var _local4;
_local2 = this.length;
while (_local2--) {
_local4 = this[_local2] - min;
if (_local3[_local4] == undefined) {
_local3[_local4] = 0;
}
_local3[_local4]++;
}
var _local5 = new Array();
_local2 = _local3.length;
while (_local2--) {
if (_local3[_local2] != undefined) {
while (_local3[_local2]--) {
_local5.push(_local2);
}
}
}
_local2 = this.length;
while (_local2--) {
this[(this.length - _local2) - 1] = _local5[_local2] + min;
}
};
_root.timer1.gotoAndPlay(2);
i = 0;
while (i < _root.limit) {
checklist[i] = randomNumbers[i];
randomNumbers2[i] = randomNumbers[i];
i++;
}
checklist.customSort(1, 21);
_root.num1.gotoAndStop(2);
_root.num1.numba = randomNumbers2[0];
_root.num1.box.gotoAndStop(_root.num1.numba);
_root.num2.gotoAndStop(2);
_root.num2.numba = randomNumbers2[1];
_root.num2.box.gotoAndStop(_root.num2.numba);
_root.num3.gotoAndStop(2);
_root.num3.numba = randomNumbers2[2];
_root.num3.box.gotoAndStop(_root.num3.numba);
_root.num4.gotoAndStop(2);
_root.num4.numba = randomNumbers2[3];
_root.num4.box.gotoAndStop(_root.num4.numba);
_root.num5.gotoAndStop(2);
_root.num5.numba = randomNumbers2[4];
_root.num5.box.gotoAndStop(_root.num5.numba);
_root.num6.gotoAndStop(2);
_root.num6.numba = randomNumbers2[5];
_root.num6.box.gotoAndStop(_root.num6.numba);
_root.num7.gotoAndStop(2);
_root.num7.numba = randomNumbers2[6];
_root.num7.box.gotoAndStop(_root.num7.numba);
_root.num8.gotoAndStop(2);
_root.num8.numba = randomNumbers2[7];
_root.num8.box.gotoAndStop(_root.num8.numba);
_root.num9.gotoAndStop(2);
_root.num9.numba = randomNumbers2[8];
_root.num9.box.gotoAndStop(_root.num9.numba);
_root.num10.gotoAndStop(2);
_root.num10.numba = randomNumbers2[9];
_root.num10.box.gotoAndStop(_root.num10.numba);
_root.num11.gotoAndStop(2);
_root.num11.numba = randomNumbers2[10];
_root.num11.box.gotoAndStop(_root.num11.numba);
_root.num12.gotoAndStop(2);
_root.num12.numba = randomNumbers2[11];
_root.num12.box.gotoAndStop(_root.num12.numba);
stop();
Instance of Symbol 114 MovieClip "num6" in Frame 8
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.leveljump.gotoAndPlay(2);
}
}
}
Frame 9
function nextlevel() {
_root.gotoAndStop(10);
}
_root.limit = 7;
_root.level = 5;
_root.clickenabled = false;
stop();
_root.maincounter = 0;
numberOfElements = 21;
myNumbers = new Array(numberOfElements);
randomNumbers = new Array(numberOfElements);
randomNumbers2 = new Array(_root.limit);
checklist = new Array(_root.limit);
i = 0;
while (i < numberOfElements) {
myNumbers[i] = i + 1;
i++;
}
i = 0;
while (myNumbers.length > 0) {
thePosition = Math.round(Math.random() * (myNumbers.length - 1));
randomNumbers[i] = myNumbers[thePosition];
i++;
myNumbers.splice(thePosition, 1);
}
Array.prototype.customSort = function (min, max) {
var _local2;
var _local3 = new Array((max - min) + 1);
var _local4;
_local2 = this.length;
while (_local2--) {
_local4 = this[_local2] - min;
if (_local3[_local4] == undefined) {
_local3[_local4] = 0;
}
_local3[_local4]++;
}
var _local5 = new Array();
_local2 = _local3.length;
while (_local2--) {
if (_local3[_local2] != undefined) {
while (_local3[_local2]--) {
_local5.push(_local2);
}
}
}
_local2 = this.length;
while (_local2--) {
this[(this.length - _local2) - 1] = _local5[_local2] + min;
}
};
_root.timer1.gotoAndPlay(2);
i = 0;
while (i < _root.limit) {
checklist[i] = randomNumbers[i];
randomNumbers2[i] = randomNumbers[i];
i++;
}
checklist.customSort(1, 21);
_root.num1.gotoAndStop(2);
_root.num1.numba = randomNumbers2[0];
_root.num1.box.gotoAndStop(_root.num1.numba);
_root.num2.gotoAndStop(2);
_root.num2.numba = randomNumbers2[1];
_root.num2.box.gotoAndStop(_root.num2.numba);
_root.num3.gotoAndStop(2);
_root.num3.numba = randomNumbers2[2];
_root.num3.box.gotoAndStop(_root.num3.numba);
_root.num4.gotoAndStop(2);
_root.num4.numba = randomNumbers2[3];
_root.num4.box.gotoAndStop(_root.num4.numba);
_root.num5.gotoAndStop(2);
_root.num5.numba = randomNumbers2[4];
_root.num5.box.gotoAndStop(_root.num5.numba);
_root.num6.gotoAndStop(2);
_root.num6.numba = randomNumbers2[5];
_root.num6.box.gotoAndStop(_root.num6.numba);
_root.num7.gotoAndStop(2);
_root.num7.numba = randomNumbers2[6];
_root.num7.box.gotoAndStop(_root.num7.numba);
_root.num8.gotoAndStop(2);
_root.num8.numba = randomNumbers2[7];
_root.num8.box.gotoAndStop(_root.num8.numba);
_root.num9.gotoAndStop(2);
_root.num9.numba = randomNumbers2[8];
_root.num9.box.gotoAndStop(_root.num9.numba);
_root.num10.gotoAndStop(2);
_root.num10.numba = randomNumbers2[9];
_root.num10.box.gotoAndStop(_root.num10.numba);
_root.num11.gotoAndStop(2);
_root.num11.numba = randomNumbers2[10];
_root.num11.box.gotoAndStop(_root.num11.numba);
_root.num12.gotoAndStop(2);
_root.num12.numba = randomNumbers2[11];
_root.num12.box.gotoAndStop(_root.num12.numba);
stop();
Instance of Symbol 114 MovieClip "num7" in Frame 9
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.leveljump.gotoAndPlay(2);
}
}
}
Frame 10
function nextlevel() {
_root.gotoAndStop(11);
}
_root.limit = 8;
_root.level = 6;
_root.clickenabled = false;
stop();
_root.maincounter = 0;
numberOfElements = 21;
myNumbers = new Array(numberOfElements);
randomNumbers = new Array(numberOfElements);
randomNumbers2 = new Array(_root.limit);
checklist = new Array(_root.limit);
i = 0;
while (i < numberOfElements) {
myNumbers[i] = i + 1;
i++;
}
i = 0;
while (myNumbers.length > 0) {
thePosition = Math.round(Math.random() * (myNumbers.length - 1));
randomNumbers[i] = myNumbers[thePosition];
i++;
myNumbers.splice(thePosition, 1);
}
Array.prototype.customSort = function (min, max) {
var _local2;
var _local3 = new Array((max - min) + 1);
var _local4;
_local2 = this.length;
while (_local2--) {
_local4 = this[_local2] - min;
if (_local3[_local4] == undefined) {
_local3[_local4] = 0;
}
_local3[_local4]++;
}
var _local5 = new Array();
_local2 = _local3.length;
while (_local2--) {
if (_local3[_local2] != undefined) {
while (_local3[_local2]--) {
_local5.push(_local2);
}
}
}
_local2 = this.length;
while (_local2--) {
this[(this.length - _local2) - 1] = _local5[_local2] + min;
}
};
_root.timer1.gotoAndPlay(2);
i = 0;
while (i < _root.limit) {
checklist[i] = randomNumbers[i];
randomNumbers2[i] = randomNumbers[i];
i++;
}
checklist.customSort(1, 21);
_root.num1.gotoAndStop(2);
_root.num1.numba = randomNumbers2[0];
_root.num1.box.gotoAndStop(_root.num1.numba);
_root.num2.gotoAndStop(2);
_root.num2.numba = randomNumbers2[1];
_root.num2.box.gotoAndStop(_root.num2.numba);
_root.num3.gotoAndStop(2);
_root.num3.numba = randomNumbers2[2];
_root.num3.box.gotoAndStop(_root.num3.numba);
_root.num4.gotoAndStop(2);
_root.num4.numba = randomNumbers2[3];
_root.num4.box.gotoAndStop(_root.num4.numba);
_root.num5.gotoAndStop(2);
_root.num5.numba = randomNumbers2[4];
_root.num5.box.gotoAndStop(_root.num5.numba);
_root.num6.gotoAndStop(2);
_root.num6.numba = randomNumbers2[5];
_root.num6.box.gotoAndStop(_root.num6.numba);
_root.num7.gotoAndStop(2);
_root.num7.numba = randomNumbers2[6];
_root.num7.box.gotoAndStop(_root.num7.numba);
_root.num8.gotoAndStop(2);
_root.num8.numba = randomNumbers2[7];
_root.num8.box.gotoAndStop(_root.num8.numba);
_root.num9.gotoAndStop(2);
_root.num9.numba = randomNumbers2[8];
_root.num9.box.gotoAndStop(_root.num9.numba);
_root.num10.gotoAndStop(2);
_root.num10.numba = randomNumbers2[9];
_root.num10.box.gotoAndStop(_root.num10.numba);
_root.num11.gotoAndStop(2);
_root.num11.numba = randomNumbers2[10];
_root.num11.box.gotoAndStop(_root.num11.numba);
_root.num12.gotoAndStop(2);
_root.num12.numba = randomNumbers2[11];
_root.num12.box.gotoAndStop(_root.num12.numba);
stop();
Instance of Symbol 114 MovieClip "num8" in Frame 10
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.leveljump.gotoAndPlay(2);
}
}
}
Frame 11
function nextlevel() {
_root.gotoAndStop(12);
}
_root.limit = 9;
_root.level = 7;
_root.clickenabled = false;
stop();
_root.maincounter = 0;
numberOfElements = 21;
myNumbers = new Array(numberOfElements);
randomNumbers = new Array(numberOfElements);
randomNumbers2 = new Array(_root.limit);
checklist = new Array(_root.limit);
i = 0;
while (i < numberOfElements) {
myNumbers[i] = i + 1;
i++;
}
i = 0;
while (myNumbers.length > 0) {
thePosition = Math.round(Math.random() * (myNumbers.length - 1));
randomNumbers[i] = myNumbers[thePosition];
i++;
myNumbers.splice(thePosition, 1);
}
Array.prototype.customSort = function (min, max) {
var _local2;
var _local3 = new Array((max - min) + 1);
var _local4;
_local2 = this.length;
while (_local2--) {
_local4 = this[_local2] - min;
if (_local3[_local4] == undefined) {
_local3[_local4] = 0;
}
_local3[_local4]++;
}
var _local5 = new Array();
_local2 = _local3.length;
while (_local2--) {
if (_local3[_local2] != undefined) {
while (_local3[_local2]--) {
_local5.push(_local2);
}
}
}
_local2 = this.length;
while (_local2--) {
this[(this.length - _local2) - 1] = _local5[_local2] + min;
}
};
_root.timer1.gotoAndPlay(2);
i = 0;
while (i < _root.limit) {
checklist[i] = randomNumbers[i];
randomNumbers2[i] = randomNumbers[i];
i++;
}
checklist.customSort(1, 21);
_root.num1.gotoAndStop(2);
_root.num1.numba = randomNumbers2[0];
_root.num1.box.gotoAndStop(_root.num1.numba);
_root.num2.gotoAndStop(2);
_root.num2.numba = randomNumbers2[1];
_root.num2.box.gotoAndStop(_root.num2.numba);
_root.num3.gotoAndStop(2);
_root.num3.numba = randomNumbers2[2];
_root.num3.box.gotoAndStop(_root.num3.numba);
_root.num4.gotoAndStop(2);
_root.num4.numba = randomNumbers2[3];
_root.num4.box.gotoAndStop(_root.num4.numba);
_root.num5.gotoAndStop(2);
_root.num5.numba = randomNumbers2[4];
_root.num5.box.gotoAndStop(_root.num5.numba);
_root.num6.gotoAndStop(2);
_root.num6.numba = randomNumbers2[5];
_root.num6.box.gotoAndStop(_root.num6.numba);
_root.num7.gotoAndStop(2);
_root.num7.numba = randomNumbers2[6];
_root.num7.box.gotoAndStop(_root.num7.numba);
_root.num8.gotoAndStop(2);
_root.num8.numba = randomNumbers2[7];
_root.num8.box.gotoAndStop(_root.num8.numba);
_root.num9.gotoAndStop(2);
_root.num9.numba = randomNumbers2[8];
_root.num9.box.gotoAndStop(_root.num9.numba);
_root.num10.gotoAndStop(2);
_root.num10.numba = randomNumbers2[9];
_root.num10.box.gotoAndStop(_root.num10.numba);
_root.num11.gotoAndStop(2);
_root.num11.numba = randomNumbers2[10];
_root.num11.box.gotoAndStop(_root.num11.numba);
_root.num12.gotoAndStop(2);
_root.num12.numba = randomNumbers2[11];
_root.num12.box.gotoAndStop(_root.num12.numba);
stop();
Instance of Symbol 114 MovieClip "num9" in Frame 11
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.leveljump.gotoAndPlay(2);
}
}
}
Frame 12
function nextlevel() {
_root.gotoAndStop(13);
}
_root.limit = 10;
_root.level = 8;
_root.clickenabled = false;
stop();
_root.maincounter = 0;
numberOfElements = 21;
myNumbers = new Array(numberOfElements);
randomNumbers = new Array(numberOfElements);
randomNumbers2 = new Array(_root.limit);
checklist = new Array(_root.limit);
i = 0;
while (i < numberOfElements) {
myNumbers[i] = i + 1;
i++;
}
i = 0;
while (myNumbers.length > 0) {
thePosition = Math.round(Math.random() * (myNumbers.length - 1));
randomNumbers[i] = myNumbers[thePosition];
i++;
myNumbers.splice(thePosition, 1);
}
Array.prototype.customSort = function (min, max) {
var _local2;
var _local3 = new Array((max - min) + 1);
var _local4;
_local2 = this.length;
while (_local2--) {
_local4 = this[_local2] - min;
if (_local3[_local4] == undefined) {
_local3[_local4] = 0;
}
_local3[_local4]++;
}
var _local5 = new Array();
_local2 = _local3.length;
while (_local2--) {
if (_local3[_local2] != undefined) {
while (_local3[_local2]--) {
_local5.push(_local2);
}
}
}
_local2 = this.length;
while (_local2--) {
this[(this.length - _local2) - 1] = _local5[_local2] + min;
}
};
_root.timer1.gotoAndPlay(2);
i = 0;
while (i < _root.limit) {
checklist[i] = randomNumbers[i];
randomNumbers2[i] = randomNumbers[i];
i++;
}
checklist.customSort(1, 21);
_root.num1.gotoAndStop(2);
_root.num1.numba = randomNumbers2[0];
_root.num1.box.gotoAndStop(_root.num1.numba);
_root.num2.gotoAndStop(2);
_root.num2.numba = randomNumbers2[1];
_root.num2.box.gotoAndStop(_root.num2.numba);
_root.num3.gotoAndStop(2);
_root.num3.numba = randomNumbers2[2];
_root.num3.box.gotoAndStop(_root.num3.numba);
_root.num4.gotoAndStop(2);
_root.num4.numba = randomNumbers2[3];
_root.num4.box.gotoAndStop(_root.num4.numba);
_root.num5.gotoAndStop(2);
_root.num5.numba = randomNumbers2[4];
_root.num5.box.gotoAndStop(_root.num5.numba);
_root.num6.gotoAndStop(2);
_root.num6.numba = randomNumbers2[5];
_root.num6.box.gotoAndStop(_root.num6.numba);
_root.num7.gotoAndStop(2);
_root.num7.numba = randomNumbers2[6];
_root.num7.box.gotoAndStop(_root.num7.numba);
_root.num8.gotoAndStop(2);
_root.num8.numba = randomNumbers2[7];
_root.num8.box.gotoAndStop(_root.num8.numba);
_root.num9.gotoAndStop(2);
_root.num9.numba = randomNumbers2[8];
_root.num9.box.gotoAndStop(_root.num9.numba);
_root.num10.gotoAndStop(2);
_root.num10.numba = randomNumbers2[9];
_root.num10.box.gotoAndStop(_root.num10.numba);
_root.num11.gotoAndStop(2);
_root.num11.numba = randomNumbers2[10];
_root.num11.box.gotoAndStop(_root.num11.numba);
_root.num12.gotoAndStop(2);
_root.num12.numba = randomNumbers2[11];
_root.num12.box.gotoAndStop(_root.num12.numba);
stop();
Instance of Symbol 114 MovieClip "num10" in Frame 12
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.leveljump.gotoAndPlay(2);
}
}
}
Frame 13
function nextlevel() {
_root.gotoAndStop(14);
}
_root.limit = 11;
_root.level = 9;
_root.clickenabled = false;
stop();
_root.maincounter = 0;
numberOfElements = 21;
myNumbers = new Array(numberOfElements);
randomNumbers = new Array(numberOfElements);
randomNumbers2 = new Array(_root.limit);
checklist = new Array(_root.limit);
i = 0;
while (i < numberOfElements) {
myNumbers[i] = i + 1;
i++;
}
i = 0;
while (myNumbers.length > 0) {
thePosition = Math.round(Math.random() * (myNumbers.length - 1));
randomNumbers[i] = myNumbers[thePosition];
i++;
myNumbers.splice(thePosition, 1);
}
Array.prototype.customSort = function (min, max) {
var _local2;
var _local3 = new Array((max - min) + 1);
var _local4;
_local2 = this.length;
while (_local2--) {
_local4 = this[_local2] - min;
if (_local3[_local4] == undefined) {
_local3[_local4] = 0;
}
_local3[_local4]++;
}
var _local5 = new Array();
_local2 = _local3.length;
while (_local2--) {
if (_local3[_local2] != undefined) {
while (_local3[_local2]--) {
_local5.push(_local2);
}
}
}
_local2 = this.length;
while (_local2--) {
this[(this.length - _local2) - 1] = _local5[_local2] + min;
}
};
_root.timer1.gotoAndPlay(2);
i = 0;
while (i < _root.limit) {
checklist[i] = randomNumbers[i];
randomNumbers2[i] = randomNumbers[i];
i++;
}
checklist.customSort(1, 21);
_root.num1.gotoAndStop(2);
_root.num1.numba = randomNumbers2[0];
_root.num1.box.gotoAndStop(_root.num1.numba);
_root.num2.gotoAndStop(2);
_root.num2.numba = randomNumbers2[1];
_root.num2.box.gotoAndStop(_root.num2.numba);
_root.num3.gotoAndStop(2);
_root.num3.numba = randomNumbers2[2];
_root.num3.box.gotoAndStop(_root.num3.numba);
_root.num4.gotoAndStop(2);
_root.num4.numba = randomNumbers2[3];
_root.num4.box.gotoAndStop(_root.num4.numba);
_root.num5.gotoAndStop(2);
_root.num5.numba = randomNumbers2[4];
_root.num5.box.gotoAndStop(_root.num5.numba);
_root.num6.gotoAndStop(2);
_root.num6.numba = randomNumbers2[5];
_root.num6.box.gotoAndStop(_root.num6.numba);
_root.num7.gotoAndStop(2);
_root.num7.numba = randomNumbers2[6];
_root.num7.box.gotoAndStop(_root.num7.numba);
_root.num8.gotoAndStop(2);
_root.num8.numba = randomNumbers2[7];
_root.num8.box.gotoAndStop(_root.num8.numba);
_root.num9.gotoAndStop(2);
_root.num9.numba = randomNumbers2[8];
_root.num9.box.gotoAndStop(_root.num9.numba);
_root.num10.gotoAndStop(2);
_root.num10.numba = randomNumbers2[9];
_root.num10.box.gotoAndStop(_root.num10.numba);
_root.num11.gotoAndStop(2);
_root.num11.numba = randomNumbers2[10];
_root.num11.box.gotoAndStop(_root.num11.numba);
_root.num12.gotoAndStop(2);
_root.num12.numba = randomNumbers2[11];
_root.num12.box.gotoAndStop(_root.num12.numba);
stop();
Instance of Symbol 114 MovieClip "num11" in Frame 13
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.leveljump.gotoAndPlay(2);
}
}
}
Frame 14
function nextlevel() {
_root.gotoAndStop(16);
}
_root.limit = 12;
_root.level = 10;
_root.clickenabled = false;
stop();
_root.maincounter = 0;
numberOfElements = 21;
myNumbers = new Array(numberOfElements);
randomNumbers = new Array(numberOfElements);
randomNumbers2 = new Array(_root.limit);
checklist = new Array(_root.limit);
i = 0;
while (i < numberOfElements) {
myNumbers[i] = i + 1;
i++;
}
i = 0;
while (myNumbers.length > 0) {
thePosition = Math.round(Math.random() * (myNumbers.length - 1));
randomNumbers[i] = myNumbers[thePosition];
i++;
myNumbers.splice(thePosition, 1);
}
Array.prototype.customSort = function (min, max) {
var _local2;
var _local3 = new Array((max - min) + 1);
var _local4;
_local2 = this.length;
while (_local2--) {
_local4 = this[_local2] - min;
if (_local3[_local4] == undefined) {
_local3[_local4] = 0;
}
_local3[_local4]++;
}
var _local5 = new Array();
_local2 = _local3.length;
while (_local2--) {
if (_local3[_local2] != undefined) {
while (_local3[_local2]--) {
_local5.push(_local2);
}
}
}
_local2 = this.length;
while (_local2--) {
this[(this.length - _local2) - 1] = _local5[_local2] + min;
}
};
_root.timer1.gotoAndPlay(2);
i = 0;
while (i < _root.limit) {
checklist[i] = randomNumbers[i];
randomNumbers2[i] = randomNumbers[i];
i++;
}
checklist.customSort(1, 21);
_root.num1.gotoAndStop(2);
_root.num1.numba = randomNumbers2[0];
_root.num1.box.gotoAndStop(_root.num1.numba);
_root.num2.gotoAndStop(2);
_root.num2.numba = randomNumbers2[1];
_root.num2.box.gotoAndStop(_root.num2.numba);
_root.num3.gotoAndStop(2);
_root.num3.numba = randomNumbers2[2];
_root.num3.box.gotoAndStop(_root.num3.numba);
_root.num4.gotoAndStop(2);
_root.num4.numba = randomNumbers2[3];
_root.num4.box.gotoAndStop(_root.num4.numba);
_root.num5.gotoAndStop(2);
_root.num5.numba = randomNumbers2[4];
_root.num5.box.gotoAndStop(_root.num5.numba);
_root.num6.gotoAndStop(2);
_root.num6.numba = randomNumbers2[5];
_root.num6.box.gotoAndStop(_root.num6.numba);
_root.num7.gotoAndStop(2);
_root.num7.numba = randomNumbers2[6];
_root.num7.box.gotoAndStop(_root.num7.numba);
_root.num8.gotoAndStop(2);
_root.num8.numba = randomNumbers2[7];
_root.num8.box.gotoAndStop(_root.num8.numba);
_root.num9.gotoAndStop(2);
_root.num9.numba = randomNumbers2[8];
_root.num9.box.gotoAndStop(_root.num9.numba);
_root.num10.gotoAndStop(2);
_root.num10.numba = randomNumbers2[9];
_root.num10.box.gotoAndStop(_root.num10.numba);
_root.num11.gotoAndStop(2);
_root.num11.numba = randomNumbers2[10];
_root.num11.box.gotoAndStop(_root.num11.numba);
_root.num12.gotoAndStop(2);
_root.num12.numba = randomNumbers2[11];
_root.num12.box.gotoAndStop(_root.num12.numba);
stop();
Instance of Symbol 114 MovieClip "num1" in Frame 14
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.gotoAndStop(16);
}
}
}
Instance of Symbol 114 MovieClip "num2" in Frame 14
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.gotoAndStop(16);
}
}
}
Instance of Symbol 114 MovieClip "num3" in Frame 14
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.gotoAndStop(16);
}
}
}
Instance of Symbol 114 MovieClip "num4" in Frame 14
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.gotoAndStop(16);
}
}
}
Instance of Symbol 114 MovieClip "num5" in Frame 14
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.gotoAndStop(16);
}
}
}
Instance of Symbol 114 MovieClip "num6" in Frame 14
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.gotoAndStop(16);
}
}
}
Instance of Symbol 114 MovieClip "num7" in Frame 14
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.gotoAndStop(16);
}
}
}
Instance of Symbol 114 MovieClip "num8" in Frame 14
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.gotoAndStop(16);
}
}
}
Instance of Symbol 114 MovieClip "num9" in Frame 14
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.gotoAndStop(16);
}
}
}
Instance of Symbol 114 MovieClip "num10" in Frame 14
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.gotoAndStop(16);
}
}
}
Instance of Symbol 114 MovieClip "num11" in Frame 14
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.gotoAndStop(16);
}
}
}
Instance of Symbol 114 MovieClip "num12" in Frame 14
on (press) {
if (_root.clickenabled) {
if (_root.soundsw == 1) {
_root.click.gotoAndPlay(2);
}
if (_root.checklist[_root.maincounter] == this.numba) {
_root.maincounter++;
this.gotoAndStop(2);
this.box.gotoAndPlay(this.numba);
} else {
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
}
if (_root.maincounter == _root.limit) {
_root.gotoAndStop(16);
}
}
}
Frame 15
stop();
Frame 16
stop();
Frame 17
stop();
Instance of Symbol 221 MovieClip in Frame 17
on (release) {
getURL ("http://www.neenja.com", "_blank");
}
Frame 18
stop();
Frame 19
_root.gotoAndStop(4);
Frame 20
stop();
Symbol 225 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.2");
}
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 get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 226 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if (options.clip != mochi.MochiServices.__get__clip()) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 13 Button
on (release) {
getURL ("http://www.neenja.com", "_blank");
}
Symbol 16 Button
on (press) {
_root.soundsw = 0;
gotoAndStop (2);
}
Symbol 19 Button
on (press) {
_root.soundsw = 1;
gotoAndStop (1);
}
Symbol 20 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 2
stop();
Symbol 25 Button
on (press) {
_root.gotoAndStop(5);
}
Symbol 30 Button
on (press) {
_root.gotoAndStop(20);
}
Symbol 37 Button
on (press) {
_root.gotoAndStop(4);
}
Symbol 39 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 10
stop();
Symbol 54 MovieClip Frame 10
stop();
Symbol 57 MovieClip Frame 10
stop();
Symbol 60 MovieClip Frame 10
stop();
Symbol 64 MovieClip Frame 10
stop();
Symbol 67 MovieClip Frame 10
stop();
Symbol 70 MovieClip Frame 10
stop();
Symbol 73 MovieClip Frame 10
stop();
Symbol 76 MovieClip Frame 10
stop();
Symbol 79 MovieClip Frame 10
stop();
Symbol 82 MovieClip Frame 10
stop();
Symbol 85 MovieClip Frame 10
stop();
Symbol 88 MovieClip Frame 10
stop();
Symbol 91 MovieClip Frame 10
stop();
Symbol 94 MovieClip Frame 10
stop();
Symbol 97 MovieClip Frame 10
stop();
Symbol 100 MovieClip Frame 10
stop();
Symbol 103 MovieClip Frame 10
stop();
Symbol 106 MovieClip Frame 10
stop();
Symbol 109 MovieClip Frame 10
stop();
Symbol 112 MovieClip Frame 10
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 2
stop();
Symbol 113 MovieClip Frame 3
stop();
Symbol 113 MovieClip Frame 4
stop();
Symbol 113 MovieClip Frame 5
stop();
Symbol 113 MovieClip Frame 6
stop();
Symbol 113 MovieClip Frame 7
stop();
Symbol 113 MovieClip Frame 8
stop();
Symbol 113 MovieClip Frame 9
stop();
Symbol 113 MovieClip Frame 10
stop();
Symbol 113 MovieClip Frame 11
stop();
Symbol 113 MovieClip Frame 12
stop();
Symbol 113 MovieClip Frame 13
stop();
Symbol 113 MovieClip Frame 14
stop();
Symbol 113 MovieClip Frame 15
stop();
Symbol 113 MovieClip Frame 16
stop();
Symbol 113 MovieClip Frame 17
stop();
Symbol 113 MovieClip Frame 18
stop();
Symbol 113 MovieClip Frame 19
stop();
Symbol 113 MovieClip Frame 20
stop();
Symbol 113 MovieClip Frame 21
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
stop();
Symbol 117 MovieClip Frame 1
_root.clickenabled = false;
Symbol 117 MovieClip Frame 64
_root.clickenabled = true;
_root.num1.gotoAndStop(1);
_root.num2.gotoAndStop(1);
_root.num3.gotoAndStop(1);
_root.num4.gotoAndStop(1);
_root.num5.gotoAndStop(1);
_root.num6.gotoAndStop(1);
_root.num7.gotoAndStop(1);
_root.num8.gotoAndStop(1);
_root.num9.gotoAndStop(1);
_root.num10.gotoAndStop(1);
_root.num11.gotoAndStop(1);
_root.num12.gotoAndStop(1);
_root.timer1a.gotoAndPlay(2);
Symbol 117 MovieClip Frame 65
stop();
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 2
_root.clickenabled = false;
_root.timer1a.gotoAndStop(1);
Symbol 121 MovieClip Frame 31
_root.clickenabled = true;
_root.nextlevel();
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 2
_root.timer1a.stop();
if (_root.soundsw == 1) {
_root.wrong.gotoAndPlay(2);
}
_root.num1.gotoAndStop(2);
_root.num1.box.gotoAndStop(_root.num1.numba);
_root.num2.gotoAndStop(2);
_root.num2.box.gotoAndStop(_root.num2.numba);
_root.num3.gotoAndStop(2);
_root.num3.box.gotoAndStop(_root.num3.numba);
_root.num4.gotoAndStop(2);
_root.num4.box.gotoAndStop(_root.num4.numba);
_root.num5.gotoAndStop(2);
_root.num5.box.gotoAndStop(_root.num5.numba);
_root.num6.gotoAndStop(2);
_root.num6.box.gotoAndStop(_root.num6.numba);
_root.num7.gotoAndStop(2);
_root.num7.box.gotoAndStop(_root.num7.numba);
_root.num8.gotoAndStop(2);
_root.num8.box.gotoAndStop(_root.num8.numba);
_root.num9.gotoAndStop(2);
_root.num9.box.gotoAndStop(_root.num9.numba);
_root.num10.gotoAndStop(2);
_root.num10.box.gotoAndStop(_root.num10.numba);
_root.num11.gotoAndStop(2);
_root.num11.box.gotoAndStop(_root.num11.numba);
_root.num12.gotoAndStop(2);
_root.num12.box.gotoAndStop(_root.num12.numba);
Symbol 125 MovieClip Frame 73
_root.num1.gotoAndStop(1);
_root.num2.gotoAndStop(1);
_root.num3.gotoAndStop(1);
_root.num4.gotoAndStop(1);
_root.num5.gotoAndStop(1);
_root.num6.gotoAndStop(1);
_root.num7.gotoAndStop(1);
_root.num8.gotoAndStop(1);
_root.num9.gotoAndStop(1);
_root.num10.gotoAndStop(1);
_root.num11.gotoAndStop(1);
_root.num12.gotoAndStop(1);
_root.gotoAndStop(15);
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 100
if (_root.soundsw == 1) {
_root.timealert.gotoAndPlay(2);
}
Symbol 126 MovieClip Frame 129
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
Symbol 126 MovieClip Frame 130
stop();
Symbol 131 MovieClip Frame 1
_root.clickenabled = false;
Symbol 131 MovieClip Frame 99
_root.clickenabled = true;
_root.num1.gotoAndStop(1);
_root.num2.gotoAndStop(1);
_root.num3.gotoAndStop(1);
_root.num4.gotoAndStop(1);
_root.num5.gotoAndStop(1);
_root.num6.gotoAndStop(1);
_root.num7.gotoAndStop(1);
_root.num8.gotoAndStop(1);
_root.num9.gotoAndStop(1);
_root.num10.gotoAndStop(1);
_root.num11.gotoAndStop(1);
_root.num12.gotoAndStop(1);
_root.timer1a.gotoAndPlay(2);
Symbol 131 MovieClip Frame 100
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 130
if (_root.soundsw == 1) {
_root.timealert.gotoAndPlay(2);
}
Symbol 132 MovieClip Frame 159
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
Symbol 132 MovieClip Frame 160
stop();
Symbol 137 MovieClip Frame 1
_root.clickenabled = false;
Symbol 137 MovieClip Frame 129
_root.clickenabled = true;
_root.num1.gotoAndStop(1);
_root.num2.gotoAndStop(1);
_root.num3.gotoAndStop(1);
_root.num4.gotoAndStop(1);
_root.num5.gotoAndStop(1);
_root.num6.gotoAndStop(1);
_root.num7.gotoAndStop(1);
_root.num8.gotoAndStop(1);
_root.num9.gotoAndStop(1);
_root.num10.gotoAndStop(1);
_root.num11.gotoAndStop(1);
_root.num12.gotoAndStop(1);
_root.timer1a.gotoAndPlay(2);
Symbol 137 MovieClip Frame 130
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 160
if (_root.soundsw == 1) {
_root.timealert.gotoAndPlay(2);
}
Symbol 138 MovieClip Frame 189
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
Symbol 138 MovieClip Frame 190
stop();
Symbol 143 MovieClip Frame 1
_root.clickenabled = false;
Symbol 143 MovieClip Frame 174
_root.clickenabled = true;
_root.num1.gotoAndStop(1);
_root.num2.gotoAndStop(1);
_root.num3.gotoAndStop(1);
_root.num4.gotoAndStop(1);
_root.num5.gotoAndStop(1);
_root.num6.gotoAndStop(1);
_root.num7.gotoAndStop(1);
_root.num8.gotoAndStop(1);
_root.num9.gotoAndStop(1);
_root.num10.gotoAndStop(1);
_root.num11.gotoAndStop(1);
_root.num12.gotoAndStop(1);
_root.timer1a.gotoAndPlay(2);
Symbol 143 MovieClip Frame 175
stop();
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 205
if (_root.soundsw == 1) {
_root.timealert.gotoAndPlay(2);
}
Symbol 144 MovieClip Frame 234
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
Symbol 144 MovieClip Frame 235
stop();
Symbol 149 MovieClip Frame 1
_root.clickenabled = false;
Symbol 149 MovieClip Frame 209
_root.clickenabled = true;
_root.num1.gotoAndStop(1);
_root.num2.gotoAndStop(1);
_root.num3.gotoAndStop(1);
_root.num4.gotoAndStop(1);
_root.num5.gotoAndStop(1);
_root.num6.gotoAndStop(1);
_root.num7.gotoAndStop(1);
_root.num8.gotoAndStop(1);
_root.num9.gotoAndStop(1);
_root.num10.gotoAndStop(1);
_root.num11.gotoAndStop(1);
_root.num12.gotoAndStop(1);
_root.timer1a.gotoAndPlay(2);
Symbol 149 MovieClip Frame 210
stop();
Symbol 150 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 240
if (_root.soundsw == 1) {
_root.timealert.gotoAndPlay(2);
}
Symbol 150 MovieClip Frame 269
_root.clickenabled = false;
_root.gameover.gotoAndPlay(2);
Symbol 150 MovieClip Frame 270
stop();
Symbol 164 Button
on (release) {
mochi.MochiScores.showLeaderboard({boardID:"83451be0d742287d", score:_root.level, name:_root.player});
_root.gotoAndStop(18);
}
Symbol 169 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 173 MovieClip Frame 1
_root.level = 11;
Symbol 173 MovieClip Frame 45
_root.gotoAndStop(15);
Symbol 221 MovieClip Frame 179
_root.gotoAndStop(4);