“The style 'dropShadowVisible' is only supported by type 'mx.controls.List' with the theme(s) 'spark'” Flex theme warning
-
15-04-2021 - |
Question
What can I do to remove this warning in Flex? I'm using the Halo theme and do not want to use the Spark theme.
The style 'dropShadowVisible' is only supported by type 'mx.controls.List' with the theme(s) 'spark'
Solution
Two options:
1) Set the compiler argument 'warnings' to false. More info about compiler arguments are in the docs. Other compiler arguments that related to this are show-actionscript-warnings and warn-warning_type.
2) Make sure all the classes you're using do not reference the dropShadowVisible style. Most likely it is used internally be Flex Framework classes that you are using in your app; so that may require some extending.
OTHER TIPS
The problem arises whenever you use an mx|List, in an app with the Spark theme, and with SDK 4.0 or 4.1. The Adobe bug mentioned earlier has been fixed, and the fix is in SDK 4.5.