5 Replies Latest reply on Jul 8, 2010 8:56 AM by lkenney2

    AS-Based TabNavigator OnClick Event


      I know you can create an onClick event for the tabnavigator in mxml document:


      <mx:TabNavigator id="myTab"  width="100%" height="100%" change="fnClick()">


      But is there a way to do it with the actionscript 3.0? So far, these have not worked:


      • myTab.addEventListener(Event.CHANGE, onChangeTabIndex);
      • myTab.addEventListener(Event.TAB_INDEX_CHANGE, onChangeTabIndex);
      • myTab.addEventListener(MouseEvent.CLICK, onChangeTabIndex);
      • myTab.addEventListener(IndexChangedEvent.CHANGE, onChangeTabIndex);


      Any ideas?