PDA

View Full Version : Cross Domain problems!


psperos
03-04-2009, 02:56 PM
Hello, im having an issue with cross domain.

I want to host my flash file on a different server.

My Main site is www.christosmarket.com . The site i use to store images and large files is www.christosmarketplace.com . both sites have SSL.

i want my flash movie to play on christosmarket.com and be hosted on christosmarketplace.com

Here is my code on christosmarket.com where i call the file :

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="550" height="300">
<param name="movie" value="http://www.christosmarketplace.com/v/banner.swf">
<param name="quality" value="high">
<embed src="http://www.christosmarketplace.com/v/banner.swf" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="555" height="300" border="0"></embed>
</object>

the SWF file is hosted here http://www.christosmarketplace.com/v/banner.swf, it uses XML.

i have placed the following cross domain policy in the root of www.christosmarketplace.com :

<?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.christosmarket.com" />
<allow-access-from domain="christosmarket.com" />
</cross-domain-policy>

For some reason the movie is still not loading, if someone could help, i would appericiate it. I have also placed crossdomain.xml in other folders to see if it works, but not luck.

tracisummers
03-10-2009, 08:34 AM
Hey i'm not sure about Flex, but in the Flash IDE and in as3...

I had to explicitly load the policy file with.
Security.loadPolicyFile("http://www.yoururl.com/crossdomain.xml");

Hope that helps.

Oh and you could try setting your domain to "*" in the policy file, to check that it's not your URLs.