Flash Builder 4发行版建立多个文件 [英] Flash Builder 4 Release Build multiple files

查看:172
本文介绍了Flash Builder 4发行版建立多个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我发布版本时,文件夹被填充了许多swf。这些swf是必须的吗?有没有一个选项可以生成一个SWF?



在此先感谢

编辑



我看到的文件是:


  • framework_4.5.0.18623.swf

  • osmf_1.0.0.16316.swf

  • rpc_4.5.0.18623.swf

  • spark_4.5.0 .18623.swf

  • sparkskins_4.5.0.18623.swf

  • textLayout_2.0.0.200.swf

  • playerProductInstall.swf


解决方案

我假设您使用Flash Builder 4和/或Flex 4 SDK和看到一堆SWZ文件是否正确?这些框架文件可以被玩家在多个域中缓存。通过此缓存,您的应用程序的下载大小更小,因为所有这些依赖关系都被排除在外。

如果要将所有内容合并到一个SWF中,请在Flash Builder 4中打开项目属性,然后选择Flex构建路径。你会看到一个框架链接选项。将它从运行时共享库​​更改为合并到代码中。从Flex 3移动到Flex 4时,此默认值已更改



我不知道如何通过命令行来做到这一点,但我相信也有类似的选择。



但是,这会让你的SWF变大,你不会利用框架缓存选项。

更新:
您看到的文件绝对是Flex框架文件。它们是SWF而不是SWZ的原因是因为您正在使用一个预发布SDK(4.5)和SWZs不可用于缓存。


When i make a release build the folder is populated with a number of swfs. Are all these swfs necessary? Is there a option to generate one swf?

Thanks in advance

EDIT

The files I see are:

  • framework_4.5.0.18623.swf
  • osmf_1.0.0.16316.swf
  • rpc_4.5.0.18623.swf
  • spark_4.5.0.18623.swf
  • sparkskins_4.5.0.18623.swf
  • textLayout_2.0.0.200.swf
  • playerProductInstall.swf

解决方案

I assume you're using Flash Builder 4 and/or Flex 4 SDK and see a bunch of SWZ files is that correct? These are framework files which can be cached by the player across multiple domains. Through this caching, the download size of your app is smaller because all these dependencies are left out.

If you want to combine everything to one SWF, in Flash Builder 4 open up the project properties and choose Flex build Path. You'll see a framework linkage option. Change it from "Runtime shared library" to "Merged into code. This default value was changed when moving from Flex 3 to Flex 4.

I'm not sure how to do it via command line, but I'm sure similar options exist.

Be warned, though, this will make your SWF bigger and you won't take advantage of the framework caching options.

Update: The files you're seeing are definitely Flex Framework files. The reason they are SWFs instead of SWZs is because you are using a prerelease SDK (4.5 ) and the SWZs are not available for caching yet.

这篇关于Flash Builder 4发行版建立多个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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