Dynamic URL

hi guys

this is a general question.

I have made a button, where i am giving the url command. But the thing is the URL should must take from the “.txt” file.

I’ve tried with this code but not working

loadtxt = new LoadVars();
loadtxt.onLoad = function() {
    file.text = this.var1;
    file.html = this.var1;
var main = loadtxt;
this.onEnterFrame = function() {
    one.onRelease = function() {

Any solution ?