Cool decompiling text effect - help!

Hi

I have the following code but it only works when published for flash 6 and I need it to work for flash 8.
Ive tried to tweak it but cant get it to work.
I think it would be best if I could make a function out of it - ie:
call the function like:

myTextbox.textEffect(“this is some decoding text”);

Any ideas? My actionscript is coming along but Im still learning.
Ive attached the FLA also…
Thanks in advance

myString = "this is some decoding text";
charDisplay = myString.length;
string1 = "";
for (n=0; n<charDisplay; n++) {
	string1 += String.fromCharCode(random(42)+48);
}

string2 = this.myString.substr(0, i);
this.randomText = string2+string1.substring(i, charDisplay);
i++;
if (i<=charDisplay) {
	gotoAndPlay(1);
} else {
	stop();
}

erm works fine here!

Hi Pascal S.

Try setting the publishing settings to flash 8 - then it doesnt work.
At least not for me.

:frowning:

Worked just fine for me too. What is it doing?

making some wierd text effect? definately not decompiling though… your title is misleading, goto dictionary.com and look up decompiling, btw in your code i can notice as of now you don’t set i to anything