Amazon S3 和 swfaddress

发布于 2024-08-25 00:02:08 字数 1051 浏览 6 评论 0原文

我最近将一个大型 AS3 网站(大量 swf、大量 flv)迁移到 Amazon S3。除了 HTML 和 JS 文件之外,几乎所有内容都由 Amazon 存储/提供,并且运行良好。我遇到的唯一问题是我使用 SWFaddress 构建了该网站(实际上,通过 < a href="http://www.gaiaflashframework.com/index.php?www" rel="nofollow noreferrer">使用 SWFaddress 的 Gaia 框架),并且由于某种原因,SWFaddress 不再更新地址当用户从一个页面导航到另一个页面时,正确地显示栏。换句话说,URL 始终保持 http://www.mysite.com,而不是 http://www.mysite.com/#/section 如果 SWFaddress 正常运行(并且如它在迁移之前就可以运行)。

更奇怪的是,如果我去(例如)http://www.mysite.com/#/section< /a> 直接,深度链接功能正如您所期望的那样——我直接到达正确的部分。然而,离开该部分不会对地址栏产生任何影响,尽管它应该动态更新。

我在网站上设置了一个 crossdomain.xml 文件,允许从所有域进行访问,所以这不是问题,我不知道还有什么问题。任何想法将不胜感激!

PS 我通过将几乎整个站点放入 S3 存储桶中来集成 S3,然后只需将初始 swfobject embed 更改为指向 main.swf 的 S3 实例,将 S3 路径作为“基本”参数传递给嵌入的 swf,这样所有动态加载的资源和 swf 也都来自 s3。不知道这是否与我遇到的麻烦有关。

I recently migrated a large AS3 site (lots of swfs, lots of flvs) to Amazon S3. Pretty much everything but HTML and JS files is being stored/served from Amazon, and it's working well. The only problem I'm having is that I built the site using SWFaddress (actually, via the Gaia framework which uses SWFaddress), and for some reason, SWFaddress is no longer updating the address bar correctly as users navigate from page to page. In other words, the URL persistently remains http://www.mysite.com, not http://www.mysite.com/#/section as would be the case were SWFaddress functioning correctly (and as it was functioning prior to the migration).

Stranger yet, if I go to (e.g.) http://www.mysite.com/#/section directly, the deeplinking functions as you'd expect--I arrive directly at the correct section. However, navigating away from that section doesn't have any effect on the address bar, despite the fact that it should be dynamically updated.

I've got a crossdomain.xml file set up on the site that allows access from all domains, so that's not the issue, and I don't know what else might be. Any ideas would be greatly appreciated!

P.S. I integrated S3 by putting pretty much the entire site in an S3 bucket and then just changing the initial swfobject embed to point to the S3 instance of main.swf, passing in the S3 path as the "base" param to the embedded swf so that all dynamically loaded assets and swfs would also be sourced from s3. Dunno if that's related to the troubles I'm having.

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

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

发布评论

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

评论(1

樱花细雨 2024-09-01 00:02:08

这是一个跨站点脚本问题,基本上你不能从一个域调用 javascript 方法到另一个域。您也可以在您的域上设置服务器端代理脚本来欺骗浏览器(我没有尝试过 .htaccess / urlrewriting,但如果它有效的话可能会更优雅)。

This is a Cross Site Scripting problem, you cannot call javascript methods from one domain to another basically. You can alternatively setup a server-side proxy script on your domain to trick the browser (I haven't tried .htaccess / urlrewriting but might be more elegant if it works).

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