SecurityError:错误 #2028:本地文件系统 SWF 文件 [英] SecurityError: Error #2028: Local-with-filesystem SWF file

查看:37
本文介绍了SecurityError:错误 #2028:本地文件系统 SWF 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I don't know how to tell the flash to let the swf file get connected. I used the crossdomain.xml as well but nothing have changed. here is the xml code:

<?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 文件时出现的错误(已解决):

and here is the error on the swf file when i run it from my own computer(this one solved):

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 文件时出现错误:

and here is error when i run the swf file from the website:

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

我现在该怎么办!?

推荐答案

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

Try to set "-use-network=true" in compiler's options or appropriate option in your IDE. It may help.

这篇关于SecurityError:错误 #2028:本地文件系统 SWF 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