Combined Code
frame 1 {
function dtranslate(sInput) {
sInput = searchAndReplace(sInput, 'Quack ', 'A');
sInput = searchAndReplace(sInput, 'Quackquack ', 'B');
sInput = searchAndReplace(sInput, 'Quackquackquack ', 'C');
sInput = searchAndReplace(sInput, 'Quak ', 'D');
sInput = searchAndReplace(sInput, 'Quakquak ', 'E');
sInput = searchAndReplace(sInput, 'Quakquakquak ', 'F');
sInput = searchAndReplace(sInput, 'Quacks ', 'G');
sInput = searchAndReplace(sInput, 'Quacksquacks ', 'H');
sInput = searchAndReplace(sInput, 'Quacke ', 'I');
sInput = searchAndReplace(sInput, 'Quackequacke ', 'J');
sInput = searchAndReplace(sInput, 'Quackequackequacke ', 'K');
sInput = searchAndReplace(sInput, 'Honk ', 'L');
sInput = searchAndReplace(sInput, 'Honkhonk ', 'M');
sInput = searchAndReplace(sInput, 'Honkhonkhonk ', 'N');
sInput = searchAndReplace(sInput, 'Hoonk ', 'O');
sInput = searchAndReplace(sInput, 'Hoonkhoonk ', 'P');
sInput = searchAndReplace(sInput, 'Hoonkhoonkhoonk ', 'Q');
sInput = searchAndReplace(sInput, 'Quackeke ', 'R');
sInput = searchAndReplace(sInput, 'Quackekequackeke ', 'S');
sInput = searchAndReplace(sInput, 'Quackekekequackekeke ', 'T');
sInput = searchAndReplace(sInput, 'Quuack ', 'U');
sInput = searchAndReplace(sInput, 'Quuackquuack ', 'V');
sInput = searchAndReplace(sInput, 'Quaack ', 'W');
sInput = searchAndReplace(sInput, 'Quaackquaack ', 'X');
sInput = searchAndReplace(sInput, 'Quack! ', 'Y');
sInput = searchAndReplace(sInput, 'Oink? ', 'Z');
sInput = searchAndReplace(sInput, ' quack ', 'a');
sInput = searchAndReplace(sInput, ' quackquack ', 'b');
sInput = searchAndReplace(sInput, ' quackquackquack ', 'c');
sInput = searchAndReplace(sInput, ' quak ', 'd');
sInput = searchAndReplace(sInput, ' quakquak ', 'e');
sInput = searchAndReplace(sInput, ' quakquakquak ', 'f');
sInput = searchAndReplace(sInput, ' quacks ', 'g');
sInput = searchAndReplace(sInput, ' quacksquacks ', 'h');
sInput = searchAndReplace(sInput, ' quacke ', 'i');
sInput = searchAndReplace(sInput, ' quackequacke ', 'j');
sInput = searchAndReplace(sInput, ' quackequackequacke ', 'k');
sInput = searchAndReplace(sInput, ' honk ', 'l');
sInput = searchAndReplace(sInput, ' honkhonk ', 'm');
sInput = searchAndReplace(sInput, ' honkhonkhonk ', 'n');
sInput = searchAndReplace(sInput, ' hoonk ', 'o');
sInput = searchAndReplace(sInput, ' hoonkhoonk ', 'p');
sInput = searchAndReplace(sInput, ' hoonkhoonkhoonk ', 'q');
sInput = searchAndReplace(sInput, ' quackeke ', 'r');
sInput = searchAndReplace(sInput, ' quackekequackeke ', 's');
sInput = searchAndReplace(sInput, ' quackekekequackekeke ', 't');
sInput = searchAndReplace(sInput, ' quuack ', 'u');
sInput = searchAndReplace(sInput, ' quuackquuack ', 'v');
sInput = searchAndReplace(sInput, ' quaack ', 'w');
sInput = searchAndReplace(sInput, ' quaackquaack ', 'x');
sInput = searchAndReplace(sInput, ' quack! ', 'y');
sInput = searchAndReplace(sInput, ' oink? ', 'z');
sInput = searchAndReplace(sInput, ' ', ' ');
sInput = searchAndReplace(sInput, '.', '.');
sInput = searchAndReplace(sInput, '!', '!');
sInput = searchAndReplace(sInput, '?', '?');
sInput = searchAndReplace(sInput, ':', ':');
sInput = searchAndReplace(sInput, ';', ';');
sInput = searchAndReplace(sInput, '/', '/');
sInput = searchAndReplace(sInput, ',', ',');
sInput = searchAndReplace(sInput, '(', '(');
sInput = searchAndReplace(sInput, ')', ')');
sInput = searchAndReplace(sInput, '\'', '\'');
return sInput;
}
function searchAndReplace(a, b, c) {
tmp = a.split(b);
a = tmp.join(c);
return a;
}
function etranslate(eInput) {
eInput = EsearchAndReplace(eInput);
return eInput;
}
function EsearchAndReplace(a) {
var v2 = new Array();
var v5 = a.length;
var v3 = 0;
while (v3 < v5) {
v2[v3] = a.charAt(v3);
++v3;
}
var v6 = v2.length;
var v1 = 0;
while (v1 < v6) {
if (v2[v1] == 'A') {
v2[v1] = 'Quack ';
} else {
if (v2[v1] == 'B') {
v2[v1] = 'Quackquack ';
} else {
if (v2[v1] == 'C') {
v2[v1] = 'Quackquackquack ';
} else {
if (v2[v1] == 'D') {
v2[v1] = 'Quak ';
} else {
if (v2[v1] == 'E') {
v2[v1] = 'Quakquak ';
} else {
if (v2[v1] == 'F') {
v2[v1] = 'Quakquakquak ';
} else {
if (v2[v1] == 'G') {
v2[v1] = 'Quacks ';
} else {
if (v2[v1] == 'H') {
v2[v1] = 'Quacksquacks ';
} else {
if (v2[v1] == 'I') {
v2[v1] = 'Quacke ';
} else {
if (v2[v1] == 'J') {
v2[v1] = 'Quackequacke ';
} else {
if (v2[v1] == 'K') {
v2[v1] = 'Quackequackequacke ';
} else {
if (v2[v1] == 'L') {
v2[v1] = 'Honk ';
} else {
if (v2[v1] == 'M') {
v2[v1] = 'Honkhonk ';
} else {
if (v2[v1] == 'N') {
v2[v1] = 'Honkhonkhonk ';
} else {
if (v2[v1] == 'O') {
v2[v1] = 'Hoonk ';
} else {
if (v2[v1] == 'P') {
v2[v1] = 'Hoonkhoonk ';
} else {
if (v2[v1] == 'Q') {
v2[v1] = 'Hoonkhoonkhoonk ';
} else {
if (v2[v1] == 'R') {
v2[v1] = 'Quackeke ';
} else {
if (v2[v1] == 'S') {
v2[v1] = 'Quackekequackeke ';
} else {
if (v2[v1] == 'T') {
v2[v1] = 'Quackekekequackekeke ';
} else {
if (v2[v1] == 'U') {
v2[v1] = 'Quuack ';
} else {
if (v2[v1] == 'V') {
v2[v1] = 'Quuackquuack ';
} else {
if (v2[v1] == 'W') {
v2[v1] = 'Quaack ';
} else {
if (v2[v1] == 'X') {
v2[v1] = 'Quaackquaack ';
} else {
if (v2[v1] == 'Y') {
v2[v1] = 'Quack! ';
} else {
if (v2[v1] == 'Z') {
v2[v1] = 'Oink? ';
} else {
if (v2[v1] == 'a') {
v2[v1] = ' quack ';
} else {
if (v2[v1] == 'b') {
v2[v1] = ' quackquack ';
} else {
if (v2[v1] == 'c') {
v2[v1] = ' quackquackquack ';
} else {
if (v2[v1] == 'd') {
v2[v1] = ' quak ';
} else {
if (v2[v1] == 'e') {
v2[v1] = ' quakquak ';
} else {
if (v2[v1] == 'f') {
v2[v1] = ' quakquakquak ';
} else {
if (v2[v1] == 'g') {
v2[v1] = ' quacks ';
} else {
if (v2[v1] == 'h') {
v2[v1] = ' quacksquacks ';
} else {
if (v2[v1] == 'i') {
v2[v1] = ' quacke ';
} else {
if (v2[v1] == 'j') {
v2[v1] = ' quackequacke ';
} else {
if (v2[v1] == 'k') {
v2[v1] = ' quackequackequacke ';
} else {
if (v2[v1] == 'l') {
v2[v1] = ' honk ';
} else {
if (v2[v1] == 'm') {
v2[v1] = ' honkhonk ';
} else {
if (v2[v1] == 'n') {
v2[v1] = ' honkhonkhonk ';
} else {
if (v2[v1] == 'o') {
v2[v1] = ' hoonk ';
} else {
if (v2[v1] == 'p') {
v2[v1] = ' hoonkhoonk ';
} else {
if (v2[v1] == 'q') {
v2[v1] = ' hoonkhoonkhoonk ';
} else {
if (v2[v1] == 'r') {
v2[v1] = ' quackeke ';
} else {
if (v2[v1] == 's') {
v2[v1] = ' quackekequackeke ';
} else {
if (v2[v1] == 't') {
v2[v1] = ' quackekekequackekeke ';
} else {
if (v2[v1] == 'u') {
v2[v1] = ' quuack ';
} else {
if (v2[v1] == 'v') {
v2[v1] = ' quuackquuack ';
} else {
if (v2[v1] == 'w') {
v2[v1] = ' quaack ';
} else {
if (v2[v1] == 'x') {
v2[v1] = ' quaackquaack ';
} else {
if (v2[v1] == 'y') {
v2[v1] = ' quack! ';
} else {
if (v2[v1] == 'z') {
v2[v1] = ' oink? ';
} else {
if (v2[v1] == ' ') {
v2[v1] = ' ';
} else {
if (v2[v1] == '.') {
v2[v1] = '.';
} else {
if (v2[v1] == '!') {
v2[v1] = '!';
} else {
if (v2[v1] == '?') {
v2[v1] = '?';
} else {
if (v2[v1] == ':') {
v2[v1] = ':';
} else {
if (v2[v1] == ';') {
v2[v1] = ';';
} else {
if (v2[v1] == '/') {
v2[v1] = '/';
} else {
if (v2[v1] == ',') {
v2[v1] = ',';
} else {
if (v2[v1] == '(') {
v2[v1] = '(';
} else {
if (v2[v1] == ')') {
v2[v1] = ')';
} else {
if (v2[v1] == '\'') {
v2[v1] = '\'';
} else {
v2[v1] = a[v1];
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
++v1;
}
var v7 = v2.join('');
a = v7;
return a;
}
dTranslate.onPress = function () {
var v1 = tIn.text;
v1 = dtranslate(v1);
tOut.text = v1;
};
eTranslate.onPress = function () {
var v1 = tIn.text;
v1 = etranslate(v1);
tOut.text = v1;
};
}
// unknown tag 88 length 63
// unknown tag 88 length 68