Flex编译器的一些参数

Flash Builder/Flex Builder compiler arguments 的设置【编译参数】

-default-background-color int

-default-frame-rate int

-default-size width height

设置SWF的背景色,帧频与宽高,这个也可以通过元标签设置,诸如 [SWF(width="720",height="560",backgroundColor="#000000")]

-default-script-limits

-max-recursion-depth

-max-execution-time

定义应用脚本程序的执行限制,最大代码条目,最大递归层次,最大的执行时间

-debug=true|false

是否生成调试用SWF,调试用SWF会比一般的SWF要大。在Flex Builder中,默认为true,而在以Release方式时发布时,默认为false,所以用Release发布的文件会被debug时小很多。

-optimize=true|false 优化as,减少文件大小,增加性能,默认为true。

-strict=true|false 是否采用严谨模式

-use-network=true|false 可读取网络或者可读取本地文件

-includes class [...] 强制导入类,不管是否曾使用过这个类

-include-libraries library [...] 强制导入SWC文件中的所有类,不管是否曾使用过这个类

-frames.frame label class_name [...] 将类绑定label标记的帧上

【后台相关】

-context-root string

-context-path string

设置{context.root}的值,这个数值被应用在flex-services.xml,flex-config.xml内,是flash Remoting的必要参数,以确认服务端目录。也可通过设置Flex Server内的context root。

-services filename 指定services-config.xml的位置,用于Flash Remoting。也可以通过新建项目的选项卡设置。

【调试时信息】

-benchmark=true|false 是否输出编译时期的详细信息,默认为true

-warnings=true|false 是否显示警告信息

-show-unused-type-selector-warnings=true|false 是否显示未使用CSS的警告信息

-show-binding-warnings=true|false 是否显示绑定失效信息

【其他】

-keep-generated-actionscript=true|false 保留编译MXML文件过程中的AS文件

原文地址:https://www.cnblogs.com/suenihy/p/2945976.html