var texts = "привет,пока"; i = 1; setInterval(function () { ddd.text = texts.substr(0, i); ddd.text += " [длина текста"+i+"]"; i++; }, 1000);