/ Published in: ActionScript 3
URL: http://www.bigspaceship.com/blog/labs/flash-files-domains-and-security-errors-oh-my/
by Big Spaceship
Expand |
Embed | Plain Text
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')); }
You need to login to post a comment.
