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…
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?