1

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 は、内部で何か問題が発生したことを意味します。

ありがとう。

4

1 に答える 1

1

私はちょうど同じ問題に遭遇しました。CIサーバーでのみ発生しました。ワークステーションで利用可能なすべての 4.6 コンパイラを試しましたが、同じコードで問題を再現できませんでした。回避策として私は変更しました

[SkinPart(required="true")]

[SkinPart]

今のところ。生成された Actionscript を保持して問題を特定しようとしましたが、問題の原因となるものは何も見つかりませんでした。私がそれを試みた理由は、もともとコンパイラ エラーは、自分のコードの変数が SkinParts を要求されていることに関するものだったからです (ただし、実際にはスキン パーツはまったくありませんでした)。投稿のコメントの 1 つに基づいて、コード内の非 ASCII 文字をスキャンしましたが、何もありませんでした。

于 2012-06-25T14:48:18.360 に答える