# Loading a txt file into a dynamic text box

**URL:** https://forum.kirupa.com/t/loading-a-txt-file-into-a-dynamic-text-box/36757
**Category:** Uncategorized
**Created:** [December 1, 2003, 5:31pm UTC](https://forum.kirupa.com/t/loading-a-txt-file-into-a-dynamic-text-box/36757 "2003-12-01T17:31:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![CoDe\_ReD](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/code_red/32/336_2.png) [@CoDe\_ReD](https://forum.kirupa.com/u/CoDe_ReD)
#### Post date: [December 1, 2003, 5:31pm UTC](https://forum.kirupa.com/t/loading-a-txt-file-into-a-dynamic-text-box/36757/1 "2003-12-01T17:31:46Z")

</div>

Hi people,

I want to load a .txt file in a dynamic textbox. I want it to load when I press a button in an other movie. I’ve loaded a menu in mc container, and now I want to load the text in a textbox with the instance name “ArchiveNews” in an other mc container on the same page. (Like a website) I’ve tried something like this:

[AS]  
on (release) {  
loadText = new loadVars();  
loadText.load(“Archive1.txt”);  
loadText.onLoad = function(success) {  
if (success) {  
// trace(success);  
ArchiveNews.html = true;  
ArchiveNews.htmlText = this.myNews;  
}  
};  
}  
[/AS]

Help!!! :nerd:
