styling the last button in a buttonbar control in flex
Category: Flex Examples, Flex Samples | 3,438 views | 1 Comment
The following example shows how you can style the last button in a Flex ButtonBar control
by setting the lastButtonStyleName style.
<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application name=”ButtonBar_lastButtonStyleName_test”
xmlns:mx=”http://www.adobe.com/2006/mxml”
layout=”vertical”
verticalAlign=”middle”
backgroundColor=”white”>
<mx:Style>
.lastButton {
color: red;
cornerRadius: 10;
fontWeight: normal;
themeColor: haloGreen;
}
</mx:Style>
<mx:ButtonBar id=”buttonBar”
dataProvider=”[Red,Orange,Yellow,Green,Blue]”
lastButtonStyleName=”lastButton” />
</mx:Application>
Read more…
- Handling Java Exceptions in Flex application
- learn Flex Application Frameworks
- Add FlexComponents to your mailing lists!
- Great Ways to Learn ActionScript 3 in Flash
- How to Learn Flex
- What is Flex?
- Flex Component Kit
- Flex 3 Cookbook
- Flex Ajax Bridge
- Rich Internet applications (RIAs)







