简体   繁体   English

什么是用于闪存的RSL(运行时共享库​​)?

[英]What is RSL (Runtime shared library ) used for in flash?

Kindly note I am not asking what SWCs are used for, I know about that. 请注意,我不是在询问使用什么SWC,我知道这一点。

I want to know, the use of RSLs in flash. 我想知道,在闪存中使用RSL。 Say i have some useful classes which i currently am using by specifying the particular folder as an "Additional source folder". 假设我通过将特定文件夹指定为“其他源文件夹”,我目前正在使用一些有用的类。

So, can i make use of RSL here. 那么,我可以在这里使用RSL吗? If not, when and why i need to use RSLs ( I use SWCs without any problem, but i wanna know how to make use of RSL, without making SWCs, ie just by bunch of actionscript classes ) 如果没有,何时以及为什么我需要使用RSL(我使用SWC没有任何问题,但我想知道如何使用RSL,而不是制作SWC,即只是通过一堆actionscript类)

Thanks V. 谢谢V.

I would suggest reading Adobe's Introduction to RSLs: 我建议阅读Adobe的RSL简介:

http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf674ba-7fff.html http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf674ba-7fff.html

One way to reduce the size of your applications' SWF files is by externalizing shared assets into stand-alone files that can be separately downloaded and cached on the client. 减少应用程序SWF文件大小的一种方法是将共享资源外部化为独立文件,这些文件可以单独下载并缓存在客户端上。 These shared assets can be loaded and used by any number of applications at run time, but are transferred only once to the client. 这些共享资产可以在运行时由任意数量的应用程序加载和使用,但只能传输一次到客户端。 These shared files are known as Runtime Shared Libraries or RSLs. 这些共享文件称为运行时共享库​​或RSL。

When multiple applications share a core set of components or classes, clients can download those assets only once as an RSL rather than once for each application. 当多个应用程序共享一组核心组件或类时,客户端只能将这些资产作为RSL下载一次,而不是每个应用程序下载一次。 The RSLs are persisted on the client disk so that they do not need to be transferred across the network a second time. RSL保留在客户端磁盘上,因此不需要再次通过网络传输它们。 The resulting file size for the applications can be reduced. 可以减少应用程序的结果文件大小。 The benefits increase as the number of applications that use the RSL increases. 随着使用RSL的应用程序数量的增加,收益会增加。

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

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