# Loading external txt file

**URL:** https://forum.kirupa.com/t/loading-external-txt-file/96971
**Category:** Uncategorized
**Created:** [December 16, 2003, 12:05am UTC](https://forum.kirupa.com/t/loading-external-txt-file/96971 "2003-12-16T00:05:45Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![imported\_swift7777](https://avatars.discourse-cdn.com/v4/letter/i/b19c9b/32.png) [@imported\_swift7777](https://forum.kirupa.com/u/imported_swift7777)
#### Post date: [December 16, 2003, 12:05am UTC](https://forum.kirupa.com/t/loading-external-txt-file/96971/1 "2003-12-16T00:05:45Z")

</div>

I know I’m missing something real simple…

trying to load and external txt file from my server using dynamic text box and this script,

this.loadText = new loadVars();  
this.loadText.load(“text1.txt”);  
this.loadText.onLoad = function(success) {  
if (success) {  
// trace(success);  
newsBox.html = true;  
newsBox.htmlText = this.myNews;  
}  
};

the blogger is loaded into the root inside an empty movieclip.

by itself the swf works but when I upload the txt. file and the swf I get no text.

thanx 4 any help.

swift.:panda:

---

<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: [December 16, 2003, 12:34am UTC](https://forum.kirupa.com/t/loading-external-txt-file/96971/2 "2003-12-16T00:34:17Z")

</div>

can you post your fla’s? I’m pretty sure it’s just a path problem

---

<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: [December 16, 2003, 12:58am UTC](https://forum.kirupa.com/t/loading-external-txt-file/96971/3 "2003-12-16T00:58:05Z")

</div>

Sure here it is but trust me I’ve tried everything,

all my variables are declared, to match txt file and txt file was upload as ascii and chmod to read and write, but still no joy.

thanx 4 help

swift:gm:

---

<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: [December 16, 2003, 1:37am UTC](https://forum.kirupa.com/t/loading-external-txt-file/96971/4 "2003-12-16T01:37:16Z")

</div>

.

---

<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: [December 16, 2003, 2:19am UTC](https://forum.kirupa.com/t/loading-external-txt-file/96971/5 "2003-12-16T02:19:35Z")

</div>

ah thanx very much, what did you do different.

swift.

---

<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: [December 16, 2003, 2:25am UTC](https://forum.kirupa.com/t/loading-external-txt-file/96971/6 "2003-12-16T02:25:17Z")

</div>

i erased the variable name. capitalized the L in loadVars (for mx2k4 only) and referenced the text file locally
