Specifications

313ADOBE FLEX 3
Building and Deploying Adobe Flex 3 Applications
You typically use the index.template.html file found in each of these directories as the main HTML file that
embeds your Flex application. For deployment, you should rename this file to index.html or whatever filename
fits your web sites design. If you already have the HTML set up for your web site and are incorporating Flex into
that site, then you can copy and paste the code from these templates to your existing web sites files. The template
HTML also works with dynamic scripting code such as PHP, ASP, or JSP.
Each template contains a set of tokens, such as
${height} and ${title}. These tokens are used by Flex Builder
to generate the wrapper code. Flex Builder replaces them with the appropriate values when it compiles a project.
If you are editing the wrapper manually and deploying an application built with the SDK, then you must replace
these tokens with the appropriate values.
In many cases, the tokens set the values of properties and attributes of the
<object> and <embed> tags, or values
of parameters that you pass to the
AC_FL_RunContent() JavaScript method. For details on these properties, see
the property’s description in About the object and embed tags” on page 321.
The following table describes the template tokens:
express-installation-with-history Provides scripts that support Express Install and deep linking.
no-player-detection Provides a basic wrapper that embeds the SWF file by using an external JavaScript file.
no-player-detection-with-history Provides a basic wrapper with deep linking support.
Token De scription
${application}
Identifies the SWF file to the host environment (a web browser, typically) so that it can be referenced
by using a scripting language.
This token is the value of the
id and name properties that is described in About the object and
embed tags” on page 321.
${bgcolor}
The background color of the application.
This token is the value of the
bgcolor property that is described in About the object and embed
tags on page 321.
${height}
The height of the application, in pixels.
This token is the value of the
height property that is described in “About the objec t and embed
tags on page 321.
${swf}
Specifies the location of the SWF file.
This token is the value of the
src and movie properties that is described in About the object and
embed tags” on page 321.
${title}
The title of the HTML page. This value appears in the browsers title bar when the user requests the
HTML page. The default value supplied by Flex Builder is the name of the Flex application.
Directory Description