# Loading external text problem!

**URL:** https://forum.kirupa.com/t/loading-external-text-problem/145569
**Category:** Uncategorized
**Created:** [April 23, 2005, 6:19pm UTC](https://forum.kirupa.com/t/loading-external-text-problem/145569 "2005-04-23T18:19:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![goodfella22](https://avatars.discourse-cdn.com/v4/letter/g/74df32/32.png) [@goodfella22](https://forum.kirupa.com/u/goodfella22)
#### Post date: [April 23, 2005, 6:19pm UTC](https://forum.kirupa.com/t/loading-external-text-problem/145569/1 "2005-04-23T18:19:23Z")

</div>

Hi,  
Im trying to load some external text into a dynamic text box in a movie. I have created the text file, added the code but the text wont display and i get this error message:

not loaded  
Error opening URL “[file:///C|/Documents%20and%20Settings/gareth%20smyth/My%20Documents/Gareth%20work/QUEENSyr3/Major%20Project/History.txt](file:///C|/Documents%20and%20Settings/gareth%20smyth/My%20Documents/Gareth%20work/QUEENSyr3/Major%20Project/History.txt)”

It looks like the problem is that the file cant be found or something, but it is in the same folder as the fla file.

Here is the code that i have attached to my text box in flash:

loadVarsText = new loadVars();  
loadVarsText.load(“History.txt”);  
//assign a function which fires when the data is loaded:  
loadVarsText.onLoad = function(success) {  
if (success) {  
trace(“done loading”);  
//Now that we know the data is loaded,  
//set the text content of the Text Field  
//with the instance name “scroller” equal to the  
//contents of the variable  
hist.text = this.info;  
} else {  
trace(“not loaded”);  
}  
};

I’m really frustrated as to whats wrong, if anyone has any ideas i’d be very grateful,

Thanks.
