Flash 图像被困在白框后面
我的页面上遇到了这个问题。我的图像被困在一些白盒子下面。
在这里查看它: http://kjacobsen.dk 单击存档
有人知道导致此问题的原因吗?
Flash 加载了带有 XML 1.0 的 SWFObject v1.4.4
以下是 index.html 的一部分:
<script type="text/javascript">
var so = new SWFObject("swf/kj.swf", "KJ", "100%", "100%", "8", "#000000");
so.addVariable("xmlPath", "xml/publish.xml");
so.addParam("scale", "noscale");
so.addParam("allowScriptAccess", "sameDomain");
so.addParam("menu", "false");
so.addParam("loop", "false");
so.addParam("salign", "lt");
so.addParam("align", "left");
so.write("flashcontent");
</script>
I am having that problem that on my page. My images are traped under some white boxes.
See it live here: http://kjacobsen.dk click on Archive
Anyone that know what is causing this problem?
The flash is loaded with SWFObject v1.4.4 with XML 1.0
Here is a part of the index.html:
<script type="text/javascript">
var so = new SWFObject("swf/kj.swf", "KJ", "100%", "100%", "8", "#000000");
so.addVariable("xmlPath", "xml/publish.xml");
so.addParam("scale", "noscale");
so.addParam("allowScriptAccess", "sameDomain");
so.addParam("menu", "false");
so.addParam("loop", "false");
so.addParam("salign", "lt");
so.addParam("align", "left");
so.write("flashcontent");
</script>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该行为看起来像是您遇到了订购问题。
我会首先检查 addChild 的添加顺序(不太可能)
更可能的是:
加载程序问题?
:它几乎看起来像 video 设置为 border,并且边框被设置为视频。仔细检查您的设置,看看所有内容是否都指向正确的位置/变量。
安全问题?:
可能是安全异常。因为您已将文件托管在亚马逊上(图像、电影),而 swf 位于不同的服务器上。
简单的修复。将您的 swf 文件放在 amazon s3 上的同一个存储桶中,这样域就会读取从为 Flash 应用程序本身提供服务的完全相同的主机提供的资源。如果这解决了问题,那么就会引发安全异常。
The behaviour looks like you got an ordering issue.
I would check first the order in which addChild is added (unlikely)
MORE LIKELY:
Loader issue?:
It almost looks like the video is set to be the border, and the border was set to be the video. Double check your settings to see if everything is pointing to the correct location / variable.
Security Issue?:
It may be a security exception. Because you have hosted your files on amazon (images, movies) and the swf is on a different server.
The easy fix. Place your swf file in the same bucket on amazon s3, that way the domain reads the asset served from the exact same host that serves the Flash application itself. If that fixes the problem then it was a security exception that was getting thrown.