I want to have a rectangle which has three different colors in flex. I used spark components like fill and gradiententry, but could not get three colors side by side like this.
black-red-black of ratio 0.2 0.8 0.2. I could get only two colors working but not this ratio. Also i want solid colors on rectangle and not gradient.
<s:Rect id="rectangle1" height="100" width="300">
<s:fill>
<s:LinearGradient>
<s:GradientEntry color="black" ratio="0.5" alpha="1"/>
<s:GradientEntry color="red" ratio="0.5" alpha="1"/>
</s:LinearGradient>
</s:fill>
</s:Rect>
Aren’t you saying you want 3-rectangles? You want a gradient, but then you state you want solid colors (no gradient).
You mean like this?
Otherwise, you can kind of accomplish your goal like this: