You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2016/05/24 16:07:03 UTC

[1/8] git commit: [flex-falcon] [refs/heads/develop] - don't need preprocess

Repository: flex-falcon
Updated Branches:
  refs/heads/develop be199c5e8 -> f19287253


don't need preprocess


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

Branch: refs/heads/develop
Commit: 564a522c4689ecfcd4ba061daf473f2b73577225
Parents: be199c5
Author: Alex Harui <ah...@apache.org>
Authored: Fri May 20 08:53:25 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri May 20 08:53:25 2016 -0700

----------------------------------------------------------------------
 externs/cordova/build.xml | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/564a522c/externs/cordova/build.xml
----------------------------------------------------------------------
diff --git a/externs/cordova/build.xml b/externs/cordova/build.xml
index 733b9e5..6eddf99 100644
--- a/externs/cordova/build.xml
+++ b/externs/cordova/build.xml
@@ -28,17 +28,8 @@
     <!-- we need to insert a line near the beginning of the file to make the
          compiler happy. -->
     <target name="preprocess">
-        <antcall target="preprocessfile" >
-            <param name="file" value="cordova_file_plugin-4-11.js" />
-        </antcall>
     </target>
-    
-    <target name="preprocessfile" >
-        <basename property="file.base" file="${file}" suffix=".js"/>
-        <echo>file.base is ${file.base}</echo>
-        <replace file="${basedir}/src/main/javascript/${file}" token="// Namespace" value="/** @const */" />
-    </target>
-    
+        
     <target name="externc" >
         <java jar="${basedir}/../../compiler-jx/lib/externc.jar" fork="true"
             failonerror="false">


[8/8] git commit: [flex-falcon] [refs/heads/develop] - patch $ command in jquery

Posted by ah...@apache.org.
patch $ command in jquery


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

Branch: refs/heads/develop
Commit: f192872530bdc91ce9aac82c5d01722a265d8655
Parents: e7acbce
Author: Alex Harui <ah...@apache.org>
Authored: Tue May 24 09:06:46 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue May 24 09:06:46 2016 -0700

----------------------------------------------------------------------
 externs/jquery/build.xml                   | 34 ++++++++++++++++++++++---
 externs/jquery/src/main/patch/jquery.patch | 12 +++++++++
 2 files changed, 42 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/f1928725/externs/jquery/build.xml
----------------------------------------------------------------------
diff --git a/externs/jquery/build.xml b/externs/jquery/build.xml
index bd3421e..9c8ef17 100644
--- a/externs/jquery/build.xml
+++ b/externs/jquery/build.xml
@@ -23,11 +23,37 @@
     
     <target name="main" depends="preprocess, externc, postprocess, compc" />
 
-    <!-- we need to insert a line near the beginning of the file to make the
-         compiler happy. -->
-    <target name="preprocess">
+    <target name="preprocess" depends="download">
+        <exec executable="git" dir="${basedir}/../..">
+            <arg value="apply"/>
+            <arg value="${basedir}/src/main/patch/jquery.patch"/>
+        </exec>
+    </target>
+
+    <target name="make_patch" depends="download">
+        <mkdir dir="${basedir}/target/reference" />
+        <copy todir="${basedir}/target/reference" file="${basedir}/target/downloads/jquery-1.9.js" />
+        <!-- we manually edit the jquery file to set the type of the $ const, then run ant diff -->
+        <!--<antcall target="diff" />-->
+    </target>
+
+    <target name="diff" >
+        <delete dir="${basedir}/src/main/patch" />
+        <mkdir dir="${basedir}/src/main/patch" />
+        <exec executable="git" output="${basedir}/src/main/patch/jquery.patch" >
+            <arg value="diff"/>
+            <arg value="--no-index"/>
+            <arg value="--"/>
+            <arg value="${basedir}/target/reference"/>
+            <arg value="${basedir}/target/downloads"/>
+        </exec>
+        <replace file="${basedir}/src/main/patch/jquery.patch" token="target/reference" value="target/downloads" />
+        <replace file="${basedir}/src/main/patch/jquery.patch" token="${basedir}/target/downloads" value="/externs/jquery/target/downloads" />
+    </target>
+
+    <target name="download" >
         <mkdir dir="${basedir}/target/downloads" />
-        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/externs/jquery-1.9.js" dest="${basedir}/target/downloads/jquery-1.9.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/externs/jquery-1.9.js" dest="${basedir}/target/downloads/jquery-1.9.js"/>
     </target>
     
     <target name="externc" >

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/f1928725/externs/jquery/src/main/patch/jquery.patch
----------------------------------------------------------------------
diff --git a/externs/jquery/src/main/patch/jquery.patch b/externs/jquery/src/main/patch/jquery.patch
new file mode 100644
index 0000000..6e39d18
--- /dev/null
+++ b/externs/jquery/src/main/patch/jquery.patch
@@ -0,0 +1,12 @@
+diff --git a/externs/jquery/target/downloads/jquery-1.9.js b/externs/jquery/target/downloads/jquery-1.9.js
+index d00166a..1d85908 100644
+--- a/externs/jquery/target/downloads/jquery-1.9.js
++++ b/externs/jquery/target/downloads/jquery-1.9.js
+@@ -156,6 +156,7 @@ function jQuery(arg1, arg2) {}
+ 
+ /**
+  * @const
++ * @type {!jQuery}
+  */
+ var $ = jQuery;
+ 


[4/8] git commit: [flex-falcon] [refs/heads/develop] - convert createjs build to use a patch file. There are Ant targets that can be used to generate the patch files if we upgrade the createjs source we use

Posted by ah...@apache.org.
convert createjs build to use a patch file.  There are Ant targets that can be used to generate the patch files if we upgrade the createjs source we use


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

Branch: refs/heads/develop
Commit: 0128e8bdae3cf1eadb5ab53be79418f9590bf2cf
Parents: 564a522
Author: Alex Harui <ah...@apache.org>
Authored: Mon May 23 11:35:34 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Mon May 23 11:35:34 2016 -0700

----------------------------------------------------------------------
 externs/createjs/build.xml                      |   138 +-
 .../src/main/config/compile-as-config.xml       |   146 +-
 .../createjs/src/main/config/externc-config.xml |     2 +-
 externs/createjs/src/main/patch/easeljs.patch   | 19219 +++++++++++++++++
 externs/createjs/src/main/patch/tweenjs.patch   |  2863 +++
 5 files changed, 22352 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/0128e8bd/externs/createjs/build.xml
----------------------------------------------------------------------
diff --git a/externs/createjs/build.xml b/externs/createjs/build.xml
index 1d6690a..63c8c2f 100644
--- a/externs/createjs/build.xml
+++ b/externs/createjs/build.xml
@@ -39,8 +39,9 @@
     </target>
 
     <!-- createjs files have certain patterns that fool our compilers.
-         we process each file to make it look a bit more like what we expect -->
-    <target name="preprocess" depends="expandzip, expandzip_tween">
+     we process each file to make it look a bit more like what we expect -->
+    <!-- this target requires mac/linux -->
+    <target name="make_patch" depends="download, download_tween, expandzip, expandzip_tween">
         <antcall target="preprocessfile" >
             <param name="file" value="createjs/events/Event.js" />
             <param name="folder" value="EaselJS-${createjs.version}" />
@@ -54,7 +55,7 @@
             <param name="folder" value="EaselJS-${createjs.version}" />
         </antcall>
         <antcall target="preprocessfile" >
-            <param name="file" value="createjs/utils/indexof.js" />
+            <param name="file" value="createjs/utils/indexOf.js" />
             <param name="folder" value="EaselJS-${createjs.version}" />
         </antcall>
         <antcall target="preprocessfile" >
@@ -226,6 +227,55 @@
         <antcall target="preprocessEase" />
         <antcall target="preprocessTween" />
         <antcall target="preprocessTicker" />
+        <antcall target="preprocessIndexOf" />
+        <antcall target="externc_jsroot" />
+        <antcall target="diff" />
+    </target>
+    
+    <target name="diff" >
+        <mkdir dir="${basedir}/target/reference" />
+        <delete dir="${basedir}/target/reference/EaselJS-${createjs.version}" />
+        <unzip src="${basedir}/target/downloads/easel-${createjs.version}.zip"
+            dest="${basedir}/target/reference">
+        </unzip>
+        <fixcrlf srcdir="${basedir}/target/reference/EaselJS-${createjs.version}" eol="unix" />
+        <mkdir dir="${basedir}/target/reference" />
+        <delete dir="${basedir}/target/reference/TweenJS-${tweenjs.version}" />
+        <unzip src="${basedir}/target/downloads/tween-${tweenjs.version}.zip"
+            dest="${basedir}/target/reference">
+        </unzip>
+        <fixcrlf srcdir="${basedir}/target/reference/TweenJS-${tweenjs.version}" eol="unix" />
+        <delete dir="${basedir}/src/main/patch" />
+        <mkdir dir="${basedir}/src/main/patch" />
+        <exec executable="git" output="${basedir}/src/main/patch/easeljs.patch" >
+            <arg value="diff"/>
+            <arg value="--no-index"/>
+            <arg value="--"/>
+            <arg value="${basedir}/target/reference/EaselJS-${createjs.version}"/>
+            <arg value="${basedir}/target/downloads/EaselJS-${createjs.version}"/>
+        </exec>
+        <exec executable="git" output="${basedir}/src/main/patch/tweenjs.patch" >
+            <arg value="diff"/>
+            <arg value="--no-index"/>
+            <arg value="--"/>
+            <arg value="${basedir}/target/reference/TweenJS-${tweenjs.version}"/>
+            <arg value="${basedir}/target/downloads/TweenJS-${tweenjs.version}"/>
+        </exec>
+        <replace file="${basedir}/src/main/patch/easeljs.patch" token="target/reference" value="target/downloads" />
+        <replace file="${basedir}/src/main/patch/easeljs.patch" token="${basedir}/target/downloads" value="/externs/createjs/target/downloads" />
+        <replace file="${basedir}/src/main/patch/tweenjs.patch" token="target/reference" value="target/downloads" />
+        <replace file="${basedir}/src/main/patch/tweenjs.patch" token="${basedir}/target/downloads" value="/externs/createjs/target/downloads" />
+    </target>
+    
+    <target name="preprocess" depends="expandzip, expandzip_tween">
+        <exec executable="git" dir="${basedir}/../..">
+            <arg value="apply"/>
+            <arg value="${basedir}/src/main/patch/easeljs.patch"/>
+        </exec>
+        <exec executable="git" dir="${basedir}/../..">
+            <arg value="apply"/>
+            <arg value="${basedir}/src/main/patch/tweenjs.patch"/>
+        </exec>
     </target>
     
     <target name="expandzip">
@@ -234,6 +284,7 @@
         <unzip src="${basedir}/target/downloads/easel-${createjs.version}.zip"
             dest="${basedir}/target/downloads">
         </unzip>
+        <fixcrlf srcdir="${basedir}/target/downloads/EaselJS-${createjs.version}" eol="unix" />
     </target>
     
     <target name="expandzip_tween">
@@ -242,6 +293,7 @@
         <unzip src="${basedir}/target/downloads/tween-${tweenjs.version}.zip"
             dest="${basedir}/target/downloads">
         </unzip>
+        <fixcrlf srcdir="${basedir}/target/downloads/TweenJS-${tweenjs.version}" eol="unix" />
     </target>
     
     <target name="preprocessfile" >
@@ -296,6 +348,9 @@
     <target name="preprocessMovieClip" >
         <replaceregexp file="${basedir}/target/downloads/EaselJS-${createjs.version}/src/easeljs/display/MovieClip.js" match="createjs.MovieClip.prototype.labels:.*currentLabel;" replace="" flags="gs" />
     </target>
+    <target name="preprocessIndexOf" >
+        <replace file="${basedir}/target/downloads/EaselJS-${createjs.version}/src/createjs/utils/indexOf.js" token="@param searchElement Element" value="@param {Object} searchElement Element" />
+    </target>
     
     <target name="rename.in.jsdoc" >
         <replace dir="${basedir}/target/downloads/EaselJS-${createjs.version}/src" >
@@ -330,7 +385,9 @@
         </replace>
     </target>
     
-    <target name="externc" >
+    <target name="externc_jsroot" >
+        <!-- this step removes function bodies and otherwise makes the files
+             look like typical GCC externs files that GCC expects -->
         <delete dir="${basedir}/target/generated-sources/externs" />
         <java jar="${basedir}/../../compiler-jx/lib/externc.jar" fork="true"
             failonerror="false">
@@ -339,6 +396,79 @@
             <arg value="-js-root=${basedir}/target/generated-sources/externs" />
             <arg value="-load-config=${basedir}/src/main/config/externc-config.xml" />
         </java>
+        <!-- copy the externc jsroot output back on top of the original files.
+             That way the build can just patch the original files and then flatten them
+             into a folder -->
+        <copy todir="${basedir}/target/downloads/EaselJS-${createjs.version}/src/easeljs/filters" overwrite="true">
+            <fileset dir="${basedir}/target/generated-sources/externs">
+                <include name="*Filter.js" />
+                <include name="ColorMatrix.js" />
+            </fileset >
+        </copy>
+        <copy todir="${basedir}/target/downloads/EaselJS-${createjs.version}/src/easeljs/display" overwrite="true">
+            <fileset dir="${basedir}/target/generated-sources/externs">
+                <include name="Bitmap.js" />
+                <include name="BitmapText.js" />
+                <include name="Container.js" />
+                <include name="DisplayObject.js" />
+                <include name="DOMElement.js" />
+                <include name="Graphics.js" />
+                <include name="MovieClip.js" />
+                <include name="Shadow.js" />
+                <include name="Shape.js" />
+                <include name="Sprite.js" />
+                <include name="SpriteContainer.js" />
+                <include name="SpriteSheet.js" />
+                <include name="SpriteStage.js" />
+                <include name="Stage.js" />
+                <include name="Text.js" />
+            </fileset >
+        </copy>
+        <copy todir="${basedir}/target/downloads/EaselJS-${createjs.version}/src/easeljs/ui" overwrite="true">
+            <fileset dir="${basedir}/target/generated-sources/externs">
+                <include name="ButtonHelper.js" />
+            </fileset >
+        </copy>
+        <copy todir="${basedir}/target/downloads/EaselJS-${createjs.version}/src/easeljs/geom" overwrite="true">
+            <fileset dir="${basedir}/target/generated-sources/externs">
+                <include name="DisplayProps.js" />
+                <include name="Matrix2D.js" />
+                <include name="Point.js" />
+                <include name="Rectangle.js" />
+            </fileset >
+        </copy>
+        <copy todir="${basedir}/target/downloads/TweenJS-${tweenjs.version}/src/tweenjs" overwrite="true">
+            <fileset dir="${basedir}/target/generated-sources/externs">
+                <include name="Ease.js" />
+                <include name="Tween.js" />
+                <include name="Timeline.js" />
+            </fileset >
+        </copy>
+        <copy todir="${basedir}/target/downloads/EaselJS-${createjs.version}/src/createjs/events" overwrite="true">
+            <fileset dir="${basedir}/target/generated-sources/externs">
+                <include name="Event.js" />
+                <include name="EventDispatcher.js" />
+            </fileset >
+        </copy>
+        <copy todir="${basedir}/target/downloads/EaselJS-${createjs.version}/src/easeljs/events" overwrite="true">
+            <fileset dir="${basedir}/target/generated-sources/externs">
+                <include name="MouseEvent.js" />
+            </fileset >
+        </copy>
+        <copy todir="${basedir}/target/downloads/EaselJS-${createjs.version}/src/easeljs/utils" overwrite="true">
+            <fileset dir="${basedir}/target/generated-sources/externs">
+                <include name="SpriteSheetBuilder.js" />
+            </fileset >
+        </copy>
+        <copy todir="${basedir}/target/downloads/EaselJS-${createjs.version}/src/createjs/utils" overwrite="true">
+            <fileset dir="${basedir}/target/generated-sources/externs">
+                <include name="Ticker.js" />
+            </fileset >
+        </copy>
+    </target>
+    
+    <target name="externc" >
+        <delete dir="${basedir}/target/generated-sources/externs" />
         <java jar="${basedir}/../../compiler-jx/lib/externc.jar" fork="true"
             failonerror="false">
             <arg value="+flexlib=externs" />

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/0128e8bd/externs/createjs/src/main/config/compile-as-config.xml
----------------------------------------------------------------------
diff --git a/externs/createjs/src/main/config/compile-as-config.xml b/externs/createjs/src/main/config/compile-as-config.xml
index 3abbb9a..3c4bc41 100644
--- a/externs/createjs/src/main/config/compile-as-config.xml
+++ b/externs/createjs/src/main/config/compile-as-config.xml
@@ -76,32 +76,156 @@
          -->
     </include-sources>
 
+    <!-- Even though CreateJS source files are in a tree of folders,
+         in the files, the packages do not reflect the folder
+         tree.  Everything is in the createjs package,
+         so we package them up in a single flat folder. -->
     <include-file>
         <name>externs/missing.js</name>
         <path>../src/main/javascript/missing.js</path>
     </include-file>
     <include-file>
