2 Replies Latest reply on May 1, 2006 12:39 PM by kaboom862

    TextBox component problem

    kaboom862
      I have a UI ComboBox that loads external text called "TextFile.txt" with multiple variables into a UI TextBox. It works perfectly....

      My problem is that if I have an externally loaded MC which needs to call upon one of the variables from the "TextFile.txt", the UI TextBox keeps displaying "undefined". If I put this into the AS then it works fine:

      this._parent._parent._root.mytextbox.text = "This text will populate the TextBox component just fine"

      BUT...

      this._parent._parent._root.mytextbox.text = this.apple_3b

      loads "undefined" in the TextBox component where "apple_3b" is one of the many variables in the "TextFile.txt" file that was loaded via the ComboBox component.

      Any help would be greatly apprecated. Thanks.
        • 1. Re: TextBox component problem
          shyaway Level 1
          this.apple_3b <<< what is this "this"? if this this isn't referencing correctly to the right "variable", then this this will give you an undefined since it couldn't find the apple_3b inside the this. did you get this?
          • 2. Re: TextBox component problem
            kaboom862 Level 1
            The "apple_3b" is a variable that is held within the loaded text file (see below for a portion of the text file):

            &apple_3a=apple_3a 100.00% 91% 82 1 0 0 1

            &apple_2b=apple_2b 98.85% 85% 1307 19 0 6 0

            &apple_3b=apple_3b 100.00% 80% 192 22 0 0 0

            &bronte_3a=bronte_3a 98.57% 81% 67 0 0 0 0

            &bronte_2b=bronte_2b 99.23% 87% 374 2 0 2 0

            &bronte_3b=bronte_3b 98.56% 82% 380 33 0 2 0

            I hope this clears up any questions you may have.