Did you cast the returned button instance to Button?
var child:Button = getChildAt(buttonIndex) as Button;
Peace, Mike
On 4/20/06, wlbagent <[EMAIL PROTECTED]> wrote:
I know this can be done using individual buttons but can the
individual buttons in a ButtonBar component (not the whole ButtonBar)
be enabled or disabled?
For example. You have a ButtonBar with 4 buttons labeled
"A","B","C",and "D". You want button "A" to always be enabled but the
remaining buttons would be enabled or disabled based on some other
condition. You might have a DataGrid and want "B","C",and "D" enabled
if a row is selected, otherwise they are disabled.
This should be a fairly easy thing to do if its actually possible. I
can reference the individual buttons but there doesn't seem to be an
enabled property for them. What have I missed??
Any ideas???
--
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
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--
What goes up, does come down.
--
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
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

