简体   繁体   English

Flex RSL Vs模块

[英]Flex RSL Vs Modules

I am in the confusion advantages or uses of RSL and Modules. 我处于RSL和模块的混乱优势或使用中。 It is said that RSLs will be cached in the browser, so that they can be used across multiple applications without loading the same library again. 据说RSL将被缓存在浏览器中,以便它们可以在多个应用程序中使用,而无需再次加载相同的库。 My question is, Since the Modules also published as swf only and Willthey also will get cached as like any other application (swf) ? 我的问题是,由于模块也仅以swf的形式发布,Willthey也将像其他任何应用程序(swf)一样被缓存吗? What is the special logic used in the RSL will get cache? RSL将使用缓存的特殊逻辑是什么? How does the cache logic differs for RSL than Modules? RSL与模块的缓存逻辑有何不同?

thanks, Mani 谢谢,玛尼

There are two kinds of RSL's: signed (by Adobe) and unsigned (like you and I would make) RSL有两种:签名(由Adobe签名)和未签名(如您和我会写的)

The signed RSL's contain the Flex framework classes, and are actually cached by the Flash Player itself. 签名的RSL包含Flex框架类,并且实际上由Flash Player本身进行缓存。 You can reduce the size of your application by using these RSL's (the default in Flex 4). 您可以使用这些RSL(Flex 4中的默认值)来减小应用程序的大小。

You can compile your own code into unsigned RSL's or Flex Modules. 您可以将自己的代码编译成未签名的RSL或Flex模块。 Both of these are cached by the browser, as usual. 与往常一样,这两种方法都由浏览器缓存。

Module SWF's can be loaded by an application at anytime, RSL's are loaded up front at application startup. 可以随时由应用程序加载模块SWF,RSL在应用程序启动时预先加载。

Theres a definite advantage to using the Flex framework RSL's, but for your own code Modules might have an advantage b/c they don't force the code to be loaded at app startup time. 使用Flex框架RSL具有一定的优势,但是对于您自己的代码模块b / c可能具有优势,它们不会强制在应用程序启动时加载代码。

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

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