# Loading external txt doesn't work in MX2004?

**URL:** <https://forum.kirupa.com/t/loading-external-txt-doesnt-work-in-mx2004/127276>\
**Category:** Uncategorized\
**Created:** [November 1, 2004, 5:47pm UTC](https://forum.kirupa.com/t/loading-external-txt-doesnt-work-in-mx2004/127276 "2004-11-01T17:47:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lunatic](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lunatic](https://forum.kirupa.com/u/lunatic)\
**Post date:** [November 1, 2004, 5:47pm UTC](https://forum.kirupa.com/t/loading-external-txt-doesnt-work-in-mx2004/127276/1 "2004-11-01T17:47:17Z")

</div>

Okay I have some files built in MX that use this on the main timleine:

```auto

function textLoad(filename) {
	loadText = new LoadVars();
	loadText.load(filename);
	loadText.onLoad = function(success) {
		if (success) {
			this.stafftxt.html = true;
			this.stafftxt.htmlText = this.staffinfo;
		}
	};
}

```

and then on a button I have:

```auto

on (rollOver) {
	textLoad("craver.txt")
}

```

This works just dandy in MX files but it is not working in MX2004. A trace on success returns the evil Undefined. :hair:

Any clues why?

thanks  
:hr:
