[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (3.52 KiB) ●
function decodeB64(strArg) {
strBase64Table = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
strRaw = "";
iSrc = 0;
i = 0;
while (i < strArg.length) {
iData = strBase64Table.indexOf(strArg.charAt(i));
if ((iData != -1) && (iData < 64)) {
iStep = iSrc % 4;
if (iStep == 0) {
bStock = (iData & 63) << 2;
}
if (iStep == 1) {
iTemp = bStock | ((iData & 48) >> 4);
strRaw = strRaw + (((iTemp < 16) ? "%0" : "%") + iTemp.toString(16));
bStock = (iData & 15) << 4;
}
if (iStep == 2) {
iTemp = bStock | ((iData & 60) >> 2);
strRaw = strRaw + (((iTemp < 16) ? "%0" : "%") + iTemp.toString(16));
bStock = (iData & 3) << 6;
}
if (iStep == 3) {
iTemp = bStock | (iData & 63);
strRaw = strRaw + (((iTemp < 16) ? "%0" : "%") + iTemp.toString(16));
}
iSrc++;
}
i++;
}
return(unescape(strRaw));
}
function encodeB64(strArg) {
strBase64Table = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
strB64 = "";
strArg = escape(strArg);
iSrc = 0;
while (0 < strArg.length) {
if (strArg.charAt(0) == "%") {
iData = parseInt("0x" + strArg.substr(1, 2));
strArg = strArg.substr(3);
} else {
iData = strArg.charCodeAt(0);
strArg = strArg.substr(1);
}
iStep = iSrc % 3;
if (iStep == 0) {
strB64 = strB64 + strBase64Table.charAt(iData >> 2);
iStock = (iData & 3) << 4;
}
if (iStep == 1) {
strB64 = strB64 + strBase64Table.charAt(iStock | (iData >> 4));
iStock = (iData & 15) << 2;
}
if (iStep == 2) {
strB64 = strB64 + strBase64Table.charAt(iStock | (iData >> 6));
strB64 = strB64 + strBase64Table.charAt(iData & 63);
iStock = 0;
}
iSrc++;
}
if ((iSrc % 3) != 0) {
strB64 = strB64 + strBase64Table.charAt(iStock);
strB64 = strB64 + (((iSrc % 3) == 2) ? "=" : "==");
}
return(strB64);
}
strVersion = getVersion().split(" ")[1].split(",")[0];
isFlash5 = parseInt(strVersion) >= 5;
strURL = _url;
if (strURL.indexOf("?", 0) != -1) {
strURL = strURL.split("?")[0];
}
strB64 = b64;
if (isFlash5) {
bCheck = (typeof(phrase1) != "undefined") && (phrase1.length != 0);
bCheck = bCheck | ((typeof(phrase2) != "undefined") && (phrase2.length != 0));
if (bCheck) {
strQuery = (strURL + "?b64=") + escape((encodeB64(phrase1) + newline) + encodeB64(phrase2));
getURL (strQuery, "_self");
stop();
} else if ((typeof(strB64) != "undefined") && (strB64 != "")) {
phraseArray = strB64.split(newline);
phrase1 = decodeB64(phraseArray[0]);
phrase2 = decodeB64(phraseArray[1]);
}
}
strPhrase1 = phrase1;
strPhrase2 = phrase2;
if (strPhrase1.indexOf("\r\n", 0) >= 0) {
strPhrase1 = strPhrase1.split(newline).join("");
}
if ((strPhrase1.indexOf("\r", 0) == -1) && (strPhrase1.indexOf(newline, 0) == -1)) {
strPhrase1 = newline + strPhrase1;
}
phrase1 = strPhrase1;
if (isFlash5 == true) {
if ((typeof(strPhrase1) != "undefined") && (strPhrase1 != "")) {
iForU = strPhrase1.IndexOf(">>", 0);
strForU = "";
if (iForU != -1) {
strSubForU = strPhrase1.substr(iForU);
strChar = strSubForU.substr(0, 1);
while ((strChar ne "") && ("0123456789->".IndexOf(strChar, 0) != -1)) {
strForU = strForU + strChar;
strChar = strSubForU.substr(strForU.length, 1);
}
}
strForYou = strForU;
} else {
strForYou = ">>1";
}
}
Frame 3 (66 B)
if (_framesloaded < _totalframes) {
gotoAndPlay(PRELOAD);
}
Frame 54 (216 B)
if (isFlash5 == true) {
setProperty("flash4Message", _visible , "0");
if ((typeof(strPhrase1) != "undefined") && (strPhrase1 != "")) {
} else {
setProperty("defaultMessage1", _alpha , "100");
}
}
Frame 183 (155 B)
if (isFlash5 == true) {
if ((typeof(strPhrase2) != "undefined") && (strPhrase2 != "")) {
setProperty("defaultMessage2", _alpha , "0");
}
}
Frame 287 (8 B)
stop();
Frame 288 (17 B)
gotoAndPlay (4);