Flex Compiler Arguments

从上往下依次是:Flex 3.0.0, Flex 3.4, Flex 3.5, Flex 4.0, Flex 4.5.1版本的编译选项

 

Flex 3.0.0

Adobe Flex Compiler (mxmlc)

Version 3.0.0 build 477

Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved.



-benchmark

    output performance benchmark

-compiler.accessible

    alias -accessible

    generate an accessible SWF

-compiler.actionscript-file-encoding <string>

    alias -actionscript-file-encoding

    specifies actionscript file encoding. If there is no BOM in the AS3

    source files, the compiler will use this file encoding.

-compiler.allow-source-path-overlap

    alias -allow-source-path-overlap

    checks if a source-path entry is a subdirectory of another

    source-path entry. It helps make the package names of MXML components

    unambiguous. (advanced)

-compiler.as3

    alias -as3

    use the ActionScript 3 class based object model for greater

    performance and better error reporting. In the class based object

    model most built-in functions are implemented as fixed methods of

    classes. (advanced)

-compiler.context-root <context-path>

    alias -context-root

    path to replace {context.root} tokens for service channel endpoints

-compiler.debug

    alias -debug

    generates a movie that is suitable for debugging

-compiler.defaults-css-files [filename] [...]

    alias -defaults-css-files

     (advanced, repeatable)

-compiler.defaults-css-url <string>

    alias -defaults-css-url

    defines the location of the default style sheet. Setting this option

    overrides the implicit use of the defaults.css style sheet in the

    framework.swc file. (advanced)

-compiler.define <name> <value>

    alias -define

    define a global AS3 conditional compilation definition, e.g.

    -define=CONFIG::debugging,true or -define+=CONFIG::debugging,true (to

    append to existing definitions in flex-config.xml)  (advanced,

    repeatable)

-compiler.es

    alias -es

    use the ECMAScript edition 3 prototype based object model to allow

    dynamic overriding of prototype properties. In the prototype based

    object model built-in functions are implemented as dynamic properties

    of prototype objects. (advanced)

-compiler.external-library-path [path-element] [...]

    alias -external-library-path

    list of SWC files or directories to compile against but to omit from

    linking (repeatable)

-compiler.fonts.advanced-anti-aliasing

    alias -advanced-anti-aliasing

    enables advanced anti-aliasing for embedded fonts, which provides

    greater clarity for small fonts.

-compiler.fonts.flash-type

    alias -flash-type

    enables FlashType for embedded fonts, which provides greater clarity

    for small fonts.

-compiler.fonts.languages.language-range <lang> <range>

    alias -language-range

    a range to restrict the number of font glyphs embedded into the SWF

    (advanced, repeatable)

-compiler.fonts.local-fonts-snapshot <string>

    alias -local-fonts-snapshot

    File containing system font data produced by

    flex2.tools.FontSnapshot. (advanced)

-compiler.fonts.managers [manager-class] [...]

    alias -managers

    Compiler font manager classes, in policy resolution order (advanced)

-compiler.fonts.max-cached-fonts <string>

    alias -max-cached-fonts

    sets the maximum number of fonts to keep in the server cache.  The

    default value is 20. (advanced)

-compiler.fonts.max-glyphs-per-face <string>

    alias -max-glyphs-per-face

    sets the maximum number of character glyph-outlines to keep in the

    server cache for each font face. The default value is 1000.

-compiler.headless-server

    alias -headless-server

    a flag to set when Flex is running on a server without a display

    (advanced)

-compiler.include-libraries [library] [...]

    alias -include-libraries

    a list of libraries (SWCs) to completely include in the SWF

    (repeatable)

-compiler.incremental

    alias -incremental

    enables incremental compilation

-compiler.keep-all-type-selectors

    alias -keep-all-type-selectors

    disables the pruning of unused CSS type selectors (advanced)

-compiler.keep-as3-metadata [name] [...]

    alias -keep-as3-metadata

    keep the specified metadata in the SWF (advanced, repeatable)

-compiler.keep-generated-actionscript

    alias -keep-generated-actionscript

    save temporary source files generated during MXML compilation

    (advanced)

-compiler.library-path [path-element] [...]

    alias -l

    list of SWC files or directories that contain SWC files (repeatable)

-compiler.locale [locale-element] [...]

    alias -locale

    specifies the locale for internationalization (repeatable)

-compiler.mxml.compatibility-version <version>

    alias -compatibility-version

    specifies a compatibility version. e.g. -compatibility-version=2.0.1

-compiler.namespaces.namespace <uri> <manifest>

    alias -namespace

    Specify a URI to associate with a manifest of components for use as

    MXML elements (repeatable)

-compiler.optimize

    alias -optimize

    Enable post-link SWF optimization

-compiler.services <filename>

    alias -services

    path to Flex Data Services configuration file

-compiler.show-actionscript-warnings

    alias -show-actionscript-warnings

    runs the AS3 compiler in a mode that detects legal but potentially

    incorrect code

-compiler.show-binding-warnings

    alias -show-binding-warnings

    toggle whether warnings generated from data binding code are

    displayed

-compiler.show-shadowed-device-font-warnings

    alias -show-shadowed-device-font-warnings

    toggles whether warnings are displayed when an embedded font name

    shadows a device font name

-compiler.show-unused-type-selector-warnings

    alias -show-unused-type-selector-warnings

    toggle whether warnings generated from unused CSS type selectors are

    displayed

-compiler.source-path [path-element] [...]

    alias -sp

    list of path elements that form the roots of ActionScript class

    hierarchies (repeatable)

-compiler.strict

    alias -strict

    runs the AS3 compiler in strict error checking mode.

-compiler.theme [filename] [...]

    alias -theme

    list of CSS or SWC files to apply as a theme (repeatable)

-compiler.use-resource-bundle-metadata

    alias -use-resource-bundle-metadata

    determines whether resources bundles are included in the application.

-compiler.verbose-stacktraces

    alias -verbose-stacktraces

    save callstack information to the SWF for debugging (advanced)

-compiler.warn-array-tostring-changes

    alias -warn-array-tostring-changes

    Array.toString() format has changed. (advanced)

-compiler.warn-assignment-within-conditional

    alias -warn-assignment-within-conditional

    Assignment within conditional. (advanced)

