The mxmlc compiler includes options to set the application's 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 application's 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 in Adobe Flex 3 Developer Guide.
For more information about the HTML wrapper, see Creating a Wrapper.