-        <name>externs/createjs/*</name>
-        <path>downloads/EaselJS-0.8.0/src/createjs</path>
+        <name>externs/AlphaMapFilter.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/filters/AlphaMapFilter.js</path>
     </include-file>
     <include-file>
-        <name>externs/easeljs/*</name>
-        <path>downloads/EaselJS-0.8.0/src/easeljs</path>
+        <name>externs/AlphaMaskFilter.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/filters/AlphaMaskFilter.js</path>
     </include-file>
     <include-file>
-        <name>externs/tweenjs/*</name>
-        <path>downloads/TweenJS-0.6.2/src/tweenjs</path>
+        <name>externs/BlurFilter.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/filters/BlurFilter.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/ColorFilter.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/filters/ColorFilter.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/ColorMatrix.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/filters/ColorMatrix.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/ColorMatrixFilter.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/filters/ColorMatrixFilter.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/Filter.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/filters/Filter.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/Bitmap.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/display/Bitmap.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/BitmapText.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/display/BitmapText.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/Container.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/display/Container.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/DisplayObject.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/display/DisplayObject.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/DOMElement.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/display/DOMElement.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/Graphics.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/display/Graphics.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/MovieClip.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/display/MovieClip.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/Shadow.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/display/Shadow.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/Shape.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/display/Shape.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/Sprite.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/display/Sprite.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/SpriteContainer.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/display/SpriteContainer.js</path>
     </include-file>
-    <!--
     <include-file>
-        <name>assets/ErrorIndicator.png</name>
-        <path>assets/ErrorIndicator.png</path>
+        <name>externs/SpriteSheet.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/display/SpriteSheet.js</path>
     </include-file>
     <include-file>
-        <name>assets/RequiredIndicator.png</name>
-        <path>assets/RequiredIndicator.png</path>
+        <name>externs/SpriteStage.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/display/SpriteStage.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/Stage.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/display/Stage.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/Text.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/display/Text.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/ButtonHelper.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/ui/ButtonHelper.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/DisplayProps.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/geom/DisplayProps.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/Matrix2D.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/geom/Matrix2D.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/Point.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/geom/Point.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/Rectangle.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/geom/Rectangle.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/Ease.js</name>
+        <path>downloads/Tweenjs-0.6.2/src/tweenjs/Ease.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/Tween.js</name>
+        <path>downloads/Tweenjs-0.6.2/src/tweenjs/Tween.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/Timeline.js</name>
+        <path>downloads/Tweenjs-0.6.2/src/tweenjs/Timeline.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/Event.js</name>
+        <path>downloads/EaselJS-0.8.0/src/createjs/events/Event.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/EventDispatcher.js</name>
+        <path>downloads/EaselJS-0.8.0/src/createjs/events/EventDispatcher.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/MouseEvent.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/events/MouseEvent.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/SpriteSheetBuilder.js</name>
+        <path>downloads/EaselJS-0.8.0/src/easeljs/utils/SpriteSheetBuilder.js</path>
+    </include-file>
+    <include-file>
+        <name>externs/Ticker.js</name>
+        <path>downloads/EaselJS-0.8.0/src/createjs/utils/Ticker.js</path>
     </include-file>
     
+    <!--
     <include-namespaces>
         <uri>library://ns.adobe.com/flex/spark</uri>
     </include-namespaces>  

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/0128e8bd/externs/createjs/src/main/config/externc-config.xml
----------------------------------------------------------------------
diff --git a/externs/createjs/src/main/config/externc-config.xml b/externs/createjs/src/main/config/externc-config.xml
index b15ab01..e5082de 100644
--- a/externs/createjs/src/main/config/externc-config.xml
+++ b/externs/createjs/src/main/config/externc-config.xml
@@ -64,7 +64,7 @@
         <path-element>../../../target/downloads/EaselJS-0.8.0/src/createjs/events/Event.js</path-element>
         <path-element>../../../target/downloads/EaselJS-0.8.0/src/createjs/events/EventDispatcher.js</path-element>
         <path-element>../../../target/downloads/EaselJS-0.8.0/src/createjs/utils/extend.js</path-element>
-        <path-element>../../../target/downloads/EaselJS-0.8.0/src/createjs/utils/indexof.js</path-element>
+        <path-element>../../../target/downloads/EaselJS-0.8.0/src/createjs/utils/indexOf.js</path-element>
         <path-element>../../../target/downloads/EaselJS-0.8.0/src/createjs/utils/promote.js</path-element>
         <path-element>../../../target/downloads/EaselJS-0.8.0/src/createjs/utils/Ticker.js</path-element>
         <path-element>../../../target/downloads/EaselJS-0.8.0/src/easeljs/display/Bitmap.js</path-element>


[5/8] git commit: [flex-falcon] [refs/heads/develop] - convert google_maps to use patches

Posted by ah...@apache.org.
convert google_maps to use patches


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

Branch: refs/heads/develop
Commit: b048e77ffd4ec45706aa747fdc6865e64d53307d
Parents: 0128e8b
Author: Alex Harui <ah...@apache.org>
Authored: Mon May 23 15:15:06 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Mon May 23 15:15:06 2016 -0700

----------------------------------------------------------------------
 compiler-jx/src/main/resources/downloads.xml    |   1 -
 externs/google_maps/build.xml                   |  30 ++++-
 .../src/main/patch/google_maps.patch            | 110 +++++++++++++++++++
 3 files changed, 139 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/b048e77f/compiler-jx/src/main/resources/downloads.xml
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/resources/downloads.xml b/compiler-jx/src/main/resources/downloads.xml
index 54046be..6e908ee 100644
--- a/compiler-jx/src/main/resources/downloads.xml
+++ b/compiler-jx/src/main/resources/downloads.xml
@@ -248,7 +248,6 @@
     <get src="https://closureidl.googlecode.com/files/svg.js" dest="${FALCONJX_HOME}/../externs/js/target/downloads/svg.js"/>
     <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/externs/jquery-1.9.js" dest="${FALCONJX_HOME}/../externs/jquery/target/downloads/jquery-1.9.js"/>
     <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/externs/jasmine-2.0.js" dest="${FALCONJX_HOME}/../externs/jasmine/target/downloads/jasmine-2.0.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/externs/maps/google_maps_api_v3_11.js" dest="${FALCONJX_HOME}/../externs/google_maps/target/downloads/google_maps_api_v3_11.js"/>
     <!-- start node externs-->
     <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/assert.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/assert.js"/>
     <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/buffer.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/buffer.js"/>

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/b048e77f/externs/google_maps/build.xml
----------------------------------------------------------------------
diff --git a/externs/google_maps/build.xml b/externs/google_maps/build.xml
index 443b8af..5a07e95 100644
--- a/externs/google_maps/build.xml
+++ b/externs/google_maps/build.xml
@@ -25,12 +25,26 @@
     
     <target name="main" depends="preprocess, externc, postprocess, compc" />
     
+    <target name="preprocess" depends="download">
+        <exec executable="git" dir="${basedir}/../..">
+            <arg value="apply"/>
+            <arg value="${basedir}/src/main/patch/google_maps.patch"/>
+        </exec>
+    </target>
+    
     <!-- we need to insert a line near the beginning of the file to make the
          compiler happy. -->
-    <target name="preprocess">
+    <target name="make_patch" depends="download">
+        <mkdir dir="${basedir}/target/reference" />
+        <copy todir="${basedir}/target/reference" file="${basedir}/target/downloads/google_maps_api_v3_11.js" />
         <antcall target="preprocessfile" >
             <param name="file" value="google_maps_api_v3_11.js" />
         </antcall>
+        <antcall target="diff" />
+    </target>
+
+    <target name="download" >
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/externs/maps/google_maps_api_v3_11.js" dest="${basedir}/target/downloads/google_maps_api_v3_11.js" />
     </target>
     
     <target name="preprocessfile" >
@@ -48,6 +62,20 @@ google.maps = {};]]></replacevalue>
         </replace>
     </target>
     
+    <target name="diff" >
+        <delete dir="${basedir}/src/main/patch" />
+        <mkdir dir="${basedir}/src/main/patch" />
+        <exec executable="git" output="${basedir}/src/main/patch/google_maps.patch" >
+            <arg value="diff"/>
+            <arg value="--no-index"/>
+            <arg value="--"/>
+            <arg value="${basedir}/target/reference"/>
+            <arg value="${basedir}/target/downloads"/>
+        </exec>
+        <replace file="${basedir}/src/main/patch/google_maps.patch" token="target/reference" value="target/downloads" />
+        <replace file="${basedir}/src/main/patch/google_maps.patch" token="${basedir}/target/downloads" value="/externs/google_Maps/target/downloads" />
+    </target>
+
     <target name="externc" >
         <java jar="${basedir}/../../compiler-jx/lib/externc.jar" fork="true"
             failonerror="false">

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/b048e77f/externs/google_maps/src/main/patch/google_maps.patch
----------------------------------------------------------------------
diff --git a/externs/google_maps/src/main/patch/google_maps.patch b/externs/google_maps/src/main/patch/google_maps.patch
new file mode 100644
index 0000000..3662743
--- /dev/null
+++ b/externs/google_maps/src/main/patch/google_maps.patch
@@ -0,0 +1,110 @@
+diff --git a/externs/google_Maps/target/downloads/google_maps_api_v3_11.js b/externs/google_Maps/target/downloads/google_maps_api_v3_11.js
+index ac91685..5dbb628 100644
+--- a/externs/google_Maps/target/downloads/google_maps_api_v3_11.js
++++ b/externs/google_Maps/target/downloads/google_maps_api_v3_11.js
+@@ -20,6 +20,11 @@
+  * @externs
+  */
+ 
++
++/** @const */
++var google = {};
++
++/** @const */
+ google.maps = {};
+ 
+ /**
+@@ -4181,7 +4186,7 @@ google.maps.ZoomControlStyle = {
+   SMALL: 3
+ };
+ 
+-// Namespace
++/** @const */
+ google.maps.adsense = {};
+ 
+ /**
+@@ -4386,7 +4391,7 @@ google.maps.adsense.AdUnitOptions.prototype.titleColor;
+  */
+ google.maps.adsense.AdUnitOptions.prototype.urlColor;
+ 
+-// Namespace
++/** @const */
+ google.maps.drawing = {};
+ 
+ /**
+@@ -4517,7 +4522,7 @@ google.maps.drawing.OverlayType = {
+   RECTANGLE: ''
+ };
+ 
+-// Namespace
++/** @const */
+ google.maps.event = {};
+ 
+ /**
+@@ -4581,10 +4586,10 @@ google.maps.event.removeListener = function(listener) {};
+  */
+ google.maps.event.trigger = function(instance, eventName, var_args) {};
+ 
+-// Namespace
++/** @const */
+ google.maps.geometry = {};
+ 
+-// Namespace
++/** @const */
+ google.maps.geometry.encoding = {};
+ 
+ /**
+@@ -4599,7 +4604,7 @@ google.maps.geometry.encoding.decodePath = function(encodedPath) {};
+  */
+ google.maps.geometry.encoding.encodePath = function(path) {};
+ 
+-// Namespace
++/** @const */
+ google.maps.geometry.poly = {};
+ 
+ /**
+@@ -4617,7 +4622,7 @@ google.maps.geometry.poly.containsLocation = function(point, polygon) {};
+  */
+ google.maps.geometry.poly.isLocationOnEdge = function(point, poly, opt_tolerance) {};
+ 
+-// Namespace
++/** @const */
+ google.maps.geometry.spherical = {};
+ 
+ /**
+@@ -4682,7 +4687,7 @@ google.maps.geometry.spherical.computeSignedArea = function(loop, opt_radius) {}
+  */
+ google.maps.geometry.spherical.interpolate = function(from, to, fraction) {};
+ 
+-// Namespace
++/** @const */
+ google.maps.panoramio = {};
+ 
+ /**
+@@ -4819,7 +4824,7 @@ google.maps.panoramio.PanoramioMouseEvent.prototype.latLng;
+  */
+ google.maps.panoramio.PanoramioMouseEvent.prototype.pixelOffset;
+ 
+-// Namespace
++/** @const */
+ google.maps.places = {};
+ 
+ /**
+@@ -5486,7 +5491,7 @@ google.maps.places.TextSearchRequest.prototype.radius;
+  */
+ google.maps.places.TextSearchRequest.prototype.types;
+ 
+-// Namespace
++/** @const */
+ google.maps.visualization = {};
+ 
+ /**
+@@ -5910,7 +5915,7 @@ google.maps.visualization.WeightedLocation.prototype.location;
+  */
+ google.maps.visualization.WeightedLocation.prototype.weight;
+ 
+-// Namespace
++/** @const */
+ google.maps.weather = {};
+ 
+ /**


[3/8] git commit: [flex-falcon] [refs/heads/develop] - convert createjs build to use a patch file. There are Ant targets that can be used to generate the patch files if we upgrade the createjs source we use

Posted by ah...@apache.org.
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/0128e8bd/externs/createjs/src/main/patch/easeljs.patch
----------------------------------------------------------------------
diff --git a/externs/createjs/src/main/patch/easeljs.patch b/externs/createjs/src/main/patch/easeljs.patch
new file mode 100644
index 0000000..f934bc7
--- /dev/null
+++ b/externs/createjs/src/main/patch/easeljs.patch
@@ -0,0 +1,19219 @@
+diff --git a/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/events/Event.js b/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/events/Event.js
+index 3ce0025..71160cf 100644
+--- a/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/events/Event.js
++++ b/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/events/Event.js
+@@ -1,262 +1,76 @@
+-/*
+-* Event
+-* Visit http://createjs.com/ for documentation, updates and examples.
+-*
+-* Copyright (c) 2010 gskinner.com, inc.
+-*
+-* Permission is hereby granted, free of charge, to any person
+-* obtaining a copy of this software and associated documentation
+-* files (the "Software"), to deal in the Software without
+-* restriction, including without limitation the rights to use,
+-* copy, modify, merge, publish, distribute, sublicense, and/or sell
+-* copies of the Software, and to permit persons to whom the
+-* Software is furnished to do so, subject to the following
+-* conditions:
+-*
+-* The above copyright notice and this permission notice shall be
+-* included in all copies or substantial portions of the Software.
+-*
+-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+-* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+-* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+-* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+-* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+-* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+-* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+-* OTHER DEALINGS IN THE SOFTWARE.
+-*/
+-
++/** @fileoverview Auto-generated Externs files
++ * @externs
++ */
+ /**
+- * A collection of Classes that are shared across all the CreateJS libraries.  The classes are included in the minified
+- * files of each library and are available on the createsjs namespace directly.
+- *
+- * <h4>Example</h4>
++ * Contains properties and methods shared by all events for use with
++ * {{#crossLink "EventDispatcher"}}{{/crossLink}}.
++ * 
++ * Note that Event objects are often reused, so you should never
++ * rely on an event object's state outside of the call stack it was received in.
+  *
+- *      myObject.addEventListener("change", createjs.proxy(myMethod, scope));
+- *
+- * @module CreateJS
+- * @main CreateJS
+- */
+-
+-// namespace:
+-this.createjs = this.createjs||{};
++ * @see [Event]
++ * @constructor  */
++createjs.Event = function (type, bubbles, cancelable) {}
+ 
+-(function() {
+-	"use strict";
++    /**
++     * Returns a clone of the Event instance.
++     *
++     * @see [Event]
++     * @returns {(Event|null)} a clone of the Event instance.
++     */
++createjs.Event.clone = function () {  return null; }
+ 
+-// constructor:
+-	/**
+-	 * Contains properties and methods shared by all events for use with
+-	 * {{#crossLink "EventDispatcher"}}{{/crossLink}}.
+-	 * 
+-	 * Note that Event objects are often reused, so you should never
+-	 * rely on an event object's state outside of the call stack it was received in.
+-	 * @class Event
+-	 * @param {String} type The event type.
+-	 * @param {Boolean} bubbles Indicates whether the event will bubble through the display list.
+-	 * @param {Boolean} cancelable Indicates whether the default behaviour of this event can be cancelled.
+-	 * @constructor
+-	 **/
+-	function Event(type, bubbles, cancelable) {
+-		
+-	
+-	// public properties:
+-		/**
+-		 * The type of event.
+-		 * @property type
+-		 * @type String
+-		 **/
+-		this.type = type;
+-	
+-		/**
+-		 * The object that generated an event.
+-		 * @property target
+-		 * @type Object
+-		 * @default null
+-		 * @readonly
+-		*/
+-		this.target = null;
+-	
+-		/**
+-		 * The current target that a bubbling event is being dispatched from. For non-bubbling events, this will
+-		 * always be the same as target. For example, if childObj.parent = parentObj, and a bubbling event
+-		 * is generated from childObj, then a listener on parentObj would receive the event with
+-		 * target=childObj (the original target) and currentTarget=parentObj (where the listener was added).
+-		 * @property currentTarget
+-		 * @type Object
+-		 * @default null
+-		 * @readonly
+-		*/
+-		this.currentTarget = null;
+-	
+-		/**
+-		 * For bubbling events, this indicates the current event phase:<OL>
+-		 * 	<LI> capture phase: starting from the top parent to the target</LI>
+-		 * 	<LI> at target phase: currently being dispatched from the target</LI>
+-		 * 	<LI> bubbling phase: from the target to the top parent</LI>
+-		 * </OL>
+-		 * @property eventPhase
+-		 * @type Number
+-		 * @default 0
+-		 * @readonly
+-		*/
+-		this.eventPhase = 0;
+-	
+-		/**
+-		 * Indicates whether the event will bubble through the display list.
+-		 * @property bubbles
+-		 * @type Boolean
+-		 * @default false
+-		 * @readonly
+-		*/
+-		this.bubbles = !!bubbles;
+-	
+-		/**
+-		 * Indicates whether the default behaviour of this event can be cancelled via
+-		 * {{#crossLink "Event/preventDefault"}}{{/crossLink}}. This is set via the Event constructor.
+-		 * @property cancelable
+-		 * @type Boolean
+-		 * @default false
+-		 * @readonly
+-		*/
+-		this.cancelable = !!cancelable;
+-	
+-		/**
+-		 * The epoch time at which this event was created.
+-		 * @property timeStamp
+-		 * @type Number
+-		 * @default 0
+-		 * @readonly
+-		*/
+-		this.timeStamp = (new Date()).getTime();
+-	
+-		/**
+-		 * Indicates if {{#crossLink "Event/preventDefault"}}{{/crossLink}} has been called
+-		 * on this event.
+-		 * @property defaultPrevented
+-		 * @type Boolean
+-		 * @default false
+-		 * @readonly
+-		*/
+-		this.defaultPrevented = false;
+-	
+-		/**
+-		 * Indicates if {{#crossLink "Event/stopPropagation"}}{{/crossLink}} or
+-		 * {{#crossLink "Event/stopImmediatePropagation"}}{{/crossLink}} has been called on this event.
+-		 * @property propagationStopped
+-		 * @type Boolean
+-		 * @default false
+-		 * @readonly
+-		*/
+-		this.propagationStopped = false;
+-	
+-		/**
+-		 * Indicates if {{#crossLink "Event/stopImmediatePropagation"}}{{/crossLink}} has been called
+-		 * on this event.
+-		 * @property immediatePropagationStopped
+-		 * @type Boolean
+-		 * @default false
+-		 * @readonly
+-		*/
+-		this.immediatePropagationStopped = false;
+-		
+-		/**
+-		 * Indicates if {{#crossLink "Event/remove"}}{{/crossLink}} has been called on this event.
+-		 * @property removed
+-		 * @type Boolean
+-		 * @default false
+-		 * @readonly
+-		*/
+-		this.removed = false;
+-	}
+-	var p = Event.prototype;
++    /**
++     * Causes the active listener to be removed via removeEventListener();
++     * 
++     * myBtn.addEventListener("click", function(evt) {
++     * // do stuff...
++     * evt.remove(); // removes this listener.
++     * });
++     *
++     * @see [Event]
++     */
++createjs.Event.remove = function () {  }
+ 
+-	/**
+-	 * <strong>REMOVED</strong>. Removed in favor of using `MySuperClass_constructor`.
+-	 * See {{#crossLink "Utility Methods/extend"}}{{/crossLink}} and {{#crossLink "Utility Methods/promote"}}{{/crossLink}}
+-	 * for details.
+-	 *
+-	 * There is an inheritance tutorial distributed with EaselJS in /tutorials/Inheritance.
+-	 *
+-	 * @method initialize
+-	 * @protected
+-	 * @deprecated
+-	 */
+-	// p.initialize = function() {}; // searchable for devs wondering where it is.
++    /**
++     * Provides a chainable shortcut method for setting a number of properties on the instance.
++     *
++     * @param {(Object|null)} props A generic object containing properties to copy to the instance.
++     * @see [Event]
++     * @returns {(Event|null)} Returns the instance the method is called on (useful for chaining calls.)
++     */
++createjs.Event.set = function (props) {  return null; }
+ 
+-// public methods:
+-	/**
+-	 * Sets {{#crossLink "Event/defaultPrevented"}}{{/crossLink}} to true.
+-	 * Mirrors the DOM event standard.
+-	 * @method preventDefault
+-	 **/
+-	p.preventDefault = function() {
+-		this.defaultPrevented = this.cancelable&&true;
+-	};
++    /**
++     * Sets {{#crossLink "Event/propagationStopped"}}{{/crossLink}} to true.
++     * Mirrors the DOM event standard.
++     *
++     * @see [Event]
++     */
++createjs.Event.stopPropagation = function () {  }
+ 
+-	/**
+-	 * Sets {{#crossLink "Event/propagationStopped"}}{{/crossLink}} to true.
+-	 * Mirrors the DOM event standard.
+-	 * @method stopPropagation
+-	 **/
+-	p.stopPropagation = function() {
+-		this.propagationStopped = true;
+-	};
++    /**
++     * Sets {{#crossLink "Event/propagationStopped"}}{{/crossLink}} and
++     * {{#crossLink "Event/immediatePropagationStopped"}}{{/crossLink}} to true.
++     * Mirrors the DOM event standard.
++     *
++     * @see [Event]
++     */
++createjs.Event.stopImmediatePropagation = function () {  }
+ 
+-	/**
+-	 * Sets {{#crossLink "Event/propagationStopped"}}{{/crossLink}} and
+-	 * {{#crossLink "Event/immediatePropagationStopped"}}{{/crossLink}} to true.
+-	 * Mirrors the DOM event standard.
+-	 * @method stopImmediatePropagation
+-	 **/
+-	p.stopImmediatePropagation = function() {
+-		this.immediatePropagationStopped = this.propagationStopped = true;
+-	};
+-	
+-	/**
+-	 * Causes the active listener to be removed via removeEventListener();
+-	 * 
+-	 * 		myBtn.addEventListener("click", function(evt) {
+-	 * 			// do stuff...
+-	 * 			evt.remove(); // removes this listener.
+-	 * 		});
+-	 * 
+-	 * @method remove
+-	 **/
+-	p.remove = function() {
+-		this.removed = true;
+-	};
+-	
+-	/**
+-	 * Returns a clone of the Event instance.
+-	 * @method clone
+-	 * @return {Event} a clone of the Event instance.
+-	 **/
+-	p.clone = function() {
+-		return new Event(this.type, this.bubbles, this.cancelable);
+-	};
+-	
+-	/**
+-	 * Provides a chainable shortcut method for setting a number of properties on the instance.
+-	 *
+-	 * @method set
+-	 * @param {Object} props A generic object containing properties to copy to the instance.
+-	 * @return {Event} Returns the instance the method is called on (useful for chaining calls.)
+-	 * @chainable
+-	*/
+-	p.set = function(props) {
+-		for (var n in props) { this[n] = props[n]; }
+-		return this;
+-	};
++    /**
++     * Returns a string representation of this object.
++     *
++     * @see [Event]
++     * @returns {(string|null)} a string representation of the instance.
++     */
++createjs.Event.toString = function () {  return null; }
+ 
+-	/**
+-	 * Returns a string representation of this object.
+-	 * @method toString
+-	 * @return {String} a string representation of the instance.
+-	 **/
+-	p.toString = function() {
+-		return "[Event (type="+this.type+")]";
+-	};
++    /**
++     * Sets {{#crossLink "Event/defaultPrevented"}}{{/crossLink}} to true.
++     * Mirrors the DOM event standard.
++     *
++     * @see [Event]
++     */
++createjs.Event.preventDefault = function () {  }
+ 
+-	createjs.Event = Event;
+-}());
+diff --git a/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/events/EventDispatcher.js b/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/events/EventDispatcher.js
+index b95257c..1e8dce8 100644
+--- a/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/events/EventDispatcher.js
++++ b/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/events/EventDispatcher.js
+@@ -1,407 +1,201 @@
+-/*
+-* EventDispatcher
+-* Visit http://createjs.com/ for documentation, updates and examples.
+-*
+-* Copyright (c) 2010 gskinner.com, inc.
+-*
+-* Permission is hereby granted, free of charge, to any person
+-* obtaining a copy of this software and associated documentation
+-* files (the "Software"), to deal in the Software without
+-* restriction, including without limitation the rights to use,
+-* copy, modify, merge, publish, distribute, sublicense, and/or sell
+-* copies of the Software, and to permit persons to whom the
+-* Software is furnished to do so, subject to the following
+-* conditions:
+-*
+-* The above copyright notice and this permission notice shall be
+-* included in all copies or substantial portions of the Software.
+-*
+-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+-* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+-* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+-* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+-* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+-* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+-* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+-* OTHER DEALINGS IN THE SOFTWARE.
+-*/
+-
+-/**
+- * @module CreateJS
++/** @fileoverview Auto-generated Externs files
++ * @externs
+  */
++/**
++ * EventDispatcher provides methods for managing queues of event listeners and dispatching events.
++ * 
++ * You can either extend EventDispatcher or mix its methods into an existing prototype or instance by using the
++ * EventDispatcher {{#crossLink "EventDispatcher/initialize"}}{{/crossLink}} method.
++ * 
++ * Together with the CreateJS Event class, EventDispatcher provides an extended event model that is based on the
++ * DOM Level 2 event model, including addEventListener, removeEventListener, and dispatchEvent. It supports
++ * bubbling / capture, preventDefault, stopPropagation, stopImmediatePropagation, and handleEvent.
++ * 
++ * EventDispatcher also exposes a {{#crossLink "EventDispatcher/on"}}{{/crossLink}} method, which makes it easier
++ * to create scoped listeners, listeners that only run once, and listeners with associated arbitrary data. The
++ * {{#crossLink "EventDispatcher/off"}}{{/crossLink}} method is merely an alias to
++ * {{#crossLink "EventDispatcher/removeEventListener"}}{{/crossLink}}.
++ * 
++ * Another addition to the DOM Level 2 model is the {{#crossLink "EventDispatcher/removeAllEventListeners"}}{{/crossLink}}
++ * method, which can be used to listeners for all events, or listeners for a specific event. The Event object also
++ * includes a {{#crossLink "Event/remove"}}{{/crossLink}} method which removes the active listener.
++ * 
++ * <h4>Example</h4>
++ * Add EventDispatcher capabilities to the "MyClass" class.
++ * 
++ * createjs.EventDispatcher.initialize(MyClass.prototype);
++ * 
++ * Add an event (see {{#crossLink "EventDispatcher/addEventListener"}}{{/crossLink}}).
++ * 
++ * instance.addEventListener("eventName", handlerMethod);
++ * function handlerMethod(event) {
++ * console.log(event.target + " Was Clicked");
++ * }
++ * 
++ * <b>Maintaining proper scope</b><br />
++ * Scope (ie. "this") can be be a challenge with events. Using the {{#crossLink "EventDispatcher/on"}}{{/crossLink}}
++ * method to subscribe to events simplifies this.
++ * 
++ * instance.addEventListener("click", function(event) {
++ * console.log(instance == this); // false, scope is ambiguous.
++ * });
++ * 
++ * instance.on("click", function(event) {
++ * console.log(instance == this); // true, "on" uses dispatcher scope by default.
++ * });
++ * 
++ * If you want to use addEventListener instead, you may want to use function.bind() or a similar proxy to manage scope.
++ *
++ * @see [EventDispatcher]
++ * @constructor  */
++createjs.EventDispatcher = function () {}
++
++    /**
++     * Static initializer to mix EventDispatcher methods into a target object or prototype.
++     * 
++     * createjs.EventDispatcher.initialize(MyClass.prototype); // add to the prototype of the class
++     * createjs.EventDispatcher.initialize(myObject); // add to a specific instance
++     *
++     * @param {(Object|null)} target The target object to inject EventDispatcher methods into. This can be an instance or a prototype.
++     * @see [EventDispatcher]
++     */
++createjs.EventDispatcher.prototype.initialize = function (target) {  }
++
++    /**
++     * Indicates whether there is at least one listener for the specified event type on this object or any of its
++     * ancestors (parent, parent's parent, etc). A return value of true indicates that if a bubbling event of the
++     * specified type is dispatched from this object, it will trigger at least one listener.
++     * 
++     * This is similar to {{#crossLink "EventDispatcher/hasEventListener"}}{{/crossLink}}, but it searches the entire
++     * event flow for a listener, not just this object.
++     *
++     * @param {(string|null)} type The string type of the event.
++     * @see [EventDispatcher]
++     * @returns {(boolean|null)} Returns `true` if there is at least one listener for the specified event.
++     */
++createjs.EventDispatcher.willTrigger = function (type) {  return null; }
++
++    /**
++     * Removes all listeners for the specified type, or all listeners of all types.
++     * 
++     * <h4>Example</h4>
++     * 
++     * // Remove all listeners
++     * displayObject.removeAllEventListeners();
++     * 
++     * // Remove all click listeners
++     * displayObject.removeAllEventListeners("click");
++     *
++     * @param {(string|null|undefined)} type The string type of the event. If omitted, all listeners for all types will be removed.
++     * @see [EventDispatcher]
++     */
++createjs.EventDispatcher.removeAllEventListeners = function (type) {  }
++
++    /**
++     * Adds the specified event listener. Note that adding multiple listeners to the same function will result in
++     * multiple callbacks getting fired.
++     * 
++     * <h4>Example</h4>
++     * 
++     * displayObject.addEventListener("click", handleClick);
++     * function handleClick(event) {
++     * // Click happened.
++     * }
++     *
++     * @param {(string|null)} type The string type of the event.
++     * @param {(Object|null)} listener An object with a handleEvent method, or a function that will be called when the event is dispatched.
++     * @param {(boolean|null|undefined)} useCapture For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.
++     * @see [EventDispatcher]
++     * @returns {(Object|null)} Returns the listener for chaining or assignment.
++     */
++createjs.EventDispatcher.addEventListener = function (type, listener, useCapture) {  return null; }
++
++    /**
++     * @param {(Event|Object|null)} eventObj 
++     * @param {(Object|null)} eventPhase 
++     * @see [EventDispatcher]
++     */
++createjs.EventDispatcher._dispatchEvent = function (eventObj, eventPhase) {  }
++
++    /**
++     * Dispatches the specified event to all listeners.
++     * 
++     * <h4>Example</h4>
++     * 
++     * // Use a string event
++     * this.dispatchEvent("complete");
++     * 
++     * // Use an Event instance
++     * var event = new createjs.Event("progress");
++     * this.dispatchEvent(event);
++     *
++     * @param {(Event|Object|null)} eventObj An object with a "type" property, or a string type. While a generic object will work, it is recommended to use a CreateJS Event instance. If a string is used, dispatchEvent will construct an Event instance with the specified type.
++     * @see [EventDispatcher]
++     * @returns {(boolean|null)} Returns the value of eventObj.defaultPrevented.
++     */
++createjs.EventDispatcher.dispatchEvent = function (eventObj) {  return null; }
++
++    /**
++     * Removes the specified event listener.
++     * 
++     * <b>Important Note:</b> that you must pass the exact function reference used when the event was added. If a proxy
++     * function, or function closure is used as the callback, the proxy/closure reference must be used - a new proxy or
++     * closure will not work.
++     * 
++     * <h4>Example</h4>
++     * 
++     * displayObject.removeEventListener("click", handleClick);
++     *
++     * @param {(string|null)} type The string type of the event.
++     * @param {(Object|null)} listener The listener function or object.
++     * @param {(boolean|null|undefined)} useCapture For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.
++     * @see [EventDispatcher]
++     */
++createjs.EventDispatcher.removeEventListener = function (type, listener, useCapture) {  }
++
++    /**
++     * A shortcut method for using addEventListener that makes it easier to specify an execution scope, have a listener
++     * only run once, associate arbitrary data with the listener, and remove the listener.
++     * 
++     * This method works by creating an anonymous wrapper function and subscribing it with addEventListener.
++     * The created anonymous function is returned for use with .removeEventListener (or .off).
++     * 
++     * <h4>Example</h4>
++     * 
++     * var listener = myBtn.on("click", handleClick, null, false, {count:3});
++     * function handleClick(evt, data) {
++     * data.count -= 1;
++     * console.log(this == myBtn); // true - scope defaults to the dispatcher
++     * if (data.count == 0) {
++     * alert("clicked 3 times!");
++     * myBtn.off("click", listener);
++     * // alternately: evt.remove();
++     * }
++     * }
++     *
++     * @param {(string|null)} type The string type of the event.
++     * @param {(Object|null)} listener An object with a handleEvent method, or a function that will be called when the event is dispatched.
++     * @param {(Object|null|undefined)} scope The scope to execute the listener in. Defaults to the dispatcher/currentTarget for function listeners, and to the listener itself for object listeners (ie. using handleEvent).
++     * @param {(boolean|null|undefined)} once If true, the listener will remove itself after the first time it is triggered.
++     * @param {*} data Arbitrary data that will be included as the second parameter when the listener is called.
++     * @param {(boolean|null|undefined)} useCapture For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.
++     * @see [EventDispatcher]
++     * @returns {(Function|null)} Returns the anonymous function that was created and assigned as the listener. This is needed to remove the listener later using .removeEventListener.
++     */
++createjs.EventDispatcher.on = function (type, listener, scope, once, data, useCapture) {  return null; }
++
++    /**
++     * @see [EventDispatcher]
++     * @returns {(string|null)} a string representation of the instance.
++     */
++createjs.EventDispatcher.toString = function () {  return null; }
++
++    /**
++     * Indicates whether there is at least one listener for the specified event type.
++     *
++     * @param {(string|null)} type The string type of the event.
++     * @see [EventDispatcher]
++     * @returns {(boolean|null)} Returns true if there is at least one listener for the specified event.
++     */
++createjs.EventDispatcher.hasEventListener = function (type) {  return null; }
+ 
+-// namespace:
+-this.createjs = this.createjs||{};
+-
+-(function() {
+-	"use strict";
+-
+-
+-// constructor:
+-	/**
+-	 * EventDispatcher provides methods for managing queues of event listeners and dispatching events.
+-	 *
+-	 * You can either extend EventDispatcher or mix its methods into an existing prototype or instance by using the
+-	 * EventDispatcher {{#crossLink "EventDispatcher/initialize"}}{{/crossLink}} method.
+-	 * 
+-	 * Together with the CreateJS Event class, EventDispatcher provides an extended event model that is based on the
+-	 * DOM Level 2 event model, including addEventListener, removeEventListener, and dispatchEvent. It supports
+-	 * bubbling / capture, preventDefault, stopPropagation, stopImmediatePropagation, and handleEvent.
+-	 * 
+-	 * EventDispatcher also exposes a {{#crossLink "EventDispatcher/on"}}{{/crossLink}} method, which makes it easier
+-	 * to create scoped listeners, listeners that only run once, and listeners with associated arbitrary data. The 
+-	 * {{#crossLink "EventDispatcher/off"}}{{/crossLink}} method is merely an alias to
+-	 * {{#crossLink "EventDispatcher/removeEventListener"}}{{/crossLink}}.
+-	 * 
+-	 * Another addition to the DOM Level 2 model is the {{#crossLink "EventDispatcher/removeAllEventListeners"}}{{/crossLink}}
+-	 * method, which can be used to listeners for all events, or listeners for a specific event. The Event object also 
+-	 * includes a {{#crossLink "Event/remove"}}{{/crossLink}} method which removes the active listener.
+-	 *
+-	 * <h4>Example</h4>
+-	 * Add EventDispatcher capabilities to the "MyClass" class.
+-	 *
+-	 *      EventDispatcher.initialize(MyClass.prototype);
+-	 *
+-	 * Add an event (see {{#crossLink "EventDispatcher/addEventListener"}}{{/crossLink}}).
+-	 *
+-	 *      instance.addEventListener("eventName", handlerMethod);
+-	 *      function handlerMethod(event) {
+-	 *          console.log(event.target + " Was Clicked");
+-	 *      }
+-	 *
+-	 * <b>Maintaining proper scope</b><br />
+-	 * Scope (ie. "this") can be be a challenge with events. Using the {{#crossLink "EventDispatcher/on"}}{{/crossLink}}
+-	 * method to subscribe to events simplifies this.
+-	 *
+-	 *      instance.addEventListener("click", function(event) {
+-	 *          console.log(instance == this); // false, scope is ambiguous.
+-	 *      });
+-	 *      
+-	 *      instance.on("click", function(event) {
+-	 *          console.log(instance == this); // true, "on" uses dispatcher scope by default.
+-	 *      });
+-	 * 
+-	 * If you want to use addEventListener instead, you may want to use function.bind() or a similar proxy to manage scope.
+-	 *      
+-	 *
+-	 * @class EventDispatcher
+-	 * @constructor
+-	 **/
+-	function EventDispatcher() {
+-	
+-	
+-	// private properties:
+-		/**
+-		 * @protected
+-		 * @property _listeners
+-		 * @type Object
+-		 **/
+-		this._listeners = null;
+-		
+-		/**
+-		 * @protected
+-		 * @property _captureListeners
+-		 * @type Object
+-		 **/
+-		this._captureListeners = null;
+-	}
+-	var p = EventDispatcher.prototype;
+-
+-	/**
+-	 * <strong>REMOVED</strong>. Removed in favor of using `MySuperClass_constructor`.
+-	 * See {{#crossLink "Utility Methods/extend"}}{{/crossLink}} and {{#crossLink "Utility Methods/promote"}}{{/crossLink}}
+-	 * for details.
+-	 *
+-	 * There is an inheritance tutorial distributed with EaselJS in /tutorials/Inheritance.
+-	 *
+-	 * @method initialize
+-	 * @protected
+-	 * @deprecated
+-	 */
+-	// p.initialize = function() {}; // searchable for devs wondering where it is.
+-
+-
+-// static public methods:
+-	/**
+-	 * Static initializer to mix EventDispatcher methods into a target object or prototype.
+-	 * 
+-	 * 		EventDispatcher.initialize(MyClass.prototype); // add to the prototype of the class
+-	 * 		EventDispatcher.initialize(myObject); // add to a specific instance
+-	 * 
+-	 * @method initialize
+-	 * @static
+-	 * @param {Object} target The target object to inject EventDispatcher methods into. This can be an instance or a
+-	 * prototype.
+-	 **/
+-	EventDispatcher.initialize = function(target) {
+-		target.addEventListener = p.addEventListener;
+-		target.on = p.on;
+-		target.removeEventListener = target.off =  p.removeEventListener;
+-		target.removeAllEventListeners = p.removeAllEventListeners;
+-		target.hasEventListener = p.hasEventListener;
+-		target.dispatchEvent = p.dispatchEvent;
+-		target._dispatchEvent = p._dispatchEvent;
+-		target.willTrigger = p.willTrigger;
+-	};
+-	
+-
+-// public methods:
+-	/**
+-	 * Adds the specified event listener. Note that adding multiple listeners to the same function will result in
+-	 * multiple callbacks getting fired.
+-	 *
+-	 * <h4>Example</h4>
+-	 *
+-	 *      displayObject.addEventListener("click", handleClick);
+-	 *      function handleClick(event) {
+-	 *         // Click happened.
+-	 *      }
+-	 *
+-	 * @method addEventListener
+-	 * @param {String} type The string type of the event.
+-	 * @param {Function | Object} listener An object with a handleEvent method, or a function that will be called when
+-	 * the event is dispatched.
+-	 * @param {Boolean} [useCapture] For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.
+-	 * @return {Function | Object} Returns the listener for chaining or assignment.
+-	 **/
+-	p.addEventListener = function(type, listener, useCapture) {
+-		var listeners;
+-		if (useCapture) {
+-			listeners = this._captureListeners = this._captureListeners||{};
+-		} else {
+-			listeners = this._listeners = this._listeners||{};
+-		}
+-		var arr = listeners[type];
+-		if (arr) { this.removeEventListener(type, listener, useCapture); }
+-		arr = listeners[type]; // remove may have deleted the array
+-		if (!arr) { listeners[type] = [listener];  }
+-		else { arr.push(listener); }
+-		return listener;
+-	};
+-	
+-	/**
+-	 * A shortcut method for using addEventListener that makes it easier to specify an execution scope, have a listener
+-	 * only run once, associate arbitrary data with the listener, and remove the listener.
+-	 * 
+-	 * This method works by creating an anonymous wrapper function and subscribing it with addEventListener.
+-	 * The created anonymous function is returned for use with .removeEventListener (or .off).
+-	 * 
+-	 * <h4>Example</h4>
+-	 * 
+-	 * 		var listener = myBtn.on("click", handleClick, null, false, {count:3});
+-	 * 		function handleClick(evt, data) {
+-	 * 			data.count -= 1;
+-	 * 			console.log(this == myBtn); // true - scope defaults to the dispatcher
+-	 * 			if (data.count == 0) {
+-	 * 				alert("clicked 3 times!");
+-	 * 				myBtn.off("click", listener);
+-	 * 				// alternately: evt.remove();
+-	 * 			}
+-	 * 		}
+-	 * 
+-	 * @method on
+-	 * @param {String} type The string type of the event.
+-	 * @param {Function | Object} listener An object with a handleEvent method, or a function that will be called when
+-	 * the event is dispatched.
+-	 * @param {Object} [scope] The scope to execute the listener in. Defaults to the dispatcher/currentTarget for function listeners, and to the listener itself for object listeners (ie. using handleEvent).
+-	 * @param {Boolean} [once=false] If true, the listener will remove itself after the first time it is triggered.
+-	 * @param {*} [data] Arbitrary data that will be included as the second parameter when the listener is called.
+-	 * @param {Boolean} [useCapture=false] For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.
+-	 * @return {Function} Returns the anonymous function that was created and assigned as the listener. This is needed to remove the listener later using .removeEventListener.
+-	 **/
+-	p.on = function(type, listener, scope, once, data, useCapture) {
+-		if (listener.handleEvent) {
+-			scope = scope||listener;
+-			listener = listener.handleEvent;
+-		}
+-		scope = scope||this;
+-		return this.addEventListener(type, function(evt) {
+-				listener.call(scope, evt, data);
+-				once&&evt.remove();
+-			}, useCapture);
+-	};
+-
+-	/**
+-	 * Removes the specified event listener.
+-	 *
+-	 * <b>Important Note:</b> that you must pass the exact function reference used when the event was added. If a proxy
+-	 * function, or function closure is used as the callback, the proxy/closure reference must be used - a new proxy or
+-	 * closure will not work.
+-	 *
+-	 * <h4>Example</h4>
+-	 *
+-	 *      displayObject.removeEventListener("click", handleClick);
+-	 *
+-	 * @method removeEventListener
+-	 * @param {String} type The string type of the event.
+-	 * @param {Function | Object} listener The listener function or object.
+-	 * @param {Boolean} [useCapture] For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.
+-	 **/
+-	p.removeEventListener = function(type, listener, useCapture) {
+-		var listeners = useCapture ? this._captureListeners : this._listeners;
+-		if (!listeners) { return; }
+-		var arr = listeners[type];
+-		if (!arr) { return; }
+-		for (var i=0,l=arr.length; i<l; i++) {
+-			if (arr[i] == listener) {
+-				if (l==1) { delete(listeners[type]); } // allows for faster checks.
+-				else { arr.splice(i,1); }
+-				break;
+-			}
+-		}
+-	};
+-	
+-	/**
+-	 * A shortcut to the removeEventListener method, with the same parameters and return value. This is a companion to the
+-	 * .on method.
+-	 *
+-	 * @method off
+-	 * @param {String} type The string type of the event.
+-	 * @param {Function | Object} listener The listener function or object.
+-	 * @param {Boolean} [useCapture] For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.
+-	 **/
+-	p.off = p.removeEventListener;
+-
+-	/**
+-	 * Removes all listeners for the specified type, or all listeners of all types.
+-	 *
+-	 * <h4>Example</h4>
+-	 *
+-	 *      // Remove all listeners
+-	 *      displayObject.removeAllEventListeners();
+-	 *
+-	 *      // Remove all click listeners
+-	 *      displayObject.removeAllEventListeners("click");
+-	 *
+-	 * @method removeAllEventListeners
+-	 * @param {String} [type] The string type of the event. If omitted, all listeners for all types will be removed.
+-	 **/
+-	p.removeAllEventListeners = function(type) {
+-		if (!type) { this._listeners = this._captureListeners = null; }
+-		else {
+-			if (this._listeners) { delete(this._listeners[type]); }
+-			if (this._captureListeners) { delete(this._captureListeners[type]); }
+-		}
+-	};
+-
+-	/**
+-	 * Dispatches the specified event to all listeners.
+-	 *
+-	 * <h4>Example</h4>
+-	 *
+-	 *      // Use a string event
+-	 *      this.dispatchEvent("complete");
+-	 *
+-	 *      // Use an Event instance
+-	 *      var event = new createjs.Event("progress");
+-	 *      this.dispatchEvent(event);
+-	 *
+-	 * @method dispatchEvent
+-	 * @param {Object | String | Event} eventObj An object with a "type" property, or a string type.
+-	 * While a generic object will work, it is recommended to use a CreateJS Event instance. If a string is used,
+-	 * dispatchEvent will construct an Event instance with the specified type.
+-	 * @return {Boolean} Returns the value of eventObj.defaultPrevented.
+-	 **/
+-	p.dispatchEvent = function(eventObj) {
+-		if (typeof eventObj == "string") {
+-			// won't bubble, so skip everything if there's no listeners:
+-			var listeners = this._listeners;
+-			if (!listeners || !listeners[eventObj]) { return false; }
+-			eventObj = new createjs.Event(eventObj);
+-		} else if (eventObj.target && eventObj.clone) {
+-			// redispatching an active event object, so clone it:
+-			eventObj = eventObj.clone();
+-		}
+-		try { eventObj.target = this; } catch (e) {} // try/catch allows redispatching of native events
+-
+-		if (!eventObj.bubbles || !this.parent) {
+-			this._dispatchEvent(eventObj, 2);
+-		} else {
+-			var top=this, list=[top];
+-			while (top.parent) { list.push(top = top.parent); }
+-			var i, l=list.length;
+-
+-			// capture & atTarget
+-			for (i=l-1; i>=0 && !eventObj.propagationStopped; i--) {
+-				list[i]._dispatchEvent(eventObj, 1+(i==0));
+-			}
+-			// bubbling
+-			for (i=1; i<l && !eventObj.propagationStopped; i++) {
+-				list[i]._dispatchEvent(eventObj, 3);
+-			}
+-		}
+-		return eventObj.defaultPrevented;
+-	};
+-
+-	/**
+-	 * Indicates whether there is at least one listener for the specified event type.
+-	 * @method hasEventListener
+-	 * @param {String} type The string type of the event.
+-	 * @return {Boolean} Returns true if there is at least one listener for the specified event.
+-	 **/
+-	p.hasEventListener = function(type) {
+-		var listeners = this._listeners, captureListeners = this._captureListeners;
+-		return !!((listeners && listeners[type]) || (captureListeners && captureListeners[type]));
+-	};
+-	
+-	/**
+-	 * Indicates whether there is at least one listener for the specified event type on this object or any of its
+-	 * ancestors (parent, parent's parent, etc). A return value of true indicates that if a bubbling event of the
+-	 * specified type is dispatched from this object, it will trigger at least one listener.
+-	 * 
+-	 * This is similar to {{#crossLink "EventDispatcher/hasEventListener"}}{{/crossLink}}, but it searches the entire
+-	 * event flow for a listener, not just this object.
+-	 * @method willTrigger
+-	 * @param {String} type The string type of the event.
+-	 * @return {Boolean} Returns `true` if there is at least one listener for the specified event.
+-	 **/
+-	p.willTrigger = function(type) {
+-		var o = this;
+-		while (o) {
+-			if (o.hasEventListener(type)) { return true; }
+-			o = o.parent;
+-		}
+-		return false;
+-	};
+-
+-	/**
+-	 * @method toString
+-	 * @return {String} a string representation of the instance.
+-	 **/
+-	p.toString = function() {
+-		return "[EventDispatcher]";
+-	};
+-
+-
+-// private methods:
+-	/**
+-	 * @method _dispatchEvent
+-	 * @param {Object | String | Event} eventObj
+-	 * @param {Object} eventPhase
+-	 * @protected
+-	 **/
+-	p._dispatchEvent = function(eventObj, eventPhase) {
+-		var l, listeners = (eventPhase==1) ? this._captureListeners : this._listeners;
+-		if (eventObj && listeners) {
+-			var arr = listeners[eventObj.type];
+-			if (!arr||!(l=arr.length)) { return; }
+-			try { eventObj.currentTarget = this; } catch (e) {}
+-			try { eventObj.eventPhase = eventPhase; } catch (e) {}
+-			eventObj.removed = false;
+-			
+-			arr = arr.slice(); // to avoid issues with items being removed or added during the dispatch
+-			for (var i=0; i<l && !eventObj.immediatePropagationStopped; i++) {
+-				var o = arr[i];
+-				if (o.handleEvent) { o.handleEvent(eventObj); }
+-				else { o(eventObj); }
+-				if (eventObj.removed) {
+-					this.off(eventObj.type, o, eventPhase==1);
+-					eventObj.removed = false;
+-				}
+-			}
+-		}
+-	};
+-
+-
+-	createjs.EventDispatcher = EventDispatcher;
+-}());
+diff --git a/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/utils/Ticker.js b/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/utils/Ticker.js
+index 3c5c4a6..ad87beb 100644
+--- a/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/utils/Ticker.js
++++ b/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/utils/Ticker.js
+@@ -1,632 +1,182 @@
+-/*
+-* Ticker
+-* Visit http://createjs.com/ for documentation, updates and examples.
+-*
+-* Copyright (c) 2010 gskinner.com, inc.
+-*
+-* Permission is hereby granted, free of charge, to any person
+-* obtaining a copy of this software and associated documentation
+-* files (the "Software"), to deal in the Software without
+-* restriction, including without limitation the rights to use,
+-* copy, modify, merge, publish, distribute, sublicense, and/or sell
+-* copies of the Software, and to permit persons to whom the
+-* Software is furnished to do so, subject to the following
+-* conditions:
+-*
+-* The above copyright notice and this permission notice shall be
+-* included in all copies or substantial portions of the Software.
+-*
+-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+-* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+-* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+-* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+-* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+-* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+-* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+-* OTHER DEALINGS IN THE SOFTWARE.
+-*/
+-
+-/**
+- * @module CreateJS
++/** @fileoverview Auto-generated Externs files
++ * @externs
+  */
++/**
++ * The Ticker provides a centralized tick or heartbeat broadcast at a set interval. Listeners can subscribe to the tick
++ * event to be notified when a set time interval has elapsed.
++ * 
++ * Note that the interval that the tick event is called is a target interval, and may be broadcast at a slower interval
++ * when under high CPU load. The Ticker class uses a static interface (ex. `createjs.Ticker.framerate = 30;`) and
++ * can not be instantiated.
++ * 
++ * <h4>Example</h4>
++ * 
++ * createjs.createjs.Ticker.addEventListener("tick", handleTick);
++ * function handleTick(event) {
++ * // Actions carried out each tick (aka frame)
++ * if (!event.paused) {
++ * // Actions carried out when the Ticker is not paused.
++ * }
++ * }
++ *
++ * @see [Ticker]
++ * @constructor  */
++createjs.Ticker = function () {}
++
++    /**
++     * Use the {{#crossLink "Ticker/framerate:property"}}{{/crossLink}} property instead.
++     *
++     * @param {(number|null)} value 
++     * @see [Ticker]
++     */
++createjs.Ticker.prototype.setFPS = function (value) {  }
++
++    /**
++     * @see [Ticker]
++     */
++createjs.Ticker.prototype._setupTick = function () {  }
++
++    /**
++     * Generated doc for missing method JSDoc.
++     *
++     * @see [Ticker]
++     */
++createjs.Ticker.prototype.addEventListener = function (type, handler) {  }
++
++    /**
++     * @see [Ticker]
++     */
++createjs.Ticker.prototype._handleRAF = function () {  }
++
++    /**
++     * Starts the tick. This is called automatically when the first listener is added.
++     *
++     * @see [Ticker]
++     */
++createjs.Ticker.prototype.init = function () {  }
++
++    /**
++     * @see [Ticker]
++     */
++createjs.Ticker.prototype._handleTimeout = function () {  }
++
++    /**
++     * Similar to getTime(), but returns the time on the most recent tick event object.
++     *
++     * @param runTime {Boolean} [runTime=false] If true, the runTime property will be returned instead of time.
++     * @see [Ticker]
++     * @returns {number} The time or runTime property from the most recent tick event or -1.
++     */
++createjs.Ticker.prototype.getEventTime = function (runTime) { return 0; }
++
++    /**
++     * Use the {{#crossLink "Ticker/paused:property"}}{{/crossLink}} property instead.
++     *
++     * @param {(boolean|null)} value 
++     * @see [Ticker]
++     */
++createjs.Ticker.prototype.setPaused = function (value) {  }
++
++    /**
++     * Use the {{#crossLink "Ticker/framerate:property"}}{{/crossLink}} property instead.
++     *
++     * @see [Ticker]
++     * @returns {(number|null)} 
++     */
++createjs.Ticker.prototype.getInterval = function () { return 0; }
++
++    /**
++     * Use the {{#crossLink "Ticker/paused:property"}}{{/crossLink}} property instead.
++     *
++     * @see [Ticker]
++     * @returns {(boolean|null)} 
++     */
++createjs.Ticker.prototype.getPaused = function () {  return null; }
++
++    /**
++     * @see [Ticker]
++     */
++createjs.Ticker.prototype._handleSynch = function () {  }
++
++    /**
++     * @see [Ticker]
++     */
++createjs.Ticker.prototype._tick = function () {  }
++
++    /**
++     * Returns the actual frames / ticks per second.
++     *
++     * @param {(number|null|undefined)} ticks The number of previous ticks over which to measure the actual frames / ticks per second. Defaults to the number of ticks per second.
++     * @see [Ticker]
++     * @returns {(number|null)} The actual frames / ticks per second. Depending on performance, this may differ from the target frames per second.
++     */
++createjs.Ticker.prototype.getMeasuredFPS = function (ticks) { return 0; }
++
++    /**
++     * Returns the number of milliseconds that have elapsed since Ticker was initialized via {{#crossLink "Ticker/init"}}.
++     * Returns -1 if Ticker has not been initialized. For example, you could use
++     * this in a time synchronized animation to determine the exact amount of time that has elapsed.
++     *
++     * @param {(boolean|null|undefined)} runTime If true only time elapsed while Ticker was not paused will be returned. If false, the value returned will be total time elapsed since the first tick event listener was added.
++     * @see [Ticker]
++     * @returns {(number|null)} Number of milliseconds that have elapsed since Ticker was initialized or -1.
++     */
++createjs.Ticker.prototype.getTime = function (runTime) { return 0; }
++
++    /**
++     * Returns the average time spent within a tick. This can vary significantly from the value provided by getMeasuredFPS
++     * because it only measures the time spent within the tick execution stack.
++     * 
++     * Example 1: With a target FPS of 20, getMeasuredFPS() returns 20fps, which indicates an average of 50ms between
++     * the end of one tick and the end of the next. However, getMeasuredTickTime() returns 15ms. This indicates that
++     * there may be up to 35ms of "idle" time between the end of one tick and the start of the next.
++     * 
++     * Example 2: With a target FPS of 30, getFPS() returns 10fps, which indicates an average of 100ms between the end of
++     * one tick and the end of the next. However, getMeasuredTickTime() returns 20ms. This would indicate that something
++     * other than the tick is using ~80ms (another script, DOM rendering, etc).
++     *
++     * @param {(number|null|undefined)} ticks The number of previous ticks over which to measure the average time spent in a tick. Defaults to the number of ticks per second. To get only the last tick's time, pass in 1.
++     * @see [Ticker]
++     * @returns {(number|null)} The average time spent in a tick in milliseconds.
++     */
++createjs.Ticker.prototype.getMeasuredTickTime = function (ticks) { return 0; }
++
++    /**
++     * Generated doc for missing method JSDoc.
++     *
++     * @see [Ticker]
++     */
++createjs.Ticker.prototype._getTime = function () {  }
++
++    /**
++     * Stops the Ticker and removes all listeners. Use init() to restart the createjs.Ticker.
++     *
++     * @see [Ticker]
++     */
++createjs.Ticker.prototype.reset = function () {  }
++
++    /**
++     * Returns the number of ticks that have been broadcast by createjs.Ticker.
++     *
++     * @param {(boolean|null)} pauseable Indicates whether to include ticks that would have been broadcast while Ticker was paused. If true only tick events broadcast while Ticker is not paused will be returned. If false, tick events that would have been broadcast while Ticker was paused will be included in the return value. The default value is false.
++     * @see [Ticker]
++     * @returns {(number|null)} of ticks that have been broadcast.
++     */
++createjs.Ticker.prototype.getTicks = function (pauseable) { return 0; }
++
++    /**
++     * Use the {{#crossLink "Ticker/interval:property"}}{{/crossLink}} property instead.
++     *
++     * @see [Ticker]
++     * @returns {(number|null)} 
++     */
++createjs.Ticker.prototype.getFPS = function () { return 0; }
++
++    /**
++     * Use the {{#crossLink "Ticker/interval:property"}}{{/crossLink}} property instead.
++     *
++     * @param {(number|null)} interval 
++     * @see [Ticker]
++     */
++createjs.Ticker.prototype.setInterval = function (interval) {  }
+ 
+-// namespace:
+-this.createjs = this.createjs||{};
+-
+-(function() {
+-	"use strict";
+-
+-
+-// constructor:
+-	/**
+-	 * The Ticker provides a centralized tick or heartbeat broadcast at a set interval. Listeners can subscribe to the tick
+-	 * event to be notified when a set time interval has elapsed.
+-	 *
+-	 * Note that the interval that the tick event is called is a target interval, and may be broadcast at a slower interval
+-	 * when under high CPU load. The Ticker class uses a static interface (ex. `Ticker.framerate = 30;`) and
+-	 * can not be instantiated.
+-	 *
+-	 * <h4>Example</h4>
+-	 *
+-	 *      createjs.Ticker.addEventListener("tick", handleTick);
+-	 *      function handleTick(event) {
+-	 *          // Actions carried out each tick (aka frame)
+-	 *          if (!event.paused) {
+-	 *              // Actions carried out when the Ticker is not paused.
+-	 *          }
+-	 *      }
+-	 *
+-	 * @class Ticker
+-	 * @uses EventDispatcher
+-	 * @static
+-	 **/
+-	function Ticker() {
+-		throw "Ticker cannot be instantiated.";
+-	}
+-
+-
+-// constants:
+-	/**
+-	 * In this mode, Ticker uses the requestAnimationFrame API, but attempts to synch the ticks to target framerate. It
+-	 * uses a simple heuristic that compares the time of the RAF return to the target time for the current frame and
+-	 * dispatches the tick when the time is within a certain threshold.
+-	 *
+-	 * This mode has a higher variance for time between frames than TIMEOUT, but does not require that content be time
+-	 * based as with RAF while gaining the benefits of that API (screen synch, background throttling).
+-	 *
+-	 * Variance is usually lowest for framerates that are a divisor of the RAF frequency. This is usually 60, so
+-	 * framerates of 10, 12, 15, 20, and 30 work well.
+-	 *
+-	 * Falls back on TIMEOUT if the requestAnimationFrame API is not supported.
+-	 * @property RAF_SYNCHED
+-	 * @static
+-	 * @type {String}
+-	 * @default "synched"
+-	 * @readonly
+-	 **/
+-	Ticker.RAF_SYNCHED = "synched";
+-
+-	/**
+-	 * In this mode, Ticker passes through the requestAnimationFrame heartbeat, ignoring the target framerate completely.
+-	 * Because requestAnimationFrame frequency is not deterministic, any content using this mode should be time based.
+-	 * You can leverage {{#crossLink "Ticker/getTime"}}{{/crossLink}} and the tick event object's "delta" properties
+-	 * to make this easier.
+-	 *
+-	 * Falls back on TIMEOUT if the requestAnimationFrame API is not supported.
+-	 * @property RAF
+-	 * @static
+-	 * @type {String}
+-	 * @default "raf"
+-	 * @readonly
+-	 **/
+-	Ticker.RAF = "raf";
+-
+-	/**
+-	 * In this mode, Ticker uses the setTimeout API. This provides predictable, adaptive frame timing, but does not
+-	 * provide the benefits of requestAnimationFrame (screen synch, background throttling).
+-	 * @property TIMEOUT
+-	 * @static
+-	 * @type {String}
+-	 * @default "timer"
+-	 * @readonly
+-	 **/
+-	Ticker.TIMEOUT = "timeout";
+-
+-
+-// static events:
+-	/**
+-	 * Dispatched each tick. The event will be dispatched to each listener even when the Ticker has been paused using
+-	 * {{#crossLink "Ticker/setPaused"}}{{/crossLink}}.
+-	 *
+-	 * <h4>Example</h4>
+-	 *
+-	 *      createjs.Ticker.addEventListener("tick", handleTick);
+-	 *      function handleTick(event) {
+-	 *          console.log("Paused:", event.paused, event.delta);
+-	 *      }
+-	 *
+-	 * @event tick
+-	 * @param {Object} target The object that dispatched the event.
+-	 * @param {String} type The event type.
+-	 * @param {Boolean} paused Indicates whether the ticker is currently paused.
+-	 * @param {Number} delta The time elapsed in ms since the last tick.
+-	 * @param {Number} time The total time in ms since Ticker was initialized.
+-	 * @param {Number} runTime The total time in ms that Ticker was not paused since it was initialized. For example,
+-	 * 	you could determine the amount of time that the Ticker has been paused since initialization with time-runTime.
+-	 * @since 0.6.0
+-	 */
+-
+-
+-// public static properties:
+-	/**
+-	 * Deprecated in favour of {{#crossLink "Ticker/timingMode"}}{{/crossLink}}, and will be removed in a future version. If true, timingMode will
+-	 * use {{#crossLink "Ticker/RAF_SYNCHED"}}{{/crossLink}} by default.
+-	 * @deprecated Deprecated in favour of {{#crossLink "Ticker/timingMode"}}{{/crossLink}}.
+-	 * @property useRAF
+-	 * @static
+-	 * @type {Boolean}
+-	 * @default false
+-	 **/
+-	Ticker.useRAF = false;
+-
+-	/**
+-	 * Specifies the timing api (setTimeout or requestAnimationFrame) and mode to use. See
+-	 * {{#crossLink "Ticker/TIMEOUT"}}{{/crossLink}}, {{#crossLink "Ticker/RAF"}}{{/crossLink}}, and
+-	 * {{#crossLink "Ticker/RAF_SYNCHED"}}{{/crossLink}} for mode details.
+-	 * @property timingMode
+-	 * @static
+-	 * @type {String}
+-	 * @default Ticker.TIMEOUT
+-	 **/
+-	Ticker.timingMode = null;
+-
+-	/**
+-	 * Specifies a maximum value for the delta property in the tick event object. This is useful when building time
+-	 * based animations and systems to prevent issues caused by large time gaps caused by background tabs, system sleep,
+-	 * alert dialogs, or other blocking routines. Double the expected frame duration is often an effective value
+-	 * (ex. maxDelta=50 when running at 40fps).
+-	 * 
+-	 * This does not impact any other values (ex. time, runTime, etc), so you may experience issues if you enable maxDelta
+-	 * when using both delta and other values.
+-	 * 
+-	 * If 0, there is no maximum.
+-	 * @property maxDelta
+-	 * @static
+-	 * @type {number}
+-	 * @default 0
+-	 */
+-	Ticker.maxDelta = 0;
+-	
+-	/**
+-	 * When the ticker is paused, all listeners will still receive a tick event, but the <code>paused</code> property of the event will be false.
+-	 * Also, while paused the `runTime` will not increase. See {{#crossLink "Ticker/tick:event"}}{{/crossLink}},
+-	 * {{#crossLink "Ticker/getTime"}}{{/crossLink}}, and {{#crossLink "Ticker/getEventTime"}}{{/crossLink}} for more info.
+-	 *
+-	 * <h4>Example</h4>
+-	 *
+-	 *      createjs.Ticker.addEventListener("tick", handleTick);
+-	 *      createjs.Ticker.paused = true;
+-	 *      function handleTick(event) {
+-	 *          console.log(event.paused,
+-	 *          	createjs.Ticker.getTime(false),
+-	 *          	createjs.Ticker.getTime(true));
+-	 *      }
+-	 *
+-	 * @property paused
+-	 * @static
+-	 * @type {Boolean}
+-	 * @default false
+-	 **/
+-	Ticker.paused = false;
+-
+-
+-// mix-ins:
+-	// EventDispatcher methods:
+-	Ticker.removeEventListener = null;
+-	Ticker.removeAllEventListeners = null;
+-	Ticker.dispatchEvent = null;
+-	Ticker.hasEventListener = null;
+-	Ticker._listeners = null;
+-	createjs.EventDispatcher.initialize(Ticker); // inject EventDispatcher methods.
+-	Ticker._addEventListener = Ticker.addEventListener;
+-	Ticker.addEventListener = function() {
+-		!Ticker._inited&&Ticker.init();
+-		return Ticker._addEventListener.apply(Ticker, arguments);
+-	};
+-
+-
+-// private static properties:
+-	/**
+-	 * @property _inited
+-	 * @static
+-	 * @type {Boolean}
+-	 * @protected
+-	 **/
+-	Ticker._inited = false;
+-
+-	/**
+-	 * @property _startTime
+-	 * @static
+-	 * @type {Number}
+-	 * @protected
+-	 **/
+-	Ticker._startTime = 0;
+-
+-	/**
+-	 * @property _pausedTime
+-	 * @static
+-	 * @type {Number}
+-	 * @protected
+-	 **/
+-	Ticker._pausedTime=0;
+-
+-	/**
+-	 * The number of ticks that have passed
+-	 * @property _ticks
+-	 * @static
+-	 * @type {Number}
+-	 * @protected
+-	 **/
+-	Ticker._ticks = 0;
+-
+-	/**
+-	 * The number of ticks that have passed while Ticker has been paused
+-	 * @property _pausedTicks
+-	 * @static
+-	 * @type {Number}
+-	 * @protected
+-	 **/
+-	Ticker._pausedTicks = 0;
+-
+-	/**
+-	 * @property _interval
+-	 * @static
+-	 * @type {Number}
+-	 * @protected
+-	 **/
+-	Ticker._interval = 50;
+-
+-	/**
+-	 * @property _lastTime
+-	 * @static
+-	 * @type {Number}
+-	 * @protected
+-	 **/
+-	Ticker._lastTime = 0;
+-
+-	/**
+-	 * @property _times
+-	 * @static
+-	 * @type {Array}
+-	 * @protected
+-	 **/
+-	Ticker._times = null;
+-
+-	/**
+-	 * @property _tickTimes
+-	 * @static
+-	 * @type {Array}
+-	 * @protected
+-	 **/
+-	Ticker._tickTimes = null;
+-
+-	/**
+-	 * Stores the timeout or requestAnimationFrame id.
+-	 * @property _timerId
+-	 * @static
+-	 * @type {Number}
+-	 * @protected
+-	 **/
+-	Ticker._timerId = null;
+-	
+-	/**
+-	 * True if currently using requestAnimationFrame, false if using setTimeout. This may be different than timingMode
+-	 * if that property changed and a tick hasn't fired.
+-	 * @property _raf
+-	 * @static
+-	 * @type {Boolean}
+-	 * @protected
+-	 **/
+-	Ticker._raf = true;
+-	
+-
+-// static getter / setters:
+-	/**
+-	 * Use the {{#crossLink "Ticker/interval:property"}}{{/crossLink}} property instead.
+-	 * @method setInterval
+-	 * @static
+-	 * @param {Number} interval
+-	 * @deprecated
+-	 **/
+-	Ticker.setInterval = function(interval) {
+-		Ticker._interval = interval;
+-		if (!Ticker._inited) { return; }
+-		Ticker._setupTick();
+-	};
+-
+-	/**
+-	 * Use the {{#crossLink "Ticker/framerate:property"}}{{/crossLink}} property instead.
+-	 * @method getInterval
+-	 * @static
+-	 * @return {Number}
+-	 * @deprecated
+-	 **/
+-	Ticker.getInterval = function() {
+-		return Ticker._interval;
+-	};
+-
+-	/**
+-	 * Use the {{#crossLink "Ticker/framerate:property"}}{{/crossLink}} property instead.
+-	 * @method setFPS
+-	 * @static
+-	 * @param {Number} value
+-	 * @deprecated
+-	 **/
+-	Ticker.setFPS = function(value) {
+-		Ticker.setInterval(1000/value);
+-	};
+-
+-	/**
+-	 * Use the {{#crossLink "Ticker/interval:property"}}{{/crossLink}} property instead.
+-	 * @method getFPS
+-	 * @static
+-	 * @return {Number}
+-	 * @deprecated
+-	 **/
+-	Ticker.getFPS = function() {
+-		return 1000/Ticker._interval;
+-	};
+-
+-	/**
+-	 * Indicates the target time (in milliseconds) between ticks. Default is 50 (20 FPS).
+-	 * Note that actual time between ticks may be more than specified depending on CPU load.
+-	 * This property is ignored if the ticker is using the `RAF` timing mode.
+-	 * @property interval
+-	 * @static
+-	 * @type {Number}
+-	 **/
+-	 
+-	/**
+-	 * Indicates the target frame rate in frames per second (FPS). Effectively just a shortcut to `interval`, where
+-	 * `framerate == 1000/interval`.
+-	 * @property framerate
+-	 * @static
+-	 * @type {Number}
+-	 **/
+-	try {
+-		Object.defineProperties(Ticker, {
+-			interval: { get: Ticker.getInterval, set: Ticker.setInterval },
+-			framerate: { get: Ticker.getFPS, set: Ticker.setFPS }
+-		});
+-	} catch (e) { console.log(e); }
+-
+-
+-// public static methods:
+-	/**
+-	 * Starts the tick. This is called automatically when the first listener is added.
+-	 * @method init
+-	 * @static
+-	 **/
+-	Ticker.init = function() {
+-		if (Ticker._inited) { return; }
+-		Ticker._inited = true;
+-		Ticker._times = [];
+-		Ticker._tickTimes = [];
+-		Ticker._startTime = Ticker._getTime();
+-		Ticker._times.push(Ticker._lastTime = 0);
+-		Ticker.interval = Ticker._interval;
+-	};
+-	
+-	/**
+-	 * Stops the Ticker and removes all listeners. Use init() to restart the Ticker.
+-	 * @method reset
+-	 * @static
+-	 **/
+-	Ticker.reset = function() {
+-		if (Ticker._raf) {
+-			var f = window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || window.oCancelAnimationFrame || window.msCancelAnimationFrame;
+-			f&&f(Ticker._timerId);
+-		} else {
+-			clearTimeout(Ticker._timerId);
+-		}
+-		Ticker.removeAllEventListeners("tick");
+-		Ticker._timerId = Ticker._times = Ticker._tickTimes = null;
+-		Ticker._startTime = Ticker._lastTime = Ticker._ticks = 0;
+-		Ticker._inited = false;
+-	};
+-
+-	/**
+-	 * Returns the average time spent within a tick. This can vary significantly from the value provided by getMeasuredFPS
+-	 * because it only measures the time spent within the tick execution stack. 
+-	 * 
+-	 * Example 1: With a target FPS of 20, getMeasuredFPS() returns 20fps, which indicates an average of 50ms between 
+-	 * the end of one tick and the end of the next. However, getMeasuredTickTime() returns 15ms. This indicates that 
+-	 * there may be up to 35ms of "idle" time between the end of one tick and the start of the next.
+-	 *
+-	 * Example 2: With a target FPS of 30, getFPS() returns 10fps, which indicates an average of 100ms between the end of
+-	 * one tick and the end of the next. However, getMeasuredTickTime() returns 20ms. This would indicate that something
+-	 * other than the tick is using ~80ms (another script, DOM rendering, etc).
+-	 * @method getMeasuredTickTime
+-	 * @static
+-	 * @param {Number} [ticks] The number of previous ticks over which to measure the average time spent in a tick.
+-	 * Defaults to the number of ticks per second. To get only the last tick's time, pass in 1.
+-	 * @return {Number} The average time spent in a tick in milliseconds.
+-	 **/
+-	Ticker.getMeasuredTickTime = function(ticks) {
+-		var ttl=0, times=Ticker._tickTimes;
+-		if (!times || times.length < 1) { return -1; }
+-
+-		// by default, calculate average for the past ~1 second:
+-		ticks = Math.min(times.length, ticks||(Ticker.getFPS()|0));
+-		for (var i=0; i<ticks; i++) { ttl += times[i]; }
+-		return ttl/ticks;
+-	};
+-
+-	/**
+-	 * Returns the actual frames / ticks per second.
+-	 * @method getMeasuredFPS
+-	 * @static
+-	 * @param {Number} [ticks] The number of previous ticks over which to measure the actual frames / ticks per second.
+-	 * Defaults to the number of ticks per second.
+-	 * @return {Number} The actual frames / ticks per second. Depending on performance, this may differ
+-	 * from the target frames per second.
+-	 **/
+-	Ticker.getMeasuredFPS = function(ticks) {
+-		var times = Ticker._times;
+-		if (!times || times.length < 2) { return -1; }
+-
+-		// by default, calculate fps for the past ~1 second:
+-		ticks = Math.min(times.length-1, ticks||(Ticker.getFPS()|0));
+-		return 1000/((times[0]-times[ticks])/ticks);
+-	};
+-
+-	/**
+-	 * Use the {{#crossLink "Ticker/paused:property"}}{{/crossLink}} property instead.
+-	 * @method setPaused
+-	 * @static
+-	 * @param {Boolean} value
+-	 * @deprecated
+-	 **/
+-	Ticker.setPaused = function(value) {
+-		// TODO: deprecated.
+-		Ticker.paused = value;
+-	};
+-
+-	/**
+-	 * Use the {{#crossLink "Ticker/paused:property"}}{{/crossLink}} property instead.
+-	 * @method getPaused
+-	 * @static
+-	 * @return {Boolean}
+-	 * @deprecated
+-	 **/
+-	Ticker.getPaused = function() {
+-		// TODO: deprecated.
+-		return Ticker.paused;
+-	};
+-
+-	/**
+-	 * Returns the number of milliseconds that have elapsed since Ticker was initialized via {{#crossLink "Ticker/init"}}.
+-	 * Returns -1 if Ticker has not been initialized. For example, you could use
+-	 * this in a time synchronized animation to determine the exact amount of time that has elapsed.
+-	 * @method getTime
+-	 * @static
+-	 * @param {Boolean} [runTime=false] If true only time elapsed while Ticker was not paused will be returned.
+-	 * If false, the value returned will be total time elapsed since the first tick event listener was added.
+-	 * @return {Number} Number of milliseconds that have elapsed since Ticker was initialized or -1.
+-	 **/
+-	Ticker.getTime = function(runTime) {
+-		return Ticker._startTime ? Ticker._getTime() - (runTime ? Ticker._pausedTime : 0) : -1;
+-	};
+-
+-	/**
+-	 * Similar to getTime(), but returns the time on the most recent tick event object.
+-	 * @method getEventTime
+-	 * @static
+-	 * @param runTime {Boolean} [runTime=false] If true, the runTime property will be returned instead of time.
+-	 * @returns {number} The time or runTime property from the most recent tick event or -1.
+-	 */
+-	Ticker.getEventTime = function(runTime) {
+-		return Ticker._startTime ? (Ticker._lastTime || Ticker._startTime) - (runTime ? Ticker._pausedTime : 0) : -1;
+-	};
+-	
+-	/**
+-	 * Returns the number of ticks that have been broadcast by Ticker.
+-	 * @method getTicks
+-	 * @static
+-	 * @param {Boolean} pauseable Indicates whether to include ticks that would have been broadcast
+-	 * while Ticker was paused. If true only tick events broadcast while Ticker is not paused will be returned.
+-	 * If false, tick events that would have been broadcast while Ticker was paused will be included in the return
+-	 * value. The default value is false.
+-	 * @return {Number} of ticks that have been broadcast.
+-	 **/
+-	Ticker.getTicks = function(pauseable) {
+-		return  Ticker._ticks - (pauseable ? Ticker._pausedTicks : 0);
+-	};
+-
+-
+-// private static methods:
+-	/**
+-	 * @method _handleSynch
+-	 * @static
+-	 * @protected
+-	 **/
+-	Ticker._handleSynch = function() {
+-		Ticker._timerId = null;
+-		Ticker._setupTick();
+-
+-		// run if enough time has elapsed, with a little bit of flexibility to be early:
+-		if (Ticker._getTime() - Ticker._lastTime >= (Ticker._interval-1)*0.97) {
+-			Ticker._tick();
+-		}
+-	};
+-
+-	/**
+-	 * @method _handleRAF
+-	 * @static
+-	 * @protected
+-	 **/
+-	Ticker._handleRAF = function() {
+-		Ticker._timerId = null;
+-		Ticker._setupTick();
+-		Ticker._tick();
+-	};
+-
+-	/**
+-	 * @method _handleTimeout
+-	 * @static
+-	 * @protected
+-	 **/
+-	Ticker._handleTimeout = function() {
+-		Ticker._timerId = null;
+-		Ticker._setupTick();
+-		Ticker._tick();
+-	};
+-
+-	/**
+-	 * @method _setupTick
+-	 * @static
+-	 * @protected
+-	 **/
+-	Ticker._setupTick = function() {
+-		if (Ticker._timerId != null) { return; } // avoid duplicates
+-
+-		var mode = Ticker.timingMode||(Ticker.useRAF&&Ticker.RAF_SYNCHED);
+-		if (mode == Ticker.RAF_SYNCHED || mode == Ticker.RAF) {
+-			var f = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame;
+-			if (f) {
+-				Ticker._timerId = f(mode == Ticker.RAF ? Ticker._handleRAF : Ticker._handleSynch);
+-				Ticker._raf = true;
+-				return;
+-			}
+-		}
+-		Ticker._raf = false;
+-		Ticker._timerId = setTimeout(Ticker._handleTimeout, Ticker._interval);
+-	};
+-
+-	/**
+-	 * @method _tick
+-	 * @static
+-	 * @protected
+-	 **/
+-	Ticker._tick = function() {
+-		var paused = Ticker.paused;
+-		var time = Ticker._getTime();
+-		var elapsedTime = time-Ticker._lastTime;
+-		Ticker._lastTime = time;
+-		Ticker._ticks++;
+-		
+-		if (paused) {
+-			Ticker._pausedTicks++;
+-			Ticker._pausedTime += elapsedTime;
+-		}
+-		
+-		if (Ticker.hasEventListener("tick")) {
+-			var event = new createjs.Event("tick");
+-			var maxDelta = Ticker.maxDelta;
+-			event.delta = (maxDelta && elapsedTime > maxDelta) ? maxDelta : elapsedTime;
+-			event.paused = paused;
+-			event.time = time;
+-			event.runTime = time-Ticker._pausedTime;
+-			Ticker.dispatchEvent(event);
+-		}
+-		
+-		Ticker._tickTimes.unshift(Ticker._getTime()-time);
+-		while (Ticker._tickTimes.length > 100) { Ticker._tickTimes.pop(); }
+-
+-		Ticker._times.unshift(time);
+-		while (Ticker._times.length > 100) { Ticker._times.pop(); }
+-	};
+-
+-	/**
+-	 * @method _getTime
+-	 * @static
+-	 * @protected
+-	 **/
+-	var now = window.performance && (performance.now || performance.mozNow || performance.msNow || performance.oNow || performance.webkitNow);
+-	Ticker._getTime = function() {
+-		return ((now&&now.call(performance))||(new Date().getTime())) - Ticker._startTime;
+-	};
+-
+-
+-	createjs.Ticker = Ticker;
+-}());
+diff --git a/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/utils/extend.js b/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/utils/extend.js
+index 690de15..9bf84cb 100644
+--- a/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/utils/extend.js
++++ b/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/utils/extend.js
+@@ -31,7 +31,7 @@
+  */
+ 
+ // namespace:
+-this.createjs = this.createjs||{};
++
+ 
+ /**
+  * @class Utility Methods
+@@ -52,11 +52,11 @@ this.createjs = this.createjs||{};
+  *
+  * @method extend
+  * @param {Function} subclass The subclass.
+- * @param {Function} superclass The superclass to extend.
++ * @param {Function} superclass The superclass to createjs.extend.
+  * @return {Function} Returns the subclass's new prototype.
+  */
+ createjs.extend = function(subclass, superclass) {
+-	"use strict";
++
+ 
+ 	function o() { this.constructor = subclass; }
+ 	o.prototype = superclass.prototype;
+diff --git a/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/utils/indexOf.js b/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/utils/indexOf.js
+index 9719d4d..18b0bf0 100644
+--- a/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/utils/indexOf.js
++++ b/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/utils/indexOf.js
+@@ -31,7 +31,7 @@
+  */
+ 
+ // namespace:
+-this.createjs = this.createjs||{};
++
+ 
+ /**
+  * @class Utility Methods
+@@ -45,11 +45,11 @@ this.createjs = this.createjs||{};
+  *
+  * @method indexOf
+  * @param {Array} array Array to search for searchElement
+- * @param searchElement Element to find in array.
++ * @param {Object} searchElement Element to find in array.
+  * @return {Number} The first index of searchElement in array.
+  */
+ createjs.indexOf = function (array, searchElement){
+-	"use strict";
++
+ 
+ 	for (var i = 0,l=array.length; i < l; i++) {
+ 		if (searchElement === array[i]) {
+diff --git a/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/utils/promote.js b/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/utils/promote.js
+index d09a381..4cdf289 100644
+--- a/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/utils/promote.js
++++ b/externs/createjs/target/downloads/EaselJS-0.8.0/src/createjs/utils/promote.js
+@@ -31,7 +31,7 @@
+  */
+ 
+ // namespace:
+-this.createjs = this.createjs||{};
++
+ 
+ /**
+  * @class Utility Methods
+@@ -75,7 +75,7 @@ this.createjs = this.createjs||{};
+  * @return {Function} Returns the subclass.
+  */
+ createjs.promote = function(subclass, prefix) {
+-	"use strict";
++
+ 
+ 	var subP = subclass.prototype, supP = (Object.getPrototypeOf&&Object.getPrototypeOf(subP))||subP.__proto__;
+ 	if (supP) {
+diff --git a/externs/createjs/target/downloads/EaselJS-0.8.0/src/easeljs/display/Bitmap.js b/externs/createjs/target/downloads/EaselJS-0.8.0/src/easeljs/display/Bitmap.js
+index eecac1a..99c556d 100644
+--- a/externs/createjs/target/downloads/EaselJS-0.8.0/src/easeljs/display/Bitmap.js
++++ b/externs/createjs/target/downloads/EaselJS-0.8.0/src/easeljs/display/Bitmap.js
+@@ -1,214 +1,34 @@
+-/*
+-* Bitmap
+-* Visit http://createjs.com/ for documentation, updates and examples.
+-*
+-* Copyright (c) 2010 gskinner.com, inc.
+-* 
+-* Permission is hereby granted, free of charge, to any person
+-* obtaining a copy of this software and associated documentation
+-* files (the "Software"), to deal in the Software without
+-* restriction, including without limitation the rights to use,
+-* copy, modify, merge, publish, distribute, sublicense, and/or sell
+-* copies of the Software, and to permit persons to whom the
+-* Software is furnished to do so, subject to the following
+-* conditions:
+-* 
+-* The above copyright notice and this permission notice shall be
+-* included in all copies or substantial portions of the Software.
+-* 
+-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+-* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+-* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+-* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+-* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+-* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+-* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+-* OTHER DEALINGS IN THE SOFTWARE.
+-*/
+-
++/** @fileoverview Auto-generated Externs files
++ * @externs
++ */
+ /**
+-* @module EaselJS
+-*/
++ * A Bitmap represents an Image, Canvas, or Video in the display list. A Bitmap can be instantiated using an existing
++ * HTML element, or a string.
++ * 
++ * <h4>Example</h4>
++ * 
++ * var bitmap = new createjs.Bitmap("imagePath.jpg");
++ * 
++ * <strong>Notes:</strong>
++ * <ol>
++ * <li>When a string path or image tag that is not yet loaded is used, the stage may need to be redrawn before it
++ * will be displayed.</li>
++ * <li>Bitmaps with an SVG source currently will not respect an alpha value other than 0 or 1. To get around this,
++ * the Bitmap can be cached.</li>
++ * <li>Bitmaps with an SVG source will taint the canvas with cross-origin data, which prevents interactivity. This
++ * happens in all browsers except recent Firefox builds.</li>
++ * <li>Images loaded cross-origin will throw cross-origin security errors when interacted with using a mouse, using
++ * methods such as `getObjectUnderPoint`, or using filters, or caching. You can get around this by setting
++ * `crossOrigin` flags on your images before passing them to EaselJS, eg: `img.crossOrigin="Anonymous";`</li>
++ * </ol>
++ *
++ * @see [Bitmap]
++ * @constructor  * @extends createjs.DisplayObject
++ */
++createjs.Bitmap = function (imageOrUri) {}
+ 
+-// namespace:
+-this.createjs = this.createjs||{};
+ 
+-(function() {
+-	
+-	/**
+-	 * A Bitmap represents an Image, Canvas, or Video in the display list. A Bitmap can be instantiated using an existing
+-	 * HTML element, or a string.
+-	 *
+-	 * <h4>Example</h4>
+-	 *
+-	 *      var bitmap = new createjs.Bitmap("imagePath.jpg");
+-	 *
+-	 * <strong>Notes:</strong>
+-	 * <ol>
+-	 *     <li>When a string path or image tag that is not yet loaded is used, the stage may need to be redrawn before it
+-	 *      will be displayed.</li>
+-	 *     <li>Bitmaps with an SVG source currently will not respect an alpha value other than 0 or 1. To get around this,
+-	 *     the Bitmap can be cached.</li>
+-	 *     <li>Bitmaps with an SVG source will taint the canvas with cross-origin data, which prevents interactivity. This
+-	 *     happens in all browsers except recent Firefox builds.</li>
+-	 *     <li>Images loaded cross-origin will throw cross-origin security errors when interacted with using a mouse, using
+-	 *     methods such as `getObjectUnderPoint`, or using filters, or caching. You can get around this by setting
+-	 *     `crossOrigin` flags on your images before passing them to EaselJS, eg: `img.crossOrigin="Anonymous";`</li>
+-	 * </ol>
+-	 *
+-	 * @class Bitmap
+-	 * @extends DisplayObject
+-	 * @constructor
+-	 * @param {Image | HTMLCanvasElement | HTMLVideoElement | String} imageOrUri The source object or URI to an image to
+-	 * display. This can be either an Image, Canvas, or Video object, or a string URI to an image file to load and use.
+-	 * If it is a URI, a new Image object will be constructed and assigned to the .image property.
+-	 **/
+-	function Bitmap(imageOrUri) {
+-		this.DisplayObject_constructor();
+-		
+-		
+-	// public properties:
+-		/**
+-		 * The image to render. This can be an Image, a Canvas, or a Video. Not all browsers (especially
+-		 * mobile browsers) support drawing video to a canvas.
+-		 * @property image
+-		 * @type Image | HTMLCanvasElement | HTMLVideoElement
+-		 **/
+-		if (typeof imageOrUri == "string") {
+-			this.image = document.createElement("img");
+-			this.image.src = imageOrUri;
+-		} else {
+-			this.image = imageOrUri;
+-		}
+-	
+-		/**
+-		 * Specifies an area of the source image to draw. If omitted, the whole image will be drawn.
+-		 * Note that video sources must have a width / height set to work correctly with `sourceRect`.
+-		 * @property sourceRect
+-		 * @type Rectangle
+-		 * @default null
+-		 */
+-		this.sourceRect = null;
+-	}
+-	var p = createjs.extend(Bitmap, createjs.DisplayObject);
+-	
+-	
+-// public methods:
+-	/**
+-	 * Constructor alias for backwards compatibility. This method will be removed in future versions.
+-	 * Subclasses should be updated to use {{#crossLink "Utility Methods/extends"}}{{/crossLink}}.
+-	 * @method initialize
+-	 * @deprecated in favour of `createjs.promote()`
+-	 **/
+-	p.initialize = Bitmap; // TODO: deprecated.
+ 
+-	/**
+-	 * Returns true or false indicating whether the display object would be visible if drawn to a canvas.
+-	 * This does not account for whether it would be visible within the boundaries of the stage.
+-	 *
+-	 * NOTE: This method is mainly for internal use, though it may be useful for advanced uses.
+-	 * @method isVisible
+-	 * @return {Boolean} Boolean indicating whether the display object would be visible if drawn to a canvas
+-	 **/
+-	p.isVisible = function() {
+-		var hasContent = this.cacheCanvas || (this.image && (this.image.complete || this.image.getContext || this.image.readyState >= 2));
+-		return !!(this.visible && this.alpha > 0 && this.scaleX != 0 && this.scaleY != 0 && hasContent);
+-	};
+ 
+-	/**
+-	 * Draws the display object into the specified context ignoring its visible, alpha, shadow, and transform.
+-	 * Returns true if the draw was handled (useful for overriding functionality).
+-	 *
+-	 * NOTE: This method is mainly for internal use, though it may be useful for advanced uses.
+-	 * @method draw
+-	 * @param {CanvasRenderingContext2D} ctx The canvas 2D context object to draw into.
+-	 * @param {Boolean} [ignoreCache=false] Indicates whether the draw operation should ignore any current cache.
+-	 * For example, used for drawing the cache (to prevent it from simply drawing an existing cache back
+-	 * into itself).
+-	 * @return {Boolean}
+-	 **/
+-	p.draw = function(ctx, ignoreCache) {
+-		if (this.DisplayObject_draw(ctx, ignoreCache) || !this.image) { return true; }
+-		var img = this.image, rect = this.sourceRect;
+-		if (rect) {
+-			// some browsers choke on out of bound values, so we'll fix them:
+-			var x1 = rect.x, y1 = rect.y, x2 = x1 + rect.width, y2 = y1 + rect.height, x = 0, y = 0, w = img.width, h = img.height;
+-			if (x1 < 0) { x -= x1; x1 = 0; }
+-			if (x2 > w) { x2 = w; }
+-			if (y1 < 0) { y -= y1; y1 = 0; }
+-			if (y2 > h) { y2 = h; }
+-			ctx.drawImage(img, x1, y1, x2-x1, y2-y1, x, y, x2-x1, y2-y1);
+-		} else {
+-			ctx.drawImage(img, 0, 0);
+-		}
+-		return true;
+-	};
+-	
+-	//Note, the doc sections below document using the specified APIs (from DisplayObject)  from
+-	//Bitmap. This is why they have no method implementations.
+-	
+-	/**
+-	 * Because the content of a Bitmap is already in a simple format, cache is unnecessary for Bitmap instances.
+-	 * You should <b>not</b> cache Bitmap instances as it can degrade performance.
+-	 *
+-	 * <strong>However: If you want to use a filter on a Bitmap, you <em>MUST</em> cache it, or it will not work.</strong>
+-	 * To see the API for caching, please visit the DisplayObject {{#crossLink "DisplayObject/cache"}}{{/crossLink}}
+-	 * method.
+-	 * @method cache
+-	 **/
+-	
+-	/**
+-	 * Because the content of a Bitmap is already in a simple format, cache is unnecessary for Bitmap instances.
+-	 * You should <b>not</b> cache Bitmap instances as it can degrade performance.
+-	 *
+-	 * <strong>However: If you want to use a filter on a Bitmap, you <em>MUST</em> cache it, or it will not work.</strong>
+-	 * To see the API for caching, please visit the DisplayObject {{#crossLink "DisplayObject/cache"}}{{/crossLink}}
+-	 * method.
+-	 * @method updateCache
+-	 **/
+-	
+-	/**
+-	 * Because the content of a Bitmap is already in a simple format, cache is unnecessary for Bitmap instances.
+-	 * You should <b>not</b> cache Bitmap instances as it can degrade performance.
+-	 *
+-	 * <strong>However: If you want to use a filter on a Bitmap, you <em>MUST</em> cache it, or it will not work.</strong>
+-	 * To see the API for caching, please visit the DisplayObject {{#crossLink "DisplayObject/cache"}}{{/crossLink}}
+-	 * method.
+-	 * @method uncache
+-	 **/
+ 
+-	/**
+-	 * Docced in superclass.
+-	 */
+-	p.getBounds = function() {
+-		var rect = this.DisplayObject_getBounds();
+-		if (rect) { return rect; }
+-		var o = this.sourceRect || this.image;
+-		var hasContent = (this.image && (this.image.complete || this.image.getContext || this.image.readyState >= 2));
+-		return hasContent ? this._rectangle.setValues(0, 0, o.width, o.height) : null;
+-	};
+-	
+-	/**
+-	 * Returns a clone of the Bitmap instance.
+-	 * @method clone
+-	 * @return {Bitmap} a clone of the Bitmap instance.
+-	 **/
+-	p.clone = function() {
+-		var o = new Bitmap(this.image);
+-		if (this.sourceRect) { o.sourceRect = this.sourceRect.clone(); }
+-		this._cloneProps(o);
+-		return o;
+-	};
+-	
+-	/**
+-	 * Returns a string representation of this object.
+-	 * @method toString
+-	 * @return {String} a string representation of the instance.
+-	 **/
+-	p.toString = function() {
+-		return "[Bitmap (name="+  this.name +")]";
+-	};
+ 
+-	
+-	createjs.Bitmap = createjs.promote(Bitmap, "DisplayObject");
+-}());
+diff --git a/externs/createjs/target/downloads/EaselJS-0.8.0/src/easeljs/display/BitmapText.js b/externs/createjs/target/downloads/EaselJS-0.8.0/src/easeljs/display/BitmapText.js
+index bad6f1c..60b3c83 100644
+--- a/externs/createjs/target/downloads/EaselJS-0.8.0/src/easeljs/display/BitmapText.js
++++ b/externs/createjs/target/downloads/EaselJS-0.8.0/src/easeljs/display/BitmapText.js
+@@ -1,343 +1,57 @@
+-/*
+-* BitmapText
+-* Visit http://createjs.com/ for documentation, updates and examples.
+-*
+-* Copyright (c) 2010 gskinner.com, inc.
+-*
+-* Permission is hereby granted, free of charge, to any person
+-* obtaining a copy of this software and associated documentation
+-* files (the "Software"), to deal in the Software without
+-* restriction, including without limitation the rights to use,
+-* copy, modify, merge, publish, distribute, sublicense, and/or sell
+-* copies of the Software, and to permit persons to whom the
+-* Software is furnished to do so, subject to the following
+-* conditions:
+-*
+-* The above copyright notice and this permission notice shall be
+-* included in all copies or substantial portions of the Software.
+-*
+-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+-* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+-* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+-* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+-* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+-* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+-* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+-* OTHER DEALINGS IN THE SOFTWARE.
+-*/
++/** @fileoverview Auto-generated Externs files
++ * @externs
++ */
++/**
++ * Displays text using bitmap glyphs defined in a sprite sheet. Multi-line text is supported
++ * using new line characters, but automatic wrapping is not supported. See the
++ * {{#crossLink "BitmapText/spriteSheet:property"}}{{/crossLink}}
++ * property for more information on defining glyphs.
++ * 
++ * <strong>Important:</strong> BitmapText extends Container, but is not designed to be used as one.
++ * As such, methods like addChild and removeChild are disabled.
++ *
++ * @see [BitmapText]
++ * @constructor  * @extends createjs.DisplayObject
++ */
++createjs.BitmapText = function (text, spriteSheet) {}
++
++    /**
++     * @param {(createjs.SpriteSheet|null)} ss 
++     * @see [BitmapText]
++     * @returns {(number|null)} 
++     */
++createjs.BitmapText._getLineHeight = function (ss) { return 0; }
++
++
++
++
++    /**
++     * @param {(createjs.SpriteSheet|null)} ss 
++     * @see [BitmapText]
++     * @returns {(number|null)} 
++     */
++createjs.BitmapText._getSpaceWidth = function (ss) { return 0; }
++
++
++    /**
++     * @param {(string|null)} character 
++     * @param {(createjs.SpriteSheet|null)} spriteSheet 
++     * @see [BitmapText]
++     * @returns {(number|null)} 
++     */
++createjs.BitmapText._getFrameIndex = function (character, spriteSheet) { return 0; }
++
++
++    /**
++     * @param {(string|null)} character 
++     * @param {(createjs.SpriteSheet|null)} spriteSheet 
++     * @see [BitmapText]
++     * @returns {(Object|null)} 
++     */
++createjs.BitmapText._getFrame = function (character, spriteSheet) {  return null; }
++
++    /**
++     * @see [BitmapText]
++     */
++createjs.BitmapText._updateText = function () {  }
+ 
+-this.createjs = this.createjs || {};
+-
+-(function () {
+-	"use strict";
+-
+-
+-// constructor:
+-	/**
+-	 * Displays text using bitmap glyphs defined in a sprite sheet. Multi-line text is supported
+-	 * using new line characters, but automatic wrapping is not supported. See the 
+-	 * {{#crossLink "BitmapText/spriteSheet:property"}}{{/crossLink}}
+-	 * property for more information on defining glyphs.
+-	 * 
+-	 * <strong>Important:</strong> BitmapText extends Container, but is not designed to be used as one.
+-	 * As such, methods like addChild and removeChild are disabled.
+-	 * @class BitmapText
+-	 * @extends DisplayObject
+-	 * @param {String} [text=""] The text to display.
+-	 * @param {SpriteSheet} [spriteSheet=null] The spritesheet that defines the character glyphs.
+-	 * @constructor
+-	 **/
+-	function BitmapText(text, spriteSheet) {
+-		this.Container_constructor();
+-		
+-		
+-	// public properties:
+-		/**
+-		 * The text to display.
+-		 * @property text
+-		 * @type String
+-		 * @default ""
+-		 **/
+-		this.text = text||"";
+-		
+-		/**
+-		 * A SpriteSheet instance that defines the glyphs for this bitmap text. Each glyph/character
+-		 * should have a single frame animation defined in the sprite sheet named the same as
+-		 * corresponding character. For example, the following animation definition:
+-		 *
+-		 * 		"A": {frames: [0]}
+-		 *
+-		 * would indicate that the frame at index 0 of the spritesheet should be drawn for the "A" character. The short form
+-		 * is also acceptable:
+-		 * 
+-		 * 		"A": 0
+-		 *
+-		 * Note that if a character in the text is not found in the sprite sheet, it will also
+-		 * try to use the alternate case (upper or lower).
+-		 *
+-		 * See SpriteSheet for more information on defining sprite sheet data.
+-		 * @property spriteSheet
+-		 * @type String
+-		 * @default null
+-		 **/
+-		this.spriteSheet = spriteSheet;
+-	
+-		/**
+-		 * The height of each line of text. If 0, then it will use a line height calculated
+-		 * by checking for the height of the "1", "T", or "L" character (in that order). If
+-		 * those characters are not defined, it will use the height of the first frame of the
+-		 * sprite sheet.
+-		 * @property lineHeight
+-		 * @type Number
+-		 * @default 0
+-		 **/
+-		this.lineHeight = 0;
+-	
+-		/**
+-		 * This spacing (in pixels) will be added after each character in the output.
+-		 * @property letterSpacing
+-		 * @type Number
+-		 * @default 0
+-		 **/
+-		this.letterSpacing = 0;
+-	
+-		/**
+-		 * If a space character is not defined in the sprite sheet, then empty pixels equal to
+-		 * spaceWidth will be inserted instead. If 0, then it will use a value calculated
+-		 * by checking for the width of the "1", "l", "E", or "A" character (in that order). If
+-		 * those characters are not defined, it will use the width of the first frame of the
+-		 * sprite sheet.
+-		 * @property spaceWidth
+-		 * @type Number
+-		 * @default 0
+-		 **/
+-		this.spaceWidth = 0;
+-		
+-		
+-	// private properties:
+-	 	/**
+-		 * @property _oldProps
+-		 * @type Object
+-		 * @protected
+-		 **/
+-		this._oldProps = {text:0,spriteSheet:0,lineHeight:0,letterSpacing:0,spaceWidth:0};
+-	}
+-	var p = createjs.extend(BitmapText, createjs.Container);
+-
+-	/**
+-	 * <strong>REMOVED</strong>. Removed in favor of using `MySuperClass_constructor`.
+-	 * See {{#crossLink "Utility Methods/extend"}}{{/crossLink}} and {{#crossLink "Utility Methods/promote"}}{{/crossLink}}
+-	 * for details.
+-	 *
+-	 * There is an inheritance tutorial distributed with EaselJS in /tutorials/Inheritance.
+-	 *
+-	 * @method initialize
+-	 * @protected
+-	 * @deprecated
+-	 */
+-	// p.initialize = function() {}; // searchable for devs wondering where it is.
+-
+-// static properties:
+-	/**
+-	 * BitmapText uses Sprite instances to draw text. To reduce the creation and destruction of instances (and thus garbage collection), it maintains
+-	 * an internal object pool of sprite instances to reuse. Increasing this value can cause more sprites to be
+-	 * retained, slightly increasing memory use, but reducing instantiation.
+-	 * @property maxPoolSize
+-	 * @type Number
+-	 * @static
+-	 * @default 100
+-	 **/
+-	BitmapText.maxPoolSize = 100;
+-	
+-	/**
+-	 * Sprite object pool.
+-	 * @type {Array}
+-	 * @static
+-	 * @private
+-	 */
+-	BitmapText._spritePool = [];
+-
+-	
+-// public methods:
+-	/**
+-	 * Docced in superclass.
+-	 **/
+-	p.draw = function(ctx, ignoreCache) {
+-		if (this.DisplayObject_draw(ctx, ignoreCache)) { return; }
+-		this._updateText();
+-		this.Container_draw(ctx, ignoreCache);
+-	};
+-	
+-	/**
+-	 * Docced in superclass.
+-	 **/
+-	p.getBounds = function() {
+-		this._updateText();
+-		return this.Container_getBounds();
+-	};
+-	
+-	/**
+-	 * Returns true or false indicating whether the display object would be visible if drawn to a canvas.
+-	 * This does not account for whether it would be visible within the boundaries of the stage.
+-	 * NOTE: This method is mainly for internal use, though it may be useful for advanced uses.
+-	 * @method isVisible
+-	 * @return {Boolean} Boolean indicating whether the display object would be visible if drawn to a canvas
+-	 **/
+-	p.isVisible = function() {
+-		var hasContent = this.cacheCanvas || (this.spriteSheet && this.spriteSheet.complete && this.text);
+-		return !!(this.visible && this.alpha > 0 && this.scaleX !== 0 && this.scaleY !== 0 && hasContent);
+-	};
+-	
+-	p.clone = function() {
+-		return this._cloneProps(new BitmapText(this.text, this.spriteSheet));
+-	};
+-	
+-	/**
+-	 * <strong>Disabled in BitmapText.</strong>
+-	 * @method addChild
+-	 **/
+-	/**
+-	 * <strong>Disabled in BitmapText.</strong>
+-	 * @method addChildAt
+-	 **/
+-	/**
+-	 * <strong>Disabled in BitmapText.</strong>
+-	 * @method removeChild
+-	 **/
+-	/**
+-	 * <strong>Disabled in BitmapText.</strong>
+-	 * @method removeChildAt
+-	 **/
+-	/**
+-	 *

<TRUNCATED>

[2/8] git commit: [flex-falcon] [refs/heads/develop] - convert createjs build to use a patch file. There are Ant targets that can be used to generate the patch files if we upgrade the createjs source we use

Posted by ah...@apache.org.
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/0128e8bd/externs/createjs/src/main/patch/tweenjs.patch
----------------------------------------------------------------------
diff --git a/externs/createjs/src/main/patch/tweenjs.patch b/externs/createjs/src/main/patch/tweenjs.patch
new file mode 100644
index 0000000..f7436c0
--- /dev/null
+++ b/externs/createjs/src/main/patch/tweenjs.patch
@@ -0,0 +1,2863 @@
+diff --git a/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/CSSPlugin.js b/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/CSSPlugin.js
+index 52e0206..0fe6341 100644
+--- a/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/CSSPlugin.js
++++ b/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/CSSPlugin.js
+@@ -31,16 +31,16 @@
+ */
+ 
+ // namespace:
+-this.createjs = this.createjs||{};
+ 
+-(function() {
+-	"use strict";
++
++
++
+ 
+ 	/**
+ 	 * A TweenJS plugin for working with numeric CSS string properties (ex. top, left). To use simply install after
+ 	 * TweenJS has loaded:
+ 	 *
+-	 *      createjs.CSSPlugin.install();
++	 *      createjs.createjs.CSSPlugin.install();
+ 	 *
+ 	 * You can adjust the CSS properties it will work with by modifying the <code>cssSuffixMap</code> property. Currently,
+ 	 * the top, left, bottom, right, width, height have a "px" suffix appended.
+@@ -49,7 +49,7 @@ this.createjs = this.createjs||{};
+ 	 * @class CSSPlugin
+ 	 * @constructor
+ 	 **/
+-	function CSSPlugin() {
++	createjs.CSSPlugin = function() {
+ 		throw("CSSPlugin cannot be instantiated.")
+ 	}
+ 
+@@ -65,14 +65,14 @@ this.createjs = this.createjs||{};
+ 	 * @type Object
+ 	 * @static
+ 	 **/
+-	CSSPlugin.cssSuffixMap = {top:"px",left:"px",bottom:"px",right:"px",width:"px",height:"px",opacity:""};
++	createjs.CSSPlugin.cssSuffixMap = {top:"px",left:"px",bottom:"px",right:"px",width:"px",height:"px",opacity:""};
+ 
+ 	/**
+ 	 * @property priority
+ 	 * @protected
+ 	 * @static
+ 	 **/
+-	CSSPlugin.priority = -100; // very low priority, should run last
++	createjs.CSSPlugin.priority = -100; // very low priority, should run last
+ 
+ 
+ // static methods
+@@ -81,8 +81,8 @@ this.createjs = this.createjs||{};
+ 	 * @method install
+ 	 * @static
+ 	 **/
+-	CSSPlugin.install = function() {
+-		var arr = [], map = CSSPlugin.cssSuffixMap;
++	createjs.CSSPlugin.install = function() {
++		var arr = [], map = createjs.CSSPlugin.cssSuffixMap;
+ 		for (var n in map) { arr.push(n); }
+ 		createjs.Tween.installPlugin(CSSPlugin, arr);
+ 	}
+@@ -92,8 +92,8 @@ this.createjs = this.createjs||{};
+ 	 * @protected
+ 	 * @static
+ 	 **/
+-	CSSPlugin.init = function(tween, prop, value) {
+-		var sfx0,sfx1,style,map = CSSPlugin.cssSuffixMap;
++	createjs.CSSPlugin.init = function(tween, prop, value) {
++		var sfx0,sfx1,style,map = createjs.CSSPlugin.cssSuffixMap;
+ 		if ((sfx0 = map[prop]) == null || !(style = tween.target.style)) { return value; }
+ 		var str = style[prop];
+ 		if (!str) { return 0; } // no style set.
+@@ -110,7 +110,7 @@ this.createjs = this.createjs||{};
+ 	 * @protected
+ 	 * @static
+ 	 **/
+-	CSSPlugin.step = function(tween, prop, startValue, endValue, injectProps) {
++	createjs.CSSPlugin.step = function(tween, prop, startValue, endValue, injectProps) {
+ 		// unused
+ 	}
+ 
+@@ -119,13 +119,13 @@ this.createjs = this.createjs||{};
+ 	 * @protected
+ 	 * @static
+ 	 **/
+-	CSSPlugin.tween = function(tween, prop, value, startValues, endValues, ratio, wait, end) {
+-		var style,map = CSSPlugin.cssSuffixMap;
++	createjs.CSSPlugin.tween = function(tween, prop, value, startValues, endValues, ratio, wait, end) {
++		var style,map = createjs.CSSPlugin.cssSuffixMap;
+ 		if (map[prop] == null || !(style = tween.target.style)) { return value; }
+ 		style[prop] = value+map[prop];
+ 		return createjs.Tween.IGNORE;
+ 	}
+ 
+-	createjs.CSSPlugin = CSSPlugin;
+ 
+-}());
++
++
+diff --git a/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/Ease.js b/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/Ease.js
+index e3a0809..51876a7 100644
+--- a/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/Ease.js
++++ b/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/Ease.js
+@@ -1,462 +1,187 @@
+-/*
+-* Ease
+-* Visit http://createjs.com/ for documentation, updates and examples.
+-*
+-* Copyright (c) 2010 gskinner.com, inc.
+-*
+-* Permission is hereby granted, free of charge, to any person
+-* obtaining a copy of this software and associated documentation
+-* files (the "Software"), to deal in the Software without
+-* restriction, including without limitation the rights to use,
+-* copy, modify, merge, publish, distribute, sublicense, and/or sell
+-* copies of the Software, and to permit persons to whom the
+-* Software is furnished to do so, subject to the following
+-* conditions:
+-*
+-* The above copyright notice and this permission notice shall be
+-* included in all copies or substantial portions of the Software.
+-*
+-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+-* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+-* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+-* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+-* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+-* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+-* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+-* OTHER DEALINGS IN THE SOFTWARE.
+-*/
+-
+-/**
+- * @module TweenJS
++/** @fileoverview Auto-generated Externs files
++ * @externs
+  */
++/**
++ * The Ease class provides a collection of easing functions for use with TweenJS. It does not use the standard 4 param
++ * easing signature. Instead it uses a single param which indicates the current linear ratio (0 to 1) of the tween.
++ * 
++ * Most methods on Ease can be passed directly as easing functions:
++ * 
++ * Tween.get(target).to({x:100}, 500, createjs.Ease.linear);
++ * 
++ * However, methods beginning with "get" will return an easing function based on parameter values:
++ * 
++ * Tween.get(target).to({y:200}, 500, createjs.Ease.getPowIn(2.2));
++ * 
++ * Please see the <a href="http://www.createjs.com/Demos/TweenJS/Tween_SparkTable">spark table demo</a> for an
++ * overview of the different ease types on <a href="http://tweenjs.com">TweenJS.com</a>.
++ * 
++ * <em>Equations derived from work by Robert Penner.</em>
++ *
++ * @see [Ease]
++ * @constructor  */
++createjs.Ease = function () {}
++
++    /**
++     * Configurable elastic ease.
++     *
++     * @param {(number|null)} amplitude 
++     * @param {(number|null)} period 
++     * @see [Ease]
++     * @returns {(Function|null)} 
++     */
++createjs.Ease.prototype.getElasticIn = function (amplitude, period) {  return null; }
++
++    /**
++     * @param {(number|null)} t 
++     * @see [Ease]
++     * @returns {(number|null)} 
++     */
++createjs.Ease.prototype.circOut = function (t) { return 0; }
++
++    /**
++     * @param {(number|null)} t 
++     * @see [Ease]
++     * @returns {(number|null)} 
++     */
++createjs.Ease.prototype.linear = function (t) { return 0; }
++
++    /**
++     * @param {(number|null)} t 
++     * @see [Ease]
++     * @returns {(number|null)} 
++     */
++createjs.Ease.prototype.sineIn = function (t) { return 0; }
++
++    /**
++     * @param {(number|null)} t 
++     * @see [Ease]
++     * @returns {(number|null)} 
++     */
++createjs.Ease.prototype.sineOut = function (t) { return 0; }
++
++    /**
++     * Mimics the simple -100 to 100 easing in Flash Pro.
++     *
++     * @param {(number|null)} amount A value from -1 (ease in) to 1 (ease out) indicating the strength and direction of the ease.
++     * @see [Ease]
++     * @returns {(Function|null)} 
++     */
++createjs.Ease.prototype.get = function (amount) {  return null; }
++
++    /**
++     * Configurable "back in" ease.
++     *
++     * @param {(number|null)} amount The strength of the ease.
++     * @see [Ease]
++     * @returns {(Function|null)} 
++     */
++createjs.Ease.prototype.getBackIn = function (amount) {  return null; }
++
++    /**
++     * @param {(number|null)} t 
++     * @see [Ease]
++     * @returns {(number|null)} 
++     */
++createjs.Ease.prototype.circIn = function (t) { return 0; }
++
++    /**
++     * Configurable "back out" ease.
++     *
++     * @param {(number|null)} amount The strength of the ease.
++     * @see [Ease]
++     * @returns {(Function|null)} 
++     */
++createjs.Ease.prototype.getBackOut = function (amount) {  return null; }
++
++    /**
++     * Configurable elastic ease.
++     *
++     * @param {(number|null)} amplitude 
++     * @param {(number|null)} period 
++     * @see [Ease]
++     * @returns {(Function|null)} 
++     */
++createjs.Ease.prototype.getElasticInOut = function (amplitude, period) {  return null; }
++
++    /**
++     * @param {(number|null)} t 
++     * @see [Ease]
++     * @returns {(number|null)} 
++     */
++createjs.Ease.prototype.bounceInOut = function (t) { return 0; }
++
++    /**
++     * @param {(number|null)} t 
++     * @see [Ease]
++     * @returns {(number|null)} 
++     */
++createjs.Ease.prototype.bounceIn = function (t) { return 0; }
++
++    /**
++     * @param {(number|null)} t 
++     * @see [Ease]
++     * @returns {(number|null)} 
++     */
++createjs.Ease.prototype.sineInOut = function (t) { return 0; }
++
++    /**
++     * @param {(number|null)} t 
++     * @see [Ease]
++     * @returns {(number|null)} 
++     */
++createjs.Ease.prototype.circInOut = function (t) { return 0; }
++
++    /**
++     * Configurable exponential ease.
++     *
++     * @param {(number|null)} pow The exponent to use (ex. 3 would return a cubic ease).
++     * @see [Ease]
++     * @returns {(Function|null)} 
++     */
++createjs.Ease.prototype.getPowOut = function (pow) {  return null; }
++
++    /**
++     * Configurable "back in out" ease.
++     *
++     * @param {(number|null)} amount The strength of the ease.
++     * @see [Ease]
++     * @returns {(Function|null)} 
++     */
++createjs.Ease.prototype.getBackInOut = function (amount) {  return null; }
++
++    /**
++     * Configurable exponential ease.
++     *
++     * @param {(number|null)} pow The exponent to use (ex. 3 would return a cubic ease).
++     * @see [Ease]
++     * @returns {(Function|null)} 
++     */
++createjs.Ease.prototype.getPowIn = function (pow) {  return null; }
++
++    /**
++     * Configurable exponential ease.
++     *
++     * @param {(number|null)} pow The exponent to use (ex. 3 would return a cubic ease).
++     * @see [Ease]
++     * @returns {(Function|null)} 
++     */
++createjs.Ease.prototype.getPowInOut = function (pow) {  return null; }
++
++    /**
++     * Configurable elastic ease.
++     *
++     * @param {(number|null)} amplitude 
++     * @param {(number|null)} period 
++     * @see [Ease]
++     * @returns {(Function|null)} 
++     */
++createjs.Ease.prototype.getElasticOut = function (amplitude, period) {  return null; }
++
++    /**
++     * @param {(number|null)} t 
++     * @see [Ease]
++     * @returns {(number|null)} 
++     */
++createjs.Ease.prototype.bounceOut = function (t) { return 0; }
+ 
+-// namespace:
+-this.createjs = this.createjs||{};
+-
+-(function() {
+-	"use strict";
+-
+-	/**
+-	 * The Ease class provides a collection of easing functions for use with TweenJS. It does not use the standard 4 param
+-	 * easing signature. Instead it uses a single param which indicates the current linear ratio (0 to 1) of the tween.
+-	 *
+-	 * Most methods on Ease can be passed directly as easing functions:
+-	 *
+-	 *      Tween.get(target).to({x:100}, 500, Ease.linear);
+-	 *
+-	 * However, methods beginning with "get" will return an easing function based on parameter values:
+-	 *
+-	 *      Tween.get(target).to({y:200}, 500, Ease.getPowIn(2.2));
+-	 *
+-	 * Please see the <a href="http://www.createjs.com/Demos/TweenJS/Tween_SparkTable">spark table demo</a> for an
+-	 * overview of the different ease types on <a href="http://tweenjs.com">TweenJS.com</a>.
+-	 *
+-	 * <em>Equations derived from work by Robert Penner.</em>
+-	 * @class Ease
+-	 * @static
+-	 **/
+-	function Ease() {
+-		throw "Ease cannot be instantiated.";
+-	}
+-
+-
+-// static methods and properties
+-	/**
+-	 * @method linear
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.linear = function(t) { return t; };
+-
+-	/**
+-	 * Identical to linear.
+-	 * @method none
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.none = Ease.linear;
+-
+-	/**
+-	 * Mimics the simple -100 to 100 easing in Flash Pro.
+-	 * @method get
+-	 * @param {Number} amount A value from -1 (ease in) to 1 (ease out) indicating the strength and direction of the ease.
+-	 * @static
+-	 * @return {Function}
+-	 **/
+-	Ease.get = function(amount) {
+-		if (amount < -1) { amount = -1; }
+-		if (amount > 1) { amount = 1; }
+-		return function(t) {
+-			if (amount==0) { return t; }
+-			if (amount<0) { return t*(t*-amount+1+amount); }
+-			return t*((2-t)*amount+(1-amount));
+-		};
+-	};
+-
+-	/**
+-	 * Configurable exponential ease.
+-	 * @method getPowIn
+-	 * @param {Number} pow The exponent to use (ex. 3 would return a cubic ease).
+-	 * @static
+-	 * @return {Function}
+-	 **/
+-	Ease.getPowIn = function(pow) {
+-		return function(t) {
+-			return Math.pow(t,pow);
+-		};
+-	};
+-
+-	/**
+-	 * Configurable exponential ease.
+-	 * @method getPowOut
+-	 * @param {Number} pow The exponent to use (ex. 3 would return a cubic ease).
+-	 * @static
+-	 * @return {Function}
+-	 **/
+-	Ease.getPowOut = function(pow) {
+-		return function(t) {
+-			return 1-Math.pow(1-t,pow);
+-		};
+-	};
+-
+-	/**
+-	 * Configurable exponential ease.
+-	 * @method getPowInOut
+-	 * @param {Number} pow The exponent to use (ex. 3 would return a cubic ease).
+-	 * @static
+-	 * @return {Function}
+-	 **/
+-	Ease.getPowInOut = function(pow) {
+-		return function(t) {
+-			if ((t*=2)<1) return 0.5*Math.pow(t,pow);
+-			return 1-0.5*Math.abs(Math.pow(2-t,pow));
+-		};
+-	};
+-
+-	/**
+-	 * @method quadIn
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.quadIn = Ease.getPowIn(2);
+-	/**
+-	 * @method quadOut
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.quadOut = Ease.getPowOut(2);
+-	/**
+-	 * @method quadInOut
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.quadInOut = Ease.getPowInOut(2);
+-
+-	/**
+-	 * @method cubicIn
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.cubicIn = Ease.getPowIn(3);
+-	/**
+-	 * @method cubicOut
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.cubicOut = Ease.getPowOut(3);
+-	/**
+-	 * @method cubicInOut
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.cubicInOut = Ease.getPowInOut(3);
+-
+-	/**
+-	 * @method quartIn
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.quartIn = Ease.getPowIn(4);
+-	/**
+-	 * @method quartOut
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.quartOut = Ease.getPowOut(4);
+-	/**
+-	 * @method quartInOut
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.quartInOut = Ease.getPowInOut(4);
+-
+-	/**
+-	 * @method quintIn
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.quintIn = Ease.getPowIn(5);
+-	/**
+-	 * @method quintOut
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.quintOut = Ease.getPowOut(5);
+-	/**
+-	 * @method quintInOut
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.quintInOut = Ease.getPowInOut(5);
+-
+-	/**
+-	 * @method sineIn
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.sineIn = function(t) {
+-		return 1-Math.cos(t*Math.PI/2);
+-	};
+-
+-	/**
+-	 * @method sineOut
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.sineOut = function(t) {
+-		return Math.sin(t*Math.PI/2);
+-	};
+-
+-	/**
+-	 * @method sineInOut
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.sineInOut = function(t) {
+-		return -0.5*(Math.cos(Math.PI*t) - 1);
+-	};
+-
+-	/**
+-	 * Configurable "back in" ease.
+-	 * @method getBackIn
+-	 * @param {Number} amount The strength of the ease.
+-	 * @static
+-	 * @return {Function}
+-	 **/
+-	Ease.getBackIn = function(amount) {
+-		return function(t) {
+-			return t*t*((amount+1)*t-amount);
+-		};
+-	};
+-	/**
+-	 * @method backIn
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.backIn = Ease.getBackIn(1.7);
+-
+-	/**
+-	 * Configurable "back out" ease.
+-	 * @method getBackOut
+-	 * @param {Number} amount The strength of the ease.
+-	 * @static
+-	 * @return {Function}
+-	 **/
+-	Ease.getBackOut = function(amount) {
+-		return function(t) {
+-			return (--t*t*((amount+1)*t + amount) + 1);
+-		};
+-	};
+-	/**
+-	 * @method backOut
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.backOut = Ease.getBackOut(1.7);
+-
+-	/**
+-	 * Configurable "back in out" ease.
+-	 * @method getBackInOut
+-	 * @param {Number} amount The strength of the ease.
+-	 * @static
+-	 * @return {Function}
+-	 **/
+-	Ease.getBackInOut = function(amount) {
+-		amount*=1.525;
+-		return function(t) {
+-			if ((t*=2)<1) return 0.5*(t*t*((amount+1)*t-amount));
+-			return 0.5*((t-=2)*t*((amount+1)*t+amount)+2);
+-		};
+-	};
+-	/**
+-	 * @method backInOut
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.backInOut = Ease.getBackInOut(1.7);
+-
+-	/**
+-	 * @method circIn
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.circIn = function(t) {
+-		return -(Math.sqrt(1-t*t)- 1);
+-	};
+-
+-	/**
+-	 * @method circOut
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.circOut = function(t) {
+-		return Math.sqrt(1-(--t)*t);
+-	};
+-
+-	/**
+-	 * @method circInOut
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.circInOut = function(t) {
+-		if ((t*=2) < 1) return -0.5*(Math.sqrt(1-t*t)-1);
+-		return 0.5*(Math.sqrt(1-(t-=2)*t)+1);
+-	};
+-
+-	/**
+-	 * @method bounceIn
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.bounceIn = function(t) {
+-		return 1-Ease.bounceOut(1-t);
+-	};
+-
+-	/**
+-	 * @method bounceOut
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.bounceOut = function(t) {
+-		if (t < 1/2.75) {
+-			return (7.5625*t*t);
+-		} else if (t < 2/2.75) {
+-			return (7.5625*(t-=1.5/2.75)*t+0.75);
+-		} else if (t < 2.5/2.75) {
+-			return (7.5625*(t-=2.25/2.75)*t+0.9375);
+-		} else {
+-			return (7.5625*(t-=2.625/2.75)*t +0.984375);
+-		}
+-	};
+-
+-	/**
+-	 * @method bounceInOut
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.bounceInOut = function(t) {
+-		if (t<0.5) return Ease.bounceIn (t*2) * .5;
+-		return Ease.bounceOut(t*2-1)*0.5+0.5;
+-	};
+-
+-	/**
+-	 * Configurable elastic ease.
+-	 * @method getElasticIn
+-	 * @param {Number} amplitude
+-	 * @param {Number} period
+-	 * @static
+-	 * @return {Function}
+-	 **/
+-	Ease.getElasticIn = function(amplitude,period) {
+-		var pi2 = Math.PI*2;
+-		return function(t) {
+-			if (t==0 || t==1) return t;
+-			var s = period/pi2*Math.asin(1/amplitude);
+-			return -(amplitude*Math.pow(2,10*(t-=1))*Math.sin((t-s)*pi2/period));
+-		};
+-	};
+-	/**
+-	 * @method elasticIn
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.elasticIn = Ease.getElasticIn(1,0.3);
+-
+-	/**
+-	 * Configurable elastic ease.
+-	 * @method getElasticOut
+-	 * @param {Number} amplitude
+-	 * @param {Number} period
+-	 * @static
+-	 * @return {Function}
+-	 **/
+-	Ease.getElasticOut = function(amplitude,period) {
+-		var pi2 = Math.PI*2;
+-		return function(t) {
+-			if (t==0 || t==1) return t;
+-			var s = period/pi2 * Math.asin(1/amplitude);
+-			return (amplitude*Math.pow(2,-10*t)*Math.sin((t-s)*pi2/period )+1);
+-		};
+-	};
+-	/**
+-	 * @method elasticOut
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.elasticOut = Ease.getElasticOut(1,0.3);
+-
+-	/**
+-	 * Configurable elastic ease.
+-	 * @method getElasticInOut
+-	 * @param {Number} amplitude
+-	 * @param {Number} period
+-	 * @static
+-	 * @return {Function}
+-	 **/
+-	Ease.getElasticInOut = function(amplitude,period) {
+-		var pi2 = Math.PI*2;
+-		return function(t) {
+-			var s = period/pi2 * Math.asin(1/amplitude);
+-			if ((t*=2)<1) return -0.5*(amplitude*Math.pow(2,10*(t-=1))*Math.sin( (t-s)*pi2/period ));
+-			return amplitude*Math.pow(2,-10*(t-=1))*Math.sin((t-s)*pi2/period)*0.5+1;
+-		};
+-	};
+-	/**
+-	 * @method elasticInOut
+-	 * @param {Number} t
+-	 * @static
+-	 * @return {Number}
+-	 **/
+-	Ease.elasticInOut = Ease.getElasticInOut(1,0.3*1.5);
+-
+-	createjs.Ease = Ease;
+-
+-}());
+diff --git a/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/MotionGuidePlugin.js b/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/MotionGuidePlugin.js
+index 48fe018..7d12309 100644
+--- a/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/MotionGuidePlugin.js
++++ b/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/MotionGuidePlugin.js
+@@ -31,17 +31,17 @@
+  */
+ 
+ // namespace:
+-this.createjs = this.createjs||{};
+ 
+-(function() {
+-	"use strict";
++
++
++
+ 
+ 	/**
+ 	 * A TweenJS plugin for working with motion guides.
+ 	 *
+ 	 * To use, install the plugin after TweenJS has loaded. Next tween the 'guide' property with an object as detailed below.
+ 	 *
+-	 *       createjs.MotionGuidePlugin.install();
++	 *       createjs.createjs.MotionGuidePlugin.install();
+ 	 *
+ 	 * <h4>Example</h4>
+ 	 *
+@@ -68,7 +68,7 @@ this.createjs = this.createjs||{};
+ 	 * @class MotionGuidePlugin
+ 	 * @constructor
+ 	 **/
+-	function MotionGuidePlugin() {
++	createjs.MotionGuidePlugin = function() {
+ 		throw("MotionGuidePlugin cannot be instantiated.")
+ 	};
+ 
+@@ -79,32 +79,32 @@ this.createjs = this.createjs||{};
+ 	 * @protected
+ 	 * @static
+ 	 **/
+-	MotionGuidePlugin.priority = 0; // high priority, should run sooner
++	createjs.MotionGuidePlugin.priority = 0; // high priority, should run sooner
+ 
+ 	/**
+ 	 * @property temporary variable storage
+ 	 * @private
+ 	 * @static
+ 	 */
+-	MotionGuidePlugin._rotOffS;
++	createjs.MotionGuidePlugin._rotOffS;
+ 	/**
+ 	 * @property temporary variable storage
+ 	 * @private
+ 	 * @static
+ 	 */
+-	MotionGuidePlugin._rotOffE;
++	createjs.MotionGuidePlugin._rotOffE;
+ 	/**
+ 	 * @property temporary variable storage
+ 	 * @private
+ 	 * @static
+ 	 */
+-	MotionGuidePlugin._rotNormS;
++	createjs.MotionGuidePlugin._rotNormS;
+ 	/**
+ 	 * @property temporary variable storage
+ 	 * @private
+ 	 * @static
+ 	 */
+-	MotionGuidePlugin._rotNormE;
++	createjs.MotionGuidePlugin._rotNormE;
+ 
+ 
+ // static methods
+@@ -113,7 +113,7 @@ this.createjs = this.createjs||{};
+ 	 * @method install
+ 	 * @static
+ 	 **/
+-	MotionGuidePlugin.install = function() {
++	createjs.MotionGuidePlugin.install = function() {
+ 		createjs.Tween.installPlugin(MotionGuidePlugin, ["guide", "x", "y", "rotation"]);
+ 		return createjs.Tween.IGNORE;
+ 	};
+@@ -123,7 +123,7 @@ this.createjs = this.createjs||{};
+ 	 * @protected
+ 	 * @static
+ 	 **/
+-	MotionGuidePlugin.init = function(tween, prop, value) {
++	createjs.MotionGuidePlugin.init = function(tween, prop, value) {
+ 		var target = tween.target;
+ 		if(!target.hasOwnProperty("x")){ target.x = 0; }
+ 		if(!target.hasOwnProperty("y")){ target.y = 0; }
+@@ -138,12 +138,12 @@ this.createjs = this.createjs||{};
+ 	 * @protected
+ 	 * @static
+ 	 **/
+-	MotionGuidePlugin.step = function(tween, prop, startValue, endValue, injectProps) {
++	createjs.MotionGuidePlugin.step = function(tween, prop, startValue, endValue, injectProps) {
+ 		// other props
+ 		if(prop == "rotation"){
+ 			tween.__rotGlobalS = startValue;
+ 			tween.__rotGlobalE = endValue;
+-			MotionGuidePlugin.testRotData(tween, injectProps);
++			createjs.MotionGuidePlugin.testRotData(tween, injectProps);
+ 		}
+ 		if(prop != "guide"){ return endValue; }
+ 
+@@ -191,18 +191,18 @@ this.createjs = this.createjs||{};
+ 		temp = data.orient;
+ 		data.orient = true;
+ 		var o = {};
+-		MotionGuidePlugin.calc(data, data.start, o);
++		createjs.MotionGuidePlugin.calc(data, data.start, o);
+ 		tween.__rotPathS = Number(o.rotation.toFixed(5));
+-		MotionGuidePlugin.calc(data, data.end, o);
++		createjs.MotionGuidePlugin.calc(data, data.end, o);
+ 		tween.__rotPathE = Number(o.rotation.toFixed(5));
+ 		data.orient = false;	//here and now we don't know if we need to
+-		MotionGuidePlugin.calc(data, data.end, injectProps);
++		createjs.MotionGuidePlugin.calc(data, data.end, injectProps);
+ 		data.orient = temp;
+ 
+ 		// Setup rotation properties
+ 		if(!data.orient){ return endValue; }
+ 		tween.__guideData = data;
+-		MotionGuidePlugin.testRotData(tween, injectProps);
++		createjs.MotionGuidePlugin.testRotData(tween, injectProps);
+ 		return endValue;
+ 	};
+ 
+@@ -211,7 +211,7 @@ this.createjs = this.createjs||{};
+ 	 * @protected
+ 	 * @static
+ 	 **/
+-	MotionGuidePlugin.testRotData = function(tween, injectProps){
++	createjs.MotionGuidePlugin.testRotData = function(tween, injectProps){
+ 
+ 		// no rotation informat? if we need it come back, if we don't use 0 & ensure we have guide data
+ 		if(tween.__rotGlobalS === undefined || tween.__rotGlobalE === undefined){
+@@ -256,13 +256,13 @@ this.createjs = this.createjs||{};
+ 	 * @protected
+ 	 * @static
+ 	 **/
+-	MotionGuidePlugin.tween = function(tween, prop, value, startValues, endValues, ratio, wait, end) {
++	createjs.MotionGuidePlugin.tween = function(tween, prop, value, startValues, endValues, ratio, wait, end) {
+ 		var data = endValues.guide;
+ 		if(data == undefined || data === startValues.guide){ return value; }
+ 		if(data.lastRatio != ratio){
+ 			// first time through so calculate what I need to
+ 			var t = ((data.end-data.start)*(wait?data.end:ratio)+data.start);
+-			MotionGuidePlugin.calc(data, t, tween.target);
++			createjs.MotionGuidePlugin.calc(data, t, tween.target);
+ 			switch(data.orient){
+ 				case "cw":		// mix in the original rotation
+ 				case "ccw":
+@@ -279,13 +279,13 @@ this.createjs = this.createjs||{};
+ 	/**
+ 	 * Determine the appropriate x/y/rotation information about a path for a given ratio along the path.
+ 	 * Assumes a path object with all optional parameters specified.
+-	 * @param data Data object you would pass to the "guide:" property in a Tween
+-	 * @param ratio 0-1 Distance along path, values outside 0-1 are "best guess"
+-	 * @param target Object to copy the results onto, will use a new object if not supplied.
++	 * @param {Object} data Data object you would pass to the "guide:" property in a Tween
++	 * @param {Number} ratio 0-1 Distance along path, values outside 0-1 are "best guess"
++	 * @param {Object} target Object to copy the results onto, will use a new object if not supplied.
+ 	 * @return {Object} The target object or a new object w/ the tweened properties
+ 	 * @static
+ 	 */
+-	MotionGuidePlugin.calc = function(data, ratio, target) {
++	createjs.MotionGuidePlugin.calc = function(data, ratio, target) {
+ 		if(data._segments == undefined){ throw("Missing critical pre-calculated information, please file a bug"); }
+ 		if(target == undefined){ target = {x:0, y:0, rotation:0}; }
+ 		var seg = data._segments;
+@@ -326,6 +326,6 @@ this.createjs = this.createjs||{};
+ 		return target;
+ 	};
+ 
+-	createjs.MotionGuidePlugin = MotionGuidePlugin;
+ 
+-}());
++
++
+diff --git a/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/SamplePlugin.js b/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/SamplePlugin.js
+index 371baa7..4bfca8c 100644
+--- a/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/SamplePlugin.js
++++ b/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/SamplePlugin.js
+@@ -31,10 +31,10 @@
+  */
+ 
+ // namespace:
+-this.createjs = this.createjs||{};
+ 
+-(function() {
+-	"use strict";
++
++
++
+ 
+ 	/**
+ 	 * A sample TweenJS plugin. This plugin does not actually affect tweens in any way, it's merely intended to document
+@@ -45,7 +45,7 @@ this.createjs = this.createjs||{};
+ 	 * @class SamplePlugin
+ 	 * @constructor
+ 	 **/
+-	function SamplePlugin() {
++	createjs.SamplePlugin = function() {
+ 		throw("SamplePlugin cannot be instantiated.")
+ 	};
+ 
+@@ -56,7 +56,7 @@ this.createjs = this.createjs||{};
+ 	 * @property priority
+ 	 * @static
+ 	 **/
+-	SamplePlugin.priority = 0;
++	createjs.SamplePlugin.priority = 0;
+ 
+ 	/**
+ 	 * Installs this plugin for use with TweenJS, and registers for a list of properties that this plugin will operate
+@@ -64,7 +64,7 @@ this.createjs = this.createjs||{};
+ 	 * @method install
+ 	 * @static
+ 	 **/
+-	SamplePlugin.install = function() {
++	createjs.SamplePlugin.install = function() {
+ 		// this registers this plugin to work with the "test" property.
+ 		createjs.Tween.installPlugin(SamplePlugin, ["test"]);
+ 	};
+@@ -75,12 +75,12 @@ this.createjs = this.createjs||{};
+ 	 * @method init
+ 	 * @param {Tween} tween The related tween instance.
+ 	 * @param {String} prop The name of the property that is being initialized.
+-	 * @param {any} value The current value of the property on the tween's target.
+-	 * @return {any} The starting tween value for the property. In most cases, you would simply
++	 * @param {Object} value The current value of the property on the tween's target.
++	 * @return {Object} The starting tween value for the property. In most cases, you would simply
+ 	 * return the value parameter, but some plugins may need to modify the starting value.
+ 	 * @static
+ 	 **/
+-	SamplePlugin.init = function(tween, prop, value) {
++	createjs.SamplePlugin.init = function(tween, prop, value) {
+ 		console.log("init", prop, value);
+ 
+ 		// return the unmodified property value:
+@@ -93,14 +93,14 @@ this.createjs = this.createjs||{};
+ 	 * @method init
+ 	 * @param {Tween} tween The related tween instance.
+ 	 * @param {String} prop The name of the property being tweened.
+-	 * @param {any} startValue The value of the property at the beginning of the step. This will
++	 * @param {Object} startValue The value of the property at the beginning of the step. This will
+ 	 * be the same as the init value if this is the first step, or the same as the
+ 	 * endValue of the previous step if not.
+ 	 * @param {Object} injectProps A generic object to which the plugin can append other properties which should be updated on this step.
+-	 * @param {any} endValue The value of the property at the end of the step.
++	 * @param {Object} endValue The value of the property at the end of the step.
+ 	 * @static
+ 	 **/
+-	SamplePlugin.step = function(tween, prop, startValue, endValue, injectProps) {
++	createjs.SamplePlugin.step = function(tween, prop, startValue, endValue, injectProps) {
+ 		console.log("to: ", prop, startValue, endValue);
+ 	};
+ 
+@@ -109,7 +109,7 @@ this.createjs = this.createjs||{};
+ 	 * @method tween
+ 	 * @param {Tween} tween The related tween instance.
+ 	 * @param {String} prop The name of the property being tweened.
+-	 * @param {any} value The current tweened value of the property, as calculated by TweenJS.
++	 * @param {Object} value The current tweened value of the property, as calculated by TweenJS.
+ 	 * @param {Object} startValues A hash of all of the property values at the start of the current
+ 	 * step. You could access the start value of the current property using
+ 	 * startValues[prop].
+@@ -120,13 +120,13 @@ this.createjs = this.createjs||{};
+ 	 * this range.
+ 	 * @param {Boolean} wait Indicates whether the current step is a "wait" step.
+ 	 * @param {Boolean} end Indicates that the tween has reached the end.
+-	 * @return {any} Return the value that should be assigned to the target property. For example
++	 * @return {Object} Return the value that should be assigned to the target property. For example
+ 	 * returning <code>Math.round(value)</code> would assign the default calculated value
+ 	 * as an integer. Returning Tween.IGNORE will prevent Tween from assigning a value to
+ 	 * the target property.
+ 	 * @static
+ 	 **/
+-	SamplePlugin.tween = function(tween, prop, value, startValues, endValues, ratio, wait, end) {
++	createjs.SamplePlugin.tween = function(tween, prop, value, startValues, endValues, ratio, wait, end) {
+ 		// ratio is the eased ratio
+ 		console.log("tween", prop, value, ratio, wait, end);
+ 
+@@ -135,6 +135,6 @@ this.createjs = this.createjs||{};
+ 	};
+ 
+ 
+-	createjs.SamplePlugin = SamplePlugin;
+ 
+-}());
++
++
+diff --git a/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/Timeline.js b/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/Timeline.js
+index 5546bc2..78be88d 100644
+--- a/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/Timeline.js
++++ b/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/Timeline.js
+@@ -1,444 +1,150 @@
+-/*
+-* Timeline
+-* Visit http://createjs.com/ for documentation, updates and examples.
+-*
+-* Copyright (c) 2010 gskinner.com, inc.
+-*
+-* Permission is hereby granted, free of charge, to any person
+-* obtaining a copy of this software and associated documentation
+-* files (the "Software"), to deal in the Software without
+-* restriction, including without limitation the rights to use,
+-* copy, modify, merge, publish, distribute, sublicense, and/or sell
+-* copies of the Software, and to permit persons to whom the
+-* Software is furnished to do so, subject to the following
+-* conditions:
+-*
+-* The above copyright notice and this permission notice shall be
+-* included in all copies or substantial portions of the Software.
+-*
+-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+-* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+-* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+-* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+-* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+-* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+-* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+-* OTHER DEALINGS IN THE SOFTWARE.
+-*/
+-
++/** @fileoverview Auto-generated Externs files
++ * @externs
++ */
+ /**
+- * @module TweenJS
++ * The Timeline class synchronizes multiple tweens and allows them to be controlled as a group. Please note that if a
++ * timeline is looping, the tweens on it may appear to loop even if the "loop" property of the tween is false.
++ *
++ * @see [Timeline]
++ * @constructor  * @extends createjs.EventDispatcher
+  */
++createjs.Timeline = function (tweens, labels, props) {}
++
++    /**
++     * @see [Timeline]
++     */
++createjs.Timeline.clone = function () {  }
++
++    /**
++     * If a numeric position is passed, it is returned unchanged. If a string is passed, the position of the
++     * corresponding frame label will be returned, or `null` if a matching label is not defined.
++     *
++     * @param {(number|string|null)} positionOrLabel A numeric position value or label string.
++     * @see [Timeline]
++     */
++createjs.Timeline.resolve = function (positionOrLabel) {  }
++
++    /**
++     * Adds a label that can be used with {{#crossLink "Timeline/gotoAndPlay"}}{{/crossLink}}/{{#crossLink "Timeline/gotoAndStop"}}{{/crossLink}}.
++     *
++     * @param {(string|null)} label The label name.
++     * @param {(number|null)} position The position this label represents.
++     * @see [Timeline]
++     */
++createjs.Timeline.addLabel = function (label, position) {  }
++
++    /**
++     * @param {(number|null)} value 
++     * @see [Timeline]
++     * @returns {(number|null)} 
++     */
++createjs.Timeline._calcPosition = function (value) { return 0; }
++
++    /**
++     * Pauses this timeline and jumps to the specified position or label.
++     *
++     * @param {(number|string|null)} positionOrLabel The position in milliseconds (or ticks if `useTicks` is `true`) or label to jump to.
++     * @see [Timeline]
++     */
++createjs.Timeline.gotoAndStop = function (positionOrLabel) {  }
++
++    /**
++     * Removes one or more tweens from this timeline.
++     *
++     * @see [Timeline]
++     * @returns {?} Boolean Returns `true` if all of the tweens were successfully removed.
++     */
++createjs.Timeline.removeTween = function (tween) {  return null; }
++
++    /**
++     * Returns the name of the label on or immediately before the current position. For example, given a timeline with
++     * two labels, "first" on frame index 4, and "second" on frame 8, getCurrentLabel would return:
++     * <UL>
++     * <LI>null if the current position is 2.</LI>
++     * <LI>"first" if the current position is 4.</LI>
++     * <LI>"first" if the current position is 7.</LI>
++     * <LI>"second" if the current position is 15.</LI>
++     * </UL>
++     *
++     * @see [Timeline]
++     * @returns {(string|null)} The name of the current label or null if there is no label
++     */
++createjs.Timeline.getCurrentLabel = function () {  return null; }
++
++    /**
++     * Advances the timeline to the specified position.
++     *
++     * @param {(number|null)} value The position to seek to in milliseconds (or ticks if `useTicks` is `true`).
++     * @param {(number|null|undefined)} actionsMode parameter specifying how actions are handled. See the Tween {{#crossLink "Tween/setPosition"}}{{/crossLink}} method for more details.
++     * @see [Timeline]
++     * @returns {(boolean|null)} Returns `true` if the timeline is complete (ie. the full timeline has run & {{#crossLink "Timeline/loop:property"}}{{/crossLink}} is `false`).
++     */
++createjs.Timeline.setPosition = function (value, actionsMode) {  return null; }
++
++    /**
++     * Pauses or plays this timeline.
++     *
++     * @param {(boolean|null)} value Indicates whether the tween should be paused (`true`) or played (`false`).
++     * @see [Timeline]
++     */
++createjs.Timeline.setPaused = function (value) {  }
++
++    /**
++     * Advances this timeline by the specified amount of time in milliseconds (or ticks if `useTicks` is `true`).
++     * This is normally called automatically by the Tween engine (via the {{#crossLink "Tween/tick:event"}}{{/crossLink}}
++     * event), but is exposed for advanced uses.
++     *
++     * @param {(number|null)} delta The time to advance in milliseconds (or ticks if useTicks is true).
++     * @see [Timeline]
++     */
++createjs.Timeline.tick = function (delta) {  }
++
++    /**
++     * @param {(number|string|null)} positionOrLabel 
++     * @see [Timeline]
++     */
++createjs.Timeline._goto = function (positionOrLabel) {  }
++
++    /**
++     * Returns a sorted list of the labels defined on this timeline.
++     *
++     * @see [Timeline]
++     * @returns {(Array|null)} Object]} A sorted array of objects with label and position properties.
++     */
++createjs.Timeline.getLabels = function () {  return null; }
++
++    /**
++     * Recalculates the duration of the timeline. The duration is automatically updated when tweens are added or removed,
++     * but this method is useful if you modify a tween after it was added to the timeline.
++     *
++     * @see [Timeline]
++     */
++createjs.Timeline.updateDuration = function () {  }
++
++    /**
++     * Adds one or more tweens (or timelines) to this timeline. The tweens will be paused (to remove them from the
++     * normal ticking system) and managed by this timeline. Adding a tween to multiple timelines will result in
++     * unexpected behaviour.
++     *
++     * @see [Timeline]
++     * @returns {(Tween|null)} The first tween that was passed in.
++     */
++createjs.Timeline.addTween = function (tween) {  return null; }
++
++
++    /**
++     * Defines labels for use with gotoAndPlay/Stop. Overwrites any previously set labels.
++     *
++     * @param {(Object|null)} o An object defining labels for using {{#crossLink "Timeline/gotoAndPlay"}}{{/crossLink}}/{{#crossLink "Timeline/gotoAndStop"}}{{/crossLink}} in the form `{labelName:time}` where time is in milliseconds (or ticks if `useTicks` is `true`).
++     * @see [Timeline]
++     */
++createjs.Timeline.setLabels = function (o) {  }
++
++    /**
++     * Unpauses this timeline and jumps to the specified position or label.
++     *
++     * @param {(number|string|null)} positionOrLabel The position in milliseconds (or ticks if `useTicks` is `true`) or label to jump to.
++     * @see [Timeline]
++     */
++createjs.Timeline.gotoAndPlay = function (positionOrLabel) {  }
+ 
+-// namespace:
+-this.createjs = this.createjs||{};
+-
+-
+-(function() {
+-	"use strict";
+-	
+-
+-// constructor	
+-	/**
+-	 * The Timeline class synchronizes multiple tweens and allows them to be controlled as a group. Please note that if a
+-	 * timeline is looping, the tweens on it may appear to loop even if the "loop" property of the tween is false.
+-	 * @class Timeline
+-	 * @param {Array} tweens An array of Tweens to add to this timeline. See {{#crossLink "Timeline/addTween"}}{{/crossLink}}
+-	 * for more info.
+-	 * @param {Object} labels An object defining labels for using {{#crossLink "Timeline/gotoAndPlay"}}{{/crossLink}}/{{#crossLink "Timeline/gotoAndStop"}}{{/crossLink}}.
+-	 * See {{#crossLink "Timeline/setLabels"}}{{/crossLink}}
+-	 * for details.
+-	 * @param {Object} props The configuration properties to apply to this tween instance (ex. `{loop:true}`). All properties
+-	 * default to false. Supported props are:<UL>
+-	 *    <LI> loop: sets the loop property on this tween.</LI>
+-	 *    <LI> useTicks: uses ticks for all durations instead of milliseconds.</LI>
+-	 *    <LI> ignoreGlobalPause: sets the ignoreGlobalPause property on this tween.</LI>
+-	 *    <LI> paused: indicates whether to start the tween paused.</LI>
+-	 *    <LI> position: indicates the initial position for this timeline.</LI>
+-	 *    <LI> onChange: specifies a listener to add for the {{#crossLink "Timeline/change:event"}}{{/crossLink}} event.</LI>
+-	 * </UL>
+-	 * @extends EventDispatcher
+-	 * @constructor
+-	 **/
+-	function Timeline(tweens, labels, props) {
+-		this.EventDispatcher_constructor();
+-
+-	// public properties:
+-		/**
+-		 * Causes this timeline to continue playing when a global pause is active.
+-		 * @property ignoreGlobalPause
+-		 * @type Boolean
+-		 **/
+-		this.ignoreGlobalPause = false;
+-
+-		/**
+-		 * The total duration of this timeline in milliseconds (or ticks if `useTicks `is `true`). This value is usually
+-		 * automatically updated as you modify the timeline. See {{#crossLink "Timeline/updateDuration"}}{{/crossLink}}
+-		 * for more information.
+-		 * @property duration
+-		 * @type Number
+-		 * @default 0
+-		 * @readonly
+-		 **/
+-		this.duration = 0;
+-
+-		/**
+-		 * If true, the timeline will loop when it reaches the end. Can be set via the props param.
+-		 * @property loop
+-		 * @type Boolean
+-		 **/
+-		this.loop = false;
+-
+-		/**
+-		 * The current normalized position of the timeline. This will always be a value between 0 and
+-		 * {{#crossLink "Timeline/duration:property"}}{{/crossLink}}.
+-		 * Changing this property directly will have no effect.
+-		 * @property position
+-		 * @type Object
+-		 * @readonly
+-		 **/
+-		this.position = null;
+-
+-		// private properties:
+-		/**
+-		 * @property _paused
+-		 * @type Boolean
+-		 * @protected
+-		 **/
+-		this._paused = false;
+-
+-		/**
+-		 * @property _tweens
+-		 * @type Array[Tween]
+-		 * @protected
+-		 **/
+-		this._tweens = [];
+-
+-		/**
+-		 * @property _labels
+-		 * @type Object
+-		 * @protected
+-		 **/
+-		this._labels = null;
+-
+-		/**
+-		 * @property _labelList
+-		 * @type Array[Object]
+-		 * @protected
+-		 **/
+-		this._labelList = null;
+-
+-		/**
+-		 * @property _prevPosition
+-		 * @type Number
+-		 * @default 0
+-		 * @protected
+-		 **/
+-		this._prevPosition = 0;
+-
+-		/**
+-		 * @property _prevPos
+-		 * @type Number
+-		 * @default -1
+-		 * @protected
+-		 **/
+-		this._prevPos = -1;
+-
+-		/**
+-		 * @property _useTicks
+-		 * @type Boolean
+-		 * @default false
+-		 * @protected
+-		 **/
+-		this._useTicks = false;
+-		
+-		/**
+-		 * Indicates whether the timeline is currently registered with Tween.
+-		 * @property _registered
+-		 * @type {boolean}
+-		 * @default false
+-		 * @protected
+-		 */
+-		this._registered = false;
+-
+-
+-		if (props) {
+-			this._useTicks = props.useTicks;
+-			this.loop = props.loop;
+-			this.ignoreGlobalPause = props.ignoreGlobalPause;
+-			props.onChange&&this.addEventListener("change", props.onChange);
+-		}
+-		if (tweens) { this.addTween.apply(this, tweens); }
+-		this.setLabels(labels);
+-		if (props&&props.paused) { this._paused=true; }
+-		else { createjs.Tween._register(this,true); }
+-		if (props&&props.position!=null) { this.setPosition(props.position, createjs.Tween.NONE); }
+-		
+-	};
+-	
+-	var p = createjs.extend(Timeline, createjs.EventDispatcher);
+-
+-	// TODO: deprecated
+-	// p.initialize = function() {}; // searchable for devs wondering where it is. REMOVED. See docs for details.
+-
+-	
+-// events:
+-	/**
+-	 * Called whenever the timeline's position changes.
+-	 * @event change
+-	 * @since 0.5.0
+-	 **/
+-
+-
+-// public methods:
+-	/**
+-	 * Adds one or more tweens (or timelines) to this timeline. The tweens will be paused (to remove them from the
+-	 * normal ticking system) and managed by this timeline. Adding a tween to multiple timelines will result in
+-	 * unexpected behaviour.
+-	 * @method addTween
+-	 * @param {Tween} ...tween The tween(s) to add. Accepts multiple arguments.
+-	 * @return {Tween} The first tween that was passed in.
+-	 **/
+-	p.addTween = function(tween) {
+-		var l = arguments.length;
+-		if (l > 1) {
+-			for (var i=0; i<l; i++) { this.addTween(arguments[i]); }
+-			return arguments[0];
+-		} else if (l == 0) { return null; }
+-		this.removeTween(tween);
+-		this._tweens.push(tween);
+-		tween.setPaused(true);
+-		tween._paused = false;
+-		tween._useTicks = this._useTicks;
+-		if (tween.duration > this.duration) { this.duration = tween.duration; }
+-		if (this._prevPos >= 0) { tween.setPosition(this._prevPos, createjs.Tween.NONE); }
+-		return tween;
+-	};
+-
+-	/**
+-	 * Removes one or more tweens from this timeline.
+-	 * @method removeTween
+-	 * @param {Tween} ...tween The tween(s) to remove. Accepts multiple arguments.
+-	 * @return Boolean Returns `true` if all of the tweens were successfully removed.
+-	 **/
+-	p.removeTween = function(tween) {
+-		var l = arguments.length;
+-		if (l > 1) {
+-			var good = true;
+-			for (var i=0; i<l; i++) { good = good && this.removeTween(arguments[i]); }
+-			return good;
+-		} else if (l == 0) { return false; }
+-
+-		var tweens = this._tweens;
+-		var i = tweens.length;
+-		while (i--) {
+-			if (tweens[i] == tween) {
+-				tweens.splice(i, 1);
+-				if (tween.duration >= this.duration) { this.updateDuration(); }
+-				return true;
+-			}
+-		}
+-		return false;
+-	};
+-
+-	/**
+-	 * Adds a label that can be used with {{#crossLink "Timeline/gotoAndPlay"}}{{/crossLink}}/{{#crossLink "Timeline/gotoAndStop"}}{{/crossLink}}.
+-	 * @method addLabel
+-	 * @param {String} label The label name.
+-	 * @param {Number} position The position this label represents.
+-	 **/
+-	p.addLabel = function(label, position) {
+-		this._labels[label] = position;
+-		var list = this._labelList;
+-		if (list) {
+-			for (var i= 0,l=list.length; i<l; i++) { if (position < list[i].position) { break; } }
+-			list.splice(i, 0, {label:label, position:position});
+-		}
+-	};
+-
+-	/**
+-	 * Defines labels for use with gotoAndPlay/Stop. Overwrites any previously set labels.
+-	 * @method setLabels
+-	 * @param {Object} o An object defining labels for using {{#crossLink "Timeline/gotoAndPlay"}}{{/crossLink}}/{{#crossLink "Timeline/gotoAndStop"}}{{/crossLink}}
+-	 * in the form `{labelName:time}` where time is in milliseconds (or ticks if `useTicks` is `true`).
+-	 **/
+-	p.setLabels = function(o) {
+-		this._labels = o ?  o : {};
+-	};
+-
+-	/**
+-	 * Returns a sorted list of the labels defined on this timeline.
+-	 * @method getLabels
+-	 * @return {Array[Object]} A sorted array of objects with label and position properties.
+-	 **/
+-	p.getLabels = function() {
+-		var list = this._labelList;
+-		if (!list) {
+-			list = this._labelList = [];
+-			var labels = this._labels;
+-			for (var n in labels) {
+-				list.push({label:n, position:labels[n]});
+-			}
+-			list.sort(function (a,b) { return a.position- b.position; });
+-		}
+-		return list;
+-	};
+-
+-	/**
+-	 * Returns the name of the label on or immediately before the current position. For example, given a timeline with
+-	 * two labels, "first" on frame index 4, and "second" on frame 8, getCurrentLabel would return:
+-	 * <UL>
+-	 * 		<LI>null if the current position is 2.</LI>
+-	 * 		<LI>"first" if the current position is 4.</LI>
+-	 * 		<LI>"first" if the current position is 7.</LI>
+-	 * 		<LI>"second" if the current position is 15.</LI>
+-	 * </UL>
+-	 * @method getCurrentLabel
+-	 * @return {String} The name of the current label or null if there is no label
+-	 **/
+-	p.getCurrentLabel = function() {
+-		var labels = this.getLabels();
+-		var pos = this.position;
+-		var l = labels.length;
+-		if (l) {
+-			for (var i = 0; i<l; i++) { if (pos < labels[i].position) { break; } }
+-			return (i==0) ? null : labels[i-1].label;
+-		}
+-		return null;
+-	};
+-
+-	/**
+-	 * Unpauses this timeline and jumps to the specified position or label.
+-	 * @method gotoAndPlay
+-	 * @param {String|Number} positionOrLabel The position in milliseconds (or ticks if `useTicks` is `true`)
+-	 * or label to jump to.
+-	 **/
+-	p.gotoAndPlay = function(positionOrLabel) {
+-		this.setPaused(false);
+-		this._goto(positionOrLabel);
+-	};
+-
+-	/**
+-	 * Pauses this timeline and jumps to the specified position or label.
+-	 * @method gotoAndStop
+-	 * @param {String|Number} positionOrLabel The position in milliseconds (or ticks if `useTicks` is `true`) or label
+-	 * to jump to.
+-	 **/
+-	p.gotoAndStop = function(positionOrLabel) {
+-		this.setPaused(true);
+-		this._goto(positionOrLabel);
+-	};
+-
+-	/**
+-	 * Advances the timeline to the specified position.
+-	 * @method setPosition
+-	 * @param {Number} value The position to seek to in milliseconds (or ticks if `useTicks` is `true`).
+-	 * @param {Number} [actionsMode] parameter specifying how actions are handled. See the Tween {{#crossLink "Tween/setPosition"}}{{/crossLink}}
+-	 * method for more details.
+-	 * @return {Boolean} Returns `true` if the timeline is complete (ie. the full timeline has run & {{#crossLink "Timeline/loop:property"}}{{/crossLink}}
+-	 * is `false`).
+-	 **/
+-	p.setPosition = function(value, actionsMode) {
+-		var t = this._calcPosition(value);
+-		var end = !this.loop && value >= this.duration;
+-		if (t == this._prevPos) { return end; }
+-		this._prevPosition = value;
+-		this.position = this._prevPos = t; // in case an action changes the current frame.
+-		for (var i=0, l=this._tweens.length; i<l; i++) {
+-			this._tweens[i].setPosition(t, actionsMode);
+-			if (t != this._prevPos) { return false; } // an action changed this timeline's position.
+-		}
+-		if (end) { this.setPaused(true); }
+-		this.dispatchEvent("change");
+-		return end;
+-	};
+-
+-	/**
+-	 * Pauses or plays this timeline.
+-	 * @method setPaused
+-	 * @param {Boolean} value Indicates whether the tween should be paused (`true`) or played (`false`).
+-	 **/
+-	p.setPaused = function(value) {
+-		this._paused = !!value; 
+-		createjs.Tween._register(this, !value);
+-	};
+-
+-	/**
+-	 * Recalculates the duration of the timeline. The duration is automatically updated when tweens are added or removed,
+-	 * but this method is useful if you modify a tween after it was added to the timeline.
+-	 * @method updateDuration
+-	 **/
+-	p.updateDuration = function() {
+-		this.duration = 0;
+-		for (var i=0,l=this._tweens.length; i<l; i++) {
+-			var tween = this._tweens[i];
+-			if (tween.duration > this.duration) { this.duration = tween.duration; }
+-		}
+-	};
+-
+-	/**
+-	 * Advances this timeline by the specified amount of time in milliseconds (or ticks if `useTicks` is `true`).
+-	 * This is normally called automatically by the Tween engine (via the {{#crossLink "Tween/tick:event"}}{{/crossLink}}
+-	 * event), but is exposed for advanced uses.
+-	 * @method tick
+-	 * @param {Number} delta The time to advance in milliseconds (or ticks if useTicks is true).
+-	 **/
+-	p.tick = function(delta) {
+-		this.setPosition(this._prevPosition+delta);
+-	};
+-
+-	/**
+-	 * If a numeric position is passed, it is returned unchanged. If a string is passed, the position of the
+-	 * corresponding frame label will be returned, or `null` if a matching label is not defined.
+-	 * @method resolve
+-	 * @param {String|Number} positionOrLabel A numeric position value or label string.
+-	 **/
+-	p.resolve = function(positionOrLabel) {
+-		var pos = Number(positionOrLabel);
+-		if (isNaN(pos)) { pos = this._labels[positionOrLabel]; }
+-		return pos;
+-	};
+-
+-	/**
+-	* Returns a string representation of this object.
+-	* @method toString
+-	* @return {String} a string representation of the instance.
+-	**/
+-	p.toString = function() {
+-		return "[Timeline]";
+-	};
+-
+-	/**
+-	 * @method clone
+-	 * @protected
+-	 **/
+-	p.clone = function() {
+-		throw("Timeline can not be cloned.")
+-	};
+-
+-// private methods:
+-	/**
+-	 * @method _goto
+-	 * @param {String | Number} positionOrLabel
+-	 * @protected
+-	 **/
+-	p._goto = function(positionOrLabel) {
+-		var pos = this.resolve(positionOrLabel);
+-		if (pos != null) { this.setPosition(pos); }
+-	};
+-	
+-	/**
+-	 * @method _calcPosition
+-	 * @param {Number} value
+-	 * @return {Number}
+-	 * @protected
+-	 **/
+-	p._calcPosition = function(value) {
+-		if (value < 0) { return 0; }
+-		if (value < this.duration) { return value; }
+-		return this.loop ? value%this.duration : this.duration;
+-	};
+-
+-	createjs.Timeline = createjs.promote(Timeline, "EventDispatcher");
+-
+-}());
+diff --git a/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/Tween.js b/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/Tween.js
+index 8945830..f54bc42 100644
+--- a/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/Tween.js
++++ b/externs/createjs/target/downloads/TweenJS-0.6.2/src/tweenjs/Tween.js
+@@ -1,941 +1,279 @@
+-/*
+-* Tween
+-* Visit http://createjs.com/ for documentation, updates and examples.
+-*
+-* Copyright (c) 2010 gskinner.com, inc.
+-*
+-* Permission is hereby granted, free of charge, to any person
+-* obtaining a copy of this software and associated documentation
+-* files (the "Software"), to deal in the Software without
+-* restriction, including without limitation the rights to use,
+-* copy, modify, merge, publish, distribute, sublicense, and/or sell
+-* copies of the Software, and to permit persons to whom the
+-* Software is furnished to do so, subject to the following
+-* conditions:
+-*
+-* The above copyright notice and this permission notice shall be
+-* included in all copies or substantial portions of the Software.
+-*
+-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+-* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+-* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+-* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+-* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+-* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+-* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+-* OTHER DEALINGS IN THE SOFTWARE.
+-*/
+-
++/** @fileoverview Auto-generated Externs files
++ * @externs
++ */
+ /**
+- * The TweenJS Javascript library provides a simple but powerful tweening interface. It supports tweening of both
+- * numeric object properties & CSS style properties, and allows you to chain tweens and actions together to create
+- * complex sequences.
+- *
+- * <h4>Simple Tween</h4>
+- * This tween will tween the target's alpha property from 0 to 1 for 1s then call the <code>handleComplete</code> function.
+- *
+- *	    target.alpha = 0;
+- *	    createjs.Tween.get(target).to({alpha:1}, 1000).call(handleComplete);
+- *	    function handleComplete() {
+- *	    	//Tween complete
+- *	    }
+- *
+- * <strong>Arguments and Scope</strong>
+- * Tween also supports a `call()` with arguments and/or a scope. If no scope is passed, then the function is called
+- * anonymously (normal JavaScript behaviour). The scope is useful for maintaining scope when doing object-oriented
+- * style development.
+- *
+- *      createjs.Tween.get(target).to({alpha:0})
+- *          .call(handleComplete, [argument1, argument2], this);
+- *
+- * <h4>Chainable Tween</h4>
+- * This tween will wait 0.5s, tween the target's alpha property to 0 over 1s, set it's visible to false, then call the
+- * <code>handleComplete</code> function.
+- *
+- *	    target.alpha = 1;
+- *	    createjs.Tween.get(target).wait(500).to({alpha:0, visible:false}, 1000).call(handleComplete);
+- *	    function handleComplete() {
+- *	    	//Tween complete
+- *	    }
+- *
+- * <h4>Browser Support</h4>
+- * TweenJS will work in modern browsers. To use TweenJS with IE8 and earlier, use an older version of PreloadJS
+- * (version 0.4.1 and earlier).
++ * A Tween instance tweens properties for a single target. Instance methods can be chained for easy construction and sequencing:
++ * 
++ * <h4>Example</h4>
++ * 
++ * target.alpha = 1;
++ * createjs.createjs.Tween.get(target)
++ * .wait(500)
++ * .to({alpha:0, visible:false}, 1000)
++ * .call(handleComplete);
++ * function handleComplete() {
++ * //Tween complete
++ * }
++ * 
++ * Multiple tweens can point to the same instance, however if they affect the same properties there could be unexpected
++ * behaviour. To stop all tweens on an object, use {{#crossLink "Tween/removeTweens"}}{{/crossLink}} or pass `override:true`
++ * in the props argument.
++ * 
++ * createjs.createjs.Tween.get(target, {override:true}).to({x:100});
++ * 
++ * Subscribe to the {{#crossLink "Tween/change:event"}}{{/crossLink}} event to get notified when a property of the
++ * target is changed.
++ * 
++ * createjs.createjs.Tween.get(target, {override:true}).to({x:100}).addEventListener("change", handleChange);
++ * function handleChange(event) {
++ * // The tween changed.
++ * }
++ * 
++ * See the Tween {{#crossLink "Tween/get"}}{{/crossLink}} method for additional param documentation.
+  *
+- * @module TweenJS
+- * @main TweenJS
++ * @see [Tween]
++ * @constructor  * @extends createjs.EventDispatcher
+  */
++createjs.Tween = function (target, props, pluginData) {}
++
++    /**
++     * Advances all tweens. This typically uses the {{#crossLink "Ticker"}}{{/crossLink}} class, but you can call it
++     * manually if you prefer to use your own "heartbeat" implementation.
++     *
++     * @param {(number|null)} delta The change in time in milliseconds since the last tick. Required unless all tweens have `useTicks` set to true.
++     * @param {(boolean|null)} paused Indicates whether a global pause is in effect. Tweens with {{#crossLink "Tween/ignoreGlobalPause:property"}}{{/crossLink}} will ignore this, but all others will pause if this is `true`.
++     * @see [Tween]
++     */
++createjs.Tween.prototype.tick = function (delta, paused) {  }
++
++    /**
++     * Stop and remove all existing tweens.
++     *
++     * @see [Tween]
++     */
++createjs.Tween.prototype.removeAllTweens = function () {  }
++
++    /**
++     * Returns a new tween instance. This is functionally identical to using "new Tween(...)", but looks cleaner
++     * with the chained syntax of TweenJS.
++     * <h4>Example</h4>
++     * 
++     * var tween = createjs.createjs.Tween.get(target);
++     *
++     * @param {(Object|null)} target The target object that will have its properties tweened.
++     * @param {(Object|null|undefined)} props The configuration properties to apply to this tween instance (ex. `{loop:true, paused:true}`). All properties default to `false`. Supported props are: <UL> <LI> loop: sets the loop property on this tween.</LI> <LI> useTicks: uses ticks for all durations instead of milliseconds.</LI> <LI> ignoreGlobalPause: sets the {{#crossLink "Tween/ignoreGlobalPause:property"}}{{/crossLink}} property on this tween.</LI> <LI> override: if true, `createjs.createjs.Tween.removeTweens(target)` will be called to remove any other tweens with the same target. <LI> paused: indicates whether to start the tween paused.</LI> <LI> position: indicates the initial position for this tween.</LI> <LI> onChange: specifies a listener for the {{#crossLink "Tween/change:event"}}{{/crossLink}} event.</LI> </UL>
++     * @param {(Object|null|undefined)} pluginData An object containing data for use by installed plugins. See individual plugins' documentation for details.
++     * @param {(boolean|null|undefined)} override If true, any previous tweens on the same target will be removed. This is the same as calling `createjs.Tween.removeTweens(target)`.
++     * @see [Tween]
++     * @returns {(Tween|null)} A reference to the created tween. Additional chained tweens, method calls, or callbacks can be applied to the returned tween instance.
++     */
++createjs.Tween.prototype.get = function (target, props, pluginData, override) {  return null; }
++
++    /**
++     * Handle events that result from Tween being used as an event handler. This is included to allow Tween to handle
++     * {{#crossLink "Ticker/tick:event"}}{{/crossLink}} events from the createjs {{#crossLink "Ticker"}}{{/crossLink}}.
++     * No other events are handled in createjs.Tween.
++     *
++     * @param {(Object|null)} event An event object passed in by the {{#crossLink "EventDispatcher"}}{{/crossLink}}. Will usually be of type "tick".
++     * @see [Tween]
++     */
++createjs.Tween.prototype.handleEvent = function (event) {  }
++
++    /**
++     * Indicates whether there are any active tweens (and how many) on the target object (if specified) or in general.
++     *
++     * @param {(Object|null|undefined)} target The target to check for active tweens. If not specified, the return value will indicate if there are any active tweens on any target.
++     * @see [Tween]
++     * @returns {(boolean|null)} If there are active tweens.
++     */
++createjs.Tween.prototype.hasActiveTweens = function (target) {  return null; }
++
++    /**
++     * Installs a plugin, which can modify how certain properties are handled when tweened. See the {{#crossLink "CSSPlugin"}}{{/crossLink}}
++     * for an example of how to write TweenJS plugins.
++     *
++     * @param {(Object|null)} plugin The plugin class to install
++     * @param {(Array|null)} properties An array of properties that the plugin will handle.
++     * @see [Tween]
++     */
++createjs.Tween.prototype.installPlugin = function (plugin, properties) {  }
++
++    /**
++     * Removes all existing tweens for a target. This is called automatically by new tweens if the `override`
++     * property is `true`.
++     *
++     * @param {(Object|null)} target The target object to remove existing tweens from.
++     * @see [Tween]
++     */
++createjs.Tween.prototype.removeTweens = function (target) {  }
++
++    /**
++     * Registers or unregisters a tween with the ticking system.
++     *
++     * @param {(Tween|null)} tween The tween instance to register or unregister.
++     * @param {(boolean|null)} value If `true`, the tween is registered. If `false` the tween is unregistered.
++     * @see [Tween]
++     */
++createjs.Tween.prototype._register = function (tween, value) {  }
++
++    /**
++     * @param {(Object|null)} o 
++     * @see [Tween]
++     */
++createjs.Tween._addAction = function (o) {  }
++
++    /**
++     * Queues a tween from the current values to the target properties. Set duration to 0 to jump to these value.
++     * Numeric properties will be tweened from their current value in the tween to the target value. Non-numeric
++     * properties will be set at the end of the specified duration.
++     * <h4>Example</h4>
++     * 
++     * createjs.createjs.Tween.get(target).to({alpha:0}, 1000);
++     *
++     * @param {(Object|null)} props An object specifying property target values for this tween (Ex. `{x:300}` would tween the x property of the target to 300).
++     * @param {(number|null|undefined)} duration The duration of the wait in milliseconds (or in ticks if `useTicks` is true).
++     * @param {(Function|null|undefined)} ease The easing function to use for this tween. See the {{#crossLink "Ease"}}{{/crossLink}} class for a list of built-in ease functions.
++     * @see [Tween]
++     * @returns {(Tween|null)} This tween instance (for chaining calls).
++     */
++createjs.Tween.to = function (props, duration, ease) {  return null; }
++
++    /**
++     * Queues an action to call the specified function.
++     * <h4>Example</h4>
++     * 
++     * //would call myFunction() after 1 second.
++     * mycreatejs.Tween.wait(1000).call(myFunction);
++     *
++     * @param {(Function|null)} callback The function to call.
++     * @param {(Array|null|undefined)} params . The parameters to call the function with. If this is omitted, then the function will be called with a single param pointing to this tween.
++     * @param {(Object|null|undefined)} scope . The scope to call the function in. If omitted, it will be called in the target's scope.
++     * @see [Tween]
++     * @returns {(Tween|null)} This tween instance (for chaining calls).
++     */
++createjs.Tween.call = function (callback, params, scope) {  return null; }
++
++    /**
++     * @see [Tween]
++     */
++createjs.Tween.clone = function () {  }
++
++    /**
++     * @param {(Object|null)} o 
++     * @see [Tween]
++     */
++createjs.Tween._appendQueueProps = function (o) {  }
++
++    /**
++     * @param {(number|null)} startPos 
++     * @param {(number|null)} endPos 
++     * @param {(boolean|null)} includeStart 
++     * @see [Tween]
++     */
++createjs.Tween._runActions = function (startPos, endPos, includeStart) {  }
++
++    /**
++     * Queues an action to set the specified props on the specified target. If target is null, it will use this tween's
++     * target.
++     * <h4>Example</h4>
++     * 
++     * mycreatejs.Tween.wait(1000).set({visible:false},foo);
++     *
++     * @param {(Object|null)} props The properties to set (ex. `{visible:false}`).
++     * @param {(Object|null|undefined)} target The target to set the properties on. If omitted, they will be set on the tween's target.
++     * @see [Tween]
++     * @returns {(Tween|null)} This tween instance (for chaining calls).
++     */
++createjs.Tween.set = function (props, target) {  return null; }
++
++    /**
++     * Queues an action to play (unpause) the specified tween. This enables you to sequence multiple tweens.
++     * <h4>Example</h4>
++     * 
++     * mycreatejs.Tween.to({x:100},500).play(otherTween);
++     *
++     * @param {(Tween|null)} tween The tween to play.
++     * @see [Tween]
++     * @returns {(Tween|null)} This tween instance (for chaining calls).
++     */
++createjs.Tween.play = function (tween) {  return null; }
++
++    /**
++     * Advances the tween to a specified position.
++     *
++     * @param {(number|null)} value The position to seek to in milliseconds (or ticks if useTicks is true).
++     * @param {(number|null|undefined)} actionsMode Specifies how actions are handled (ie. call, set, play, pause): <ul> <li>{{#crossLink "Tween/NONE:property"}}{{/crossLink}} (0) - run no actions.</li> <li>{{#crossLink "Tween/LOOP:property"}}{{/crossLink}} (1) - if new position is less than old, then run all actions between old and duration, then all actions between 0 and new.</li> <li>{{#crossLink "Tween/REVERSE:property"}}{{/crossLink}} (2) - if new position is less than old, run all actions between them in reverse.</li> </ul>
++     * @see [Tween]
++     * @returns {(boolean|null)} Returns `true` if the tween is complete (ie. the full tween has run & {{#crossLink "Tween/loop:property"}}{{/crossLink}} is `false`).
++     */
++createjs.Tween.setPosition = function (value, actionsMode) {  return null; }
++
++    /**
++     * @param {(Object|null)} props 
++     * @param {(Object|null)} o 
++     * @see [Tween]
++     */
++createjs.Tween._set = function (props, o) {  }
++
++    /**
++     * Queues a wait (essentially an empty tween).
++     * <h4>Example</h4>
++     * 
++     * //This tween will wait 1s before alpha is faded to 0.
++     * createjs.createjs.Tween.get(target).wait(1000).to({alpha:0}, 1000);
++     *
++     * @param {(number|null)} duration The duration of the wait in milliseconds (or in ticks if `useTicks` is true).
++     * @param {(boolean|null|undefined)} passive Tween properties will not be updated during a passive wait. This is mostly useful for use with {{#crossLink "Timeline"}}{{/crossLink}} instances that contain multiple tweens affecting the same target at different times.
++     * @see [Tween]
++     * @returns {(Tween|null)} This tween instance (for chaining calls).
++     */
++createjs.Tween.wait = function (duration, passive) {  return null; }
++
++    /**
++     * Pauses or plays this tween.
++     *
++     * @param {(boolean|null|undefined)} value Indicates whether the tween should be paused (`true`) or played (`false`).
++     * @see [Tween]
++     * @returns {(Tween|null)} This tween instance (for chaining calls)
++     */
++createjs.Tween.setPaused = function (value) {  return null; }
++
++    /**
++     * Queues an action to pause the specified tween.
++     *
++     * @param {(Tween|null)} tween The tween to pause. If null, it pauses this tween.
++     * @see [Tween]
++     * @returns {(Tween|null)} This tween instance (for chaining calls)
++     */
++createjs.Tween.pause = function (tween) {  return null; }
++
++    /**
++     * @param {(Object|null)} step 
++     * @param {(number|null)} ratio 
++     * @see [Tween]
++     */
++createjs.Tween._updateTargetProps = function (step, ratio) {  }
++
++    /**
++     * Advances this tween by the specified amount of time in milliseconds (or ticks if`useTicks` is `true`).
++     * This is normally called automatically by the Tween engine (via {{#crossLink "Tween/tick"}}{{/crossLink}}), but is
++     * exposed for advanced uses.
++     *
++     * @param {(number|null)} delta The time to advance in milliseconds (or ticks if `useTicks` is `true`).
++     * @see [Tween]
++     */
++createjs.Tween.tick = function (delta) {  }
++
++    /**
++     * @param {(Object|null)} props 
++     * @see [Tween]
++     */
++createjs.Tween._cloneProps = function (props) {  }
++
++
++    /**
++     * @param {(Object|null)} o 
++     * @see [Tween]
++     */
++createjs.Tween._addStep = function (o) {  }
+ 
+-// TODO: possibly add a END actionsMode (only runs actions that == position)?
+-// TODO: evaluate a way to decouple paused from tick registration.
+-
+-// namespace:
+-this.createjs = this.createjs||{};
+-
+-(function() {
+-	"use strict";
+-
+-
+-// constructor
+-	/**
+-	 * A Tween instance tweens properties for a single target. Instance methods can be chained for easy construction and sequencing:
+-	 *
+-	 * <h4>Example</h4>
+-	 *
+-	 *      target.alpha = 1;
+-	 *	    createjs.Tween.get(target)
+-	 *	         .wait(500)
+-	 *	         .to({alpha:0, visible:false}, 1000)
+-	 *	         .call(handleComplete);
+-	 *	    function handleComplete() {
+-	 *	    	//Tween complete
+-	 *	    }
+-	 *
+-	 * Multiple tweens can point to the same instance, however if they affect the same properties there could be unexpected
+-	 * behaviour. To stop all tweens on an object, use {{#crossLink "Tween/removeTweens"}}{{/crossLink}} or pass `override:true`
+-	 * in the props argument.
+-	 *
+-	 *      createjs.Tween.get(target, {override:true}).to({x:100});
+-	 *
+-	 * Subscribe to the {{#crossLink "Tween/change:event"}}{{/crossLink}} event to get notified when a property of the
+-	 * target is changed.
+-	 *
+-	 *      createjs.Tween.get(target, {override:true}).to({x:100}).addEventListener("change", handleChange);
+-	 *      function handleChange(event) {
+-	 *          // The tween changed.
+-	 *      }
+-	 *
+-	 * See the Tween {{#crossLink "Tween/get"}}{{/crossLink}} method for additional param documentation.
+-	 * @class Tween
+-	 * @param {Object} target The target object that will have its properties tweened.
+-	 * @param {Object} [props] The configuration properties to apply to this tween instance (ex. `{loop:true, paused:true}`.
+-	 * All properties default to false. Supported props are:<UL>
+-	 *    <LI> loop: sets the loop property on this tween.</LI>
+-	 *    <LI> useTicks: uses ticks for all durations instead of milliseconds.</LI>
+-	 *    <LI> ignoreGlobalPause: sets the {{#crossLink "Tween/ignoreGlobalPause:property"}}{{/crossLink}} property on this tween.</LI>
+-	 *    <LI> override: if true, `Tween.removeTweens(target)` will be called to remove any other tweens with the same target.
+-	 *    <LI> paused: indicates whether to start the tween paused.</LI>
+-	 *    <LI> position: indicates the initial position for this tween.</LI>
+-	 *    <LI> onChange: specifies a listener for the "change" event.</LI>
+-	 * </UL>
+-	 * @param {Object} [pluginData] An object containing data for use by installed plugins. See individual
+-	 * plugins' documentation for details.
+-	 * @extends EventDispatcher
+-	 * @constructor
+-	 */
+-	function Tween(target, props, pluginData) {
+-
+-	// public properties:
+-		/**
+-		 * Causes this tween to continue playing when a global pause is active. For example, if TweenJS is using {{#crossLink "Ticker"}}{{/crossLink}},
+-		 * then setting this to true (the default) will cause this tween to be paused when <code>Ticker.setPaused(true)</code>
+-		 * is called. See the Tween {{#crossLink "Tween/tick"}}{{/crossLink}} method for more info. Can be set via the props
+-		 * parameter.
+-		 * @property ignoreGlobalPause
+-		 * @type Boolean
+-		 * @default false
+-		 */
+-		this.ignoreGlobalPause = false;
+-	
+-		/**
+-		 * If true, the tween will loop when it reaches the end. Can be set via the props param.
+-		 * @property loop
+-		 * @type {Boolean}
+-		 * @default false
+-		 */
+-		this.loop = false;
+-	
+-		/**
+-		 * Specifies the total duration of this tween in milliseconds (or ticks if useTicks is true).
+-		 * This value is automatically updated as you modify the tween. Changing it directly could result in unexpected
+-		 * behaviour.
+-		 * @property duration
+-		 * @type {Number}
+-		 * @default 0
+-		 * @readonly
+-		 */
+-		this.duration = 0;
+-	
+-		/**
+-		 * Allows you to specify data that will be used by installed plugins. Each plugin uses this differently, but in general
+-		 * you specify data by setting it to a property of pluginData with the same name as the plugin class.
+-		 * @example
+-		 *	myTween.pluginData.PluginClassName = data;
+-		 * <br/>
+-		 * Also, most plugins support a property to enable or disable them. This is typically the plugin class name followed by "_enabled".<br/>
+-		 * @example
+-		 *	myTween.pluginData.PluginClassName_enabled = false;<br/>
+-		 * <br/>
+-		 * Some plugins also store instance data in this object, usually in a property named _PluginClassName.
+-		 * See the documentation for individual plugins for more details.
+-		 * @property pluginData
+-		 * @type {Object}
+-		 */
+-		this.pluginData = pluginData || {};
+-	
+-		/**
+-		 * The target of this tween. This is the object on which the tweened properties will be changed. Changing
+-		 * this property after the tween is created will not have any effect.
+-		 * @property target
+-		 * @type {Object}
+-		 * @readonly
+-		 */
+-		this.target = target;
+-	
+-		/**
+-		 * The current normalized position of the tween. This will always be a value between 0 and duration.
+-		 * Changing this property directly will have no effect.
+-		 * @property position
+-		 * @type {Object}
+-		 * @readonly
+-		 */
+-		this.position = null;
+-	
+-		/**
+-		 * Indicates the tween's current position is within a passive wait.
+-		 * @property passive
+-		 * @type {Boolean}
+-		 * @default false
+-		 * @readonly
+-		 **/
+-		this.passive = false;
+-	
+-	// private properties:	
+-		/**
+-		 * @property _paused
+-		 * @type {Boolean}
+-		 * @default false
+-		 * @protected
+-		 */
+-		this._paused = false;
+-	
+-		/**
+-		 * @property _curQueueProps
+-		 * @type {Object}
+-		 * @protected
+-		 */
+-		this._curQueueProps = {};
+-	
+-		/**
+-		 * @property _initQueueProps
+-		 * @type {Object}
+-		 * @protected
+-		 */
+-		this._initQueueProps = {};
+-	
+-		/**
+-		 * @property _steps
+-		 * @type {Array}
+-		 * @protected
+-		 */
+-		this._steps = [];
+-	
+-		/**
+-		 * @property _actions
+-		 * @type {Array}
+-		 * @protected
+-		 */
+-		this._actions = [];
+-	
+-		/**
+-		 * Raw position.
+-		 * @property _prevPosition
+-		 * @type {Number}
+-		 * @default 0
+-		 * @protected
+-		 */
+-		this._prevPosition = 0;
+-	
+-		/**
+-		 * The position within the current step.
+-		 * @property _stepPosition
+-		 * @type {Number}
+-		 * @default 0
+-		 * @protected
+-		 */
+-		this._stepPosition = 0; // this is needed by MovieClip.
+-	
+-		/**
+-		 * Normalized position.
+-		 * @property _prevPos
+-		 * @type {Number}
+-		 * @default -1
+-		 * @protected
+-		 */
+-		this._prevPos = -1;
+-	
+-		/**
+-		 * @property _target
+-		 * @type {Object}
+-		 * @protected
+-		 */
+-		this._target = target;
+-	
+-		/**
+-		 * @property _useTicks
+-		 * @type {Boolean}
+-		 * @default false
+-		 * @protected
+-		 */
+-		this._useTicks = false;
+-	
+-		/**
+-		 * @property _inited
+-		 * @type {boolean}
+-		 * @default false
+-		 * @protected
+-		 */
+-		this._inited = false;
+-		
+-		/**
+-		 * Indicates whether the tween is currently registered with Tween.
+-		 * @property _registered
+-		 * @type {boolean}
+-		 * @default false
+-		 * @protected
+-		 */
+-		this._registered = false;
+-
+-
+-		if (props) {
+-			this._useTicks = props.useTicks;
+-			this.ignoreGlobalPause = props.ignoreGlobalPause;
+-			this.loop = props.loop;
+-			props.onChange && this.addEventListener("change", props.onChange);
+-			if (props.override) { Tween.removeTweens(target); }
+-		}
+-		if (props&&props.paused) { this._paused=true; }
+-		else { createjs.Tween._register(this,true); }
+-		if (props&&props.position!=null) { this.setPosition(props.position, Tween.NONE); }
+-
+-	};
+-
+-	var p = createjs.extend(Tween, createjs.EventDispatcher);
+-
+-	// TODO: deprecated
+-	// p.initialize = function() {}; // searchable for devs wondering where it is. REMOVED. See docs for details.
+-	
+-
+-// static properties
+-	/**
+-	 * Constant defining the none actionsMode for use with setPosition.
+-	 * @property NONE
+-	 * @type Number
+-	 * @default 0
+-	 * @static
+-	 */
+-	Tween.NONE = 0;
+-
+-	/**
+-	 * Constant defining the loop actionsMode for use with setPosition.
+-	 * @property LOOP
+-	 * @type Number
+-	 * @default 1
+-	 * @static
+-	 */
+-	Tween.LOOP = 1;
+-
+-	/**
+-	 * Constant defining the reverse actionsMode for use with setPosition.
+-	 * @property REVERSE
+-	 * @type Number
+-	 * @default 2
+-	 * @static
+-	 */
+-	Tween.REVERSE = 2;
+-
+-	/**
+-	 * Constant returned by plugins to tell the tween not to use default assignment.
+-	 * @property IGNORE
+-	 * @type Object
+-	 * @static
+-	 */
+-	Tween.IGNORE = {};
+-
+-	/**
+-	 * @property _listeners
+-	 * @type Array[Tween]
+-	 * @static
+-	 * @protected
+-	 */
+-	Tween._tweens = [];
+-
+-	/**
+-	 * @property _plugins
+-	 * @type Object
+-	 * @static
+-	 * @protected
+-	 */
+-	Tween._plugins = {};
+-
+-
+-// static methods	
+-	/**
+-	 * Returns a new tween instance. This is functionally identical to using "new Tween(...)", but looks cleaner
+-	 * with the chained syntax of TweenJS.
+-	 * <h4>Example</h4>
+-	 *
+-	 *		var tween = createjs.Tween.get(target);
+-	 *
+-	 * @method get
+-	 * @param {Object} target The target object that will have its properties tweened.
+-	 * @param {Object} [props] The configuration properties to apply to this tween instance (ex. `{loop:true, paused:true}`).
+-	 * All properties default to `false`. Supported props are:
+-	 * <UL>
+-	 *    <LI> loop: sets the loop property on this tween.</LI>
+-	 *    <LI> useTicks: uses ticks for all durations instead of milliseconds.</LI>
+-	 *    <LI> ignoreGlobalPause: sets the {{#crossLink "Tween/ignoreGlobalPause:property"}}{{/crossLink}} property on
+-	 *    this tween.</LI>
+-	 *    <LI> override: if true, `createjs.Tween.removeTweens(target)` will be called to remove any other tweens with
+-	 *    the same target.
+-	 *    <LI> paused: indicates whether to start the tween paused.</LI>
+-	 *    <LI> position: indicates the initial position for this tween.</LI>
+-	 *    <LI> onChange: specifies a listener for the {{#crossLink "Tween/change:event"}}{{/crossLink}} event.</LI>
+-	 * </UL>
+-	 * @param {Object} [pluginData] An object containing data for use by installed plugins. See individual plugins'
+-	 * documentation for details.
+-	 * @param {Boolean} [override=false] If true, any previous tweens on the same target will be removed. This is the
+-	 * same as calling `Tween.removeTweens(target)`.
+-	 * @return {Tween} A reference to the created tween. Additional chained tweens, method calls, or callbacks can be
+-	 * applied to the returned tween instance.
+-	 * @static
+-	 */
+-	Tween.get = function(target, props, pluginData, override) {
+-		if (override) { Tween.removeTweens(target); }
+-		return new Tween(target, props, pluginData);
+-	};
+-
+-	/**
+-	 * Advances all tweens. This typically uses the {{#crossLink "Ticker"}}{{/crossLink}} class, but you can call it
+-	 * manually if you prefer to use your own "heartbeat" implementation.
+-	 * @method tick
+-	 * @param {Number} delta The change in time in milliseconds since the last tick. Required unless all tweens have
+-	 * `useTicks` set to true.
+-	 * @param {Boolean} paused Indicates whether a global pause is in effect. Tweens with {{#crossLink "Tween/ignoreGlobalPause:property"}}{{/crossLink}}
+-	 * will ignore this, but all others will pause if this is `true`.
+-	 * @static
+-	 */
+-	Tween.tick = function(delta, paused) {
+-		var tweens = Tween._tweens.slice(); // to avoid race conditions.
+-		for (var i=tweens.length-1; i>=0; i--) {
+-			var tween = tweens[i];
+-			if ((paused && !tween.ignoreGlobalPause) || tween._paused) { continue; }
+-			tween.tick(tween._useTicks?1:delta);
+-		}
+-	};
+-
+-	/**
+-	 * Handle events that result from Tween being used as an event handler. This is included to allow Tween to handle
+-	 * {{#crossLink "Ticker/tick:event"}}{{/crossLink}} events from the createjs {{#crossLink "Ticker"}}{{/crossLink}}.
+-	 * No other events are handled in Tween.
+-	 * @method handleEvent
+-	 * @param {Object} event An event object passed in by the {{#crossLink "EventDispatcher"}}{{/crossLink}}. Will
+-	 * usually be of type "tick".
+-	 * @private
+-	 * @static
+-	 * @since 0.4.2
+-	 */
+-	Tween.handleEvent = function(event) {
+-		if (event.type == "tick") {
+-			this.tick(event.delta, event.paused);
+-		}
+-	};
+-
+-	/**
+-	 * Removes all existing tweens for a target. This is called automatically by new tweens if the `override`
+-	 * property is `true`.
+-	 * @method removeTweens
+-	 * @param {Object} target The target object to remove existing tweens from.
+-	 * @static
+-	 */
+-	Tween.removeTweens = function(target) {
+-		if (!target.tweenjs_count) { return; }
+-		var tweens = Tween._tweens;
+-		for (var i=tweens.length-1; i>=0; i--) {
+-			var tween = tweens[i];
+-			if (tween._target == target) {
+-				tween._paused = true;
+-				tweens.splice(i, 1);
+-			}
+-		}
+-		target.tweenjs_count = 0;
+-	};
+-
+-	/**
+-	 * Stop and remove all existing tweens.
+-	 * @method removeAllTweens
+-	 * @static
+-	 * @since 0.4.1
+-	 */
+-	Tween.removeAllTweens = function() {
+-		var tweens = Tween._tweens;
+-		for (var i= 0, l=tweens.length; i<l; i++) {
+-			var tween = tweens[i];
+-			tween._paused = true;
+-			tween.target&&(tween.target.tweenjs_count = 0);
+-		}
+-		tweens.length = 0;
+-	};
+-
+-	/**
+-	 * Indicates whether there are any active tweens (and how many) on the target object (if specified) or in general.
+-	 * @method hasActiveTweens
+-	 * @param {Object} [target] The target to check for active tweens. If not specified, the return value will indicate
+-	 * if there are any active tweens on any target.
+-	 * @return {Boolean} If there are active tweens.
+-	 * @static
+-	 */
+-	Tween.hasActiveTweens = function(target) {
+-		if (target) { return target.tweenjs_count != null && !!target.tweenjs_count; }
+-		return Tween._tweens && !!Tween._tweens.length;
+-	};
+-
+-	/**
+-	 * Installs a plugin, which can modify how certain properties are handled when tweened. See the {{#crossLink "CSSPlugin"}}{{/crossLink}}
+-	 * for an example of how to write TweenJS plugins.
+-	 * @method installPlugin
+-	 * @static
+-	 * @param {Object} plugin The plugin class to install
+-	 * @param {Array} properties An array of properties that the plugin will handle.
+-	 */
+-	Tween.installPlugin = function(plugin, properties) {
+-		var priority = plugin.priority;
+-		if (priority == null) { plugin.priority = priority = 0; }
+-		for (var i=0,l=properties.length,p=Tween._plugins;i<l;i++) {
+-			var n = properties[i];
+-			if (!p[n]) { p[n] = [plugin]; }
+-			else {
+-				var arr = p[n];
+-				for (var j=0,jl=arr.length;j<jl;j++) {
+-					if (priority < arr[j].priority) { break; }
+-				}
+-				p[n].splice(j,0,plugin);
+-			}
+-		}
+-	};
+-
+-	/**
+-	 * Registers or unregisters a tween with the ticking system.
+-	 * @method _register
+-	 * @param {Tween} tween The tween instance to register or unregister.
+-	 * @param {Boolean} value If `true`, the tween is registered. If `false` the tween is unregistered.
+-	 * @static
+-	 * @protected
+-	 */
+-	Tween._register = function(tween, value) {
+-		var target = tween._target;
+-		var tweens = Tween._tweens;
+-		if (value && !tween._registered) {
+-			// TODO: this approach might fail if a dev is using sealed objects in ES5
+-			if (target) { target.tweenjs_count = target.tweenjs_count ? target.tweenjs_count+1 : 1; }
+-			tweens.push(tween);
+-			if (!Tween._inited && createjs.Ticker) { createjs.Ticker.addEventListener("tick", Tween); Tween._inited = true; }
+-		} else if (!value && tween._registered) {
+-			if (target) { target.tweenjs_count--; }
+-			var i = tweens.length;
+-			while (i--) {
+-				if (tweens[i] == tween) {
+-					tweens.splice(i, 1);
+-					break;
+-				}
+-			}
+-		}
+-		tween._registered = value;
+-	};
+-
+-
+-// events:
+-	/**
+-	 * Called whenever the tween's position changes.
+-	 * @event change
+-	 * @since 0.4.0
+-	 **/
+-	
+-
+-// public methods:
+-	/**
+-	 * Queues a wait (essentially an empty tween).
+-	 * <h4>Example</h4>
+-	 *
+-	 *		//This tween will wait 1s before alpha is faded to 0.
+-	 *		createjs.Tween.get(target).wait(1000).to({alpha:0}, 1000);
+-	 *
+-	 * @method wait
+-	 * @param {Number} duration The duration of the wait in milliseconds (or in ticks if `useTicks` is true).
+-	 * @param {Boolean} [passive] Tween properties will not be updated during a passive wait. This
+-	 * is mostly useful for use with {{#crossLink "Timeline"}}{{/crossLink}} instances that contain multiple tweens
+-	 * affecting the same target at different times.
+-	 * @return {Tween} This tween instance (for chaining calls).
+-	 **/
+-	p.wait = function(duration, passive) {
+-		if (duration == null || duration <= 0) { return this; }
+-		var o = this._cloneProps(this._curQueueProps);
+-		return this._addStep({d:duration, p0:o, e:this._linearEase, p1:o, v:passive});
+-	};
+-
+-	/**
+-	 * Queues a tween from the current values to the target properties. Set duration to 0 to jump to these value.
+-	 * Numeric properties will be tweened from their current value in the tween to the target value. Non-numeric
+-	 * properties will be set at the end of the specified duration.
+-	 * <h4>Example</h4>
+-	 *
+-	 *		createjs.Tween.get(target).to({alpha:0}, 1000);
+-	 *
+-	 * @method to
+-	 * @param {Object} props An object specifying property target values for this tween (Ex. `{x:300}` would tween the x
+-	 * property of the target to 300).
+-	 * @param {Number} [duration=0] The duration of the wait in milliseconds (or in ticks if `useTicks` is true).
+-	 * @param {Function} [ease="linear"] The easing function to use for this tween. See the {{#crossLink "Ease"}}{{/crossLink}}
+-	 * class for a list of built-in ease functions.
+-	 * @return {Tween} This tween instance (for chaining calls).
+-	 */
+-	p.to = function(props, duration, ease) {
+-		if (isNaN(duration) || duration < 0) { duration = 0; }
+-		return this._addStep({d:duration||0, p0:this._cloneProps(this._curQueueProps), e:ease, p1:this._cloneProps(this._appendQueueProps(props))});
+-	};
+-
+-	/**
+-	 * Queues an action to call the specified function

<TRUNCATED>

[6/8] git commit: [flex-falcon] [refs/heads/develop] - move downloads and unpacking of externs out to the extern builds and convert js to use a patch file

Posted by ah...@apache.org.
move downloads and unpacking of externs out to the extern builds and convert js to use a patch file


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

Branch: refs/heads/develop
Commit: a2dea0bc67ffa1d2fc9a70f6cf81406ce54bc764
Parents: b048e77
Author: Alex Harui <ah...@apache.org>
Authored: Mon May 23 22:00:25 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Mon May 23 22:00:25 2016 -0700

----------------------------------------------------------------------
 compiler-jx/src/main/resources/downloads.xml |   55 -
 externs/google_maps/build.xml                |    3 +-
 externs/jasmine/build.xml                    |    4 +-
 externs/jquery/build.xml                     |    2 +
 externs/js/build.xml                         |   41 +-
 externs/js/src/main/patch/js.patch           | 1143 +++++++++++++++++++++
 externs/node/build.xml                       |   31 +-
 7 files changed, 1218 insertions(+), 61 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/a2dea0bc/compiler-jx/src/main/resources/downloads.xml
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/resources/downloads.xml b/compiler-jx/src/main/resources/downloads.xml
index 6e908ee..2bbb1a9 100644
--- a/compiler-jx/src/main/resources/downloads.xml
+++ b/compiler-jx/src/main/resources/downloads.xml
@@ -223,63 +223,8 @@
     <copy file="${download.dir}/temp/${closure.name}.jar" toFile="${lib.dir}/${closure.dest.folder}/${closure.dest.filename}" verbose="true"/>
     <copy file="${download.dir}/temp/README.md" toFile="${lib.dir}/${closure.dest.folder}/README.md" verbose="true"/>
 
-    <antcall target="unpack.externs.if.not.installer" />
   </target>
   
-  <!-- no unjar task in ant_on_air yet, so do the unless test in this target so unjar doesn't get searched for -->
-  <target name="unpack.externs.if.not.installer" unless="installer" >
-      <antcall target="unpack.externs" />
-  </target>
-  
-  <target name="unpack.externs">
-    <mkdir dir="${download.dir}/temp/externs" />
-    <unjar src="${lib.dir}/${closure.dest.folder}/${closure.dest.filename}"
-           dest="${download.dir}/temp/externs">
-           <patternset>
-               <include name="externs.zip"/>
-           </patternset>
-    </unjar>
-    <mkdir dir="${FALCONJX_HOME}/../externs/js/target/downloads" />
-    <mkdir dir="${FALCONJX_HOME}/../externs/jquery/target/downloads" />
-    <mkdir dir="${FALCONJX_HOME}/../externs/jasmine/target/downloads" />
-    <mkdir dir="${FALCONJX_HOME}/../externs/google_maps/target/downloads" />
-    <mkdir dir="${FALCONJX_HOME}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs" />
-    <unzip src="${download.dir}/temp/externs/externs.zip" dest="${FALCONJX_HOME}/../externs/js/target/downloads" />
-    <get src="https://closureidl.googlecode.com/files/svg.js" dest="${FALCONJX_HOME}/../externs/js/target/downloads/svg.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/externs/jquery-1.9.js" dest="${FALCONJX_HOME}/../externs/jquery/target/downloads/jquery-1.9.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/externs/jasmine-2.0.js" dest="${FALCONJX_HOME}/../externs/jasmine/target/downloads/jasmine-2.0.js"/>
-    <!-- start node externs-->
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/assert.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/assert.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/buffer.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/buffer.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/child_process.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/child_process.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/cluster.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/cluster.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/crypto.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/crypto.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/dgram.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/dgram.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/dns.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/dns.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/domain.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/domain.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/events.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/events.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/fs.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/fs.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/globals.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/globals.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/http.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/http.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/https.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/https.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/net.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/net.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/os.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/os.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/path.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/path.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/punycode.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/punycode.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/querystring.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/querystring.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/readline.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/readline.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/repl.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/repl.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/stream.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/stream.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/string_decoder.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/string_decoder.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/tls.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/tls.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/tty.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/tty.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/url.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/url.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/util.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/util.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/vm.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/vm.js"/>
-    <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/zlib.js" dest="${basedir}/../externs/node/target/downloads/closure-compiler-master/contrib/nodejs/zlib.js"/>
-    <!-- end node externs-->
-  </target>
-
   <target name="download-dependency-jar" if="project.download.jar" description="Downloads a jar to the lib directory.">
     <antcall target="download-jar">
       <param name="srcDomain" value="${server}"/>

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/a2dea0bc/externs/google_maps/build.xml
----------------------------------------------------------------------
diff --git a/externs/google_maps/build.xml b/externs/google_maps/build.xml
index 5a07e95..620d511 100644
--- a/externs/google_maps/build.xml
+++ b/externs/google_maps/build.xml
@@ -44,6 +44,7 @@
     </target>
 
     <target name="download" >
+        <mkdir dir="${basedir}/target/downloads" />
         <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/externs/maps/google_maps_api_v3_11.js" dest="${basedir}/target/downloads/google_maps_api_v3_11.js" />
     </target>
     
@@ -73,7 +74,7 @@ google.maps = {};]]></replacevalue>
             <arg value="${basedir}/target/downloads"/>
         </exec>
         <replace file="${basedir}/src/main/patch/google_maps.patch" token="target/reference" value="target/downloads" />
-        <replace file="${basedir}/src/main/patch/google_maps.patch" token="${basedir}/target/downloads" value="/externs/google_Maps/target/downloads" />
+        <replace file="${basedir}/src/main/patch/google_maps.patch" token="${basedir}/target/downloads" value="/externs/google_maps/target/downloads" />
     </target>
 
     <target name="externc" >

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/a2dea0bc/externs/jasmine/build.xml
----------------------------------------------------------------------
diff --git a/externs/jasmine/build.xml b/externs/jasmine/build.xml
index 0b22898..4ebe95e 100644
--- a/externs/jasmine/build.xml
+++ b/externs/jasmine/build.xml
@@ -23,9 +23,9 @@
     
     <target name="main" depends="preprocess, externc, postprocess, compc" />
 
-    <!-- we need to insert a line near the beginning of the file to make the
-         compiler happy. -->
     <target name="preprocess">
+        <mkdir dir="${basedir}/target/downloads" />
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/externs/jasmine-2.0.js" dest="${basedir}/target/downloads/jasmine-2.0.js" skipexisting="true"/>
     </target>
     
     <target name="externc" >

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/a2dea0bc/externs/jquery/build.xml
----------------------------------------------------------------------
diff --git a/externs/jquery/build.xml b/externs/jquery/build.xml
index 37a40e1..bd3421e 100644
--- a/externs/jquery/build.xml
+++ b/externs/jquery/build.xml
@@ -26,6 +26,8 @@
     <!-- we need to insert a line near the beginning of the file to make the
          compiler happy. -->
     <target name="preprocess">
+        <mkdir dir="${basedir}/target/downloads" />
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/externs/jquery-1.9.js" dest="${basedir}/target/downloads/jquery-1.9.js" skipexisting="true"/>
     </target>
     
     <target name="externc" >

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/a2dea0bc/externs/js/build.xml
----------------------------------------------------------------------
diff --git a/externs/js/build.xml b/externs/js/build.xml
index e565a02..d0fa565 100644
--- a/externs/js/build.xml
+++ b/externs/js/build.xml
@@ -23,7 +23,24 @@
     
     <target name="main" depends="preprocess, externc, postprocess, compc" />
 
-    <target name="preprocess" >
+    <target name="download" >
+        <mkdir dir="${basedir}/target/temp/externs" />
+        <unjar src="${basedir}/../../compiler-jx/lib/google/closure-compiler/compiler.jar"
+            dest="${basedir}/target/temp/externs">
+            <patternset>
+                <include name="externs.zip"/>
+            </patternset>
+        </unjar>
+        <mkdir dir="${basedir}/target/downloads" />
+        <unzip src="${basedir}/target/temp/externs/externs.zip" dest="${basedir}/target/downloads" />
+        <get src="https://closureidl.googlecode.com/files/svg.js" dest="${basedir}/target/downloads/svg.js"/>
+    </target>
+    
+    <target name="make_patch" >
+        <mkdir dir="${basedir}/target/reference" />
+        <copy todir="${basedir}/target/reference">
+            <fileset dir="${basedir}/target/downloads/" />
+        </copy>
         <!-- preprocessing .js files -->
         <replaceregexp file="${basedir}/target/downloads/svg.js" match="@type \{function\(new:.*" replace="" flags="g" />
         <replaceregexp file="${basedir}/target/downloads/svg.js" match="Window\.prototype\..*" replace="" flags="g" />
@@ -31,6 +48,28 @@
         <replaceregexp file="${basedir}/target/downloads/es3.js" match="(The constructor of the current object(?:(?!\*/).)*?)@type \{Function\}((?:(?!\*/).)*?\*/[\r\n]+Object\.prototype\.constructor)([^;]*?);" replace="\1@type {Class}\2;" flags="s" />
         <replaceregexp file="${basedir}/target/downloads/es3.js" match="(Transposes the elements of an array in place(?:(?!\*/).)*?[\r\n]+ \*)([\r\n]+)( \* @this)" replace="\1\2 * @return {!Array&lt;?&gt;}\2\3" flags="s" />
         <replaceregexp file="${basedir}/target/downloads/es3.js" match="(Sorts the elements of an array in place(?:(?!\*/).)*?[\r\n]+ \*)([\r\n]+)( \* @param)" replace="\1\2 * @return {!Array&lt;?&gt;}\2\3" flags="s" />
+        <antcall target="diff" />
+    </target>
+
+    <target name="diff" >
+        <delete dir="${basedir}/src/main/patch" />
+        <mkdir dir="${basedir}/src/main/patch" />
+        <exec executable="git" output="${basedir}/src/main/patch/js.patch" >
+            <arg value="diff"/>
+            <arg value="--no-index"/>
+            <arg value="--"/>
+            <arg value="${basedir}/target/reference"/>
+            <arg value="${basedir}/target/downloads"/>
+        </exec>
+        <replace file="${basedir}/src/main/patch/js.patch" token="target/reference" value="target/downloads" />
+        <replace file="${basedir}/src/main/patch/js.patch" token="${basedir}/target/downloads" value="/externs/js/target/downloads" />
+    </target>
+
+    <target name="preprocess" depends="download">
+        <exec executable="git" dir="${basedir}/../..">
+            <arg value="apply"/>
+            <arg value="${basedir}/src/main/patch/js.patch"/>
+        </exec>
     </target>
 
     <target name="externc" >

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/a2dea0bc/externs/js/src/main/patch/js.patch
----------------------------------------------------------------------
diff --git a/externs/js/src/main/patch/js.patch b/externs/js/src/main/patch/js.patch
new file mode 100644
index 0000000..4150a65
--- /dev/null
+++ b/externs/js/src/main/patch/js.patch
@@ -0,0 +1,1143 @@
+diff --git a/externs/js/target/downloads/svg.js b/externs/js/target/downloads/svg.js
+index a13180c..48115b3 100644
+--- a/externs/js/target/downloads/svg.js
++++ b/externs/js/target/downloads/svg.js
+@@ -401,7 +401,7 @@ SVGElementInstance.prototype.onunload;
+ 
+ /**
+  * @param {string} type
+- * @param {!EventListener|(function(Event): (boolean|undefined))| null} listener
++ * @param {!EventListener|(function(!Event): (boolean|undefined))| null} listener
+  * @param {boolean=} opt_useCapture
+  */
+ SVGElementInstance.prototype.addEventListener = function(type, listener, opt_useCapture){};
+@@ -409,7 +409,7 @@ SVGElementInstance.prototype.addEventListener = function(type, listener, opt_use
+ 
+ /**
+  * @param {string} type
+- * @param {!EventListener|(function(Event): (boolean|undefined))| null} listener
++ * @param {!EventListener|(function(!Event): (boolean|undefined))| null} listener
+  * @param {boolean=} opt_useCapture
+  */
+ SVGElementInstance.prototype.removeEventListener = function(type, listener, opt_useCapture){};
+@@ -10369,840 +10369,840 @@ SVGAnimatedInteger.prototype.animVal;
+ 
+ 
+ /**
+- * @type {function(new: SVGZoomEvent)}
++ * 
+  */
+-Window.prototype.SVGZoomEvent;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGAElement)}
++ * 
+  */
+-Window.prototype.SVGAElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGAngle)}
++ * 
+  */
+-Window.prototype.SVGAngle;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGAnimatedAngle)}
++ * 
+  */
+-Window.prototype.SVGAnimatedAngle;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGAnimatedBoolean)}
++ * 
+  */
+-Window.prototype.SVGAnimatedBoolean;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGAnimatedEnumeration)}
++ * 
+  */
+-Window.prototype.SVGAnimatedEnumeration;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGAnimatedInteger)}
++ * 
+  */
+-Window.prototype.SVGAnimatedInteger;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGAnimatedLength)}
++ * 
+  */
+-Window.prototype.SVGAnimatedLength;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGAnimatedLengthList)}
++ * 
+  */
+-Window.prototype.SVGAnimatedLengthList;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGAnimatedNumber)}
++ * 
+  */
+-Window.prototype.SVGAnimatedNumber;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGAnimatedNumberList)}
++ * 
+  */
+-Window.prototype.SVGAnimatedNumberList;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGAnimatedPreserveAspectRatio)}
++ * 
+  */
+-Window.prototype.SVGAnimatedPreserveAspectRatio;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGAnimatedRect)}
++ * 
+  */
+-Window.prototype.SVGAnimatedRect;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGAnimatedString)}
++ * 
+  */
+-Window.prototype.SVGAnimatedString;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGAnimatedTransformList)}
++ * 
+  */
+-Window.prototype.SVGAnimatedTransformList;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGCircleElement)}
++ * 
+  */
+-Window.prototype.SVGCircleElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGClipPathElement)}
++ * 
+  */
+-Window.prototype.SVGClipPathElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGColor)}
++ * 
+  */
+-Window.prototype.SVGColor;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGCursorElement)}
++ * 
+  */
+-Window.prototype.SVGCursorElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGDefsElement)}
++ * 
+  */
+-Window.prototype.SVGDefsElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGDescElement)}
++ * 
+  */
+-Window.prototype.SVGDescElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGDocument)}
++ * 
+  */
+-Window.prototype.SVGDocument;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGElement)}
++ * 
+  */
+-Window.prototype.SVGElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGElementInstance)}
++ * 
+  */
+-Window.prototype.SVGElementInstance;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGElementInstanceList)}
++ * 
+  */
+-Window.prototype.SVGElementInstanceList;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGEllipseElement)}
++ * 
+  */
+-Window.prototype.SVGEllipseElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGForeignObjectElement)}
++ * 
+  */
+-Window.prototype.SVGForeignObjectElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGException)}
++ * 
+  */
+-Window.prototype.SVGException;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGGElement)}
++ * 
+  */
+-Window.prototype.SVGGElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGGradientElement)}
++ * 
+  */
+-Window.prototype.SVGGradientElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGImageElement)}
++ * 
+  */
+-Window.prototype.SVGImageElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGLength)}
++ * 
+  */
+-Window.prototype.SVGLength;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGLengthList)}
++ * 
+  */
+-Window.prototype.SVGLengthList;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGLinearGradientElement)}
++ * 
+  */
+-Window.prototype.SVGLinearGradientElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGLineElement)}
++ * 
+  */
+-Window.prototype.SVGLineElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGMarkerElement)}
++ * 
+  */
+-Window.prototype.SVGMarkerElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGMaskElement)}
++ * 
+  */
+-Window.prototype.SVGMaskElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGMatrix)}
++ * 
+  */
+-Window.prototype.SVGMatrix;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGMetadataElement)}
++ * 
+  */
+-Window.prototype.SVGMetadataElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGNumber)}
++ * 
+  */
+-Window.prototype.SVGNumber;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGNumberList)}
++ * 
+  */
+-Window.prototype.SVGNumberList;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPaint)}
++ * 
+  */
+-Window.prototype.SVGPaint;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPathElement)}
++ * 
+  */
+-Window.prototype.SVGPathElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPathSeg)}
++ * 
+  */
+-Window.prototype.SVGPathSeg;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPathSegArcAbs)}
++ * 
+  */
+-Window.prototype.SVGPathSegArcAbs;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPathSegArcRel)}
++ * 
+  */
+-Window.prototype.SVGPathSegArcRel;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPathSegClosePath)}
++ * 
+  */
+-Window.prototype.SVGPathSegClosePath;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPathSegCurvetoCubicAbs)}
++ * 
+  */
+-Window.prototype.SVGPathSegCurvetoCubicAbs;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPathSegCurvetoCubicRel)}
++ * 
+  */
+-Window.prototype.SVGPathSegCurvetoCubicRel;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPathSegCurvetoCubicSmoothAbs)}
++ * 
+  */
+-Window.prototype.SVGPathSegCurvetoCubicSmoothAbs;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPathSegCurvetoCubicSmoothRel)}
++ * 
+  */
+-Window.prototype.SVGPathSegCurvetoCubicSmoothRel;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPathSegCurvetoQuadraticAbs)}
++ * 
+  */
+-Window.prototype.SVGPathSegCurvetoQuadraticAbs;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPathSegCurvetoQuadraticRel)}
++ * 
+  */
+-Window.prototype.SVGPathSegCurvetoQuadraticRel;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPathSegCurvetoQuadraticSmoothAbs)}
++ * 
+  */
+-Window.prototype.SVGPathSegCurvetoQuadraticSmoothAbs;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPathSegCurvetoQuadraticSmoothRel)}
++ * 
+  */
+-Window.prototype.SVGPathSegCurvetoQuadraticSmoothRel;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPathSegLinetoAbs)}
++ * 
+  */
+-Window.prototype.SVGPathSegLinetoAbs;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPathSegLinetoHorizontalAbs)}
++ * 
+  */
+-Window.prototype.SVGPathSegLinetoHorizontalAbs;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPathSegLinetoHorizontalRel)}
++ * 
+  */
+-Window.prototype.SVGPathSegLinetoHorizontalRel;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPathSegLinetoRel)}
++ * 
+  */
+-Window.prototype.SVGPathSegLinetoRel;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPathSegLinetoVerticalAbs)}
++ * 
+  */
+-Window.prototype.SVGPathSegLinetoVerticalAbs;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPathSegLinetoVerticalRel)}
++ * 
+  */
+-Window.prototype.SVGPathSegLinetoVerticalRel;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPathSegList)}
++ * 
+  */
+-Window.prototype.SVGPathSegList;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPathSegMovetoAbs)}
++ * 
+  */
+-Window.prototype.SVGPathSegMovetoAbs;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPathSegMovetoRel)}
++ * 
+  */
+-Window.prototype.SVGPathSegMovetoRel;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPatternElement)}
++ * 
+  */
+-Window.prototype.SVGPatternElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPoint)}
++ * 
+  */
+-Window.prototype.SVGPoint;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPointList)}
++ * 
+  */
+-Window.prototype.SVGPointList;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPolygonElement)}
++ * 
+  */
+-Window.prototype.SVGPolygonElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPolylineElement)}
++ * 
+  */
+-Window.prototype.SVGPolylineElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGPreserveAspectRatio)}
++ * 
+  */
+-Window.prototype.SVGPreserveAspectRatio;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGRadialGradientElement)}
++ * 
+  */
+-Window.prototype.SVGRadialGradientElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGRect)}
++ * 
+  */
+-Window.prototype.SVGRect;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGRectElement)}
++ * 
+  */
+-Window.prototype.SVGRectElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGRenderingIntent)}
++ * 
+  */
+-Window.prototype.SVGRenderingIntent;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGScriptElement)}
++ * 
+  */
+-Window.prototype.SVGScriptElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGStopElement)}
++ * 
+  */
+-Window.prototype.SVGStopElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGStringList)}
++ * 
+  */
+-Window.prototype.SVGStringList;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGStyleElement)}
++ * 
+  */
+-Window.prototype.SVGStyleElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGSVGElement)}
++ * 
+  */
+-Window.prototype.SVGSVGElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGSwitchElement)}
++ * 
+  */
+-Window.prototype.SVGSwitchElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGSymbolElement)}
++ * 
+  */
+-Window.prototype.SVGSymbolElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGTextContentElement)}
++ * 
+  */
+-Window.prototype.SVGTextContentElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGTextElement)}
++ * 
+  */
+-Window.prototype.SVGTextElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGTextPathElement)}
++ * 
+  */
+-Window.prototype.SVGTextPathElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGTextPositioningElement)}
++ * 
+  */
+-Window.prototype.SVGTextPositioningElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGTitleElement)}
++ * 
+  */
+-Window.prototype.SVGTitleElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGTransform)}
++ * 
+  */
+-Window.prototype.SVGTransform;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGTransformList)}
++ * 
+  */
+-Window.prototype.SVGTransformList;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGTRefElement)}
++ * 
+  */
+-Window.prototype.SVGTRefElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGTSpanElement)}
++ * 
+  */
+-Window.prototype.SVGTSpanElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGUnitTypes)}
++ * 
+  */
+-Window.prototype.SVGUnitTypes;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGUseElement)}
++ * 
+  */
+-Window.prototype.SVGUseElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGViewElement)}
++ * 
+  */
+-Window.prototype.SVGViewElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGAnimateColorElement)}
++ * 
+  */
+-Window.prototype.SVGAnimateColorElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGAnimateElement)}
++ * 
+  */
+-Window.prototype.SVGAnimateElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGAnimateMotionElement)}
++ * 
+  */
+-Window.prototype.SVGAnimateMotionElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGAnimateTransformElement)}
++ * 
+  */
+-Window.prototype.SVGAnimateTransformElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGMPathElement)}
++ * 
+  */
+-Window.prototype.SVGMPathElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGSetElement)}
++ * 
+  */
+-Window.prototype.SVGSetElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGAltGlyphDefElement)}
++ * 
+  */
+-Window.prototype.SVGAltGlyphDefElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGAltGlyphElement)}
++ * 
+  */
+-Window.prototype.SVGAltGlyphElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGAltGlyphItemElement)}
++ * 
+  */
+-Window.prototype.SVGAltGlyphItemElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFontElement)}
++ * 
+  */
+-Window.prototype.SVGFontElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFontFaceElement)}
++ * 
+  */
+-Window.prototype.SVGFontFaceElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFontFaceFormatElement)}
++ * 
+  */
+-Window.prototype.SVGFontFaceFormatElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFontFaceNameElement)}
++ * 
+  */
+-Window.prototype.SVGFontFaceNameElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFontFaceSrcElement)}
++ * 
+  */
+-Window.prototype.SVGFontFaceSrcElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFontFaceUriElement)}
++ * 
+  */
+-Window.prototype.SVGFontFaceUriElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGGlyphElement)}
++ * 
+  */
+-Window.prototype.SVGGlyphElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGGlyphRefElement)}
++ * 
+  */
+-Window.prototype.SVGGlyphRefElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGHKernElement)}
++ * 
+  */
+-Window.prototype.SVGHKernElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGMissingGlyphElement)}
++ * 
+  */
+-Window.prototype.SVGMissingGlyphElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGVKernElement)}
++ * 
+  */
+-Window.prototype.SVGVKernElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGComponentTransferFunctionElement)}
++ * 
+  */
+-Window.prototype.SVGComponentTransferFunctionElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFEBlendElement)}
++ * 
+  */
+-Window.prototype.SVGFEBlendElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFEColorMatrixElement)}
++ * 
+  */
+-Window.prototype.SVGFEColorMatrixElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFEComponentTransferElement)}
++ * 
+  */
+-Window.prototype.SVGFEComponentTransferElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFECompositeElement)}
++ * 
+  */
+-Window.prototype.SVGFECompositeElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFEConvolveMatrixElement)}
++ * 
+  */
+-Window.prototype.SVGFEConvolveMatrixElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFEDiffuseLightingElement)}
++ * 
+  */
+-Window.prototype.SVGFEDiffuseLightingElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFEDisplacementMapElement)}
++ * 
+  */
+-Window.prototype.SVGFEDisplacementMapElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFEDistantLightElement)}
++ * 
+  */
+-Window.prototype.SVGFEDistantLightElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFEDropShadowElement)}
++ * 
+  */
+-Window.prototype.SVGFEDropShadowElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFEFloodElement)}
++ * 
+  */
+-Window.prototype.SVGFEFloodElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFEFuncAElement)}
++ * 
+  */
+-Window.prototype.SVGFEFuncAElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFEFuncBElement)}
++ * 
+  */
+-Window.prototype.SVGFEFuncBElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFEFuncGElement)}
++ * 
+  */
+-Window.prototype.SVGFEFuncGElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFEFuncRElement)}
++ * 
+  */
+-Window.prototype.SVGFEFuncRElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFEGaussianBlurElement)}
++ * 
+  */
+-Window.prototype.SVGFEGaussianBlurElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFEImageElement)}
++ * 
+  */
+-Window.prototype.SVGFEImageElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFEMergeElement)}
++ * 
+  */
+-Window.prototype.SVGFEMergeElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFEMergeNodeElement)}
++ * 
+  */
+-Window.prototype.SVGFEMergeNodeElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFEMorphologyElement)}
++ * 
+  */
+-Window.prototype.SVGFEMorphologyElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFEOffsetElement)}
++ * 
+  */
+-Window.prototype.SVGFEOffsetElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFEPointLightElement)}
++ * 
+  */
+-Window.prototype.SVGFEPointLightElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFESpecularLightingElement)}
++ * 
+  */
+-Window.prototype.SVGFESpecularLightingElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFESpotLightElement)}
++ * 
+  */
+-Window.prototype.SVGFESpotLightElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFETileElement)}
++ * 
+  */
+-Window.prototype.SVGFETileElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFETurbulenceElement)}
++ * 
+  */
+-Window.prototype.SVGFETurbulenceElement;
++
+ 
+ 
+ /**
+- * @type {function(new: SVGFilterElement)}
++ * 
+  */
+-Window.prototype.SVGFilterElement;
++

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/a2dea0bc/externs/node/build.xml
----------------------------------------------------------------------
diff --git a/externs/node/build.xml b/externs/node/build.xml
index c6cb73c..2731afc 100644
--- a/externs/node/build.xml
+++ b/externs/node/build.xml
@@ -23,9 +23,36 @@
     
     <target name="main" depends="preprocess, externc, postprocess, compc" />
 
