怎么在flex自定义按钮等组件
在FlexBuilder3种怎么自定义按钮组件,系统中默认的组件太过于格式化,不怎么好看,我想做一个比较个性化的按钮组件。qq农场应该是用FlexBuilder3这一类软...
在Flex Builder3 种怎么自定义按钮组件,系统中默认的组件太过于格式化,不怎么好看,我想做一个比较个性化的按钮组件。
qq农场应该是用Flex Builder3 这一类软件开发的吧,那里面的按钮都是那么有趣的。 展开
qq农场应该是用Flex Builder3 这一类软件开发的吧,那里面的按钮都是那么有趣的。 展开
1个回答
2013-04-21
展开全部
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;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询