# Loading external text

**URL:** <https://forum.kirupa.com/t/loading-external-text/119100>\
**Category:** Uncategorized\
**Created:** [August 11, 2004, 2:02pm UTC](https://forum.kirupa.com/t/loading-external-text/119100 "2004-08-11T14:02:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![evafresh](https://avatars.discourse-cdn.com/v4/letter/e/f04885/32.png) [@evafresh](https://forum.kirupa.com/u/evafresh)\
**Post date:** [August 11, 2004, 2:02pm UTC](https://forum.kirupa.com/t/loading-external-text/119100/1 "2004-08-11T14:02:12Z")

</div>

i saw a tutorial on how to click a button and load text from a .txt file but i want to know how to get it to load with out a button?  
so that some one can update the .txt file whenever and the flash site will automatically show the changes…

---

<div class="post-metadata">

**Author:** ![bwh2](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@bwh2](https://forum.kirupa.com/u/bwh2)\
**Post date:** [August 11, 2004, 4:45pm UTC](https://forum.kirupa.com/t/loading-external-text/119100/2 "2004-08-11T16:45:56Z")

</div>

so say you’re using this AS:[AS]on (release) {  
loadText = new loadVars();  
loadText.load(“TEXT1.txt”);  
loadText.onLoad = function(success) {  
if (success) {  
// trace(success);  
newsBox.html = true;  
newsBox.htmlText = this.myNews;  
}  
};  
}[/AS]  
instead, take out the on(release) and it becomes this. put it in the main timeline:[AS]loadText = new loadVars();  
loadText.load(“TEXT1.txt”);  
loadText.onLoad = function(success) {  
if (success) {  
// trace(success);  
newsBox.html = true;  
newsBox.htmlText = this.myNews;  
}[/AS]

---

<div class="post-metadata">

**Author:** ![40Unregistered](https://avatars.discourse-cdn.com/v4/letter/4/87869e/32.png) [@40Unregistered](https://forum.kirupa.com/u/40Unregistered)\
**Post date:** [August 12, 2004, 2:55am UTC](https://forum.kirupa.com/t/loading-external-text/119100/3 "2004-08-12T02:55:51Z")

</div>

browser won’t show the change automatically, so add “unique identifier” to your text because browser seems to cache the old text or movie
