How to Reduce the flex file (SWF)

Source: Internet
Author: User

How to Reduce the flex file (SWF)
1. Use the release mode (this is often ignored, huh, huh)
(1) Click "" In the toolbar above flexbuilder to bring up the export release build window, as shown below:

Select the mxml file you want to optimize, and enter the folder you want to export to in export to folder. click "finish" and add the bin-release2 folder under "F: \ workspace \ mysecondelcds \ webroot \". The package contains the binddemo.swf file, which is half the size of the previous file.
2. Use the mxml Module
(1) Right-click the mxml folder in your project and choose newmxml module. The new mxml module dialog box is displayed, as shown below:

Selecting optimization for the application can also reduce the size of the module.

(It is recommended that you do not rename the module file after it is generated. Otherwise, there will be some problems in compilation)

3. Use RSL (runtime Shared Library)
(1) In the flex project, right-click the project name, and click "properties". In the dialog box that appears, select "flex build path" on the left and select "flex build path" on the right.
"Library path", as shown in:


Click the drop-down basket on the right of "framework linkage". Two options are displayed: "merged into code" and "RunTime shared library". The default value is the former, select "RSL" and click "OK". After several seconds of compilation, you can view the size of each SWF file, you will find that all sizes are reduced.

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.