Return to Snippet

Revision: 25313
at March 26, 2010 09:10 by dx0ne


Initial Code
var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(Event.COMPLETE, _onLoadComplete_handler);
if(Security.sandboxType == Security.REMOTE){
	var context:LoaderContext = new LoaderContext();
	context.securityDomain = SecurityDomain.currentDomain;
	l.load(new URLRequest('http://domain.com/extFile.swf'), context);
}else{
	l.load(new URLRequest('extFile.swf'));
}

Initial URL
http://www.bigspaceship.com/blog/labs/flash-files-domains-and-security-errors-oh-my/

Initial Description
by Big Spaceship

Initial Title
Loading external swf from a different domain

Initial Tags

                                

Initial Language
ActionScript 3