-compiler.warn-bad-array-cast

    alias -warn-bad-array-cast

    Possibly invalid Array cast operation. (advanced)

-compiler.warn-bad-bool-assignment

    alias -warn-bad-bool-assignment

    Non-Boolean value used where a Boolean value was expected. (advanced)

-compiler.warn-bad-date-cast

    alias -warn-bad-date-cast

    Invalid Date cast operation. (advanced)

-compiler.warn-bad-es3-type-method

    alias -warn-bad-es3-type-method

    Unknown method. (advanced)

-compiler.warn-bad-es3-type-prop

    alias -warn-bad-es3-type-prop

    Unknown property. (advanced)

-compiler.warn-bad-nan-comparison

    alias -warn-bad-nan-comparison

    Illogical comparison with NaN. Any comparison operation involving NaN

    will evaluate to false because NaN != NaN. (advanced)

-compiler.warn-bad-null-assignment

    alias -warn-bad-null-assignment

    Impossible assignment to null. (advanced)

-compiler.warn-bad-null-comparison

    alias -warn-bad-null-comparison

    Illogical comparison with null. (advanced)

-compiler.warn-bad-undefined-comparison

    alias -warn-bad-undefined-comparison

    Illogical comparison with undefined.  Only untyped variables (or

    variables of type *) can be undefined. (advanced)

-compiler.warn-boolean-constructor-with-no-args

    alias -warn-boolean-constructor-with-no-args

    Boolean() with no arguments returns false in ActionScript 3.0.

    Boolean() returned undefined in ActionScript 2.0. (advanced)

-compiler.warn-changes-in-resolve

    alias -warn-changes-in-resolve

    __resolve is no longer supported. (advanced)

-compiler.warn-class-is-sealed

    alias -warn-class-is-sealed

    Class is sealed.  It cannot have members added to it dynamically.

    (advanced)

-compiler.warn-const-not-initialized

    alias -warn-const-not-initialized

    Constant not initialized. (advanced)

-compiler.warn-constructor-returns-value

    alias -warn-constructor-returns-value

    Function used in new expression returns a value.  Result will be what

    the function returns, rather than a new instance of that function.

    (advanced)

-compiler.warn-deprecated-event-handler-error

    alias -warn-deprecated-event-handler-error

    EventHandler was not added as a listener. (advanced)

-compiler.warn-deprecated-function-error

    alias -warn-deprecated-function-error

    Unsupported ActionScript 2.0 function. (advanced)

-compiler.warn-deprecated-property-error

    alias -warn-deprecated-property-error

    Unsupported ActionScript 2.0 property. (advanced)

-compiler.warn-duplicate-argument-names

    alias -warn-duplicate-argument-names

    More than one argument by the same name. (advanced)

-compiler.warn-duplicate-variable-def

    alias -warn-duplicate-variable-def

    Duplicate variable definition  (advanced)

-compiler.warn-for-var-in-changes

    alias -warn-for-var-in-changes

    ActionScript 3.0 iterates over an object's properties within a "for x

    in target" statement in random order. (advanced)

-compiler.warn-import-hides-class

    alias -warn-import-hides-class

    Importing a package by the same name as the current class will hide

    that class identifier in this scope. (advanced)

-compiler.warn-instance-of-changes

    alias -warn-instance-of-changes

    Use of the instanceof operator. (advanced)

-compiler.warn-internal-error

    alias -warn-internal-error

    Internal error in compiler. (advanced)

-compiler.warn-level-not-supported

    alias -warn-level-not-supported

    _level is no longer supported. For more information, see the

    flash.display package. (advanced)

-compiler.warn-missing-namespace-decl

    alias -warn-missing-namespace-decl

    Missing namespace declaration (e.g. variable is not defined to be

    public, private, etc.). (advanced)

-compiler.warn-negative-uint-literal

    alias -warn-negative-uint-literal

    Negative value will become a large positive value when assigned to a

    uint data type. (advanced)

-compiler.warn-no-constructor

    alias -warn-no-constructor

    Missing constructor. (advanced)

-compiler.warn-no-explicit-super-call-in-constructor

    alias -warn-no-explicit-super-call-in-constructor

    The super() statement was not called within the constructor.

    (advanced)

-compiler.warn-no-type-decl

    alias -warn-no-type-decl

    Missing type declaration. (advanced)

-compiler.warn-number-from-string-changes

    alias -warn-number-from-string-changes

    In ActionScript 3.0, white space is ignored and '' returns 0.

    Number() returns NaN in ActionScript 2.0 when the parameter is '' or

    contains white space. (advanced)

-compiler.warn-scoping-change-in-this

    alias -warn-scoping-change-in-this

    Change in scoping for the this keyword.  Class methods extracted from

    an instance of a class will always resolve this back to that

    instance.  In ActionScript 2.0 this is looked up dynamically based on

    where the method is invoked from. (advanced)

-compiler.warn-slow-text-field-addition

    alias -warn-slow-text-field-addition

    Inefficient use of += on a TextField. (advanced)

-compiler.warn-unlikely-function-value

    alias -warn-unlikely-function-value

    Possible missing parentheses. (advanced)

-compiler.warn-xml-class-has-changed

    alias -warn-xml-class-has-changed

    Possible usage of the ActionScript 2.0 XML class. (advanced)

-debug-password <string>

    the password to include in debuggable SWFs (advanced)

-default-background-color <int>

    default background color (may be overridden by the application code)

    (advanced)

-default-frame-rate <int>

    default frame rate to be used in the SWF. (advanced)

-default-script-limits <max-recursion-depth> <max-execution-time>

    default script execution limits (may be overridden by root

    attributes) (advanced)

-default-size <width> <height>

    default application size (may be overridden by root attributes in the

    application) (advanced)

-dump-config <filename>

    write a file containing all currently set configuration values in a

    format suitable for use as a flex config file (advanced)

-externs [symbol] [...]

    a list of symbols to omit from linking when building a SWF (advanced,

    repeatable)

-frames.frame [label] [classname] [...]

    alias -frame

    A SWF frame label with a sequence of classnames that will be linked

    onto the frame. (advanced, repeatable)

