Sunday, July 26, 2009

Building Run Time Shared Libraries For Flex Application

  1. Open your project Flex
  2. Right-click on the project name and select Properties.
  3. Select Flex Build Path from the left hand menu.
  4. Select the Library path tab and notice the Flex 3.x as one of the libraries in the project.
  5. Expand the Flex 3.x library.
  6. Expand framework.swc.
  7. Select the Link Type and click on the Edit tab.
  8. Uncheck Use same linkage as framework.
  9. Change the Link Type menu drop down to Run time shared library (RSL).
  10. Click OK.
  11. Bulid your project.
  12. Now, select your file .swf file and right-click on it. Select the Properties and look at the Size of the file. which is a further reduced from before. ^,^v Wow....look your SWF file siz
  13. By default, Flex Builder created the swf files for the projects under the bin-debug folder. All files under this folder have some additional debug information which is not required when publishing a project. We will create a release version of this application next.
  14. Right-click on the project name and select Export.
  15. Expand the Flex Builder folder.
  16. Select Release Build
  17. Click Next.
    Alternatively, you can select from the main menu Project > Export Release Build.
  18. In the dialog window that comes up, notice the Export to folder option is listed as bin-release.
  19. Click on Finish to create the release files.
  20. Now, look your SWF file size in folder bin-release....^,^v

No comments:

Post a Comment