Heyo, Trying to test this out in a simple app. I use the same code as above, and I got the following error:
VerifyError: Error #1014: Class com.adobe.linguistics.spelling.framework.ui::IHighlighter could not be found. at SquigglyTest/btnCheck_clickHandler()[C:\Users\cmartin\Documents\Adobe Flash Builder 4.7 flex-sdk\SquigglyTest\src\SquigglyTest.mxml:18] at SquigglyTest/__btnCheck_click()[C:\Users\cmartin\Documents\Adobe Flash Builder 4.7 flex-sdk\SquigglyTest\src\SquigglyTest.mxml:34] After including the ApacheFlexSpellingFramework.swc in my lib I got past that error. Maybe we need to add that into the README? After clicking on "Check Spark" nothing happens. Looked through via debug and it seems that the context menu is not ultimately getting added (SpellUI.as@510) so the _spellingEnabled is never set to true. Now, what's really odd (and probably means developer environment error), is that when I try to debug at line 510, it appears to "skip" over the line. No error caught in the try catch, and the execution does not drop into the addContextMenu function as expected. I suspect, I ultimately need to get my flashplayer version references in line. Right now i'm running FP 15, with the build files for the squiggly swcs referencing the globalplayer.swc for FP14, and my flex-sdk home is still set to Flex 4.12.1 which matches the SDK i'm using in the project and that is expecting at least FP 12.0. I'll try to take another look at this later today to see if I can test a good test of the project. Any feedback if I'm going in the right direction would be cool too. I'm still new to compiling/using libraries in my projects. Chris On Sun, Oct 19, 2014 at 8:13 PM, Justin Mclean <jus...@classsoftware.com> wrote: > Hi, > > Here's a sample to test out spelling working in spark components: > > <?xml version="1.0" encoding="utf-8"?> > > <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" > > xmlns:s="library://ns.adobe.com/flex/spark" > > xmlns:mx="library://ns.adobe.com/flex/mx"> > > <s:layout> > > <s:VerticalLayout /> > > </s:layout> > > > <fx:Script> > > <![CDATA[ > > import com.adobe.linguistics.spelling.SpellUI; > > > private function enableSpark():void { > > SpellUI.enableSpelling(sparkta, "en_GB"); > > } > > ]]> > > </fx:Script> > > <s:TextArea id="sparkta" text="Spell cheecking in TextArea "/> > > <s:Button label="Check Spark" click="enableSpark()" /> > > </s:WindowedApplication> > > > You'll need to add the en_GB dictionary to your project and set up the > spelling config file like so: > > > <SpellingConfig> > > <LanguageResource language="English (British)" languageCode="en_GB" > ruleFile="./data/en_GB/en_GB.aff" dictionaryFile="./data/en_GB/en_GB.dic"/> > > </SpellingConfig> > > Thanks, > Justin > > On Mon, Oct 20, 2014 at 2:00 PM, Justin Mclean <justinmcl...@me.com> > wrote: > > > Hi, > > > > Please place any discussion here and not in the vote thread. > > > > Thanks, > > Justin > > >