# Super simple text effect code

**URL:** <https://forum.kirupa.com/t/super-simple-text-effect-code/186733>\
**Category:** Uncategorized\
**Created:** [April 24, 2006, 7:37am UTC](https://forum.kirupa.com/t/super-simple-text-effect-code/186733 "2006-04-24T07:37:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zicemaster](https://avatars.discourse-cdn.com/v4/letter/z/b77776/32.png) [@zicemaster](https://forum.kirupa.com/u/zicemaster)\
**Post date:** [April 24, 2006, 7:37am UTC](https://forum.kirupa.com/t/super-simple-text-effect-code/186733/1 "2006-04-24T07:37:50Z")

</div>

I searched around for ages for some very simple text effect code. I could not find anything simple… Six years ago was the last time I was actually making text effects.

Everything in all the example fla’s and tutorials was rediculously complex for a text effect!

So I made this very simple one myself…

```php

The clip order> Text Effect MC.textHolder < All tweening and animations done in textHolder-MC, upon the text field with the variable 'theChar'.

//First keyframe
fxText = "Text effect text goes here!";
i = 0;

//Second keyframe, _x:i*7... '7' is the spacing! 'theChar' is the text field with that variable.

if (i<fxText.length) {
    i++;
textHolder.duplicateMovieClip("textHolder"+i, i+100, {_y:0, _x:i*7, theChar:fxText.charAt(i-1)});
} else {
    gotoAndStop(3);
}

//Last keyframe is set farther than 3, and changes based upon what speed you want.
gotoAndPlay(2);

```

Can it be done any simpler? Thats my question!

I even added a custom kerning array, but I trashed that… I have no way to extract the kerning information from the font. Anyone know how?
