# Loading Text From External Sources

**URL:** https://forum.kirupa.com/t/loading-text-from-external-sources/134006
**Category:** Uncategorized
**Created:** [January 13, 2005, 7:59pm UTC](https://forum.kirupa.com/t/loading-text-from-external-sources/134006 "2005-01-13T19:59:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ObjectionTango](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/objectiontango/32/984_2.png) [@ObjectionTango](https://forum.kirupa.com/u/ObjectionTango)
#### Post date: [January 13, 2005, 7:59pm UTC](https://forum.kirupa.com/t/loading-text-from-external-sources/134006/1 "2005-01-13T19:59:01Z")

</div>

I’ve done the tutorial ( [http://www.kirupa.com/developer/mx/multiple\_dynamictext.htm](http://www.kirupa.com/developer/mx/multiple_dynamictext.htm) ), but now i want to do something a little different.

I have the text box that the external txt files are loaded into on the root timeline.

I however, want to have the buttons dynamically loaded in, which means they’re in an SWF that isn’t on the main timeline. (I’m loading the SWF into a holder on the root which has the buttons on it) I need to know what changes i have to make to make it work.

```auto
on (release) {
 	loadText = new loadVars();
 	loadText.load("TEXT1.txt");
 	loadText.onLoad = function(success) {
 		if (success) {
 			// trace(success);
 			newsBox.html = true;
 			newsBox.htmlText = this.myNews;
 		}
 	};
 }
 

```
