`

Flash Builder 编译器选项

 
阅读更多
  • -benchmark
        输出性能基准
  • -compiler.accessible
        别名 -accessible
        生成可访问的 SWF
  • -compiler.actionscript-file-encoding <string>
        别名 -actionscript-file-encoding
        指定 Actionscript 文件编码。如果 AS3 源文件中没有 BOM,则编译器将使用此文件编码。
  • -compiler.allow-source-path-overlap
        别名 -allow-source-path-overlap
        检查源路径条目是否是其它源路径条目的子目录。这有助于明确 MXML 组件的数据包名称。 (高级)
  • -compiler.as3
        别名 -as3
        使用基于 ActionScript 3
        类的对象模型可以获得更高的性能和更出色的错误报告功能。在基于类的对象模型中,大多数内置函数是作为类的固定方法执行的。 (高级)
  • -compiler.context-root <context-path>
        别名 -context-root
        用于替换服务通道端点的 {context.root} 标记的路径
  • -compiler.debug
        别名 -debug
        生成适于进行调试的电影
  • -compiler.defaults-css-files [filename] [...]
        别名 -defaults-css-files
         (高级, 可重复)
  • -compiler.defaults-css-url <string>
        别名 -defaults-css-url
        定义默认样式表的位置。设置此选项可重写 framework.swc 文件中 defaults.css 样式表的隐式使用。 (高级)
  • -compiler.define <name> <value>
        别名 -define
        定义全局 AS3 条件编译定义,例如 -define=CONFIG::debugging,true 或
        -define+=CONFIG::debugging,true(以追加到 flex-config.xml 中的现有定义) (高级,
        可重复)
  • -compiler.enable-runtime-design-layers
        别名 -enable-runtime-design-layers
  • -compiler.es
        别名 -es
        使用基于 ECMAScript 版本 3
        原型的对象模型以允许动态重写原型属性。在基于原型的对象模型中,内置函数是作为原型对象的动态属性执行的。 (高级)
  • -compiler.extensions.extension [extension] [parameters] [...]
        别名 -extension
         (可重复)
  • -compiler.external-library-path [path-element] [...]
        别名 -external-library-path
        要进行编译但忽略链接的 SWC 文件或目录列表 (可重复)
  • -compiler.fonts.advanced-anti-aliasing
        别名 -advanced-anti-aliasing
        为嵌入字体启用高级消除锯齿,该功能可为小字体提供更高的清晰度。
  • -compiler.fonts.flash-type
        别名 -flash-type
        为嵌入字体启用 FlashType,该功能可为小字体提供更高的清晰度。
  • -compiler.fonts.languages.language-range <lang> <range>
        别名 -language-range
        限制嵌入 SWF 中的字体字形数的范围 (高级, 可重复)
  • -compiler.fonts.local-font-paths [path-element] [...]
        别名 -local-font-paths
         (高级)
  • -compiler.fonts.local-fonts-snapshot <string>
        别名 -local-fonts-snapshot
        包含由 flex2.tools.FontSnapshot 生成的系统字体数据的文件。 (高级)
  • -compiler.fonts.managers [manager-class] [...]
        别名 -managers
        编译器字体管理器类,以策略解析排序 (高级)
  • -compiler.fonts.max-cached-fonts <string>
        别名 -max-cached-fonts
        设置在服务器缓存中保留的字体的最大数目。默认值为 20。 (高级)
  • -compiler.fonts.max-glyphs-per-face <string>
        别名 -max-glyphs-per-face
        设置在服务器缓存中为每种字体保留的字符字形轮廓的最大数目。默认值为 1000。
  • -compiler.headless-server
        别名 -headless-server
        当 Flex 在没有显示器的服务器上运行时要设置的标志 (高级)
  • -compiler.include-libraries [library] [...]
        别名 -include-libraries
        要完全包括在 SWF 中的库 (SWC) 列表 (可重复)
  • -compiler.incremental
        别名 -incremental
        启用增量编译
  • -compiler.isolate-styles
        别名 -isolate-styles
        使已编译的应用程序或模块可以设置仅影响其自身和其子代的样式 (高级)
  • -compiler.keep-all-type-selectors
        别名 -keep-all-type-selectors
        停用删除未使用的 CSS 类型选择器 (高级)
  • -compiler.keep-as3-metadata [name] [...]
        别名 -keep-as3-metadata
        在 SWF 中保留指定的元数据 (高级, 可重复)
  • -compiler.keep-generated-actionscript
        别名 -keep-generated-actionscript
        保存在 MXML 编译期间生成的临时源文件 (高级)
  • -compiler.library-path [path-element] [...]
        别名 -l
        SWC 文件或包含 SWC 文件的目录的列表 (可重复)
  • -compiler.locale [locale-element] [...]
        别名 -locale
        指定国际化的区域 (可重复)
  • -compiler.minimum-supported-version <string>
        别名 -minimum-supported-version
  • -compiler.mxml.compatibility-version <version>
        别名 -compatibility-version
        指定兼容性版本,例如 -compatibility-version=2.0.1
  • -compiler.mxml.minimum-supported-version <string>
  • -compiler.mxml.qualified-type-selectors
        别名 -qualified-type-selectors
         (高级)
  • -compiler.namespaces.namespace [uri] [manifest] [...]
        别名 -namespace
        指定要与用作 MXML 元素的组件的清单关联的 URI (可重复)
  • -compiler.omit-trace-statements
        别名 -omit-trace-statements
        切换是否忽略 trace 语句
  • -compiler.optimize
        别名 -optimize
        启用链接后 SWF 优化
  • -compiler.report-invalid-styles-as-warnings
        别名 -report-invalid-styles-as-warnings
        将无效样式报告为警告
  • -compiler.services <filename>
        别名 -services
        到 Flex Data Services 配置文件的路径
  • -compiler.show-actionscript-warnings
        别名 -show-actionscript-warnings
        在检测合法但可能不正确的代码的模式下运行 AS3 编译器
  • -compiler.show-binding-warnings
        别名 -show-binding-warnings
        切换是否显示数据绑定代码生成的警告
  • -compiler.show-invalid-css-property-warnings
        别名 -show-invalid-css-property-warnings
        切换是否报告无效 css 属性警告
  • -compiler.show-shadowed-device-font-warnings
        别名 -show-shadowed-device-font-warnings
        切换是否在嵌入字体名称覆盖设备字体名称时显示警告
  • -compiler.show-unused-type-selector-warnings
        别名 -show-unused-type-selector-warnings
        切换是否显示未使用的 CSS 类型选择器生成的警告
  • -compiler.source-path [path-element] [...]
        别名 -sp
        构成 ActionScript 类层次根的路径元素列表 (可重复)
  • -compiler.strict
        别名 -strict
        在严格检查错误的模式下运行 AS3 编译器。
  • -compiler.theme [filename] [...]
        别名 -theme
        要应用为主题的 CSS 或 SWC 文件的列表 (可重复)
  • -compiler.use-resource-bundle-metadata
        别名 -use-resource-bundle-metadata
        确定是否在应用程序中包含资源束。
  • -compiler.verbose-stacktraces
        别名 -verbose-stacktraces
        将调用堆栈信息保存为 SWF 以供调试 (高级)
  • -compiler.warn-array-tostring-changes
        别名 -warn-array-tostring-changes
        Array.toString() 格式已更改。 (高级)
  • -compiler.warn-assignment-within-conditional
        别名 -warn-assignment-within-conditional
        在条件内的指定。 (高级)
  • -compiler.warn-bad-array-cast
        别名 -warn-bad-array-cast
        数组计算操作可能无效。 (高级)
  • -compiler.warn-bad-bool-assignment
        别名 -warn-bad-bool-assignment
        在应使用布尔值的地方使用了非布尔值。 (高级)
  • -compiler.warn-bad-date-cast
        别名 -warn-bad-date-cast
        Date 转换操作无效。 (高级)
  • -compiler.warn-bad-es3-type-method
        别名 -warn-bad-es3-type-method
        方法未知。 (高级)
  • -compiler.warn-bad-es3-type-prop
        别名 -warn-bad-es3-type-prop
        属性未知。 (高级)
  • -compiler.warn-bad-nan-comparison
        别名 -warn-bad-nan-comparison
        与 NaN 比较无意义。任何涉及到 NaN 的比较运算结果都将为 false,因为 NaN != NaN。 (高级)
  • -compiler.warn-bad-null-assignment
        别名 -warn-bad-null-assignment
        不能指定为 null。 (高级)
  • -compiler.warn-bad-null-comparison
        别名 -warn-bad-null-comparison
        与 null 比较无意义。 (高级)
  • -compiler.warn-bad-undefined-comparison
        别名 -warn-bad-undefined-comparison
        与 undefined 比较无意义。仅无类型变量(或类型为 * 的变量)允许 undefined。 (高级)
  • -compiler.warn-boolean-constructor-with-no-args
        别名 -warn-boolean-constructor-with-no-args
        在 ActionScript 3.0 中,若 Boolean() 不带参数,则会返回 false。在 ActionScript 2.0
        中,Boolean() 会返回 undefined。 (高级)
  • -compiler.warn-changes-in-resolve
        别名 -warn-changes-in-resolve
        __resolve 不再受支持。 (高级)
  • -compiler.warn-class-is-sealed
        别名 -warn-class-is-sealed
        类已封装。无法动态向其添加成员。 (高级)
  • -compiler.warn-const-not-initialized
        别名 -warn-const-not-initialized
        未初始化常量。 (高级)
  • -compiler.warn-constructor-returns-value
        别名 -warn-constructor-returns-value
        在新表达式中使用的函数返回一个值。结果将是函数返回的值,而不是该函数的新实例。 (高级)
  • -compiler.warn-deprecated-event-handler-error
        别名 -warn-deprecated-event-handler-error
        EventHandler 未作为侦听器添加。 (高级)
  • -compiler.warn-deprecated-function-error
        别名 -warn-deprecated-function-error
        不支持的 ActionScript 2.0 函数。 (高级)
  • -compiler.warn-deprecated-property-error
        别名 -warn-deprecated-property-error
        不支持的 ActionScript 2.0 属性。 (高级)
  • -compiler.warn-duplicate-argument-names
        别名 -warn-duplicate-argument-names
        多个参数具有相同名称。 (高级)
  • -compiler.warn-duplicate-variable-def
        别名 -warn-duplicate-variable-def
        变量定义重复  (高级)
  • -compiler.warn-for-var-in-changes
        别名 -warn-for-var-in-changes
        ActionScript 3.0 将会以随机顺序循环访问“for x in target”语句中的对象属性。 (高级)
  • -compiler.warn-import-hides-class
        别名 -warn-import-hides-class
        导入名称与当前类相同的数据包时,将会隐藏此范围中的该类标识符。 (高级)
  • -compiler.warn-instance-of-changes
        别名 -warn-instance-of-changes
        使用 instanceof 运算符。 (高级)
  • -compiler.warn-internal-error
        别名 -warn-internal-error
        编译器中的内部错误。 (高级)
  • -compiler.warn-level-not-supported
        别名 -warn-level-not-supported
        _level 不再受支持。有关详细信息,请参见 flash.display 数据包。 (高级)
  • -compiler.warn-missing-namespace-decl
        别名 -warn-missing-namespace-decl
        缺少命名空间声明(例如,未将变量定义为公共变量、私有变量等)。 (高级)
  • -compiler.warn-negative-uint-literal
        别名 -warn-negative-uint-literal
        指定为 uint 数据类型时,负值会变成一个较大的正值。 (高级)
  • -compiler.warn-no-constructor
        别名 -warn-no-constructor
        缺少构造函数。 (高级)
  • -compiler.warn-no-explicit-super-call-in-constructor
        别名 -warn-no-explicit-super-call-in-constructor
        未在构造函数中调用 super() 语句。 (高级)
  • -compiler.warn-no-type-decl
        别名 -warn-no-type-decl
        缺少类型声明。 (高级)
  • -compiler.warn-number-from-string-changes
        别名 -warn-number-from-string-changes
        在 ActionScript 3.0 中,忽略空格且 ” 返回 0。在 ActionScript 2.0 中,当参数是 ”
        或包含空格时,Number() 返回 NaN。 (高级)
  • -compiler.warn-scoping-change-in-this
        别名 -warn-scoping-change-in-this
        this 关键字的范围有变更。从类的实例中提取的类方法总是将 this 解析回该实例。在 ActionScript 2.0
        中,根据调用方法的位置来动态查找 this。 (高级)
  • -compiler.warn-slow-text-field-addition
        别名 -warn-slow-text-field-addition
        对文本域使用 += 无效。 (高级)
  • -compiler.warn-unlikely-function-value
        别名 -warn-unlikely-function-value
        可能缺少圆括号。 (高级)
  • -compiler.warn-xml-class-has-changed
        别名 -warn-xml-class-has-changed
        可能使用了 ActionScript 2.0 XML 类。 (高级)
  • -debug-password <string>
        要包含在可调试的 SWF 中的口令 (高级)
  • -default-background-color <int>
        默认背景颜色(应用程序代码可以重写该值) (高级)
  • -default-frame-rate <int>
        要在 SWF 中使用的默认帧频。 (高级)
  • -default-script-limits <max-recursion-depth> <max-execution-time>
        默认脚本执行限制(root 属性可以重写该值) (高级)
  • -default-size <width> <height>
        默认应用程序大小(应用程序中的 root 属性可以重写该值) (高级)
  • -dump-config <filename>
        编写一份文件,包含所有当前设置的配置值,格式要适合于作为 flex config 文件使用 (高级)
  • -externs [symbol] [...]
        构建 SWF 时要从链接中删掉的符号列表 (高级, 可重复)
  • -frames.frame [label] [classname] [...]
        别名 -frame
        带有将被链接到帧上的类名称序列的 SWF 帧标签。 (高级, 可重复)
  • -framework <string>
  • -help [keyword] [...]
        关键字为“syntax”、“list”、“advanced”、“aliases”、“details”或一个搜索条目
  • -include-resource-bundles [bundle] [...]
        要包含在输出 SWC 中的资源束列表 (可重复)
  • -includes [symbol] [...]
        构建 SWF 时总是链接的符号列表 (高级, 可重复)
  • -licenses.license <product> <serial-number>
        别名 -license
        指定产品和序列号。  (可重复)
  • -link-report <filename>
        输出所有链接到应用程序的定义的 XML 格式报告。 (高级)
  • -load-config <filename>
        加载包含配置选项的文件 (可重复)
  • -load-externs <filename>
        XML 文件,其中包含构建 SWF 时,要从链接中删除的 <def>、<pre> 和 <ext> 符号  (高级, 可重复)
  • -metadata.contributor <name>
        别名 -contributor
        要存储在 SWF 元数据中的参与者的名字 (可重复)
  • -metadata.creator <name>
        别名 -creator
        要存储在 SWF 元数据中的作者的名字 (可重复)
  • -metadata.date <text>
        别名 -date
        要存储在 SWF 元数据中的创建日期
  • -metadata.description <text>
        别名 -description
        要存储在 SWF 元数据中的默认说明
  • -metadata.language <code>
        别名 -language
        要存储在 SWF 元数据中的语言(例如 EN、FR) (可重复)
  • -metadata.localized-description <text> <lang>
        别名 -localized-description
        要存储在 SWF 元数据中的本地化的 RDF/XMP 说明 (可重复)
  • -metadata.localized-title <title> <lang>
        别名 -localized-title
        要存储在 SWF 元数据中的本地化的 RDF/XMP 标题 (可重复)
  • -metadata.publisher <name>
        别名 -publisher
        要存储在 SWF 元数据中的发布人的名字 (可重复)
  • -metadata.title <text>
        别名 -title
        要存储在 SWF 元数据中的默认标题
  • -output <filename>
        别名 -o
        要创建的 SWF 电影的文件名
  • -raw-metadata <text>
        要存储在 SWF 元数据中的 XML 文本(重写 metadata.* 配置) (高级)
  • -resource-bundle-list <filename>
        将资源束列表打印到文件,以便输入到 compc 编译器以创建资源束 SWC 文件。 (高级)
  • -runtime-shared-libraries [url] [...]
        别名 -rsl
        要在应用程序启动之前加载的运行时共享库 URL 列表 (可重复)
  • -runtime-shared-library-path [path-element] [rsl-url] [policy-file-url] [rsl-url] [policy-file-url]
        别名 -rslp
         (可重复)
  • -static-link-runtime-shared-libraries
        别名 -static-rsls
        静态链接由“-runtime-shared-libraries-path”选项指定的库。
  • -target-player <version>
        指定应用程序所针对的播放器版本。需要更高版本的功能将不会编译到应用程序中。支持的最小值是“9.0.0”。
  • -tools-locale <string>
        指定编译器在报告错误和警告时使用的区域设置。
  • -use-network
        切换是否将 SWF 标记为可以访问网络资源
  • -verify-digests
        验证运行时加载的库是否正确。 (高级)
  • -version
        显示程序的内部版本号
  • -warnings
        切换显示/不显示警告
  • 分享到:
    评论
    1 楼 A5121612886 2012-09-18  
    好文要顶!

    相关推荐

    Global site tag (gtag.js) - Google Analytics