The best resources for developers

How do I call a Flex SWF from a remote domain using Flash?

<?xml version="1.0"?>
<!-- -->
  <allow-access-from domain="" />
  <allow-access-from domain="*" />
  <allow-access-from domain="" />
var loaderContext:LoaderContext = new LoaderContext();
loaderContext.checkPolicyFile = true;

var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener( Event.COMPLETE, onComplete );
loader.load( new URLRequest( "" ), loaderContext );

Tags: apache-flex security flash actionscript-3

Source: By Eran Kampf as answer to the question

This code snippet was collected from stackoverflow, and is licensed under CC BY-SA 3.0

Related code-snippets: