Specifications

193ADOBE FLEX 3
Building and Deploying Adobe Flex 3 Applications
Required attributes
The html-wrapper task requires the swf attribute. In addition, if you specify only the swf attribute, the default
wrapper will have the following default settings:
height="400"
width="400"
template="express-installation"
bgcolor="white"
history="false"
title="Flex Application"
Be sure to use only the filename and not the filename and extension when specifying the value of the swf attribute.
The
html-wrapper task appends .swf to the end of its value.
For example, do this:
swf="Main"
Do not do this:
swf="Main.swf"
Unsupported options
You cannot set all the available <object> and <embed> tag parameters using the html-wrapper task. Parameters
you cannot set include
quality, allowScriptAccess, classid, pluginspage, and type.
Example
The following example project includes a wrapper target that uses the html-wrapper task to generate a wrapper
with deep linking and player detection logic. This target also sets the height and width of the SWF file. The project
also includes a clean target that deletes all the files generated by the wrapper target.
<?xml version="1.0" encoding="utf-8"?>
<!-- myWrapperBuild.xml -->
<project name="My Wrapper Builder" basedir=".">
version-revision
Sets the value of the requiredRevision global JavaScript variable in the HTML wrapper. The default
value is 0. The value of this attribute only matters if you include version detection in your wrapper by setting
the
template attribute to express-installation or client-side-detection.
width
Defines the width, in pixels, of the SWF file. Flash Player makes a best guess to determine the width of the
application if none is provided. This attribute sets the value of the
<embed> tag's width attribute and the
<object> tag's width attribute. The default value is 400.
Attribute Description