简体   繁体   English

为什么在运行Safari和Mozilla的Mac上使用SWFBridge将AS2 SWF停止加载到AS3 SWF中?

[英]Why would my AS2 swf stop loading into AS3 swf with SWFBridge on Mac running safari and mozilla?

I have noticed that my AS2 swf that I load into an AS3 swf with SWFBridge sometimes doesnt load. 我已经注意到,我有时无法使用SWFBridge加载到AS3 SWF中的AS2 SWF。 I have usually loaded the page several times and it works fine then sometimes it does not load. 我通常已经多次加载页面,并且可以正常工作,但有时无法加载。 When I quit Safari and restart it it will work again. 当我退出Safari并重新启动它时,它将再次运行。 I havent noticed this happening on a Windows PC but only on Macbook OSX in both Safari and Mozilla. 我还没有注意到Windows PC上会发生这种情况,但是只有Safari和Mozilla的Macbook OSX上会发生这种情况。

I havent done any real debugging yet but has anyone got any leads? 我还没有进行任何实际的调试,但是有没有人得到任何线索?

thanks 谢谢

This is a long shot, but I'm wondering if your server is compressing the SWF files and they're being corrupted at some point, or improperly decompressed on the Mac? 这是一个很长的路,但是我想知道您的服务器是否正在压缩SWF文件,并且它们在某些时候已损坏或在Mac上未正确解压缩? If you can, make sure nothing is being gzipped, either by the server or by whatever you're using to publish the SWF files. 如果可以,请确保服务器或您用于发布SWF文件的所有文件均未压缩。

I've seen a similar issue where compressed files served by Apache won't render client-side... perhaps because Apache refuses to send a Content-Length header for compressed data. 我曾见过类似的问题,Apache提供的压缩文件无法呈现客户端...可能是因为Apache拒绝发送压缩数据的Content-Length标头。 I think Apache's issue is that it doesn't know whether the Content-Length should reflect the length of the data stream or the uncompressed data, and assumes that the client might make a different assumption. 我认为Apache的问题是它不知道Content-Length是否应该反映数据流的长度或未压缩的数据,并假设客户端可能做出不同的假设。 OS X might be depending on this header. OS X可能取决于此标头。

If I'm misreading your explanation and sometimes it doesn't work the first time you load it into the browser than you can probably rule this out. 如果我误解了您的解释,并且有时在您第一次将其加载到浏览器中时不起作用,那么您可以排除这种情况。

First check if it is being cached on the browser and what the cache settings on the problem browser are. 首先检查它是否正在浏览器上缓存以及问题浏览器上的缓存设置是什么。 Try changing those settings to see if it makes a difference if you see there is caching. 尝试更改这些设置,看看是否有缓存,这是否有所不同。 If you see that it is somehow related to caching issues with those browsers you can take steps to prevent the swf from being cached. 如果您发现它与这些浏览器的缓存问题有某种关系,则可以采取措施防止SWF缓存。 There are several ways you could do that. 有几种方法可以做到这一点。

The reason I suspect the browser cache is the problem is because you said that it works when you restart the browser as opposed to it works when you restart the server. 我怀疑浏览器缓存是问题的原因是因为您说重新启动浏览器时它可以工作,而不是重新启动服务器时它可以工作。 If it wasn't being cached it would probably tend to not work once and then work the next time without the browser restart. 如果没有被缓存,它可能倾向于一次不工作,然后下次不重启浏览器就工作。 Its entirely possible you have some other problem though. 您完全有可能遇到其他问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM