Frame 1
stop();
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 2
stop();
Symbol 24 MovieClip Frame 3
stop();
Symbol 24 MovieClip Frame 4
stop();
Symbol 24 MovieClip Frame 5
stop();
Symbol 24 MovieClip Frame 6
stop();
Symbol 24 MovieClip Frame 7
stop();
Symbol 24 MovieClip Frame 8
stop();
Symbol 24 MovieClip Frame 9
stop();
Symbol 24 MovieClip Frame 10
stop();
Symbol 24 MovieClip Frame 11
stop();
Symbol 24 MovieClip Frame 12
stop();
Symbol 24 MovieClip Frame 13
stop();
Symbol 25 MovieClip Frame 1
_parent._visible = false;
stop();
Symbol 25 MovieClip Frame 2
out = false;
_parent._visible = true;
tellTarget ("ThisCard") {
gotoAndStop ("BackOfCard");
};
Symbol 25 MovieClip Frame 9
stop();
Symbol 25 MovieClip Frame 10
out = true;
Symbol 25 MovieClip Frame 13
tellTarget ("ThisCard") {
gotoAndStop(_parent._parent._parent.cardArray[_parent._parent.ThisCardNumber - 1] + 1);
};
Symbol 25 MovieClip Frame 16
stop();
Symbol 25 MovieClip Frame 20
tellTarget ("ThisCard") {
gotoAndStop ("BackOfCard");
};
Symbol 25 MovieClip Frame 23
out = false;
stop();
Symbol 25 MovieClip Frame 36
stop();
_parent._visible = false;
Symbol 27 Button
on (release) {
if (_parent.PlayingGame) {
if (_parent.CurrentFlipsCount < 999) {
if (!CardMotion.out) {
_parent.CurrentFlipsCount++;
_parent.CurrentFlips = "FLIPS: " + _parent.CurrentFlipsCount;
if (_parent.NoOfCardsOut == 0) {
tellTarget ("CardMotion") {
gotoAndPlay ("SpinFront");
};
_parent.NoOfCardsOut = 1;
_parent.FirstCard = _parent.cardArray[ThisCardNumber - 1];
_parent.FirstCardName = this._name;
} else if (_parent.NoOfCardsOut == 1) {
tellTarget ("CardMotion") {
gotoAndPlay ("SpinFront");
};
_parent.NoOfCardsOut = 2;
_parent.SecondCard = _parent.cardArray[ThisCardNumber - 1];
_parent.SecondCardName = this._name;
if (_parent.CurrentPairsCount == 11) {
gotoAndPlay ("HideCards");
} else {
gotoAndPlay ("ShowCards");
}
} else if (_parent.NoOfCardsOut == 2) {
tellTarget ("_parent." + _parent.SecondCardName) {
gotoAndStop ("DoNothing");
};
_parent.NoOfCardsOut = 3;
gotoAndPlay ("HideCards");
}
}
} else {
_parent.GameOverPage = "ExcessFlips";
_parent.gotoAndStop("GameOver");
}
}
}
Symbol 28 MovieClip Frame 1
ThisCardNumber = int(this._name.substr(4, 2));
stop();
Symbol 28 MovieClip Frame 30
if (_parent.FirstCard == _parent.SecondCard) {
if (_parent.CurrentPairsCount == 11) {
_parent.FinalTime = "YOUR TIME: " + _parent.Timer.time;
_parent.FinalFlips = "FLIP COUNT: " + _parent.CurrentFlipsCount;
_parent.FinalTimeNum = ((int(_parent.Timer.atime[2]) * 60) + int(_parent.Timer.atime[4])) + (int(_parent.Timer.atime[6]) / 10);
_parent.FinalFlipsNum = _parent.CurrentFlipsCount;
if (_parent.UsePersonalBest) {
_parent.UpdateCookies = false;
if ((_parent.FinalTimeNum < _parent.CookieGameTime) | (_parent.CookieGameTime == 0)) {
_parent.PersonalBestTime = _parent.FinalTimeNum;
_parent.UpdateCookies = true;
} else {
_parent.PersonalBestTime = _parent.CookieGameTime;
}
if ((_parent.FinalFlipsNum < _parent.CookieGameFlips) | (_parent.CookieGameFlips == 0)) {
_parent.PersonalBestFlips = _parent.FinalFlipsNum;
_parent.UpdateCookies = true;
} else {
_parent.PersonalBestFlips = _parent.CookieGameFlips;
}
if (_parent.UpdateCookies) {
_parent.PersonalRecords.gotoAndPlay("SetCookies");
}
}
if (_parent.UseScoreboard) {
_parent.GameOverPage = "GameComplete";
_parent.gotoAndPlay("GameOver");
} else {
_parent.GameOverPage = "CompleteNoScoreboard";
_parent.gotoAndPlay("GameOver");
}
} else {
tellTarget (("_parent." + _parent.FirstCardName) + ".CardMotion") {
gotoAndPlay ("CardFadeOut");
};
tellTarget (("_parent." + _parent.SecondCardName) + ".CardMotion") {
gotoAndPlay ("CardFadeOut");
};
_parent.matchedArray[_parent.FirstCard] = true;
var TempPairsCount = 0;
x = 1;
while (x < 13) {
if (_parent.matchedArray[x]) {
TempPairsCount++;
}
x++;
}
_parent.CurrentPairsCount = TempPairsCount;
_parent.CurrentPairs = "PAIRS MATCHED: " + _parent.CurrentPairsCount;
}
} else {
tellTarget (("_parent." + _parent.FirstCardName) + ".CardMotion") {
gotoAndPlay ("SpinBack");
};
tellTarget (("_parent." + _parent.SecondCardName) + ".CardMotion") {
gotoAndPlay ("SpinBack");
};
}
Symbol 28 MovieClip Frame 31
if (_parent.NoOfCardsOut == 3) {
tellTarget ("CardMotion") {
gotoAndPlay ("SpinFront");
};
_parent.NoOfCardsOut = 1;
_parent.FirstCard = _parent.cardArray[ThisCardNumber - 1];
_parent.FirstCardName = this._name;
_parent.SecondCard = 0;
_parent.SecondCardName = "";
} else {
_parent.NoOfCardsOut = 0;
_parent.FirstCard = 0;
_parent.FirstCardName = "";
_parent.SecondCard = 0;
_parent.SecondCardName = "";
}
Symbol 35 MovieClip Frame 1
function StopWatch() {
var _local1 = _root;
see = microtime;
if (pickup) {
freeze = microtime;
timeBase = getTimer();
}
if (reset) {
freeze = 0;
time = atime.join("").substr(3, 7);
reset = 0;
}
if (timerOn) {
if (check) {
timeBase = getTimer();
check = 0;
}
timeNow = getTimer();
microtime = (Number(timeNow) - Number(timeBase)) + Number(freeze);
trace(((Number(atime[0]) * 3600) + (Number(atime[2]) * 60)) + Number(atime[4]));
_local1.score = 300 - Math.abs(((Number(atime[0]) * 3600) + (Number(atime[2]) * 60)) + Number(atime[4]));
if (_local1.score < 1) {
_local1.score = 1;
}
mts = (microtime / 1000).toString().split(".");
atime[6] = mts[1].substr(0, 1);
if (atime[6].toString().length < 1) {
atime[6] = "0";
}
atime[4] = mts[0];
if (atime[4] == "60") {
atime[4] = "00";
atime[2] = Number(atime[2]) + Number(1);
}
if (atime[4].toString().length < 2) {
atime[4] = "0" + atime[4];
}
if (atime[4].toString().length < 1) {
atime[4] = "00";
}
if (atime[2].toString().length < 2) {
atime[2] = "0" + atime[2].toString();
}
if (atime[2] > 59) {
atime[0] = Number(atime[0]) + Number(1);
atime[2] = "00";
}
if (atime[0].toString().length < 2) {
atime[0] = "0" + atime[0];
}
if (atime[0].toString().length < 1) {
atime[0] = "00";
}
if (atime[0] > 0) {
_parent.GameOverPage = "ExcessTime";
_parent.gotoAndStop("GameOver");
}
time = atime.join("").substr(3, 7);
if (microtime > 60000) {
microtime = microtime - 60000;
check = 1;
freeze = 0;
}
seconds = ((Number(atime[0]) * 3600) + (Number(atime[2]) * 60)) + Number(atime[4]);
}
}
stop();
timerON = 0;
check = 1;
reset = 1;
pickUp = 0;
atime = new Array();
atime[0] = "00";
atime[1] = ":";
atime[2] = "00";
atime[3] = ":";
atime[4] = "00";
atime[5] = ".";
atime[6] = "0";
Symbol 35 MovieClip Frame 2
stop();
timerON = 1;
check = 1;
pickUp = 0;
Symbol 35 MovieClip Frame 3
stop();
timerON = 0;
check = 1;
pickUp = 1;
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 10
stop();
Symbol 43 Button
on (rollOver) {
tellTarget ("NewGameText") {
gotoAndPlay (2);
};
}
on (rollOut) {
tellTarget ("NewGameText") {
gotoAndPlay (11);
};
}
on (release) {
tellTarget ("_parent") {
gotoAndStop ("StartGame");
};
}
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 2
stop();
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 10
stop();
Symbol 51 MovieClip Frame 20
stop();
gotoAndStop (1);
Symbol 52 Button
on (rollOver) {
PauseText.gotoAndPlay(2);
}
on (rollOut) {
PauseText.gotoAndPlay(11);
}
on (release) {
if (_parent.PlayingGame) {
_parent.PlayingGame = false;
_parent.Timer.gotoAndStop("TimerPause");
PauseText.ButtonText.gotoAndStop(2);
} else if (_parent._currentframe == 3) {
_parent.PlayingGame = true;
_parent.Timer.gotoAndStop("TimerOn");
PauseText.ButtonText.gotoAndStop(1);
}
}
Symbol 66 MovieClip Frame 1
CardCount = 1;
Symbol 66 MovieClip Frame 2
n = 1;
while (n < 25) {
if (n < 10) {
CardTarget = ("_parent.Card0" add n) add ".CardMotion";
} else {
CardTarget = ("_parent.Card" add n) add ".CardMotion";
}
tellTarget (CardTarget) {
gotoAndStop ("CardInvisible");
};
n++;
}
Symbol 66 MovieClip Frame 3
if (CardCount < 25) {
if (CardCount < 10) {
CardTarget = ("_parent.Card0" add CardCount) add ".CardMotion";
} else {
CardTarget = ("_parent.Card" add CardCount) add ".CardMotion";
}
tellTarget (CardTarget) {
gotoAndPlay ("CardFadeIn");
};
CardCount++;
} else {
gotoAndPlay ("TurnCardsComplete");
}
Symbol 66 MovieClip Frame 5
gotoAndPlay ("KeepTurning");
Symbol 66 MovieClip Frame 6
CardCount = 1;
stop();
tellTarget ("_parent") {
gotoAndStop ("GameLoaded");
};
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 2
stop();
Symbol 82 MovieClip Frame 3
if (score < 1) {
score = 1;
}
ibSubmit.onPress = function () {
var _local1 = _root;
getURL ((((((("submitGameScoreProc.php?gameID=" + _local1.gameID) + "&scoreID=") + _local1.sc) + "&score=") + _local1.score) + "&sm=") + udt.tools.SecurityTool.fnMD5(((_local1.gameID + _local1.sc) + _local1.sn) + _local1.score), "_self");
trace((((((("submitscoresubmitGameScoreProc.php?gameID=" + _local1.gameID) + "&scoreID=") + _local1.sc) + "&score=") + _local1.score) + "&sm=") + udt.tools.SecurityTool.fnMD5(((_local1.gameID + _local1.sc) + _local1.sn) + _local1.score));
};
stop();
Symbol 82 MovieClip Frame 4
stop();
Symbol 83 MovieClip Frame 1
function ShuffleCards() {
cardArray = new Array();
var _local1 = [1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12];
var _local2 = new Array();
a = 0;
while (a < _local1.length) {
_local2.push(a);
a++;
}
a = 0;
while (a < _local1.length) {
do {
trg = random(_local2.length);
newplace = _local2[trg];
} while ((_local1[a] == _local1[newplace]) && (a != (_local1.length - 1)));
_local2.splice(trg, 1);
if (_local1[a] != _local1[newplace]) {
cardArray.push(_local1[newplace]);
} else {
cardArray.unshift(_local1[newplace]);
}
a++;
}
}
function ConvertTimeToText(ConvertNumber) {
if (ConvertNumber) {
var _local3 = String(int(Math.floor(Number(ConvertNumber / 60))));
var _local2 = String(int(Math.floor(Number(ConvertNumber))) - (int(Math.floor(Number(ConvertNumber / 60))) * 60));
var _local1 = ConvertNumber.toString().split(".");
if (_local3.length < 2) {
_local3 = "0" + _local3;
}
if (_local2.length < 2) {
_local2 = "0" + _local2;
}
if (!_local1[1]) {
_local1[1] = 0;
} else {
_local1[1] = _local1[1].charAt(0);
}
return((((_local3 + ":") + _local2) + ".") + _local1[1]);
}
return("00:00.0");
}
function CheckNull(checkstring) {
var _local1 = checkstring;
if (_local1.length < 1) {
return(true);
}
if (_local1 == "") {
return(true);
}
if (_local1 == null) {
return(true);
}
return(false);
}
stop();
Instance of Symbol 35 MovieClip "Timer" in Symbol 83 MovieClip Frame 1
onClipEvent (enterFrame) {
StopWatch();
}
Symbol 83 MovieClip Frame 2
FirstCard = 0;
SecondCard = 0;
FirstCardName = "";
SecondCardName = "";
NoOfCardsOut = 0;
ShuffleCards();
CurrentFlipsCount = 0;
CurrentFlips = "Flips: 0";
CurrentPairsCount = 0;
CurrentPairs = "Pairs Matched: 0";
matchedArray = new Array();
n = 1;
while (n < 13) {
matchedArray[n] = false;
n++;
}
PauseButton.PauseText.ButtonText.gotoAndStop(1);
Timer.gotoAndStop("TimerOff");
CardActions.gotoAndPlay("TurnCards");
stop();
Symbol 83 MovieClip Frame 3
PlayingGame = true;
tellTarget ("Timer") {
gotoAndStop ("TimerOn");
};
stop();
Symbol 83 MovieClip Frame 4
PlayingGame = false;
CurrentFlipsCount = 0;
CurrentFlips = "Flips: 0";
CurrentPairsCount = 0;
CurrentPairs = "Pairs Matched: 0";
n = 1;
while (n < 25) {
if (n < 10) {
CardTarget = ("Card0" + n) + ".CardMotion";
} else {
CardTarget = ("Card" + n) + ".CardMotion";
}
tellTarget (CardTarget) {
gotoAndStop ("CardInvisible");
};
n++;
}
Timer.gotoAndStop("TimerOff");
PauseButton.PauseText.ButtonText.gotoAndStop(1);
PauseButton.PauseText.gotoAndStop(1);
UserMessages.gotoAndPlay(GameOverPage);
stop();
Symbol 84 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 a = 1732584193;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var i = 0;
while (i < x.length) {
var olda = a;
var oldb = _local3;
var oldc = _local2;
var oldd = _local1;
a = fnFF(a, _local3, _local2, _local1, x[i + 0], 7, -680876936);
_local1 = fnFF(_local1, a, _local3, _local2, x[i + 1], 12, -389564586);
_local2 = fnFF(_local2, _local1, a, _local3, x[i + 2], 17, 606105819);
_local3 = fnFF(_local3, _local2, _local1, a, x[i + 3], 22, -1044525330);
a = fnFF(a, _local3, _local2, _local1, x[i + 4], 7, -176418897);
_local1 = fnFF(_local1, a, _local3, _local2, x[i + 5], 12, 1200080426);
_local2 = fnFF(_local2, _local1, a, _local3, x[i + 6], 17, -1473231341);
_local3 = fnFF(_local3, _local2, _local1, a, x[i + 7], 22, -45705983);
a = fnFF(a, _local3, _local2, _local1, x[i + 8], 7, 1770035416);
_local1 = fnFF(_local1, a, _local3, _local2, x[i + 9], 12, -1958414417);
_local2 = fnFF(_local2, _local1, a, _local3, x[i + 10], 17, -42063);
_local3 = fnFF(_local3, _local2, _local1, a, x[i + 11], 22, -1990404162);
a = fnFF(a, _local3, _local2, _local1, x[i + 12], 7, 1804603682);
_local1 = fnFF(_local1, a, _local3, _local2, x[i + 13], 12, -40341101);
_local2 = fnFF(_local2, _local1, a, _local3, x[i + 14], 17, -1502002290);
_local3 = fnFF(_local3, _local2, _local1, a, x[i + 15], 22, 1236535329);
a = fnGG(a, _local3, _local2, _local1, x[i + 1], 5, -165796510);
_local1 = fnGG(_local1, a, _local3, _local2, x[i + 6], 9, -1069501632);
_local2 = fnGG(_local2, _local1, a, _local3, x[i + 11], 14, 643717713);
_local3 = fnGG(_local3, _local2, _local1, a, x[i + 0], 20, -373897302);
a = fnGG(a, _local3, _local2, _local1, x[i + 5], 5, -701558691);
_local1 = fnGG(_local1, a, _local3, _local2, x[i + 10], 9, 38016083);
_local2 = fnGG(_local2, _local1, a, _local3, x[i + 15], 14, -660478335);
_local3 = fnGG(_local3, _local2, _local1, a, x[i + 4], 20, -405537848);
a = fnGG(a, _local3, _local2, _local1, x[i + 9], 5, 568446438);
_local1 = fnGG(_local1, a, _local3, _local2, x[i + 14], 9, -1019803690);
_local2 = fnGG(_local2, _local1, a, _local3, x[i + 3], 14, -187363961);
_local3 = fnGG(_local3, _local2, _local1, a, x[i + 8], 20, 1163531501);
a = fnGG(a, _local3, _local2, _local1, x[i + 13], 5, -1444681467);
_local1 = fnGG(_local1, a, _local3, _local2, x[i + 2], 9, -51403784);
_local2 = fnGG(_local2, _local1, a, _local3, x[i + 7], 14, 1735328473);
_local3 = fnGG(_local3, _local2, _local1, a, x[i + 12], 20, -1926607734);
a = fnHH(a, _local3, _local2, _local1, x[i + 5], 4, -378558);
_local1 = fnHH(_local1, a, _local3, _local2, x[i + 8], 11, -2022574463);
_local2 = fnHH(_local2, _local1, a, _local3, x[i + 11], 16, 1839030562);
_local3 = fnHH(_local3, _local2, _local1, a, x[i + 14], 23, -35309556);
a = fnHH(a, _local3, _local2, _local1, x[i + 1], 4, -1530992060);
_local1 = fnHH(_local1, a, _local3, _local2, x[i + 4], 11, 1272893353);
_local2 = fnHH(_local2, _local1, a, _local3, x[i + 7], 16, -155497632);
_local3 = fnHH(_local3, _local2, _local1, a, x[i + 10], 23, -1094730640);
a = fnHH(a, _local3, _local2, _local1, x[i + 13], 4, 681279174);
_local1 = fnHH(_local1, a, _local3, _local2, x[i + 0], 11, -358537222);
_local2 = fnHH(_local2, _local1, a, _local3, x[i + 3], 16, -722521979);
_local3 = fnHH(_local3, _local2, _local1, a, x[i + 6], 23, 76029189);
a = fnHH(a, _local3, _local2, _local1, x[i + 9], 4, -640364487);
_local1 = fnHH(_local1, a, _local3, _local2, x[i + 12], 11, -421815835);
_local2 = fnHH(_local2, _local1, a, _local3, x[i + 15], 16, 530742520);
_local3 = fnHH(_local3, _local2, _local1, a, x[i + 2], 23, -995338651);
a = fnII(a, _local3, _local2, _local1, x[i + 0], 6, -198630844);
_local1 = fnII(_local1, a, _local3, _local2, x[i + 7], 10, 1126891415);
_local2 = fnII(_local2, _local1, a, _local3, x[i + 14], 15, -1416354905);
_local3 = fnII(_local3, _local2, _local1, a, x[i + 5], 21, -57434055);
a = fnII(a, _local3, _local2, _local1, x[i + 12], 6, 1700485571);
_local1 = fnII(_local1, a, _local3, _local2, x[i + 3], 10, -1894986606);
_local2 = fnII(_local2, _local1, a, _local3, x[i + 10], 15, -1051523);
_local3 = fnII(_local3, _local2, _local1, a, x[i + 1], 21, -2054922799);
a = fnII(a, _local3, _local2, _local1, x[i + 8], 6, 1873313359);
_local1 = fnII(_local1, a, _local3, _local2, x[i + 15], 10, -30611744);
_local2 = fnII(_local2, _local1, a, _local3, x[i + 6], 15, -1560198380);
_local3 = fnII(_local3, _local2, _local1, a, x[i + 13], 21, 1309151649);
a = fnII(a, _local3, _local2, _local1, x[i + 4], 6, -145523070);
_local1 = fnII(_local1, a, _local3, _local2, x[i + 11], 10, -1120210379);
_local2 = fnII(_local2, _local1, a, _local3, x[i + 2], 15, 718787259);
_local3 = fnII(_local3, _local2, _local1, a, x[i + 9], 21, -343485551);
a = fnMD5Add(a, olda);
_local3 = fnMD5Add(_local3, oldb);
_local2 = fnMD5Add(_local2, oldc);
_local1 = fnMD5Add(_local1, oldd);
i = i + 16;
}
return(Array(a, _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) {
var _local1 = b;
return(fnCMN((_local1 & c) | ((~_local1) & d), a, _local1, 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 _local2 = str;
var _local3 = Array();
var mask = 255;
var _local1 = 0;
while (_local1 < (_local2.length * 8)) {
_local3[_local1 >> 5] = _local3[_local1 >> 5] | ((_local2.charCodeAt(_local1 / 8) & mask) << (_local1 % 32));
_local1 = _local1 + 8;
}
return(_local3);
}
static function fnBinaryToHex(binarray) {
var _local2 = binarray;
var _local3 = "0123456789abcdef";
var str = "";
var _local1 = 0;
while (_local1 < (_local2.length * 4)) {
str = str + (_local3.charAt((_local2[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((_local2[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(str);
}
static function fnFlashEncrypt(pKey, pString) {
var _local3 = pKey;
var tResultString = "";
var tOdd;
var _local1;
if ((_local3.charAt(0).charCodeAt(0) % 2) != 0) {
tOdd = true;
_local1 = 0;
} else {
tOdd = false;
_local1 = _local3.length - 1;
}
var _local2 = 0;
while (_local2 < pString.length) {
var tOrd = _local3.charAt(_local1).charCodeAt(0);
tResultString = tResultString + String.fromCharCode(pString.charAt(_local2).charCodeAt(0) + tOrd);
if (tOdd) {
_local1++;
if (_local1 == _local3.length) {
_local1 = 0;
}
} else {
_local1--;
if (_local1 == -1) {
_local1 = _local3.length - 1;
}
}
_local2++;
}
return(escape(tResultString));
}
static function fnFlashDecrypt(pKey, pString) {
var _local3 = pKey;
pString = unescape(pString);
var tResultString = "";
var tOdd;
var _local1;
if ((_local3.charAt(0).charCodeAt(0) % 2) != 0) {
tOdd = true;
_local1 = 0;
} else {
tOdd = false;
_local1 = _local3.length - 1;
}
var _local2 = 0;
while (_local2 < pString.length) {
var tOrd = _local3.charAt(_local1).charCodeAt(0);
tResultString = tResultString + String.fromCharCode(pString.charAt(_local2).charCodeAt(0) - tOrd);
if (tOdd) {
_local1++;
if (_local1 == _local3.length) {
_local1 = 0;
}
} else {
_local1--;
if (_local1 == -1) {
_local1 = _local3.length - 1;
}
}
_local2++;
}
return(tResultString);
}
}