simplify squiggly example
diff --git a/TourDeFlex/TourDeFlex3/src/apache/squiggly/SpellingExExample.mxml b/TourDeFlex/TourDeFlex3/src/apache/squiggly/SpellingExExample.mxml
index af31565..04b29a5 100644
--- a/TourDeFlex/TourDeFlex3/src/apache/squiggly/SpellingExExample.mxml
+++ b/TourDeFlex/TourDeFlex3/src/apache/squiggly/SpellingExExample.mxml
@@ -18,20 +18,10 @@
-->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
- xmlns:s="library://ns.adobe.com/flex/spark"
- applicationComplete="init()">
+ xmlns:s="library://ns.adobe.com/flex/spark">
<fx:Script>
<![CDATA[
import com.adobe.linguistics.spelling.SpellUI;
- import com.adobe.linguistics.spelling.framework.SpellingConfiguration;
- import com.adobe.linguistics.spelling.framework.ResourceTable;
-
- public function init():void
- {
- var resourceTable:ResourceTable = new ResourceTable();
- resourceTable.setResource("en_US", {rule:"data/en_US.aff", dict:"data/en_US.dic"});
- SpellingConfiguration.resourceTable = resourceTable;
- }
]]>
</fx:Script>
@@ -42,7 +32,7 @@
<s:Group width="100%" height="100%">
<s:TextArea id="ta_en" width="50%" height="50%" fontSize="20"
text="I know Enlish. Use the context menu to see the suggestions of the missbelled word."
- creationComplete="SpellUI.enableSpelling(ta_en, 'en_US');"/>
+ creationComplete="SpellUI.enableSpelling(ta_en, 'en_US')"/>
</s:Group>
</s:Panel>