1 Reply Latest reply on Dec 24, 2009 4:58 PM by chris.huston.t10

    Using TextInput boxes to change to small Caps lettering with NO ....

    aktell2007 Level 1

      Using two TextInput boxes (fName and lName) which are writting at the same time over to a (fullName) Text box, BUT change the data in here automaticly to 'small Caps' lettering with NO spaces.

       

      I'm finding all sort of things but nothing close enough.Any help would be appriciated!

       

      Thanks in advance aktell

        • 1. Re: Using TextInput boxes to change to small Caps lettering with NO ....
          chris.huston.t10 Level 3

          How about this:

           

          <?xml version="1.0" encoding="utf-8"?>
          <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
              <mx:Script>
                  <![CDATA[
                      protected function name_changeHandler(event:Event):void {
                          var firstName:String = fName.text.toLowerCase();
                          var lastName:String = lName.text.toLowerCase();
                          fullName.text = firstName + lastName;
                      }
                  ]]>
              </mx:Script>
              <mx:Label x="156" y="74" text="first"/>
              <mx:TextInput x="199" y="72" id="fName" change="name_changeHandler(event)"/>
              <mx:Label x="156" y="104" text="last"/>
              <mx:TextInput x="199" y="102" id="lName" change="name_changeHandler(event)"/>
              <mx:Text x="199" y="132" text="Text" id="fullName"/>
          </mx:Application>

           

          I think this does what you were asking for.

           

          Chris