我应该使用 rubyAMF 构建基于 Flash 的聊天吗?
正是问题所在,但这里有更多信息 -
项目涉及为 RESTful Rails 应用程序创建一个 Flash 前端,该应用程序将加载横幅广告、twitter feed、电影列表等。就 Flash 而言,所有这些都是只读的(目前)。
还有一个实时聊天窗口,可以创建私人房间。
有什么可以让我开始做这个吗?还是走错了路?搜索并没有太多结果,所以我想知道从哪里开始。 (第一次接触 AMF,对于 Actionscript/Flash 还相当陌生)
just what the question says, but here is more info -
project involves creating a Flash front-end to a RESTful Rails app that will load banner ads, twitter feed, list of movies, etc. all read-only as far as Flash is concerned (for now).
There will also be a live chat window with the ability to create private rooms.
Is there anything out there that gets me started with this? or is it the wrong way to go? searching does not turn up much so I am wondering where to begin. (first time exposed to AMF and fairly green with Actionscript/Flash as yet)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您还可以使用 XMLSocket 并创建类似 < a href="http://zerocaffe.in/2008/05/14/multiuser-chat-using-flex-and-ruby/" rel="nofollow noreferrer">这个。套接字有利于快速更新/反馈,但通常不如轮询那么简单。我不确定 rubyAMF 是否正在处理套接字或 HTTP 请求,或者两者都处理?
构建一个简单的聊天是一个有趣的项目,但如果您需要它是可扩展的,例如还需要在防火墙或其他非有趣的东西后面工作,您可能需要考虑使用完整的(商业)解决方案,可能与 Rails 分开运行应用程序。
You can also use XMLSocket and create something like this. A socket is good for quick updates/feedback, but in general less fool-proof than polling. I'm not sure if rubyAMF is handling sockets or HTTP requests or maybe both?
Building a simple chat is a fun project, but if you need it to be scalable and for example also working behind firewalls or other non-fun stuff you might want to look into using a complete (commercial) solution, possibly running separate from your Rails app.