使用 flash.net.NetConnection 连接到 Web 服务器

发布于 2024-10-02 22:40:57 字数 596 浏览 1 评论 0原文

ActionScript 3.0 参考对 flash.net.NetConnection 进行了如下描述:

NetConnection 类在客户端和服务器之间创建双向连接。客户端可以是 Flash Player 或 AIR 应用程序。服务器可以是 Web 服务器、Flash Media Server、运行 Flash Remoting 的应用程序服务器或 Adob​​e Stratus 服务。调用 NetConnection.connect() 建立连接。

这是否意味着我使用 NetConnection 对象与任何 Web 服务器建立常规 HTTP 连接?我对此有点困惑,因为 connect() 方法的下面部分说 connect(): Creates a双向连接到 Flash Media Server 上的应用程序或 Flash Remoting ,或为 RTMFP 对等组通信创建双向网络端点...传递“http”URL 以连接到运行 Flash Remoting 的应用程序服务器。。那么,应用程序服务器必须拥有 Flash Remoting 吗?

The ActionScript 3.0 Reference says the following about 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.

Does this mean I make a regular HTTP connection to any web server using an NetConnection object? I am a little confused about this as further down the section on the connect() method says 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.. So, the application server has to have Flash Remoting?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

过去的过去 2024-10-09 22:40:57

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

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

祝你好运。

Yes, if I recall good, you'll need to have an AMF RPC server on the server side.

You can look at AMF PHP, which is an opensource solution for AMF RPC call.

Good luck.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文