Difficulty Loading Text from External Sources

Hello everyone I’m new to the forum and I just wanted to ask for some help. I’m new to flash and I have been working with flash for about a couple of months now and I’m still new to everything especially ActionScript.

I have been working on my first site which is my personal blog and I’m having trouble getting my external text files to load in my dynamic text field. I have even followed the tutorial that is given here and still seem to be doing something wrong. Basically want I want to accomplish is the same results as the tutorial. I would like to have my buttons when clicked to load my text files. This is the swf file that I have been working with: SWF FILE and these are my current dynamic text settings:
[center][/center]
This is the altered code that I used from the tutorial page!

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

you forgot loadText = new LoadVars();
should look like this:


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


Hope it works!

Cheers
MZA

OMG that worked, Thanks!!!