2 Replies Latest reply on Aug 28, 2007 8:07 AM by enfantterrible-tijzQ7

    how to access a function in a tabnavigator container?

    enfantterrible-tijzQ7
      I have a tabNavigator container that I create the tabs using the following code:
      var tabFieldsBase1:Canvas = new Canvas();
      var _userFields:userFields = new userFields;
      tabFieldsBase1.label = "User Fields";
      _userFields.id = "userFields";
      tabFieldsBase1.addChild(_userFields);
      tabHolder.addChild(tabFieldsBase1);

      inside the tabed document/class I have a function/method named: startMeUp(). How can I call this function in the currently active tabed class using AS3 in my app?

      I've tried many ways including: var testTemp:Object = tabHolder.selectedChild.getChildAt(0);
      testTemp.startMeUp();

      userFields.startMeUp();

      Thanks for the help;
      Carlos