Oh, supposed to be
var button:Button = buttonBar.getChildAt(searchIndex) as Button;
Mike
On 2/24/07, Michael Schmalle <[EMAIL PROTECTED]> wrote:
Hi,
Try;
var searchIndex:int = 2;
var button:Button = getChildAt(searchIndex) as Button;
button.enable = false;
or use the other DisplayObjectContainer methods for getting a child
instance;
- getChildByName()
etc
Peace, Mike
On 2/24/07, metalbeard <[EMAIL PROTECTED]> wrote:
>
> Hi,
> Is there anyway that we can set the enable property of a specific
> button inside the buttonBar (a child of a buttonBar) to false?
>
> I couldn't find it.
>
> Wael
>
>
>
--
Teoti Graphix
http://www.teotigraphix.com
Blog - Flex2Components
http://www.flex2components.com
You can find more by solving the problem then by 'asking the question'.
--
Teoti Graphix
http://www.teotigraphix.com
Blog - Flex2Components
http://www.flex2components.com
You can find more by solving the problem then by 'asking the question'.