Flex SWF Gradient Background
Every time I compile a MXML file, I get a SWF file. When I load the SWF file to the browser, all the space outside the SWF file is this gray gradient.
I want to change the color, or make it disappear entirely, however, when I search for开发者_StackOverflow社区 "Flex background color" I get information to do other things.
How do I get rid of that?
Add the following to thr compiler arguments:
-default-background-color #222222
Where color is the color you like.
To change background color of SWF itself change values of Application
tag. For MX Application
refer to the documentation and take a look at backgroundGradientAlphas
and backgroundGradientColors
styles.
For Spark Application
documentation is here.
精彩评论