Specifications

327ADOBE FLEX 3
Building and Deploying Adobe Flex 3 Applications
codetype
String Defines the content type of data expected when downloading the application specified by the
classid property
The codetype property is optional but recommended when the classid property is specified; it
lets the browser avoid loading unsupported content types.
The default value of the codetype property is the value of the type property.
data
String Specifies the location of the application’s data; for example, instance image data for objects that
define images.
If the data property is a relative URI, it is relative to the codebase property.
declare
Boolean Makes the current SWF file’s definition a declaration only. The SWF file must be instantiated by a
subsequent object definition referring to this declaration.
devicefont
Boolean Specifies whether static text objects for which the deviceFont option is not selected are drawn
using a device font anyway, if the needed fonts are available from the operating system.
dir
String Specifies the base direction of text in an elements content and attribute values. It also specifies the
directionality of tables. Valid values are
LTR (left-to-right text or table) and RTL (right-to-left text or
table).
flashVars
String Sends variables to the application. The format is a set of name-value pairs, each separated by an
ampersand (&).
Browsers support string sizes of up to 64 KB (65535 bytes) in length.
The default value of this property is typically an empty string.
For more information on using flashVars to pass variables to Flex applications, see “Communi-
cating with the Wrapper on page 1035 in Adobe Flex 3 Developer Guide.
height
int Defines the height, in pixels, of the SWF file. Flash Player makes a best guess to determine the
height of the application if none is provided.
The browser scales an object or image to match the height and width specified by the author.
You can set this value to a fixed number or a percentage value; for example, length=’100’ or
length=’50%.
Lengths expressed as percentages are based on the horizontal or vertical space currently available,
not on the default size of the SWF file. FireFox browsers do not support percentage-based values.
You can also set the height of a Flex application by setting the height property of the
<mx:Application> tag in an MXML file.
For the <object> tag, you set the value of this property as an attribute of the <object> tag and
not as a
<param> child tag.
Property Type Description