-help [keyword] [...]

    keywords are 'syntax', 'list', 'advanced', 'aliases', 'details', or a

    search term

-include-resource-bundles [bundle] [...]

    a list of resource bundles to include in the output SWC (repeatable)

-includes [symbol] [...]

    a list of symbols to always link in when building a SWF (advanced,

    repeatable)

-licenses.license <product> <serial-number>

    alias -license

    specifies a product and a serial number.  (repeatable)

-link-report <filename>

    Output a XML-formatted report of all definitions linked into the

    application. (advanced)

-load-config <filename>

    load a file containing configuration options (repeatable)

-load-externs <filename>

    an XML file containing <def>, <pre>, and <ext> symbols to omit from

    linking when building a SWF (advanced, repeatable)

-metadata.contributor <name>

    alias -contributor

    A contributor's name to store in the SWF metadata (repeatable)

-metadata.creator <name>

    alias -creator

    A creator's name to store in the SWF metadata (repeatable)

-metadata.date <text>

    alias -date

    The creation date to store in the SWF metadata

-metadata.description <text>

    alias -description

    The default description to store in the SWF metadata

-metadata.language <code>

    alias -language

    The language to store in the SWF metadata (i.e. EN, FR) (repeatable)

-metadata.localized-description <text> <lang>

    alias -localized-description

    A localized RDF/XMP description to store in the SWF metadata

    (repeatable)

-metadata.localized-title <title> <lang>

    alias -localized-title

    A localized RDF/XMP title to store in the SWF metadata (repeatable)

-metadata.publisher <name>

    alias -publisher

    A publisher's name to store in the SWF metadata (repeatable)

-metadata.title <text>

    alias -title

    The default title to store in the SWF metadata

-output <filename>

    alias -o

    the filename of the SWF movie to create

-raw-metadata <text>

    XML text to store in the SWF metadata (overrides metadata.*

    configuration) (advanced)

-resource-bundle-list <filename>

    prints a list of resource bundles to a file for input to the compc

    compiler to create a resource bundle SWC file.  (advanced)

-runtime-shared-libraries [url] [...]

    alias -rsl

    a list of runtime shared library URLs to be loaded before the

    application starts (repeatable)

-runtime-shared-library-path [path-element] [rsl-url] [policy-file-url] [rsl-url] [policy-file-url]

    alias -rslp

     (repeatable)

-static-link-runtime-shared-libraries

    alias -static-rsls

    statically link the libraries specified by the

    -runtime-shared-libraries-path option.

-target-player <version>

    specifies the version of the player the application is targeting.

    Features requiring a later version will not be compiled into the

    application. The minimum value supported is "9.0.0".

-use-network

    toggle whether the SWF is flagged for access to network resources

-verify-digests

    verifies the libraries loaded at runtime are the correct ones.

    (advanced)

-version

    display the build version of the program

-warnings

    toggle the display of warnings

Flex 3.3

Adobe Flex Compiler (mxmlc)

Version 3.3.0 build 4852

Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved.



-benchmark

    output performance benchmark

-compiler.accessible

    alias -accessible

    generate an accessible SWF

-compiler.actionscript-file-encoding <string>

    alias -actionscript-file-encoding

    specifies actionscript file encoding. If there is no BOM in the AS3

    source files, the compiler will use this file encoding.

-compiler.context-root <context-path>

    alias -context-root

    path to replace {context.root} tokens for service channel endpoints

-compiler.debug

    alias -debug

    generates a movie that is suitable for debugging

-compiler.external-library-path [path-element] [...]

    alias -external-library-path

    list of SWC files or directories to compile against but to omit from

    linking (repeatable)

-compiler.fonts.advanced-anti-aliasing

    alias -advanced-anti-aliasing

    enables advanced anti-aliasing for embedded fonts, which provides

    greater clarity for small fonts.

-compiler.fonts.flash-type

    alias -flash-type

    enables FlashType for embedded fonts, which provides greater clarity

    for small fonts.

-compiler.fonts.max-glyphs-per-face <string>

    alias -max-glyphs-per-face

    sets the maximum number of character glyph-outlines to keep in the

    server cache for each font face. The default value is 1000.

-compiler.include-libraries [library] [...]

    alias -include-libraries

    a list of libraries (SWCs) to completely include in the SWF

    (repeatable)

-compiler.incremental

    alias -incremental

    enables incremental compilation

-compiler.library-path [path-element] [...]

    alias -l

    list of SWC files or directories that contain SWC files (repeatable)

-compiler.locale [locale-element] [...]

    alias -locale

    specifies the locale for internationalization (repeatable)

-compiler.mxml.compatibility-version <version>

    alias -compatibility-version

    specifies a compatibility version. e.g. -compatibility-version=2.0.1

-compiler.namespaces.namespace <uri> <manifest>

    alias -namespace

    Specify a URI to associate with a manifest of components for use as

    MXML elements (repeatable)

-compiler.optimize

    alias -optimize

    Enable post-link SWF optimization

-compiler.services <filename>

    alias -services

    path to Flex Data Services configuration file

-compiler.show-actionscript-warnings

    alias -show-actionscript-warnings

    runs the AS3 compiler in a mode that detects legal but potentially

    incorrect code

-compiler.show-binding-warnings

    alias -show-binding-warnings

    toggle whether warnings generated from data binding code are

    displayed

-compiler.show-shadowed-device-font-warnings

    alias -show-shadowed-device-font-warnings

    toggles whether warnings are displayed when an embedded font name

    shadows a device font name

-compiler.show-unused-type-selector-warnings

    alias -show-unused-type-selector-warnings

    toggle whether warnings generated from unused CSS type selectors are

    displayed

-compiler.source-path [path-element] [...]

    alias -sp

    list of path elements that form the roots of ActionScript class

    hierarchies (repeatable)

-compiler.strict

    alias -strict

    runs the AS3 compiler in strict error checking mode.

-compiler.theme [filename] [...]

    alias -theme

    list of CSS or SWC files to apply as a theme (repeatable)

-compiler.use-resource-bundle-metadata

    alias -use-resource-bundle-metadata

    determines whether resources bundles are included in the application.

-help [keyword] [...]

    keywords are 'syntax', 'list', 'advanced', 'aliases', 'details', or a

    search term

