SecurityError: Error #2028: Local-with-filesystem SWF file

你说的曾经没有我的故事 提交于 2019-12-11 16:27:58

问题


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>

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

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!?


回答1:


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



来源:https://stackoverflow.com/questions/24887157/securityerror-error-2028-local-with-filesystem-swf-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!