Flash 共享对象无法在多台 PC 上运行
我正在使用 SharedObject 在用户浏览器上保存一些持久信息(例如访问过的幻灯片等)。例如,如果用户访问了幻灯片,它将突出显示将他们带到该幻灯片的按钮。如果他们关闭浏览器并重新访问该网站,该按钮仍会突出显示。它在我的笔记本电脑上运行良好。但是当我派去给我的 3 名同事进行测试时。其中两个人遇到了问题。另外一个则完全没有问题。
有什么建议吗?提前致谢。
I am using SharedObject to save some persistent information (such as visited slide, etc) on user browser. For example, if user visited the slide, it will highlight the button that takes them to that slide. If they close the browser, and revisited the website, that button will still be highlighted. It worked out well on my laptop. But when I sent out for testing to my 3 co-workers. Two of them were having problems with it. The other one has no problem at all.
Any suggestions? Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它与保存共享对象的时间有关。
为了让它正常工作,当你设置了sharedObject值后,它应该立即被存储。您可以通过从 SharedObject 调用
flush()
函数来完成此操作。这将确保它立即保存,而不是等待保存在队列中。It has to do with the timing when the sharedobject is saved.
In order for it to work properly, when you have set the sharedObject value it should be stored right away. You can do this by calling the
flush()
function from the SharedObject. This will make sure that it save right away instead of waiting to be saved in the queue.