-include-resource-bundles [bundle] [...]

    a list of resource bundles to include in the output SWC (repeatable)

-licenses.license <product> <serial-number>

    alias -license

    specifies a product and a serial number.  (repeatable)

-load-config <filename>

    load a file containing configuration options (repeatable)

-metadata.contributor <name>

    alias -contributor

    A contributor's name to store in the SWF metadata (repeatable)

-metadata.creator <name>

    alias -creator

    A creator's name to store in the SWF metadata (repeatable)

-metadata.date <text>

    alias -date

    The creation date to store in the SWF metadata

-metadata.description <text>

    alias -description

    The default description to store in the SWF metadata

-metadata.language <code>

    alias -language

    The language to store in the SWF metadata (i.e. EN, FR) (repeatable)

-metadata.localized-description <text> <lang>

    alias -localized-description

    A localized RDF/XMP description to store in the SWF metadata

    (repeatable)

-metadata.localized-title <title> <lang>

    alias -localized-title

    A localized RDF/XMP title to store in the SWF metadata (repeatable)

-metadata.publisher <name>

    alias -publisher

    A publisher's name to store in the SWF metadata (repeatable)

-metadata.title <text>

    alias -title

    The default title to store in the SWF metadata

-output <filename>

    alias -o

    the filename of the SWF movie to create

-runtime-shared-libraries [url] [...]

    alias -rsl

    a list of runtime shared library URLs to be loaded before the

    application starts (repeatable)

-runtime-shared-library-path [path-element] [rsl-url] [policy-file-url] [rsl-url] [policy-file-url]

    alias -rslp

     (repeatable)

-static-link-runtime-shared-libraries

    alias -static-rsls

    statically link the libraries specified by the

    -runtime-shared-libraries-path option.

-target-player <version>

    specifies the version of the player the application is targeting.

    Features requiring a later version will not be compiled into the

    application. The minimum value supported is "9.0.0".

-use-network

    toggle whether the SWF is flagged for access to network resources

-version

    display the build version of the program

-warnings

    toggle the display of warnings

Flex 3.4

Adobe Flex Compiler (mxmlc)

Version 3.4.0 build 6955

Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved.



-benchmark

    output performance benchmark

-compiler.accessible

    alias -accessible

    generate an accessible SWF

-compiler.actionscript-file-encoding <string>

    alias -actionscript-file-encoding

    specifies actionscript file encoding. If there is no BOM in the AS3

    source files, the compiler will use this file encoding.

-compiler.context-root <context-path>

    alias -context-root

    path to replace {context.root} tokens for service channel endpoints

-compiler.debug

    alias -debug

    generates a movie that is suitable for debugging

-compiler.external-library-path [path-element] [...]

    alias -external-library-path

    list of SWC files or directories to compile against but to omit from

    linking (repeatable)

-compiler.fonts.advanced-anti-aliasing

    alias -advanced-anti-aliasing

    enables advanced anti-aliasing for embedded fonts, which provides

    greater clarity for small fonts.

-compiler.fonts.flash-type

    alias -flash-type

    enables FlashType for embedded fonts, which provides greater clarity

    for small fonts.

-compiler.fonts.max-glyphs-per-face <string>

    alias -max-glyphs-per-face

    sets the maximum number of character glyph-outlines to keep in the

    server cache for each font face. The default value is 1000.

-compiler.include-libraries [library] [...]

    alias -include-libraries

    a list of libraries (SWCs) to completely include in the SWF

    (repeatable)

-compiler.incremental

    alias -incremental

    enables incremental compilation

-compiler.library-path [path-element] [...]

    alias -l

    list of SWC files or directories that contain SWC files (repeatable)

-compiler.locale [locale-element] [...]

    alias -locale

    specifies the locale for internationalization (repeatable)

-compiler.mxml.compatibility-version <version>

    alias -compatibility-version

    specifies a compatibility version. e.g. -compatibility-version=2.0.1

-compiler.namespaces.namespace <uri> <manifest>

    alias -namespace

    Specify a URI to associate with a manifest of components for use as

    MXML elements (repeatable)

-compiler.optimize

    alias -optimize

    Enable post-link SWF optimization

-compiler.services <filename>

    alias -services

    path to Flex Data Services configuration file

-compiler.show-actionscript-warnings

    alias -show-actionscript-warnings

    runs the AS3 compiler in a mode that detects legal but potentially

    incorrect code

-compiler.show-binding-warnings

    alias -show-binding-warnings

    toggle whether warnings generated from data binding code are

    displayed

-compiler.show-shadowed-device-font-warnings

    alias -show-shadowed-device-font-warnings

    toggles whether warnings are displayed when an embedded font name

    shadows a device font name

-compiler.show-unused-type-selector-warnings

    alias -show-unused-type-selector-warnings

    toggle whether warnings generated from unused CSS type selectors are

    displayed

-compiler.source-path [path-element] [...]

    alias -sp

    list of path elements that form the roots of ActionScript class

    hierarchies (repeatable)

-compiler.strict

    alias -strict

    runs the AS3 compiler in strict error checking mode.

-compiler.theme [filename] [...]

    alias -theme

    list of CSS or SWC files to apply as a theme (repeatable)

-compiler.use-resource-bundle-metadata

    alias -use-resource-bundle-metadata

    determines whether resources bundles are included in the application.

-help [keyword] [...]

    keywords are 'syntax', 'list', 'advanced', 'aliases', 'details', or a

    search term

-include-resource-bundles [bundle] [...]

    a list of resource bundles to include in the output SWC (repeatable)

-licenses.license <product> <serial-number>

    alias -license

    specifies a product and a serial number.  (repeatable)

-load-config <filename>

    load a file containing configuration options (repeatable)

-metadata.contributor <name>

    alias -contributor

    A contributor's name to store in the SWF metadata (repeatable)

-metadata.creator <name>

    alias -creator

    A creator's name to store in the SWF metadata (repeatable)

-metadata.date <text>

    alias -date

    The creation date to store in the SWF metadata

-metadata.description <text>

    alias -description

    The default description to store in the SWF metadata

-metadata.language <code>

    alias -language

    The language to store in the SWF metadata (i.e. EN, FR) (repeatable)

