Cross domain swf

Hey chaps

I have a slight issue with pulling swf files from one server to be displayed on another server.

So on server A:
swf viewer

on server B:
xml
swf
thumbnails

Server A is the client with the viewer and the information is delivered from server B

I have successfully got the xml file, Thumbnails and everything else EXCEPT the swf files!

In the viewer I have


import flash.system.Security;
import flash.system.SecurityPanel;

Security.allowDomain("*");
Security.allowInsecureDomain("*");
Security.loadPolicyFile("http://mydomain.co.uk/crossdomain.xml");

and have the crossdomain.xml as


<?xml version="1.0" ?>
<cross-domain-policy>
  <site-control permitted-cross-domain-policies="master-only"/>
  <allow-access-from domain="*"/>
  <allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>

this gets all the images, text and xml info but not the swf. Is there something I am missing?!

Presumably mydomain.co.uk is server B?

yes it is, it finds the crossdomain.xml and loads all the assets - apart from the swf :frowning:

I’d check the response events to loader.httpResponse and loader.ioError, also put the load within a try/catch and catch securityError then you should be able to see what the problem is. If you have the debug version of the player installed for your browser it should show these