make sure that
1- The file AdobeSpellingUITLF.swc in lib folder
2-the file SpellingConfig.xml in the floder /assets/dict/ in source folder
3- the two files en_US.aff , en_US.dic in folder /assets/dict/en_US/ as shown in file SpellingConfig.xml
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="creationCompleteHandler(event)"> <fx:Script> <![CDATA[ import com.adobe.linguistics.spelling.SpellUIForTLF; import mx.events.FlexEvent; protected function englishButton_clickHandler():void { SpellUIForTLF.disableSpelling(myTextArea.textFlow); SpellUIForTLF.enableSpelling(myTextArea.textFlow,"en_US"); } protected function creationCompleteHandler(event:FlexEvent):void { SpellUIForTLF.spellingConfigUrl = "assets/dict/SpellingConfig.xml"; } ]]> </fx:Script> <s:RichEditableText id="myTextArea" bottom="50" top="0" left="0" right="200 /> <s:HGroup height="50" bottom="0"> <s:Button label="en_US" click="englishButton_clickHandler()" /> </s:HGroup> </s:Application>
SpellingConfig.xml
<?xml version="1.0" encoding='UTF-8'?> <SpellingConfig> <LanguageResource language="English" languageCode="en_US" ruleFile="assets/dict/en_US/en_US.aff" dictionaryFile="assets/dict/en_US/en_US.dic"/> </SpellingConfig>