Loading URL onto a button in swf that is loaded through Loader component with XML

I’m using an instance of the XMLConnector component to load a dynamically generated XML file which contains data to open an swf into a instance of the Loader component on the stage. The Loader component has been binded to the XMLConnector and the swf loads fine but I need to be able have a URL generated dynamically for a Flash button (in the swf that is loaded) using the XML file. This URL needs to be a relative link to a PDF on the server. The reason it needs to be a Flash button is because there are graphics used for the button (more than a text field).

The XML file looks similar to this:

<data>
<button>button.swf</button>
</data>

In the swf that is loaded I have created an invisible button above my graphic (which may or may not be needed as I’m sure there is a way of dynamically generating a button and a URL). On the button I’m hoping to have something similar to this generated where “content.pdf” is the URL to the PDF from the XML file:

on (release) {
getURL(“content.pdf”, “_blank”);
}

Any suggestions would be appreciated.

Thanks!