2011-03-15 2 views
0

나는 다음 채우기가있는 사각형이 있습니다플렉스 : 대신이 LinearGradient의 마지막 GradientEntry가 표시됩니다 채울

<s:LinearGradient id="goldGradientFill"> 
    <s:entries> 
     <s:GradientEntry color="#6B4822" ratio="0" /> 
     <s:GradientEntry color="#FDE3C0" ratio="1" /> 
    </s:entries> 
</s:LinearGradient> 

그러나 대신에 두 가지 색상의 마지막 GradientEntry 색상 (#의 FDE3C0)를 작성하여 표시됩니다 . 내 경우에는이 채우기가있는 3 개의 직사각형이 있습니다. 하나는 그래디언트를 표시합니다.

alle 그 세 가지의 구형에 대한 코드는 동일는이 같은 문제가 발생 사람이

var myRect:Rect = new Rect(); 
myRect.height = 30; 
myRect.width = 4; 
myRect.fill = goldGradientFill; 
myGraphics.addElement(myRect); 

있습니까?

(업데이트) 일부 화면을 추가했습니다.

wrong behaviour correct behaviour

답변

0

이가이 LinearGradient의 한계로 인한 것 같다. 그라디언트가 표시되도록 Rect의 너비는 최소 5 픽셀이어야합니다.