# Loading External text files

**URL:** <https://forum.kirupa.com/t/loading-external-text-files/34753>\
**Category:** flash\
**Created:** [November 6, 2003, 12:49am UTC](https://forum.kirupa.com/t/loading-external-text-files/34753 "2003-11-06T00:49:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![rixter](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@rixter](https://forum.kirupa.com/u/rixter)\
**Post date:** [November 6, 2003, 12:49am UTC](https://forum.kirupa.com/t/loading-external-text-files/34753/1 "2003-11-06T00:49:46Z")

</div>

Im fairly new to flash and am currently working on a project that uses external text files loading into dynamic textfields.

Now this part is fine. when i preview the swf the text is displayed fine.

The problem is when i call the swf into the main interface movie the text is no longer displayed. The scrollbar looks like the text has been loaded but the actual text is not visible.

Can someone please point me in the right direction to resolve this.

Cheers

---

<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:** [November 6, 2003, 3:22am UTC](https://forum.kirupa.com/t/loading-external-text-files/34753/2 "2003-11-06T03:22:46Z")

</div>

oh my gosh, i have the same problem! someone 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:** [November 6, 2003, 3:37am UTC](https://forum.kirupa.com/t/loading-external-text-files/34753/3 "2003-11-06T03:37:08Z")

</div>

What does your code look like?

---

<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:** [November 6, 2003, 3:47am UTC](https://forum.kirupa.com/t/loading-external-text-files/34753/4 "2003-11-06T03:47:43Z")

</div>

well for the main.swf file, i have

loadMovie(“about.swf”, about);

and for the about.swf that is to be loaded into the main.swf i have the following for my dynamic text box…

loadText = new LoadVars();  
loadText.load(“text.txt”);  
loadText.onLoad = function()  
{  
scroller.text = this.bentext;  
};

the about. swf has a dynamic text box, and i load text into it from a separte txt file. it loads fine when i just view the about.swf alone, but when i load the main.swf, only the scroll bars show…

---

<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:** [November 6, 2003, 3:57am UTC](https://forum.kirupa.com/t/loading-external-text-files/34753/5 "2003-11-06T03:57:55Z")

</div>

OH WAIT I GOT IT! i duno why, but i looked at the properties for the text box.and i saw the button “character” i opened it up. selected “specify ranges” and highlighted “upper case” “lower case” “puntuaton” and it worked! strangley…i don’t know how tho…

---

<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:** [November 6, 2003, 6:09am UTC](https://forum.kirupa.com/t/loading-external-text-files/34753/6 "2003-11-06T06:09:11Z")

</div>

You surely masked the text field. 😛

[http://www.macromedia.com/support/flash/ts/documents/maskprintembed.htm](http://www.macromedia.com/support/flash/ts/documents/maskprintembed.htm)  
[http://www.macromedia.com/support/flash/ts/documents/mask\_device\_fonts.htm](http://www.macromedia.com/support/flash/ts/documents/mask_device_fonts.htm)

---

<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:** [November 6, 2003, 1:27pm UTC](https://forum.kirupa.com/t/loading-external-text-files/34753/7 "2003-11-06T13:27:15Z")

</div>

yep! thats what happened 😉 ah well got it now 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:** [November 6, 2003, 1:33pm UTC](https://forum.kirupa.com/t/loading-external-text-files/34753/8 "2003-11-06T13:33:59Z")

</div>

No problem. Just wanted you to know why it happened, in case you didn’t know already. 🙂