-metadata.localized-description <text> <lang>

    alias -localized-description

    A localized RDF/XMP description to store in the SWF metadata

    (repeatable)

-metadata.localized-title <title> <lang>

    alias -localized-title

    A localized RDF/XMP title to store in the SWF metadata (repeatable)

-metadata.publisher <name>

    alias -publisher

    A publisher's name to store in the SWF metadata (repeatable)

-metadata.title <text>

    alias -title

    The default title to store in the SWF metadata

-output <filename>

    alias -o

    the filename of the SWF movie to create

-runtime-shared-libraries [url] [...]

    alias -rsl

    a list of runtime shared library URLs to be loaded before the

    application starts (repeatable)

-runtime-shared-library-path [path-element] [rsl-url] [policy-file-url] [rsl-url] [policy-file-url]

    alias -rslp

     (repeatable)

-static-link-runtime-shared-libraries

    alias -static-rsls

    statically link the libraries specified by the

    -runtime-shared-libraries-path option.

-target-player <version>

    specifies the version of the player the application is targeting.

    Features requiring a later version will not be compiled into the

    application. The minimum value supported is "9.0.0".

-use-network

    toggle whether the SWF is flagged for access to network resources

-version

    display the build version of the program

-warnings

    toggle the display of warnings

Flex 4.0

Adobe Flex Compiler (mxmlc)

Version 4.0.0 build 7219

Copyright (c) 2004-2009 Adobe Systems, Inc. All rights reserved.



-benchmark

    output performance benchmark

-compiler.accessible

    alias -accessible

    generate an accessible SWF

-compiler.actionscript-file-encoding <string>

    alias -actionscript-file-encoding

    specifies actionscript file encoding. If there is no BOM in the AS3

    source files, the compiler will use this file encoding.

-compiler.context-root <context-path>

    alias -context-root

    path to replace {context.root} tokens for service channel endpoints

-compiler.debug

    alias -debug

    generates a movie that is suitable for debugging

-compiler.external-library-path [path-element] [...]

    alias -external-library-path

    list of SWC files or directories to compile against but to omit from

    linking (repeatable)

-compiler.fonts.advanced-anti-aliasing

    alias -advanced-anti-aliasing

    enables advanced anti-aliasing for embedded fonts, which provides

    greater clarity for small fonts.

-compiler.fonts.flash-type

    alias -flash-type

    enables FlashType for embedded fonts, which provides greater clarity

    for small fonts.

-compiler.fonts.max-glyphs-per-face <string>

    alias -max-glyphs-per-face

    sets the maximum number of character glyph-outlines to keep in the

    server cache for each font face. The default value is 1000.

-compiler.include-libraries [library] [...]

    alias -include-libraries

    a list of libraries (SWCs) to completely include in the SWF

    (repeatable)

-compiler.incremental

    alias -incremental

    enables incremental compilation

-compiler.library-path [path-element] [...]

    alias -l

    list of SWC files or directories that contain SWC files (repeatable)

-compiler.locale [locale-element] [...]

    alias -locale

    specifies the locale for internationalization (repeatable)

-compiler.mxml.compatibility-version <version>

    alias -compatibility-version

    specifies a compatibility version. e.g. -compatibility-version=2.0.1

-compiler.namespaces.namespace [uri] [manifest] [...]

    alias -namespace

    Specify a URI to associate with a manifest of components for use as

    MXML elements (repeatable)

-compiler.optimize

    alias -optimize

    Enable post-link SWF optimization

-compiler.services <filename>

    alias -services

    path to Flex Data Services configuration file

-compiler.show-actionscript-warnings

    alias -show-actionscript-warnings

    runs the AS3 compiler in a mode that detects legal but potentially

    incorrect code

-compiler.show-binding-warnings

    alias -show-binding-warnings

    toggle whether warnings generated from data binding code are

    displayed

-compiler.show-shadowed-device-font-warnings

    alias -show-shadowed-device-font-warnings

    toggles whether warnings are displayed when an embedded font name

    shadows a device font name

-compiler.show-unused-type-selector-warnings

    alias -show-unused-type-selector-warnings

    toggle whether warnings generated from unused CSS type selectors are

    displayed

-compiler.source-path [path-element] [...]

    alias -sp

    list of path elements that form the roots of ActionScript class

    hierarchies (repeatable)

-compiler.strict

    alias -strict

    runs the AS3 compiler in strict error checking mode.

-compiler.theme [filename] [...]

    alias -theme

    list of CSS or SWC files to apply as a theme (repeatable)

-compiler.use-resource-bundle-metadata

    alias -use-resource-bundle-metadata

    determines whether resources bundles are included in the application.

-framework <string>

-help [keyword] [...]

    keywords are 'syntax', 'list', 'advanced', 'aliases', 'details', or a

    search term

-include-resource-bundles [bundle] [...]

    a list of resource bundles to include in the output SWC (repeatable)

-licenses.license <product> <serial-number>

    alias -license

    specifies a product and a serial number.  (repeatable)

-load-config <filename>

    load a file containing configuration options (repeatable)

-metadata.contributor <name>

    alias -contributor

    A contributor's name to store in the SWF metadata (repeatable)

-metadata.creator <name>

    alias -creator

    A creator's name to store in the SWF metadata (repeatable)

-metadata.date <text>

    alias -date

    The creation date to store in the SWF metadata

-metadata.description <text>

    alias -description

    The default description to store in the SWF metadata

-metadata.language <code>

    alias -language

    The language to store in the SWF metadata (i.e. EN, FR) (repeatable)

-metadata.localized-description <text> <lang>

    alias -localized-description

    A localized RDF/XMP description to store in the SWF metadata

    (repeatable)

-metadata.localized-title <title> <lang>

    alias -localized-title

    A localized RDF/XMP title to store in the SWF metadata (repeatable)

-metadata.publisher <name>

    alias -publisher

    A publisher's name to store in the SWF metadata (repeatable)

-metadata.title <text>

    alias -title

    The default title to store in the SWF metadata

-output <filename>

    alias -o

    the filename of the SWF movie to create

-runtime-shared-libraries [url] [...]

    alias -rsl

    a list of runtime shared library URLs to be loaded before the

    application starts (repeatable)

