# Loading external text from within MC

**URL:** <https://forum.kirupa.com/t/loading-external-text-from-within-mc/122106>\
**Category:** Uncategorized\
**Created:** [September 10, 2004, 8:52am UTC](https://forum.kirupa.com/t/loading-external-text-from-within-mc/122106 "2004-09-10T08:52:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stocs101](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@stocs101](https://forum.kirupa.com/u/stocs101)\
**Post date:** [September 10, 2004, 8:52am UTC](https://forum.kirupa.com/t/loading-external-text-from-within-mc/122106/1 "2004-09-10T08:52:16Z")

</div>

Hey guys hows it going

I have been searchign for ages and I seem to have come up short on this. What I have is a simple menu system withn a MC. I want the buttons within that movie clip to load an external tex file into a dynamic text box, but it does not want to work for me.  
The code I used previously worked when the buttons weren’t in the movie clip, but now they dont want to work. I have tried using teh tellTarget function to no avail, and now i am stuck. Here is the code i was using before

on (release) {  
loadText = new loadVars();  
loadText.load(“testing.txt”);  
loadText.onLoad = function(success) {  
if (success) {  
// trace(success);  
textbox.html = true;  
textbox.htmlText = this.myNews;  
}  
};  
}

Any ideas on how to modify that so it can be put on a button within a MC to load an external text file.

thanks heaps.

christian
