簡體   English   中英

將一個外部SWF跨域加載到另一SWF中

[英]Loading one external SWF into another SWF across domains

我有一個a.swf,這是我的主應用程序的SWF文件,它正在嘗試加載b.swf,其中包含一些其他資源以及一些Actionscript。 a.swf駐留在sub1.domain.com上,b.swf駐留在sub2.domain.com上(都在同一域中,只是不同的子域。)在a.swf中,我從domain.com加載了crossdomain.xml。並將以下代碼添加到a.swf和b.swf中:

Security.allowDomain("*");
Security.allowInsecureDomain("*");

我是否還需要在b.swf中加載crossdomain.xml來防止安全錯誤,或者是否具有足夠的allowDomain / allowInsecureDomain?

更多信息:-使用Flash Player 9-使用AS3

是的,與sub1 / SWF A相比,您需要sub2 / SWF B加載跨域負載更多。

快問一下...他們是同一領域還是不同的第三層?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM