使用框架RSL来减少SWF文件大小 [英] using framework RSL to reduce SWF filesize

查看:152
本文介绍了使用框架RSL来减少SWF文件大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用框架RSL来减少我的SWF文件大小。我正在使用Flex Builder来编译SWF。

我注意到当我在SWF中使用RSL进行编译时,大大减小了大小。然而,创建的框架SWF是相当大的。我如何处理新创建的框架SWF?我把它放在我的服务器上,让闪存播放器捡起来,缓存,然后坐下来享受改进的性能,还是有另一个步骤?

我不希望有额外的开销,我的自定义瑞士法郎加上框架瑞士法郎获取加载(而不是从缓存),每当应用程序正在被打。

我假设你已经编译你的应用程序来使用Flex框架作为RSL(详见 here )。

框架RSL通常由Flash Player缓存(而不是浏览器 - 正常用户RSL的情况)。加载应用程序时,Flash Player将检查框架RSL是否存在于其缓存中,如果不存在,则加载它,然后运行您的应用程序。


我如何处理新创建的swf框架?我把这个放在我的服务器上,让闪存播放器捡起来,缓存,然后坐下来享受这个无与伦比的性能,还是有另外一个步骤?

从文档:


部署应用程序时,必须确保将SWZ文件部署到指定的位置在命令行上。您还必须确保crossdomain.xml文件位于RSL的域中。为确保您的Flex应用程序可以支持旧版本的Flash Player,您还应该部署未签名的框架RSL SWF文件(除已签名的SWZ文件外),并将该文件指定为故障转移RSL。


浏览一次。


I'm using framework RSL in a bid to reduce my SWF filesize. I'm using Flex Builder to compile the SWF.

I notice a substantial size reduction when I compile with RSLs in my SWF. However the framework SWF which is created is pretty big. What do I do with the newly created framework SWF? Do I place this on my server and let flash player pick it up, cache and then sit back and enjoy the improved performance or is there another step?

I don't want to have the extra overhead of my custom swf plus the framework swf getting loaded(not from cache) each time the application is getting hit.

解决方案

I am assuming that you have compiled your application to use the Flex frameworks as a RSL (as detailed here).

The framework RSL is typically cached by the Flash Player (rather than the browser -- as is the case with normal user RSLs).

When you load your application, Flash Player checks if the framework RSL is present in its cache or not, and if it is not, loads it and then runs your application.

What do i do with the newly created framework swf? Do i place this on my server and let flash player pick it up, cache and then sit back and enjoy the imporved preformance or is there another step?

From the documentation:

When you deploy your application, you must be sure to deploy the SWZ file to the location you specified on the command line. You must also be sure that the crossdomain.xml file is in place at the RSL's domain. To ensure that your Flex application can support older versions of Flash Player, you should also deploy the unsigned framework RSL SWF file (in addition to the signed SWZ file), and specify that file as a failover RSL.

Read through the page once.

这篇关于使用框架RSL来减少SWF文件大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