# Loading external text

**URL:** <https://forum.kirupa.com/t/loading-external-text/60666>\
**Category:** Uncategorized\
**Created:** [August 11, 2004, 2:02pm UTC](https://forum.kirupa.com/t/loading-external-text/60666 "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/60666/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:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 11, 2004, 4:45pm UTC](https://forum.kirupa.com/t/loading-external-text/60666/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:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 12, 2004, 2:55am UTC](https://forum.kirupa.com/t/loading-external-text/60666/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
