Hi,
I want to be able to add a URL to a button dynamically from a text file if possible.
On the actionscript I have the following:
loadText = new LoadVars();
loadText.uniq= Math.floor(Math.random()*10000000);
loadText.sendAndLoad("flashstrip.txt", loadText, "GET");
loadText.target = this;
loadText.onLoad = function() {
this.target.Image.loadMovie(this.Image);
this.target.Button.html = loadText.BUTTON;
};
Whilst “flashstrip.txt” is as follows:
Image=fla_match.jpg&BUTTON=http://www.google.com
However all is not well.
Anyone got any suggestions? - Thank you kindly in advance.