Flex complier parameter _flex

Source: Internet
Author: User
Tags object model
Before introducing these parameters, let's introduce a tool: Mxmlc.exe.
MXMLC is an important tool in the Flex SDK: The compiler, either the Flash Builder (Flex Builder) IDE or the plug-in form of Flash Builder (Flex Builder) compiles flex Project, you will automatically invoke MXMLC to complete our compilation tasks.
And since adobe can download the flex SDK directly, you need to manually compile your Mxml file if this is the case.

Mxmlc.exe's address:
Flex SDK MXMLC Path:
{Os}:\flexsdk\bin\mxmlc.exe

Flash Builder (Flex Builder) MXMLC path:
{Os}:\.....\sdks\4.0.0\bin\mxmlc.exe

Specific usage:
Enter the directory of Mxmlc.exe from Doc and enter the following:
MXMLC X:/test.mxml
MXMLC x:/test.as
The above two contents are compiled for Text.mxml and test.as respectively. At the same time the above writing is also the most simple one, that is, not to add any parameters of the form.

The following list provides some optional parameters for MXMLC:
Property Describe
Accessible=true|false Is it comprehensible
Actionscript-file-encoding Set file encoding
Advanced | Mxmlc-help Advanced Retrieving MXMLC Advanced Parameters
Allow-source-path-overlap=true|false
Verify that the paths defined in the Source-path overlap, and that there are mutually inclusive phenomena
As3=true|false
Whether to use the AS3 object model, default is ture, if False, ES must be defined as true
Benchmark=true|false
Whether to output the details of the compilation period, the default is True
Context-root
Context-path
set {Context.root} in Flex-services.xml, if not defined in detail, Flex will use null value.
Contributor name
Creator Name
Add to SWF file, name is the author
Date text
Debug=true|false
Is it possible to debug
Debug-password string
Remote debugging use, set password
Default-background-color int
Default background color
default-frame-rate int
Set the number of frames by default of 24
Default-script-limits
Define execution restrictions for application scripts
Max-recursion-depth
The largest recursive defaults are: 1000
Max-execution-time
The maximum execution time default is: 60
Default-size Width Height
To set the size of an application
Defaults-css-url string
To set the path of a CSS
Description text
What to add to the SWF file
Dump-config filename
Es=true|false
Externs symbol [...]
External-library-path path-element [...]
File-specs path-element [...]
Fonts.languages.language-range Lang Range
Specify the range of Unicode encoding languages
Fonts.managers Manager-class [...]
Font Manager
Fonts.max-cached-fonts string
Maximum number of fonts that can be saved on the server cache
Fonts.max-glyphs-per-face string
Maximum character caching
Frames.frame Label class name [...]
Generate-frame-loader=true|false
Bind to the default loader class
Headless-server=true|false
Can I set the compiler's execution header file
Help
Help
Include-libraries Library [...]
Reference all the classes in the SWC
Includes class [...]
Refer to a specific class
Incremental=true|false
Keep the original as, put it in the/generated directory, the default value is False
Keep-generated-actionscript=true|false
Language code
The encoding of the preset alphabet, which is false by default
Lazy-init=true|false
Library-path path-element [...]
Print a detailed connection report
Link-report filename
Specifies the compiler verbose configuration file, overwriting all command-line arguments, and can connect multiple profiles by + =.
Load-config filename
Load-externs filename [...]
localized-description text Lang
Namespaces.namespace URI Manifest
Specifies the namespace of the Mxml file, either with a URI or a local proof file. (manifest.xml)
Optimize=true|false
Optimizer, reduce file size, increase performance, default to False
Output filename
Specifies the output file name, if not specified, with the current file name. If the path does not exist, it will be generated automatically.
Publisher name
resource-bundle-list filename
Runtime-shared-libraries URL [...]
Specify a series of runtime shared libraries, and if library.swf is in the Web_root/libraries directory, you can use libraries/library.swf. to invoke.
Services filename
Specifies the Services-config.xml file, which is used in FDS
Show-binding-warnings=true|false
Displays a warning when Flash Player cannot probe. The default is True
Show-actionscript-warnings=true|false
When an as class error occurs, a prompt is issued. The default is true.
Show-deprecation-warnings=true|false
Display is not available for flex components. The default is True
Source-path path-element [...]
Adding a path or file to the source path automatically looks for the mxml and as files. You can use the wildcard character to contain all the files and subpath, connect all the files, you cannot use the classes and paths individually, and you can use + +.
Strict=true|false
Outputs are defined properties and functions, and can also perform compile-time type validation and provide default parameters. The default is True
Theme FileName [...]
Specify an array of topics
Title text
Use-network=true|false
Specifies the network service for the current application, which defaults to true. If set to False, you can only access the local area and you cannot access the network.
Verbose-stacktraces=true|false
The default value is False, which provides an error display only when an error occurs at run time.
Version
Version number of the compiler
Warn-warning_type=true|false
Whether to verify the custom warning type.
Warnings=true|false If you set FALSE to revoke all warnings, this parameter overrides the Warn-warning_typed value by default of True.

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.