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.