2012-11-05 1 views
0

패널 내부에 Rect 채우기가 포함 된 그룹을 추가하고 있습니다. 이 패널에는 normal 및 normalWithControlBar라는 두 상태가 있습니다. 그룹은 normalWithControlBar에 있습니다. 격리 된 테스트에서 제대로 작동합니다. 내 응용 프로그램에 표시되면 Rect 배경 채우기가 올바른 색으로 나타나지 않습니다.팝업에서 열 때 rect가 다른 색으로 채워지는 이유는 무엇입니까?

나는 blendMode가 어딘가에 설정되어 있을지 모르지만 그게 어디에 있는지, 왜 적용되고 있는지 확실하지 않습니다.

또한 Rotate3D 효과가 있습니다. 그것이 큰 응용 프로그램이기 때문에 내가 할 수있는 일을 통해 자신의 길을 가고있다. 그러나 그때까지 누군가가 이것에 대해 들어 본 적이 있거나 무엇이 그것을 일으킬 수 있는가? 감사합니다

예제 코드 : 패널에서

: MyGroup을에서

<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> 

답변

0

그것을 발견. 그 이유는 그룹이 Panel의 스킨 클래스에있는 제외 목록에 추가되지 않았고 chromeColor가 Application CSS에 지정 되었기 때문입니다. 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"]; 

.

관련 문제