# Typewritter effect on dynamic text field

**URL:** <https://forum.kirupa.com/t/typewritter-effect-on-dynamic-text-field/27035>\
**Category:** Uncategorized\
**Created:** [July 29, 2003, 4:26pm UTC](https://forum.kirupa.com/t/typewritter-effect-on-dynamic-text-field/27035 "2003-07-29T16:26:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![byis](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@byis](https://forum.kirupa.com/u/byis)\
**Post date:** [July 29, 2003, 4:26pm UTC](https://forum.kirupa.com/t/typewritter-effect-on-dynamic-text-field/27035/1 "2003-07-29T16:26:00Z")

</div>

[FLASH MX]

I am trying to get a ’ Typewritter effect ’ on a dynamic text field that imports txt from external txt file. Trying to decipher some code I found in an example that created typewritter effect but text was declared in strings and not reading from external txt file. So I am trying to adapt it some. The effect works but when it runs it only displays my text field instance name and not the actual text from the txt file. I have attached the file if anyone could give me any suggestions I would appreciate it.

Thanks!

---

<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:** [July 30, 2003, 2:26am UTC](https://forum.kirupa.com/t/typewritter-effect-on-dynamic-text-field/27035/2 "2003-07-30T02:26:49Z")

</div>

[AS]var loadText = new loadVars();  
loadText.load(“text.txt”);  
loadText.onLoad = function(OK) {  
if (OK) {  
content = this.news;  
} else {  
mytext.text = “Error”;  
}  
};  
this.onEnterFrame = function() {  
mytext.text = content.substr(0, type);  
type += 1;  
};

```auto

```

---

<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:** [July 30, 2003, 1:01pm UTC](https://forum.kirupa.com/t/typewritter-effect-on-dynamic-text-field/27035/3 "2003-07-30T13:01:02Z")

</div>

Thanks claudio. Worked great and you achieved the same effect using about half the code! 🙂

---

<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:** [July 30, 2003, 1:11pm UTC](https://forum.kirupa.com/t/typewritter-effect-on-dynamic-text-field/27035/4 "2003-07-30T13:11:25Z")

</div>

Welcome =)
