10 Replies Latest reply on Nov 16, 2007 11:46 PM by Greg Dove

    extract first letter from input text

    gin3d
      how can i extract first letter from input text to achieve something like this:

      input text:
      name: (Jhon)
      surname: (Rambo)

      dynamic output:
      Hello J.Rambo !


      _root.onEnterFrame = function () {

      letter = name - xxxxxxxxxxxxxxxxxxxxxxxxx?

      out =
      "Hello " + letter + "." + surname + " !"
      };

      what code should i put in xxxxxxxxxxxxxxxxxxxxxxx?

      thank you.