I have a movie clip that uses an external txt to draw copy from. When run locally on my computer eveything works perfectly, but when uploaded it comes up undefined.
I haven’t changed any of the relationships between directories. Any ideas???
Here’s a snippet of the code:
stop();
// MAIN COPY
function textLoader() {
myData = new LoadVars();
myData.onLoad = function() {
myText_txt.html = true;
myText_txt.htmlText = this.info;
};
myData.load("text/signaturePillows/brown/1.txt");
}
var myCSS = new TextField.StyleSheet();
myCSS.load("style.css");
myCSS.onLoad = function() {
myText_txt.styleSheet = myCSS;
textLoader();
};
The url of the text file is here:
http://jxmckenzie.com/aviva/text/signaturePillows/brown/1.txt