# How to use the typewriter effect with an external text file?

**URL:** <https://forum.kirupa.com/t/how-to-use-the-typewriter-effect-with-an-external-text-file/65517>\
**Category:** flash\
**Created:** [September 27, 2004, 10:20am UTC](https://forum.kirupa.com/t/how-to-use-the-typewriter-effect-with-an-external-text-file/65517 "2004-09-27T10:20:34Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![sheena](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@sheena](https://forum.kirupa.com/u/sheena)\
**Post date:** [September 27, 2004, 10:20am UTC](https://forum.kirupa.com/t/how-to-use-the-typewriter-effect-with-an-external-text-file/65517/1 "2004-09-27T10:20:34Z")

</div>

I would like to use the typewriter effect (Daniel Skovli, Tutorial 36) using an external text file…is that possible? and can I set the typewriter to run as soon as it’s loaded without having to use a button? I’m an AS code novice so please assume I know nothing! well maybe a bit 🙂

---

<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:** [September 27, 2004, 11:08am UTC](https://forum.kirupa.com/t/how-to-use-the-typewriter-effect-with-an-external-text-file/65517/2 "2004-09-27T11:08:33Z")

</div>

Where’s the code for the effect you’re using?

---

<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:** [September 27, 2004, 11:30am UTC](https://forum.kirupa.com/t/how-to-use-the-typewriter-effect-with-an-external-text-file/65517/3 "2004-09-27T11:30:24Z")

</div>

Hi there…I’ve copied the text from the first frame of the script…I’ve also attached the .fla …thank you 🙂

// set our counting-variable to starting point  
q = 1;  
// declare the text that we are going to use.  
text = “This is an example of the actionscript typewriter. It takes less space (kb)  
than a masked animation, and if you like - you can load text from  
txtfiles and have them typed out here. The speed depends on your  
movies framerate. Just remember that there is a limit for how much text  
a single variable can hold. Enjoy :o)”;  
//loadVariablesNum(“jobs.txt”, 0);  
// stop the movie. wait for other commands  
stop();

---

<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:** [September 27, 2004, 11:32am UTC](https://forum.kirupa.com/t/how-to-use-the-typewriter-effect-with-an-external-text-file/65517/4 "2004-09-27T11:32:55Z")

</div>

I couldnt open your fla.

---

<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:** [September 27, 2004, 11:36am UTC](https://forum.kirupa.com/t/how-to-use-the-typewriter-effect-with-an-external-text-file/65517/5 "2004-09-27T11:36:12Z")

</div>

…I’ve zipped it this time, hope that 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:** [September 27, 2004, 11:40am UTC](https://forum.kirupa.com/t/how-to-use-the-typewriter-effect-with-an-external-text-file/65517/6 "2004-09-27T11:40:38Z")

</div>

…just in case that doesn’t work I’ve attched some screen grabs …

---

<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:** [September 27, 2004, 12:40pm UTC](https://forum.kirupa.com/t/how-to-use-the-typewriter-effect-with-an-external-text-file/65517/7 "2004-09-27T12:40:29Z")

</div>

Here it is.

---

<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:** [September 27, 2004, 2:05pm UTC](https://forum.kirupa.com/t/how-to-use-the-typewriter-effect-with-an-external-text-file/65517/8 "2004-09-27T14:05:18Z")

</div>

love it !!

One question is there a way to make it to read “åäö”.? i´m from sweden :} . The only way i´w manage to reade åäö is to set the publishing to flash player 5 tut then the text inporting script dos not work??

/M

---

<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:** [September 27, 2004, 2:33pm UTC](https://forum.kirupa.com/t/how-to-use-the-typewriter-effect-with-an-external-text-file/65517/9 "2004-09-27T14:33:19Z")

</div>

Open your file in notepad or any other ascii editor, and save it as unicode.

---

<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:** [September 27, 2004, 3:00pm UTC](https://forum.kirupa.com/t/how-to-use-the-typewriter-effect-with-an-external-text-file/65517/10 "2004-09-27T15:00:38Z")

</div>

Thanke you sooooo much.I´w been trying to figur that ut for a long time.Love you ! by the way have you any idea how to make a scroll like they have on this site [http://www.ozarkhenry.com/](http://www.ozarkhenry.com/) If yo lock at ther news or calender .It´s so nice.

Thanke!

/m

---

<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:** [September 27, 2004, 3:58pm UTC](https://forum.kirupa.com/t/how-to-use-the-typewriter-effect-with-an-external-text-file/65517/11 "2004-09-27T15:58:08Z")

</div>

one more thing do you know how to get external text in to this!

Thanks!

/M

---

<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:** [September 27, 2004, 4:01pm UTC](https://forum.kirupa.com/t/how-to-use-the-typewriter-effect-with-an-external-text-file/65517/12 "2004-09-27T16:01:26Z")

</div>

welcome  
And for that effect, you have to know how to have one movieclip affecting the \_y position of all the others.

---

<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:** [September 28, 2004, 1:25pm UTC](https://forum.kirupa.com/t/how-to-use-the-typewriter-effect-with-an-external-text-file/65517/13 "2004-09-28T13:25:30Z")

</div>

…got it sorted in the end with help from the author, thanks very much for your help 🙂

---

<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:** [September 28, 2004, 6:14pm UTC](https://forum.kirupa.com/t/how-to-use-the-typewriter-effect-with-an-external-text-file/65517/14 "2004-09-28T18:14:47Z")

</div>

just visited that site:[http://www.ozarkhenry.com](http://www.ozarkhenry.com) …fantastic! how do they get the images to float around the screen like that and with that slight bounce effect as they settle into place…seeing stuff like that makes you (me) feel a bit hopeless ☹

The scrolling code is great! clever b’s
