0
votes

I have a Flash (SWF) file that loads a video skin that is on a different domain and I get the error below:

Error #2044: Unhandled skinError:. text=Error #2121: Security sandbox violation: Loader.content: ad-dev.somedomain.net/Test2/Select_Expanded_Ad.swf cannot access ad.somedomain.net/ads/i/SkinUnderPlayStopSeekMuteVol.swf. This may be worked around by calling Security.allowDomain.

In the Action Script 3.0 I have:

Security.loadPolicyFile("http://ad.somedomain.net/crossdomain.xml");
Security.allowDomain("*");
MovieClip12.skin="http://ad.somedomain.net/ads/i/SkinUnderPlayStopSeekMuteVol.swf";

I have a crossdomain.xml file setup: http://ad.somedomain.net/crossdomain.xml


<?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="ad-dev.somedomain.net"/>
</cross-domain-policy>

1

1 Answers

0
votes

Your cross domain policy URL is incomplete. try this:

<?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="ad-dev.somedomain.net"/>
</cross-domain-policy>