我继承了一个主要使用 Parsley 和 Cairngorm 以 Flex 3.2 编写的大型代码库。
整个构建过程是通过使用 FlexMojos 的 maven 完成的。
我对 Flex 比较陌生,有人告诉我将 Flex 从 3.2 升级到最新的 4.5.1 版本。
虽然我取得了不错的进展,但我遇到了一些我无法理解的错误,或者 Google 搜索无法提供帮助。
我做过的事情:
[WARNING] C:\repo\com\adobe\flex\framework\framework\4.0.0.14159\framework-4.0.0.14159.swc$defaults.css:[487,-1] The style 'dropShadowVisible' is only supported by type 'mx.controls.List' with the theme(s) 'spark'.
[WARNING] The swc 'C:\repo\com\adobe\flex\framework\framework\4.5.1.21328\framework-4.5.1.21328.swc' has style defaults and is in the library-path, which means dependencies will be linked in without the styles. This can cause applications, which use the output swc, to have missing skins. The swc should be put in the external-library-path.
[ERROR] C:\repo\com\adobe\flex\framework\mx\4.5.1.21328\mx-4.5.1.21328.swc$defaults.css:[469,-1] Invalid Embed directive in stylesheet - can't resolve source 'Embed(source = "assets/CalendarIcon.png")'.
最佳答案
Flex 编译器默认使用 css,命名为“defaults.css”。如果您将 css 命名为“defaults.css”,请更改它的名称。
它还将查找 flex-config,它应该与应用程序名称相同,否则它将从 sdk 文件夹中获取默认的 flex-config。有几个 css 属性,它们仅在 Flex 3 组件中可用。现在我们已经有了 Spark 组件架构,很少有属性可能根本不起作用并给你警告消息。
如果您的机器上安装了 Flash Builder,您可以将项目导入其中,并一次查看一条警告消息并修复您的 .css 文件。
希望它对您解决问题有所帮助..
https://stackoverflow.com/questions/8412681/