Скорее всего у вас где-то устанавливается selectedIndex = -1;
Какая у вас версия SDK? В 3.2 в этом сеттере была
ошибка, правда как раз обратная.
Добавлено через 48 секунд
Вот суть ошибки:
In mxml, if you set <mx:ToggleButtonBar selectedIndex="-1">, documentation say that none of buttons should be selected.
In fact, the first one is selected.
Steps to reproduce:
1.
<mx:ToggleButtonBar id='tbb' selectedIndex="-1" dataProvider="{[1,2,3]}"/>
Actual Results:
button one is selected =>> tbb.selectedIndex == 0
Expected Results:
none of button selected =>> tbb.selectedIndex == -1
Workaround (if any):
<mx:ToggleButtonBar dataProvider="{[1,2,3]}" id="tbb" creationComplete="tbb.selectedIndex=-1"/>