开发者

Flex 4.5 turn off globally all objects drop shadows and special fx's and increasing performance?

  • 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