1 Reply Latest reply on Jul 27, 2006 1:13 PM by JFaith777

    changing Tabnavigator Programatically

    blomasky Level 1
      The title says it all, I want to be able select a new tab. How can I do that in flex (actionscript).


      thanks
      bruce
        • 1. Re: changing Tabnavigator Programatically
          JFaith777 Level 1
          public function myFunctionName():void{
          myButtonIDhere.addEventListener(MouseEvent.CLICK, functionBelow);
          }

          public function functionBelow(e:MouseEvent):void{
          myTabNavigatorIDhere.selectedIndex=1
          //(first tab is index 0 and so on)
          }

          You must load the event listener using a "creationComplete="myFunctionName();" in your canvas or elsewhere

          Hope that helps....

          Josh