# Loading tekst into flash from .txt file

**URL:** <https://forum.kirupa.com/t/loading-tekst-into-flash-from-txt-file/19666>\
**Category:** Uncategorized\
**Created:** [April 30, 2003, 11:31am UTC](https://forum.kirupa.com/t/loading-tekst-into-flash-from-txt-file/19666 "2003-04-30T11:31:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Black\_Lightning](https://avatars.discourse-cdn.com/v4/letter/b/f475e1/32.png) [@Black\_Lightning](https://forum.kirupa.com/u/Black_Lightning)\
**Post date:** [April 30, 2003, 11:31am UTC](https://forum.kirupa.com/t/loading-tekst-into-flash-from-txt-file/19666/1 "2003-04-30T11:31:23Z")

</div>

hi ppl i’m new here. Got a little question.

I’m having trouble with loading texts from a txt file outside flash. I done this a lot and it works out when i just load it into a textbox to which i’ve added a scrollbar.

Few days ago i tried to make a scrolling movieclip. i thought it would be easier for layout because i needed textboxes and pics on the same scrolling page… well in theorie it would have been nice :-\ . I can’t seem to load the textfile(s) when i put em on there.

Is there anyone that could give me some pointers on this?

thnx in advance

Black Lightning

---

<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:** [April 30, 2003, 2:37pm UTC](https://forum.kirupa.com/t/loading-tekst-into-flash-from-txt-file/19666/2 "2003-04-30T14:37:00Z")

</div>

You need to be more specific or post your F5 .fla file.  
Search has a lot about loading from .txt files

---

<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:** [April 30, 2003, 3:37pm UTC](https://forum.kirupa.com/t/loading-tekst-into-flash-from-txt-file/19666/3 "2003-04-30T15:37:46Z")

</div>

i’m gonna try to explain but it probly won’t be clear (i’m not that good at explaining) so i’ll post the fla tomorrow.

I know there are tutorials around bout loading the content of .txt files into a dynamic textbox. but most (if not all) of these tutorials make you load the content into a variable which is then read into the textbox. You can add a scrollbar to this to scroll through big texts. And make a movie clip out of it for easy use. I’ve done this succesfully so no problem there.

What i’m doing now:

Because of layout issues i gotta have pics and text in one scrollable area. So i made a movieclip with 2 textboxes and a pic on it. i added a scrollbar to make the clip move between two \_y-values. and put a mask-layer over it so it looks like a real scrollbox. All of this is put into a movieclip for easy (re-)use. So far so good. but when i try to load the content from my txt files in here it won’t work. Probly doing something wrong because it’s a movieclip in a movie clip i think.

And there are no tutorials to be found (i’m looking at all tutorial sites/ flash forums i can find, but so far no luck… 6 hours of search today only --\> :crazy: )

---

<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:** [April 30, 2003, 5:11pm UTC](https://forum.kirupa.com/t/loading-tekst-into-flash-from-txt-file/19666/4 "2003-04-30T17:11:09Z")

</div>

make sure that the paths are correct.

also, if you are using a mask you have to make sure that you have embedded the font. in the properties window click the character button and select “embed all” or something to that effect.

---

<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:** [April 30, 2003, 5:47pm UTC](https://forum.kirupa.com/t/loading-tekst-into-flash-from-txt-file/19666/5 "2003-04-30T17:47:31Z")

</div>

thnx very much for the pointer… i’ll try it asap (day after tomorrow, no school tomorrow yay)

no doubt that will be it, and if it isn’t well i know where to post my fla then

(-:

---

<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:** [May 2, 2003, 6:45am UTC](https://forum.kirupa.com/t/loading-tekst-into-flash-from-txt-file/19666/6 "2003-05-02T06:45:26Z")

</div>

can’t get it to work…

i think i’m doing this path thing wrong…

guess i’m stOOpid :-\

anyway put a zip online of the fla and textfile i made to test it.  
[http://beestjeuhspage.tripod.com/scrollmovie.zip](http://beestjeuhspage.tripod.com/scrollmovie.zip). sorry the link doesn’t work directly, but that’s tripod i’m afraid:-\ . copy and paste in the a browser window will work

hope someone can help me out
