Hi, how can I set the tabIndex to 0, if the dataProvider changes ? <mx:TabNavigator id="tab" width="600" height="300" > <mx:Repeater id="itxt" dataProvider="{infodaten}" repeatEnd="init()"> <v:InfoTextzeile sprache="{itxt.currentItem.spr}" > </v:InfoTextzeile> </mx:Repeater> </mx:TabNavigator>
I tried: public function init ():void { tab.selectedIndex = 0 Log.Debug("Index "+ tab.selectedIndex); } But this doesn´t work because "tab.selectedIndex" is always "0" Thanks, Flayoo