O'Reilly logo

Learning Flex 4 by Elijah Robison, Alaric Cole

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 17. Deploying Flex Applications

IN THIS CHAPTER

Deploying to the Web

Deploying to the Desktop

Summary

In this next-to-last chapter, we cover the processes for deploying Flex applications to either the Web or the desktop.

Deploying to the Web

First we discuss the process of deploying to the Web, and demonstrate the steps relative to the PhotoGallery application. A typical web deployment involves the following steps and considerations:

  • Check the Flash Builder Compiler options

  • Modify the index.html.template file

  • Merge or separate the Flex Framework Library

  • Export a release build

  • Upload files to the web host

As you know, we’ve been compiling our applications to the bin-debug directories of their respective projects. The compiled SWF in the bin-debug folder contains extra debugging methods used by the debug version of Flash Player. When you casually run a project in order to test it, Flash Builder launches the debug version of your application. Of course, the debug version is necessary for debugging and profiling (we briefly discuss profiling in the sidebar “Tweaking Performance” on page 375), but it’s not yet optimized for frequent downloading. Therefore, when you’re ready to deploy, you’ll want to create a release build that doesn’t include the debugging extras. The specific advantage of a release build is its smaller compiled size.

Now we’ll walk through the steps identified in the previous list and create a release build for the PhotoGallery application, so open that project now.

Checking ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required