不同html页面上的swf可以访问AS3共享对象?

发布于 2024-08-07 22:48:07 字数 136 浏览 1 评论 0原文

有没有办法制作一个共享对象,可以由两个不同网页上的两个不同的 swf 文件访问?它在本地工作,但当我将文件上传到服务器时则不工作。如果没有数据库,两个 swf 还如何共享信息?我试图在一页上设置一个设置面板,并让所有其他 Flash 文件访问这些设置。谢谢!

Is there a way to make a shared object that can be accessed by two different swf files on two different web pages? It works locally but when not when I upload the files to a server. How else can two swfs share information, without a database? I'm trying to have a settings panel on one page, and have all other flash files access the settings. Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧时光的容颜 2024-08-14 22:48:07

查看 SharedObject.getLocal():

最宽松的方法是将 localPath 设置为 /(斜杠),这使得共享对象可供域中的所有 SWF 文件使用,但会增加与域中其他共享对象发生名称冲突的可能性。

Check out the localPath parameter of SharedObject.getLocal():

The most permissive approach is to set localPath to / (slash), which makes the shared object available to all SWF files in the domain, but increases the likelihood of name conflicts with other shared objects in the domain.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文