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

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

问题描述

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

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

当我在我的 SWF 中使用 RSL 进行编译时,我注意到文件大小大大减少.然而,它创建的框架 SWF 非常大.我如何处理新创建的框架 SWF?我是将它放在我的服务器上,让 Flash Player 提取、缓存,然后坐下来享受改进的性能,还是还有其他步骤?

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?

我不希望每次应用程序被命中时,我的自定义 swf 加上框架 swf 被加载(不是从缓存中)的额外开销.

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.

推荐答案

我假设您已经编译了您的应用程序以将 Flex 框架用作 RSL(详情请参见 此处).

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

框架 RSL 通常由 Flash Player(而不是浏览器 - 与普通用户 RSL 的情况一样)缓存.

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

当您加载应用程序时,Flash Player 会检查框架 RSL 是否存在于其缓存中,如果不存在,则加载它,然后运行您的应用程序.

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.

我如何处理新创建的框架 swf?我是将它放在我的服务器上,让 Flash Player 提取、缓存,然后坐下来享受改进的性能还是还有其他步骤?

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?

来自文档:

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

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.

通读一遍页面.

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

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