I am creating a Converter, it converts all characters to their ASCII value and then converts the ASCII value into HEXIDECIMAL.
The overall file is beta at this point and it lags up when the amount of words excede aprx. 20.
If anyone can tell me how to increase the speed of this SWF, it would be appreciated.
The basic code for a Word to Hex conversion is such:
this.word.addListener(this);
val = [];
function onChanged(field) {
for (x=-1; x<word.text.length; x++) {
if (x == -1) {
b_16.text = “”;
val = [];
} else {
txt = word.text.charCodeAt(x);
if (txt == “13”) {
val[x] = “”;
} else {
val[x] = txt.toString(16).toUpperCase();
}
for (y=-1; y<val.length; y++) {
b_16.text += val[y];
}
}
}
}
Thanks