-    <!-- we need to insert a line near the beginning of the file to make the
-         compiler happy. -->
     <target name="preprocess">
+        <mkdir dir="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs" />
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/assert.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/assert.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/buffer.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/buffer.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/child_process.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/child_process.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/cluster.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/cluster.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/crypto.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/crypto.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/dgram.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/dgram.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/dns.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/dns.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/domain.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/domain.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/events.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/events.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/fs.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/fs.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/globals.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/globals.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/http.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/http.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/https.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/https.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/net.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/net.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/os.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/os.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/path.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/path.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/punycode.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/punycode.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/querystring.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/querystring.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/readline.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/readline.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/repl.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/repl.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/stream.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/stream.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/string_decoder.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/string_decoder.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/tls.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/tls.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/tty.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/tty.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/url.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/url.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/util.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/util.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/vm.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/vm.js" skipexisting="true"/>
+        <get src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/nodejs/zlib.js" dest="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs/zlib.js" skipexisting="true"/>
     </target>
     
     <target name="externc" >


[7/8] git commit: [flex-falcon] [refs/heads/develop] - run extern tests separately

Posted by ah...@apache.org.
run extern tests separately


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

Branch: refs/heads/develop
Commit: e7acbce88f3f26b34b2d79bc2ef79bfde579bce4
Parents: a2dea0b
Author: Alex Harui <ah...@apache.org>
Authored: Tue May 24 08:05:26 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue May 24 08:05:26 2016 -0700

