I'm attempting to load in a variable from a text file to use in the get_url function. Below is my current code and its simply just not working...
---this is the code layer---
myData = new LoadVars();
myData.load("GSU.txt");
myData.onLoad = function(succes) {
if (succes) {
var varurl;
varurl = this.url1;
title.Text = this.Title;
holder.loadMovie(this.Image);
} else {
trace("Error loading data");
}
};
---Image Layer---
on (release) {
getURL(varurl);
}
---this is the code layer---
myData = new LoadVars();
myData.load("GSU.txt");
myData.onLoad = function(succes) {
if (succes) {
var varurl;
varurl = this.url1;
title.Text = this.Title;
holder.loadMovie(this.Image);
} else {
trace("Error loading data");
}
};
---Image Layer---
on (release) {
getURL(varurl);
}