title: Flex/AIR Mobile: TabbedViewNavigator selectedIndex not working
body: <p>I have a Mobile Project in FB 4.6 with a TabbedViewNavigator. I have 4 buttons at the bottom, which are ViewNavigators, and act as the Tabs. For this instance, lets say the tabs are labeled, HOME, ADD, DELETE, and ABOUT. I am running into the following situation:</p>
  
  <ol>
  <li>User presses the ADD tab.</li>
  <li>In the ADD screen, user clicks on several links which takes them away from the ADD tab's firstView and to a new view all together. For this instance, let's say the active view is called PlayersView.</li>
  <li>User now clicks another tab, for example HOME.</li>
  <li>User decides to go back to the ADD tab. However, upon pressing the ADD tab, the user is taken to the last view, which in this case was the PlayersView.</li>
  </ol>
  
  <p>How can I have the functionality changed so that upon pressing a Tab, the user is ALWAYS taken to the firstView property of that tab. As referenced above, this is not happening. I have tried creating an IndexChangeEvent listener on the tabbedNavigator and then changing the tabbedNavigator's selectedIndex, however this doesn't work.</p>
  
  <pre><code>protected function tabbedviewnavigatorapplication1_applicationCompleteHandler(event:FlexEvent):void {
  
        this.tabbedNavigator.addEventListener(IndexChangeEvent.CHANGE,onIndexChange);
  }
  
  
  protected function onIndexChange(event:IndexChangeEvent):void {
  
        this.tabbedNavigator.selectedIndex = event.newIndex;
        trace(' THIS DOESN'T WORK');
  }
  </code></pre>
  
  <p>Any help is appreciated. Thanks, in advance.</p>