1 Reply Latest reply on Feb 18, 2010 11:18 PM by archemedia

    Flex 3 TabNavigator getting tab name when tab clicked

    chieffan Level 1

      Hi All, I am using Flex 3.

       

      I have

      <mx:TabNavigator

       

      id="dbtabs" width="100%" height="100%" click="changeTabs()"  />

       

      I am also adding tabs dynamically. 

       

      In the grand scheme of things, I want to let a user add tabs as needed and chose what content is on the tab.  This is saved data, so when they come back I need to reload their saved settings.

       

      What I am trying to do is find out how to get the index of the tab when it is clicked. Right now I have to click the tab then click in the vbox to get the selectedIndex.  Is there a way to get the selectedIndex as soon as the tab is clicked?

       

      Thanks.