1.kingnarestyle.swf和flexlib 的SuperNatigator出现如图的皮肤问题
绿色部分放到mxml代码中没用,貌似是flex皮肤把样式覆盖了,必须放到皮肤所在的css中
<code:SuperTabNavigator resize="resizeHandle(event)"
leftButtonStyleName="firstTab" popupButtonStyleName="tab"
rightButtonStyleName="lastTab" tabStyleName="tabStyle"
tabClose="tabCloseHandler(event)"
creationPolicy="all" id="minT" dragEnter="DoDragEnter(event)" dragDrop="doDragDrop(event)" change="SelectChange()" selectedIndex="0" width="100%" height="100%">
</code:SuperTabNavigator>
.tabStyle{
什么也不用填
}
tabStyleName必须有,否则会出现errorSkin2.png
关闭按钮皮肤被覆盖
errorSkin1.png解决办法 style.css是 kingnarestyle皮肤的css样式
<mx:Style source="style/style.css"/>
把如下代码加入style.css 中 Button样式下边,assets.swf是flexlib中的
Button{
.....
}
SuperTab{
tab-close-button-style-name:"tabCloseButton";
}
.tabCloseButton{
upSkin:Embed(source="../assets/assets.swf", symbol="firefox_close_up");
downSkin:Embed(source="../assets/assets.swf", symbol="firefox_close_down");
overSkin:Embed(source="../assets/assets.swf", symbol="firefox_close_over");
disabledSkin:Embed(source="../assets/assets.swf", symbol="firefox_close_disabled");
selectedUpSkin:Embed(source="../assets/assets.swf", symbol="firefox_close_up");
selectedDownSkin:Embed(source="../assets/assets.swf", symbol="firefox_close_down");
selectedOverSkin:Embed(source="../assets/assets.swf", symbol="firefox_close_over");
selectedDisabledSkin:Embed(source="../assets/assets.swf", symbol="firefox_close_disabled");
}