OBS: src folder also has files pt_BR.aff and pt_BR.dic 2014-09-10 12:43 GMT-03:00 Felipe Zap <[email protected]>:
> Hi guys > > I'm trying to set up a simple project with a new version of Squiggly 1.0 > but, for some reason, it doesn't work.. nothing happens... > > I'm using Apache Flex SDK 4.13.0 to compile > and pt_BR dictionary. > > The project is very simple > > [project path]/src contains: > > - Sample.mxml: > - SpellTextInput.as > - SpellConfig.xml > > [project path]/libs contains: > > ApacheFlexLinguisticUtils.swc > ApacheflexSpellingEngine.swc > ApacheFlexSpellingFramework.swc > ApacheFlexSpellingUI.swc > ApacheFlexSpellingUIAPI.swc > ApacheFlexSpellingUIEx.swc > ApacheFlexSpellingUITLF.swc > > > Code of files: > > Sample.mxml: > > <?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" minWidth="955" > minHeight="600" xmlns:local="*"> > > <local:SpellTextInput /> > > </s:Application> > > SpellTextInput.as: > > package { > > import com.adobe.linguistics.spelling.SpellUI; > > import spark.components.TextInput; > > public class SpellTextInput extends TextInput { > > > //---------------------------------------------------------------------- > // Constructor > > //---------------------------------------------------------------------- > > public function SpellTextInput() { > super(); > > SpellUI.spellingConfigURL = "SpellingConfig.xml"; > SpellUI.enableSpelling(this, "pt_BR"); > } > > } > } > > SpellingConfig.xml > > <SpellingConfig> > <LanguageResource language="Portuguese" languageCode="pt_BR" > ruleFile="pt_BR.aff" dictionaryFile="pt_BR.dic"/> > </SpellingConfig> > > > > What's wrong? > > Thank you guys! >
