If the PlayerIO CDN causes the SWF to be loaded from a different domain than that of the index.html file, then I figured there
might be a cross-domain problem? So I tried loading a crossdomain.xml policy file into my SWF, with this code:
- Code: Select all
var url:String = PlayerIO.gameFS( PLAYERIO_GAME_ID ).getURL( "/gameFolder/crossdomain.xml" );
Security.loadPolicyFile( url) );
This didn't solve the problem when deployed on the server, though when I run locally, I do get this error:
Error: Ignoring policy file requested from http://r.playerio.com/r/PLAYERIO_GAME_I ... domain.xml because a cross-domain redirect to http://cdn.playerio.com/PLAYERIO_GAME_I ... in._v4.xml occurredSo it looks like we can't load a policy file if the CDN redirects us to a new one. So I tried loading the policy file from the CDN directly:
- Code: Select all
Security.loadPolicyFile( "http://cdn.playerio.com/PLAYERIO_GAME_ID/gameFolder/crossdomain.xml" );
This resulted in the following error when I ran locally:
Warning: Ignoring 'secure' attribute in policy file from http://cdn.playerio.com/crossdomain.xml. The 'secure' attribute is only permitted in HTTPS and socket policy files. See http://www.adobe.com/go/strict_policy_files for details.
Warning: Domain cdn.playerio.com does not specify a meta-policy. Applying default meta-policy 'master-only'. This configuration is deprecated. See http://www.adobe.com/go/strict_policy_files to fix this problem.
Error: Ignoring policy file at http://cdn.playerio.com/PLAYERIO_GAME_I ... domain.xml due to meta-policy 'master-only'.This means there is a PlayerIO CDN crossdomain.xml policy file, right? Is it up-to-date as outlined in
http://www.adobe.com/go/strict_policy_files? I'm still really confused about what could be causing the original errors and preventing me from passing data to my SWF via ExternalInterface. I chased the rabbit down some holes and ended up here somehow.
