2 Replies Latest reply on Apr 20, 2011 3:53 AM by Tauqeer_QAU

    Squiggly with UITextfield

    Tauqeer_QAU

      Hi All

      I am using Squiggly allright with textarea but unable to do with UITextfield

      because SpellUI.enableSpelling(); takes UIComponent as an argument

      Can anyone give me an idea . how to use squiggly with UITextfield.???

      Thanks

        • 1. Re: Squiggly with UITextfield
          mssrivatsa

          Hi

           

           

          The following may help you:

           

          1.Download the squibbly package.

          2.It has src, lib and example folders.

          3. Open a flex project and in libs folder copy all the contents of squibbly/libs folder

          4. Similarly copy all the contents of squibbly/src to your src folder in flex application

           

          Now in your flex application try this code

           

          <?xml version="1.0" encoding="utf-8"?>

          <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"

          creationComplete="application1_creationCompleteHandler(event)">

          <mx:Script>

          <![CDATA[

          import com.adobe.linguistics.spelling.SpellUI;

          import mx.events.FlexEvent;

           

           

          protected function application1_creationCompleteHandler(event:FlexEvent):void

          {

          // TODO Auto-generated method stub

          SpellUI.enableSpelling(textArea, "en_US");

          }

           

          ]]>

          </mx:Script>

           

          <mx:TextArea id="textArea" width="20%" height="20%" fontSize="20" text="Test Speling in TextArea "/>

           

           

          </mx:Application>

           

           

          Hope this Helped You

           

          Regards,

          M.S.Srivatsa

          • 2. Re: Squiggly with UITextfield
            Tauqeer_QAU Level 1

            I have done all this, it is working with textarea.

            But I am not able to use Squiggly with UITextfield