HI,

Just in case anyone needs a simple test to try it out:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="vertical">    
        
<mx:Script>
        <![CDATA[
                        import com.adobe.linguistics.spelling.SpellUI;  
                        
                        private function enableFeature():void {
                                SpellUI.spellingConfigURL = 
"SpellingConfig.xml";
                                SpellUI.enableSpelling(textArea, "en_US");
                        }
        ]]>
</mx:Script>
                
        <mx:TextArea id="textArea" width="20%" height="20%" fontSize="30" 
text="Spell cheecking in TextArea "/>
        <mx:Button id="check" label="spell check" click="enableFeature()" />    
</mx:Application>

SpellingConfig.xml:
<SpellingConfig>
  <LanguageResource language="US English" languageCode="en_US" 
ruleFile="./data/en_US.aff" dictionaryFile="./data/en_US.dic"/>
</SpellingConfig>

You need to provide en_US.aff and en_US.dic file and place in a data directory 
but these can be found in many places. eg Adobe's version of Squiggly or it 
looks like from the Open Office extensions site [1]

Thanks,
Justin

1. http://extensions.openoffice.org


Reply via email to