3 Replies Latest reply on Dec 18, 2006 10:43 AM by kglad

    input text again

    Level 7
      now flash 8 acts very different on different machines.

      assume 1 frame on main timeline:
      one text input assigned to variable x, prefilled with the number "1"
      (without quotes, of course, and dispite we´re supposed to use instance
      names instead of variables...).
      also on frame 1: trace(x);

      we got some 200 machÃnes here (school), win2000,win xp sp1, win xp sp2.

      some trace: "NaN"
      others trace: "1" (what i expected for all machines)
      still others trace: <p align="center"><font face="Lucida Sans" size="18"
      color="#000000" letterSpacing="0.000000" kerning="1"><b>1</b></font></p>
      (despite html set to false in property inspector)

      even more curious:
      you can´t predict anything, even machines which were installed
      absolutely identical show different behaviours.

      bad thing for teaching beginners.
      so you can´t show how variables work using textfields anymore.

      any ideas?

      perry
        • 1. Re: input text again
          kglad Adobe Community Professional & MVP
          1. all textfield text properties are strings. so, if you try and manipulate (what appears to be) a number in a textfield with arithmetic operations you'll always see NaN,

          2. all textfields that do not have html-enabled will trace 1 if you trace the textfield's properties,

          3. that trace results from the textfield having html enabled. that may be done explicitly by checking the html-enabled checkbox or done implicitly by checking the auto-kerning checkbox.
          • 2. Re: input text again
            Level 7
            kglad schrieb:
            > 1. all textfield text properties are strings. so, if you try and manipulate
            > (what appears to be) a number in a textfield with arithmetic operations you'll
            > always see NaN
            >
            > 2. all textfields that do not have html-enabled will trace 1 if you just
            > trace the textfield's properties and you're not using html formatting
            >
            > 3. that trace results from the textfield having html enabled. that may be
            > done explicitly by checking the html-enabled checkbox or done implicitly by
            > checking the auto-kerning checkbox.
            >

            thanx a lot!
            wasn´t aware auto-kerning implicitly enables html.
            • 3. Re: input text again
              kglad Adobe Community Professional & MVP
              you're welcome.