Cross domain issue?

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

http://mydomain.com/mypage.html

this works fine if i access my domain via “http://mydomain.com” but the links fail if i access my domain via “http://www.mydomain.com

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 "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
		

	    <cross-domain-policy>
		

	    <allow-access-from domain="www.mydomain.com" />
		<allow-access-from domain="mydomain.com" />
</cross-domain-policy> 

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???