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/09 05:07:36 UTC

[01/16] git commit: [flex-utilities] [refs/heads/develop] - update to 1.2

Repository: flex-utilities
Updated Branches:
  refs/heads/develop 45898c72c -> add146d57


update to 1.2


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/5ca92c8c
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/5ca92c8c
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/5ca92c8c

Branch: refs/heads/develop
Commit: 5ca92c8ccd2214183d9e0792547e6ddb80829f8e
Parents: 672be37
Author: Justin Mclean <jm...@apache.org>
Authored: Thu Oct 9 13:51:54 2014 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Thu Oct 9 13:51:54 2014 +1100

----------------------------------------------------------------------
 TourDeFlex/TourDeFlex3/README | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/5ca92c8c/TourDeFlex/TourDeFlex3/README
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/README b/TourDeFlex/TourDeFlex3/README
index f09ffd9..695b151 100644
--- a/TourDeFlex/TourDeFlex3/README
+++ b/TourDeFlex/TourDeFlex3/README
@@ -18,9 +18,9 @@ How to build Tour De Flex using ant (no IDE is required)
 ==========================================================================================
 
 1.  On Linux or Mac un tar/gzip the source distribution:
-	    tar -zxvf apache-flex-tour-de-flex-component-explorer-1.0.tar.gz
+	    tar -zxvf apache-flex-tour-de-flex-component-explorer-1.2.tar.gz
 	Or if on windows unzip 
-		apache-flex-tour-de-flex-component-explorer-1.0.zip
+		apache-flex-tour-de-flex-component-explorer-1.2.zip
 
 2.  In the base directory, run:
         ant compile
@@ -43,14 +43,15 @@ Some other useful ant targets
 There are several other useful ant targets. Note that compile-shell is required if you want
 changes to explorer.xml to take effect.
 
-	 compile-shell   compile explorer shell
-	 compile-mx      compile mx examples
-	 compile-spark   compile first set of spark examples
-	 compile-spark2  compile second set of spark examples
-	 compile-spark3  compile third set of spark examples
- 	 compile-apache  compile apache examples
-	 package-tar     tar up all source files
-	 package-zip     zip up all source files
+	 compile-shell     compile explorer shell
+	 compile-mx        compile mx examples
+	 compile-spark     compile first set of spark examples
+	 compile-spark2    compile second set of spark examples
+	 compile-spark3    compile third set of spark examples
+ 	 compile-apache    compile apache examples
+ 	 compile-squiggly  compile apache squiggly examples
+	 package-tar       tar up all source files
+	 package-zip       zip up all source files
 
 ==========================================================================================
 Compiling a single example


[05/16] git commit: [flex-utilities] [refs/heads/develop] - remove grey bar in header

Posted by jm...@apache.org.
remove grey bar in header


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/e7f847f2
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/e7f847f2
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/e7f847f2

Branch: refs/heads/develop
Commit: e7f847f29410515c9c4ba37912c40d4908720ff2
Parents: f123166
Author: Justin Mclean <jm...@apache.org>
Authored: Thu Oct 9 13:55:54 2014 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Thu Oct 9 13:55:54 2014 +1100

----------------------------------------------------------------------
 TourDeFlex/TourDeFlex3/src/loaderPanel.mxml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/e7f847f2/TourDeFlex/TourDeFlex3/src/loaderPanel.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/loaderPanel.mxml b/TourDeFlex/TourDeFlex3/src/loaderPanel.mxml
index d94bfed..1779d52 100755
--- a/TourDeFlex/TourDeFlex3/src/loaderPanel.mxml
+++ b/TourDeFlex/TourDeFlex3/src/loaderPanel.mxml
@@ -17,8 +17,9 @@
       limitations under the License.
   -->
 
+<!-- TODO probably no need for a panel -->
 <mx:Panel xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx"
