- Is there any way to turn off all special FX's and especially dropShadow's on all objects inside the application ?
( The idea is to increase the performance , another ideas on increasing p开发者_高级运维reformance is more than appreciated. )
You need to override a lot of skin files or use (or create) a custom theme. Flex does a lot of drawing in its skins... for instance the default Spark TextInput draws a 1px shadow inside the text box. It does NOT use the "dropShadow" filter to do this.
Overriding skin files is easy to do and you can make them defaults in your CSS like this:
s|TextInput{
skinClass: ClassReference("you.com.view.skins.LookMaNoShadowTextInputSkin");
}
You should look into Flex 4 theming to remove anything that you want/don't want. By default the Spark theme is used for a Flex project. Look into your project's properties and change it around. I believe there are some themes in Flash Builder that doesn't have shadows.
精彩评论