-runtime-shared-library-path [path-element] [rsl-url] [policy-file-url] [rsl-url] [policy-file-url]

    alias -rslp

     (repeatable)

-static-link-runtime-shared-libraries

    alias -static-rsls

    statically link the libraries specified by the

    -runtime-shared-libraries-path option.

-target-player <version>

    specifies the version of the player the application is targeting.

    Features requiring a later version will not be compiled into the

    application. The minimum value supported is "9.0.0".

-use-network

    toggle whether the SWF is flagged for access to network resources

-version

    display the build version of the program

-warnings

    toggle the display of warnings

Flex 4.5.1

Adobe Flex Compiler (mxmlc)

Version 4.5.1 build 21328

Copyright (c) 2004-2011 Adobe Systems, Inc. All rights reserved.





-accessible

    full name -compiler.accessible

    generate an accessible SWF

-actionscript-file-encoding <string>

    full name -compiler.actionscript-file-encoding

    specifies actionscript file encoding. If there is no BOM in the AS3

    source files, the compiler will use this file encoding.

-advanced-anti-aliasing

    full name -compiler.fonts.advanced-anti-aliasing

    enables advanced anti-aliasing for embedded fonts, which provides

    greater clarity for small fonts.

-allow-source-path-overlap

    full name -compiler.allow-source-path-overlap

    checks if a source-path entry is a subdirectory of another

    source-path entry. It helps make the package names of MXML components

    unambiguous. (advanced)

-as3

    full name -compiler.as3

    use the ActionScript 3 class based object model for greater

    performance and better error reporting. In the class based object

    model most built-in functions are implemented as fixed methods of

    classes. (advanced)

-benchmark

    output performance benchmark

-compatibility-version <version>

    full name -compiler.mxml.compatibility-version

    specifies a compatibility version. e.g. -compatibility-version=2.0.1

-compiler.mxml.minimum-supported-version <string>

-compress

    full name -compiler.compress

-context-root <context-path>

    full name -compiler.context-root

    path to replace {context.root} tokens for service channel endpoints

-contributor <name>

    full name -metadata.contributor

    A contributor's name to store in the SWF metadata (repeatable)

-creator <name>

    full name -metadata.creator

    A creator's name to store in the SWF metadata (repeatable)

-date <text>

    full name -metadata.date

    The creation date to store in the SWF metadata

-debug

    full name -compiler.debug

    generates a movie that is suitable for debugging

-debug-password <string>

    the password to include in debuggable SWFs (advanced)

-default-background-color <int>

    default background color (may be overridden by the application code)

    (advanced)

-default-frame-rate <int>

    default frame rate to be used in the SWF. (advanced)

-default-script-limits <max-recursion-depth> <max-execution-time>

    default script execution limits (may be overridden by root

    attributes) (advanced)

-default-size <width> <height>

    default application size (may be overridden by root attributes in the

    application) (advanced)

-defaults-css-files [filename] [...]

    full name -compiler.defaults-css-files

     (advanced, repeatable)

-defaults-css-url <string>

    full name -compiler.defaults-css-url

    defines the location of the default style sheet. Setting this option

    overrides the implicit use of the defaults.css style sheet in the

    framework.swc file. (advanced)

-define <name> <value>

    full name -compiler.define

    define a global AS3 conditional compilation definition, e.g.

    -define=CONFIG::debugging,true or -define+=CONFIG::debugging,true (to

    append to existing definitions in flex-config.xml)  (advanced,

    repeatable)

-description <text>

    full name -metadata.description

    The default description to store in the SWF metadata

-dump-config <filename>

    write a file containing all currently set configuration values in a

    format suitable for use as a flex config file (advanced)

-enable-runtime-design-layers

    full name -compiler.enable-runtime-design-layers

-es

    full name -compiler.es

    use the ECMAScript edition 3 prototype based object model to allow

    dynamic overriding of prototype properties. In the prototype based

    object model built-in functions are implemented as dynamic properties

    of prototype objects. (advanced)

-extension [extension] [parameters] [...]

    full name -compiler.extensions.extension

     (repeatable)

-external-library-path [path-element] [...]

    full name -compiler.external-library-path

    list of SWC files or directories to compile against but to omit from

    linking (repeatable)

-externs [symbol] [...]

    a list of symbols to omit from linking when building a SWF (advanced,

    repeatable)

-flash-type

    full name -compiler.fonts.flash-type

    enables FlashType for embedded fonts, which provides greater clarity

    for small fonts.

-force-rsls [path-element] [...]

    full name -runtime-shared-library-settings.force-rsls

    force an RSL to be loaded, overriding the removal caused by using the

    remove-unused-rsls option (advanced, repeatable)

-frame [label] [classname] [...]

    full name -frames.frame

    A SWF frame label with a sequence of classnames that will be linked

    onto the frame. (advanced, repeatable)

-framework <string>

-headless-server

    full name -compiler.headless-server

    a flag to set when Flex is running on a server without a display

    (advanced)

-help [keyword] [...]

    keywords are 'syntax', 'list', 'advanced', 'aliases', 'details', or a

    search term

-include-inheritance-dependencies-only

    only include inheritance dependencies of classes specified with

    include-classes  (advanced)

-include-libraries [library] [...]

    full name -compiler.include-libraries

    a list of libraries (SWCs) to completely include in the SWF

    (repeatable)

-include-resource-bundles [bundle] [...]

    a list of resource bundles to include in the output SWC (repeatable)

-includes [symbol] [...]

    a list of symbols to always link in when building a SWF (advanced,

    repeatable)

-incremental

    full name -compiler.incremental

    enables incremental compilation

-isolate-styles

    full name -compiler.isolate-styles

    enables the compiled application or module to set styles that only

    affect itself and its children (advanced)

-keep-all-type-selectors

    full name -compiler.keep-all-type-selectors

    disables the pruning of unused CSS type selectors (advanced)

-keep-as3-metadata [name] [...]

    full name -compiler.keep-as3-metadata

    keep the specified metadata in the SWF (advanced, repeatable)

-keep-generated-actionscript

    full name -compiler.keep-generated-actionscript

    save temporary source files generated during MXML compilation

    (advanced)

-l [path-element] [...]

    full name -compiler.library-path

    list of SWC files or directories that contain SWC files (repeatable)

