simplify squiggly example
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/cba0f58c Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/cba0f58c Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/cba0f58c Branch: refs/heads/develop Commit: cba0f58c5076f0dff0d4b7947495d6707f2011f0 Parents: d34658b Author: Justin Mclean <jmcl...@apache.org> Authored: Sat Oct 18 11:23:13 2014 +1100 Committer: Justin Mclean <jmcl...@apache.org> Committed: Sat Oct 18 11:23:13 2014 +1100 ---------------------------------------------------------------------- .../src/apache/squiggly/SpellingExExample.mxml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/cba0f58c/TourDeFlex/TourDeFlex3/src/apache/squiggly/SpellingExExample.mxml ---------------------------------------------------------------------- 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>