怎么在flex自定义按钮等组件
1个回答
2015-01-17 · 知道合伙人互联网行家
关注
展开全部
flexlib 里面有一个设置个性化按钮的东西橡明,具体可以查看gougle 的api,我写过尘帆一个你可以参考下,前提是你必须使用flexlib
Button {
upSkin:ClassReference('flexlib.skins.EnhancedButtonSkin');
overSkin:ClassReference('flexlib.skins.EnhancedButtonSkin');
downSkin:ClassReference('flexlib.skins.EnhancedButtonSkin');
disabledSkin:ClassReference('flexlib.skins.EnhancedButtonSkin');
selectedUpSkin:ClassReference('flexlib.skins.EnhancedButtonSkin');
selectedOverSkin:ClassReference('flexlib.skins.EnhancedButtonSkin');
selectedDownSkin:ClassReference('flexlib.skins.EnhancedButtonSkin'梁兄告);
selectedDisabledSkin:ClassReference('flexlib.skins.EnhancedButtonSkin');
corner-Radii: 6, 6, 6, 6;
border-Colors: #B2DC32, #4b5f0c;
over-Border-Colors: #B2DC32, #4b5f0c;
selected-Border-Colors: #B2DC32, #4b5f0c;
border-Thickness: 1;
border-Alpha: 0.95;
fill-Colors: #B2DC32, #4b5f0c;
fill-Color-Ratios: 0, 255;
over-Fill-Colors: #B2DC32, #4b5f0c;
over-Fill-ColorRatios: 0, 128, 255;
selected-Fill-Colors: #B2DC32, #4b5f0c;
selected-Fill-Color-Ratios: 0, 255;
color: black;
text-Roll-Over-Color: #4b5f0c;
}
Button {
upSkin:ClassReference('flexlib.skins.EnhancedButtonSkin');
overSkin:ClassReference('flexlib.skins.EnhancedButtonSkin');
downSkin:ClassReference('flexlib.skins.EnhancedButtonSkin');
disabledSkin:ClassReference('flexlib.skins.EnhancedButtonSkin');
selectedUpSkin:ClassReference('flexlib.skins.EnhancedButtonSkin');
selectedOverSkin:ClassReference('flexlib.skins.EnhancedButtonSkin');
selectedDownSkin:ClassReference('flexlib.skins.EnhancedButtonSkin'梁兄告);
selectedDisabledSkin:ClassReference('flexlib.skins.EnhancedButtonSkin');
corner-Radii: 6, 6, 6, 6;
border-Colors: #B2DC32, #4b5f0c;
over-Border-Colors: #B2DC32, #4b5f0c;
selected-Border-Colors: #B2DC32, #4b5f0c;
border-Thickness: 1;
border-Alpha: 0.95;
fill-Colors: #B2DC32, #4b5f0c;
fill-Color-Ratios: 0, 255;
over-Fill-Colors: #B2DC32, #4b5f0c;
over-Fill-ColorRatios: 0, 128, 255;
selected-Fill-Colors: #B2DC32, #4b5f0c;
selected-Fill-Color-Ratios: 0, 255;
color: black;
text-Roll-Over-Color: #4b5f0c;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询