Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们正在尝试开发基于 Flash 的 jabber 客户端。我们如何在不实现 iframe 的情况下加载新页面时最大限度地减少轮询服务器的问题?
您可以查看在客户端存储一些数据。这通常在 Flash 游戏中完成以保存进度等。使用 Jabber,不需要像游戏那样使用这些数据进行“作弊”检测。
另一种选择可能是使用 LocalConnection 类来运行两个 Flash 小程序,一个将随页面重新加载,一个在隐藏框架中运行。隐藏的小程序将存储大部分信息以重新初始化主小程序。
另一种方法是一起消除问题,并通过 AJAX 或类似方式更新页面,而不是重新加载。