# Loading Dynamic Text From Another Site

**URL:** <https://forum.kirupa.com/t/loading-dynamic-text-from-another-site/85423>\
**Category:** flash\
**Created:** [April 4, 2005, 6:44pm UTC](https://forum.kirupa.com/t/loading-dynamic-text-from-another-site/85423 "2005-04-04T18:44:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ginsengdesign](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@ginsengdesign](https://forum.kirupa.com/u/ginsengdesign)\
**Post date:** [April 4, 2005, 6:44pm UTC](https://forum.kirupa.com/t/loading-dynamic-text-from-another-site/85423/1 "2005-04-04T18:44:01Z")

</div>

Followed Kirupa’s Tutorial on loading dynamic text into a text box, and it works great when the .txt file is in the same folder. But I want to use the same text for a banner on another site. I was hoping I could jsut load it fromt he same text file so I only have to change it in one place in the future. I tried to do it with this code but am not sure that’s the right way to script it:

loadText = new LoadVars();  
loadText.load(“[http://www.externalsite.com/text/mytext.txt](http://www.externalsite.com/text/mytext.txt)”);  
loadText.onLoad = function() {  
promo.text = this.promo;  
expires.text = this.expires;  
code.text = this.code;  
};
