1 Reply Latest reply on Jul 26, 2006 4:22 PM by butcho

    UPDATING VARIABLES

    yarkehsiow Level 1
      Hello,
      i have a textField, the height of which i need to update as text is added, or as the size of the text is changed, which makes the textField taller.
      i am using "onChanged" , plus a listener to the comboBox with text sizes...
      the problem: the variable "newHeight" does catch the change, but only on the second click after it should trigger the associated function. in other words, its supposed to tell me if the textField is longer than 100, so i add a new line (newHeight= 102) and nothing... then i add another new line, and then it tells me. does anyone have an idea?
      Thanks!
        • 1. Re: UPDATING VARIABLES
          Level 1
          Hi,

          does your textfield is dynamic or input?

          Wathever, i suggest you use the autosize property of textfield. But anyway, i dont know what you want to achieve.. maybe its not what you need for your project.

          ex: myTextBox.autoSize = "left";