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;
}
除了上面的方法,你还可以使用其他组件来实现类似按钮效果,毕竟在Flex中所有的可视化对象都已经实现了对鼠标事件(如MouseEvent.click等)的响应,当然这些都需要自定义,同时加上 buttonMode="true",另外我个人认为QQ农场是用Flash来开发的,Flex Builder3的开发环境是Eclipse,这是两种截然不同的软件
农场之类的游戏应该是flash开发的而非flex flex做交互式网站很有优势 但对于图形类的游戏开发 还有很多欠缺 在flash里个性按钮是可以用画出来了
应该是用flex开发的,至少我知道人人网的农场是flex开发的