-language <code>

    full name -metadata.language

    The language to store in the SWF metadata (i.e. EN, FR) (repeatable)

-language-range <lang> <range>

    full name -compiler.fonts.languages.language-range

    a range to restrict the number of font glyphs embedded into the SWF

    (advanced, repeatable)

-license <product> <serial-number>

    full name -licenses.license

    specifies a product and a serial number.  (repeatable)

-link-report <filename>

    Output a XML-formatted report of all definitions linked into the

    application. (advanced)

-load-config <filename>

    load a file containing configuration options (repeatable)

-load-externs <filename>

    an XML file containing <def>, <pre>, and <ext> symbols to omit from

    linking when building a SWF (advanced, repeatable)

-local-font-paths [path-element] [...]

    full name -compiler.fonts.local-font-paths

     (advanced)

-local-fonts-snapshot <string>

    full name -compiler.fonts.local-fonts-snapshot

    File containing system font data produced by

    flex2.tools.FontSnapshot. (advanced)

-locale [locale-element] [...]

    full name -compiler.locale

    specifies the locale for internationalization (repeatable)

-localized-description <text> <lang>

    full name -metadata.localized-description

    A localized RDF/XMP description to store in the SWF metadata

    (repeatable)

-localized-title <title> <lang>

    full name -metadata.localized-title

    A localized RDF/XMP title to store in the SWF metadata (repeatable)

-managers [manager-class] [...]

    full name -compiler.fonts.managers

    Compiler font manager classes, in policy resolution order (advanced)

-max-cached-fonts <string>

    full name -compiler.fonts.max-cached-fonts

    sets the maximum number of fonts to keep in the server cache.  The

    default value is 20. (advanced)

-max-glyphs-per-face <string>

    full name -compiler.fonts.max-glyphs-per-face

    sets the maximum number of character glyph-outlines to keep in the

    server cache for each font face. The default value is 1000.

-minimum-supported-version <string>

    full name -compiler.minimum-supported-version

-mobile

    full name -compiler.mobile

    specifies the target runtime is a mobile device

-namespace [uri] [manifest] [...]

    full name -compiler.namespaces.namespace

    Specify a URI to associate with a manifest of components for use as

    MXML elements (repeatable)

-o <filename>

    full name -output

    the filename of the SWF movie to create

-omit-trace-statements

    full name -compiler.omit-trace-statements

    toggle whether trace statements are omitted

-optimize

    full name -compiler.optimize

    Enable post-link SWF optimization

-preloader <string>

    full name -compiler.preloader

    Specifies the default value for the Application's preloader

    attribute. If not specified, the default preloader value is

    mx.preloaders.SparkDownloadProgressBar when -compatibility-version >=

    4.0 and mx.preloaders.DownloadProgressBar when -compatibility-version

    < 4.0.

-publisher <name>

    full name -metadata.publisher

    A publisher's name to store in the SWF metadata (repeatable)

-qualified-type-selectors

    full name -compiler.mxml.qualified-type-selectors

     (advanced)

-raw-metadata <text>

    XML text to store in the SWF metadata (overrides metadata.*

    configuration) (advanced)

-remove-unused-rsls

    remove RSLs that are not being used by the application (advanced)

-report-invalid-styles-as-warnings

    full name -compiler.report-invalid-styles-as-warnings

    enables reporting of invalid styles as warnings

-report-missing-required-skin-parts-as-warnings

    full name -compiler.report-missing-required-skin-parts-as-warnings

    Use this option to generate a warning instead of an error when a

    missing required skin part is detected. (advanced)

-resource-bundle-list <filename>

    prints a list of resource bundles to a file for input to the compc

    compiler to create a resource bundle SWC file.  (advanced)

-rsl [url] [...]

    full name -runtime-shared-libraries

    a list of runtime shared library URLs to be loaded before the

    application starts (repeatable)

-rsl-domain [path-element] [application-domain-target] [path-element] [application-domain-target] [path-element]

    full name -runtime-shared-library-settings.application-domain

    override the application domain an RSL is loaded into. The supported

    values are 'current', 'default', 'parent', or 'top-level'. (advanced,

    repeatable)

-rslp [path-element] [rsl-url] [policy-file-url] [rsl-url] [policy-file-url]

    full name -runtime-shared-library-path

    specifies a SWC to link against, an RSL URL to load, with an optional

    policy file URL and optional failover URLs  (repeatable)

-services <filename>

    full name -compiler.services

    path to Flex Data Services configuration file

-show-actionscript-warnings

    full name -compiler.show-actionscript-warnings

    runs the AS3 compiler in a mode that detects legal but potentially

    incorrect code

-show-binding-warnings

    full name -compiler.show-binding-warnings

    toggle whether warnings generated from data binding code are

    displayed

-show-invalid-css-property-warnings

    full name -compiler.show-invalid-css-property-warnings

    toggle whether invalid css property warnings are reported

-show-shadowed-device-font-warnings

    full name -compiler.show-shadowed-device-font-warnings

    toggles whether warnings are displayed when an embedded font name

    shadows a device font name

-show-unused-type-selector-warnings

    full name -compiler.show-unused-type-selector-warnings

    toggle whether warnings generated from unused CSS type selectors are

    displayed

-size-report <filename>

    Output an XML-formatted report detailing the size of all code and

    data linked into the application. (advanced)

-sp [path-element] [...]

    full name -compiler.source-path

    list of path elements that form the roots of ActionScript class

    hierarchies (repeatable)

-static-rsls

    full name -static-link-runtime-shared-libraries

    statically link the libraries specified by the

    -runtime-shared-libraries-path option.

-strict

    full name -compiler.strict

    runs the AS3 compiler in strict error checking mode.

-swf-version <int>

    specifies the version of the compiled SWF file.

-target-player <version>

    specifies the version of the player the application is targeting.

    Features requiring a later version will not be compiled into the

    application. The minimum value supported is "9.0.0".

-theme [filename] [...]

    full name -compiler.theme

    list of CSS or SWC files to apply as a theme (repeatable)

-title <text>

    full name -metadata.title

    The default title to store in the SWF metadata

-tools-locale <string>

    specifies the locale used by the compiler when reporting errors and

    warnings.

