# Cool decompiling text effect - help!

**URL:** https://forum.kirupa.com/t/cool-decompiling-text-effect-help/183484
**Category:** Uncategorized
**Created:** [March 27, 2006, 2:05pm UTC](https://forum.kirupa.com/t/cool-decompiling-text-effect-help/183484 "2006-03-27T14:05:26Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jimmy\_jazz](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jimmy\_jazz](https://forum.kirupa.com/u/jimmy_jazz)
#### Post date: [March 27, 2006, 2:05pm UTC](https://forum.kirupa.com/t/cool-decompiling-text-effect-help/183484/1 "2006-03-27T14:05:26Z")

</div>

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

```auto
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();
}

```

---

<div class="post-metadata">

### Author: ![Pascal\_S](https://avatars.discourse-cdn.com/v4/letter/p/f6c823/32.png) [@Pascal\_S](https://forum.kirupa.com/u/Pascal_S)
#### Post date: [March 27, 2006, 3:02pm UTC](https://forum.kirupa.com/t/cool-decompiling-text-effect-help/183484/2 "2006-03-27T15:02:36Z")

</div>

erm works fine here!

---

<div class="post-metadata">

### Author: ![jimmy\_jazz](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jimmy\_jazz](https://forum.kirupa.com/u/jimmy_jazz)
#### Post date: [March 27, 2006, 3:06pm UTC](https://forum.kirupa.com/t/cool-decompiling-text-effect-help/183484/3 "2006-03-27T15:06:30Z")

</div>

Hi Pascal S.

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

☹

---

<div class="post-metadata">

### Author: ![Thinker2501](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@Thinker2501](https://forum.kirupa.com/u/Thinker2501)
#### Post date: [March 28, 2006, 7:35pm UTC](https://forum.kirupa.com/t/cool-decompiling-text-effect-help/183484/4 "2006-03-28T19:35:56Z")

</div>

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

---

<div class="post-metadata">

### Author: ![bombsledder](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@bombsledder](https://forum.kirupa.com/u/bombsledder)
#### Post date: [March 28, 2006, 9:17pm UTC](https://forum.kirupa.com/t/cool-decompiling-text-effect-help/183484/5 "2006-03-28T21:17:36Z")

</div>

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