# \[FMX\] External Text File problems

**URL:** https://forum.kirupa.com/t/fmx-external-text-file-problems/63880
**Category:** Uncategorized
**Created:** [September 10, 2004, 8:25pm UTC](https://forum.kirupa.com/t/fmx-external-text-file-problems/63880 "2004-09-10T20:25:45Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![beneath\_the\_sky](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/beneath_the_sky/32/506_2.png) [@beneath\_the\_sky](https://forum.kirupa.com/u/beneath_the_sky)
#### Post date: [September 10, 2004, 8:25pm UTC](https://forum.kirupa.com/t/fmx-external-text-file-problems/63880/1 "2004-09-10T20:25:45Z")

</div>

I’m sure this is an easy fix but for some reason I cannot get the text field to accept HTML coding when I’m loading the text in. I have the Render Text as HTML (\<\>) button checked but still nothing happens. Here’s the code I’m using:

```auto
var externalData:LoadVars = new LoadVars();
externalData.onLoad = function() {
	news_txt.text = externalData.newsText;
}
externalData.load("News_Text.txt");

```

I’m thinking I need to add something similar to this??:

```auto
news_txt.html = true;
news_txt.htmlText = newsText;

```

Any help would be greatly appreciated.

---

<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 10, 2004, 8:50pm UTC](https://forum.kirupa.com/t/fmx-external-text-file-problems/63880/2 "2004-09-10T20:50:01Z")

</div>

From the tutorial:

```auto
loadText = new loadVars();
loadText.load("your_txt.txt");
loadText.onLoad = function(success) {
    if (success) {
        // trace(success);
        textBox.html = true;
        textBox.htmlText = this.myNews;
    }
};

```

---

<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 11, 2004, 3:45am UTC](https://forum.kirupa.com/t/fmx-external-text-file-problems/63880/3 "2004-09-11T03:45:11Z")

</div>

Thank you sir :azn:

---

<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 13, 2004, 12:55am UTC](https://forum.kirupa.com/t/fmx-external-text-file-problems/63880/4 "2004-09-13T00:55:38Z")

</div>

Okay, now I have a new problem with the external text files. Everything worked fine when I was testing it on my computer but when I uploaded the file to the server and tested it, the only text that loaded was “undefined”. Is there something else I need to do in order to make this work correctly?

---

<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 13, 2004, 5:33am UTC](https://forum.kirupa.com/t/fmx-external-text-file-problems/63880/5 "2004-09-13T05:33:59Z")

</div>

Anyone??

---

<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 13, 2004, 7:40am UTC](https://forum.kirupa.com/t/fmx-external-text-file-problems/63880/6 "2004-09-13T07:40:56Z")

</div>

theres a really helpful tutorial on [flashkit.com](http://flashkit.com) about loading external text. go to flashkit and do a search for “textformatter” in the tutorials section.

---

<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 13, 2004, 2:04pm UTC](https://forum.kirupa.com/t/fmx-external-text-file-problems/63880/7 "2004-09-13T14:04:05Z")

</div>

Thanks for the response. I tried out a few tutorials on FlashKit and still nothing. I thought I just had to maybe change the path to “http://…” instead of “News\_Text.txt” but still didn’t work. Any other suggestions??

---

<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 13, 2004, 2:26pm UTC](https://forum.kirupa.com/t/fmx-external-text-file-problems/63880/8 "2004-09-13T14:26:53Z")

</div>

> [@beneath:the:sky](#):
>
> Thanks for the response. I tried out a few tutorials on FlashKit and still nothing. I thought I just had to maybe change the path to “http://…” instead of “News\_Text.txt” but still didn’t work. Any other suggestions??

dude, i have no idea how your file is set up . post your .fla and we’ll see.

---

<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 13, 2004, 6:54pm UTC](https://forum.kirupa.com/t/fmx-external-text-file-problems/63880/9 "2004-09-13T18:54:42Z")

</div>

I’ll post the .fla when I get home later today. Thanks so much for the help dude.

---

<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 13, 2004, 7:25pm UTC](https://forum.kirupa.com/t/fmx-external-text-file-problems/63880/10 "2004-09-13T19:25:32Z")

</div>

Hey dudes, easy on the “dude” because not all of us are dudes. 😉

Uh, yeah, post your file and explain the setup and someone will help ya.

:hr:

---

<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 14, 2004, 1:12am UTC](https://forum.kirupa.com/t/fmx-external-text-file-problems/63880/11 "2004-09-14T01:12:06Z")

</div>

I’m trying to upload my fla but the file is too big. I’m on a mac, how can I put it in a zip file? I only have stuff-it.

---

<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 14, 2004, 1:22am UTC](https://forum.kirupa.com/t/fmx-external-text-file-problems/63880/12 "2004-09-14T01:22:22Z")

</div>

make sure that everything is named the same in your files and on the server. I had a text file capitalized on the server and not in my AS and that screwed it up.

---

<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 14, 2004, 1:35am UTC](https://forum.kirupa.com/t/fmx-external-text-file-problems/63880/13 "2004-09-14T01:35:03Z")

</div>

> [@Cloakendagger](#):
>
> make sure that everything is named the same in your files and on the server. I had a text file capitalized on the server and not in my AS and that screwed it up.

Oh man, that was exactly it. My AS was saying News\_text.txt and my file name was News\_Text.txt … still doesn’t make sense why it would work on my hard drive and not the server. Either way, it’s finally fixed. Thanks for the help guys. I know I’m going to have more problems before this site is finished.
