2 Replies Latest reply on Mar 4, 2010 3:11 PM by Groovee2010

    ButtonBar.getChildAt() error in FB4




      Fairly new to FB4 but couldn't find an answer to this via searching.  I have a simple line of code as follows in a Flex 3 project:


      (buttonBar.getChildAt(buttonIdx) as Button).enabled = bHasContent;


      Upon converting my Flex 3 ToggleButtonBar to a Flex 4 (spark) ButtonBar, the above line fails.  The ButtonBar has only one child (the data provider) and I don't see any other methods to access the individual button children.


      Thanks for any assistance,