# Dynamic URL

**URL:** <https://forum.kirupa.com/t/dynamic-url/228483>\
**Category:** Uncategorized\
**Created:** [June 8, 2007, 6:20am UTC](https://forum.kirupa.com/t/dynamic-url/228483 "2007-06-08T06:20:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![montyT](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@montyT](https://forum.kirupa.com/u/montyT)\
**Post date:** [June 8, 2007, 6:20am UTC](https://forum.kirupa.com/t/dynamic-url/228483/1 "2007-06-08T06:20:54Z")

</div>

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

```auto

loadtxt = new LoadVars();
loadtxt.load("message.txt");
loadtxt.onLoad = function() {
    file.text = this.var1;
    file.html = this.var1;
};
var main = loadtxt;
this.onEnterFrame = function() {
    one.onRelease = function() {
        getURL(main);
    };
};

```

Any solution ?
