# Text animation

**URL:** <https://forum.kirupa.com/t/text-animation/175347>\
**Category:** Uncategorized\
**Created:** [January 13, 2006, 3:55pm UTC](https://forum.kirupa.com/t/text-animation/175347 "2006-01-13T15:55:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NinoScript](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ninoscript/32/1484_2.png) [@NinoScript](https://forum.kirupa.com/u/NinoScript)\
**Post date:** [January 13, 2006, 3:55pm UTC](https://forum.kirupa.com/t/text-animation/175347/1 "2006-01-13T15:55:00Z")

</div>

maybe this is too simple, but i find it pretty 😛  
i wasted like 3 whole minutes of my life on it :azn:

```auto

var texto_str:String = "The quick brown fox jumped over the lazy dog.";
//1
var courier:TextFormat = new TextFormat();
//2
courier.font = "courier";
//3
var i = -1;
//4
onEnterFrame = function () {
	if (i++<texto_str.length) {
//5
		var mc_mc:MovieClip = _root.createEmptyMovieClip("movieClip_n"+(i), _root.getNextHighestDepth());
//6
		mc_mc._x = 10*(1+i);
//7
		mc_mc._y = -10;
//8
		mc_mc._alpha = 0;
//9
		mc_mc._xscale = 0;
//10
		var texto_txt:TextField = mc_mc.createTextField("textfield", 1, 0, 0, 14, 16);
//11
		texto_txt.setNewTextFormat(courier);
//12
		texto_txt.text = texto_str.charAt(i);
//13
		mc_mc.onEnterFrame = function() {
			this._y = Math.min(1, this._y+1);
//14
			this._alpha = Math.min(100, this._alpha+5);
//15
			this._xscale = Math.min(100, this._xscale+10);
//16
		};
	}
};

```
