P2P Cirrus 连接 Flash 客户端和 HTML 客户端

发布于 2024-12-21 20:11:00 字数 230 浏览 7 评论 0原文

在网络中有很多p2p(Cirrus)Flash文本聊天和游戏的例子。 是否可以与 Cirrus 连接两个客户端来交换消息,其中一个是 Flash 客户端,另一个是没有 Flash 的普通 HTML(JavaScrip 和 PHP)?

当然,您可以将 flash 客户端放在第二个用户一侧,当第二个用户接收来自第一个用户的消息时,将这些消息广播为 HTML(外部接口)。但是如何将消息从 HTML 表单发送到 Flash SWF?

In a network many examples of p2p (Cirrus) Flash text chat and games.
Is it possible to connect with Cirrus two clients to exchange messages, one of which flash client and the other normal HTML (JavaScrip and PHP) without Flash?

Of course you can just put the flash-client on the side of the second user who when receiving messages from the first user to broadcast these messages to HTML (External Interface). But how to send messages from HTML forms to Flash SWF?

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

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

发布评论

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

评论(1

流年已逝 2024-12-28 20:11:00

这很简单我的朋友。你几乎已经明白了。只需在 HTML 表单上创建一个按钮,该按钮不会提交表单,而是运行 JavaScript 函数来读取它,也许 JSON 转换数据,然后使用 AS3 先前声明的回调函数 getElementByID() 将其发送到 flash 客户端.function,通过其方式,将使用闪存正常发送数据。

其他问题,您知道如何在不使用任何第三方服务的情况下设置 P2P 聊天吗?我想使用 Flash 直接与人们交流……可以举个例子吗?谢了!
[电子邮件受保护]

It's simple my friend. You almost figured it out. Just create a button on the HTML form, that does not submit the form, but run a JavaScript function to read it, maybe JSON convert the data, and send it to the flash-client using an AS3 previously declared callback function, getElementByID().function, that by its ways, will send the data normally using flash.

Other question, do you know how to setup a P2P chat without usind any third parties service? I'd like to use flash to comunicate with people directly.. an exaple maybe? tks!
[email protected]

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