Flash crossdomain security

By Larry B, May 2, 2010

Flash security constraints can prevent a SWF hosted on one domain from reading data hosted on another domain. Users trying out the SlideSync and SlideScroller plugins might encounter this issue if the XML data file that contains the slide URLs and timing is on a different website from the one that hosts the JW FLV Player itself.

The solution is to add a crossdomain.xml file to the root directory of the web server that hosts the XML file. There’s official Adobe docs on crossdomain policy files, and here’s a pretty good tutorial on crossdomain.xml files.

In short, you create this simple file using any text editor, and set up a rule describing which other sites may access data hosted on the site where the crossdomain.xml file lives.

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
   <allow-access-from domain="*.learningapi.com" />
</cross-domain-policy>

sbs!

5 Responses to “Flash crossdomain security”

  1. Afriqiyah says:

    Thanks for the information. Being a flash user, I came across such a situation a number of times. I tried to synchronize the problem but all went to vain. I was looking for such a tips and I hope to get a lot from the tips.

  2. Thank you for the information.Please give more updates about flash.

  3. Furi says:

    Cross-domain security is the greatest constraint of the Flash Player. It is often a tedious job to cope up with such a problem. The best solution to this problem is the one suggested by you in the post. I tried it out in my workplace and it solved the problem and provided us the base for cross-domain interaction.

  4. Thanks for these useful details.I have some knowledge on Flash.I am yet to encounter such a problem and therefore really thankful to you for having given over here the plugins that causes problems.Thanks for the tutorial.Will check it out.Hope it works well for me.

  5. Urmi says:

    Flash security constraints can often come in the way of SWF.therefore if proper plugins are not used then it might hamper the running of a flash event.Thank you so very much for the details and the solutions.Have taken a note of it.