我有一个s:SkinnableContainer
基类,将几个皮肤部分定义为[SkinPart(required="false")]
. 这个类被几个不同的类子分类,这些类也有定义,例如[SkinPart(required="true")]
. 每个子类都有自己的皮肤,实现了所有required=true
皮肤部分。其中一些实现了required=false
皮肤部分。
flex 编译器随机产生以下错误:
The required skin part '__moduleFactoryInitialized' is missing. ThresholdPercentageWidgetSkin.mxml /am-apm-app-ui/src/main/flex/styles/skins line 12 Flex Problem
The required skin part '_selectedApplication' is missing. ThresholdPercentageWidgetSkin.mxml /am-apm-app-ui/src/main/flex/styles/skins line 12 Flex Problem
The required skin part '_skinClass' is missing. ThresholdPercentageWidgetSkin.mxml /am-apm-app-ui/src/main/flex/styles/skins line 12 Flex Problem
The required skin part 'initialize' is missing. ThresholdPercentageWidgetSkin.mxml /am-apm-app-ui/src/main/flex/styles/skins line 12 Flex Problem
The required skin part 'initialize' is missing. ThresholdPercentageWidgetSkin.mxml /am-apm-app-ui/src/main/flex/styles/skins line 12 Flex Problem
The required skin part 'ux_title' is missing. ThresholdPercentageWidgetSkin.mxml /am-apm-app-ui/src/main/flex/styles/skins line 12 Flex Problem
The required skin part 'ux_titleSignpost' is missing. ThresholdPercentageWidgetSkin.mxml /am-apm-app-ui/src/main/flex/styles/skins line 12 Flex Problem
The skin part type 'components:BooleanButtonBar' must be assignable to 'spark.components:Button'. ThresholdPercentageWidgetSkin.mxml /am-apm-app-ui/src/main/flex/styles/skins line 12 Flex Problem
The skin part type 'components.renderers:StateRenderer' must be assignable to 'spark.components:NumericStepper'. ThresholdPercentageWidgetSkin.mxml /am-apm-app-ui/src/main/flex/styles/skins line 12 Flex Problem
The skin part type 'spark.components:NumericStepper' must be assignable to 'components.renderers:StateRenderer'. ThresholdPercentageWidgetSkin.mxml /am-apm-app-ui/src/main/flex/styles/skins line 12 Flex Problem
The skin part type 'spark.components:NumericStepper' must be assignable to 'spark.components:Label'. ThresholdPercentageWidgetSkin.mxml /am-apm-app-ui/src/main/flex/styles/skins line 12 Flex Problem
The skin part type 'spark.components:VGroup' must be assignable to 'spark.components.supportClasses:TextBase'. ThresholdPercentageWidgetSkin.mxml /am-apm-app-ui/src/main/flex/styles/skins line 12 Flex Problem
例如,required skin part 'ux_title' is missing
错误与标签有关required=false
。
此外,提到的一些皮肤部分是内部的。例如-__moduleFactoryInitialized
和。_skinClass
initialize
现在到 woodoo 部分 - 在上述文件之一中添加新行,将生成成功的编译。
我尝试从看不见的特殊字符中清除文件。
任何线索为什么会发生?
我试过你建议的解决方法 - 没有用。但我得到了稍微不同的错误
[ERROR] <filename>[13,-1] The skin part type 'spark.components:Label' must b
e assignable to 'spark.components:Button'.
[ERROR] <filename>:[13,-1] The skin part type 'components.help:SignPost' must
be assignable to 'spark.components:Button'.
和上面两个例子一样。注意 [13,-1] 行/列对。-1 表示内部出现问题。
谢谢。