-use-direct-blit

    Use hardware acceleration to blit graphics to the screen, where such

    acceleration is available.

-use-gpu

    Use GPU compositing features when drawing graphics, where such

    acceleration is available.

-use-network

    toggle whether the SWF is flagged for access to network resources

-use-resource-bundle-metadata

    full name -compiler.use-resource-bundle-metadata

    determines whether resources bundles are included in the application.

-verbose-stacktraces

    full name -compiler.verbose-stacktraces

    save callstack information to the SWF for debugging

-verify-digests

    verifies the libraries loaded at runtime are the correct ones.

    (advanced)

-version

    display the build version of the program

-warn-array-tostring-changes

    full name -compiler.warn-array-tostring-changes

    Array.toString() format has changed. (advanced)

-warn-assignment-within-conditional

    full name -compiler.warn-assignment-within-conditional

    Assignment within conditional. (advanced)

-warn-bad-array-cast

    full name -compiler.warn-bad-array-cast

    Possibly invalid Array cast operation. (advanced)

-warn-bad-bool-assignment

    full name -compiler.warn-bad-bool-assignment

    Non-Boolean value used where a Boolean value was expected. (advanced)

-warn-bad-date-cast

    full name -compiler.warn-bad-date-cast

    Invalid Date cast operation. (advanced)

-warn-bad-es3-type-method

    full name -compiler.warn-bad-es3-type-method

    Unknown method. (advanced)

-warn-bad-es3-type-prop

    full name -compiler.warn-bad-es3-type-prop

    Unknown property. (advanced)

-warn-bad-nan-comparison

    full name -compiler.warn-bad-nan-comparison

    Illogical comparison with NaN. Any comparison operation involving NaN

    will evaluate to false because NaN != NaN. (advanced)

-warn-bad-null-assignment

    full name -compiler.warn-bad-null-assignment

    Impossible assignment to null. (advanced)

-warn-bad-null-comparison

    full name -compiler.warn-bad-null-comparison

    Illogical comparison with null. (advanced)

-warn-bad-undefined-comparison

    full name -compiler.warn-bad-undefined-comparison

    Illogical comparison with undefined.  Only untyped variables (or

    variables of type *) can be undefined. (advanced)

-warn-boolean-constructor-with-no-args

    full name -compiler.warn-boolean-constructor-with-no-args

    Boolean() with no arguments returns false in ActionScript 3.0.

    Boolean() returned undefined in ActionScript 2.0. (advanced)

-warn-changes-in-resolve

    full name -compiler.warn-changes-in-resolve

    __resolve is no longer supported. (advanced)

-warn-class-is-sealed

    full name -compiler.warn-class-is-sealed

    Class is sealed.  It cannot have members added to it dynamically.

    (advanced)

-warn-const-not-initialized

    full name -compiler.warn-const-not-initialized

    Constant not initialized. (advanced)

-warn-constructor-returns-value

    full name -compiler.warn-constructor-returns-value

    Function used in new expression returns a value.  Result will be what

    the function returns, rather than a new instance of that function.

    (advanced)

-warn-deprecated-event-handler-error

    full name -compiler.warn-deprecated-event-handler-error

    EventHandler was not added as a listener. (advanced)

-warn-deprecated-function-error

    full name -compiler.warn-deprecated-function-error

    Unsupported ActionScript 2.0 function. (advanced)

-warn-deprecated-property-error

    full name -compiler.warn-deprecated-property-error

    Unsupported ActionScript 2.0 property. (advanced)

-warn-duplicate-argument-names

    full name -compiler.warn-duplicate-argument-names

    More than one argument by the same name. (advanced)

-warn-duplicate-variable-def

    full name -compiler.warn-duplicate-variable-def

    Duplicate variable definition  (advanced)

-warn-for-var-in-changes

    full name -compiler.warn-for-var-in-changes

    ActionScript 3.0 iterates over an object's properties within a "for x

    in target" statement in random order. (advanced)

-warn-import-hides-class

    full name -compiler.warn-import-hides-class

    Importing a package by the same name as the current class will hide

    that class identifier in this scope. (advanced)

-warn-instance-of-changes

    full name -compiler.warn-instance-of-changes

    Use of the instanceof operator. (advanced)

-warn-internal-error

    full name -compiler.warn-internal-error

    Internal error in compiler. (advanced)

-warn-level-not-supported

    full name -compiler.warn-level-not-supported

    _level is no longer supported. For more information, see the

    flash.display package. (advanced)

-warn-missing-namespace-decl

    full name -compiler.warn-missing-namespace-decl

    Missing namespace declaration (e.g. variable is not defined to be

    public, private, etc.). (advanced)

-warn-negative-uint-literal

    full name -compiler.warn-negative-uint-literal

    Negative value will become a large positive value when assigned to a

    uint data type. (advanced)

-warn-no-constructor

    full name -compiler.warn-no-constructor

    Missing constructor. (advanced)

-warn-no-explicit-super-call-in-constructor

    full name -compiler.warn-no-explicit-super-call-in-constructor

    The super() statement was not called within the constructor.

    (advanced)

-warn-no-type-decl

    full name -compiler.warn-no-type-decl

    Missing type declaration. (advanced)

-warn-number-from-string-changes

    full name -compiler.warn-number-from-string-changes

    In ActionScript 3.0, white space is ignored and '' returns 0.

    Number() returns NaN in ActionScript 2.0 when the parameter is '' or

    contains white space. (advanced)

-warn-scoping-change-in-this

    full name -compiler.warn-scoping-change-in-this

    Change in scoping for the this keyword.  Class methods extracted from

    an instance of a class will always resolve this back to that

    instance.  In ActionScript 2.0 this is looked up dynamically based on

    where the method is invoked from. (advanced)

-warn-slow-text-field-addition

    full name -compiler.warn-slow-text-field-addition

    Inefficient use of += on a TextField. (advanced)

-warn-unlikely-function-value

    full name -compiler.warn-unlikely-function-value

    Possible missing parentheses. (advanced)

-warn-xml-class-has-changed

    full name -compiler.warn-xml-class-has-changed

    Possible usage of the ActionScript 2.0 XML class. (advanced)

-warnings

    toggle the display of warnings

 

你可能感兴趣的:(arguments)