1 Reply Latest reply on Jul 3, 2006 1:40 PM by Newsgroup_User

    letters type in capital letter in text field always

    farhanakhan
      hi

      capital leters

      when i wana type in text field then the letters must be type in capital letter i want this

      tell me the scipt through which i can do this

        • 1. Re: letters type in capital letter in text field always
          Level 7
          If you're using MX2004, you could attach the following #lingo syntax
          behavior to your #text sprite:
          --
          property spriteNum
          property myMember

          on beginSprite me
          myMember = sprite(spriteNum).member
          end

          on keyUp me
          tSelection = myMember.selection
          myMember.text = jsToUpper(myMember.text)
          myMember.selection = tSelection
          end

          and include the following in your movie as a #javaScript syntax #movie
          script:
          //
          function jsToUpper( aString ) {
          return aString.toUpperCase();
          }