I like to implement Flex to Server comet / long polling for games

一笑奈何 提交于 2019-12-07 17:04:12

问题


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 ?


回答1:


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.



来源:https://stackoverflow.com/questions/649712/i-like-to-implement-flex-to-server-comet-long-polling-for-games

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!