简体   繁体   English

“样式 'dropShadowVisible' 仅由具有主题 'spark' 的类型 'mx.controls.List' 支持” Flex 主题警告

[英]“The style 'dropShadowVisible' is only supported by type 'mx.controls.List' with the theme(s) 'spark'” Flex theme warning

What can I do to remove this warning in Flex?如何在 Flex 中删除此警告? I'm using the Halo theme and do not want to use the Spark theme.我正在使用 Halo 主题,但不想使用 Spark 主题。

The style 'dropShadowVisible' is only supported by type 'mx.controls.List' with the theme(s) 'spark'只有主题为“spark”的“mx.controls.List”类型才支持“dropShadowVisible”样式

Two options:两种选择:

1) Set the compiler argument 'warnings' to false. 1) 将编译器参数“警告”设置为 false。 More info about compiler arguments are in the docs . 有关编译器 arguments 的更多信息在文档中 Other compiler arguments that related to this are show-actionscript-warnings and warn-warning_type.与此相关的其他编译器 arguments 是 show-actionscript-warnings 和 warn-warning_type。

2) Make sure all the classes you're using do not reference the dropShadowVisible style. 2) 确保您使用的所有类都没有引用 dropShadowVisible 样式。 Most likely it is used internally be Flex Framework classes that you are using in your app;最有可能在内部使用的是您在应用程序中使用的 Flex 框架类; so that may require some extending.所以这可能需要一些扩展。

This post might give you some insight.(I have not verified the solution posted there).I advise you to take a backup copy of the framework.swc mentioned before you make changes. 这篇文章可能会给您一些见解。(我尚未验证那里发布的解决方案)。我建议您在进行更改之前备份提到的 framework.swc 的副本。 This bug filed in the adobe bug repository also has some information在 adobe bug 存储库中提交的这个bug 也有一些信息

The problem arises whenever you use an mx|List, in an app with the Spark theme, and with SDK 4.0 or 4.1.每当您在具有 Spark 主题的应用程序以及 SDK 4.0 或 4.1 中使用 mx|List 时,就会出现问题。 The Adobe bug mentioned earlier has been fixed, and the fix is in SDK 4.5.前面提到的 Adobe bug 已经修复,修复在 SDK 4.5。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM