有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java如何访问flash内部的外部数据?

我是flash新手,我有一个flash(.swf)文件,可以通过WSDL方法显示我的数据库内容。当它被加载时,我可以看到我的数据,但当它试图在内部刷新flash对象时,它会显示一些错误

我使用eclipse进行开发,Tomcat 7作为Web服务器

我已经放置了crossdomain。xml在/Root文件夹中,我能够显示跨域。通过点击

"http://localhost:8080/crossdomain.xml"

(Note : 1. Both web service and flash file are running in the same server.
        2. This error occurs only before accessing any data from server, once data is accessed the error is not generating anymore)

当flash文件试图刷新自身时,会显示以下错误

——>

To access external data, add a cross-domain policy file to the external data web server.



For more information, on the Adobe website, see the article "Cross-domain Policy File Specification".



If the problem persists, contact the file creator or your system administrator.


Error: Error #2032

Connection Type: Web Service

File URL: http://localhost:8080/StudentService/performance.swf

External Data URL: http://localhost:8080/StudentService/services/StudentService

共 (0) 个答案