Hello, not a flash expert and I need some help!

Hello,

Since this is my first post, I’d like to take a moment and introduce myself. Im an artist that does web design on the side and I found this site while looking for help with my Flash file.

My problem is this:

I need to load variables from a text file that are links that I can assign to buttons. The reason why I chose this method is that I need something that can be edited easily without recompiling the flash, and the buttons have to be graphical. So What I need to do is load the variables from a text file like:

var1=http://www.foo.com/foo1.htm
var2=http://www.foo.com/foo2.htm
var3=http://www.foo.com/foo3.htm

etc.

And then somehow assign these URL’s to movieclips or buttons so that when a user clicks, the button takes them to the above refrenced URL.

So:

Button1=www.foo.com/foo1.htm

How can I do this?