Flex RSL Understanding

孤街浪徒 提交于 2019-12-08 12:13:16

问题


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.

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:

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?

And, even after clearing the cache, I didn't see a request for framework.swz in firebug. Why?


回答1:


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.



来源:https://stackoverflow.com/questions/2498066/flex-rsl-understanding

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!