2 Replies Latest reply on Oct 13, 2009 1:25 PM by Jerry62712

    How Do I see components

    Jerry62712 Level 1

      I have a series of components that I assign various values (text) to.  We added a TabNavigator to reduce the vertical space that was being taken and now the components within it are null and won't accept the values that they did before the TabNavigator was added.

       

      I"m assuming that with the TabNavigator comes a different visibility.  Within the mxml:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application
        xmlns:mx="http://www.adobe.com/2006/mxml"
        xmlns:DHSComp="components.*"
        initialize="setInitAccessible();"
        applicationComplete="setInitLanguage();"
        backgroundColor="#dedacf"
        layout="absolute"
        borderStyle="inset"
        borderThickness="2"
        paddingLeft="10"
        paddingRight="10"
        paddingTop="10"
        paddingBottom="10"
        height="100%"
        width="100%"
        verticalScrollPolicy="on">

       

      I don't know of an event that is after "applicationComplete".  The call is to:

        <mx:Script>
          <![CDATA[
             
              public function setInitLanguage():void {
                  resetEnglish();
              }

       

              public function setInitAccessible():void {
                  getXMLURL();
                  accessibleSet();
              }
          ]]>
        </mx:Script>

       

      Within the reset:

      public function resetEnglish():void {
          // all "get" are in DHSclasses/FSLangEnglish.as
          pageSNAPText = English.getPageSNAPText();

      ... // these work OK

          if (currentState != "Result") {
              resetEnglishBase();                        // scripts/FSLangEngBase.as
          }

       

      The problem comes up in the next call.  The prior one and the next one are both scripts included in the mxml file:

      public function resetEnglishBase():void {
          // reset inputform (base) to English
          // all "get" are in DHSclasses/FSLangEnglish.as
          householdInformationPanel.title = English.getHouseholdInformationLabel();
          householdInformationPanel.toolTip = English.getHouseholdInformationTT();

       

      The "householdInformationPanel.title" shows as a null when the TabNavigator is included and not when it is not.

       

      The question becomes how do I get the title to work when a TabNavigator is included?