The dataProvider is of type Object so you can pass it different kinds of data sets. The children are buttons, so getChildAt() will work, but the styleName property is used by the TBB to change the visuals for the selected button so doing what you propose probably should work temporarly then go away as you toggle buttons. Setting individual style properties like fontWeight or color should work though.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Sheriff Sent: Wednesday, October 03, 2007 2:26 PM To: [email protected] Subject: Re: [flexcoders] Change style on each button on a ToggleButtonBar no i dont think its possible since the toggleButtons are not really buttons they are objects but i'd wait till somone else chines in. If you check the dataprovider of the toggleButtonBar then it just says Object label="Button1" etc.. ----- Original Message ---- From: Guillermo Villasana <terius! @villasana.com.mx> To: [email protected] Sent: Wednesday, October 3, 2007 4:15:57 PM Subject: [flexcoders] Change style on each button on a ToggleButtonBar Is it possible to change the sytle of each button in a toggle buttonbar? I tried this... but it doesn't seem to work: MyTBB.getChildAt( 0).setStyle( 'styleName' ,'button1' ); MyTBB.getChildAt( 1).setStyle( 'styleName' ,'button2' ); MyTBB.getChildAt( 2).setStyle( 'styleName' ,'button3' ); MyTBB.getChildAt( 3).setStyle( 'styleName' ,'button4' ); what is wrong? Thanks ________________________________ Luggage? GPS? Comic books? Check out fitting gifts for grads <http://us.rd.yahoo.com/evt=48249/*http://search.yahoo.com/search?fr=oni _on_mail&p=graduation+gifts&cs=bz> at Yahoo! Search.

