0

パネル内に Rect 塗りつぶしを含むグループを追加しています。パネルには、normal と normalWithControlBar の 2 つの状態があります。グループは normalWithControlBar にあります。分離されたテストでは、正しく機能します。アプリケーションで表示すると、Rect の背景の塗りつぶしが正しい色で表示されません。

どこかにblendModeが設定されている可能性があると思いますが、それがそれなのか、どこに、なぜ適用されているのかはわかりません。

Rotate3D効果もあり、それが原因である可能性があります。それは大規模なアプリケーションなので、私はそれが何であるかを調べていますが、それまで誰かがこれについて聞いたことがありますか、それとも何が原因でしょうか? ありがとう

コード例:

パネル内:

<MyPanel>
    <s:controlBarContent>
        <local:MyGroup width="500" height="230"/><!--appears tinted-->
    </s:controlBarContent>

    <local:MyGroup width="500" height="230"/><!--appears normal-->
</MyPanel>

マイグループ:

<s:Rect width="100%" height="80"
        top="100"
            >
    <s:fill>
        <s:SolidColor color="#dddddd"/>
    </s:fill>
</s:Rect>
4

1 に答える 1

0

それを見つけた。これが発生する理由は、Group が Panel のスキン クラスの除外リストに追加されておらず、アプリケーション CSS で chromeColor が指定されているためです。

MyPanelSkin で:

前:

/* Define the skin elements that should not be colorized. */
static private const exclusions:Array = ["background", "titleDisplay", "contentGroup", "controlBarGroup", "border"];

後:

/* Define the skin elements that should not be colorized. */
static private const exclusions:Array = ["myGroup", "background", "titleDisplay", "contentGroup", "controlBarGroup", "border"];

スキン パーツを除外リストに追加すると、塗りつぶしの色が正しく表示されました。

于 2012-11-05T23:40:34.160 に答える