开发者

Property 'skin' is read only - > Flex Skinning

I want to decorate a flex Button with a cutom skin component .

But when i point the 'skin' property to the source , it says "Property skin is read only"

My Button declaration :

<s:Button id="state"开发者_StackOverflow社区
    label="State View" 
    skin="CustomButtonSkin"            
    click="state_clickHandler(event)" />

This is inside a Component and CustomButtonSkin.mxml is in the same directory ...


You should set the skinClass property, not skin

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