Specifications

334
CHAPTER 17
Editing your wrapper for Express Install
After you compile your application into a SWF file, you write a wrapper that embeds that SWF file. Clients request
this wrapper directly. You can use Adobe Flex Builder to automatically generate a wrapper, or you can write one
yourself. Express Install is included by default in the wrappers generated by Flex Builder.
Disable Express Install in Flex Builder
1 Open your project in Flex Builder.
2 Select Project > Properties.
3 Select Flex Compiler from the tree at the left.
4 Deselect the Use Express Install option.
5 Click OK to save your changes.
The wrapper generated by the Flex module for Apache and IIS does not support Express Install.
If you write your own wrapper, however, you must add Express Install manually. Sample wrapper templates are
available in the sdk_install_dir/templates directory for Flex SDK and the install_dir/sdks/3.0.0/templates directory
for Flex Builder. For more information, see About the HTML templates” on page 312.
Refer to the following steps if you write your own wrapper and add Express Install support to it, and customize a
generated wrapper or template. For more information about creating a wrapper, see Creating a Wrapper” on
page 311.
Adding the Express Install script to the wrapper
After you write your own wrapper, follow these steps to add support for Express Install. These steps require the
following files, which are located in the /templates/express-installation directory:
index.template.html Wrapper file that detects the Flash Player version and initiates Express Install if
necessary. You can integrate this code with your website.
AC_OETags.js Script file that provides methods for Flash Player version detection and embedding your
Flex application. You call methods in this file from your wrapper.
playerProductInstall.swf Application that initiates Express Install. You deploy this file with your appli-
cation.