When I use a custom skin for my app I get these warnings all over the place. Yes I know why. But I don't need to be told this, and I don't like all the yellow icons cluttering up my workspace. I know if I remove the unused classes they will go away but 1) if later I decide to add a component I want the class to be in-place to style it and 2) my skin is in a shared location so even if this app doesn't use a particular class another app using the same skin probably does. So does anyone know a way to tell flex builder to ignore this particular type of warning?
当我为我的应用程序使用自定义皮肤时,我会在整个地方收到这些警告。是的,我知道为什么。但我不需要被告知这一点,我不喜欢所有黄色图标混乱我的工作区。我知道如果我删除未使用的类,它们会消失,但1)如果以后我决定添加一个组件,我希望该类就地设置它的样式和2)我的皮肤在共享位置,所以即使这个应用程序不使用特定类使用相同皮肤的另一个应用程序。那么有没有人知道一种方法告诉flex builder忽略这种特殊类型的警告?
Thanks.
2 个解决方案
#1
In the "Additional compiler arguments" box of the Flex Compiler section of your Project Properties, append the following to disable warnings about unused CSS type selectors:
在Project Properties的Flex Compiler部分的“Additional compiler arguments”框中,添加以下内容以禁用有关未使用的CSS类型选择器的警告:
-show-unused-type-selector-warnings=false
It works just fine.
它工作得很好。
Don't just disable all warnings, it's really important to know that bindings might fail etc.
不要只是禁用所有警告,知道绑定可能会失败等非常重要。
#2
I haven't tried this, but check it out...
我没有试过这个,但检查一下......
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=2&postId=12748
or this:
http://www.derekentringer.com/blog/flex-builder-remove-css-type-selector-warnings/
#1
In the "Additional compiler arguments" box of the Flex Compiler section of your Project Properties, append the following to disable warnings about unused CSS type selectors:
在Project Properties的Flex Compiler部分的“Additional compiler arguments”框中,添加以下内容以禁用有关未使用的CSS类型选择器的警告:
-show-unused-type-selector-warnings=false
It works just fine.
它工作得很好。
Don't just disable all warnings, it's really important to know that bindings might fail etc.
不要只是禁用所有警告,知道绑定可能会失败等非常重要。
#2
I haven't tried this, but check it out...
我没有试过这个,但检查一下......
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=2&postId=12748
or this:
http://www.derekentringer.com/blog/flex-builder-remove-css-type-selector-warnings/