# Dynamic typewriter - help

**URL:** <https://forum.kirupa.com/t/dynamic-typewriter-help/11816>\
**Category:** Uncategorized\
**Created:** [January 22, 2003, 7:20pm UTC](https://forum.kirupa.com/t/dynamic-typewriter-help/11816 "2003-01-22T19:20:52Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcs](https://avatars.discourse-cdn.com/v4/letter/j/439d5e/32.png) [@jcs](https://forum.kirupa.com/u/jcs)\
**Post date:** [January 22, 2003, 7:20pm UTC](https://forum.kirupa.com/t/dynamic-typewriter-help/11816/1 "2003-01-22T19:20:52Z")

</div>

A while back I downloaded a tute on an AS typewriter effect that worked to great success writing text assigned to a variable in the movie.

I was interested in going a step further and making this feature “type” from a .txt file so I could change the content in the .txt file and dynamically change the text in my swf.

No programmer myself, I did figure out how to get the AS to read from the .txt file =) , but instead of white spaces, the effect types %20 - the HTML substitute for white space. It also prints part of the function in the code (which is probably due to my juryrigged coding). Have only tested locally.

Please take a look at the attached (.fla & .txt files). Any help to correcting my code is greatly appreciated!

JCS

---

<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:** [January 23, 2003, 6:50pm UTC](https://forum.kirupa.com/t/dynamic-typewriter-help/11816/2 "2003-01-23T18:50:44Z")

</div>

have experimented using htmlText properties to no avail. Can anyone help out with this one?

cheers,  
JC

---

<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:** [January 23, 2003, 8:06pm UTC](https://forum.kirupa.com/t/dynamic-typewriter-help/11816/3 "2003-01-23T20:06:27Z")

</div>

hey … i took a look at your file

i change a few things [size=1][not saying the whole thing][/size]  
but it works

---

<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:** [January 23, 2003, 8:25pm UTC](https://forum.kirupa.com/t/dynamic-typewriter-help/11816/4 "2003-01-23T20:25:19Z")

</div>

thanks - looks great! A touch more elegant than where I was. 😉

What would be the best way to adjust the speed of the “typing”?

---

<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:** [January 23, 2003, 8:38pm UTC](https://forum.kirupa.com/t/dynamic-typewriter-help/11816/5 "2003-01-23T20:38:21Z")

</div>

guess you could make the typing as a function and then use setInterval()

i haven’t use it that much so i’m not really sure how to do it …  
i’ll give it a try

at this moment i’d just adjust the frame rate

---

<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:** [January 23, 2003, 8:50pm UTC](https://forum.kirupa.com/t/dynamic-typewriter-help/11816/6 "2003-01-23T20:50:37Z")

</div>

frame rate worked well. Let me know if you discover anything. I need to learn more AS '4 I can call functions on me own, but I’ll work on that.:crazy:

thanks again Kax!

---

<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:** [January 23, 2003, 9:00pm UTC](https://forum.kirupa.com/t/dynamic-typewriter-help/11816/7 "2003-01-23T21:00:53Z")

</div>

no problem =)

i’ll let you know …

---

<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:** [June 13, 2003, 8:32am UTC](https://forum.kirupa.com/t/dynamic-typewriter-help/11816/8 "2003-06-13T08:32:03Z")

</div>

Hello, I have a question regarding the second dynamic typewriter file.

How does Flash determine which textfield it’s filling? The textfield is named screen but it’s not in the code. How can it be altered so that I could tell Flash which textfield to use?

Thanks in advance,

R@b :tb:

---

<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:** [June 13, 2003, 4:21pm UTC](https://forum.kirupa.com/t/dynamic-typewriter-help/11816/9 "2003-06-13T16:21:43Z")

</div>

screen is the variable asigned to the textfield, not its instance name. the instance name is **scroller**. 😉

---

<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:** [June 16, 2003, 8:49am UTC](https://forum.kirupa.com/t/dynamic-typewriter-help/11816/10 "2003-06-16T08:49:26Z")

</div>

Thanks,

I guess my eyes where still a little bit :sleep:  
I’ll get an extra cup of coffee :nerd:

---

<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:** [June 16, 2003, 8:54am UTC](https://forum.kirupa.com/t/dynamic-typewriter-help/11816/11 "2003-06-16T08:54:12Z")

</div>

😛

no problem. 😉
