<s:Group id="ellipse2" x="-50" y="-50" width="100" height="100">
<s:Rect width="100" height="100" x="0" y="0">
<s:stroke>
<s:LinearGradientStroke weight="1">
<s:GradientEntry color="0xFF0000"/>
</s:LinearGradientStroke>
</s:stroke>
</s:Rect>
<s:Label id="label" text="Hello World" width="100%" height="100%" textAlign="center" verticalAlign="middle" />
</s:Group>
我试着从样式中设置backgroundColor,但那不起作用,我该如何设置backgroundColor,而不是渐变?如何设置背景中的背景颜色火花
没有真正的背景颜色;因为据我所知,Rect只有一个“图层”。我想你想让你的SolidColor填充http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/graphics/SolidColor.html – JeffryHouser