Flex mxmlc compilation Command Options

Source: Internet
Author: User

Recently, I want to set the compilation parameters for each SWF to better control the SWF generation. Therefore, I need to first understand the command usage of mxmlc:


 

Mxmlc Parameter options

Description

Accessible = true | false

The default value is false, indicating whether access is characteristic.

ActionScript-file-EncodingString

Sets the encoding method of the AS file. ActionScript-file-encoding = shift_jis

Advanced

List display help advanced options mxmlc-help advanced

Allow-source-path-overlap = true | false

Check whether a source folder is a subfolder of another source folder, so that the package name is clear.

As3 = true | false

Whether to use the object model of as3. the default value is true.

Benchmark = true | false

Print the detailed compilation time in the standard output. The default value is true.

Context-RootContext-Path

Set the {context. Root} placeholder value, which is generally used for Channel Definition. The default value is null.

ContributorName

Set metadata in the target SWF file.

CreatorName

Same as above

DateText

Same as above

DEBUG = true | false

Generate the SWF file for debugging. This file includes the number of lines and file names of all source files. When a runtime error occurs, this Error Tracking displays the wrong file and line number. The default value is false.

Debug-PasswordString

When flash IDE is used, use a remote session to debug the password.

Default-frame-RateInt

Sets the frame rate of SwF. The default value is 24.

Default-script-LimitsMax-recursion-depth max-execution-time

Defines the code execution limit of SwF. Max-recursion-depth specifies the maximum depth of the stack that flash player can call. The default value is 1000. Max-execution-time specifies the maximum waiting time for the as event processor to be suspended in Flash Player. The default value is 60 seconds.

Default-sizeWidth height

Defines the SWF size, in pixels

Defaults-CSS-FilesFilename[,...]

It works the same way as the defaults.css file in each swc. The difference is that you do not need to package it into a SWC file after each change. CSS files are included in the output in this way, which has better processing performance than SWC. [Advanced processing]

Defaults-CSS-URLString

Define defaults-CSS-URL

Define =Namespace: Variable, Value

Defines a global constant. This value is calculated during compilation and saved as a constant in the app. A common usage is to set an inline constant and determine whether to include a code block based on the constant in the application, the most common method is-define = config: debugging. The specific code of true can be as follows: config: Debugging {}.

DescriptionText

Set metadata.

Dump-configFilename

Output flex-config.xml compilation option mxmlc-dump-config myapp-config.xml

Es = true | false

Whether the compiler applies the prototype Object Model of ecmascript V3 to allow dynamic reloading of prototype attributes. In the prototype object model, built-in functions can be implemented as dynamic attributes of the prototype object. The default value is false. You can use the prototype Object Model of ecmascript V3 to define the type of attributes or functions in an application. If elasticsearch is set to true, strict compiler option must be set to false. Otherwise, the compiler reports an error. If elasticsearch is set to true, the as3 compilation option must be set to false.

ExternsClass_name [...]

Exclude the specified class from the link. This option allows you to check the dynamic link external reference during compilation.

External-library-PathPath-element [...]

Specify a series of SWC files or folders as RSL external links. You can use ++ = to add a new SWC file.

Fonts. Advanced-anti-aliasing = true | false

Set whether to use advanced anti-aliasing to embed the font when rendering the font. The default value is false.

Fonts. Ages. Language-RangeLang range

The range of Unicode settings in a language.

Fonts. Local-fonts-SnapshotPath_to_file

Set the path of the local font snapshot file. This file contains the system font file.

Fonts. ManagersManager-class [...]

Define the font Manager. The default value is flash. fonts. jrefontmanager. You can also use flash. fonts. batikfontmanager.

Fonts. Max-cached-FontsString

Set the maximum number of fonts cached by the server.

Fonts. Max-glyphs-per-faceString

Set the maximum number of character glyph-outlines cached by each face on the server.

Frames. FrameLabel class_name[...]

Specify the frame tag of the SWF file by using a series of class names.

Generate-frame-loader = true | false

Whether to generate the iflexbootstrap-derived load class.

Headless-Server = true | false

Set the compiler's headless.

Help [list [advanced]

Print help information

Include-librariesLibrary[...]

Link all the classes in the SWC file, whether or not they are used. Compared with this option, the library-path option only contains the classes used. Therefore, this option is generally used to specify resource binding.

Include-resource-BundlesBundle [...]

Resource binding is used to link to the resource module. All resources must be bound to the Source Path.

IncludesClass[...]

Link one or more classes, whether or not these classes are referenced.

Incremental = true | false

Set whether to perform incremental compilation.

Isolate-styles = true | false

Specify each module to assign a style separately. The default value is true.

Keep-as3-metadata =Class_name[...]

Specify custom metadata. By default, the compiler uses Bindable, managed, changeevent, noncommittingchangeevent, and transient metadata. If you want to retain the default metadata. Use + = to add custom metadata.

Keep-all-type-selectors = true | false

Specifies whether the compiler retains the type selectors of all style sheets in a SWF file, even if some types are not used. Generally, in a module application, the main application file contains a full set of CSS definitions. Therefore, the module SWF installed in can access the CSS of the main application.

Keep-generated-ActionScript = true | false

Defines whether to retain the generated as-class files. The generated class files include stubs and the class generated by the compiler. Generally, the generated files are placed in the generated folder. The default Build File Name Is filename-generated.as and filename-interface.as.

Language code

Set metadata.

Library-PathPath-element [...]

Link the class referenced or used in SWC to the target file. This parameter can be used to specify a folder or multiple SWC files. The default values include all SWC values in libs and libs/player. In the configuration file, you can set the append attribute of library-path to true to add.

LicenseProduct_name license_key

Define the lincense key.

Link-ReportFilename

Print the link information to a specific output file. The XML file contains tags such as <def>, <PRE>, and <ext>. The format file output by the command line can be used as the input for the load-externs option.

Load-configFilename

Specify the configuration file that defines the compilation options. Parameters written in the command line will overwrite the settings in the configuration file. The relative path in the configuration file refers to the relative path of the configuration file. You can add multiple configuration files through + =.

Load-ExternsFilename [...]

If the <def>, <PRE>, and <ext> XML file is specified, the specified content is excluded from the link when the file is edited as a SWF file.

LocaleLocale [,...]

Specify one or more locale to be compiled into SWF.

Localized-DescriptionText Lang

Set metadata.

Localized-titleText Lang

Same as above.

Mxml. Compatibility-version =Version

Compile a compatible version. Currently, the default values of 4.0 and 3.0 are the current version of the compiler.

Mxml. Minimum-supported-version =Version_number

Specifies the minimum SDK version. It is typically used to generate SWC files.

Mxml. Qualified-type-selectors = true | false

Whether the CSS type selector should have a namespace. The default value is true.

Namespaces. namespaceUri manifest

Specify the namespace of the mxml file. Specify the URI and manifest paths.

Optimize = true | false

Whether the as3 optimizer is used. This optimizer can reduce file size and improve performance by optimizing bytecode. The default value is true.

Omit-trace-statements = false | true

Set keywords to write information to the flashlog.txt File

OutputFilename

Specify the output file.

PublisherName

Specify metadata.

Raw-MetadataXml_string

Define raw metadata. For example, contributor, creator, date, and description

Resource-bundle-listFilename

Print the resource binding list to the specified file. You can use this result file as the input for the include-resource-bundles option.

Runtime-shared-libraries RSL-URL [...]

Specify the list of files running the shared library RSL. The files (SWF) in the resource list can take the relative path relative to the path of the main application.

Runtime-shared-library-Path =Path-Element, RSL-URL [, policy-file-URL, Failover-URL,...]

Specify the RSL location. The path-element parameter is the URL of the SWC file. The RSL-URL parameter is the URI of RSL. the compiler will not verify whether RSL exists. Policy-file-URL is the file location of crossdomain. xml. crossdomain. XML is granted the permission to read RSL from the server.

ServicesFilename

Specifies the location of the services-config.xml file.

Show-ActionScript-warnings = true | false

Whether to display as warning. The default value is true.

Show-binding-warnings = true | false

Whether to display the binding warning. The default value is true.

Show-invalid-CSS-property-warnings = true | false

Whether to display incorrect component style definitions in CSS. For example, this component does not have this style attribute ..

Show-shadowed-device-font-warnings = true | false

When the family name is used to embed the same font as the OS font, the compiler will warn you of the shadowing system font.

Show-unused-type-selector-warnings = true | false

When an unused CSS type selector is displayed, the compiler sends a warning.

Source-PathPath-element [...]

Add a directory or file to the Source Path. The compiler will search for the mxml, As, and CSS source files under the entire folder tree and compile the referenced or used files to the target file. Wildcard characters can be used.

The Source Path is also used as the input for the include-classes and include-resource-bundles options.

If the source path is empty, the path of the target file is used as the source path.

If the source path is not empty and the target path is a sub-folder of a source path, the target path is also added as the source path.

Static-link-runtime-shared-libraries = true | false

Determines whether the database is static or dynamic. If set to true. The options specified by RSL are ignored. The default value is true.

Strict = true | false

Print undefined attributes or function calls. The default value is true.

Target-player =Player_version

Specifies the Flash Player version required for the target file.

Player_versionFormat: Major version, minor version, and revision.

ThemeFilename [...]

Specifies the topic file list.

TitleText

Set metadata.

Use-network = true | false

Whether to use the network service. If not, the application can access the local file system, for example, using XML. Load to load files.

Use-resource-bundle-Metadata = true | false

Specify whether resources can be bound. [Resourcebundle]

Verbose-stacktraces = true | false

Specifies whether to generate the source code (including the row number) When an error occurs during running. If this option is set to true, both Debug and true must be set.

Verify-digests = true | false

Specifies whether the application detects the digest of the RSL file.

Version

Returns the version number of the compiler.

Warn-warning_type = true | false

.

Warnings = true | false

Can warning be displayed?

In addition, you can manually specify the java_home for SwF compilation, and modify the JVM. config file in the SDK directory without dependency on the variable definition of the operating system:

Java. Home = C:/Java/JRE

Note: It is the JRE folder directory, not the JDK directory. Make sure that the bin directory in the JRE folder contains the java. dll file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.