Flex重置mx:TitleWindow关闭按钮皮肤

时间:2014-11-11 11:13:25

标签: flex flex3 skin flex-mx

您好我加载了一个CSS来使用

更改我的TitleWindow关闭按钮
TitleWindow {
    close-button-skin:Embed("/../img/close_up.png");
    close-button-over-skin:Embed("/../img/close_over.png");
    close-button-down-skin:Embed("/../img/close_down.png");
    close-button-up-skin:Embed("/../img/close_up.png"); 
}

当我尝试重新加载default.css时,按钮消失。谁能帮我? ClassReference(null)也不起作用。

TitleWindow {
    close-button-skin: ClassReference("null");
    close-button-down-skin:ClassReference("null");
    close-button-over-skin:ClassReference("null");
    close-button-up-skin:ClassReference("null");
    close-button-disabled-skin:ClassReference("null");
}

1 个答案:

答案 0 :(得分:0)

好的找到了答案。这会重置关闭按钮皮肤。

close-button-skin: ClassReference("null");  
close-button-disabled-skin: Embed(source="Assets.swf", symbol="CloseButtonDisabled");
close-button-down-skin: Embed(source="Assets.swf", symbol="CloseButtonDown");
close-button-over-skin: Embed(source="Assets.swf", symbol="CloseButtonOver");
close-button-up-skin: Embed(source="Assets.swf", symbol="CloseButtonUp");