You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2014/10/27 07:23:15 UTC
[15/50] [abbrv] git commit: [flex-utilities] [refs/heads/master] -
simplify squiggly example
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/master
Commit: cba0f58c5076f0dff0d4b7947495d6707f2011f0
Parents: d34658b
Author: Justin Mclean <jm...@apache.org>
Authored: Sat Oct 18 11:23:13 2014 +1100
Committer: Justin Mclean <jm...@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>