0

ActionScript 3.0 Reference 对以下内容进行了说明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.

这是否意味着我使用NetConnection对象与任何 Web 服务器建立常规 HTTP 连接?我对此有点困惑,因为在该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吗?

4

1 回答 1

0

是的,如果我没记错的话,您需要在服务器端有一个 AMF RPC 服务器。

您可以查看 AMF PHP,它是 AMF RPC 调用的开源解决方案。

祝你好运。

于 2010-11-17T14:57:56.237 回答