【问题标题】:SecurityError: Error #2028: Local-with-filesystem SWF fileSecurityError:错误 #2028:本地文件系统 SWF 文件
【发布时间】:2014-07-22 12:15:32
【问题描述】:

我不知道如何告诉闪存让 swf 文件连接。 我也使用了 crossdomain.xml,但没有任何改变。 这是xml代码:

<?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()

当我从网站运行 swf 文件时出现错误:

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

我现在该怎么办!?

【问题讨论】:

    标签: actionscript-3 flash google-maps api-key


    【解决方案1】:

    Try to set "-use-network=true" in compiler's options or appropriate option in your IDE.它可能会有所帮助。

    【讨论】:

    • 问题是我的 IDE (flash cs6) 中合适的选项是什么?
    • 我解决了我的一些问题。现在使用我的 Flash 播放器安全文件夹中的 cfg 文件,swf 文件在我的计算机上工作正常,错误消失了。但我在网站上仍然遇到同样的问题。
    • 在 CS6 中,可以在“文件->发布设置->高级->本地播放安全性中更改此选项
    • 好的,它有 2 个选项:1.仅访问网络 2.仅访问本地文件。我使用了这两个选项,但我的网站上仍然存在问题。
    • 我也在第一帧写了这段代码:Security.allowDomain("*"); Security.LOCAL_WITH_NETWORK; Security.loadPolicyFile("dan​​iel-3dpanel.ir/crossdomain.xml");
    猜你喜欢
    • 2012-06-30
    • 2012-02-29
    • 2012-08-19
    • 1970-01-01
    • 2021-08-08
    • 1970-01-01
    • 2012-05-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多