Load URL from External TXT File

I’d like to have button which URL changes depending on what frame I’m on. I set up a few TXTs (Pretty new to AS 3.0 and not ready for XML yet) which holds only the URL that I want to navigate to. Then, I want to be able to load different URLs on to the button on command.

In the code which I have now, I can see the url from the TXT in a trace statement, but I have no idea how to make the data useful. I’ve found many threads which make this possible in AS 2.0, but as you know, it doesn’t help me much.

Please Help! Thanks.

Here’s the code I have currently:

var loader:URLLoader = new URLLoader();
loader.load(new URLRequest("slot_a/purchaselink.txt"));

loader.addEventListener(Event.COMPLETE, linkLoaded);

function linkLoaded(event:Event):void