Cross domain issue?

i have a .swf on my homepage which contains links in it like this:

this works fine if i access my domain via “” but the links fail if i access my domain via “

I’m assuming that flash player is viewing these as different domains, so i added a cross-domain policy file with the following:

<?xml version="1.0"?>

	    <!DOCTYPE cross-domain-policy SYSTEM "">


	    <allow-access-from domain="" />
		<allow-access-from domain="" />

but the links do nothing when clicked in the .swf… . what am i missing here? how can i make sure the links work both when “www.” is added to the url by user and when it’s left out???