Kenny, You will need to cast the child to a
Button. In the future, include the compiler error in your message. This will
help the forum isolate your problem. HTH, Jason <?xml version="1.0"
encoding="iso-8859-1" ?> <mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> public function
changeStyle():void { Button(bb.getChildAt(0)).setStyle("borderColor",0x23FF33); } </mx:Script> <mx:ButtonBar id="bb"
dataProvider="{['won', 'too', 'tree', 'for']}"/> <mx:Button
click="changeStyle()"/> </mx:Application> From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lostinrecursion Jason, -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
__,_._,___ |
- RE: [flexcoders] Re: ToggleButtonBar: Styling Individual Butto... Jason Szeto