----------------------------------------------------------------------
 build.xml                      |  9 +++++++--
 compiler-jx/src/test/build.xml | 21 +++++++++++++++++++--
 2 files changed, 26 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/e7acbce8/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 1eae4f3..41ab8bc 100644
--- a/build.xml
+++ b/build.xml
@@ -70,9 +70,11 @@
 
     <target name="main" depends="sdk, javadoc, tests" description="Default target - Builds a Falcon SDK, builds Falcon Javadoc, and runs tests."/>
 
-    <target name="all" depends="main, jx, oem, debugger" description="Builds Falcon, then FalconJX"/>
+    <target name="all" depends="main, jx, externs, oem, debugger" description="Builds Falcon, then FalconJX"/>
 
-    <target name="jx" depends="compiler.jx, extern.swcs, compiler.jx.tests" description="Builds FalconJX" />
+    <target name="jx" depends="compiler.jx, compiler.jx.tests" description="Builds FalconJX" />
+    
+    <target name="externs" depends="extern.swcs, extern.tests" description="Build externs and run tests"/>
     
     <target name="oem" depends="compiler.oem" description="Builds FB Integration JAR" />
 
@@ -109,6 +111,9 @@
     <target name="extern.swcs.wipe" >
         <ant dir="externs" target="wipe"/>
     </target>
