# Difficulty Loading Text from External Sources

**URL:** https://forum.kirupa.com/t/difficulty-loading-text-from-external-sources/119848
**Category:** Uncategorized
**Created:** [August 18, 2004, 2:46pm UTC](https://forum.kirupa.com/t/difficulty-loading-text-from-external-sources/119848 "2004-08-18T14:46:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![notaloser](https://avatars.discourse-cdn.com/v4/letter/n/c6cbf5/32.png) [@notaloser](https://forum.kirupa.com/u/notaloser)
#### Post date: [August 18, 2004, 2:46pm UTC](https://forum.kirupa.com/t/difficulty-loading-text-from-external-sources/119848/1 "2004-08-18T14:46:45Z")

</div>

Hey there, im not amazing at flash but i would like to learn everything i can. i am trying to load text from an external source, using the tutorial here.

```auto

on (release) {
loadText = new LoadVars();
loadText.load("news.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
tBox.html = true;
	tBox.htmlText = this.index;
}
};
}

```

that is what i am using to load my txt file… i get no errors when testing, but when you click my button, the word “undefined” appears in the dynamic textbox, not what is in my txt file. anyone know whats wrong?

i tried reading other posts about this on the forum, and they helped until this occured
