我可以从不同的 Amazon S3 存储桶检索我的 Flex .swf 和图像吗?
我在一个 Amazon S3 存储桶中有一个 Flex 3 SWF,它动态加载存储在另一个 S3 存储桶中的按钮的图像。
我在每个存储桶中设置了一个完全打开的 crossdomain.xml 文件,但是当我从我的网站调用 SWF 时,仅加载几个按钮图像 - 并且它们只是“向上”或“正常”状态按钮图像(即不是“向下”、“超过”或“禁用”)。
我曾希望仅设置一个开放的 crossdomain.xml 策略文件就足以让我跨这些不同的域提取图像,但它显然不起作用。
我想要尽可能简单的解决方案,但我一直在阅读有关使用 SHIM 电影(听起来并不简单)或使用 PHP 作为代理的信息 - 但我认为我不会可以使用 S3 来做到这一点,因为它不是一个实际的服务器。
我非常感谢做过类似事情的人对此的任何想法。
I have a Flex 3 SWF in one Amazon S3 bucket, which dynamically loads images for buttons which are stored in another S3 bucket.
I have set a completely open crossdomain.xml file in each bucket, but when I call the SWF from my web site, only a few button images load - and they're just the 'up' or 'normal' state button images (i.e. not 'down', 'over' or 'disabled').
I had hoped that just setting an open crossdomain.xml policy file would have been enough to allow me to pull images across these different domains, but it's clearly not working.
I'd like as simple-a-solution as possible, but I have been reading about using either a SHIM movie (which doesn't sound straightforward) or using PHP, for example, as a proxy - but I don't think I can do this with S3, as it's not an actual server, as such.
I would greatly appreciate any thoughts on this from people who have done something similar.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了跟进此事,我按照 James Lawruk 的建议进行操作,并将内容传输到本地服务器,但仍然失败。在开始研究这个之前,我没有意识到一些事情,以及我学到的东西:
Amazon S3 存储桶支持嵌套结构(出于某种原因,我说服自己它们只能容纳平面文件结构 - 我不知道为什么!)
放置一个
crossdomain.xml< S3 存储桶根目录中的 /code> 文件是解决此问题的关键
crossdomain.xml
文件在 Flash Player 9 及之后的版本中发生了更改,并且 - 我相信 - 在 v10 及之后的版本中,有一些额外的命令与我需要实现的主文件行为有关。一些感兴趣的链接:
http://www.jodieorourke.com/view .php?id=108&blog=news
http:// developer.amazonwebservices.com/connect/entry.jspa?externalID=2011
Just to follow-up on this, I did as James Lawruk suggested and brought the content to a local server, where it was still failing. Some things I hadn't appreciated before I started looking at this, and what I learned:
Amazon S3 buckets support nested structures (for some reason I'd convinced myself they could only hold flat file structures - I don't know why!)
placing a
crossdomain.xml
file in the root of the S3 bucket was the key to sorting this outcrossdomain.xml
files changed in Flash Player 9 onwards and - I believe - in v10 onwards there are extra commands to do with master file behaviour, which I needed to implement.Some links of interest:
http://www.jodieorourke.com/view.php?id=108&blog=news
http://developer.amazonwebservices.com/connect/entry.jspa?externalID=2011