我有一个外部swf加载器,在CS6中工作正常。但是,当人们在CS5.5中使用它时,我遇到了一个可怕的安全错误。我怎么能解决这个问题?
var loaderContext:LoaderContext = new LoaderContext();
loaderContext.applicationDomain = ApplicationDomain.currentDomain;
if (Security.sandboxType != "localTrusted") {
loaderContext.securityDomain = SecurityDomain.currentDomain;// Sets the security
}
var sdk_url:String = "http://example.com/external.swf?="+new Date().getTime();
var urlRequest:URLRequest = new URLRequest(sdk_url);
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete, false, 0, true);
loader.load(urlRequest, loaderContext);