Loading external text into a movie

Hi all…

I am attempting to load some external text into a “home.swf” dyanmic text box as per tutorial http://www.kirupa.com/developer/mx/multiple_dynamictext.htm

However, I have it set up so that an “index.swf” loads the “home.swf” file into it, and then I would like to load the external text.

I was able to make it work with the home.swf using this code:

loadText = new LoadVars();
	loadText.load("text/home.txt");
	loadText.onLoad = function(success) {
		if (success) {
			// trace(success);
			this.home_text.html = true;
			this.home_text.htmlText = this.homeNews;
		}
	}

But I cannot make it load correctly with the index.swf using this code:

loadText = new LoadVars();
	loadText.load("text/home.txt");
	loadText.onLoad = function(success) {
		if (success) {
			// trace(success);
			_root.content.home_text.html = true;
			_root.content.home_text.htmlText = this.homeNews;
		}
	}

(my logic is that _root will refer to the index, which then refers to the “content” container inside the index.swf that loads home.swf, which should then refer to the “home_text” dynamic textbox located inside home.swf).

Any ideas?

Charis,

bbbco