我不知道如何告诉flash让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.
我现在该怎么办!?
尝试在编译器的选项或IDE中的适当选项中设置"-use-network=true"。也许会有帮助。