+    <target name="extern.tests">
+        <ant dir="compiler-jx/src/test" target="extern.tests" />
+    </target>
     
     <target name="clean" description="Cleans the build output but leaves any downloaded JARs.">
         <ant dir="compiler" target="clean"/>

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/e7acbce8/compiler-jx/src/test/build.xml
----------------------------------------------------------------------
diff --git a/compiler-jx/src/test/build.xml b/compiler-jx/src/test/build.xml
index 536786c..0797b51 100644
--- a/compiler-jx/src/test/build.xml
+++ b/compiler-jx/src/test/build.xml
@@ -71,6 +71,15 @@
                     <exclude name="**/TestFlexJSFile.class"/>
                     <exclude name="**/TestFlexJSMXML*.class"/>
                     <exclude name="**/TestMXML*.class"/>
+                    <!-- externs tests -->
+                    <exclude name="**/TestExtern*.class"/>
+                    <exclude name="**/TestAnnotationEnum.class"/>
+                    <exclude name="**/TestCollectImports.class"/>
+                    <exclude name="**/TestConstructor.class"/>
+                    <exclude name="**/TestPackageNamespace.class"/>
+                    <exclude name="**/TestReferenceModel.class"/>
+                    <exclude name="**/TestTypeExternals.class"/>
+                    <exclude name="**/TestTypeInheritance.class"/>
                 </fileset>
             </batchtest>
             <formatter type="xml"/>
@@ -123,7 +132,7 @@
         </junit>
     </target>
     
-    <target name="js.swc" depends="download, compile.unit.tests">
+    <target name="extern.tests" depends="download, compile.unit.tests">
         <mkdir dir="${compiler.tests}/results"/>
         <mkdir dir="${compiler}/target/junit-temp"/>
         <junit dir="${compiler.tests}"
@@ -138,7 +147,15 @@
             </classpath>
             <batchtest todir="${compiler}/target/junit-results">
                 <fileset dir="${compiler}/target/test-classes">
-                    <include name="**/TestExternalsJSCompile.class"/>
+                    <!-- externs tests -->
+                    <include name="**/TestExtern*.class"/>
+                    <include name="**/TestAnnotationEnum.class"/>
+                    <include name="**/TestCollectImports.class"/>
+                    <include name="**/TestConstructor.class"/>
+                    <include name="**/TestPackageNamespace.class"/>
+                    <include name="**/TestReferenceModel.class"/>
+                    <include name="**/TestTypeExternals.class"/>
+                    <include name="**/TestTypeInheritance.class"/>
                 </fileset>
             </batchtest>
             <formatter type="xml"/>