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

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

问题描述

我不知道该怎么告诉闪光灯让swf文件获得连接。 我用的crossdomain.xml很好,但没有发生变化。 这里是XML code:

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.

我应该怎么现在要做!?

what should i do now!?

推荐答案

尝试在编译器选项或在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天全站免登陆