<rdf:li xml:lang='en-us'>it r0x0rs</rdf:li>
<dc:publisher>Franks Beans</dc:publisher>
<dc:creator>Flexy Frank</dc:creator>
<dc:date>Dec 16, 2005</dc:date>
For information on the SWF file format, see the Flash File Format Specification, which is available through the
Player Licensing program.
Setting the file encoding
You use the actionscript-file-encoding option to set the file encoding so that the application compiler
correctly interprets ActionScript files. This tag does not affect MXML files because they are XML files that contain
an encoding specification in the
xml tag.
You use the
actionscript-file-encoding option when your ActionScript files do not contain a Byte Order
Mark (BOM), and the files use an encoding that is different from the default encoding of your computer. If your
ActionScript files contain a BOM, the compiler uses the information in the BOM to determine the file encoding.
For example, if your ActionScript files use Shift_JIS encoding, have no BOM, and your computer uses ISO-8859-
1 as the default encoding, you use the
actionscript-file-encoding option, as the following example shows:
Editing application settings
The mxmlc compiler includes options to set the applications frame rate, size, script limits, and background color.
By setting them when you compile your application, you do not need to edit the HTML wrapper or the appli-
cations MXML file. You can override these settings by using properties of the
<mx:Application> tag or
properties of the
<object> and <embed> tags in the HTML wrapper.
The following command-line example sets default application properties:
mxmlc -default-size 240 240 -default-frame-rate=24 -default-background-color=0xCCCCFF -
default-script-limits 5000 10 -- c:/myfiles/flex2/misc/MainApp.mxml
To successfully apply the value of the default-background-color option to your Flex application, you must set
the default background image to an empty string. Otherwise, this image of a gray gradient covers the background
color. For more information, see Application Container” on page 451 in Adobe Flex 3 Developer Guide.

Get ADOBE® FLEX® 3: BUILDING AND DEPLOYING ADOBE FLEX 3 APPLICATIONS now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.