Loading up links dynamicaly in buttons

I am using a external text file to lead in a link into a flash file. I understand I could have the a text area to render the “<a ref…” code to HTML but I’m using a button to crate a nice roll over so I would ideally like to have it go off of the button.

What I’m using to bring up a link location is like this.

//create new instance of LoadVars object
myData = new LoadVars();

//define what to do with content once it has loaded
myData.onLoad = function()
{
	//the value of the "content" property is assigned to the text field
	**link1.text** = this.link1;
};

//now load the external file into the myData object
myData.load("filename.txt");

stop();

After I create a button I include in the action this

on (release) {
	getURL("**link1.text**", "_self");
}

As expected it doesnt work. Any ideas?