什么是一些方法的Flash应用程序可以相互通信? [英] What are some methods that Flash apps can communicate with each other?

查看:165
本文介绍了什么是一些方法的Flash应用程序可以相互通信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个互动系统,其中两个客户端Flash应用程序会跟第三个服务器应用程序。客户端将被发送一些状态信息到服务器。我想我需要双向沟通......还没有决定服务器是否需要发回的确认报呢。

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.

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

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

到目前为止,我看到的是使服务器的AIR应用程序的唯一方法(B / C AIR有一个服务器Socket类),使客户端的Flash投影机(B / C Flash有一个套接字类)。

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).

是我可以用我的连接在一起的应用程序还有其他的方法呢?这3个机将基本上彼此住几英尺,他们将自己的专用网络。

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.

更多信息

本机将住自己的小私有网络中。他们不会被访问外面的世界。

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

推荐答案

我不得不使用AIR应用对于这一点,再一个专用的网络上大获成功。

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

我创建使用的ServerSocket 类的服务器应用程序,接受对两个不同的端口连接。连接到这些不同的端口分别为7亭应用程序和20显示应用 - 当用户选择的东西亭它转发到通过服务器应用程序,其中涉及任何冲突的用户交互的显示应用

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.

无论是信息亭和显示应用程序来处理自己的连接,具有定时不断检查 socket.connected

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

这篇关于什么是一些方法的Flash应用程序可以相互通信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