P2P Cirrus connection Flash-client and HTML-client
P2P Cirrus connection Flash-client and HTML-client
在网络中有很多p2p (Cirrus) Flash文字聊天和游戏的例子。是否有可能与Cirrus两个客户端连接以交换消息,其中一个flash客户端和另一个正常的HTML (javascript和PHP)没有flash ?
当然,你可以把flash客户端放在第二个用户的一边,当接收到来自第一个用户的消息时,将这些消息广播到HTML(外部接口)。但是如何从HTML表单发送消息到Flash SWF?
这很简单,朋友。你差点就明白了。只需在HTML表单上创建一个按钮,它不提交表单,但运行一个JavaScript函数来读取它,可能是JSON转换数据,并使用AS3先前声明的回调函数getElementByID()将其发送到flash客户端。函数,通过它的方式,将正常使用flash发送数据。
还有一个问题,你知道如何在不使用任何第三方服务的情况下设置P2P聊天吗?我想用flash与人直接沟通。举个例子吧?谢谢!dulldusk@gmail.com
相关文章:
- PERL and HTML Forms
- Javascript and html, UI construction
- Jquery append and html
- MySQL Security with PHP, javascript, and HTML?
- PHP and html table, using tablesorter javascript
- Inline SVG and HTML DOM Scope for .getElementById
- Javascript date and HTML
- Javascript and HTML validation
- Lightswitch HTML Client 2013-根据表中的单元格值更改单元格颜色
- Javascript and HTML linking
- ng-repeat issue and html table
- Jquery lazyload plugin and html table issue
- P2P Cirrus connection Flash-client and HTML-client
- javascript quiz and html
- GO: javascript and html MIME error
- xpath and html value (javascript)
- combining javascript and html
- angular ng-repeat and html
- Concatenating javascript and html
- Window.confirm and html form