# External text

**URL:** <https://forum.kirupa.com/t/external-text/304500>\
**Category:** Uncategorized\
**Created:** [February 9, 2010, 5:49am UTC](https://forum.kirupa.com/t/external-text/304500 "2010-02-09T05:49:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tfahey1](https://avatars.discourse-cdn.com/v4/letter/t/13edae/32.png) [@tfahey1](https://forum.kirupa.com/u/tfahey1)\
**Post date:** [February 9, 2010, 5:49am UTC](https://forum.kirupa.com/t/external-text/304500/1 "2010-02-09T05:49:08Z")

</div>

Hey everyone,

Hopefully some one will know how to help, I don’t think it should be too difficult for someone with a little more experience than me. So, I have 2 buttons and when each is clicked the same box appears with text using external text to give info for the button. How do I call a different text file for each button but load in the same dynamic text field? I have to basic variable set up for the basic external text loader that looks like this:

```auto
var loader:URLLoader= new URLLoader ();
var OdinTxt: URLRequest = new URLRequest("odin_text.txt");

function textLoaded(event:Event):void
	{
	info_text.htmlText = loader.data;
	}
	
	loader.load(OdinTxt);
    loader.addEventListener(Event.COMPLETE, textLoaded);

```

Thanks!

Tim
