crossdomain.xml is crucial
Friday, September 28th, 2007Man, I feel stupid. Turns out those security errors from Kongregate were being thrown thanks to my lack of a crossdomain.xml file that allows access to data from off-domain swfs. kurtmargenau.com didn’t have one, so any calls to my hiscore phps were being rejected by flash, because the default is if it doesn’t find this magic xml file on the root of the domain, it doesn’t allow it to access any info from that domain. This xml file btw, is a list of domains that are allowed to access. For example, I would put “www.kongregate.com” on the list so my high scores worked, but to make it simple, I just allowed all domains, like so:
<?xml version=”1.0″?>
<!– http://www.kurtmargenau.com/crossdomain.xml –>
<cross-domain-policy>
<allow-access-from domain=”*” />
</cross-domain-policy>
Now all the folks at Kongregate can battle for high scores!





