我喜欢实现Flex到服务器彗星/长轮询游戏 [英] I like to implement Flex to Server comet / long polling for games

查看:139
本文介绍了我喜欢实现Flex到服务器彗星/长轮询游戏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想问一下,如果有人已经做过,或者有可能管理Flash /通过长轮询/慧星服务器来支持多用户游戏?

解决方案

当然这是可能的。我建议使用 URLStream (它提供了低级访问从URL下载数据)在客户端接收数据,因为大多数其他方法要么不给你下载的数据连续(各种装载机)或有代理(套接字)的问题。请注意, URLStream 为您提供二进制数据。使用 ProgressEvent.PROGRESS 事件不断接收数据。

I need to try and implement port 80 flex games to server method.

I like to ask if someone already did it before or it is possible to manage flash/flex multi user games with long polling / comet server ?

解决方案

Of course it is possible. I'd suggest using URLStream (which provides low-level access to downloading data from URL) to receive data on client, since most other methods either do not give you downloaded data continuously (various Loaders) or have problems with proxies (Sockets). Note that URLStream gives you binary data. Use ProgressEvent.PROGRESS event to receive data continuously.

这篇关于我喜欢实现Flex到服务器彗星/长轮询游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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