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 の部分について説明します。前述のファイルの 1 つに新しい行を追加すると、コンパイルが成功します。
目に見えない特殊文字からファイルを消去してみます。
なぜそれが起こる可能性があるのか 手がかりはありますか?
回避策を提案してみましたが、うまくいきませんでした。しかし、少し異なるエラーが発生しました
[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'.
上記の2つの例と同じくらい多く。[13,-1] 行/列のペアに注意してください。-1 は、内部で何か問題が発生したことを意味します。
ありがとう。