crossdomain.xml

written by justin on July 20th, 2007 @ 07:14 AM

On mydaddypuzzles.com I am using a Picture Gallery built with Adobe Flex. I had done all of my testing with the address http://www.mydaddypuzzles.com/. So, of course I get an email from Erik telling me that I have an ActionScript Error on my gallery page when accessing it via http://mydaddypuzzles.com/puzzle/gallery/.

The first thing that comes to mind is that there is a problem with loading the xml data that the website is generating for the Flash Player to consume. I remembered that there is some xml file that you can put into your root web directory to allow access from other domains. After a few minutes of searching my brain I remember that it is a file called crossdomain.xml. I did a google search and found the page on the Adobe website that talked about them. I whipped one up for my domain and Voila! Worky Worky. This is what the file looks like:


<?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="mydaddypuzzles.com" /> </cross-domain-policy>

Comments

  • Alan Armstrong on 16 Aug 17:01

    Interested in any freelance using action script, .net, sql, flash video? If so respond to my email at BigGavel.com Thanks, Alan Armstrong

Comments are closed