Flex RSL 理解 [英] Flex RSL Understanding
问题描述
直到现在我在
中使用合并到代码"作为框架链接"弹性生成器.现在,我将其更改为运行时共享库".在做
一个发布版本,我得到了 myapp.swf,大约 260 KB,这是早期的
接近 350 KB.它还生成了 framework.swz 和 framework.swf.
但是我在我的网站上只复制了 myapp.swf 而不是 framework.swz.
Till now I was using "Merged into code" for "Framework Linkage" in
Flex Builder. Now, I changed it to "Runtime shared library". On doing
a release build I got myapp.swf which is roughly 260 KB which was earlier
close to 350 KB. It also generated framework.swz and framework.swf.
But I copied only myapp.swf on my web site and not framework.swz.
该网站仍然可以正常工作.我还清除了 Flash Player 缓存
来自这里.它在没有 .swz 文件的情况下工作得很好.所以我的问题是:
Still the website works just fine. I also cleared the flash player cache
from here. It works just fine without the .swz file. So my questions are:
实际使用的是framework.swz文件还是Flash播放器有
事先复印一份.并且是不是通过清除
的缓存来清除该副本Flash播放器?
Is the framework.swz file actually used or does the flash player have
a copy of it beforehand. And is that copy not cleared by clearing cache of
flash player?
而且,即使在清除缓存后,我也没有看到对 framework.swz 的请求在萤火虫中.为什么?
And, even after clearing the cache, I didn't see a request for framework.swz in firebug. Why?
推荐答案
framework.swz RSL 存储在特殊的 Flash Player 缓存中.它可以跨域工作.对于那些在其缓存中还没有 RSL 的人,您肯定需要在那里使用 framework.swz 文件.在 Linux 上,缓存位于:.adobe/Flash_Player/AssetCache
The framework.swz RSL is stored in a special Flash Player cache. It works cross-domain. You will definitely need the framework.swz file there for those that don't yet have the RSL in their cache. On Linux the cache is at: .adobe/Flash_Player/AssetCache
此外,如果您还没有这样做,请确保为您的生产应用程序执行导出发布版本.这将进一步减小尺寸.
Also, if you are not already doing so, make sure you do a Export Release Build for your production app. That will reduce the size further.
这篇关于Flex RSL 理解的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!