【问题标题】:Property 'skin' is read only - > Flex Skinning属性“皮肤”是只读的 - > Flex Skinning
【发布时间】:2011-06-16 20:19:00
【问题描述】:

我想用自定义皮肤组件装饰一个 flex Button。

但是当我将“皮肤”属性指向源时,它会显示“属性皮肤是只读的

我的按钮声明:

<s:Button id="state"
    label="State View" 
    skin="CustomButtonSkin"            
    click="state_clickHandler(event)" />

这是在一个组件内,并且 CustomButtonSkin.mxml 在同一个目录中...

【问题讨论】:

    标签: flex4 skin


    【解决方案1】:

    您应该设置 skinClass 属性,而不是 skin

    【讨论】:

    • 哦,谢谢。还有另一种方式——皮肤应该定义为:skin="Components.CustomButtonSkin"。 -- 引用皮肤类的包。
    猜你喜欢
    • 1970-01-01
    • 2014-10-02
    • 1970-01-01
    • 1970-01-01
    • 2011-06-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多