使用flash.net.NetConnection的连接到Web服务器
-
25-09-2019 - |
题
ActionScript 3.0参考说以下有关flash.net.NetConnection
:
The NetConnection class creates a two-way connection between a client and a server. The client can be a Flash Player or AIR application. The server can be a web server, Flash Media Server, an application server running Flash Remoting, or the Adobe Stratus service. Call NetConnection.connect() to establish the connection.
这是否意味着我做一个普通的HTTP连接使用NetConnection
对象的任何Web服务器?我很困惑,关于这个问题,进一步向下connect()
方法的部分有点说connect(): Creates a two-way connection to an application on Flash Media Server or to Flash Remoting, or creates a two-way network endpoint for RTMFP peer-to-peer group communication....Pass an "http" URL to connect to an application server running Flash Remoting.
。因此,应用服务器的的具有的以具有的Flash Remoting?
解决方案
是的,如果我记得不错,你需要对服务器端的AMF RPC服务器。
可以看AMF PHP,这对于AMF RPC调用一个开源溶液。
好运。