-		  horizontalAlign="center" headerHeight="10" dropShadowVisible="false">
+		  horizontalAlign="center" headerHeight="0" dropShadowVisible="false">
    <fx:Script>
      <![CDATA[
      


[16/16] git commit: [flex-utilities] [refs/heads/develop] - spelling ui sec not needed here

Posted by jm...@apache.org.
spelling ui sec not needed here


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/add146d5
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/add146d5
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/add146d5

Branch: refs/heads/develop
Commit: add146d57e9f03ce1e43d0ef001165ea5bed6421
Parents: 0d3d1aa
Author: Justin Mclean <jm...@apache.org>
Authored: Thu Oct 9 14:06:25 2014 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Thu Oct 9 14:06:25 2014 +1100

----------------------------------------------------------------------
 Squiggly/main/build.xml | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/add146d5/Squiggly/main/build.xml
----------------------------------------------------------------------
diff --git a/Squiggly/main/build.xml b/Squiggly/main/build.xml
index c19d925..4a9bff1 100644
--- a/Squiggly/main/build.xml
+++ b/Squiggly/main/build.xml
@@ -215,8 +215,6 @@
             <arg value="${OUTPUT_DIR}/ApacheFlexSpellingEngine.swc"/>
             <arg value="-external-library-path"/>
             <arg value="${OUTPUT_DIR}/ApacheFlexSpellingFramework.swc"/>
-            <arg value="-external-library-path"/>
-            <arg value="${OUTPUT_DIR}/ApacheFlexSpellingUI.swc"/>
             <arg value="-output"/>
             <arg value="${OUTPUT_DIR}/ApacheFlexSpellingUIEx.swc"/>
         </java>


[15/16] git commit: [flex-utilities] [refs/heads/develop] - change to use newer version of the UI files

Posted by jm...@apache.org.
change to use newer version of the UI files


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/0d3d1aaa
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/0d3d1aaa
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/0d3d1aaa

Branch: refs/heads/develop
Commit: 0d3d1aaa436aa42a03b2562617e3388dccf23256
Parents: 130c4cc
Author: Justin Mclean <jm...@apache.org>
Authored: Thu Oct 9 14:05:34 2014 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Thu Oct 9 14:05:34 2014 +1100

----------------------------------------------------------------------
 .../src/com/adobe/linguistics/spelling/SpellUIForTLF.as      | 8 ++++----
 .../adobe/linguistics/spelling/SpellingContextMenuForTLF.as  | 8 ++++----
 .../spelling/SquigglyCustomContainerController.as            | 8 ++++----
 3 files changed, 12 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/0d3d1aaa/Squiggly/main/SpellingUITLF/src/com/adobe/linguistics/spelling/SpellUIForTLF.as
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUITLF/src/com/adobe/linguistics/spelling/SpellUIForTLF.as b/Squiggly/main/SpellingUITLF/src/com/adobe/linguistics/spelling/SpellUIForTLF.as
index e2bbb60..7daa76d 100644
--- a/Squiggly/main/SpellingUITLF/src/com/adobe/linguistics/spelling/SpellUIForTLF.as
+++ b/Squiggly/main/SpellingUITLF/src/com/adobe/linguistics/spelling/SpellUIForTLF.as
@@ -23,10 +23,10 @@ package com.adobe.linguistics.spelling
 	import com.adobe.linguistics.spelling.framework.ResourceTable;
 	import com.adobe.linguistics.spelling.framework.SpellingConfiguration;
 	import com.adobe.linguistics.spelling.framework.SpellingService;
-	import com.adobe.linguistics.spelling.ui.IHighlighter;
-	import com.adobe.linguistics.spelling.ui.IWordProcessor;
-	import com.adobe.linguistics.spelling.ui.TLFHighlighter;
-	import com.adobe.linguistics.spelling.ui.TLFWordProcessor;
+	import com.adobe.linguistics.spelling.framework.ui.IHighlighter;
+	import com.adobe.linguistics.spelling.framework.ui.IWordProcessor;
+	import com.adobe.linguistics.spelling.framework.ui.TLFHighlighter;
+	import com.adobe.linguistics.spelling.framework.ui.TLFWordProcessor;
 	import com.adobe.linguistics.utils.TextTokenizer;
 	import com.adobe.linguistics.utils.Token;
 	

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/0d3d1aaa/Squiggly/main/SpellingUITLF/src/com/adobe/linguistics/spelling/SpellingContextMenuForTLF.as
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUITLF/src/com/adobe/linguistics/spelling/SpellingContextMenuForTLF.as b/Squiggly/main/SpellingUITLF/src/com/adobe/linguistics/spelling/SpellingContextMenuForTLF.as
index ccc3c78..8d6d124 100644
--- a/Squiggly/main/SpellingUITLF/src/com/adobe/linguistics/spelling/SpellingContextMenuForTLF.as
+++ b/Squiggly/main/SpellingUITLF/src/com/adobe/linguistics/spelling/SpellingContextMenuForTLF.as
@@ -22,10 +22,10 @@ package com.adobe.linguistics.spelling
 	import com.adobe.linguistics.spelling.SpellUIForTLF;
 	import com.adobe.linguistics.spelling.SquigglyCustomContainerController;
 	import com.adobe.linguistics.spelling.framework.SpellingService;
-	import com.adobe.linguistics.spelling.ui.IHighlighter;
-	import com.adobe.linguistics.spelling.ui.IWordProcessor;
-	import com.adobe.linguistics.spelling.ui.TLFHighlighter;
-	import com.adobe.linguistics.spelling.ui.TLFWordProcessor;
+	import com.adobe.linguistics.spelling.framework.ui.IHighlighter;
+	import com.adobe.linguistics.spelling.framework.ui.IWordProcessor;
+	import com.adobe.linguistics.spelling.framework.ui.TLFHighlighter;
+	import com.adobe.linguistics.spelling.framework.ui.TLFWordProcessor;
 	import com.adobe.linguistics.utils.TextTokenizer;
 	import com.adobe.linguistics.utils.Token;
 	

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/0d3d1aaa/Squiggly/main/SpellingUITLF/src/com/adobe/linguistics/spelling/SquigglyCustomContainerController.as
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUITLF/src/com/adobe/linguistics/spelling/SquigglyCustomContainerController.as b/Squiggly/main/SpellingUITLF/src/com/adobe/linguistics/spelling/SquigglyCustomContainerController.as
index 9ea0f9a..8adc994 100644
--- a/Squiggly/main/SpellingUITLF/src/com/adobe/linguistics/spelling/SquigglyCustomContainerController.as
+++ b/Squiggly/main/SpellingUITLF/src/com/adobe/linguistics/spelling/SquigglyCustomContainerController.as
@@ -20,10 +20,10 @@ package com.adobe.linguistics.spelling
 {
 	import com.adobe.linguistics.spelling.SpellUIForTLF;
 	import com.adobe.linguistics.spelling.framework.SpellingService;
-	import com.adobe.linguistics.spelling.ui.IHighlighter;
-	import com.adobe.linguistics.spelling.ui.IWordProcessor;
-	import com.adobe.linguistics.spelling.ui.TLFHighlighter;
-	import com.adobe.linguistics.spelling.ui.TLFWordProcessor;
+	import com.adobe.linguistics.spelling.framework.ui.IHighlighter;
+	import com.adobe.linguistics.spelling.framework.ui.IWordProcessor;
+	import com.adobe.linguistics.spelling.framework.ui.TLFHighlighter;
+	import com.adobe.linguistics.spelling.framework.ui.TLFWordProcessor;
 	import com.adobe.linguistics.utils.TextTokenizer;
 	import com.adobe.linguistics.utils.Token;
 	


[11/16] git commit: [flex-utilities] [refs/heads/develop] - Merge branch 'develop' of https://git-wip-us.apache.org/repos/asf/flex-utilities into develop

Posted by jm...@apache.org.
Merge branch 'develop' of https://git-wip-us.apache.org/repos/asf/flex-utilities into develop


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/776010a0
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/776010a0
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/776010a0

Branch: refs/heads/develop
Commit: 776010a03da88a49c08c80db36b1279e4abe64d5
Parents: ba723d9 45898c7
Author: Justin Mclean <jm...@apache.org>
Authored: Thu Oct 9 14:02:04 2014 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Thu Oct 9 14:02:04 2014 +1100

----------------------------------------------------------------------
 Squiggly/dictionaries/en_GB/README_en_GB.txt | 309 ++++++++++++++++++++++
 Squiggly/dictionaries/en_US/README_en_US.txt | 309 ++++++++++++++++++++++
 installer/src/InstallApacheFlex.mxml         |   2 +-
 3 files changed, 619 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/776010a0/installer/src/InstallApacheFlex.mxml
----------------------------------------------------------------------


[08/16] git commit: [flex-utilities] [refs/heads/develop] - add a bit of padding to buttons

Posted by jm...@apache.org.
add a bit of padding to buttons


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/cfc9dff9
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/cfc9dff9
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/cfc9dff9

Branch: refs/heads/develop
Commit: cfc9dff92de7e219fa418118d8bf73c98f5cfdd7
Parents: ef10f5c
Author: Justin Mclean <jm...@apache.org>
Authored: Thu Oct 9 13:57:10 2014 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Thu Oct 9 13:57:10 2014 +1100

----------------------------------------------------------------------
 TourDeFlex/TourDeFlex3/src/SourceTab.mxml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/cfc9dff9/TourDeFlex/TourDeFlex3/src/SourceTab.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/SourceTab.mxml b/TourDeFlex/TourDeFlex3/src/SourceTab.mxml
index c9d8f7c..fbe44a7 100755
--- a/TourDeFlex/TourDeFlex3/src/SourceTab.mxml
+++ b/TourDeFlex/TourDeFlex3/src/SourceTab.mxml
@@ -17,7 +17,9 @@
       limitations under the License.
   -->
 
-<mx:VBox xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%">
+<mx:VBox xmlns:fx="http://ns.adobe.com/mxml/2009"
+		 xmlns:mx="library://ns.adobe.com/flex/mx"
+		 width="100%" height="100%">
 
     <fx:Script>
         <![CDATA[
@@ -76,7 +78,7 @@
 	</fx:Declarations>
 	
     <mx:TextArea id="ta" color="#0000A0" fontFamily="Courier" editable="false" wordWrap="false" width="100%" height="100%"/>
-	<mx:HBox width="100%">
+	<mx:HBox width="100%" paddingBottom="5" paddingRight="20">
 		<mx:Spacer width="100%" />
 		<mx:Button label="Copy" click="copyCode()" />
 		<mx:Button label="Copy Link" click="copyLink()" />


[13/16] git commit: [flex-utilities] [refs/heads/develop] - change to use newer version of the UI files

Posted by jm...@apache.org.
change to use newer version of the UI files


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/b03c8e39
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/b03c8e39
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/b03c8e39

Branch: refs/heads/develop
Commit: b03c8e393e8a90bedfdd3bebcae092a4669cef17
Parents: 4b3e346
Author: Justin Mclean <jm...@apache.org>
Authored: Thu Oct 9 14:04:35 2014 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Thu Oct 9 14:04:35 2014 +1100

----------------------------------------------------------------------
 .../SpellingUI/src/com/adobe/linguistics/spelling/SpellUI.as | 8 ++++----
 .../com/adobe/linguistics/spelling/SpellingContextMenu.as    | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b03c8e39/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/SpellUI.as
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/SpellUI.as b/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/SpellUI.as
index 20a229d..65823ec 100644
--- a/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/SpellUI.as
+++ b/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/SpellUI.as
@@ -23,10 +23,10 @@ package com.adobe.linguistics.spelling
 	import com.adobe.linguistics.spelling.framework.ResourceTable;
 	import com.adobe.linguistics.spelling.framework.SpellingConfiguration;
 	import com.adobe.linguistics.spelling.framework.SpellingService;
-    import com.adobe.linguistics.spelling.ui.HaloHighlighter;
-    import com.adobe.linguistics.spelling.ui.HaloWordProcessor;
-    import com.adobe.linguistics.spelling.ui.IHighlighter;
-    import com.adobe.linguistics.spelling.ui.IWordProcessor;
+    import com.adobe.linguistics.spelling.framework.ui.HaloHighlighter;
+    import com.adobe.linguistics.spelling.framework.ui.HaloWordProcessor;
+    import com.adobe.linguistics.spelling.framework.ui.IHighlighter;
+    import com.adobe.linguistics.spelling.framework.ui.IWordProcessor;
 	import com.adobe.linguistics.utils.TextTokenizer;
 	import com.adobe.linguistics.utils.Token;
 	

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b03c8e39/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/SpellingContextMenu.as
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/SpellingContextMenu.as b/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/SpellingContextMenu.as
index d84f325..fecf48f 100644
--- a/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/SpellingContextMenu.as
+++ b/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/SpellingContextMenu.as
@@ -35,8 +35,8 @@ package com.adobe.linguistics.spelling
 	
 	import flash.geom.Point;
 	import flash.geom.Rectangle;
-	import com.adobe.linguistics.spelling.ui.IHighlighter;
-	import com.adobe.linguistics.spelling.ui.IWordProcessor;
+	import com.adobe.linguistics.spelling.framework.ui.IHighlighter;
+	import com.adobe.linguistics.spelling.framework.ui.IWordProcessor;
 	
 	public class SpellingContextMenu
 	{


[07/16] git commit: [flex-utilities] [refs/heads/develop] - add squiggly examples

Posted by jm...@apache.org.
add squiggly examples


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/ef10f5c7
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/ef10f5c7
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/ef10f5c7

Branch: refs/heads/develop
Commit: ef10f5c7f206cd0bced5a959d99d4ded8f65902b
Parents: a3bf10b
Author: Justin Mclean <jm...@apache.org>
Authored: Thu Oct 9 13:56:44 2014 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Thu Oct 9 13:56:44 2014 +1100

----------------------------------------------------------------------
 .../src/apache/squiggly/SpellingConfig.xml      | 23 +++++++++
 .../src/apache/squiggly/SpellingExExample.mxml  | 49 ++++++++++++++++++++
 .../src/apache/squiggly/SpellingExample.mxml    | 48 +++++++++++++++++++
 3 files changed, 120 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/ef10f5c7/TourDeFlex/TourDeFlex3/src/apache/squiggly/SpellingConfig.xml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/apache/squiggly/SpellingConfig.xml b/TourDeFlex/TourDeFlex3/src/apache/squiggly/SpellingConfig.xml
new file mode 100644
index 0000000..300e394
--- /dev/null
+++ b/TourDeFlex/TourDeFlex3/src/apache/squiggly/SpellingConfig.xml
@@ -0,0 +1,23 @@
+	<?xml version="1.0" encoding='UTF-8'?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<SpellingConfig>
+  <LanguageResource language="English (British)" languageCode="en_GB" ruleFile="./dictionaries/en_GB/en_GB.aff" dictionaryFile="dictionaries/en_GB/en_GB.dic"/>
+  <LanguageResource language="English (US)" languageCode="en_US" ruleFile="./dictionaries/en_US/en_US.aff" dictionaryFile="dictionaries/en_US/en_US.dic"/>
+</SpellingConfig>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/ef10f5c7/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
new file mode 100644
index 0000000..af31565
--- /dev/null
+++ b/TourDeFlex/TourDeFlex3/src/apache/squiggly/SpellingExExample.mxml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+			   xmlns:s="library://ns.adobe.com/flex/spark"
+			   applicationComplete="init()">
+	<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>
+
+	<s:Panel title="Spell Check" width="100%" height="100%" borderAlpha="0.15">
+		<s:layout>
+			<s:VerticalLayout paddingLeft="20" paddingTop="20" gap="10" />
+		</s:layout>
+		<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');"/>					
+		</s:Group>
+	</s:Panel>
+
+</s:Application>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/ef10f5c7/TourDeFlex/TourDeFlex3/src/apache/squiggly/SpellingExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/apache/squiggly/SpellingExample.mxml b/TourDeFlex/TourDeFlex3/src/apache/squiggly/SpellingExample.mxml
new file mode 100644
index 0000000..5b36ef3
--- /dev/null
+++ b/TourDeFlex/TourDeFlex3/src/apache/squiggly/SpellingExample.mxml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
+				xmlns:s="library://ns.adobe.com/flex/spark"
+				layout="vertical">		
+<mx:Script>
+	<![CDATA[
+			import com.adobe.linguistics.spelling.SpellUI;	
+			
+			private function enableUS():void {
+				SpellUI.enableSpelling(textArea, "en_US");
+			}
+
+			private function enableGB():void {
+				SpellUI.enableSpelling(textArea, "en_GB");
+			}
+	]]>
+</mx:Script>
+	<s:Panel title="Spell Check" width="100%" height="100%" borderAlpha="0.15">
+		<s:layout>
+			<s:VerticalLayout paddingLeft="20" paddingTop="20" gap="10" />
+		</s:layout>
+		<s:VGroup width="100%" height="100%">
+			<mx:TextArea id="textArea" width="50%" height="50%" fontSize="20" text="Spell cheecking in TextArea"/>
+			<mx:Button id="tt2" label="Check British English" click="enableGB()" /> 
+			<mx:Button id="tt3" label="Check American English" click="enableUS()" />			
+		</s:VGroup>
+	</s:Panel>
+	
+</mx:Application>
+


[09/16] git commit: [flex-utilities] [refs/heads/develop] - remove back ground colour white looks cleaner

Posted by jm...@apache.org.
remove back ground colour white looks cleaner


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/6b5d9dc2
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/6b5d9dc2
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/6b5d9dc2

Branch: refs/heads/develop
Commit: 6b5d9dc2fc7f0968fa75f33e67ec8cd9470ad1e6
Parents: cfc9dff
Author: Justin Mclean <jm...@apache.org>
Authored: Thu Oct 9 13:57:36 2014 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Thu Oct 9 13:57:36 2014 +1100

----------------------------------------------------------------------
 TourDeFlex/TourDeFlex3/src/viewsource.mxml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/6b5d9dc2/TourDeFlex/TourDeFlex3/src/viewsource.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/viewsource.mxml b/TourDeFlex/TourDeFlex3/src/viewsource.mxml
index d4d436a..a0b9ce5 100755
--- a/TourDeFlex/TourDeFlex3/src/viewsource.mxml
+++ b/TourDeFlex/TourDeFlex3/src/viewsource.mxml
@@ -17,7 +17,7 @@
   -->
 
 <mx:VBox xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx"
-		 backgroundColor="#CCCCCC" usePreloader="false" paddingTop="0" paddingBottom="0" paddingLeft="0" paddingRight="0">
+		 usePreloader="false" paddingTop="0" paddingBottom="0" paddingLeft="0" paddingRight="0">
 
 	<fx:Script>
 		<![CDATA[		


[02/16] git commit: [flex-utilities] [refs/heads/develop] - update to 1.2

Posted by jm...@apache.org.
update to 1.2


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/c009c921
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/c009c921
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/c009c921

Branch: refs/heads/develop
Commit: c009c921cd25cf5cdf8507897d886169a6fa8e35
Parents: 5ca92c8
Author: Justin Mclean <jm...@apache.org>
Authored: Thu Oct 9 13:52:09 2014 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Thu Oct 9 13:52:09 2014 +1100

----------------------------------------------------------------------
 TourDeFlex/TourDeFlex3/RELEASE_NOTES | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/c009c921/TourDeFlex/TourDeFlex3/RELEASE_NOTES
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/RELEASE_NOTES b/TourDeFlex/TourDeFlex3/RELEASE_NOTES
index 52ca5c6..d6f254a 100644
--- a/TourDeFlex/TourDeFlex3/RELEASE_NOTES
+++ b/TourDeFlex/TourDeFlex3/RELEASE_NOTES
@@ -1,4 +1,19 @@
 ------------------------------------------------
+Apache Flex Tour De Flex Component Explorer 1.2
+------------------------------------------------
+
+Apache Flex Tour De Flex 1.2 is an update to 1.1 adding a few minor improvements.
+
+Changes since the version 1.1
+- Added Squiggly spelling engine examples
+
+Known issues:
+- Callout example in the Apache Flex 4.9 examples fails to show the callout.
+  The sample code will work externally. See FLEX-34539 for details.
+  
+Bugs fixed and improvements:
+
+------------------------------------------------
 Apache Flex Tour De Flex Component Explorer 1.1
 ------------------------------------------------
 


[04/16] git commit: [flex-utilities] [refs/heads/develop] - simplify install script

Posted by jm...@apache.org.
simplify install script


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/f123166c
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/f123166c
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/f123166c

Branch: refs/heads/develop
Commit: f123166c3b5be8667529d3f00ffd29ed3e78b0ba
Parents: 215e767
Author: Justin Mclean <jm...@apache.org>
Authored: Thu Oct 9 13:53:52 2014 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Thu Oct 9 13:53:52 2014 +1100

----------------------------------------------------------------------
 TourDeFlex/TourDeFlex3/installer.xml | 152 +++++++++++-------------------
 1 file changed, 54 insertions(+), 98 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f123166c/TourDeFlex/TourDeFlex3/installer.xml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/installer.xml b/TourDeFlex/TourDeFlex3/installer.xml
index 797493b..02a26a6 100644
--- a/TourDeFlex/TourDeFlex3/installer.xml
+++ b/TourDeFlex/TourDeFlex3/installer.xml
@@ -18,7 +18,7 @@
 
 -->
 
-<project name="tour_de_flex_install" default="install" basedir=".">
+<project name="tour-de-flex_install" default="install" basedir=".">
     
     <!-- Required for OSX 10.6 / Snow Leopard Performance. -->
     <!-- Java 7 on Mac requires OSX 10.7.3 or higher and is 64-bit only -->
@@ -31,140 +31,96 @@
             <equals arg1="${ant.java.version}" arg2="1.6"/>
         </and>
     </condition>
-
+    	
+    <condition property="isMacOrLinux" value="mac">
+    	<or>
+    		<os family="mac" />
+    		<os family="unix" />
+    	</or>
+    </condition>
+    <condition property="isWindows" value="windows">
+        <os family="windows" />
+    </condition>
+        	
 	<property environment="env"/>
     <condition property="FLEX_HOME" value="${env.FLEX_HOME}">
         <isset property="env.FLEX_HOME" />
     </condition>
-	<echo>${env.FLEX_HOME}</echo>
+
     <property file="${FLEX_HOME}/local.properties"/>
     <property file="${FLEX_HOME}/build.properties"/>
-	
     <property file="${basedir}/${bundle}.properties"/>
 
 	<property name="download.dir" value="${FLEX_HOME}/in"/>
-	<property name="unpack.dir" value="${FLEX_HOME}/tourdeflex"/>
-
+	<property name="unpack.dir" value="${FLEX_HOME}/tour-de-flex"/>
 	<property name="mirror.url" value="http://flex.apache.org/single-mirror-url.cgi" />
 	
-    <property name="tourdeflex.url.folder" value="flex/tourdeflex/1.0" />
-    <condition property="tourdeflex.url.file" value="apache-flex-tour-de-flex-component-explorer-1.0-src.zip">
-    	<os family="windows" />
-    </condition>
-    <condition property="tourdeflex.url.file" value="apache-flex-tour-de-flex-component-explorer-1.0-src.tar.gz">
-    	<or>
-    		<os family="mac" />
-    		<os family="unix" />
-    	</or>
-    </condition>
-    <condition property="tourdeflex.url.md5" value="2509291d41cc325ba21ed6b9cf4306f2">
-    	<os family="windows" />
-    </condition>
-    <condition property="tourdeflex.url.md5" value="2509291d41cc325ba21ed6b9cf4306f2">
-    	<or>
-    		<os family="mac" />
-    		<os family="unix" />
-    	</or>
-    </condition>
+    <property name="tour-de-flex.url.folder" value="flex/tourdeflex/1.1" />
+   
+    <target name="file-setup-win" if="isWindows">
+    	<property name="tour-de-flex.url.file" value="apache-flex-tour-de-flex-component-explorer-1.1-src.zip" />
+    	<property name="tour-de-flex.url.md5" value="95b9895120eebac1f2cd09929629ba2c" />
+    </target>
+	
+    <target name="file-setup-unix" if="isMacOrLinux">
+    	<property name="tour-de-flex.url.file" value="apache-flex-tour-de-flex-component-explorer-1.1-src.tar.gz" />
+    	<property name="tour-de-flex.url.md5" value="95b9895120eebac1f2cd09929629ba2c" />
+    </target>
 
-    <target name="install" depends="tourdeflex-download-unpack" description="Adds TourDeFlex to SDK">
+    <target name="install" depends="file-setup-win,file-setup-unix,tour-de-flex-download-unpack" description="Adds tour-de-flex to an Apache Flex SDK">
         <delete dir="${download.dir}" />
-        <echo>${install.complete.echo}</echo>
+        <echo>Tour De Flex installed</echo>
     </target>
     
-    <target name="tourdeflex-download-unpack" description="Downloads Tour De Flex and copies into SDK">
+    <target name="tour-de-flex-download-unpack" description="Downloads tour-de-flex and copies into the Apache Flex SDK">
         <mkdir dir="${download.dir}"/>
     	
     	<get src="${mirror.url}" dest="${download.dir}/mirror.txt" />
     	<replace file="${download.dir}/mirror.txt" token="&lt;p&gt;" />
     	<replace file="${download.dir}/mirror.txt" token="&lt;/p&gt;" />
-    	<loadfile property="tourdeflex.url.server" srcFile="${download.dir}/mirror.txt" />
+    	<loadfile property="tour-de-flex.url.server" srcFile="${download.dir}/mirror.txt" />
     	
-    	<echo>Downloading ${tourdeflex.url.server}/${tourdeflex.url.folder}/${tourdeflex.url.file}</echo>
+    	<echo>Downloading ${tour-de-flex.url.server}/${tour-de-flex.url.folder}/${tour-de-flex.url.file}</echo>
         
-    	<antcall target="download_tourdeflex_with_md5">
-            <param name="srcDomain" value="${tourdeflex.url.server}" />
-            <param name="srcFolder" value="${tourdeflex.url.folder}" />
-            <param name="srcFile" value="${tourdeflex.url.file}" />
-            <param name="dest" value="${download.dir}/${tourdeflex.url.file}"/>
-			<param name="message" value="${INFO_INSTALLING_TOURDEFLEX} ${tourdeflex.url.server}/${tourdeflex.url.folder}/${tourdeflex.url.file}" />
+    	<antcall target="download-check-md5">
+            <param name="domain" value="${tour-de-flex.url.server}" />
+            <param name="folder" value="${tour-de-flex.url.folder}" />
+            <param name="file" value="${tour-de-flex.url.file}" />
+            <param name="dest" value="${download.dir}/${tour-de-flex.url.file}"/>
 			<param name="failmessage" value="Tour De Flex download failed" />
-			<param name="md5" value="${tourdeflex.url.md5}" />
+			<param name="md5" value="${tour-de-flex.url.md5}" />
         </antcall>
     	
     	<mkdir dir="${unpack.dir}"/>
-    	<condition property="platform" value="windows">
-	    	<unzip dest="${unpack.dir}">
-	    		<fileset file="${download.dir}/${tourdeflex.url.file" />
-	    	</unzip>
-    	</condition>
-    	<condition property="platform" value="mac">
-	    	<tar-ungzip dest="${unpack.dir}">
-	    		<fileset file="${download.dir}/${tourdeflex.url.file" />
-	    	</tar-ungzip>
-    	</condition>
-		<condition property="platform" value="linux">
-	    	<tar-ungzip dest="${unpack.dir}">
-	    		<fileset file="${download.dir}/${tourdeflex.url.file" />
-	    	</tar-ungzip>
-		</condition>
+    	<antcall target="files-unzip" />
+    	<antcall target="files-untar" />
+    </target>
+			
+    <target name="files-unzip" if="isWindows">
+    	<unzip dest="${unpack.dir}">
+    		<fileset file="${download.dir}/${tour-de-flex.url.file}" />
+    	</unzip>
     </target>
 	
-    <target name="download_tourdeflex_with_md5">
-        <antcall target="download_using_get" />
+    <target name="files-untar" if="isMacOrLinux">
+    	<untar dest="${unpack.dir}" compression="gzip">
+    		<fileset file="${download.dir}/${tour-de-flex.url.file}" />
+    	</untar>
     </target>
 
-    <target name="download_using_get"
-        description="Downloads file, and optionally verifies checksum.">
-        
+    <target name="download-check-md5" description="Downloads file, and verifies checksum.">     
     	<tstamp />
     	<property name="ts" value="${DSTAMP}${TSTAMP}" />
-    	
-        <antcall target="get">
-        </antcall>
-    </target>
-    
-    <target name="get">
-		<antcall target="get-with-params" />
-        <antcall target="check-sum" />
+        <get src="${domain}/${folder}/${file}?ts=${ts}" dest="${dest}" verbose="true" />
+        <antcall target="check-md5" />
     </target>
-    
-	<target name="check-params" >
-		<condition property="has-params">
-			<and>
-				<contains string="${srcDomain}/${srcFolder}/${srcFile}" substring="?" />
-				<not>
-					<contains string="${srcDomain}/${srcFolder}/${srcFile}" substring="file://" />
-				</not>
-			</and>
-		</condition>
-		<condition property="is-local">
-			<contains string="${srcDomain}/${srcFolder}/${srcFile}" substring="file://" />
-		</condition>
-		<condition property="not-local-no-params">
-			<and>
-				<not>
-					<contains string="${srcDomain}/${srcFolder}/${srcFile}" substring="file://" />
-				</not>
-				<not>
-					<contains string="${srcDomain}/${srcFolder}/${srcFile}" substring="?" />
-				</not>
-			</and>
-		</condition>
-	</target>
 
-	<target name="get-with-params" depends="check-params" if="has-params" >
-        <get src="${srcDomain}/${srcFolder}/${srcFile}&amp;ts=${ts}" dest="${dest}"/>
-	</target>
-    
-    <target name="check-sum" if="md5"
-        description="Verifies MD5 checksum, and fails if checksum doesn't match">
-        
+    <target name="check-md5" description="Verifies MD5 checksum, and fails if checksum doesn't match">
         <echo>Checking ${dest} matches ${md5}</echo>
-        <checksum file="${dest}" algorithm="MD5" verifyproperty="we.failed" property="${md5}" />
+        <checksum file="${dest}" algorithm="MD5" verifyproperty="md5.failed" property="${md5}" />
         <fail message="${failmessage}">
             <condition>
-                <equals arg1="${we.failed}" arg2="false" />
+                <equals arg1="${md5.failed}" arg2="false" />
             </condition>
         </fail>
     </target>


[06/16] git commit: [flex-utilities] [refs/heads/develop] - add squiggly examples

Posted by jm...@apache.org.
add squiggly examples


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/a3bf10ba
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/a3bf10ba
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/a3bf10ba

Branch: refs/heads/develop
Commit: a3bf10ba12e6524b91b9aa84a87c9b0890a69064
Parents: e7f847f
Author: Justin Mclean <jm...@apache.org>
Authored: Thu Oct 9 13:56:10 2014 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Thu Oct 9 13:56:10 2014 +1100

----------------------------------------------------------------------
 TourDeFlex/TourDeFlex3/src/explorer.xml | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a3bf10ba/TourDeFlex/TourDeFlex3/src/explorer.xml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/explorer.xml b/TourDeFlex/TourDeFlex3/src/explorer.xml
index 8f575f5..1a9d3de 100755
--- a/TourDeFlex/TourDeFlex3/src/explorer.xml
+++ b/TourDeFlex/TourDeFlex3/src/explorer.xml
@@ -475,6 +475,10 @@
 				<node label="MaskedTextInput" app="apache/controls/SparkRichTextEditorExample"/>
 			</node> 
 			 -->
+			 <node label="Apache Flex Squiggly" app="apache/Squiggly">
+				<node label="MX Spelling Example" app="apache/squiggly/SpellingExample"/>
+				<node label="Spark Spelling Example" app="apache/squiggly/SpellingExExample"/>
+			</node>
 		</node>
 	</node>
 </compTree>


[10/16] git commit: [flex-utilities] [refs/heads/develop] - FLEX-3459 FLEX-34590 FLEX-34589

Posted by jm...@apache.org.
FLEX-3459 FLEX-34590 FLEX-34589


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/ba723d9f
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/ba723d9f
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/ba723d9f

Branch: refs/heads/develop
Commit: ba723d9f60d8c3343fe374b5e8ee95c5d7d328b2
Parents: 6b5d9dc
Author: Justin Mclean <jm...@apache.org>
Authored: Thu Oct 9 14:01:15 2014 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Thu Oct 9 14:01:15 2014 +1100

----------------------------------------------------------------------
 installer/src/InstallApacheFlex.mxml | 63 +++++++++++++++++++++----------
 1 file changed, 43 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/ba723d9f/installer/src/InstallApacheFlex.mxml
----------------------------------------------------------------------
diff --git a/installer/src/InstallApacheFlex.mxml b/installer/src/InstallApacheFlex.mxml
index 399913c..77e98b5 100644
--- a/installer/src/InstallApacheFlex.mxml
+++ b/installer/src/InstallApacheFlex.mxml
@@ -285,6 +285,7 @@ variables are not required because the locations of these pieces are known.
 		
 		private var languageOverride:String;
 		private var configOverride:String = "";
+		private var installOverride:String = "";
         
         private var overlaying:Boolean;
         private var usingXML:Object;
@@ -371,6 +372,9 @@ variables are not required because the locations of these pieces are known.
 				if (s.indexOf("-config=") == 0) {
 					configOverride = s.substring(8);
 				}
+				if (s.indexOf("-install=") == 0) {
+					installOverride = s.substring(9);
+				}
                 if (s.indexOf("-debug") == 0) {
                     debugMode = true;
                 }
@@ -958,10 +962,18 @@ variables are not required because the locations of these pieces are known.
                 || APACHE_FLEX_BIN_DISTRO_PATH.substr(0, Constants.FILE_PREFIX.length) == Constants.FILE_PREFIX
                 || APACHE_FLEX_BIN_DISTRO_PATH.substr(0, Constants.HTTPS_PREFIX.length) == Constants.HTTPS_PREFIX) {
                 APACHE_FLEX_BIN_DISTRO_URL = APACHE_FLEX_BIN_DISTRO_PATH + APACHE_FLEX_BIN_DISTRO_FILE;
-                APACHE_FLEX_BIN_INSTALLER_URL = APACHE_FLEX_BIN_DISTRO_PATH + APACHE_FLEX_BIN_INSTALLER_FILE;
+				if (installOverride != "") {
+					APACHE_FLEX_BIN_INSTALLER_URL = installOverride;
+				} else {
+                	APACHE_FLEX_BIN_INSTALLER_URL = APACHE_FLEX_BIN_DISTRO_PATH + APACHE_FLEX_BIN_INSTALLER_FILE;
+				}
             } else {
                 APACHE_FLEX_BIN_DISTRO_URL = useMirrorPath(_mirrorURLUtil.mirrorURL) + APACHE_FLEX_BIN_DISTRO_PATH + APACHE_FLEX_BIN_DISTRO_FILE;
-                APACHE_FLEX_BIN_INSTALLER_URL = MD5CompareUtil.MD5_DOMAIN + APACHE_FLEX_BIN_DISTRO_PATH + APACHE_FLEX_BIN_INSTALLER_FILE;
+               	if (installOverride != "") {
+					APACHE_FLEX_BIN_INSTALLER_URL = installOverride;
+				} else {
+					APACHE_FLEX_BIN_INSTALLER_URL = MD5CompareUtil.MD5_DOMAIN + APACHE_FLEX_BIN_DISTRO_PATH + APACHE_FLEX_BIN_INSTALLER_FILE;
+				}
             }
             
             if (installerAppPath.substr(0, Constants.URL_PREFIX.length) != Constants.URL_PREFIX) {
@@ -1054,15 +1066,19 @@ variables are not required because the locations of these pieces are known.
 			
 			setXMLVariables(); // as AIR and Flash version may of changed
 			
-			if (airVersionID)
-				log("AIR version " + airVersionID);
-			else
-				log("AIR version " + AIR_VERSION);
+			if (flexVersion.selectedItem.needsAIR) {
+				if (airVersionID)
+					log("AIR version " + airVersionID);
+				else
+					log("AIR version " + AIR_VERSION);
+			}
 			
-			if (flashVersionID)
-				log("Flash Player version " + flashVersionID);
-			else
-				log("Flash Player version " + FLASH_PLAYER_VERSION);
+			if (flexVersion.selectedItem.needsFlash) {
+				if (flashVersionID)
+					log("Flash Player version " + flashVersionID);
+				else
+					log("Flash Player version " + FLASH_PLAYER_VERSION);
+			}
 			
             if (!legacy)
             {
@@ -1451,7 +1467,7 @@ variables are not required because the locations of these pieces are known.
                 if (!overlaying)
                 {
     				/* Copy all files from the unarchived directory to the root */
-    				var directory:File = _flexTempDir.resolvePath(APACHE_FLEX_BIN_DISTRO_FILE_SHORT);
+    				var directory:File = _flexTempDir.resolvePath(".");
     				var files:Array = directory.getDirectoryListing();
     				for each(var file:File in files) {
     					file.copyTo(_flexHomeDir.resolvePath(file.name));
@@ -1495,6 +1511,7 @@ variables are not required because the locations of these pieces are known.
             }
             else
                 file = _flexHomeDir.resolvePath("installer.xml");
+			
             addEventListener(Event.ENTER_FRAME, enterFrameHandler);
             var context:Object = { installer: true };
 			if (usingDownloadCache)
@@ -1533,7 +1550,7 @@ variables are not required because the locations of these pieces are known.
                 context["flash.sdk.url.file"] = flashPlayerVersion.selectedItem.file;
             }
 			
-            if (!ant.processXMLFile(file, context, true))
+            if (file.exists && !ant.processXMLFile(file, context, true))
             {
                 ant.addEventListener(Event.COMPLETE, completeHandler);
                 ant.addEventListener(ProgressEvent.PROGRESS, progressEventHandler);
@@ -1566,7 +1583,7 @@ variables are not required because the locations of these pieces are known.
         
         private function completeHandler(event:Event):void
         {
-            if (!Ant.currentAnt.project.status)
+            if (Ant.currentAnt && !Ant.currentAnt.project.status)
 			{
                 var msg:String = Ant.currentAnt.project.failureMessage;
 				log(msg ? msg : "no failure message provided");
@@ -1575,13 +1592,19 @@ variables are not required because the locations of these pieces are known.
 			}
             else if (currentStep == stepLabels.length && currentStep > 0)
                 updateActivityStep(stepLabels[currentStep - 1], StepItem.COMPLETE);
-            if (Ant.currentAnt.project.status)
-                tracker.trackInstallerSuccess(APACHE_FLEX_BIN_DISTRO_VERSION_DISPLAY, APACHE_FLEX_BIN_DISTRO_VERSION, _os.os);
-			if (Ant.currentAnt.project.failureMessage)
- 	            cleanup(!Ant.currentAnt.project.status, "&info=" + escape(Ant.currentAnt.project.failureMessage));
-			else
-			    cleanup(!Ant.currentAnt.project.status);
-        }
+			
+			if (Ant.currentAnt) {
+	            if (Ant.currentAnt.project.status)
+	                tracker.trackInstallerSuccess(APACHE_FLEX_BIN_DISTRO_VERSION_DISPLAY, APACHE_FLEX_BIN_DISTRO_VERSION, _os.os);
+				if (Ant.currentAnt.project.failureMessage)
+	 	            cleanup(!Ant.currentAnt.project.status, "&info=" + escape(Ant.currentAnt.project.failureMessage));
+				else
+				    cleanup(!Ant.currentAnt.project.status);
+			}
+			else {
+				cleanup();
+			}
+	    }
         
         private var ant:Ant;
         


[14/16] git commit: [flex-utilities] [refs/heads/develop] - change to use newer version of the UI files

Posted by jm...@apache.org.
change to use newer version of the UI files


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/130c4ccc
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/130c4ccc
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/130c4ccc

Branch: refs/heads/develop
Commit: 130c4ccc1f38584896c184114fc3df77aba4062b
Parents: b03c8e3
Author: Justin Mclean <jm...@apache.org>
Authored: Thu Oct 9 14:05:05 2014 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Thu Oct 9 14:05:05 2014 +1100

----------------------------------------------------------------------
 .../src/com/adobe/linguistics/spelling/SpellUI.as       | 12 ++++++------
 .../adobe/linguistics/spelling/SpellingContextMenu.as   |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/130c4ccc/Squiggly/main/SpellingUIEx/src/com/adobe/linguistics/spelling/SpellUI.as
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUIEx/src/com/adobe/linguistics/spelling/SpellUI.as b/Squiggly/main/SpellingUIEx/src/com/adobe/linguistics/spelling/SpellUI.as
index 317e05b..945c4a1 100644
--- a/Squiggly/main/SpellingUIEx/src/com/adobe/linguistics/spelling/SpellUI.as
+++ b/Squiggly/main/SpellingUIEx/src/com/adobe/linguistics/spelling/SpellUI.as
@@ -23,12 +23,12 @@ package com.adobe.linguistics.spelling
 	import com.adobe.linguistics.spelling.framework.ResourceTable;
 	import com.adobe.linguistics.spelling.framework.SpellingConfiguration;
 	import com.adobe.linguistics.spelling.framework.SpellingService;
-    import com.adobe.linguistics.spelling.ui.HaloHighlighter;
-    import com.adobe.linguistics.spelling.ui.IHighlighter;
-    import com.adobe.linguistics.spelling.ui.SparkHighlighter;
-    import com.adobe.linguistics.spelling.ui.HaloWordProcessor;
-    import com.adobe.linguistics.spelling.ui.IWordProcessor;
-    import com.adobe.linguistics.spelling.ui.SparkWordProcessor;
+    import com.adobe.linguistics.spelling.framework.ui.HaloHighlighter;
+    import com.adobe.linguistics.spelling.framework.ui.IHighlighter;
+    import com.adobe.linguistics.spelling.framework.ui.SparkHighlighter;
+    import com.adobe.linguistics.spelling.framework.ui.HaloWordProcessor;
+    import com.adobe.linguistics.spelling.framework.ui.IWordProcessor;
+    import com.adobe.linguistics.spelling.framework.ui.SparkWordProcessor;
 	import com.adobe.linguistics.utils.TextTokenizer;
 	import com.adobe.linguistics.utils.Token;
 	

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/130c4ccc/Squiggly/main/SpellingUIEx/src/com/adobe/linguistics/spelling/SpellingContextMenu.as
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUIEx/src/com/adobe/linguistics/spelling/SpellingContextMenu.as b/Squiggly/main/SpellingUIEx/src/com/adobe/linguistics/spelling/SpellingContextMenu.as
index fc71ce3..6c5739b 100644
--- a/Squiggly/main/SpellingUIEx/src/com/adobe/linguistics/spelling/SpellingContextMenu.as
+++ b/Squiggly/main/SpellingUIEx/src/com/adobe/linguistics/spelling/SpellingContextMenu.as
@@ -21,7 +21,7 @@ package com.adobe.linguistics.spelling
 {
 	import com.adobe.linguistics.spelling.SpellUI;
 	import com.adobe.linguistics.spelling.framework.SpellingService;
-	import com.adobe.linguistics.spelling.ui.*;
+	import com.adobe.linguistics.spelling.framework.ui.*;
 	import com.adobe.linguistics.utils.Token;
 	import com.adobe.linguistics.utils.TextTokenizer;
 	


[03/16] git commit: [flex-utilities] [refs/heads/develop] - added means to compile squiggly examples

Posted by jm...@apache.org.
added means to compile squiggly examples


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/215e767c
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/215e767c
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/215e767c

Branch: refs/heads/develop
Commit: 215e767cfe95d365d1819ca65ac0cb6bddad0860
Parents: c009c92
Author: Justin Mclean <jm...@apache.org>
Authored: Thu Oct 9 13:52:49 2014 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Thu Oct 9 13:52:49 2014 +1100

----------------------------------------------------------------------
 TourDeFlex/TourDeFlex3/build.xml | 74 ++++++++++++++++++++++++++++++++++-
 1 file changed, 73 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/215e767c/TourDeFlex/TourDeFlex3/build.xml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/build.xml b/TourDeFlex/TourDeFlex3/build.xml
index 9d46cd3..42aca86 100644
--- a/TourDeFlex/TourDeFlex3/build.xml
+++ b/TourDeFlex/TourDeFlex3/build.xml
@@ -66,8 +66,22 @@
 			</mxmlc>
 		</sequential>
 	</macrodef>
+	
+    <macrodef name="compile-mxml-libs">
+    	 <attribute name="example"/>
+        
+        <sequential>
+   			<mxmlc file="${basedir}/src/@{example}.mxml"
+            	output="${basedir}/src/@{example}.swf" fork="true" failonerror="true">
+				<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
+   	            <compiler.library-path dir="${basedir}/libs" append="true">
+   	                <include name="*.swc" />
+   	            </compiler.library-path>
+			</mxmlc>
+		</sequential>
+	</macrodef>	
 		
-	<target name="compile" description="compile all examples and the explorer shell" depends="compile-shell,compile-mx,compile-spark,compile-spark2,compile-spark3,compile-apache">
+	<target name="compile" description="compile all examples and the explorer shell" depends="compile-shell,compile-mx,compile-spark,compile-spark2,compile-spark3,compile-apache,compile-squiggly">
 	</target>
 	
 	<target name="compile-shell" description="compile explorer shell">
@@ -422,6 +436,64 @@
 		<!-- Uncomment when Flex 4.14 is released -->
 		<!-- compile-mxml example="/apache/controls/SparkRichTextEditorExample"/-->
 	</target>
+	
+	<property name="download.dir" value="temp"/>
+	<property name="unpack.dir" value="squiggly"/>
+	<property name="mirror.url" value="http://flex.apache.org/single-mirror-url.cgi" />
+    <property name="squiggly.folder" value="flex/squiggly/1.0" />
+ 
+	<condition property="squiggly.file" value="apache-flex-squiggly-1.0-bin.zip">
+    	<os family="windows" />
+    </condition>
+	
+    <condition property="squiggly.file" value="apache-flex-squiggly-1.0-bin.tar.gz">
+    	<or>
+    		<os family="mac" />
+    		<os family="unix" />
+    	</or>
+    </condition>
+	
+	<target name="compile-squiggly" description="compile apache squiggly examples" depends="squiggly-download">
+		<compile-mxml-libs example="/apache/squiggly/SpellingExample"/>
+		<compile-mxml-libs example="/apache/squiggly/SpellingExExample"/>
+	</target>
+	
+    <target name="squiggly-check" description="Checks if Squiggly has been downloaded.">
+        <available file="${basedir}/libs/ApacheflexSpellingEngine.swc" property="sqigggly.present"/>
+    </target>
+        	
+    <target name="squiggly-download" depends="squiggly-check" unless="sqigggly.present" description="Downloads squiggly SDK">
+    	
+    	<mkdir dir="${download.dir}"/>
+     	
+     	<get src="${mirror.url}" dest="${download.dir}/mirror.txt" />
+     	<replace file="${download.dir}/mirror.txt" token="&lt;p&gt;" />
+     	<replace file="${download.dir}/mirror.txt" token="&lt;/p&gt;" />
+     	<loadfile property="squiggly.url" srcFile="${download.dir}/mirror.txt" />
+     	
+     	<echo>Downloading ${squiggly.url}/${squiggly.folder}/${squiggly.file}</echo>
+        <get src="${squiggly.url}/${squiggly.folder}/${squiggly.file}" 
+            dest="${download.dir}/${squiggly.file}" 
+            verbose="true"/>
+    	
+    	<!-- TOSO upzip on windows -->
+    	<mkdir dir="${unpack.dir}"/>
+    	<untar dest="${unpack.dir}" src="${download.dir}/${squiggly.file}" compression="gzip" />
+    	
+    	<mkdir dir="libs"/>
+    	<copy todir="libs">
+    		<fileset dir="${unpack.dir}/main/libs">
+    			<include name="*.swc" />
+    		</fileset>
+    	</copy>
+    	
+    	<mkdir dir="dictionaries"/>
+    	<copy todir="dictionaries">
+    		<fileset dir="${unpack.dir}/dictionaries">
+    			<include name="*.*" />
+    		</fileset>
+    	</copy>
+    </target>
 		
 	<target name="package" description="package up all source files" depends="package-dir,package-tar,package-zip">
 	</target>


[12/16] git commit: [flex-utilities] [refs/heads/develop] - old version of files no longer required

Posted by jm...@apache.org.
old version of files no longer required


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/4b3e346b
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/4b3e346b
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/4b3e346b

Branch: refs/heads/develop
Commit: 4b3e346b74c3248ba581ad850e5115d0aa127709
Parents: 776010a
Author: Justin Mclean <jm...@apache.org>
Authored: Thu Oct 9 14:04:05 2014 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Thu Oct 9 14:04:05 2014 +1100

----------------------------------------------------------------------
 .../linguistics/spelling/ui/HaloHighlighter.as  | 126 ----------
 .../spelling/ui/HaloWordProcessor.as            | 112 ---------
 .../linguistics/spelling/ui/IHighlighter.as     |  67 -----
 .../linguistics/spelling/ui/IWordProcessor.as   |  30 ---
 .../linguistics/spelling/ui/SparkHighlighter.as | 229 -----------------
 .../spelling/ui/SparkWordProcessor.as           | 133 ----------
 .../spelling/ui/SpellingHighlighter.as          | 196 ---------------
 .../linguistics/spelling/ui/TLFHighlighter.as   | 252 -------------------
 .../linguistics/spelling/ui/TLFWordProcessor.as | 159 ------------
 9 files changed, 1304 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/4b3e346b/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/HaloHighlighter.as
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/HaloHighlighter.as b/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/HaloHighlighter.as
deleted file mode 100644
index 91b0d5f..0000000
--- a/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/HaloHighlighter.as
+++ /dev/null
@@ -1,126 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package com.adobe.linguistics.spelling.ui
-{
-	import __AS3__.vec.Vector;
-	
-	import com.adobe.linguistics.utils.Token;
-	
-	import flash.geom.Point;
-	import flash.text.TextField;
-	
-	import mx.core.IUITextField;
-	import com.adobe.linguistics.spelling.ui.IHighlighter;
-	import com.adobe.linguistics.spelling.ui.SpellingHighlighter;
-
-	/**
-	 * <p>This class facilitates drawing of squiggly lines below words for TextField class. TextField class is used to create display objects for text display 
-	 * and input for Halo TextArea and TextInput components. HaloHighlighter could therefore be used for drawing squiggly lines in these Halo components.</p>
-	 * 	
-	 * @playerversion Flash 10
-	 * @langversion 3.0
-	 */
-
-	public class HaloHighlighter implements IHighlighter
-	{
-		private var mTextField:TextField;
-		private var mHighlighter:SpellingHighlighter;
-		/*
-		* offset point:
-		*/
-		private var _offsetPoint:Point;
-
-		/**
-		 * The constructor for HaloHighlighter.
-		 * @param textField <code>TextField</code> in which to enable highlighting.		 
-		 * @playerversion Flash 10
-		 * @langversion 3.0
-		 */
-		public function HaloHighlighter( textField:TextField )
-		{
-			if (textField == null ) throw new Error("illegal argument."); 
-			mTextField = textField;
-			mHighlighter = null;
-			this._offsetPoint = new Point(0,0);
-		}
-		/**
-		 * Draw squiggly lines below a given token.
-		 * @param token <code>Token</code> information of the word to be highlighted.		 
-		 * @playerversion Flash 10
-		 * @langversion 3.0
-		 */
-		public function drawSquiggleAt(token:Token):void
-		{
-			squiggleWord(token);
-		}
-		
-		/**
-		 * Clear all squiggly lines in the TextField.		
-		 * @playerversion Flash 10
-		 * @langversion 3.0
-		 */
-		public function clearSquiggles():void
-		{
-			if (mHighlighter) {
-				mTextField.parent.removeChild(mHighlighter);
-				mHighlighter=null;
-			}
-			
-		}
-		
-		/**
-		 * Set offset point information for scrollable controls. This is used by the highlighter to move 
-		 * the squiggly lines as the text scrolls inside the control.	
-		 * @param op offset information as a <code>Point</code> instance.		 
-		 * @playerversion Flash 10
-		 * @langversion 3.0
-		 */		
-		public function set offsetPoint(op:Point):void{
-			_offsetPoint = op;
-		}
-		
-		/**
-		 * Get offset point information for scrollable controls. This is used by the highlighter to move 
-		 * the squiggly lines as the text scrolls inside the control.	
-		 * @param op offset information as a <code>Point</code> instance.		 
-		 * @playerversion Flash 10
-		 * @langversion 3.0
-		 */		
-		public function get offsetPoint():Point{
-			return _offsetPoint;
-		}
-		
-
-		private function squiggleWord(token:Token):void {
-						
-			if (!mHighlighter) {
-				mHighlighter= new SpellingHighlighter( mTextField as IUITextField);
-				mTextField.parent.addChild(mHighlighter);				
-			}
-						
-			mHighlighter.drawSquigglyLine(token.first, token.last);
-		
-		
-			//mTextField.parent.addChild(mHighlighter);	
-			mHighlighter.move(_offsetPoint.x, _offsetPoint.y);
-		}
-
-	}
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/4b3e346b/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/HaloWordProcessor.as
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/HaloWordProcessor.as b/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/HaloWordProcessor.as
deleted file mode 100644
index 9c05b3b..0000000
--- a/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/HaloWordProcessor.as
+++ /dev/null
@@ -1,112 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package com.adobe.linguistics.spelling.ui
-{
-	import com.adobe.linguistics.utils.ITokenizer;
-	import com.adobe.linguistics.utils.TextTokenizer;
-	import com.adobe.linguistics.utils.Token;
-	
-	import flash.text.TextField;
-	import flash.text.TextFormat;
-	
-	import mx.controls.TextArea;
-	import mx.controls.TextInput;
-	import com.adobe.linguistics.spelling.ui.IWordProcessor;
-
-
-	public class HaloWordProcessor implements IWordProcessor
-	{
-		private var mTextField:TextField;
-
-		public function HaloWordProcessor(textField:TextField)
-		{
-			if (textField == null ) throw new Error("illegal argument."); 
-			mTextField = textField;
-		}
-				
-		
-		public function replaceText(token:Token, replacement:String):void {
-			var startIndex:int = token.first;
-			var endIndex:int = token.last;
-			
-			if ( replacement == null ) return;
-			
-			if (mTextField.text.length<endIndex || startIndex<0) {
-				return;
-			}
-			
-			var _misspellStart:int = startIndex;
-			var _misspellEnd:int = endIndex;
-			// Try to preserve the format, this works if the whole misspelled word is the same format
-			var tf:TextFormat = mTextField.getTextFormat(_misspellStart, _misspellEnd);
-			mTextField.replaceText(_misspellStart, _misspellEnd, replacement);	
-			mTextField.setTextFormat(tf, _misspellStart, _misspellStart+replacement.length);
-			
-			var ta:TextArea = mTextField.parent as TextArea;
-			var ti:TextInput = mTextField.parent as TextInput;
-			
-			if (ta != null) {
-				ta.selectionBeginIndex = _misspellStart + replacement.length;
-				ta.selectionEndIndex = _misspellStart + replacement.length;
-			}
-			else if (ti != null) {
-				ti.selectionBeginIndex = _misspellStart + replacement.length;
-				ti.selectionEndIndex = _misspellStart + replacement.length;				
-			}
-			else {
-				// Do nothing if it's not a valid text component
-			}
-		}
-
-		
-		public function getWordAtPoint(x:uint, y:uint, externalTokenizer:ITokenizer=null):Token
-		{
-			var _token:Token = tryGetWordAtPoint(x,y, externalTokenizer);
-			return _token;
-		}
-		
-		private function tryGetWordAtPoint(x:uint, y:uint, externalTokenizer:ITokenizer=null):Token {
-			// TODO: use a better alternative than _misspellStart, end
-			var index:uint = mTextField.getCharIndexAtPoint(x + mTextField.scrollH, y);
-			if (index >= mTextField.text.length) return null;
-
-			var tmpToken:Token = new Token(index,index);
-			var tokenizer:ITokenizer;
-			if ( externalTokenizer == null ) {
-				tokenizer = new TextTokenizer(mTextField.text);	
-			}else {
-				tokenizer = externalTokenizer;
-			}
-			
-			var result:Token = new Token(0,0);
-			
-			var preToken:Token = tokenizer.getPreviousToken(tmpToken);
-			var nextToken:Token = tokenizer.getNextToken(tmpToken);
-			if ( preToken.last == nextToken.first ) {
-				result.first = preToken.first;
-				result.last = nextToken.last;
-				return result;		
-			}else {
-				return null;
-			}
-		}
-
-	}
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/4b3e346b/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/IHighlighter.as
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/IHighlighter.as b/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/IHighlighter.as
deleted file mode 100644
index 3b5a309..0000000
--- a/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/IHighlighter.as
+++ /dev/null
@@ -1,67 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package com.adobe.linguistics.spelling.ui
-{
-	import com.adobe.linguistics.utils.Token;
-	import __AS3__.vec.Vector;
-	import flash.geom.Point;
-	
-	/**
-	 * The <code>IHighlighter</code> Interface.
-	 * This interface defines default methods which will be used for highlighting text in UI components.
-	 *
-	 * @playerversion Flash 10
-	 * @langversion 3.0
-	 */
-	
-	public interface IHighlighter
-	{
-		/**
-		 * Draw squiggly lines below a given token.
-		 * @param token <code>Token</code> information of the word to be highlighted.		 
-		 * @playerversion Flash 10
-		 * @langversion 3.0
-		 */
-		function drawSquiggleAt(token:Token):void;
-		/**
-		 * Clear all squiggly lines in the UI.		
-		 * @playerversion Flash 10
-		 * @langversion 3.0
-		 */
-		function clearSquiggles():void;
-		/**
-		 * Set offset point information for scrollable controls. This is used by the highlighter to move 
-		 * the squiggly lines as the text scrolls inside the control.	
-		 * @param op offset information as a <code>Point</code> instance.		 
-		 * @playerversion Flash 10
-		 * @langversion 3.0
-		 */		
-		function set offsetPoint(op:Point):void;
-		/**
-		 * Get offset point information for scrollable controls. This is used by the highlighter to move 
-		 * the squiggly lines as the text scrolls inside the control.	
-		 * @param op offset information as a <code>Point</code> instance.		 
-		 * @playerversion Flash 10
-		 * @langversion 3.0
-		 */		
-		function get offsetPoint():Point;
-		
-	}
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/4b3e346b/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/IWordProcessor.as
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/IWordProcessor.as b/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/IWordProcessor.as
deleted file mode 100644
index 8196691..0000000
--- a/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/IWordProcessor.as
+++ /dev/null
@@ -1,30 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package com.adobe.linguistics.spelling.ui
-{
-	import com.adobe.linguistics.utils.ITokenizer;
-	import com.adobe.linguistics.utils.Token;
-	
-	public interface IWordProcessor
-	{
-		function getWordAtPoint(x:uint, y:uint, externalTokenizer:ITokenizer=null):Token;
-		function replaceText(token:Token, replacement:String):void;
-	}
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/4b3e346b/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/SparkHighlighter.as
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/SparkHighlighter.as b/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/SparkHighlighter.as
deleted file mode 100644
index ffe9653..0000000
--- a/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/SparkHighlighter.as
+++ /dev/null
@@ -1,229 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package com.adobe.linguistics.spelling.ui
-{
-	import com.adobe.linguistics.utils.Token;
-	import com.adobe.linguistics.utils.TextTokenizer;
-	import flash.geom.Point;
-	
-	import flash.display.Shape;
-	import flash.geom.Rectangle;
-	import flash.text.engine.TextLine;
-	
-	import flashx.textLayout.compose.TextFlowLine;
-	import flashx.textLayout.edit.SelectionManager;
-	import flashx.textLayout.elements.TextFlow;
-	import flashx.textLayout.tlf_internal;
-	
-	import spark.components.RichEditableText;
-	import com.adobe.linguistics.spelling.ui.IHighlighter;
-
-	use namespace tlf_internal;	
-	
-	/**
-	 * <p>This class facilitates drawing of squiggly lines below words for RichEditableText class. RichEditableText is a low-level UIComponent for displaying, 
-	 * scrolling, selecting, and editing richly-formatted text. This class is used in the skins of the Spark versions of TextInput and TextArea. 
-	 * SparkHighlighter could therefore be used for drawing squiggly lines in these Spark components.</p>
-	 * 	
-	 * @playerversion Flash 10
-	 * @langversion 3.0
-	 */
-	public class SparkHighlighter implements IHighlighter
-	{
-		
-		private var mTextField:RichEditableText;
-		private var mHighlighter:Shape;
-		/*
-		* offset point:
-		*/
-		private var _offsetPoint:Point;
-
-		/**
-		 * The constructor for SparkHighlighter.
-		 * @param richEditableText <code>RichEditableText</code> in which to enable highlighting.		 
-		 * @playerversion Flash 10
-		 * @langversion 3.0
-		 */
-		public function SparkHighlighter( richEditableText:RichEditableText )
-		{
-			if (richEditableText == null ) throw new Error("illegal argument."); 
-			mTextField = richEditableText;
-			mHighlighter = null;
-			this._offsetPoint = new Point(0,0);
-		}
-
-		/**
-		 * Draw squiggly lines below a given token.
-		 * @param token <code>Token</code> information of the word to be highlighted.		 
-		 * @playerversion Flash 10
-		 * @langversion 3.0
-		 */
-		public function drawSquiggleAt(token:Token):void
-		{
-			squiggleWord(token);
-		}
-		
-		/**
-		 * Clear all squiggly lines in the component.		
-		 * @playerversion Flash 10
-		 * @langversion 3.0
-		 */
-		public function clearSquiggles():void
-		{
-			if (mHighlighter) {
-				mTextField.removeChild(mHighlighter);
-				mHighlighter=null;
-			}		
-		}
-		
-		/**
-		 * Set offset point information for scrollable controls. This is used by the highlighter to move 
-		 * the squiggly lines as the text scrolls inside the control.	
-		 * @param op offset information as a <code>Point</code> instance.		 
-		 * @playerversion Flash 10
-		 * @langversion 3.0
-		 */		
-		public function set offsetPoint(op:Point):void{
-			_offsetPoint = op;
-		}
-		
-		/**
-		 * Get offset point information for scrollable controls. This is used by the highlighter to move 
-		 * the squiggly lines as the text scrolls inside the control.	
-		 * @param op offset information as a <code>Point</code> instance.		 
-		 * @playerversion Flash 10
-		 * @langversion 3.0
-		 */		
-		public function get offsetPoint():Point{
-			return _offsetPoint;
-		}
-
-		
-
-		// TODO: refactor this code to share with halo components, and support words that cross lines
-		private function squiggleWord(token:Token):void {
-					
-			var ta:RichEditableText = mTextField;
-			if (!ta) return;		
-			
-			if (!mHighlighter) {
-				mHighlighter= new Shape();
-				mHighlighter.graphics.clear();
-				mTextField.addChild(mHighlighter);	
-			}
-				
-		        drawSquigglyLineForRange(token.first, token.last);
-			
-			// Just adjust the left padding, top padding is not an issue 
-			//var pleft:uint = mTextField.getStyle("paddingLeft");
-			//mHighlighter.x += pleft;		
-		}
-		
-		// Draw squiggly line
-		private function drawSquigglyLineForRange(start:Number, end:Number):void
-		{
-			// draw squiggly line
-			var tf:TextFlow = mTextField.textFlow;
-			var tflFirst:TextFlowLine = tf.flowComposer.findLineAtPosition(start);
-			var tflLast:TextFlowLine = tf.flowComposer.findLineAtPosition(end);
-			var tflIndexFirst:int = tf.flowComposer.findLineIndexAtPosition(start);
-			var tflIndexLast:int = tf.flowComposer.findLineIndexAtPosition(end);
-			
-			// Pointer
-			var tflIndex:int = tflIndexFirst;
-			var tfl:TextFlowLine = tflFirst;
-			
-			if (tflIndexFirst == tflIndexLast) {
-				// Draw one line
-				drawSquigglyLineAtIndex(tflIndexFirst, start - tflFirst.absoluteStart, end - tflFirst.absoluteStart);
-			} else {
-				// Multiple lines (very long word)
-				drawSquigglyLineAtIndex(tflIndexFirst, start - tflFirst.absoluteStart);
-				
-				tflIndex++;
-				while (tflIndex != tflIndexLast) {
-					drawSquigglyLineAtIndex(tflIndex);
-					tflIndex++;
-				}
-				
-				drawSquigglyLineAtIndex(tflIndexLast, 0, end - tflLast.absoluteStart);
-			}
-		}
-		
-		// Draw a squiggly line at specific line for specific index range
-		private function drawSquigglyLineAtIndex(lineIndex:Number, startIndex:Number=0, endIndex:Number=0x7FFFFFFF):void
-		{
-			var tf:TextFlow = mTextField.textFlow;
-			var tfl:TextFlowLine = tf.flowComposer.getLineAt(lineIndex);
-			var rectLine:Rectangle = tfl.getBounds();
-			if (endIndex == 0x7FFFFFFF) {
-				drawSquigglyLineAtPoint(rectLine.left, rectLine.bottom, rectLine.right - rectLine.left);
-			}
-			else {
-				// Force to have a valid TextLine
-				var tl:TextLine = tfl.getTextLine(true);
-				if(tl==null) return;
-				var atomStartIndex:int= tl.getAtomIndexAtCharIndex(startIndex+ tl.textBlockBeginIndex);//fix for diacritic characters bug#2854971(adding textBlockBeginIndex since getAtomIndexAtCharIndex is relative to beginning of block)
-				var atomEndIndex:int= tl.getAtomIndexAtCharIndex(endIndex+tl.textBlockBeginIndex);//fix for diacritic characters bug#2854971
-				// TODO: atom index and char index is not matching for some chars, use try/catch to avoid crash
-				try {
-					var rectFirst:Rectangle = tl.getAtomBounds(atomStartIndex);
-					var rectLast:Rectangle = tl.getAtomBounds(atomEndIndex);
-					drawSquigglyLineAtPoint(rectFirst.left + tfl.x, rectLine.bottom, rectLast.right - rectFirst.left);
-				} catch (err:Error)
-				{
-					trace(err);
-				}
-			}
-				
-		}
-		// Draw a squiggly from point x,y with given width, the line is drew in mHighlighter 
-		private function drawSquigglyLineAtPoint(x:Number, y:Number, width:Number):void
-		{
-			mHighlighter.graphics.lineStyle(1, 0xfa0707, .65);
-			mHighlighter.graphics.moveTo(x, y);
-			var upDirection:Boolean = false;
-			var offset:uint = 0;
-			var stepLength:uint = 2;
-			for ( var i:uint = 1; offset <= width; i++) {
-				offset = offset + stepLength;
-				if ( upDirection )
-					mHighlighter.graphics.lineTo(x+offset,y);
-				else
-					mHighlighter.graphics.lineTo(x+offset,y+stepLength);
-				upDirection = !upDirection;
-			}	
-		}
-		
-		private function getValidFirstWordIndex():int{
-			var index:int = SelectionManager.computeSelectionIndex(mTextField.textFlow, mTextField, mTextField, 0 + mTextField.horizontalScrollPosition, 0 + mTextField.verticalScrollPosition);
-			return index;
-
-			
-		}
-		
-		private function getValidLastWordIndex():int{
-			var index:int = SelectionManager.computeSelectionIndex(mTextField.textFlow, mTextField, mTextField, mTextField.width+mTextField.horizontalScrollPosition, mTextField.height+mTextField.verticalScrollPosition);
-			return index;
-
-		}
-
-	}
-}

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/4b3e346b/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/SparkWordProcessor.as
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/SparkWordProcessor.as b/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/SparkWordProcessor.as
deleted file mode 100644
index 3ae7a88..0000000
--- a/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/SparkWordProcessor.as
+++ /dev/null
@@ -1,133 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package com.adobe.linguistics.spelling.ui
-{
-	import com.adobe.linguistics.utils.ITokenizer;
-	import com.adobe.linguistics.utils.TextTokenizer;
-	import com.adobe.linguistics.utils.Token;
-	
-	import flashx.textLayout.edit.SelectionManager;
-	import flashx.textLayout.tlf_internal;
-	
-	import spark.components.RichEditableText;
-	import com.adobe.linguistics.spelling.ui.IWordProcessor;
-	
-	use namespace tlf_internal;	
-	
-	public class SparkWordProcessor implements IWordProcessor
-	{
-		private var mTextField:RichEditableText;
-
-		public function SparkWordProcessor(textField:RichEditableText)
-		{
-			if (textField == null ) throw new Error("illegal argument."); 
-			mTextField = textField;
-		}
-				
-		
-		public function replaceText(token:Token, replacement:String):void {
-			var startIndex:int = token.first;
-			var endIndex:int = token.last;
-			
-			var ta:RichEditableText = mTextField;
-			var end:int = getValidLastWordIndex();
-			
-			if ( replacement == null ) return;
-			
-			if (mTextField.text.length<endIndex || startIndex<0) {
-				return;
-			}
-			
-			var _misspellStart:int = startIndex;
-			var _misspellEnd:int = endIndex;
-			
-			// Workaround for Spark: changes in inactive components will trigger strange behavior			
-			//var selectedElementRange:ElementRange = ElementRange.createElementRange(ta.textFlow, _misspellStart, _misspellEnd);
-			//var selectedCharacterFormat:ITextLayoutFormat = ta.textFlow.interactionManager.activePosition == ta.textFlow.interactionManager.anchorPosition ? ta.textFlow.interactionManager.getCommonCharacterFormat() : selectedElementRange.characterFormat;
-			//var selectedParagraphFormat:ITextLayoutFormat = selectedElementRange.paragraphFormat;
-			//var selectedContainerFormat:ITextLayoutFormat = selectedElementRange.containerFormat;
-			
-			
-			
-			//var selectedCharacterFormat:ITextLayoutFormat = ta.textFlow.interactionManager.getCommonCharacterFormat();
-			//var selectedContainerFormat:ITextLayoutFormat = ta.textFlow.interactionManager.getCommonContainerFormat();
-			//var selectedParagraphFormat:ITextLayoutFormat = ta.textFlow.interactionManager.getCommonParagraphFormat();
-			
-			/*var tem:EditManager = new EditManager();
-			ta.textFlow.interactionManager = tem;	*/
-			
-			
-			ta.setFocus();
-			//ta.text = ta.text.substr(0, _misspellStart) + replacement + ta.text.substr(_misspellEnd);
-			
-			//tem.applyFormat(selectedCharacterFormat,selectedParagraphFormat,selectedContainerFormat);
-			//ta.textFlow.flowComposer.updateAllControllers();
-			
-			ta.textFlow;
-			//ta.selectRange(_misspellStart + replacement.length, _misspellStart + replacement.length);
-			ta.selectRange(_misspellStart+1, _misspellEnd);
-			ta.insertText(replacement);
-			ta.selectRange(_misspellStart, _misspellStart+1);
-			ta.insertText("");
-			
-			//ta.textFlow.interactionManager.applyFormat(selectedCharacterFormat,null,null);
-			
-			// Workaround for unexpected jump
-			ta.scrollToRange(end, end);
-		}
-		
-		public function getWordAtPoint(x:uint, y:uint, externalTokenizer:ITokenizer=null):Token
-		{
-			// TODO: use a better alternative than _misspellStart, end
-			var ta:RichEditableText = mTextField;	
-			var index:int = SelectionManager.computeSelectionIndex(ta.textFlow, ta, ta, x, y);
-
-			if (index >= ta.text.length) return null;
-
-			var tmpToken:Token = new Token(index,index);
-			var tokenizer:ITokenizer;
-			if ( externalTokenizer == null ) {
-				tokenizer = new TextTokenizer(mTextField.text);	
-			}else {
-				tokenizer = externalTokenizer;
-			}
-			
-			var result:Token = new Token(0,0);
-			var preToken:Token = tokenizer.getPreviousToken(tmpToken);
-			var nextToken:Token = tokenizer.getNextToken(tmpToken);
-			if ( preToken.last == nextToken.first ) {
-				result.first = preToken.first;
-				result.last = nextToken.last;
-				return result;		
-			}else {
-				return null;
-			}
-				
-		}
-
-		// TODO: workaround for unexpected jump when word replaced, to be refactored for code sharing
-		private function getValidLastWordIndex():int{
-			var index:int = SelectionManager.computeSelectionIndex(mTextField.textFlow, mTextField, mTextField, mTextField.width+mTextField.horizontalScrollPosition, mTextField.height+mTextField.verticalScrollPosition);
-			return index;
-		}
-
-
-	}
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/4b3e346b/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/SpellingHighlighter.as
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/SpellingHighlighter.as b/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/SpellingHighlighter.as
deleted file mode 100644
index 27cd2fb..0000000
--- a/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/SpellingHighlighter.as
+++ /dev/null
@@ -1,196 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package com.adobe.linguistics.spelling.ui
-{
-	import flash.display.Shape;
-	import flash.geom.Point;
-	import flash.geom.Rectangle;
-	import flash.text.TextLineMetrics;
-	
-	import mx.core.IUITextField;
-	import mx.flash.UIMovieClip;
-
-
-	public class SpellingHighlighter extends UIMovieClip
-	{
-		/*
-		* offset point:
-		*/
-		private var _offsetPoint:Point;
-		
-		/*
-		* Target TextField.
-		*/
-		private var _textField:IUITextField;
-		private static var InvalidIndexValue:int = -2;
-		public function SpellingHighlighter(textField:IUITextField) {
-			super();
-			this._textField = textField;
-			this._offsetPoint = new Point(0,0);
-		}
-		
-		public function drawSquigglyLine(firstCharIndex:int, lastCharIndex:int ):void {
-			var validFirstCharIndex:int = getValidFirstCharIndex(firstCharIndex);
-			var validLastCharIndex:int = getValidLastCharIndex(lastCharIndex);
-			if ( validFirstCharIndex == InvalidIndexValue || validLastCharIndex == InvalidIndexValue ){
-				return;
-			}
-			/* draw squiggly line here. */
-			if ( validFirstCharIndex <= validLastCharIndex ) {
-				var firstLine:int = _textField.getLineIndexOfChar(validFirstCharIndex);
-				var lastLine:int = _textField.getLineIndexOfChar(validLastCharIndex);
-				//only one line case.
-				if(lastLine==firstLine)
-				{
-					drawSingleSquigglyLine(validFirstCharIndex, validLastCharIndex);
-					return;
-				}
-				//more than one line.
-				//first line
-				drawSingleSquigglyLine(validFirstCharIndex, _textField.getLineOffset(firstLine)+_textField.getLineLength(firstLine)-1);
-				//middle....
-				for(var i:int=firstLine+1;i<lastLine;i++)
-				{
-					drawSingleSquigglyLine(_textField.getLineOffset(i), _textField.getLineOffset(i)+_textField.getLineLength(i)-1);
-				}
-				//last lines.
-				drawSingleSquigglyLine(_textField.getLineOffset(lastLine), validLastCharIndex);
-			}
-		}
-		
-		public function drawSingleSquigglyLine(firstCharIndex:int, lastCharIndex:int ):void {
-			var firstLine:int = _textField.getLineIndexOfChar(firstCharIndex);
-			var lastLine:int = _textField.getLineIndexOfChar(lastCharIndex);
-			if ( firstLine != lastLine ) {
-				return;
-			}else {
-				var rect1:Rectangle = _textField.getCharBoundaries(firstCharIndex);
-				var rect2:Rectangle = _textField.getCharBoundaries(lastCharIndex);
-				var line:int;
-				while(rect1==null){ 
-					line=_textField.getLineIndexOfChar(firstCharIndex);
-					if( (firstCharIndex+1)>(_textField.getLineOffset(line)+_textField.getLineLength(line)-1)||(firstCharIndex+1)>lastCharIndex) return;// go till the last character
-					firstCharIndex++;
-					rect1= _textField.getCharBoundaries(firstCharIndex);										
-				}
-				
-				while(rect2==null){//this case appears for diacritic characters made using Decomposed chars
-					line=_textField.getLineIndexOfChar(lastCharIndex);
-					if( lastCharIndex-1 < (_textField.getLineOffset(line))||firstCharIndex>(lastCharIndex-1) ) return; //go till the first character
-					lastCharIndex--;// check for the previos character
-					rect2= _textField.getCharBoundaries(lastCharIndex);										
-				}
-				
-				
-				var x:Number = rect1.x+_offsetPoint.x - _textField.scrollH;
-				var y:Number = rect1.y + rect1.height + 2;
-				var width:Number = rect2.x+rect2.width-rect1.x;
-				
-				// Avoid drawing outside the textField
-				if (x<0) 
-				{
-					if (x+width > 0) {
-						width += x;
-						x = 0;
-					} 
-					else
-						return;
-				}
-				if (x+width > _textField.width) 
-				{
-					if (x < _textField.width) {
-						width = textField.width - x;
-					} 	
-					else
-						return;
-				}
-				
-				// The rectangle that bound the string you want
-				// actual work here.
-				var myShape:Shape = new Shape();
-				myShape.graphics.clear();
-				//myShape.graphics.beginFill(0x0099CC, .35); 
-				myShape.graphics.lineStyle(1, 0xfa0707, .65);
-				//myShape.graphics.moveTo(0,0);
-				myShape.graphics.moveTo(x, y);
-				var upDirection:Boolean = false;
-				var offset:uint = 0;
-				var stepLength:uint = 2;
-				for ( var i:uint = 1; offset <= width; i++) {
-					offset = offset + stepLength;
-					if ( upDirection )
-						myShape.graphics.lineTo(x+offset,y);
-					else
-						myShape.graphics.lineTo(x+offset,y+stepLength);
-					upDirection = !upDirection;
-				}
-				//myShape.graphics.endFill();
-				this.addChild(myShape);	
-			}
-		}
-		
-		private function getValidFirstCharIndex(firstCharIndex:int):int{
-			if(firstCharIndex<0 || firstCharIndex>_textField.text.length-1) 
-			{
-				return InvalidIndexValue;
-			}
-			var firstLine:Number = _textField.getLineIndexOfChar(firstCharIndex);
-			
-			if(firstLine<_textField.scrollV-1)
-			{
-				firstLine = _textField.scrollV-1;
-				return _textField.getLineOffset(firstLine);
-			}
-			return firstCharIndex;
-		}
-		
-		private function getValidLastCharIndex(lastCharIndex:int):int{
-			if(lastCharIndex<0 || lastCharIndex>_textField.text.length-1) 
-			{
-				return InvalidIndexValue;
-			}
-			var lastLine:Number = _textField.getLineIndexOfChar(lastCharIndex);
-			if(lastLine>_textField.bottomScrollV-1)
-			{
-				lastLine = _textField.bottomScrollV-1;
-				return _textField.getLineOffset(lastLine)+_textField.getLineLength(lastLine)-1;
-			}
-			return lastCharIndex;
-		}
-					
-		public function set textField(tf:IUITextField):void{
-			_textField = tf;
-		}
-		
-		public function get textField():IUITextField{
-			return _textField;
-		}
-		
-		public function set offsetPoint(op:Point):void{
-			_offsetPoint = op;
-		}
-		
-		public function get offsetPoint():Point{
-			return _offsetPoint;
-		}
-
-
-	}
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/4b3e346b/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/TLFHighlighter.as
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/TLFHighlighter.as b/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/TLFHighlighter.as
deleted file mode 100644
index 92b7c71..0000000
--- a/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/TLFHighlighter.as
+++ /dev/null
@@ -1,252 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package com.adobe.linguistics.spelling.ui
-{
-	import com.adobe.linguistics.utils.TextTokenizer;
-	import com.adobe.linguistics.utils.Token;
-	
-	import flash.display.Graphics;
-	import flash.display.Shape;
-	import flash.display.Sprite;
-	import flash.geom.Point;
-	import flash.geom.Rectangle;
-	import flash.text.engine.TextLine;
-	import flash.utils.Dictionary;
-	
-	import flashx.textLayout.compose.TextFlowLine;
-	import flashx.textLayout.container.ContainerController;
-	import flashx.textLayout.edit.SelectionManager;
-	import flashx.textLayout.elements.TextFlow;
-	import flashx.textLayout.tlf_internal;
-	import com.adobe.linguistics.spelling.ui.IHighlighter;
-
-
-	use namespace tlf_internal;	
-
-	/**
-	 * <p>This class facilitates drawing of squiggly lines below words for TLF TextFlow class.</p>
-	 * <p>The TextFlow class is responsible for managing all 
-	 * the text content of a story. In TextLayout, text is stored in a hierarchical tree of elements. TextFlow is the root object of the element tree. 
-	 * All elements on the tree derive from the base class, FlowElement. </p> 
-	 * TLFHighlighter could be used for drawing squiggly lines in any of the custom visual components(probably based on <code>Sprite</code>) which make use 
-	 * of TextFlow to display text.
-	 * 	
-	 * @playerversion Flash 10
-	 * @langversion 3.0
-	 */
-	public class TLFHighlighter implements IHighlighter
-	{
-		
-		private var mTextFlow:TextFlow;
-		private var mHighlighter:Dictionary;
-	
-		//private var mHighlighter:Shape;
-		private var ccindex:int;
-		private var cc:ContainerController;
-		/*
-		* offset point:
-		*/
-		private var _offsetPoint:Point;
-
-		/**
-		 * The constructor for TLFHighlighter.
-		 * @param textFlow <code>TextFlow</code> in which to enable highlighting.		 
-		 * @playerversion Flash 10
-		 * @langversion 3.0
-		 */
-		public function TLFHighlighter( textFlow:TextFlow )
-		{
-			if (textFlow == null ) throw new Error("illegal argument."); 
-			mTextFlow = textFlow;
-			//mHighlighter = null;
-			mHighlighter = new Dictionary(true);
-			this._offsetPoint = new Point(0,0);
-		}
-		/**
-		 * Draw squiggly lines below a given token.
-		 * @param token <code>Token</code> information of the word to be highlighted.		 
-		 * @playerversion Flash 10
-		 * @langversion 3.0
-		 */
-		public function drawSquiggleAt(token:Token):void
-		{
-			squiggleWord(token);
-		}
-		/**
-		 * Clear all squiggly lines in the component.		
-		 * @playerversion Flash 10
-		 * @langversion 3.0
-		 */
-		public function clearSquiggles():void
-		{
-			
-			for (var idx:int = 0; idx < mTextFlow.flowComposer.numControllers; idx++)
-			{	
-				var cctmp:ContainerController = mTextFlow.flowComposer.getControllerAt(idx);
-				if (!cctmp) return;	
-				if (mHighlighter[cctmp.container] != null) {
-					
-					//ToDO: This assumes single container for whole of mTextFlow. Need to implement for multiple container case.
-					cctmp.container.removeChild((mHighlighter[cctmp.container] as Shape));
-					
-					mHighlighter[cctmp.container] = null;
-				}	
-			}
-		}
-	
-		/**
-		 * Set offset point information for scrollable controls. This is used by the highlighter to move 
-		 * the squiggly lines as the text scrolls inside the control.	
-		 * @param op offset information as a <code>Point</code> instance.		 
-		 * @playerversion Flash 10
-		 * @langversion 3.0
-		 */		
-		public function set offsetPoint(op:Point):void{
-			_offsetPoint = op;
-		}
-		/**
-		 * Get offset point information for scrollable controls. This is used by the highlighter to move 
-		 * the squiggly lines as the text scrolls inside the control.	
-		 * @param op offset information as a <code>Point</code> instance.		 
-		 * @playerversion Flash 10
-		 * @langversion 3.0
-		 */	
-		public function get offsetPoint():Point{
-			return _offsetPoint;
-		}
-
-		
-
-		// TODO: refactor this code to share with halo components, and support words that cross lines
-		private function squiggleWord(token:Token):void {					
-			var ta:TextFlow = mTextFlow;
-			
-			if (!ta) return;		
-			ccindex = ta.flowComposer.findControllerIndexAtPosition(token.first);
-			
-			cc = ta.flowComposer.getControllerAt(ccindex);
-			if (!cc) return;	
-			if (mHighlighter[cc.container] == null ) {
-				mHighlighter[cc.container]= new Shape();
-				(mHighlighter[cc.container] as Shape).graphics.clear();
-				//ccindex = ta.flowComposer.findControllerIndexAtPosition(token.first);
-				
-				//var cc:ContainerController = ta.flowComposer.getControllerAt(ccindex);
-				//ToDO: This assumes single container for whole of mTextFlow. Need to implement for multiple container case.
-				cc.container.addChild((mHighlighter[cc.container] as Shape));				
-			}
-					
-		    drawSquigglyLineForRange(token.first, token.last);
-			
-			// Just adjust the left padding, top padding is not an issue 
-			//var pleft:uint = mTextFlow.getStyle("paddingLeft");
-			//mHighlighter.x += pleft;		
-		}
-		
-		// Draw squiggly line
-		private function drawSquigglyLineForRange(start:Number, end:Number):void
-		{
-			// draw squiggly line
-			var tf:TextFlow = mTextFlow;
-			var tflFirst:TextFlowLine = tf.flowComposer.findLineAtPosition(start);
-			var tflLast:TextFlowLine = tf.flowComposer.findLineAtPosition(end);
-			var tflIndexFirst:int = tf.flowComposer.findLineIndexAtPosition(start);
-			var tflIndexLast:int = tf.flowComposer.findLineIndexAtPosition(end);
-			
-			// Pointer
-			var tflIndex:int = tflIndexFirst;
-			var tfl:TextFlowLine = tflFirst;
-			
-			if (tflIndexFirst == tflIndexLast) {
-				// Draw one line
-				drawSquigglyLineAtIndex(tflIndexFirst, start - tflFirst.absoluteStart, end - tflFirst.absoluteStart);
-			} else {
-				// Multiple lines (very long word)
-				drawSquigglyLineAtIndex(tflIndexFirst, start - tflFirst.absoluteStart);
-				
-				tflIndex++;
-				while (tflIndex != tflIndexLast) {
-					drawSquigglyLineAtIndex(tflIndex);
-					tflIndex++;
-				}
-				
-				drawSquigglyLineAtIndex(tflIndexLast, 0, end - tflLast.absoluteStart);
-			}
-		}
-		
-		// Draw a squiggly line at specific line for specific index range
-		private function drawSquigglyLineAtIndex(lineIndex:Number, startIndex:Number=0, endIndex:Number=0x7FFFFFFF):void
-		{
-			var tf:TextFlow = mTextFlow;
-			var tfl:TextFlowLine = tf.flowComposer.getLineAt(lineIndex);
-			var rectLine:Rectangle = tfl.getBounds(); 
-			if (endIndex == 0x7FFFFFFF) {
-				drawSquigglyLineAtPoint(rectLine.left, rectLine.bottom, rectLine.right - rectLine.left, lineIndex);
-			}
-			else {
-				// Force to have a valid TextLine
-				var tl:TextLine = tfl.getTextLine(true);
-				if(tl==null)return;
-				var atomStartIndex:int= tl.getAtomIndexAtCharIndex(startIndex+ tl.textBlockBeginIndex);//fix for diacritic characters bug#2854971
-				var atomEndIndex:int= tl.getAtomIndexAtCharIndex(endIndex+ tl.textBlockBeginIndex);//fix for diacritic characters bug#2854971
-				// TODO: atom index and char index is not matching for some chars, use try/catch to avoid crash
-				try {
-					var rectFirst:Rectangle = tl.getAtomBounds(atomStartIndex);
-					var rectLast:Rectangle = tl.getAtomBounds(atomEndIndex);
-					drawSquigglyLineAtPoint(rectFirst.left + tfl.x, rectLine.bottom, rectLast.right - rectFirst.left, lineIndex);
-				} catch (err:Error)
-				{
-					trace(err);
-				}
-			}
-				
-		}
-		// Draw a squiggly from point x,y with given width, the line is drawn in mHighlighter 
-		private function drawSquigglyLineAtPoint(x:Number, y:Number, width:Number, lineIndex:Number):void
-		{
-			var tf:TextFlow = mTextFlow;
-			var tfl:TextFlowLine = tf.flowComposer.getLineAt(lineIndex);
-			var tl:TextLine = tfl.getTextLine(true);
-						
-			(mHighlighter[cc.container] as Shape).graphics.lineStyle(1, 0xfa0707, .65);
-			(mHighlighter[cc.container] as Shape).graphics.moveTo(x, y);
-			var upDirection:Boolean = false;
-			var offset:uint = 0;
-			var stepLength:uint = 2;
-			for ( var i:uint = 1; offset <= width; i++) {
-				offset = offset + stepLength;
-				if ( upDirection )
-					(mHighlighter[cc.container] as Shape).graphics.lineTo(x+offset,y);
-				else
-					(mHighlighter[cc.container] as Shape).graphics.lineTo(x+offset,y+stepLength);
-				upDirection = !upDirection;
-			}
-			
-			//tl.addChild(mHighlighter);
-						
-			//tf.flowComposer.updateToController(ccindex);
-
-		}
-		
-
-	}
-	
-}
-

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/4b3e346b/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/TLFWordProcessor.as
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/TLFWordProcessor.as b/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/TLFWordProcessor.as
deleted file mode 100644
index 749e218..0000000
--- a/Squiggly/main/SpellingUI/src/com/adobe/linguistics/spelling/ui/TLFWordProcessor.as
+++ /dev/null
@@ -1,159 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-//  Licensed to the Apache Software Foundation (ASF) under one or more
-//  contributor license agreements.  See the NOTICE file distributed with
-//  this work for additional information regarding copyright ownership.
-//  The ASF licenses this file to You under the Apache License, Version 2.0
-//  (the "License"); you may not use this file except in compliance with
-//  the License.  You may obtain a copy of the License at
-//
-//      http://www.apache.org/licenses/LICENSE-2.0
-//
-//  Unless required by applicable law or agreed to in writing, software
-//  distributed under the License is distributed on an "AS IS" BASIS,
-//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-//  See the License for the specific language governing permissions and
-//  limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package com.adobe.linguistics.spelling.ui
-{
-	import com.adobe.linguistics.utils.ITokenizer;
-	import com.adobe.linguistics.utils.TextTokenizer;
-	import com.adobe.linguistics.utils.Token;
-	
-	import flashx.textLayout.edit.SelectionManager;
-	import flashx.textLayout.edit.EditManager;
-	import flashx.textLayout.tlf_internal;
-	import flashx.textLayout.elements.TextFlow;
-	
-	import flashx.textLayout.container.ContainerController;
-	import flashx.textLayout.elements.FlowLeafElement;
-	import flashx.textLayout.elements.ParagraphElement;
-	import com.adobe.linguistics.spelling.ui.IWordProcessor;
-	
-	use namespace tlf_internal;	
-	
-	public class TLFWordProcessor implements IWordProcessor
-	{
-		private var mTextFlow:TextFlow;
-		private var _containerController:ContainerController;
-
-		public function TLFWordProcessor(textFlow:TextFlow)
-		{
-			if (textFlow == null ) throw new Error("illegal argument."); 
-			mTextFlow = textFlow;
-		}
-				
-		
-		public function replaceText(token:Token, replacement:String):void {
-			var startIndex:int = token.first;
-			var endIndex:int = token.last;
-			
-			var ta:TextFlow = mTextFlow;
-			//var end:int = getValidLastWordIndex();
-			
-			if ( replacement == null ) return;
-			
-			/*if (mTextFlow.text.length<endIndex || startIndex<0) {
-				return;
-			}*/
-			
-			var _misspellStart:int = startIndex;
-			var _misspellEnd:int = endIndex;
-			
-			// Workaround for Spark: changes in inactive components will trigger strange behavior			
-			//var selectedElementRange:ElementRange = ElementRange.createElementRange(ta.textFlow, _misspellStart, _misspellEnd);
-			//var selectedCharacterFormat:ITextLayoutFormat = ta.textFlow.interactionManager.activePosition == ta.textFlow.interactionManager.anchorPosition ? ta.textFlow.interactionManager.getCommonCharacterFormat() : selectedElementRange.characterFormat;
-			//var selectedParagraphFormat:ITextLayoutFormat = selectedElementRange.paragraphFormat;
-			//var selectedContainerFormat:ITextLayoutFormat = selectedElementRange.containerFormat;
-			
-			
-			
-			//var selectedCharacterFormat:ITextLayoutFormat = ta.textFlow.interactionManager.getCommonCharacterFormat();
-			//var selectedContainerFormat:ITextLayoutFormat = ta.textFlow.interactionManager.getCommonContainerFormat();
-			//var selectedParagraphFormat:ITextLayoutFormat = ta.textFlow.interactionManager.getCommonParagraphFormat();
-			
-			var tem:EditManager = ta.interactionManager as EditManager;
-			
-			
-			
-			//ta.setFocus();
-			//ta.text = ta.text.substr(0, _misspellStart) + replacement + ta.text.substr(_misspellEnd);
-			
-			//tem.applyFormat(selectedCharacterFormat,selectedParagraphFormat,selectedContainerFormat);
-			//ta.textFlow.flowComposer.updateAllControllers();
-			
-			//ta.textFlow;
-			//ta.selectRange(_misspellStart + replacement.length, _misspellStart + replacement.length);
-			
-			
-			tem.selectRange(_misspellStart, _misspellEnd-1);
-			//tem.insertText(replacement);
-			//tem.selectRange(_misspellStart, _misspellStart+1);
-			//tem.insertText("");
-			tem.overwriteText(replacement);
-			
-			//ta.textFlow.interactionManager.applyFormat(selectedCharacterFormat,null,null);
-			
-			// Workaround for unexpected jump
-			//ta.scrollToRange(end, end);
-		}
-		
-		/**
-		 @private
-		 (This property is for Squiggly Developer use only.)
-		 */
-		public function set textFlowContainerController(value:ContainerController):void {
-			_containerController = value;
-		}
-		
-		public function getWordAtPoint(x:uint, y:uint, externalTokenizer:ITokenizer=null):Token
-		{
-			// TODO: use a better alternative than _misspellStart, end
-			var ta:TextFlow = mTextFlow;	
-									
-			var index:int = SelectionManager.computeSelectionIndex(ta, _containerController.container, _containerController.container, x, y);
-
-			if (index >= ta.textLength) return null;
-
-			var currentLeaf:FlowLeafElement = ta.findLeaf(index);
-			var currentParagraph:ParagraphElement = currentLeaf ? currentLeaf.getParagraph() : null;
-			
-			if (currentParagraph == null) return null;
-			var paraStart:uint = currentParagraph.getAbsoluteStart();
-				
-			//tokenizer = new TextTokenizer(currentParagraph.getText().substring());
-			
-			var tmpToken:Token = new Token(index - paraStart,index - paraStart);
-			var tokenizer:ITokenizer;
-			if ( externalTokenizer == null ) {
-				tokenizer = new TextTokenizer(currentParagraph.getText().substring());	
-			}else {
-				tokenizer = externalTokenizer;
-			}
-			
-			var result:Token = new Token(0,0);
-			var preToken:Token = tokenizer.getPreviousToken(tmpToken);
-			var nextToken:Token = tokenizer.getNextToken(tmpToken);
-			if ( preToken.last == nextToken.first ) {
-				result.first = preToken.first + paraStart;
-				result.last = nextToken.last + paraStart;
-				return result;		
-			}else {
-				return null;
-			}
-							
-		}
-
-		// TODO: workaround for unexpected jump when word replaced, to be refactored for code sharing
-		private function getValidLastWordIndex():int{
-			var index:int = 0;
-			//var index:int = SelectionManager.computeSelectionIndex(mTextFlow.textFlow, mTextFlow, mTextFlow, mTextFlow.width+mTextFlow.horizontalScrollPosition, mTextFlow.height+mTextFlow.verticalScrollPosition);
-			return index;
-		}
-
-
-	}
-}
\ No newline at end of file