1
我想,當我增加重量來設定的角落和重量矩形SolidColorStroke - 蓋財產不工作
<fx:Script>
<![CDATA[
protected function weight_changeHandler(event:Event):void
{
borderStroke.weight = wght.value;
}
protected function corner_changeHandler(event:Event):void
{
border.topLeftRadiusX= border.bottomLeftRadiusX =border.topRightRadiusX=border.bottomRightRadiusX=corner.value;
}
]]>
</fx:Script>
<s:layout >
<s:VerticalLayout paddingLeft="50" paddingTop="50"/>
</s:layout>
<s:Rect horizontalCenter="0" verticalCenter="0" height="300" width="300" id="border">
<s:stroke>
<s:SolidColorStroke id="borderStroke" color="#000000" caps="square" weight="1" alpha="1"/>
</s:stroke>
</s:Rect>
<s:NumericStepper id="wght" change="weight_changeHandler(event)" maximum="100"/>
<s:NumericStepper id="corner" change="corner_changeHandler(event)" maximum="100"/>
任何人都可以告訴我我錯過了什麼?我的錯誤是什麼?
你打我給它;-)我加入了圖像輸出 – SushiHangover
@RobertN感謝的人... – akmozo
是...完美.....謝謝你這麼多 – user