# AS Help with the speed

**URL:** <https://forum.kirupa.com/t/as-help-with-the-speed/34056>\
**Category:** flash\
**Created:** [October 27, 2003, 5:23pm UTC](https://forum.kirupa.com/t/as-help-with-the-speed/34056 "2003-10-27T17:23:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![robbie\_star](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@robbie\_star](https://forum.kirupa.com/u/robbie_star)\
**Post date:** [October 27, 2003, 5:23pm UTC](https://forum.kirupa.com/t/as-help-with-the-speed/34056/1 "2003-10-27T17:23:24Z")

</div>

Hi guys

I need some with this AS code it is for a typewriter effect. it works well but where in the code can i make it type faster (speed).

Thanks:geek:

this.texto = “hola, que tal hermosas?”;  
this.letraIndex = 0;  
this.letras\_array = [];  
this.typeID = setInterval(this, “escribe”, 100);  
this.escribe = function(){  
var letraAEscribir = this.texto.charAt(this.letraIndex);  
//this.letras\_array.push(letraAEscribir);  
//var textoAEscribir = myString.concat(this.letras\_array);  
this.textBox.text += letraAEscribir;  
this.letraIndex++;  
}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 27, 2003, 5:31pm UTC](https://forum.kirupa.com/t/as-help-with-the-speed/34056/2 "2003-10-27T17:31:02Z")

</div>

change the 100 in this line

this.typeID = setInterval(this, “escribe”, 100);

the smaller, the faster

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 27, 2003, 7:30pm UTC](https://forum.kirupa.com/t/as-help-with-the-speed/34056/3 "2003-10-27T19:30:39Z")

</div>

Thanks senocular for your help
