Flash 应用程序可以通过哪些方法相互通信?

发布于 2025-01-02 06:32:13 字数 388 浏览 3 评论 0原文

我正在开发一个交互式系统,其中两个客户端 Flash 应用程序将与第三个服务器应用程序对话。客户端将向服务器发送一些状态信息。我想我需要两种方式的通信...尚未决定服务器是否需要发回任何确认。

这些将是在浏览器中运行的应用程序而不是 .swfs。

到目前为止,我看到的唯一方法是使服务器成为 AIR 应用程序(b/c AIR 有一个 Server Socket 类)并使客户端成为 Flash 投影仪(b/c Flash 有一个 Sockets 类)。

我可以使用其他方法将我的应用程序连接在一起吗?这 3 台机器基本上彼此相距几英尺,并且它们将位于自己的专用网络上。

更多信息

这些机器将生活在它们自己的小型专用网络中。他们将无法访问外部世界。

I'm developing an interactive system where two client flash apps will talk to a third server app. The clients will be sending some status information to the server. I think I need two way communication...haven't decided whether the server needs to send back any acknowledgements yet.

These will be applications and not .swfs that run in a browser.

So far the only method that I see are to make the server an AIR app (b/c AIR has a Server Socket class) and make the clients Flash projectors (b/c Flash has a Sockets class).

Are there other methods that I can use connect my apps together? These 3 machines will basically be living a few feet from each other and they will be on their own dedicated network.

MORE INFO

The machines will live within their own little private network. They won't be accessing the outside world.

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

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

发布评论

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

评论(3

荒人说梦 2025-01-09 06:32:13

我在专用网络上使用 AIR 应用程序取得了巨大成功。

我使用 ServerSocket 类创建了一个服务器应用程序,接受两个不同端口上的连接。连接到这些不同端口的是 7 个信息亭应用程序和 20 个显示应用程序 - 当用户在信息亭上选择某些内容时,它会通过服务器应用程序转发到显示应用程序,该服务器应用程序处理任何冲突的用户交互。

信息亭和显示应用程序都处理自己的连接,并通过计时器不断检查 socket.connected

I have had great success using AIR apps for this, again on a dedicated network.

I created a server application using the ServerSocket class, accepting connections on two different ports. Connecting to these different ports were 7 kiosk applications, and 20 display applications - When a user selected something on a kiosk it was relayed to the display applications via the server app which dealt with any conflicting user interactions.

Both the kiosk and display apps handled their own connections, with a timer continually checking socket.connected.

幼儿园老大 2025-01-09 06:32:13

我建议使用 Adob​​e Cirrus(前 Stratus)

http://labs.adobe.com/technologies/cirrus /

它完全按照您想要的方式执行。

I would suggest to use Adobe Cirrus (ex Stratus)

http://labs.adobe.com/technologies/cirrus/

It does exactly what you want to do.

时光与爱终年不遇 2025-01-09 06:32:13

我建议根据项目的预算和您期望的客户端连接数量来研究 Flash Media Interactive Server。

我过去使用 FMIS 取得了很好的效果,开发版支持最多 10 个同时连接,并且其许可协议允许商业用途。 http://forums.adobe.com/thread/856736

下载链接
https://www.adobe.com/cfusion/tdrc /index.cfm?product=flashmediaserver&loc=en_us

版本比较
http://www.adobe.com/products/flashmediaserver/compare/

另外,一起开发非常有趣:)

I would suggest looking into Flash Media Interactive Server, depending on the project's budget and how many client connections you expect.

I've used FMIS with great results in the past and the Developer Edition supports up to 10 simultaneous connections and it's license agreement allows for commercial use. http://forums.adobe.com/thread/856736

Download link
https://www.adobe.com/cfusion/tdrc/index.cfm?product=flashmediaserver&loc=en_us

Edition comparison
http://www.adobe.com/products/flashmediaserver/compare/

Plus, it's quite fun to develop with :)

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