开发者

Property 'skin' is read only - > Flex Skinning

开发者 https://www.devze.com 2023-03-13 08:06 出处:网络
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\"

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

精彩评论

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