3 Replies Latest reply on Jun 2, 2011 12:39 PM by oldMster

    Access mx components in fx:script

    194642537 Level 1

        Hi All

       

       

          My code looks somrthing like this

       

        <fx:script>

       

             function samplefunction():void

      {

          tbNavigator.getTabAtIndex(0);

      }

       

      </fx:script>

       

      <mx:TabNavigator id="tbNavigator" />

       

      I am not able to access the tbNavigator in the samplefunction. It is null.

       

      Can anybody help me in knowing how mx components can be accessed in fx:script

       

      Any help or suggestions is highly appreciated. !!!!!!!!!!!

       

      Thanks