# Typewriter, invicible characters?

**URL:** <https://forum.kirupa.com/t/typewriter-invicible-characters/224282>\
**Category:** flash\
**Created:** [April 30, 2007, 9:08pm UTC](https://forum.kirupa.com/t/typewriter-invicible-characters/224282 "2007-04-30T21:08:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fr\_ode](https://avatars.discourse-cdn.com/v4/letter/f/9d8465/32.png) [@fr\_ode](https://forum.kirupa.com/u/fr_ode)\
**Post date:** [April 30, 2007, 9:08pm UTC](https://forum.kirupa.com/t/typewriter-invicible-characters/224282/1 "2007-04-30T21:08:25Z")

</div>

Hi! Any ideas on making this function skip characters that aren’t visible? It still needs to write them, but without the time delay.

```auto
TextField.prototype.typeWriter = function(str, ms) {
    var me = this;
    var i = 0;
    var itv = setInterval(function () {
        me.text = str.substring(0, i);
        i++;        
        if (i>str.length) {
            clearInterval(itv);
        }
        updateAfterEvent();
    }, ms);
};

```
