2014-07-22 108 views
0

我不知道如何告訴Flash讓swf文件連接。 我也使用了crossdomain.xml,但沒有任何改變。 這裏是XML代碼:SecurityError:錯誤#2028:本地文件系統SWF文件

<?xml version="1.0"?> 


     <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> 


     <cross-domain-policy> 


      <allow-access-from domain="*" /> 


     </cross-domain-policy> 

這裏是當我從我自己的電腦上運行它的SWF文件中的錯誤(這個解決):

SecurityError: Error #2028: Local-with-filesystem SWF file file:///*/index.swf cannot access Internet URL http://maps.googleapis.com/*. 
    at flash.display::Loader/_load() 
    at flash.display::Loader/load() 
    at BootstrapConfiguration/loadAddingAcceptLanguageHeaderIfAir() 
    at com.google.maps::ClientBootstrap/loadUrl() 
    at com.google.maps::ClientBootstrap/internalLoadBootstrap() 
    at com.google.maps::ClientBootstrap/executeNextFrameCalls() 
    at flash.utils::Timer/_timerDispatch() 
    at flash.utils::Timer/tick() 

,這裏是錯誤,當我從網站運行sw​​f文件:

Initialization failed: please check the API key, 
swf location, version and network availability. 

我現在該做什麼!?

回答

1

嘗試在IDE的編譯器選項或相應選項中設置「-use-network = true」。它可能有幫助。

+0

問題是什麼在我的IDE(flash cs6)適當的選項? –

+0

我解決了一些我的問題。現在我的Flash播放器安全文件夾中的cfg文件swf文件在我的電腦上正常工作,錯誤消失了。但我仍然在網站上遇到同樣的問題。 –

+0

在CS6中,可以在「文件 - >發佈設置 - >高級 - >本地播放安全 – Crabar

相關問題