2014-07-22 110 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

相关问题