Button Question [AS2]

Hey so i have a file which is going to go on a couple of different URLs globally and i need to just link to the same extension each time. eg www.randomsite.xyx/destination, www.randomsite.xyz/destination

Is there a way so that instead of putting in the hard coded URL each time i can just make it find the extension in the same window?

Thanks