Frame 1
Stage.showMenu = false;
Frame 24
stop();
var LANG = new Object();
LANG.fnLoad = function () {
trace("lang . fnload");
var tLangXML = new XML();
tLangXML.ignoreWhite = true;
tLangXML.onLoad = function () {
_root.vXMLLoaded = true;
var _local2 = 0;
while (_local2 < tLangXML.firstChild.childNodes.length) {
var _local3 = tLangXML.firstChild.childNodes[_local2];
LANG[_local3.attributes.id] = _local3.firstChild.toString().split("'").join("'").split("\r\n").join("\r");
_local2++;
}
_root.play();
};
tLangXML.load((("lang/game" + _root.gameID) + _root.vLang) + ".xml");
};
_global.LANG = LANG;
LANG.fnLoad();
Frame 26
stop();
var score = 0;
udt.tools.SoundTool.fnBGSound("mp3");
ibSound.onPress = function () {
udt.tools.SoundTool.fnSoundToggle();
udt.tools.SoundTool.fnBGSoundToggle();
if (udt.tools.SoundTool.vSoundOn) {
fnSetSound();
iSound.gotoAndStop(1);
} else {
fnClearSound();
stopAllSounds();
iSound.gotoAndStop(2);
}
};
Frame 27
_root.index = 1;
_root.count = 0;
_root.userIndex = 0;
_root.p = 1;
_root.computerArray = new Array(10);
_root.userArray = new Array(10);
n = 1;
while (n <= 100) {
rand = random(8) + 1;
computerArray[n] = Number(rand);
n++;
}
Frame 28
t = _root.p;
temp = computerArray[t];
eval ("_root." + temp).gotoAndPlay(2);
Frame 36
if (_root.p <= _root.count) {
_root.p = _root.p + 1;
gotoAndPlay (28);
} else {
_root.count = _root.count + 1;
stop();
}
Frame 49
gotoAndPlay (28);
Frame 55
ibSubmit.onPress = function () {
getURL ((((((("submitGameScoreProc.php?gameID=" + _root.gameID) + "&scoreID=") + _root.sc) + "&score=") + _root.score) + "&sm=") + udt.tools.SecurityTool.fnMD5((((_root.gameID + _root.sc) + "dreamcortex") + _root.sn) + _root.score), "_self");
};
stop();
Symbol 13 MovieClip Frame 30
stop();
Symbol 86 MovieClip [__Packages.udt.tools.SoundTool] Frame 0
class udt.tools.SoundTool
{
function SoundTool () {
}
static function fnSound(pSoundID, pVolume) {
if (vSoundOn) {
var _local2 = pVolume;
if (_local2 == undefined) {
_local2 = 100;
}
var _local4 = ((_root["_iSound" + _local2] == undefined) ? (_root.createEmptyMovieClip("_iSound" + _root.getNextHighestDepth(), _root.getNextHighestDepth())) : (_root["_iSound" + _local2]));
var _local3 = new Sound(_local4);
_local3.attachSound(pSoundID);
_local3.start(0);
_local3.setVolume(_local2);
}
}
static function fnBGSound(pSoundID, pVolume) {
if (vBGSoundID != pSoundID) {
vBGSound.stop(vBGSoundID);
vBGSoundID = pSoundID;
if (vBGSoundOn) {
if (pVolume != undefined) {
vBGVolume = pVolume;
}
vBGSound = new Sound();
vBGSound.attachSound(vBGSoundID);
vBGSound.start(0, 99999);
vBGSound.setVolume(vBGVolume);
}
}
}
static function fnBGSoundOn() {
if (!vBGSoundOn) {
vBGSoundOn = true;
vBGSound.stop(vBGSoundID);
vBGSound = new Sound();
vBGSound.attachSound(vBGSoundID);
vBGSound.start(0, 99999);
vBGSound.setVolume(vBGVolume);
}
}
static function fnBGSoundOff() {
vBGSound.stop(vBGSoundID);
vBGSoundOn = false;
}
static function fnSoundOff() {
vSoundOn = false;
}
static function fnSoundOn() {
vSoundOn = true;
}
static function fnSoundToggle() {
if (vSoundOn) {
fnSoundOff();
} else {
fnSoundOn();
}
}
static function fnBGSoundToggle() {
if (vBGSoundOn) {
fnBGSoundOff();
} else {
fnBGSoundOn();
}
}
static function fnToggleAllSound() {
fnBGSoundToggle();
fnSoundToggle();
}
static var vSoundOn = true;
static var vBGSoundOn = true;
static var vBGSound = new Sound();
static var vBGSoundID = "";
static var vBGVolume = 100;
}
Symbol 87 MovieClip [__Packages.udt.tools.SecurityTool] Frame 0
class udt.tools.SecurityTool
{
function SecurityTool () {
}
static function fnMD5(pString) {
return(fnBinaryToHex(fnMd5Proc(fnStringToBinary(pString), pString.length * 8)));
}
static function fnMd5Proc(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local4 = 1732584193 /* 0x67452301 */;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var _local5 = 0;
while (_local5 < x.length) {
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
var _local7 = _local1;
_local4 = fnFF(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = fnFF(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586);
_local2 = fnFF(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819);
_local3 = fnFF(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330);
_local4 = fnFF(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = fnFF(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = fnFF(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341);
_local3 = fnFF(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983);
_local4 = fnFF(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = fnFF(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = fnFF(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063);
_local3 = fnFF(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162);
_local4 = fnFF(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = fnFF(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101);
_local2 = fnFF(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290);
_local3 = fnFF(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329);
_local4 = fnGG(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = fnGG(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = fnGG(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713);
_local3 = fnGG(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302);
_local4 = fnGG(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = fnGG(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083);
_local2 = fnGG(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335);
_local3 = fnGG(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848);
_local4 = fnGG(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438);
_local1 = fnGG(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690);
_local2 = fnGG(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961);
_local3 = fnGG(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501);
_local4 = fnGG(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467);
_local1 = fnGG(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784);
_local2 = fnGG(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473);
_local3 = fnGG(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734);
_local4 = fnHH(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558);
_local1 = fnHH(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463);
_local2 = fnHH(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562);
_local3 = fnHH(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556);
_local4 = fnHH(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060);
_local1 = fnHH(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353);
_local2 = fnHH(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632);
_local3 = fnHH(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640);
_local4 = fnHH(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174);
_local1 = fnHH(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222);
_local2 = fnHH(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979);
_local3 = fnHH(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189);
_local4 = fnHH(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487);
_local1 = fnHH(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835);
_local2 = fnHH(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520);
_local3 = fnHH(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651);
_local4 = fnII(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844);
_local1 = fnII(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415);
_local2 = fnII(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905);
_local3 = fnII(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055);
_local4 = fnII(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = fnII(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = fnII(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523);
_local3 = fnII(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799);
_local4 = fnII(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = fnII(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744);
_local2 = fnII(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380);
_local3 = fnII(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649);
_local4 = fnII(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = fnII(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = fnII(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259);
_local3 = fnII(_local3, _local2, _local1, _local4, x[_local5 + 9], 21, -343485551);
_local4 = fnMD5Add(_local4, _local10);
_local3 = fnMD5Add(_local3, _local9);
_local2 = fnMD5Add(_local2, _local8);
_local1 = fnMD5Add(_local1, _local7);
_local5 = _local5 + 16;
}
return(Array(_local4, _local3, _local2, _local1));
}
static function fnCMN(q, a, b, x, s, t) {
return(fnMD5Add(fnShiftBitLeft(fnMD5Add(fnMD5Add(a, q), fnMD5Add(x, t)), s), b));
}
static function fnFF(a, b, c, d, x, s, t) {
return(fnCMN((b & c) | ((~b) & d), a, b, x, s, t));
}
static function fnGG(a, b, c, d, x, s, t) {
return(fnCMN((b & d) | (c & (~d)), a, b, x, s, t));
}
static function fnHH(a, b, c, d, x, s, t) {
return(fnCMN((b ^ c) ^ d, a, b, x, s, t));
}
static function fnII(a, b, c, d, x, s, t) {
return(fnCMN(c ^ (b | (~d)), a, b, x, s, t));
}
static function fnMD5Add(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
static function fnShiftBitLeft(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
static function fnStringToBinary(str) {
var _local3 = Array();
var _local4 = 255;
var _local1 = 0;
while (_local1 < (str.length * 8)) {
_local3[_local1 >> 5] = _local3[_local1 >> 5] | ((str.charCodeAt(_local1 / 8) & _local4) << (_local1 % 32));
_local1 = _local1 + 8;
}
return(_local3);
}
static function fnBinaryToHex(binarray) {
var _local3 = "0123456789abcdef";
var _local4 = "";
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
static function fnFlashEncrypt(pKey, pString) {
var _local6 = "";
var _local7;
var _local1;
if ((pKey.charAt(0).charCodeAt(0) % 2) != 0) {
_local7 = true;
_local1 = 0;
} else {
_local7 = false;
_local1 = pKey.length - 1;
}
var _local2 = 0;
while (_local2 < pString.length) {
var _local4 = pKey.charAt(_local1).charCodeAt(0);
_local6 = _local6 + String.fromCharCode(pString.charAt(_local2).charCodeAt(0) + _local4);
if (_local7) {
_local1++;
if (_local1 == pKey.length) {
_local1 = 0;
}
} else {
_local1--;
if (_local1 == -1) {
_local1 = pKey.length - 1;
}
}
_local2++;
}
return(escape(_local6));
}
static function fnFlashDecrypt(pKey, pString) {
pString = unescape(pString);
var _local6 = "";
var _local7;
var _local1;
if ((pKey.charAt(0).charCodeAt(0) % 2) != 0) {
_local7 = true;
_local1 = 0;
} else {
_local7 = false;
_local1 = pKey.length - 1;
}
var _local2 = 0;
while (_local2 < pString.length) {
var _local4 = pKey.charAt(_local1).charCodeAt(0);
_local6 = _local6 + String.fromCharCode(pString.charAt(_local2).charCodeAt(0) - _local4);
if (_local7) {
_local1++;
if (_local1 == pKey.length) {
_local1 = 0;
}
} else {
_local1--;
if (_local1 == -1) {
_local1 = pKey.length - 1;
}
}
_local2++;
}
return(_local6);
}
}
Symbol 30 Button
on (release) {
play();
}
Symbol 34 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 2
udt.tools.SoundTool.fnSound("s7");
Symbol 38 MovieClip Frame 5
gotoAndStop (1);
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 2
udt.tools.SoundTool.fnSound("s6");
Symbol 39 MovieClip Frame 5
gotoAndStop (1);
Symbol 40 MovieClip Frame 1
stop();
Symbol 40 MovieClip Frame 2
udt.tools.SoundTool.fnSound("s1");
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 2
udt.tools.SoundTool.fnSound("s8");
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 2
udt.tools.SoundTool.fnSound("s5");
Symbol 43 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 2
udt.tools.SoundTool.fnSound("s4");
Symbol 44 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 2
udt.tools.SoundTool.fnSound("s3");
Symbol 45 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 2
udt.tools.SoundTool.fnSound("s2");
Symbol 62 Button
on (release) {
_root.score = 0;
gotoAndPlay (26);
}
Symbol 68 Button
on (press) {
tellTarget ("_root.2") {
gotoAndPlay (1);
};
i = _root.index;
_root.userArray[i] = 2;
if (_root.userArray[i] eq _root.computerArray[i]) {
trace("true");
_root.userIndex = _root.userIndex + 1;
_root.index = _root.index + 1;
_root.score = _root.score + 1;
} else {
gotoAndStop (55);
}
trace(_root.userIndex);
trace(_root.count);
if (_root.userIndex < _root.count) {
trace("out");
} else {
_root.p = 1;
_root.index = 1;
_root.userIndex = 0;
gotoAndPlay (40);
}
}
Symbol 69 Button
on (press) {
tellTarget ("_root.1") {
gotoAndPlay (1);
};
i = _root.index;
_root.userArray[i] = 1;
if (_root.userArray[i] eq _root.computerArray[i]) {
_root.userIndex = _root.userIndex + 1;
_root.index = _root.index + 1;
_root.score = _root.score + 1;
} else {
gotoAndStop (55);
}
if (_root.userIndex < _root.count) {
} else {
_root.p = 1;
_root.index = 1;
_root.userIndex = 0;
gotoAndPlay (40);
}
}
Symbol 70 Button
on (press) {
tellTarget ("_root.8") {
gotoAndPlay (1);
};
i = _root.index;
_root.userArray[i] = 8;
if (_root.userArray[i] eq _root.computerArray[i]) {
trace("true");
_root.userIndex = _root.userIndex + 1;
_root.index = _root.index + 1;
_root.score = _root.score + 1;
} else {
gotoAndStop (55);
}
trace(_root.userIndex);
trace(_root.count);
if (_root.userIndex < _root.count) {
trace("out");
} else {
_root.p = 1;
_root.index = 1;
_root.userIndex = 0;
gotoAndPlay (40);
}
}
Symbol 71 Button
on (press) {
tellTarget ("_root.3") {
gotoAndPlay (1);
};
i = _root.index;
_root.userArray[i] = 3;
if (_root.userArray[i] eq _root.computerArray[i]) {
trace("true");
_root.userIndex = _root.userIndex + 1;
_root.index = _root.index + 1;
_root.score = _root.score + 1;
} else {
gotoAndStop (55);
}
trace(_root.userIndex);
trace(_root.count);
if (_root.userIndex < _root.count) {
trace("out");
} else {
_root.p = 1;
_root.index = 1;
_root.userIndex = 0;
gotoAndPlay (40);
}
}
Symbol 72 Button
on (press) {
tellTarget ("_root.4") {
gotoAndPlay (1);
};
i = _root.index;
_root.userArray[i] = 4;
if (_root.userArray[i] eq _root.computerArray[i]) {
trace("true");
_root.userIndex = _root.userIndex + 1;
_root.index = _root.index + 1;
_root.score = _root.score + 1;
} else {
gotoAndStop (55);
}
trace(_root.userIndex);
trace(_root.count);
if (_root.userIndex < _root.count) {
trace("out");
} else {
_root.p = 1;
_root.index = 1;
_root.userIndex = 0;
gotoAndPlay (40);
}
}
Symbol 73 Button
on (press) {
tellTarget ("_root.5") {
gotoAndPlay (1);
};
i = _root.index;
_root.userArray[i] = 5;
if (_root.userArray[i] eq _root.computerArray[i]) {
trace("true");
_root.userIndex = _root.userIndex + 1;
_root.index = _root.index + 1;
_root.score = _root.score + 1;
} else {
gotoAndStop (55);
}
trace(_root.userIndex);
trace(_root.count);
if (_root.userIndex < _root.count) {
trace("out");
} else {
_root.p = 1;
_root.index = 1;
_root.userIndex = 0;
gotoAndPlay (40);
}
}
Symbol 74 Button
on (press) {
tellTarget ("_root.6") {
gotoAndPlay (1);
};
i = _root.index;
_root.userArray[i] = 6;
if (_root.userArray[i] eq _root.computerArray[i]) {
trace("true");
_root.userIndex = _root.userIndex + 1;
_root.index = _root.index + 1;
_root.score = _root.score + 1;
} else {
gotoAndStop (55);
}
trace(_root.userIndex);
trace(_root.count);
if (_root.userIndex < _root.count) {
trace("out");
} else {
_root.p = 1;
_root.index = 1;
_root.userIndex = 0;
gotoAndPlay (40);
}
}
Symbol 75 Button
on (press) {
tellTarget ("_root.7") {
gotoAndPlay (1);
};
i = _root.index;
_root.userArray[i] = 7;
if (_root.userArray[i] eq _root.computerArray[i]) {
trace("true");
_root.userIndex = _root.userIndex + 1;
_root.index = _root.index + 1;
_root.score = _root.score + 1;
} else {
gotoAndStop (55);
}
trace(_root.userIndex);
trace(_root.count);
if (_root.userIndex < _root.count) {
trace("out");
} else {
_root.p = 1;
_root.index = 1;
_root.userIndex = 0;
gotoAndPlay (40);
}
}
Symbol 82 Button
on (release) {
fscommand ("quit", "true");
}
Symbol 85 MovieClip Frame 30
gotoAndStop (1);