Notes for flex programming-Flex complier Parameters

Source: Internet
Author: User

Before introducing these parameters, we should first introduce a tool: mxmlc.exe.
Mxmlc is Flex
An important tool in the SDK: compiler, whether it is flash Builder
(Flex Builder
) Ide or plug-in Flash Builder
(Flex Builder
) Compile the flex
Mxmlc is automatically called to complete the compilation task.
Because Adobe
You can download flex directly.
SDK, so if this method is used, you need to manually compile your mxml file.

Mxmlc
. EXE address:
Flex
SDK mxmlc path:
{OS}:/flexsdk/bin/mxmlc.exe

Flash Builder
(Flex Builder
) Mxmlc path:
{OS}:/.../sdks/4.0.0/bin/mxmlc.exe

Usage:
Enter mxmlc from Doc
. EXE directory, and enter the following content:
Mxmlc X:/test. mxml
Mxmlc X:/test.
The preceding two sections compile text. mxml and test. As respectively. At the same time, the preceding method is also the simplest one, that is, it does not add any parameters.

The following lists some optional mxmlc parameters:

Attribute Description
Accessible = true | false Understandable?
ActionScript-file-Encoding Set file encoding
Advanced | mxmlc-help advanced Retrieve mxmlc advanced Parameters
Allow-source-path-overlap = true | false Verify whether the paths defined in source-path overlap and contain each other.
As3 = true | false Whether to use as3 object model. The default value is true. If false is selected, elasticsearch must be defined as true.
Benchmark = true | false Whether to output detailed content in the compilation period. The default value is true.
Context-rootcontext-Path Set {context. Root} in the flex-services.xml. If not defined in detail, flex will use a null value.
Contributor name  
Creator name Added to the SWF file. Name is the author's name.
Date text  
DEBUG = true | false Can debugging be performed?
Debug-password string For remote debugging, set the password
Default-Background-color int Default background color
Default-frame-rate int Sets the number of frames. The default value is 24.
Default-script-Limits Define the execution limits of the application script program
Max-recursion-Depth Maximum recursion default value: 1000
Max-execution-time The maximum execution time is 60 by default.
Default-size width height Set the application size
Defaults-CSS-URL string Set the CSS path
Description text Description Added to the SWF File
Dump-config filename  
Es = true | false  
Externs symbol [...]  
External-library-Path-element [...]  
File-specs path-element [...]  
Fonts. Ages. 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 Cache
Frames. Frame label class name [...]  
Generate-frame-loader = true | false Bind to the default loader class
Headless-Server = true | false Can I set the execution header file of the compiler?
Help Help
Include-Libraries library [...] Reference all classes in SWC
Extends des class [...] Reference a specific class
Incremental = true | false Keep the original as in the/generated directory. The default value is false.
Keep-generated-ActionScript = true | false  
Language code Specifies the encoding of the default alphabet. The default value is false.
Lazy-init = true | false  
Library-Path-element [...] Print detailed connection report
Link-Report filename Specify the detailed configuration file of the compiler, overwrite all command line parameters, and connect multiple configuration files through + =.
Load-config filename  
Load-externs filename [...]  
Localized-description text Lang  
Namespaces. namespace URI manifest Specifies the namespace of the mxml file. You can use a URI or a local file. (Manifest. XML)
Optimize = true | false Optimize the program to reduce the file size and increase performance. The default value is false.
Output Filename Specifies the name of the output file. If not specified, the current file name is used. If the path does not exist, it is automatically generated.
Publisher name  
Resource-bundle-list filename  
Runtime-shared-libraries URL [...] It refers to a series of shared libraries at runtime. If library.swf is in the web_root/libraries directory, you can use libraries/library.swf. To call it.
Services filename Specifies a services-config.xml file that is used in FDS
Show-binding-warnings = true | false When flash player cannot be detected, a warning is displayed. The default value is true.
Show-ActionScript-warnings = true | false When an as error occurs, a prompt is sent. The default value is true.
Show-deprecation-warnings = true | false Displays unavailable flex components. The default value is true.
Source-Path-element [...] After you add a path or file to the Source Path, The mxml and as files are automatically searched. Wildcard characters can be used to include all files and sub-paths to connect all files. A single class and path cannot be used. You can use ++ =.
Strict = true | false The output is defined attributes and functions, and can also be used to verify the compilation period type and provide default parameters. The default value is true.
Theme filename [...] Topic Array
Title text  
Use-network = true | false Specifies the network service of the current application. The default value is true. If it is set to false, only local access is allowed and network access is not allowed.
Verbose-stacktraces = true | false The default value is false. An error is displayed only when an error occurs during running.
Version Version number of the Compiler
Warn-warning_type = true | false Whether to verify the custom Warning type.
Warnings = true | false If false is set, all warnings are abolished, and the default value of this parameter override the warn-warning_typed is true.

 

This article from: http://www.k-zone.cn/zblog/post/flex-compiler-parameter.html

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.