Posts

Showing posts from October, 2013

[AS3] Crossdomain.xml file syntax

A SWF file on server1.com can load files from server2.com only if there is a crossdomain.xml file on server2.com that lists all the servers that may load files from it, and the list contains server1.com. Synatx  for crossdomain.xml file is as follows: <?xml version="1.0"?>    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy>     <site-control permitted-cross-domain-policies="all"/>     <allow-access-from domain="*" to-ports="*" secure="false" />     <allow-http-request-headers-from domain="*" headers="*" secure="false" /> </cross-domain-policy> Place this file in the root folder to access content from 2 different domains.