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
>

Reply via email to