You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2017/11/27 05:58:07 UTC

[royale-compiler] branch feature/rename updated (e367530 -> 685dc16)

This is an automated email from the ASF dual-hosted git repository.

aharui pushed a change to branch feature/rename
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git.


    from e367530  get tests to pass without Flash
     new 34eaef3  get compiler-jx tests to pass without Flash
     new 685dc16  fix build after wipe-all

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 compiler-externc/build.xml                         |  3 +-
 .../codegen/typedefs/TypedefsTestUtils.java        |  5 +-
 .../src/test/royale/{QName.as => XML.as}           |  4 +-
 .../src/test/royale/{QName.as => XMLList.as}       |  4 +-
 .../src/test/royale/__AS3__/vec/Vector$double.as   | 81 ++++++++++++++++++++++
 .../src/test/royale/__AS3__/vec/Vector$int.as      | 81 ++++++++++++++++++++++
 .../src/test/royale/__AS3__/vec/Vector$object.as   | 81 ++++++++++++++++++++++
 .../src/test/royale/__AS3__/vec/Vector$uint.as     | 81 ++++++++++++++++++++++
 .../src/test/royale/__AS3__/vec/Vector.as          | 81 ++++++++++++++++++++++
 compiler-jx/build.xml                              |  2 +-
 .../codegen/js/jx/BinaryOperatorEmitter.java       |  2 +-
 .../codegen/js/jx/MemberAccessEmitter.java         | 22 +++---
 .../codegen/js/jx/VarDeclarationEmitter.java       |  3 +
 .../codegen/js/royale/JSRoyaleEmitter.java         | 22 +++++-
 compiler-jx/src/test/build.xml                     | 37 ++++------
 .../internal/codegen/js/goog/TestGoogClass.java    | 43 +++++++-----
 .../internal/codegen/js/goog/TestGoogEmitter.java  | 11 ++-
 .../codegen/js/royale/TestRoyaleAccessors.java     | 10 +--
 .../codegen/js/royale/TestRoyaleClass.java         | 76 ++++++++++----------
 .../codegen/js/royale/TestRoyaleEmitter.java       | 10 +--
 .../codegen/js/royale/TestRoyaleExpressions.java   | 20 +++---
 .../codegen/js/royale/TestRoyaleFieldMembers.java  |  4 +-
 .../codegen/js/royale/TestRoyaleGlobalClasses.java | 22 +++---
 .../internal/codegen/js/royale/TestRoyaleJSX.java  | 16 ++---
 .../codegen/js/royale/TestRoyaleMethodMembers.java |  4 +-
 .../codegen/js/royale/TestRoyaleStatements.java    |  2 +-
 .../internal/codegen/mxml/TestMXMLApplication.java | 39 +++++------
 .../internal/codegen/mxml/TestMXMLAttributes.java  |  6 +-
 .../internal/codegen/mxml/TestMXMLNodes.java       | 40 +++++------
 .../TestTypedefsCompile.java}                      | 20 +++---
 .../royale/compiler/internal/test/ASTestBase.java  |  4 +-
 .../compiler/internal/test/MXMLTestBase.java       | 25 ++++---
 .../royale/compiler/internal/test/TestBase.java    |  9 ++-
 .../src/test/resources/goog/files/call-super.as    |  6 +-
 .../test/resources/goog/files/call-super_result.js | 10 +--
 compiler-jx/src/test/resources/goog/files/input.as |  6 +-
 .../src/test/resources/goog/files/output.js        | 10 +--
 compiler-jx/src/test/resources/goog/files/poc.as   | 33 +++++----
 .../src/test/resources/goog/files/poc_result.js    | 54 +++++++--------
 .../resources/goog/files/qualify-new-object.as     | 10 +--
 .../goog/files/qualify-new-object_result.js        | 12 ++--
 .../test/resources/royale/files/models/MyModel.as  |  4 +-
 .../royale/files/models/MyModel_result.js          |  6 +-
 .../compiler/internal/targets/LinkageChecker.java  | 18 +++--
 compiler/src/test/resources/custom-manifest.xml    |  7 +-
 .../test/royale/custom/{TestEvent.as => Button.as} | 10 ++-
 .../src/test/royale/custom/Group.as                |  8 +--
 .../src/test/royale/custom/Label.as                |  8 ++-
 .../royale/custom/{TestEvent.as => MouseEvent.as}  |  8 +--
 .../src/test/royale/custom/TestGlobalFunction.as   |  8 ++-
 .../{TestInstance.as => TestImplementation.as}     | 46 +++++++++---
 compiler/src/test/royale/custom/TestInstance.as    | 21 ++++++
 .../custom/{TestEvent.as => TestInterface.as}      | 14 ++--
 .../custom/{TestEvent.as => TestOtherInterface.as} | 14 ++--
 .../royale/custom/{TestEvent.as => TestProxy.as}   | 14 ++--
 55 files changed, 841 insertions(+), 356 deletions(-)
 copy compiler-externc/src/test/royale/{QName.as => XML.as} (93%)
 copy compiler-externc/src/test/royale/{QName.as => XMLList.as} (93%)
 create mode 100644 compiler-externc/src/test/royale/__AS3__/vec/Vector$double.as
 create mode 100644 compiler-externc/src/test/royale/__AS3__/vec/Vector$int.as
 create mode 100644 compiler-externc/src/test/royale/__AS3__/vec/Vector$object.as
 create mode 100644 compiler-externc/src/test/royale/__AS3__/vec/Vector$uint.as
 create mode 100644 compiler-externc/src/test/royale/__AS3__/vec/Vector.as
 rename compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/{externals/TestExternalsJSCompile.java => typedefs/TestTypedefsCompile.java} (94%)
 copy compiler/src/test/royale/custom/{TestEvent.as => Button.as} (89%)
 copy compiler-externc/src/test/royale/QName.as => compiler/src/test/royale/custom/Group.as (91%)
 copy compiler-externc/src/test/royale/QName.as => compiler/src/test/royale/custom/Label.as (89%)
 copy compiler/src/test/royale/custom/{TestEvent.as => MouseEvent.as} (89%)
 copy compiler-externc/src/test/royale/custom/custom_namespace.as => compiler/src/test/royale/custom/TestGlobalFunction.as (92%)
 copy compiler/src/test/royale/custom/{TestInstance.as => TestImplementation.as} (59%)
 copy compiler/src/test/royale/custom/{TestEvent.as => TestInterface.as} (82%)
 copy compiler/src/test/royale/custom/{TestEvent.as => TestOtherInterface.as} (82%)
 copy compiler/src/test/royale/custom/{TestEvent.as => TestProxy.as} (85%)

-- 
To stop receiving notification emails like this one, please contact
['"commits@royale.apache.org" <co...@royale.apache.org>'].

[royale-compiler] 02/02: fix build after wipe-all

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch feature/rename
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git

commit 685dc16b42a547bb000ec3e366d9759a46ef59ab
Author: Alex Harui <ah...@apache.org>
AuthorDate: Sun Nov 26 21:52:34 2017 -0800

    fix build after wipe-all
---
 compiler-externc/build.xml     | 3 ++-
 compiler-jx/build.xml          | 2 +-
 compiler-jx/src/test/build.xml | 5 +++++
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/compiler-externc/build.xml b/compiler-externc/build.xml
index 0bb9dd1..99c7457 100644
--- a/compiler-externc/build.xml
+++ b/compiler-externc/build.xml
@@ -120,7 +120,7 @@
         <ant antfile="${compiler-jx}/src/main/resources/downloads.xml" dir="${compiler-jx}/src/main/resources" inheritAll="false"/>
     </target>
     
-    <target name="main" depends="prebuild,compile,test" >
+    <target name="main" depends="prebuild,compile" >
         <mkdir dir="${sdk}"/>
         <copy file="${basedir}/../LICENSE.base" tofile="${compiler-externc}/target/classes/META-INF/LICENSE"/>
         <copy file="${basedir}/../NOTICE.base" tofile="${compiler-externc}/target/classes/META-INF/NOTICE"/>
@@ -137,6 +137,7 @@
                 <!-- The .. in the line above allows the compiler to load the env.properties file -->
             </manifest>
         </jar>
+        <antcall target="test" />
         <antcall target="jar-test" />
     </target>
 
diff --git a/compiler-jx/build.xml b/compiler-jx/build.xml
index 8b0bb31..c0e336c 100644
--- a/compiler-jx/build.xml
+++ b/compiler-jx/build.xml
@@ -178,7 +178,7 @@
     <target name="super-clean" depends="thirdparty-clean,clean" />
 
     <target name="thirdparty-clean">
-        <ant antfile="${basedir}/src/main/resources/downloads.xml" dir="${basedir}" target="clean" />
+        <ant antfile="${basedir}/src/main/resources/downloads.xml" dir="${basedir}/src/main/resources" inheritAll="false" target="clean" />
         <delete dir="${basedir}/target" />
         <delete failonerror="false" includeemptydirs="true">
             <fileset dir="${lib}" />
diff --git a/compiler-jx/src/test/build.xml b/compiler-jx/src/test/build.xml
index c59c312..ed942d8 100644
--- a/compiler-jx/src/test/build.xml
+++ b/compiler-jx/src/test/build.xml
@@ -48,6 +48,7 @@
             <classpath>
                 <pathelement location="${compiler}/target/test-classes"/>
                 <pathelement location="${compiler}/../compiler-test-utils/target/classes"/>
+                <pathelement location="${compiler}/../compiler-externc/target/test-classes"/>
                 <fileset dir="${compiler}/lib" includes="**/*.jar"/>
             </classpath>
         </javac>
@@ -66,6 +67,7 @@
             <classpath>
                 <pathelement location="${compiler}/target/test-classes"/>
                 <pathelement location="${compiler}/../compiler-test-utils/target/classes"/>
+                <pathelement location="${compiler}/../compiler-externc/target/test-classes"/>
                 <fileset dir="${compiler}/lib" includes="**/*.jar"/>
                 <fileset dir="${compiler}/../compiler/lib" includes="**/*.jar"/>
             </classpath>
@@ -99,6 +101,7 @@
             <classpath>
                 <pathelement location="${compiler}/target/test-classes"/>
                 <pathelement location="${compiler}/../compiler-test-utils/target/classes"/>
+                <pathelement location="${compiler}/../compiler-externc/target/test-classes"/>
                 <fileset dir="${compiler}/lib" includes="**/*.jar"/>
                 <fileset dir="${compiler}/../compiler/lib" includes="**/*.jar"/>
             </classpath>
@@ -128,6 +131,7 @@
             <classpath>
                 <pathelement location="${compiler}/target/test-classes"/>
                 <pathelement location="${compiler}/../compiler-test-utils/target/classes"/>
+                <pathelement location="${compiler}/../compiler-externc/target/test-classes"/>
                 <fileset dir="${compiler}/lib" includes="**/*.jar"/>
                 <fileset dir="${compiler}/../compiler/lib" includes="**/*.jar"/>
             </classpath>
@@ -155,6 +159,7 @@
             <classpath>
                 <pathelement location="${compiler}/target/test-classes"/>
                 <pathelement location="${compiler}/../compiler-test-utils/target/classes"/>
+                <pathelement location="${compiler}/../compiler-externc/target/test-classes"/>
                 <fileset dir="${compiler}/lib" includes="**/*.jar"/>
                 <fileset dir="${compiler}/../compiler/lib" includes="**/*.jar"/>
             </classpath>

-- 
To stop receiving notification emails like this one, please contact
"commits@royale.apache.org" <co...@royale.apache.org>.

[royale-compiler] 01/02: get compiler-jx tests to pass without Flash

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch feature/rename
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git

commit 34eaef3450e7e04ddde6ffc5ed4ba566286e8422
Author: Alex Harui <ah...@apache.org>
AuthorDate: Sun Nov 26 21:17:05 2017 -0800

    get compiler-jx tests to pass without Flash
---
 .../codegen/typedefs/TypedefsTestUtils.java        |  5 +-
 .../src/test/royale/XML.as                         | 14 +---
 .../src/test/royale/XMLList.as                     | 14 +---
 .../src/test/royale/__AS3__/vec/Vector$double.as   | 81 ++++++++++++++++++++++
 .../src/test/royale/__AS3__/vec/Vector$int.as      | 81 ++++++++++++++++++++++
 .../src/test/royale/__AS3__/vec/Vector$object.as   | 81 ++++++++++++++++++++++
 .../src/test/royale/__AS3__/vec/Vector$uint.as     | 81 ++++++++++++++++++++++
 .../src/test/royale/__AS3__/vec/Vector.as          | 81 ++++++++++++++++++++++
 .../codegen/js/jx/BinaryOperatorEmitter.java       |  2 +-
 .../codegen/js/jx/MemberAccessEmitter.java         | 22 +++---
 .../codegen/js/jx/VarDeclarationEmitter.java       |  3 +
 .../codegen/js/royale/JSRoyaleEmitter.java         | 22 +++++-
 compiler-jx/src/test/build.xml                     | 32 +++------
 .../internal/codegen/js/goog/TestGoogClass.java    | 43 +++++++-----
 .../internal/codegen/js/goog/TestGoogEmitter.java  | 11 ++-
 .../codegen/js/royale/TestRoyaleAccessors.java     | 10 +--
 .../codegen/js/royale/TestRoyaleClass.java         | 76 ++++++++++----------
 .../codegen/js/royale/TestRoyaleEmitter.java       | 10 +--
 .../codegen/js/royale/TestRoyaleExpressions.java   | 20 +++---
 .../codegen/js/royale/TestRoyaleFieldMembers.java  |  4 +-
 .../codegen/js/royale/TestRoyaleGlobalClasses.java | 22 +++---
 .../internal/codegen/js/royale/TestRoyaleJSX.java  | 16 ++---
 .../codegen/js/royale/TestRoyaleMethodMembers.java |  4 +-
 .../codegen/js/royale/TestRoyaleStatements.java    |  2 +-
 .../internal/codegen/mxml/TestMXMLApplication.java | 39 +++++------
 .../internal/codegen/mxml/TestMXMLAttributes.java  |  6 +-
 .../internal/codegen/mxml/TestMXMLNodes.java       | 40 +++++------
 .../TestTypedefsCompile.java}                      | 20 +++---
 .../royale/compiler/internal/test/ASTestBase.java  |  4 +-
 .../compiler/internal/test/MXMLTestBase.java       | 25 ++++---
 .../royale/compiler/internal/test/TestBase.java    |  9 ++-
 .../src/test/resources/goog/files/call-super.as    |  6 +-
 .../test/resources/goog/files/call-super_result.js | 10 +--
 compiler-jx/src/test/resources/goog/files/input.as |  6 +-
 .../src/test/resources/goog/files/output.js        | 10 +--
 compiler-jx/src/test/resources/goog/files/poc.as   | 33 +++++----
 .../src/test/resources/goog/files/poc_result.js    | 54 +++++++--------
 .../resources/goog/files/qualify-new-object.as     | 10 +--
 .../goog/files/qualify-new-object_result.js        | 12 ++--
 .../test/resources/royale/files/models/MyModel.as  |  4 +-
 .../royale/files/models/MyModel_result.js          |  6 +-
 .../compiler/internal/targets/LinkageChecker.java  | 18 +++--
 compiler/src/test/resources/custom-manifest.xml    |  7 +-
 .../royale/custom/{TestInstance.as => Button.as}   | 12 +---
 .../royale/custom/{TestInstance.as => Group.as}    | 12 +---
 .../royale/custom/{TestInstance.as => Label.as}    | 12 +---
 .../custom/{TestInstance.as => MouseEvent.as}      | 12 ++--
 .../{TestInstance.as => TestGlobalFunction.as}     | 16 +----
 .../{TestInstance.as => TestImplementation.as}     | 46 +++++++++---
 compiler/src/test/royale/custom/TestInstance.as    | 21 ++++++
 .../custom/{TestInstance.as => TestInterface.as}   | 18 ++---
 .../{TestInstance.as => TestOtherInterface.as}     | 18 ++---
 .../custom/{TestInstance.as => TestProxy.as}       | 16 ++---
 53 files changed, 825 insertions(+), 414 deletions(-)

diff --git a/compiler-externc/src/test/java/org/apache/royale/compiler/internal/codegen/typedefs/TypedefsTestUtils.java b/compiler-externc/src/test/java/org/apache/royale/compiler/internal/codegen/typedefs/TypedefsTestUtils.java
index f0f9fad..a515a22 100644
--- a/compiler-externc/src/test/java/org/apache/royale/compiler/internal/codegen/typedefs/TypedefsTestUtils.java
+++ b/compiler-externc/src/test/java/org/apache/royale/compiler/internal/codegen/typedefs/TypedefsTestUtils.java
@@ -33,10 +33,10 @@ public class TypedefsTestUtils
     // This is a copy of the missing.js in royale-typedefs/js.  It doesn't have to
     // stay in sync.  We just want to prove we can override a few things
     public static File MISSING_JS_FILE = FilenameNormalization.normalize(new File(
-            "resources/typedefs/unit_tests/missing.js"));
+            "../../../compiler-externc/src/test/resources/typedefs/unit_tests/missing.js"));
 
     public static File TYPEDEFS_JS_DIR = FilenameNormalization.normalize(new File(
-           "../../target/downloads"));
+           "../../../compiler-externc/target/downloads"));
 
     // XXX AS3.as is a namespace needed to override toString in some classes
     public static File AS3_NAMESPACE_FILE;
@@ -197,6 +197,5 @@ public class TypedefsTestUtils
         config.addTypedef(coreRoot + "/browser/webstorage.js");
         config.addTypedef(coreRoot + "/browser/window.js");
 
-        config.addTypedef(coreRoot + "/svg.js");
     }
 }
diff --git a/compiler/src/test/royale/custom/TestInstance.as b/compiler-externc/src/test/royale/XML.as
similarity index 80%
copy from compiler/src/test/royale/custom/TestInstance.as
copy to compiler-externc/src/test/royale/XML.as
index 78841c0..81f22ce 100644
--- a/compiler/src/test/royale/custom/TestInstance.as
+++ b/compiler-externc/src/test/royale/XML.as
@@ -16,25 +16,17 @@
 //  limitations under the License.
 //
 ////////////////////////////////////////////////////////////////////////////////
-package custom {
-
-[Event(name="complete", type="custom.TestEvent")]
+package {
 
 /**
  * @constructor
  */
-public class TestInstance {
+public class XML {
 
     /**
      */
-    public function TestInstance() {
+    public function XML(value:Object) {
     }
 
-    public var name:String;
-    
-    public var value:Number;
-    
-    public function someFunction():void {
-    }
 }
 }
diff --git a/compiler/src/test/royale/custom/TestInstance.as b/compiler-externc/src/test/royale/XMLList.as
similarity index 80%
copy from compiler/src/test/royale/custom/TestInstance.as
copy to compiler-externc/src/test/royale/XMLList.as
index 78841c0..0d25f78 100644
--- a/compiler/src/test/royale/custom/TestInstance.as
+++ b/compiler-externc/src/test/royale/XMLList.as
@@ -16,25 +16,17 @@
 //  limitations under the License.
 //
 ////////////////////////////////////////////////////////////////////////////////
-package custom {
-
-[Event(name="complete", type="custom.TestEvent")]
+package {
 
 /**
  * @constructor
  */
-public class TestInstance {
+public class XMLList {
 
     /**
      */
-    public function TestInstance() {
+    public function XMLList(value:Object) {
     }
 
-    public var name:String;
-    
-    public var value:Number;
-    
-    public function someFunction():void {
-    }
 }
 }
diff --git a/compiler-externc/src/test/royale/__AS3__/vec/Vector$double.as b/compiler-externc/src/test/royale/__AS3__/vec/Vector$double.as
new file mode 100644
index 0000000..e566bd7
--- /dev/null
+++ b/compiler-externc/src/test/royale/__AS3__/vec/Vector$double.as
@@ -0,0 +1,81 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package __AS3__.vec
+{
+
+/**
+ *  The compiler appears to expect these internal implementations
+ *
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Royale 3
+ */
+internal class Vector$double
+{
+    public function Vector$double(length:uint = 0, fixed:Boolean = false) {}
+
+    public var fixed:Boolean;
+
+    public var length:uint;
+
+    public function concat(...args):Vector$double { return null }
+
+    public function every(callback:Function, thisObject:Object):Boolean { return false }
+
+    public function filter(callback:Function, thisObject:Object = null):Vector$double { return null }
+
+    public function forEach(callback:Function, thisObject:Object = null):void {}
+
+    public function indexOf(searchElement:Number, fromIndex:int = 0):int { return -1 }
+
+    public function insertAt(index:int, element:Number):void {}
+
+    public function join(sep:String = ","):String { return null }
+
+    public function lastIndexOf(searchElement:Number, fromIndex:int = 0x7fffffff):int { return -1 }
+
+    public function map(callback:Function, thisObject:Object = null):Vector$double { return null }
+
+    public function pop():Number { return null }
+
+    public function push(... args):uint { return 0 }
+
+    public function removeAt(index:int):Number { return null }
+
+    public function reverse():Vector$double { return null }
+
+    public function shift():Number { return null }
+
+    public function slice(startIndex:int = 0, endIndex:int = 16777215):Vector$double { return null }
+
+    public function some(callback:Function, thisObject:Object = null):Boolean { return false }
+
+    public function sort(sortBehavior:Object):Vector$double { return null }
+
+    public function splice(startIndex:int, deleteCount:uint = 4294967295, ... items):Vector$double { return null }
+
+    override public function toLocaleString():String { return null }
+
+    public function toString():String { return null }
+
+    public function unshift(... args):uint { return 0 }
+}
+}
diff --git a/compiler-externc/src/test/royale/__AS3__/vec/Vector$int.as b/compiler-externc/src/test/royale/__AS3__/vec/Vector$int.as
new file mode 100644
index 0000000..cc4263a
--- /dev/null
+++ b/compiler-externc/src/test/royale/__AS3__/vec/Vector$int.as
@@ -0,0 +1,81 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package __AS3__.vec
+{
+
+/**
+ *  The compiler appears to expect these internal implementations
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Royale 3
+ */
+internal class Vector$int
+{
+	public function Vector$int(length:uint = 0, fixed:Boolean = false) {}
+	
+	public var fixed:Boolean;
+	
+	public var length:uint;
+	
+	public function concat(...args):Vector$int { return null }
+	
+	public function every(callback:Function, thisObject:Object):Boolean { return false }
+	
+	public function filter(callback:Function, thisObject:Object = null):Vector$int { return null }
+	
+	public function forEach(callback:Function, thisObject:Object = null):void {}
+	
+	public function indexOf(searchElement:int, fromIndex:int = 0):int { return -1 }
+	
+	public function insertAt(index:int, element:int):void {}
+	
+	public function join(sep:String = ","):String { return null }
+	
+	public function lastIndexOf(searchElement:int, fromIndex:int = 0x7fffffff):int { return -1 }
+	
+	public function map(callback:Function, thisObject:Object = null):Vector$int { return null }
+	
+	public function pop():int { return null }
+	
+	public function push(... args):uint { return 0 }
+	
+	public function removeAt(index:int):int { return null }
+	
+	public function reverse():Vector$int { return null }
+	
+	public function shift():int { return null }
+	
+	public function slice(startIndex:int = 0, endIndex:int = 16777215):Vector$int { return null }
+	
+	public function some(callback:Function, thisObject:Object = null):Boolean { return false }
+	
+	public function sort(sortBehavior:Object):Vector$int { return null }
+	
+	public function splice(startIndex:int, deleteCount:uint = 4294967295, ... items):Vector$int { return null }
+	
+	override public function toLocaleString():String { return null }
+	
+	public function toString():String { return null }
+	
+	public function unshift(... args):uint { return 0 }
+}
+}
diff --git a/compiler-externc/src/test/royale/__AS3__/vec/Vector$object.as b/compiler-externc/src/test/royale/__AS3__/vec/Vector$object.as
new file mode 100644
index 0000000..b207901
--- /dev/null
+++ b/compiler-externc/src/test/royale/__AS3__/vec/Vector$object.as
@@ -0,0 +1,81 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package __AS3__.vec
+{
+
+/**
+ *  The compiler appears to expect these internal implementations
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Royale 3
+ */
+internal class Vector$object
+{
+	public function Vector$object(length:uint = 0, fixed:Boolean = false) {}
+	
+	public var fixed:Boolean;
+	
+	public var length:uint;
+	
+	public function concat(...args):Vector$object { return null }
+	
+	public function every(callback:Function, thisObject:Object):Boolean { return false }
+	
+	public function filter(callback:Function, thisObject:Object = null):Vector$object { return null }
+	
+	public function forEach(callback:Function, thisObject:Object = null):void {}
+	
+	public function indexOf(searchElement:Object, fromIndex:int = 0):int { return -1 }
+	
+	public function insertAt(index:int, element:Object):void {}
+	
+	public function join(sep:String = ","):String { return null }
+	
+	public function lastIndexOf(searchElement:Object, fromIndex:int = 0x7fffffff):int { return -1 }
+	
+	public function map(callback:Function, thisObject:Object = null):Vector$object { return null }
+	
+	public function pop():Object { return null }
+	
+	public function push(... args):uint { return 0 }
+	
+	public function removeAt(index:int):Object { return null }
+	
+	public function reverse():Vector$object { return null }
+	
+	public function shift():Object { return null }
+	
+	public function slice(startIndex:int = 0, endIndex:int = 16777215):Vector$object { return null }
+	
+	public function some(callback:Function, thisObject:Object = null):Boolean { return false }
+	
+	public function sort(sortBehavior:Object):Vector$object { return null }
+	
+	public function splice(startIndex:int, deleteCount:uint = 4294967295, ... items):Vector$object { return null }
+	
+	override public function toLocaleString():String { return null }
+	
+	public function toString():String { return null }
+	
+	public function unshift(... args):uint { return 0 }
+}
+}
diff --git a/compiler-externc/src/test/royale/__AS3__/vec/Vector$uint.as b/compiler-externc/src/test/royale/__AS3__/vec/Vector$uint.as
new file mode 100644
index 0000000..a69e39d
--- /dev/null
+++ b/compiler-externc/src/test/royale/__AS3__/vec/Vector$uint.as
@@ -0,0 +1,81 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package __AS3__.vec
+{
+
+/**
+ *  The compiler appears to expect these internal implementations
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Royale 3
+ */
+internal class Vector$uint
+{
+	public function Vector$uint(length:uint = 0, fixed:Boolean = false) {}
+	
+	public var fixed:Boolean;
+	
+	public var length:uint;
+	
+	public function concat(...args):Vector$uint { return null }
+	
+	public function every(callback:Function, thisObject:Object):Boolean { return false }
+	
+	public function filter(callback:Function, thisObject:Object = null):Vector$uint { return null }
+	
+	public function forEach(callback:Function, thisObject:Object = null):void {}
+	
+	public function indexOf(searchElement:uint, fromIndex:int = 0):int { return -1 }
+	
+	public function insertAt(index:int, element:uint):void {}
+	
+	public function join(sep:String = ","):String { return null }
+	
+	public function lastIndexOf(searchElement:uint, fromIndex:int = 0x7fffffff):int { return -1 }
+	
+	public function map(callback:Function, thisObject:Object = null):Vector$uint { return null }
+	
+	public function pop():uint { return null }
+	
+	public function push(... args):uint { return 0 }
+	
+	public function removeAt(index:int):uint { return null }
+	
+	public function reverse():Vector$uint { return null }
+	
+	public function shift():uint { return null }
+	
+	public function slice(startIndex:int = 0, endIndex:int = 16777215):Vector$uint { return null }
+	
+	public function some(callback:Function, thisObject:Object = null):Boolean { return false }
+	
+	public function sort(sortBehavior:Object):Vector$uint { return null }
+	
+	public function splice(startIndex:int, deleteCount:uint = 4294967295, ... items):Vector$uint { return null }
+	
+	override public function toLocaleString():String { return null }
+	
+	public function toString():String { return null }
+	
+	public function unshift(... args):uint { return 0 }
+}
+}
diff --git a/compiler-externc/src/test/royale/__AS3__/vec/Vector.as b/compiler-externc/src/test/royale/__AS3__/vec/Vector.as
new file mode 100644
index 0000000..a2f9779
--- /dev/null
+++ b/compiler-externc/src/test/royale/__AS3__/vec/Vector.as
@@ -0,0 +1,81 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package __AS3__.vec
+{
+
+/**
+ *  This is a special case for Vector
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Royale 3
+ */
+public class Vector
+{
+	public function Vector(length:uint = 0, fixed:Boolean = false) {}
+	
+	public var fixed:Boolean;
+	
+	public var length:uint;
+	
+	public function concat(...args):Vector { return null }
+	
+	public function every(callback:Function, thisObject:Object):Boolean { return false }
+	
+	public function filter(callback:Function, thisObject:Object = null):Vector { return null }
+	
+	public function forEach(callback:Function, thisObject:Object = null):void {}
+	
+	public function indexOf(searchElement:Object, fromIndex:int = 0):int { return -1 }
+	
+	public function insertAt(index:int, element:Object):void {}
+	
+	public function join(sep:String = ","):String { return null }
+	
+	public function lastIndexOf(searchElement:Object, fromIndex:int = 0x7fffffff):int { return -1 }
+	
+	public function map(callback:Function, thisObject:Object = null):Vector { return null }
+	
+	public function pop():Object { return null }
+	
+	public function push(... args):uint { return 0 }
+	
+	public function removeAt(index:int):Object { return null }
+	
+	public function reverse():Vector { return null }
+	
+	public function shift():Object { return null }
+	
+	public function slice(startIndex:int = 0, endIndex:int = 16777215):Vector { return null }
+	
+	public function some(callback:Function, thisObject:Object = null):Boolean { return false }
+	
+	public function sort(sortBehavior:Object):Vector { return null }
+	
+	public function splice(startIndex:int, deleteCount:uint = 4294967295, ... items):Vector { return null }
+	
+	override public function toLocaleString():String { return null }
+	
+	public function toString():String { return null }
+	
+	public function unshift(... args):uint { return 0 }
+}
+}
diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/BinaryOperatorEmitter.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/BinaryOperatorEmitter.java
index 52fd186..eceae30 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/BinaryOperatorEmitter.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/BinaryOperatorEmitter.java
@@ -241,7 +241,7 @@ public class BinaryOperatorEmitter extends JSSubEmitter implements
 	                    return;
                 	}
                 }
-                else if (((JSRoyaleEmitter)getEmitter()).isDateProperty((MemberAccessExpressionNode)leftSide))
+                else if (((JSRoyaleEmitter)getEmitter()).isDateProperty((MemberAccessExpressionNode)leftSide, true))
                 {
                 	specialCaseDate(node, (MemberAccessExpressionNode)leftSide);
                     return;
diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/MemberAccessEmitter.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/MemberAccessEmitter.java
index 6fcc815..d308d34 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/MemberAccessEmitter.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/MemberAccessEmitter.java
@@ -66,6 +66,17 @@ public class MemberAccessEmitter extends JSSubEmitter implements
         IASNode rightNode = node.getRightOperandNode();
 
     	JSRoyaleEmitter fjs = (JSRoyaleEmitter)getEmitter();
+        if (fjs.isDateProperty(node, false))
+        {
+    		writeLeftSide(node, leftNode, rightNode);
+            String rightName = ((IIdentifierNode)rightNode).getName();
+            DatePropertiesGetters propGetter = DatePropertiesGetters.valueOf(rightName.toUpperCase());
+            write(ASEmitterTokens.MEMBER_ACCESS);
+            write(propGetter.getFunctionName());
+            write(ASEmitterTokens.PAREN_OPEN);
+            write(ASEmitterTokens.PAREN_CLOSE);
+    		return;
+        }
         IDefinition def = node.resolve(getProject());
         if (def == null)
         {
@@ -168,17 +179,6 @@ public class MemberAccessEmitter extends JSSubEmitter implements
         		return;
         	}
         }
-        else if (fjs.isDateProperty(node))
-        {
-    		writeLeftSide(node, leftNode, rightNode);
-            String rightName = ((IIdentifierNode)rightNode).getName();
-            DatePropertiesGetters propGetter = DatePropertiesGetters.valueOf(rightName.toUpperCase());
-            write(ASEmitterTokens.MEMBER_ACCESS);
-            write(propGetter.getFunctionName());
-            write(ASEmitterTokens.PAREN_OPEN);
-            write(ASEmitterTokens.PAREN_CLOSE);
-    		return;
-        }
         else if (def.getParent() != null &&
         		def.getParent().getQualifiedName().equals("Array"))
         {
diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/VarDeclarationEmitter.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/VarDeclarationEmitter.java
index b2bfe2b..9185374 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/VarDeclarationEmitter.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/VarDeclarationEmitter.java
@@ -125,6 +125,9 @@ public class VarDeclarationEmitter extends JSSubEmitter implements
             boolean valIsNumber = (avdef != null && (avdef.getQualifiedName().equals(IASLanguageConstants.Number) ||
             										 avdef.getQualifiedName().equals(IASLanguageConstants._int) ||
             										 avdef.getQualifiedName().equals(IASLanguageConstants.uint)));
+            if (!valIsNumber && avdef == null && avnode.getNodeID() == ASTNodeID.MemberAccessExpressionID &&
+            		fjs.isDateProperty(avnode, false))
+            	valIsNumber = true;
             if (varIsNumber && !valIsNumber && (avdef == null || avdef.getQualifiedName().equals(IASLanguageConstants.ANY_TYPE)))
             {
         		if (avnode.getNodeID() == ASTNodeID.FunctionCallID)
diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleEmitter.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleEmitter.java
index 7abd39d..64926bf 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleEmitter.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/royale/JSRoyaleEmitter.java
@@ -63,6 +63,8 @@ import org.apache.royale.compiler.internal.codegen.js.jx.PackageHeaderEmitter;
 import org.apache.royale.compiler.internal.codegen.js.jx.SelfReferenceEmitter;
 import org.apache.royale.compiler.internal.codegen.js.jx.SuperCallEmitter;
 import org.apache.royale.compiler.internal.codegen.js.jx.VarDeclarationEmitter;
+import org.apache.royale.compiler.internal.codegen.js.jx.BinaryOperatorEmitter.DatePropertiesGetters;
+import org.apache.royale.compiler.internal.codegen.js.jx.BinaryOperatorEmitter.DatePropertiesSetters;
 import org.apache.royale.compiler.internal.codegen.js.utils.EmitterUtils;
 import org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyaleEmitter;
 import org.apache.royale.compiler.internal.definitions.AccessorDefinition;
@@ -1232,7 +1234,7 @@ public class JSRoyaleEmitter extends JSGoogEmitter implements IJSRoyaleEmitter
      * @param obj
      * @return
      */
-    public boolean isDateProperty(IExpressionNode obj)
+    public boolean isDateProperty(IExpressionNode obj, boolean writeAccess)
     {
 		RoyaleProject project = (RoyaleProject)getWalker().getProject();
 		if (obj.getNodeID() == ASTNodeID.MemberAccessExpressionID)
@@ -1242,9 +1244,23 @@ public class JSRoyaleEmitter extends JSGoogEmitter implements IJSRoyaleEmitter
 			IExpressionNode rightNode = ((MemberAccessExpressionNode)obj).getRightOperandNode();
 			leftDef = leftNode.resolveType(project);
 			IDefinition rightDef = rightNode.resolve(project);
-			if (leftDef != null && leftDef.getQualifiedName().equals("Date") && rightDef instanceof AccessorDefinition)
+			if (leftDef != null && leftDef.getQualifiedName().equals("Date"))
 			{
-				return true;
+				if (rightDef instanceof AccessorDefinition)
+					return true;
+				else if (rightDef == null && rightNode.getNodeID() == ASTNodeID.IdentifierID)
+				{
+					if (writeAccess)
+					{
+			            DatePropertiesSetters propSetter = DatePropertiesSetters.valueOf(((IIdentifierNode)rightNode).getName().toUpperCase());
+			            if (propSetter != null) return true;
+					}
+					else
+					{
+			            DatePropertiesGetters propGetter = DatePropertiesGetters.valueOf(((IIdentifierNode)rightNode).getName().toUpperCase());
+			            if (propGetter != null) return true;
+					}
+				}
 			}
 		}
 		return false;
diff --git a/compiler-jx/src/test/build.xml b/compiler-jx/src/test/build.xml
index 9fc690e..c59c312 100644
--- a/compiler-jx/src/test/build.xml
+++ b/compiler-jx/src/test/build.xml
@@ -76,16 +76,8 @@
                     <exclude name="**/TestRoyaleMXML*.class"/>
                     <exclude name="**/TestSourceMapMXML*.class"/>
                     <exclude name="**/TestMXML*.class"/>
-                    <!-- externs tests -->
                     <exclude name="**/TestRoyaleClass.class"/>
-                    <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"/>
+                    <exclude name="**/TestTypedefsCompile.class"/>
                 </fileset>
             </batchtest>
             <formatter type="xml"/>
@@ -115,6 +107,7 @@
                     <include name="**/TestRoyaleFile.class"/>
                     <include name="**/TestRoyaleMXML*.class"/>
                     <include name="**/TestSourceMapMXML*.class"/>
+                    <exclude name="**/TestTypedefsCompile.class"/>
                 </fileset>
             </batchtest>
             <formatter type="xml"/>
@@ -124,7 +117,7 @@
         </junit>
     </target>
     
-    <target name="integration.tests.sdk" depends="download, compile.unit.tests">
+    <target name="integration.tests" depends="download, compile.unit.tests">
         <mkdir dir="${compiler.tests}/results"/>
         <mkdir dir="${compiler}/target/junit-temp"/>
         <junit dir="${compiler.tests}"
@@ -141,6 +134,7 @@
             <batchtest todir="${compiler}/target/junit-results">
                 <fileset dir="${compiler}/target/test-classes">
                     <include name="**/TestMXML*.class"/>
+                    <exclude name="**/TestTypedefsCompile.class"/>
                 </fileset>
             </batchtest>
             <formatter type="xml"/>
@@ -150,7 +144,7 @@
         </assertions>
     </target>
     
-    <target name="extern.tests" depends="download, compile.unit.tests">
+    <target name="typedef.tests" depends="download, compile.unit.tests">
         <mkdir dir="${compiler.tests}/results"/>
         <mkdir dir="${compiler}/target/junit-temp"/>
         <junit dir="${compiler.tests}"
@@ -166,16 +160,8 @@
             </classpath>
             <batchtest todir="${compiler}/target/junit-results">
                 <fileset dir="${compiler}/target/test-classes">
-                    <!-- externs tests -->
-                    <exclude name="**/TestRoyaleClass.class"/>
-                    <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"/>
+                    <!-- requires royale-typedefs and compc -->
+                    <include name="**/TestTypedefsCompile.class"/>
                 </fileset>
             </batchtest>
             <formatter type="xml"/>
@@ -202,8 +188,8 @@
         <delete file="${compiler}/target/junit-temp/royale.zip" />
     </target>
  
-    <target name="main" depends="unit.tests"/>
-    <target name="all" depends="unit.tests, integration.tests.sdk, integration.tests.asjs"/>
+    <target name="main" depends="unit.tests, integration.tests"/>
+    <target name="all" depends="unit.tests, integration.tests, typedef.tests, integration.tests.asjs"/>
 
     <target name="clean">
         <delete dir="${compiler.tests}/bin"/>
diff --git a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/goog/TestGoogClass.java b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/goog/TestGoogClass.java
index 6746c2f..be3bfbd 100644
--- a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/goog/TestGoogClass.java
+++ b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/goog/TestGoogClass.java
@@ -19,11 +19,16 @@
 
 package org.apache.royale.compiler.internal.codegen.js.goog;
 
+import java.io.File;
+import java.util.List;
+
 import org.apache.royale.compiler.driver.IBackend;
 import org.apache.royale.compiler.internal.codegen.as.TestClass;
 import org.apache.royale.compiler.internal.driver.js.goog.GoogBackend;
+import org.apache.royale.compiler.internal.projects.RoyaleJSProject;
 import org.apache.royale.compiler.tree.as.IClassNode;
 import org.apache.royale.compiler.tree.as.IFileNode;
+import org.apache.royale.utils.FilenameNormalization;
 import org.junit.Test;
 
 /**
@@ -79,63 +84,63 @@ public class TestGoogClass extends TestClass
     @Test
     public void testSimpleExtends()
     {
-        IClassNode node = getClassNode("public class A extends EventDispatcher {public function A() {}}");
+        IClassNode node = getClassNode("public class A extends TestImplementation {public function A() {}}");
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n * @extends {flash.events.EventDispatcher}\n */\norg.apache.royale.A = function() {\n\torg.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, flash.events.EventDispatcher);");
+        assertOut("/**\n * @constructor\n * @extends {custom.TestImplementation}\n */\norg.apache.royale.A = function() {\n\torg.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, custom.TestImplementation);");
     }
 
     @Override
     @Test
     public void testSimpleImplements()
     {
-        IClassNode node = getClassNode("public class A implements IEventDispatcher {public function A() {}}");
+        IClassNode node = getClassNode("public class A implements TestInterface {public function A() {}}");
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n * @implements {flash.events.IEventDispatcher}\n */\norg.apache.royale.A = function() {\n};");
+        assertOut("/**\n * @constructor\n * @implements {custom.TestInterface}\n */\norg.apache.royale.A = function() {\n};");
     }
 
     @Override
     @Test
     public void testSimpleImplementsMultiple()
     {
-        IClassNode node = getClassNode("public class A implements IEventDispatcher, IBitmapDrawable {public function A() {}}");
+        IClassNode node = getClassNode("public class A implements TestInterface, TestOtherInterface {public function A() {}}");
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n * @implements {flash.events.IEventDispatcher}\n * @implements {flash.display.IBitmapDrawable}\n */\norg.apache.royale.A = function() {\n};");
+        assertOut("/**\n * @constructor\n * @implements {custom.TestInterface}\n * @implements {custom.TestOtherInterface}\n */\norg.apache.royale.A = function() {\n};");
     }
 
     @Override
     @Test
     public void testSimpleExtendsImplements()
     {
-        IClassNode node = getClassNode("public class A extends EventDispatcher implements IEventDispatcher {public function A() {}}");
+        IClassNode node = getClassNode("public class A extends TestImplementation implements TestInterface {public function A() {}}");
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n * @extends {flash.events.EventDispatcher}\n * @implements {flash.events.IEventDispatcher}\n */\norg.apache.royale.A = function() {\n\torg.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, flash.events.EventDispatcher);");
+        assertOut("/**\n * @constructor\n * @extends {custom.TestImplementation}\n * @implements {custom.TestInterface}\n */\norg.apache.royale.A = function() {\n\torg.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, custom.TestImplementation);");
     }
 
     @Override
     @Test
     public void testSimpleExtendsImplementsMultiple()
     {
-        IClassNode node = getClassNode("public class A extends EventDispatcher implements IEventDispatcher, IBitmapDrawable {public function A() {}}");
+        IClassNode node = getClassNode("public class A extends TestImplementation implements TestInterface, TestOtherInterface {public function A() {}}");
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n * @extends {flash.events.EventDispatcher}\n * @implements {flash.events.IEventDispatcher}\n * @implements {flash.display.IBitmapDrawable}\n */\norg.apache.royale.A = function() {\n\torg.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, flash.events.EventDispatcher);");
+        assertOut("/**\n * @constructor\n * @extends {custom.TestImplementation}\n * @implements {custom.TestInterface}\n * @implements {custom.TestOtherInterface}\n */\norg.apache.royale.A = function() {\n\torg.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, custom.TestImplementation);");
     }
 
     @Override
     @Test
     public void testSimpleFinalExtendsImplementsMultiple()
     {
-        IClassNode node = getClassNode("public final class A extends EventDispatcher implements IEventDispatcher, IBitmapDrawable {public function A() {}}");
+        IClassNode node = getClassNode("public final class A extends TestImplementation implements TestInterface, TestOtherInterface {public function A() {}}");
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n * @extends {flash.events.EventDispatcher}\n * @implements {flash.events.IEventDispatcher}\n * @implements {flash.display.IBitmapDrawable}\n */\norg.apache.royale.A = function() {\n\torg.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, flash.events.EventDispatcher);");
+        assertOut("/**\n * @constructor\n * @extends {custom.TestImplementation}\n * @implements {custom.TestInterface}\n * @implements {custom.TestOtherInterface}\n */\norg.apache.royale.A = function() {\n\torg.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, custom.TestImplementation);");
     }
 
     @Override
     @Test
     public void testQualifiedExtendsImplementsMultiple()
     {
-        IClassNode node = getClassNode("public class A extends flash.events.EventDispatcher implements flash.events.IEventDispatcher, flash.display.IBitmapDrawable {public function A() {}}");
+        IClassNode node = getClassNode("public class A extends custom.TestImplementation implements custom.TestInterface, custom.TestOtherInterface {public function A() {}}");
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n * @extends {flash.events.EventDispatcher}\n * @implements {flash.events.IEventDispatcher}\n * @implements {flash.display.IBitmapDrawable}\n */\norg.apache.royale.A = function() {\n\torg.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, flash.events.EventDispatcher);");
+        assertOut("/**\n * @constructor\n * @extends {custom.TestImplementation}\n * @implements {custom.TestInterface}\n * @implements {custom.TestOtherInterface}\n */\norg.apache.royale.A = function() {\n\torg.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, custom.TestImplementation);");
     }
 
     @Override
@@ -158,9 +163,9 @@ public class TestGoogClass extends TestClass
     @Test
     public void testExtendsConstructor_super()
     {
-        IClassNode node = getClassNode("public class A extends flash.events.EventDispatcher { public function A() { super('foo', 42);}}");
+        IClassNode node = getClassNode("public class A extends custom.TestImplementation { public function A() { super('foo', 42);}}");
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n * @extends {flash.events.EventDispatcher}\n */\norg.apache.royale.A = function() {\n\tvar self = this;\n\torg.apache.royale.A.base(this, 'constructor', 'foo', 42);\n};\ngoog.inherits(org.apache.royale.A, flash.events.EventDispatcher);");
+        assertOut("/**\n * @constructor\n * @extends {custom.TestImplementation}\n */\norg.apache.royale.A = function() {\n\tvar self = this;\n\torg.apache.royale.A.base(this, 'constructor', 'foo', 42);\n};\ngoog.inherits(org.apache.royale.A, custom.TestImplementation);");
     }
 
     @Override
@@ -176,9 +181,9 @@ public class TestGoogClass extends TestClass
     @Test
     public void testExtendsConstructor_withArguments()
     {
-        IClassNode node = getClassNode("public class A extends flash.events.EventDispatcher {public function A(arg1:String, arg2:int) {}}");
+        IClassNode node = getClassNode("public class A extends custom.TestImplementation {public function A(arg1:String, arg2:int) {}}");
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n * @extends {flash.events.EventDispatcher}\n * @param {string} arg1\n * @param {number} arg2\n */\norg.apache.royale.A = function(arg1, arg2) {\n\torg.apache.royale.A.base(this, 'constructor', arg1, arg2);\n};\ngoog.inherits(org.apache.royale.A, flash.events.EventDispatcher);");
+        assertOut("/**\n * @constructor\n * @extends {custom.TestImplementation}\n * @param {string} arg1\n * @param {number} arg2\n */\norg.apache.royale.A = function(arg1, arg2) {\n\torg.apache.royale.A.base(this, 'constructor', arg1, arg2);\n};\ngoog.inherits(org.apache.royale.A, custom.TestImplementation);");
     }
 
     @Override
@@ -244,7 +249,7 @@ public class TestGoogClass extends TestClass
     @Override
     protected IClassNode getClassNode(String code)
     {
-        String source = "package org.apache.royale {import flash.events.IEventDispatcher;import flash.events.EventDispatcher;import flash.events.Event;import flash.display.IBitmapDrawable;"
+        String source = "package org.apache.royale {import custom.TestInterface;import custom.TestImplementation;import custom.TestEvent;import custom.TestOtherInterface;"
                 + code + "}";
         IFileNode node = compileAS(source);
         IClassNode child = (IClassNode) findFirstDescendantOfType(node,
diff --git a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/goog/TestGoogEmitter.java b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/goog/TestGoogEmitter.java
index 2fb6bfc..42e58e3 100644
--- a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/goog/TestGoogEmitter.java
+++ b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/goog/TestGoogEmitter.java
@@ -19,11 +19,15 @@
 
 package org.apache.royale.compiler.internal.codegen.js.goog;
 
+import java.io.File;
+import java.util.List;
+
 import org.apache.royale.compiler.driver.IBackend;
 import org.apache.royale.compiler.internal.driver.js.goog.GoogBackend;
 import org.apache.royale.compiler.internal.test.ASTestBase;
 import org.apache.royale.compiler.tree.as.IFileNode;
 import org.apache.royale.compiler.tree.as.IFunctionNode;
+import org.apache.royale.utils.FilenameNormalization;
 import org.junit.Test;
 
 /**
@@ -41,8 +45,8 @@ public class TestGoogEmitter extends ASTestBase
     public void testSimple()
     {
         String code = "package com.example.components {"
-                + "import flash.events.EventDispatcher;"
-                + "public class MyEventTarget extends EventDispatcher {"
+                + "import custom.TestImplementation;"
+                + "public class MyEventTarget extends TestImplementation {"
                 + "public function MyEventTarget() {if (foo() != 42) { bar(); } }"
                 + "private var _privateVar:String = \"do \";"
                 + "public var publicProperty:Number = 100;"
@@ -50,7 +54,7 @@ public class TestGoogEmitter extends ASTestBase
                 + "return \"Don't \" + _privateVar + value; }}}";
         IFileNode node = compileAS(code);
         asBlockWalker.visitFile(node);
-        assertOut("goog.provide('com.example.components.MyEventTarget');\n\ngoog.require('flash.events.EventDispatcher');\n\n/**\n * @constructor\n * @extends {flash.events.EventDispatcher}\n */\ncom.example.components.MyEventTarget = function() {\n\tvar self = this;\n\tcom.example.components.MyEventTarget.base(this, 'constructor');\n\tif (foo() != 42) {\n\t\tbar();\n\t}\n};\ngoog.inherits(com.example.components.MyEventTarget, flash.events.EventDispatcher);\n\n/**\n * @private\n * @type  [...]
+        assertOut("goog.provide('com.example.components.MyEventTarget');\n\ngoog.require('custom.TestImplementation');\n\n/**\n * @constructor\n * @extends {custom.TestImplementation}\n */\ncom.example.components.MyEventTarget = function() {\n\tvar self = this;\n\tcom.example.components.MyEventTarget.base(this, 'constructor');\n\tif (foo() != 42) {\n\t\tbar();\n\t}\n};\ngoog.inherits(com.example.components.MyEventTarget, custom.TestImplementation);\n\n/**\n * @private\n * @type {string}\ [...]
     }
 
     @Test
@@ -150,4 +154,5 @@ public class TestGoogEmitter extends ASTestBase
     {
         return new GoogBackend();
     }
+    
 }
diff --git a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleAccessors.java b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleAccessors.java
index abb45b5..af854af 100644
--- a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleAccessors.java
+++ b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleAccessors.java
@@ -103,13 +103,13 @@ public class TestRoyaleAccessors extends ASTestBase
     public void testGetSetCustomNamespaceAccessor()
     {
         IClassNode node = (IClassNode) getNode(
-                "import flash.utils.flash_proxy;use namespace flash_proxy;public class B { public function B() {}; public function doStuff():void {var theLabel:String = label; label = theLabel;}; private var _label:String; flash_proxy function get label():String {return _label}; flash_proxy function set label(value:String):void {_label = value};}",
+                "import custom.custom_namespace;use namespace custom_namespace;public class B { public function B() {}; public function doStuff():void {var theLabel:String = label; label = theLabel;}; private var _label:String; custom_namespace function get label():String {return _label}; custom_namespace function set label(value:String):void {_label = value};}",
                 IClassNode.class, WRAP_LEVEL_PACKAGE);
         asBlockWalker.visitClass(node);
-        String expected = "/**\n * @constructor\n */\nB = function() {\n};\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('B', B);\n\n\n/**\n * @export\n */\nB.prototype.doStuff = function() {\n  var /** @type {string} */ theLabel = this[\"http://www.adobe.com/2006/actionscript/flash/proxy::label\"];\n  this[\"http://www.adobe.com/2006/actionscript/flash/proxy::label\"] = theLabel;\n};\n\n\n/**\n * @private\n * @type {string}\n */\nB.prototype._lab [...]
-				"B.prototype[\"http://www.adobe.com/2006/actionscript/flash/proxy::get__label\"] = function() {\n  return this._label;\n};\n\n\n" +
-				"B.prototype[\"http://www.adobe.com/2006/actionscript/flash/proxy::set__label\"] = function(value) {\n  this._label = value;\n};\n\n\n" +
-        		"Object.defineProperties(B.prototype, /** @lends {B.prototype} */ {\n/**\n  * @export\n  * @type {string} */\n\"http://www.adobe.com/2006/actionscript/flash/proxy::label\": {\nget: B.prototype[\"http://www.adobe.com/2006/actionscript/flash/proxy::get__label\"],\nset: B.prototype[\"http://www.adobe.com/2006/actionscript/flash/proxy::set__label\"]}}\n);";
+        String expected = "/**\n * @constructor\n */\nB = function() {\n};\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('B', B);\n\n\n/**\n * @export\n */\nB.prototype.doStuff = function() {\n  var /** @type {string} */ theLabel = this[\"http://ns.apache.org/2017/custom/namespace::label\"];\n  this[\"http://ns.apache.org/2017/custom/namespace::label\"] = theLabel;\n};\n\n\n/**\n * @private\n * @type {string}\n */\nB.prototype._label;\n\n\n" +
+				"B.prototype[\"http://ns.apache.org/2017/custom/namespace::get__label\"] = function() {\n  return this._label;\n};\n\n\n" +
+				"B.prototype[\"http://ns.apache.org/2017/custom/namespace::set__label\"] = function(value) {\n  this._label = value;\n};\n\n\n" +
+        		"Object.defineProperties(B.prototype, /** @lends {B.prototype} */ {\n/**\n  * @export\n  * @type {string} */\n\"http://ns.apache.org/2017/custom/namespace::label\": {\nget: B.prototype[\"http://ns.apache.org/2017/custom/namespace::get__label\"],\nset: B.prototype[\"http://ns.apache.org/2017/custom/namespace::set__label\"]}}\n);";
         assertOut(expected);
     }
 
diff --git a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleClass.java b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleClass.java
index 2b632bd..c6d292d 100644
--- a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleClass.java
+++ b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleClass.java
@@ -55,70 +55,70 @@ public class TestRoyaleClass extends TestGoogClass
     @Test
     public void testSimpleExtends()
     {
-        IClassNode node = getClassNode("public class A extends EventDispatcher {public function A() {}}");
+        IClassNode node = getClassNode("public class A extends TestImplementation {public function A() {}}");
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n * @extends {flash.events.EventDispatcher}\n */\norg.apache.royale.A = function() {\n  org.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, flash.events.EventDispatcher);\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);");
+        assertOut("/**\n * @constructor\n * @extends {custom.TestImplementation}\n */\norg.apache.royale.A = function() {\n  org.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, custom.TestImplementation);\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);");
     }
 
     @Test
     public void testSimpleExtendsWithArgs()
     {
-        IClassNode node = getClassNode("public class A extends EventDispatcher {public function A(arg:String) { super(arg);}}");
+        IClassNode node = getClassNode("public class A extends TestImplementation {public function A(arg:String) { super(arg);}}");
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n * @extends {flash.events.EventDispatcher}\n * @param {string} arg\n */\norg.apache.royale.A = function(arg) {\n  org.apache.royale.A.base(this, 'constructor', arg);\n};\ngoog.inherits(org.apache.royale.A, flash.events.EventDispatcher);\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);");
+        assertOut("/**\n * @constructor\n * @extends {custom.TestImplementation}\n * @param {string} arg\n */\norg.apache.royale.A = function(arg) {\n  org.apache.royale.A.base(this, 'constructor', arg);\n};\ngoog.inherits(org.apache.royale.A, custom.TestImplementation);\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);");
     }
 
     @Test
     public void testSimpleExtendsWithArgsImplicitSuper()
     {
-        IClassNode node = getClassNode("public class A extends EventDispatcher {public function A(arg:String) {}}");
+        IClassNode node = getClassNode("public class A extends TestImplementation {public function A(arg:String) {}}");
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n * @extends {flash.events.EventDispatcher}\n * @param {string} arg\n */\norg.apache.royale.A = function(arg) {\n  org.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, flash.events.EventDispatcher);\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);");
+        assertOut("/**\n * @constructor\n * @extends {custom.TestImplementation}\n * @param {string} arg\n */\norg.apache.royale.A = function(arg) {\n  org.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, custom.TestImplementation);\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);");
     }
 
     @Override
     @Test
     public void testSimpleExtendsImplements()
     {
-        IClassNode node = getClassNode("public class A extends EventDispatcher implements IEventDispatcher {public function A() {}}");
+        IClassNode node = getClassNode("public class A extends TestImplementation implements TestInterface {public function A() {}}");
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n * @extends {flash.events.EventDispatcher}\n * @implements {flash.events.IEventDispatcher}\n */\norg.apache.royale.A = function() {\n  org.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, flash.events.EventDispatcher);\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);");
+        assertOut("/**\n * @constructor\n * @extends {custom.TestImplementation}\n * @implements {custom.TestInterface}\n */\norg.apache.royale.A = function() {\n  org.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, custom.TestImplementation);\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);");
     }
 
     @Override
     @Test
     public void testSimpleExtendsImplementsMultiple()
     {
-        IClassNode node = getClassNode("public class A extends EventDispatcher implements IEventDispatcher, IBitmapDrawable {public function A() {}}");
+        IClassNode node = getClassNode("public class A extends TestImplementation implements TestInterface, TestOtherInterface {public function A() {}}");
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n * @extends {flash.events.EventDispatcher}\n * @implements {flash.events.IEventDispatcher}\n * @implements {flash.display.IBitmapDrawable}\n */\norg.apache.royale.A = function() {\n  org.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, flash.events.EventDispatcher);\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);");
+        assertOut("/**\n * @constructor\n * @extends {custom.TestImplementation}\n * @implements {custom.TestInterface}\n * @implements {custom.TestOtherInterface}\n */\norg.apache.royale.A = function() {\n  org.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, custom.TestImplementation);\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);");
     }
 
     @Override
     @Test
     public void testSimpleFinalExtendsImplementsMultiple()
     {
-        IClassNode node = getClassNode("public final class A extends EventDispatcher implements IEventDispatcher, IBitmapDrawable {public function A() {}}");
+        IClassNode node = getClassNode("public final class A extends TestImplementation implements TestInterface, TestOtherInterface {public function A() {}}");
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n * @extends {flash.events.EventDispatcher}\n * @implements {flash.events.IEventDispatcher}\n * @implements {flash.display.IBitmapDrawable}\n */\norg.apache.royale.A = function() {\n  org.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, flash.events.EventDispatcher);\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);");
+        assertOut("/**\n * @constructor\n * @extends {custom.TestImplementation}\n * @implements {custom.TestInterface}\n * @implements {custom.TestOtherInterface}\n */\norg.apache.royale.A = function() {\n  org.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, custom.TestImplementation);\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);");
     }
 
     @Override
     @Test
     public void testQualifiedExtendsImplementsMultiple()
     {
-        IClassNode node = getClassNode("public class A extends flash.events.EventDispatcher implements flash.events.IEventDispatcher, flash.display.IBitmapDrawable {public function A() {}}");
+        IClassNode node = getClassNode("public class A extends custom.TestImplementation implements custom.TestInterface, custom.TestOtherInterface {public function A() {}}");
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n * @extends {flash.events.EventDispatcher}\n * @implements {flash.events.IEventDispatcher}\n * @implements {flash.display.IBitmapDrawable}\n */\norg.apache.royale.A = function() {\n  org.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, flash.events.EventDispatcher);\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);");
+        assertOut("/**\n * @constructor\n * @extends {custom.TestImplementation}\n * @implements {custom.TestInterface}\n * @implements {custom.TestOtherInterface}\n */\norg.apache.royale.A = function() {\n  org.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, custom.TestImplementation);\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);");
     }
 
     @Override
     @Test
     public void testExtendsConstructor_super()
     {
-        IClassNode node = getClassNode("public class A extends flash.events.EventDispatcher { public function A() { super('foo', 42);}}");
+        IClassNode node = getClassNode("public class A extends custom.TestImplementation { public function A() { super('foo', 42);}}");
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n * @extends {flash.events.EventDispatcher}\n */\norg.apache.royale.A = function() {\n  org.apache.royale.A.base(this, 'constructor', 'foo', 42);\n};\ngoog.inherits(org.apache.royale.A, flash.events.EventDispatcher);\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);");
+        assertOut("/**\n * @constructor\n * @extends {custom.TestImplementation}\n */\norg.apache.royale.A = function() {\n  org.apache.royale.A.base(this, 'constructor', 'foo', 42);\n};\ngoog.inherits(org.apache.royale.A, custom.TestImplementation);\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);");
     }
 
     @Test
@@ -135,7 +135,7 @@ public class TestRoyaleClass extends TestGoogClass
     {
         IClassNode node = getClassNode("public class B {public function B() {}; public var event:Event = new Event(); public function foo():String {return event.type;};}");
         asBlockWalker.visitClass(node);
-        String expected = "/**\n * @constructor\n */\norg.apache.royale.B = function() {\n\nthis.event = new flash.events.Event();\n};\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.B', org.apache.royale.B);\n\n\n/**\n * @export\n * @type {flash.events.Event}\n */\norg.apache.royale.B.prototype.event;\n\n\n/**\n * @export\n * @return {string}\n */\norg.apache.royale.B.prototype.foo = function() {\n  return this.event.type;\n};";
+        String expected = "/**\n * @constructor\n */\norg.apache.royale.B = function() {\n\nthis.event = new custom.TestEvent();\n};\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.B', org.apache.royale.B);\n\n\n/**\n * @export\n * @type {custom.TestEvent}\n */\norg.apache.royale.B.prototype.event;\n\n\n/**\n * @export\n * @return {string}\n */\norg.apache.royale.B.prototype.foo = function() {\n  return this.event.type;\n};";
         assertOut(expected);
     }
 
@@ -196,9 +196,9 @@ public class TestRoyaleClass extends TestGoogClass
     @Test
     public void testMethod_customNamespace()
     {
-        IClassNode node = getClassNode("import flash.utils.flash_proxy; use namespace flash_proxy; public class B {public function B() {}; flash_proxy function foo():void {};}");
+        IClassNode node = getClassNode("import custom.custom_namespace; use namespace custom_namespace; public class B {public function B() {}; custom_namespace function foo():void {};}");
         asBlockWalker.visitClass(node);
-        String expected = "/**\n * @constructor\n */\norg.apache.royale.B = function() {\n};\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.B', org.apache.royale.B);\n\n\n/**\n */\norg.apache.royale.B.prototype[\"http://www.adobe.com/2006/actionscript/flash/proxy::foo\"] = function() {\n};";
+        String expected = "/**\n * @constructor\n */\norg.apache.royale.B = function() {\n};\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.B', org.apache.royale.B);\n\n\n/**\n */\norg.apache.royale.B.prototype[\"http://ns.apache.org/2017/custom/namespace::foo\"] = function() {\n};";
         assertOut(expected);
     }
 
@@ -206,9 +206,9 @@ public class TestRoyaleClass extends TestGoogClass
     @Test
     public void testExtendsConstructor_withArguments()
     {
-        IClassNode node = getClassNode("public class A extends flash.events.EventDispatcher {public function A(arg1:String, arg2:int) {}}");
+        IClassNode node = getClassNode("public class A extends custom.TestImplementation {public function A(arg1:String, arg2:int) {}}");
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n * @extends {flash.events.EventDispatcher}\n * @param {string} arg1\n * @param {number} arg2\n */\norg.apache.royale.A = function(arg1, arg2) {\n  org.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, flash.events.EventDispatcher);\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);");
+        assertOut("/**\n * @constructor\n * @extends {custom.TestImplementation}\n * @param {string} arg1\n * @param {number} arg2\n */\norg.apache.royale.A = function(arg1, arg2) {\n  org.apache.royale.A.base(this, 'constructor');\n};\ngoog.inherits(org.apache.royale.A, custom.TestImplementation);\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);");
     }
 
     @Override
@@ -488,7 +488,7 @@ public class TestRoyaleClass extends TestGoogClass
     @Test
     public void testAccessors()
     {
-        IClassNode node = getClassNode("import flash.utils.flash_proxy;public class A {"
+        IClassNode node = getClassNode("import custom.custom_namespace;public class A {"
                 + "public function get foo1():Object{return null;}"
                 + "public function set foo1(value:Object):void{}"
                 + "protected function get foo2():Object{return null;}"
@@ -497,8 +497,8 @@ public class TestRoyaleClass extends TestGoogClass
                 + "private function set foo3(value:Object):void{}"
                 + "internal function get foo5():Object{return null;}"
                 + "internal function set foo5(value:Object):void{}"
-                + "flash_proxy function get foo6():Object{return null;}"
-                + "flash_proxy function set foo6(value:Object):void{}" + "}");
+                + "custom_namespace function get foo6():Object{return null;}"
+                + "custom_namespace function set foo6(value:Object):void{}" + "}");
         asBlockWalker.visitClass(node);
         assertOut("/**\n * @constructor\n */\norg.apache.royale.A = function() {\n};\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);\n\n\n" +
         		"org.apache.royale.A.prototype.get__foo1 = function() {\n  return null;\n};\n\n\n" +
@@ -509,33 +509,33 @@ public class TestRoyaleClass extends TestGoogClass
         		"org.apache.royale.A.prototype.set__foo3 = function(value) {\n};\n\n\n" +
         		"org.apache.royale.A.prototype.get__foo5 = function() {\n  return null;\n};\n\n\n" +
         		"org.apache.royale.A.prototype.set__foo5 = function(value) {\n};\n\n\n" +
-        		"org.apache.royale.A.prototype[\"http://www.adobe.com/2006/actionscript/flash/proxy::get__foo6\"] = function() {\n  return null;\n};\n\n\n" +
-        		"org.apache.royale.A.prototype[\"http://www.adobe.com/2006/actionscript/flash/proxy::set__foo6\"] = function(value) {\n};\n\n\n" +
+        		"org.apache.royale.A.prototype[\"http://ns.apache.org/2017/custom/namespace::get__foo6\"] = function() {\n  return null;\n};\n\n\n" +
+        		"org.apache.royale.A.prototype[\"http://ns.apache.org/2017/custom/namespace::set__foo6\"] = function(value) {\n};\n\n\n" +
         		"Object.defineProperties(org.apache.royale.A.prototype, /** @lends {org.apache.royale.A.prototype} */ {\n/**\n  * @export\n  * @type {Object} */\n" +
         		    "foo1: {\nget: org.apache.royale.A.prototype.get__foo1,\nset: org.apache.royale.A.prototype.set__foo1},\n/**\n  * @export\n  * @type {Object} */\n" +
         		    "foo2: {\nget: org.apache.royale.A.prototype.get__foo2,\nset: org.apache.royale.A.prototype.set__foo2},\n/**\n  * @export\n  * @type {Object} */\n" +
         		    "foo3: {\nget: org.apache.royale.A.prototype.get__foo3,\nset: org.apache.royale.A.prototype.set__foo3},\n/**\n  * @export\n  * @type {Object} */\n" +
         		    "foo5: {\nget: org.apache.royale.A.prototype.get__foo5,\nset: org.apache.royale.A.prototype.set__foo5},\n/**\n  * @export\n  * @type {Object} */\n" +
-        		    "\"http://www.adobe.com/2006/actionscript/flash/proxy::foo6\": {\nget: org.apache.royale.A.prototype[\"http://www.adobe.com/2006/actionscript/flash/proxy::get__foo6\"],\n" +
-        		    																"set: org.apache.royale.A.prototype[\"http://www.adobe.com/2006/actionscript/flash/proxy::set__foo6\"]}}\n);");
+        		    "\"http://ns.apache.org/2017/custom/namespace::foo6\": {\nget: org.apache.royale.A.prototype[\"http://ns.apache.org/2017/custom/namespace::get__foo6\"],\n" +
+        		    																"set: org.apache.royale.A.prototype[\"http://ns.apache.org/2017/custom/namespace::set__foo6\"]}}\n);");
     }
 
     @Override
     @Test
     public void testMethods()
     {
-        IClassNode node = getClassNode("import flash.utils.flash_proxy;public class A {"
+        IClassNode node = getClassNode("import custom.custom_namespace;public class A {"
                 + "public function foo1():Object{return null;}"
                 + "public final function foo1a():Object{return null;}"
                 + "override public function foo1b():Object{return super.foo1b();}"
                 + "protected function foo2(value:Object):void{}"
                 + "private function foo3(value:Object):void{}"
                 + "internal function foo5(value:Object):void{}"
-                + "flash_proxy function foo6(value:Object):void{}"
+                + "custom_namespace function foo6(value:Object):void{}"
                 + "public static function foo7(value:Object):void{}"
-                + "flash_proxy static function foo7(value:Object):void{}" + "}");
+                + "custom_namespace static function foo7(value:Object):void{}" + "}");
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n */\norg.apache.royale.A = function() {\n};\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);\n\n\n/**\n * @export\n * @return {Object}\n */\norg.apache.royale.A.prototype.foo1 = function() {\n  return null;\n};\n\n\n/**\n * @export\n * @return {Object}\n */\norg.apache.royale.A.prototype.foo1a = function() {\n  return null;\n};\n\n\n/**\n * @export\n * @override\n * [...]
+        assertOut("/**\n * @constructor\n */\norg.apache.royale.A = function() {\n};\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);\n\n\n/**\n * @export\n * @return {Object}\n */\norg.apache.royale.A.prototype.foo1 = function() {\n  return null;\n};\n\n\n/**\n * @export\n * @return {Object}\n */\norg.apache.royale.A.prototype.foo1a = function() {\n  return null;\n};\n\n\n/**\n * @export\n * @override\n * [...]
     }
 
     @Test
@@ -626,18 +626,18 @@ public class TestRoyaleClass extends TestGoogClass
     @Test
     public void testSimpleImplements()
     {
-        IClassNode node = getClassNode("public class A implements IEventDispatcher {public function A() {}}");
+        IClassNode node = getClassNode("public class A implements TestInterface {public function A() {}}");
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n * @implements {flash.events.IEventDispatcher}\n */\norg.apache.royale.A = function() {\n};\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);");
+        assertOut("/**\n * @constructor\n * @implements {custom.TestInterface}\n */\norg.apache.royale.A = function() {\n};\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);");
     }
 
     @Override
     @Test
     public void testSimpleImplementsMultiple()
     {
-        IClassNode node = getClassNode("public class A implements IEventDispatcher, IBitmapDrawable {public function A() {}}");
+        IClassNode node = getClassNode("public class A implements TestInterface, TestOtherInterface {public function A() {}}");
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n * @implements {flash.events.IEventDispatcher}\n * @implements {flash.display.IBitmapDrawable}\n */\norg.apache.royale.A = function() {\n};\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);");
+        assertOut("/**\n * @constructor\n * @implements {custom.TestInterface}\n * @implements {custom.TestOtherInterface}\n */\norg.apache.royale.A = function() {\n};\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);");
     }
 
 
@@ -671,9 +671,9 @@ public class TestRoyaleClass extends TestGoogClass
     @Test
     public void testConstructor_withImplicitSuperAndBodyAndComplexInitializer()
     {
-        IClassNode node = getClassNode("public class A extends EventDispatcher {public function A(arg1:String, arg2:int) {arg2 = arg2 + 2;} public var foo:Array = [];}");
+        IClassNode node = getClassNode("public class A extends TestImplementation {public function A(arg1:String, arg2:int) {arg2 = arg2 + 2;} public var foo:Array = [];}");
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n * @extends {flash.events.EventDispatcher}\n * @param {string} arg1\n * @param {number} arg2\n */\norg.apache.royale.A = function(arg1, arg2) {\n  org.apache.royale.A.base(this, 'constructor');\n  \n  this.foo = [];\n  arg2 = arg2 + 2;\n};\ngoog.inherits(org.apache.royale.A, flash.events.EventDispatcher);\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);\n\n\n/**\n * [...]
+        assertOut("/**\n * @constructor\n * @extends {custom.TestImplementation}\n * @param {string} arg1\n * @param {number} arg2\n */\norg.apache.royale.A = function(arg1, arg2) {\n  org.apache.royale.A.base(this, 'constructor');\n  \n  this.foo = [];\n  arg2 = arg2 + 2;\n};\ngoog.inherits(org.apache.royale.A, custom.TestImplementation);\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('org.apache.royale.A', org.apache.royale.A);\n\n\n/**\n * @expo [...]
     }
 
     @Test
diff --git a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleEmitter.java b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleEmitter.java
index d8225cd..e8c40a8 100644
--- a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleEmitter.java
+++ b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleEmitter.java
@@ -49,8 +49,8 @@ public class TestRoyaleEmitter extends TestGoogEmitter
     public void testSimple()
     {
         String code = "package com.example.components {"
-                + "import flash.events.EventDispatcher;"
-                + "public class MyEventTarget extends EventDispatcher {"
+                + "import custom.TestImplementation;"
+                + "public class MyEventTarget extends TestImplementation {"
                 + "public function MyEventTarget() {if (foo() != 42) { bar(); } }"
                 + "private var _privateVar:String = \"do \";"
                 + "public var publicProperty:Number = 100;"
@@ -68,13 +68,13 @@ public class TestRoyaleEmitter extends TestGoogEmitter
         		"\n" +
         		"goog.provide('com.example.components.MyEventTarget');\n" +
         		"\n" +
-        		"goog.require('flash.events.EventDispatcher');\n" +
+        		"goog.require('custom.TestImplementation');\n" +
         		"\n" +
         		"\n" +
         		"\n" +
         		"/**\n" +
         		" * @constructor\n" +
-        		" * @extends {flash.events.EventDispatcher}\n" +
+        		" * @extends {custom.TestImplementation}\n" +
         		" */\n" +
         		"com.example.components.MyEventTarget = function() {\n" +
         		"  com.example.components.MyEventTarget.base(this, 'constructor');\n" +
@@ -82,7 +82,7 @@ public class TestRoyaleEmitter extends TestGoogEmitter
         		"    bar();\n" +
         		"  }\n" +
         		"};\n" +
-        		"goog.inherits(com.example.components.MyEventTarget, flash.events.EventDispatcher);\n" +
+        		"goog.inherits(com.example.components.MyEventTarget, custom.TestImplementation);\n" +
           		"\n" +
         		"\n" +
         		"/**\n" +
diff --git a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleExpressions.java b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleExpressions.java
index edd2393..2cda9e1 100644
--- a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleExpressions.java
+++ b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleExpressions.java
@@ -127,10 +127,10 @@ public class TestRoyaleExpressions extends TestGoogExpressions
     @Test
     public void testVisitLanguageIdentifierNode_SuperMethodCustomNamespace()
     {
-        IFunctionNode node = (IFunctionNode)getNode("import flash.utils.Proxy;import flash.utils.flash_proxy;use namespace flash_proxy;public class RoyaleTest_A extends Proxy { flash_proxy function foo(){if (a) super.setProperty(a, b);}}",
+        IFunctionNode node = (IFunctionNode)getNode("import custom.TestProxy;import custom.custom_namespace;use namespace custom_namespace;public class RoyaleTest_A extends TestProxy { custom_namespace function foo(){if (a) super.setProperty(a, b);}}",
         					IFunctionNode.class, WRAP_LEVEL_PACKAGE);
         asBlockWalker.visitFunction(node);
-        assertOut("/**\n */\nRoyaleTest_A.prototype[\"http://www.adobe.com/2006/actionscript/flash/proxy::foo\"] = function() {\n  if (a)\n    RoyaleTest_A.superClass_['http://www.adobe.com/2006/actionscript/flash/proxy::setProperty'].apply(this, [ a, b] );\n}");
+        assertOut("/**\n */\nRoyaleTest_A.prototype[\"http://ns.apache.org/2017/custom/namespace::foo\"] = function() {\n  if (a)\n    RoyaleTest_A.superClass_['http://ns.apache.org/2017/custom/namespace::setProperty'].apply(this, [ a, b] );\n}");
     }
 
     @Test
@@ -892,20 +892,20 @@ public class TestRoyaleExpressions extends TestGoogExpressions
     public void testCustomNamespaceMethodAsVariable()
     {
         IFunctionNode node = (IFunctionNode) getNode(
-                "import flash.utils.flash_proxy; use namespace flash_proxy;public class B {flash_proxy function b() { function c(f:Function):void {}; var f:Function = b; c(f); }}",
+                "import custom.custom_namespace; use namespace custom_namespace;public class B {custom_namespace function b() { function c(f:Function):void {}; var f:Function = b; c(f); }}",
                 IFunctionNode.class, WRAP_LEVEL_PACKAGE);
         asBlockWalker.visitFunction(node);
-        assertOut("/**\n */\nB.prototype[\"http://www.adobe.com/2006/actionscript/flash/proxy::b\"] = function() {\n  var self = this;\n  function c(f) {\n  };\n  var /** @type {Function} */ f = org.apache.royale.utils.Language.closure(this[\"http://www.adobe.com/2006/actionscript/flash/proxy::b\"], this, 'http://www.adobe.com/2006/actionscript/flash/proxy::b');\n  c(f);\n}");
+        assertOut("/**\n */\nB.prototype[\"http://ns.apache.org/2017/custom/namespace::b\"] = function() {\n  var self = this;\n  function c(f) {\n  };\n  var /** @type {Function} */ f = org.apache.royale.utils.Language.closure(this[\"http://ns.apache.org/2017/custom/namespace::b\"], this, 'http://ns.apache.org/2017/custom/namespace::b');\n  c(f);\n}");
     }
     
     @Test
     public void testCustomNamespaceMethodAsVariableViaMemberAccess()
     {
         IFunctionNode node = (IFunctionNode) getNode(
-                "import flash.utils.flash_proxy; use namespace flash_proxy;public class B {flash_proxy function b():int { return this.b(); }}",
+                "import custom.custom_namespace; use namespace custom_namespace;public class B {custom_namespace function b():int { return this.b(); }}",
                 IFunctionNode.class, WRAP_LEVEL_PACKAGE);
         asBlockWalker.visitFunction(node);
-        assertOut("/**\n * @return {number}\n */\nB.prototype[\"http://www.adobe.com/2006/actionscript/flash/proxy::b\"] = function() {\n  return this[\"http://www.adobe.com/2006/actionscript/flash/proxy::b\"]();\n}");
+        assertOut("/**\n * @return {number}\n */\nB.prototype[\"http://ns.apache.org/2017/custom/namespace::b\"] = function() {\n  return this[\"http://ns.apache.org/2017/custom/namespace::b\"]();\n}");
     }
     
     @Test
@@ -1017,9 +1017,9 @@ public class TestRoyaleExpressions extends TestGoogExpressions
     @Test
     public void testClassCast()
     {
-        IClassNode node = (IClassNode) getNode("import flash.display.IBitmapDrawable; public class B implements IBitmapDrawable { public function B() { IBitmapDrawable(b).type = ''; } }", ClassNode.class, WRAP_LEVEL_PACKAGE);
+        IClassNode node = (IClassNode) getNode("import custom.TestOtherInterface; public class B implements TestOtherInterface { public function B() { TestOtherInterface(b).type = ''; } }", ClassNode.class, WRAP_LEVEL_PACKAGE);
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n * @implements {flash.display.IBitmapDrawable}\n */\nB = function() {\n  org.apache.royale.utils.Language.as(b, flash.display.IBitmapDrawable, true).type = '';\n};\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('B', B);");
+        assertOut("/**\n * @constructor\n * @implements {custom.TestOtherInterface}\n */\nB = function() {\n  org.apache.royale.utils.Language.as(b, custom.TestOtherInterface, true).type = '';\n};\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('B', B);");
     }
 
     @Test
@@ -1052,10 +1052,10 @@ public class TestRoyaleExpressions extends TestGoogExpressions
     public void testFunctionMemberFullyQualified()
     {
         IFunctionNode node = (IFunctionNode) getNode(
-                "import flash.utils.clearTimeout; public class B {public function b() { clearTimeout.length; }}",
+                "import custom.TestGlobalFunction; public class B {public function b() { TestGlobalFunction.length; }}",
                 IFunctionNode.class, WRAP_LEVEL_PACKAGE, true);
         asBlockWalker.visitFunction(node);
-        assertOut("/**\n * @export\n */\nfoo.bar.B.prototype.b = function() {\n  flash.utils.clearTimeout.length;\n}");
+        assertOut("/**\n * @export\n */\nfoo.bar.B.prototype.b = function() {\n  custom.TestGlobalFunction.length;\n}");
     }
 
     @Test
diff --git a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleFieldMembers.java b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleFieldMembers.java
index 7525646..ea844f8 100644
--- a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleFieldMembers.java
+++ b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleFieldMembers.java
@@ -182,10 +182,10 @@ public class TestRoyaleFieldMembers extends TestGoogFieldMembers
     @Test
     public void testField_withTypeValueCustomNamespaceStaticMethodCall()
     {
-    	IClassNode node = (IClassNode) getNode("import flash.utils.flash_proxy;use namespace flash_proxy;public static var foo:Object = initFoo(); flash_proxy static function initFoo():Object { return null; }",
+    	IClassNode node = (IClassNode) getNode("import custom.custom_namespace;use namespace custom_namespace;public static var foo:Object = initFoo(); custom_namespace static function initFoo():Object { return null; }",
         		IClassNode.class, WRAP_LEVEL_CLASS);
         asBlockWalker.visitClass(node);
-        assertOut("/**\n * @constructor\n */\nRoyaleTest_A = function() {\n};\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('RoyaleTest_A', RoyaleTest_A);\n\n\n/**\n * @export\n * @type {Object}\n */\nRoyaleTest_A.foo;\n\n\n/**\n * @return {Object}\n */\nRoyaleTest_A[\"http://www.adobe.com/2006/actionscript/flash/proxy::initFoo\"] = function() {\n  return null;\n};\n\nRoyaleTest_A.foo = RoyaleTest_A[\"http://www.adobe.com/2006/actionscript/flash/p [...]
+        assertOut("/**\n * @constructor\n */\nRoyaleTest_A = function() {\n};\n\n\n/**\n * Prevent renaming of class. Needed for reflection.\n */\ngoog.exportSymbol('RoyaleTest_A', RoyaleTest_A);\n\n\n/**\n * @export\n * @type {Object}\n */\nRoyaleTest_A.foo;\n\n\n/**\n * @return {Object}\n */\nRoyaleTest_A[\"http://ns.apache.org/2017/custom/namespace::initFoo\"] = function() {\n  return null;\n};\n\nRoyaleTest_A.foo = RoyaleTest_A[\"http://ns.apache.org/2017/custom/namespace::initFoo\"] [...]
     }
     
     @Test
diff --git a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleGlobalClasses.java b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleGlobalClasses.java
index 8bb2efc..aa516d9 100644
--- a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleGlobalClasses.java
+++ b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleGlobalClasses.java
@@ -47,7 +47,7 @@ public class TestRoyaleGlobalClasses extends TestGoogGlobalClasses
         backend = createBackend();
     	project = new RoyaleJSProject(workspace, backend);
     	project.config = new JSGoogConfiguration();
-    	project.setProxyBaseClass("flash.utils.Proxy");
+    	project.setProxyBaseClass("custom.TestProxy");
         super.setUp();
     }
 
@@ -860,47 +860,47 @@ public class TestRoyaleGlobalClasses extends TestGoogGlobalClasses
     public void testProxy()
     {
         IFunctionNode node = (IFunctionNode) getNode(
-                "import flash.utils.Proxy; public class B {public function b() { var a:Proxy = new Proxy();a.foo = 'bar'; }}",
+                "import custom.TestProxy; public class B {public function b() { var a:TestProxy = new TestProxy();a.foo = 'bar'; }}",
                 IFunctionNode.class, WRAP_LEVEL_PACKAGE, true);
         asBlockWalker.visitFunction(node);
-        assertOut("/**\n * @export\n */\nfoo.bar.B.prototype.b = function() {\n  var /** @type {flash.utils.Proxy} */ a = new flash.utils.Proxy();\n  a.setProperty('foo', 'bar');\n}");
+        assertOut("/**\n * @export\n */\nfoo.bar.B.prototype.b = function() {\n  var /** @type {custom.TestProxy} */ a = new custom.TestProxy();\n  a.setProperty('foo', 'bar');\n}");
     }
     
     @Test
     public void testProxyGet()
     {
         IFunctionNode node = (IFunctionNode) getNode(
-                "import flash.utils.Proxy; public class B {public function b() { var a:Proxy = new Proxy();var bar:* = a.foo; }}",
+                "import custom.TestProxy; public class B {public function b() { var a:TestProxy = new TestProxy();var bar:* = a.foo; }}",
                 IFunctionNode.class, WRAP_LEVEL_PACKAGE, true);
         asBlockWalker.visitFunction(node);
-        assertOut("/**\n * @export\n */\nfoo.bar.B.prototype.b = function() {\n  var /** @type {flash.utils.Proxy} */ a = new flash.utils.Proxy();\n  var /** @type {*} */ bar = a.getProperty('foo');\n}");
+        assertOut("/**\n * @export\n */\nfoo.bar.B.prototype.b = function() {\n  var /** @type {custom.TestProxy} */ a = new custom.TestProxy();\n  var /** @type {*} */ bar = a.getProperty('foo');\n}");
     }
     
     @Test
     public void testProxyConcat()
     {
         IFunctionNode node = (IFunctionNode) getNode(
-                "import flash.utils.Proxy; public class B {public function b() { var a:Proxy = new Proxy();var baz:String = a.foo + 'bar'; }}",
+                "import custom.TestProxy; public class B {public function b() { var a:TestProxy = new TestProxy();var baz:String = a.foo + 'bar'; }}",
                 IFunctionNode.class, WRAP_LEVEL_PACKAGE, true);
         asBlockWalker.visitFunction(node);
-        assertOut("/**\n * @export\n */\nfoo.bar.B.prototype.b = function() {\n  var /** @type {flash.utils.Proxy} */ a = new flash.utils.Proxy();\n  var /** @type {string} */ baz = a.getProperty('foo') + 'bar';\n}");
+        assertOut("/**\n * @export\n */\nfoo.bar.B.prototype.b = function() {\n  var /** @type {custom.TestProxy} */ a = new custom.TestProxy();\n  var /** @type {string} */ baz = a.getProperty('foo') + 'bar';\n}");
     }
     
     @Test
     public void testProxyAddAndAssign()
     {
         IFunctionNode node = (IFunctionNode) getNode(
-                "import flash.utils.Proxy; public class B {public function b() { var a:Proxy = new Proxy();a.foo += 'bar'; }}",
+                "import custom.TestProxy; public class B {public function b() { var a:TestProxy = new TestProxy();a.foo += 'bar'; }}",
                 IFunctionNode.class, WRAP_LEVEL_PACKAGE, true);
         asBlockWalker.visitFunction(node);
-        assertOut("/**\n * @export\n */\nfoo.bar.B.prototype.b = function() {\n  var /** @type {flash.utils.Proxy} */ a = new flash.utils.Proxy();\n  a.setProperty('foo', a.getProperty('foo') + 'bar');\n}");
+        assertOut("/**\n * @export\n */\nfoo.bar.B.prototype.b = function() {\n  var /** @type {custom.TestProxy} */ a = new custom.TestProxy();\n  a.setProperty('foo', a.getProperty('foo') + 'bar');\n}");
     }
     
     @Test
     public void testProxyForLoop()
     {
     	IForLoopNode node = (IForLoopNode) getNode(
-                "import flash.utils.Proxy; public class B {public function b() { var a:Proxy = new Proxy();for (var p:* in a) delete a[p];; }}",
+                "import custom.TestProxy; public class B {public function b() { var a:TestProxy = new TestProxy();for (var p:* in a) delete a[p];; }}",
                 IForLoopNode.class, WRAP_LEVEL_PACKAGE, true);
         asBlockWalker.visitForLoop(node);
         assertOut("for (var /** @type {*} */ p in a.propertyNames())\n  a.deleteProperty(p);");
@@ -910,7 +910,7 @@ public class TestRoyaleGlobalClasses extends TestGoogGlobalClasses
     public void testProxyForEachLoop()
     {
     	IForLoopNode node = (IForLoopNode) getNode(
-                "import flash.utils.Proxy; public class B {public function b() { var a:Proxy = new Proxy();for each (var p:String in a) var i:int = p.length; }}",
+                "import custom.TestProxy; public class B {public function b() { var a:TestProxy = new TestProxy();for each (var p:String in a) var i:int = p.length; }}",
                 IForLoopNode.class, WRAP_LEVEL_PACKAGE, true);
         asBlockWalker.visitForLoop(node);
         assertOut("var foreachiter0_target = a;\nfor (var foreachiter0 in foreachiter0_target.propertyNames()) \n{\nvar p = foreachiter0_target.getProperty(foreachiter0);\n\n  var /** @type {number} */ i = p.length;}\n");
diff --git a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleJSX.java b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleJSX.java
index e7e215b..b519e9b 100644
--- a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleJSX.java
+++ b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleJSX.java
@@ -341,33 +341,33 @@ public class TestRoyaleJSX extends ASTestBase
     @Test
     public void testImportedClass()
     {
-        IFunctionNode node = getMethod("[JSX]\nfunction foo() {\n  import flash.events.EventDispatcher;\n  return <EventDispatcher/>;\n}");
+        IFunctionNode node = getMethod("[JSX]\nfunction foo() {\n  import custom.TestImplementation;\n  return <TestImplementation/>;\n}");
         asBlockWalker.visitFunction(node);
-        assertOut("RoyaleTest_A.prototype.foo = function() {\n  return React.createElement(flash.events.EventDispatcher, null);\n}");
+        assertOut("RoyaleTest_A.prototype.foo = function() {\n  return React.createElement(custom.TestImplementation, null);\n}");
     }
 
     @Test
     public void tesClassWithAttribute()
     {
-        IFunctionNode node = getMethod("[JSX]\nfunction foo() {\n  import flash.events.EventDispatcher;\n  return <EventDispatcher id=\"hello\"/>;\n}");
+        IFunctionNode node = getMethod("[JSX]\nfunction foo() {\n  import custom.TestImplementation;\n  return <TestImplementation id=\"hello\"/>;\n}");
         asBlockWalker.visitFunction(node);
-        assertOut("RoyaleTest_A.prototype.foo = function() {\n  return React.createElement(flash.events.EventDispatcher, { id: 'hello' });\n}");
+        assertOut("RoyaleTest_A.prototype.foo = function() {\n  return React.createElement(custom.TestImplementation, { id: 'hello' });\n}");
     }
 
     @Test
     public void tesClassWithRef()
     {
-        IFunctionNode node = getMethod("[JSX]\nfunction foo() {\n  import flash.events.EventDispatcher;\n  return <EventDispatcher ref=\"hello\"/>;\n}");
+        IFunctionNode node = getMethod("[JSX]\nfunction foo() {\n  import custom.TestImplementation;\n  return <TestImplementation ref=\"hello\"/>;\n}");
         asBlockWalker.visitFunction(node);
-        assertOut("RoyaleTest_A.prototype.foo = function() {\n  return React.createElement(flash.events.EventDispatcher, { 'ref': 'hello' });\n}");
+        assertOut("RoyaleTest_A.prototype.foo = function() {\n  return React.createElement(custom.TestImplementation, { 'ref': 'hello' });\n}");
     }
 
     @Test
     public void tesClassWithKey()
     {
-        IFunctionNode node = getMethod("[JSX]\nfunction foo() {\n  import flash.events.EventDispatcher;\n  return <EventDispatcher key=\"hello\"/>;\n}");
+        IFunctionNode node = getMethod("[JSX]\nfunction foo() {\n  import custom.TestImplementation;\n  return <TestImplementation key=\"hello\"/>;\n}");
         asBlockWalker.visitFunction(node);
-        assertOut("RoyaleTest_A.prototype.foo = function() {\n  return React.createElement(flash.events.EventDispatcher, { 'key': 'hello' });\n}");
+        assertOut("RoyaleTest_A.prototype.foo = function() {\n  return React.createElement(custom.TestImplementation, { 'key': 'hello' });\n}");
     }
 
     @Override
diff --git a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleMethodMembers.java b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleMethodMembers.java
index d4fe796..f05f4bc 100644
--- a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleMethodMembers.java
+++ b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleMethodMembers.java
@@ -98,9 +98,9 @@ public class TestRoyaleMethodMembers extends TestGoogMethodMembers
     @Test
     public void testMethod_withNamespaceCustom()
     {
-        IFunctionNode node = getMethod("import flash.utils.flash_proxy;flash_proxy function foo(bar:String, baz:int = null):int{  return -1;}");
+        IFunctionNode node = getMethod("import custom.custom_namespace;custom_namespace function foo(bar:String, baz:int = null):int{  return -1;}");
         asBlockWalker.visitFunction(node);
-        assertOut("/**\n * @param {string} bar\n * @param {number=} baz\n * @return {number}\n */\nRoyaleTest_A.prototype[\"http://www.adobe.com/2006/actionscript/flash/proxy::foo\"] = function(bar, baz) {\n  baz = typeof baz !== 'undefined' ? baz : null;\n  return -1;\n}");
+        assertOut("/**\n * @param {string} bar\n * @param {number=} baz\n * @return {number}\n */\nRoyaleTest_A.prototype[\"http://ns.apache.org/2017/custom/namespace::foo\"] = function(bar, baz) {\n  baz = typeof baz !== 'undefined' ? baz : null;\n  return -1;\n}");
     }
 
     //--------------------------------------------------------------------------
diff --git a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleStatements.java b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleStatements.java
index 0ca6e1e..09e7e91 100644
--- a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleStatements.java
+++ b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/js/royale/TestRoyaleStatements.java
@@ -479,7 +479,7 @@ public class TestRoyaleStatements extends TestGoogStatements
     @Test
     public void testVisitImport()
     {
-        IImportNode node = (IImportNode) getNode("import flash.events.EventDispatcher;", IImportNode.class);
+        IImportNode node = (IImportNode) getNode("import custom.TestImplementation;", IImportNode.class);
         asBlockWalker.visitImport(node);
         assertOut("");
     }
diff --git a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/mxml/TestMXMLApplication.java b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/mxml/TestMXMLApplication.java
index 69c32d8..0aa5601 100644
--- a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/mxml/TestMXMLApplication.java
+++ b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/mxml/TestMXMLApplication.java
@@ -29,61 +29,61 @@ public class TestMXMLApplication extends MXMLTestBase
     public void testBasicApp()
     {
         String code = ""
-                + "<s:Application xmlns:s=\"library://ns.adobe.com/flex/spark\">"
-                + "</s:Application>";
+                + "<custom:TestInstance xmlns:custom=\"library://ns.apache.org/royale/test\">"
+                + "</custom:TestInstance>";
 
         IMXMLFileNode node = compileMXML(code);
 
         mxmlBlockWalker.visitFile(node);
 
-        assertOut("<Application>\n\t\n</Application>");
+        assertOut("<TestInstance>\n\t\n</TestInstance>");
     }
 
     @Test
     public void testBasicAppWithOneComponent()
     {
         String code = ""
-                + "<s:Application xmlns:s=\"library://ns.adobe.com/flex/spark\">"
-                + "    <s:Button id=\"myBtn\" label=\"Hello world\"></s:Button>"
-                + "</s:Application>";
+                + "<custom:TestInstance xmlns:custom=\"library://ns.apache.org/royale/test\">"
+                + "    <custom:Button id=\"myBtn\" label=\"Hello world\"></custom:Button>"
+                + "</custom:TestInstance>";
 
         IMXMLFileNode node = compileMXML(code);
 
         mxmlBlockWalker.visitFile(node);
 
-        assertOut("<Application>\n\t<Button id=\"myBtn\" label=\"Hello world\"></Button>\n</Application>");
+        assertOut("<TestInstance>\n\t<Button id=\"myBtn\" label=\"Hello world\"></Button>\n</TestInstance>");
     }
 
     @Test
     public void testBasicAppWithTwoComponents()
     {
         String code = ""
-                + "<s:Application xmlns:s=\"library://ns.adobe.com/flex/spark\">"
-                + "    <s:Label id=\"myLbl\" text=\"Bye bye\"></s:Label>"
-                + "    <s:Button id=\"myBtn\" label=\"Hello world\"></s:Button>"
-                + "</s:Application>";
+                + "<custom:TestInstance xmlns:custom=\"library://ns.apache.org/royale/test\">"
+                + "    <custom:Label id=\"myLbl\" text=\"Bye bye\"></custom:Label>"
+                + "    <custom:Button id=\"myBtn\" label=\"Hello world\"></custom:Button>"
+                + "</custom:TestInstance>";
 
         IMXMLFileNode node = compileMXML(code);
 
         mxmlBlockWalker.visitFile(node);
 
-        assertOut("<Application>\n\t<Label id=\"myLbl\" text=\"Bye bye\"></Label>\n\t<Button id=\"myBtn\" label=\"Hello world\"></Button>\n</Application>");
+        assertOut("<TestInstance>\n\t<Label id=\"myLbl\" text=\"Bye bye\"></Label>\n\t<Button id=\"myBtn\" label=\"Hello world\"></Button>\n</TestInstance>");
     }
 
     @Test
     public void testBasicAppWithSimpleScript()
     {
         String code = ""
-                + "<s:Application xmlns:fx=\"http://ns.adobe.com/mxml/2009\" xmlns:s=\"library://ns.adobe.com/flex/spark\">"
+                + "<custom:TestInstance xmlns:fx=\"http://ns.adobe.com/mxml/2009\" xmlns:custom=\"library://ns.apache.org/royale/test\">"
                 + "    <fx:Script><![CDATA["
                 + "        private const GREETING:String = \"Hello world!\""
-                + "    ]]></fx:Script>" + "</s:Application>";
+                + "    ]]></fx:Script>" + "</custom:TestInstance>";
 
         IMXMLFileNode node = compileMXML(code);
 
         mxmlBlockWalker.visitFile(node);
 
-        assertOut("<Application>\n\t<script><![CDATA[\n\t\tprivate var GREETING:String = \"Hello world!\";\n\t]]></script>\n</Application>");
+        assertOut("<TestInstance>\n\t<script><![CDATA[\n\t\tprivate var GREETING:String = \"Hello world!\";\n\t]]></script>\n</TestInstance>");
     }
 
     @Test
@@ -91,19 +91,18 @@ public class TestMXMLApplication extends MXMLTestBase
     {
         String code = ""
                 + "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
-                + "<s:Application xmlns:fx=\"http://ns.adobe.com/mxml/2009\""
-                + "               xmlns:s=\"library://ns.adobe.com/flex/spark\" "
-                + "               xmlns:mx=\"library://ns.adobe.com/flex/mx\" "
+                + "<custom:TestInstance xmlns:fx=\"http://ns.adobe.com/mxml/2009\""
+                + "               xmlns:custom=\"library://ns.apache.org/royale/test\" "
                 + "               minWidth=\"955\" minHeight=\"600\">"
                 + "    <fx:Declarations>"
                 + "        <!-- Place non-visual elements (e.g., services, value objects) here -->"
-                + "    </fx:Declarations>" + "</s:Application>";
+                + "    </fx:Declarations>" + "</custom:TestInstance>";
 
         IMXMLFileNode node = compileMXML(code);
 
         mxmlBlockWalker.visitFile(node);
 
-        assertOut("<Application minWidth=\"955\" minHeight=\"600\">\n\t\n</Application>");
+        assertOut("<TestInstance minWidth=\"955\" minHeight=\"600\">\n\t\n</TestInstance>");
     }
 
 }
diff --git a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/mxml/TestMXMLAttributes.java b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/mxml/TestMXMLAttributes.java
index a5c3a53..492612b 100644
--- a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/mxml/TestMXMLAttributes.java
+++ b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/mxml/TestMXMLAttributes.java
@@ -42,7 +42,11 @@ public class TestMXMLAttributes extends MXMLTestBase
         
         mxmlBlockWalker.visitInstance(node);
 
-        assertThat(((IMXMLInstanceNode) node.getChild(0)).getID(), is("myBtn"));
+        // this was getChild() before removing dependency on Flash
+        // not sure why Button would have a child, but also, in MXMLTestBase
+        // there are two calls to findFirstDescendant, which doesn't make sense
+        // assertThat(((IMXMLInstanceNode) node.getChild(0)).getID(), is("myBtn"));
+        assertThat(((IMXMLInstanceNode) node).getID(), is("myBtn"));
     }
 
     @Test
diff --git a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/mxml/TestMXMLNodes.java b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/mxml/TestMXMLNodes.java
index 8c46637..a662b0b 100644
--- a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/mxml/TestMXMLNodes.java
+++ b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/mxml/TestMXMLNodes.java
@@ -28,7 +28,7 @@ public class TestMXMLNodes extends MXMLTestBase
     @Test
     public void testSimpleNode()
     {
-        String code = "<s:Button />";
+        String code = "<custom:Button />";
 
         IMXMLPropertySpecifierNode node = (IMXMLPropertySpecifierNode) getNode(
                 code, IMXMLPropertySpecifierNode.class,
@@ -42,7 +42,7 @@ public class TestMXMLNodes extends MXMLTestBase
     @Test
     public void testSimpleNodeWithId()
     {
-        String code = "<s:Button id=\"myBtn\"/>";
+        String code = "<custom:Button id=\"myBtn\"/>";
 
         IMXMLPropertySpecifierNode node = (IMXMLPropertySpecifierNode) getNode(
                 code, IMXMLPropertySpecifierNode.class,
@@ -56,7 +56,7 @@ public class TestMXMLNodes extends MXMLTestBase
     @Test
     public void testSimpleNodeWithAttribute()
     {
-        String code = "<s:Button label=\"Click me\" />";
+        String code = "<custom:Button label=\"Click me\" />";
 
         IMXMLPropertySpecifierNode node = (IMXMLPropertySpecifierNode) getNode(
                 code, IMXMLPropertySpecifierNode.class,
@@ -70,7 +70,7 @@ public class TestMXMLNodes extends MXMLTestBase
     @Test
     public void testSimpleNodeWithInnerText()
     {
-        String code = "<s:Button>Click me</s:Button>";
+        String code = "<custom:Button>Click me</custom:Button>";
 
         IMXMLPropertySpecifierNode node = (IMXMLPropertySpecifierNode) getNode(
                 code, IMXMLPropertySpecifierNode.class,
@@ -84,7 +84,7 @@ public class TestMXMLNodes extends MXMLTestBase
     @Test
     public void testAnotherSimpleNodeWithInnerText()
     {
-        String code = "<s:Label>Hello World!</s:Label>";
+        String code = "<custom:Label>Hello World!</custom:Label>";
 
         IMXMLPropertySpecifierNode node = (IMXMLPropertySpecifierNode) getNode(
                 code, IMXMLPropertySpecifierNode.class,
@@ -98,7 +98,7 @@ public class TestMXMLNodes extends MXMLTestBase
     @Test
     public void testSimpleNodeWithMultipleAttributes()
     {
-        String code = "<s:Button visible=\"false\" x=\"100\" width=\"1.5\" label=\"Click me ;-)\" color=\"0xFF0000\"/>";
+        String code = "<custom:Button visible=\"false\" x=\"100\" width=\"1.5\" label=\"Click me ;-)\" color=\"0xFF0000\"/>";
 
         IMXMLPropertySpecifierNode node = (IMXMLPropertySpecifierNode) getNode(
                 code, IMXMLPropertySpecifierNode.class,
@@ -112,7 +112,7 @@ public class TestMXMLNodes extends MXMLTestBase
     @Test
     public void testNodeWithChild()
     {
-        String code = "<s:Group><s:RadioButton /></s:Group>";
+        String code = "<custom:Group><custom:Label /></custom:Group>";
 
         IMXMLPropertySpecifierNode node = (IMXMLPropertySpecifierNode) getNode(
                 code, IMXMLPropertySpecifierNode.class,
@@ -120,13 +120,13 @@ public class TestMXMLNodes extends MXMLTestBase
 
         mxmlBlockWalker.visitPropertySpecifier(node);
 
-        assertOut("<Group><RadioButton></RadioButton></Group>");
+        assertOut("<Group><Label></Label></Group>");
     }
 
     @Test
     public void testNodeWithChildAndAttribute()
     {
-        String code = "<s:Group id=\"myGrp\"><s:RadioButton /></s:Group>";
+        String code = "<custom:Group id=\"myGrp\"><custom:Label /></custom:Group>";
 
         IMXMLPropertySpecifierNode node = (IMXMLPropertySpecifierNode) getNode(
                 code, IMXMLPropertySpecifierNode.class,
@@ -134,14 +134,14 @@ public class TestMXMLNodes extends MXMLTestBase
 
         mxmlBlockWalker.visitPropertySpecifier(node);
 
-        assertOut("<Group id=\"myGrp\"><RadioButton></RadioButton></Group>");
+        assertOut("<Group id=\"myGrp\"><Label></Label></Group>");
     }
 
     @Test
     public void testNodeWithNestedChildren()
     {
-        String code = "<s:Group><s:Group><s:Group>" + "<s:RadioButton />"
-                + "</s:Group></s:Group></s:Group>";
+        String code = "<custom:Group><custom:Group><custom:Group>" + "<custom:Label />"
+                + "</custom:Group></custom:Group></custom:Group>";
 
         IMXMLPropertySpecifierNode node = (IMXMLPropertySpecifierNode) getNode(
                 code, IMXMLPropertySpecifierNode.class,
@@ -149,15 +149,15 @@ public class TestMXMLNodes extends MXMLTestBase
 
         mxmlBlockWalker.visitPropertySpecifier(node);
 
-        assertOut("<Group><Group><Group><RadioButton></RadioButton></Group></Group></Group>");
+        assertOut("<Group><Group><Group><Label></Label></Group></Group></Group>");
     }
 
     @Test
     public void testNodeWithNestedChildrenAndAttribute()
     {
-        String code = "<s:Group><s:Group><s:Group>"
-                + "<s:RadioButton id=\"myRB\"/>"
-                + "</s:Group></s:Group></s:Group>";
+        String code = "<custom:Group><custom:Group><custom:Group>"
+                + "<custom:Label id=\"myRB\"/>"
+                + "</custom:Group></custom:Group></custom:Group>";
 
         IMXMLPropertySpecifierNode node = (IMXMLPropertySpecifierNode) getNode(
                 code, IMXMLPropertySpecifierNode.class,
@@ -165,15 +165,15 @@ public class TestMXMLNodes extends MXMLTestBase
 
         mxmlBlockWalker.visitPropertySpecifier(node);
 
-        assertOut("<Group><Group><Group><RadioButton id=\"myRB\"></RadioButton></Group></Group></Group>");
+        assertOut("<Group><Group><Group><Label id=\"myRB\"></Label></Group></Group></Group>");
     }
 
     @Test
     public void testNodeWithNestedChildrenAndInnerText()
     {
-        String code = "<s:Group><s:Group><s:Group>"
-                + "<s:Button>Click me</s:Button>"
-                + "</s:Group></s:Group></s:Group>";
+        String code = "<custom:Group><custom:Group><custom:Group>"
+                + "<custom:Button>Click me</custom:Button>"
+                + "</custom:Group></custom:Group></custom:Group>";
 
         IMXMLPropertySpecifierNode node = (IMXMLPropertySpecifierNode) getNode(
                 code, IMXMLPropertySpecifierNode.class,
diff --git a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/externals/TestExternalsJSCompile.java b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/typedefs/TestTypedefsCompile.java
similarity index 94%
rename from compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/externals/TestExternalsJSCompile.java
rename to compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/typedefs/TestTypedefsCompile.java
index 1d23763..8fda76c 100644
--- a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/externals/TestExternalsJSCompile.java
+++ b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/codegen/typedefs/TestTypedefsCompile.java
@@ -54,7 +54,7 @@ import org.junit.Test;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Iterables;
 
-public class TestExternalsJSCompile
+public class TestTypedefsCompile
 {
     private static ITestAdapter testAdapter = TestAdapterFactory.getTestAdapter();
 
@@ -62,7 +62,7 @@ public class TestExternalsJSCompile
 
     private static File app1ASSrcDir = new File(testAdapter.getUnitTestBaseDir(), "typedefs/app1/as_src");
 
-    private static File app1AJSSrcDir = new File(testAdapter.getTempDir(), "typedefs/app1/js_src");
+    private static File app1JSSrcDir = new File(testAdapter.getTempDir(), "typedefs/app1/js_src");
 
     private static File jsSWCFile = new File(testAdapter.getTempDir(), "typedefs/bin/JS.swc");
 
@@ -88,10 +88,10 @@ public class TestExternalsJSCompile
         backend = new RoyaleBackend();
 
         config = new ExternCConfiguration();
-        ExternalsTestUtils.init();
-        config.setASRoot(ExternalsTestUtils.AS_ROOT_DIR);
-        ExternalsTestUtils.addTestExcludesFull(config);
-        ExternalsTestUtils.addTestExternalsFull(config);
+        TypedefsTestUtils.init();
+        config.setASRoot(TypedefsTestUtils.AS_ROOT_DIR);
+        TypedefsTestUtils.addTestExcludesFull(config);
+        TypedefsTestUtils.addTestTypedefsFull(config);
         
         assertFalse(config.getConfigurationProblems().size() > 0);
 
@@ -110,7 +110,7 @@ public class TestExternalsJSCompile
         libraries = new ArrayList<File>();
 
         FileUtils.deleteQuietly(jsSWCFile);
-        FileUtils.deleteQuietly(app1AJSSrcDir);
+        FileUtils.deleteQuietly(app1JSSrcDir);
     }
 
     @After
@@ -131,7 +131,7 @@ public class TestExternalsJSCompile
 
         compileProject("Main", app1ASSrcDir.getAbsolutePath());
 
-        assertTrue(new File(app1AJSSrcDir, "Main_output.js").exists());
+        assertTrue(new File(app1JSSrcDir, "Main_output.js").exists());
     }
 
     private boolean compileSWC()
@@ -141,7 +141,7 @@ public class TestExternalsJSCompile
 
         File destAS3File = new File(config.getAsClassRoot().getAbsolutePath() + File.separator + "AS3.as");
         try {
-			FileUtils.copyFile(ExternalsTestUtils.AS3_NAMESPACE_FILE, destAS3File);
+			FileUtils.copyFile(TypedefsTestUtils.AS3_NAMESPACE_FILE, destAS3File);
 		} catch (IOException e) {
 			// TODO Auto-generated catch block
 			e.printStackTrace();
@@ -259,7 +259,7 @@ public class TestExternalsJSCompile
 
     protected File getOutputClassFile(String qname, File outputFolder)
     {
-        File baseDir = app1AJSSrcDir;
+        File baseDir = app1JSSrcDir;
 
         String[] cname = qname.split("\\.");
         String sdirPath = baseDir.getAbsolutePath() + File.separator;
diff --git a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/test/ASTestBase.java b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/test/ASTestBase.java
index c8cb270..401c0bf 100644
--- a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/test/ASTestBase.java
+++ b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/test/ASTestBase.java
@@ -60,8 +60,8 @@ public class ASTestBase extends TestBase
     @Override
     protected void addSourcePaths(List<File> sourcePaths)
     {
-        sourcePaths.add(new File(FilenameNormalization.normalize(
-                 "../../../externs/GCL/src/main/flex")));
+        //sourcePaths.add(new File(FilenameNormalization.normalize(
+        //         "../../../externs/GCL/src/main/flex")));
         
         super.addSourcePaths(sourcePaths);
     }
diff --git a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/test/MXMLTestBase.java b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/test/MXMLTestBase.java
index 18fc565..953f41f 100644
--- a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/test/MXMLTestBase.java
+++ b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/test/MXMLTestBase.java
@@ -27,6 +27,7 @@ import org.apache.royale.compiler.internal.mxml.MXMLNamespaceMapping;
 import org.apache.royale.compiler.mxml.IMXMLNamespaceMapping;
 import org.apache.royale.compiler.tree.mxml.IMXMLFileNode;
 import org.apache.royale.compiler.tree.mxml.IMXMLNode;
+import org.apache.royale.utils.FilenameNormalization;
 import org.apache.royale.utils.ITestAdapter;
 import org.apache.royale.utils.TestAdapterFactory;
 import org.junit.Ignore;
@@ -55,7 +56,7 @@ public class MXMLTestBase extends TestBase
     @Override
     protected void addLibraries(List<File> libraries)
     {
-        libraries.addAll(testAdapter.getLibraries(true));
+        //libraries.addAll(testAdapter.getLibraries(true));
 
         super.addLibraries(libraries);
     }
@@ -66,13 +67,11 @@ public class MXMLTestBase extends TestBase
     {
         namespaceMappings.add(new MXMLNamespaceMapping(
                 "http://ns.adobe.com/mxml/2009",
-                testAdapter.getFlexManifestPath("mxml-2009")));
-        namespaceMappings.add(new MXMLNamespaceMapping(
-                "library://ns.adobe.com/flex/mx",
-                testAdapter.getFlexManifestPath("mx")));
-        namespaceMappings.add(new MXMLNamespaceMapping(
-                "library://ns.adobe.com/flex/spark",
-                testAdapter.getFlexManifestPath("spark")));
+                FilenameNormalization.normalize("../../../compiler/src/test/resources/mxml-2009-manifest.xml")));
+    	String customManifestPath = FilenameNormalization.normalize("../../../compiler/src/test/resources/custom-manifest.xml");
+    	namespaceMappings.add(new MXMLNamespaceMapping(
+    			"library://ns.apache.org/royale/test",
+    			customManifestPath));
 
         super.addNamespaceMappings(namespaceMappings);
     }
@@ -94,14 +93,14 @@ public class MXMLTestBase extends TestBase
             int wrapLevel)
     {
         if (wrapLevel >= WRAP_LEVEL_NODE)
-            code = "<s:Button " + code + "></s:Button>";
+            code = "<custom:Button " + code + "></custom:Button>";
 
         if (wrapLevel >= WRAP_LEVEL_DOCUMENT)
             code = ""
-                    + "<s:Application xmlns:fx=\"http://ns.adobe.com/mxml/2009\""
-                    + " xmlns:s=\"library://ns.adobe.com/flex/spark\""
-                    + " xmlns:mx=\"library://ns.adobe.com/flex/mx\">" + code
-                    + "</s:Application>";
+                    + "<custom:TestInstance xmlns:fx=\"http://ns.adobe.com/mxml/2009\""
+                    + " xmlns:custom=\"library://ns.apache.org/royale/test\">"
+                    + code
+                    + "</custom:TestInstance>";
 
         IMXMLFileNode node = compileMXML(code);
 
diff --git a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/test/TestBase.java b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/test/TestBase.java
index a8ac33d..357328b 100644
--- a/compiler-jx/src/test/java/org/apache/royale/compiler/internal/test/TestBase.java
+++ b/compiler-jx/src/test/java/org/apache/royale/compiler/internal/test/TestBase.java
@@ -115,7 +115,7 @@ public class TestBase implements ITestBase
         {
             backend = createBackend();
         	project = new RoyaleJSProject(workspace, backend);
-        	project.setProxyBaseClass("flash.utils.Proxy");
+        	project.setProxyBaseClass("custom.TestProxy");
         }
         project.setProblems(errors);
         RoyaleProjectConfigurator.configure(project);
@@ -679,6 +679,13 @@ public class TestBase implements ITestBase
     {
         addSourcePaths(sourcePaths);
         addLibraries(libraries);
+        if (libraries.size() == 0)
+        {
+        	String jsSwcPath = FilenameNormalization.normalize("../../../compiler-externc/target/js.swc");
+    		libraries.add(new File(jsSwcPath));
+        	String customSwcPath = FilenameNormalization.normalize("../../../compiler/target/custom.swc");
+    		libraries.add(new File(customSwcPath));        	
+        }
         addNamespaceMappings(namespaceMappings);
 
         project.setSourcePath(sourcePaths);
diff --git a/compiler-jx/src/test/resources/goog/files/call-super.as b/compiler-jx/src/test/resources/goog/files/call-super.as
index 5c5cea1..a50a150 100644
--- a/compiler-jx/src/test/resources/goog/files/call-super.as
+++ b/compiler-jx/src/test/resources/goog/files/call-super.as
@@ -19,11 +19,11 @@
 package org.apache.royale
 {
 
-import flash.events.IEventDispatcher;
+import custom.TestInterface;
 
-import flash.events.EventDispatcher;
+import custom.TestImplementation;
 
-public dynamic class A extends EventDispatcher implements IEventDispatcher
+public dynamic class A extends TestImplementation implements TestInterface
 {
 	public function A(z:String)
 	{
diff --git a/compiler-jx/src/test/resources/goog/files/call-super_result.js b/compiler-jx/src/test/resources/goog/files/call-super_result.js
index 57a675b..c0bd571 100644
--- a/compiler-jx/src/test/resources/goog/files/call-super_result.js
+++ b/compiler-jx/src/test/resources/goog/files/call-super_result.js
@@ -13,20 +13,20 @@
  */
 goog.provide('org.apache.royale.A');
 
-goog.require('flash.events.IEventDispatcher');
-goog.require('flash.events.EventDispatcher');
+goog.require('custom.TestInterface');
+goog.require('custom.TestImplementation');
 
 /**
  * @constructor
- * @extends {flash.events.EventDispatcher}
- * @implements {flash.events.IEventDispatcher}
+ * @extends {custom.TestImplementation}
+ * @implements {custom.TestInterface}
  * @param {string} z
  */
 org.apache.royale.A = function(z) {
 	var self = this;
 	org.apache.royale.A.base(this, 'constructor', z);
 };
-goog.inherits(org.apache.royale.A, flash.events.EventDispatcher);
+goog.inherits(org.apache.royale.A, custom.TestImplementation);
 
 /**
  * @param {string} a
diff --git a/compiler-jx/src/test/resources/goog/files/input.as b/compiler-jx/src/test/resources/goog/files/input.as
index c3496cd..84958ee 100644
--- a/compiler-jx/src/test/resources/goog/files/input.as
+++ b/compiler-jx/src/test/resources/goog/files/input.as
@@ -19,11 +19,11 @@
 package org.apache.royale
 {
 
-import flash.events.IEventDispatcher;
+import custom.TestInterface;
 
-import flash.events.EventDispatcher;
+import custom.TestImplementation;
 
-public dynamic class A extends flash.events.EventDispatcher implements IEventDispatcher
+public dynamic class A extends custom.TestImplementation implements TestInterface
 {
 	public static const MY_CLASS_CONST:String = "myClassConst";
 	
diff --git a/compiler-jx/src/test/resources/goog/files/output.js b/compiler-jx/src/test/resources/goog/files/output.js
index c996229..258a74f 100644
--- a/compiler-jx/src/test/resources/goog/files/output.js
+++ b/compiler-jx/src/test/resources/goog/files/output.js
@@ -13,20 +13,20 @@
  */
 goog.provide('org.apache.royale.A');
 
-goog.require('flash.events.IEventDispatcher');
-goog.require('flash.events.EventDispatcher');
+goog.require('custom.TestInterface');
+goog.require('custom.TestImplementation');
 
 /**
  * @constructor
- * @extends {flash.events.EventDispatcher}
- * @implements {flash.events.IEventDispatcher}
+ * @extends {custom.TestImplementation}
+ * @implements {custom.TestInterface}
  */
 org.apache.royale.A = function() {
 	var self = this;
 	org.apache.royale.A.base(this, 'constructor');
 	self.trace(typeof("a"));
 };
-goog.inherits(org.apache.royale.A, flash.events.EventDispatcher);
+goog.inherits(org.apache.royale.A, custom.TestImplementation);
 
 /**
  * @const
diff --git a/compiler-jx/src/test/resources/goog/files/poc.as b/compiler-jx/src/test/resources/goog/files/poc.as
index 8efb4ca..e4b86e3 100644
--- a/compiler-jx/src/test/resources/goog/files/poc.as
+++ b/compiler-jx/src/test/resources/goog/files/poc.as
@@ -19,12 +19,11 @@
 package  
 {
 
-import flash.events.MouseEvent;
+import custom.MouseEvent;
+import custom.TestEvent;
+import custom.TestImplementation;
 
-import flash.events.Event;
-import flash.events.EventDispatcher;
-
-public class Example extends EventDispatcher
+public class Example extends TestImplementation
 {
 	private static const BYEBYE:String = "Bye Bye";
 	private static const HELLOWORLD:String = "Hello World";
@@ -36,20 +35,20 @@ public class Example extends EventDispatcher
 		init();
 	}
 	
-	private var _btn1:Event;
-	private var _btn2:Event;
-	private var _btn3:Event;
+	private var _btn1:TestEvent;
+	private var _btn2:TestEvent;
+	private var _btn3:TestEvent;
 	private var _lbl1:MouseEvent;
 	private var _lbl2:MouseEvent;
-	private var _et1:EventDispatcher;
-	private var _et2:EventDispatcher;
-	private var _et3:EventDispatcher;
+	private var _et1:TestImplementation;
+	private var _et2:TestImplementation;
+	private var _et3:TestImplementation;
 	
 	public function init():void
 	{
-		_et1 = new EventDispatcher();
-		_et2 = new EventDispatcher();
-		_et3 = new EventDispatcher();
+		_et1 = new TestImplementation();
+		_et2 = new TestImplementation();
+		_et3 = new TestImplementation();
 		
 		_lbl1 = new MouseEvent();
 		_lbl1.localX = 100;
@@ -65,19 +64,19 @@ public class Example extends EventDispatcher
 		
 		dispatchEvent(_lbl2);
 		
-		_btn1 = new Event();
+		_btn1 = new TestEvent();
 		_btn1.type = "Click me";
 		_et1.addEventListener(MouseEvent.CLICK, btn1clickHandler);
 		
 		_et1.dispatchEvent(_btn1);
 
-		_btn2 = new Event();
+		_btn2 = new TestEvent();
 		_btn2.type = "Add it";
 		_et2.addEventListener(MouseEvent.CLICK, btn2clickHandler);
 		
 		_et2.dispatchEvent(_btn2);
 		
-		_btn3 = new Event();
+		_btn3 = new TestEvent();
 		_btn3.type = "Move it";
 		_et3.addEventListener(MouseEvent.CLICK, btn3clickHandler);
 		
diff --git a/compiler-jx/src/test/resources/goog/files/poc_result.js b/compiler-jx/src/test/resources/goog/files/poc_result.js
index a179045..88796b5 100644
--- a/compiler-jx/src/test/resources/goog/files/poc_result.js
+++ b/compiler-jx/src/test/resources/goog/files/poc_result.js
@@ -13,20 +13,20 @@
  */
 goog.provide('Example');
 
-goog.require('flash.events.MouseEvent');
-goog.require('flash.events.Event');
-goog.require('flash.events.EventDispatcher');
+goog.require('custom.MouseEvent');
+goog.require('custom.TestEvent');
+goog.require('custom.TestImplementation');
 
 /**
  * @constructor
- * @extends {flash.events.EventDispatcher}
+ * @extends {custom.TestImplementation}
  */
 Example = function() {
 	var self = this;
 	Example.base(this, 'constructor');
 	self.init();
 };
-goog.inherits(Example, flash.events.EventDispatcher);
+goog.inherits(Example, custom.TestImplementation);
 
 /**
  * @private
@@ -50,83 +50,83 @@ Example.counter = 100;
 
 /**
  * @private
- * @type {flash.events.Event}
+ * @type {custom.TestEvent}
  */
 Example.prototype._btn1;
 
 /**
  * @private
- * @type {flash.events.Event}
+ * @type {custom.TestEvent}
  */
 Example.prototype._btn2;
 
 /**
  * @private
- * @type {flash.events.Event}
+ * @type {custom.TestEvent}
  */
 Example.prototype._btn3;
 
 /**
  * @private
- * @type {flash.events.MouseEvent}
+ * @type {custom.MouseEvent}
  */
 Example.prototype._lbl1;
 
 /**
  * @private
- * @type {flash.events.MouseEvent}
+ * @type {custom.MouseEvent}
  */
 Example.prototype._lbl2;
 
 /**
  * @private
- * @type {flash.events.EventDispatcher}
+ * @type {custom.TestImplementation}
  */
 Example.prototype._et1;
 
 /**
  * @private
- * @type {flash.events.EventDispatcher}
+ * @type {custom.TestImplementation}
  */
 Example.prototype._et2;
 
 /**
  * @private
- * @type {flash.events.EventDispatcher}
+ * @type {custom.TestImplementation}
  */
 Example.prototype._et3;
 
 Example.prototype.init = function() {
 	var self = this;
-	self._et1 = new flash.events.EventDispatcher();
-	self._et2 = new flash.events.EventDispatcher();
-	self._et3 = new flash.events.EventDispatcher();
-	self._lbl1 = new flash.events.MouseEvent();
+	self._et1 = new custom.TestImplementation();
+	self._et2 = new custom.TestImplementation();
+	self._et3 = new custom.TestImplementation();
+	self._lbl1 = new custom.MouseEvent();
 	self._lbl1.localX = 100;
 	self._lbl1.localY = 25;
 	self._lbl1.type = Example.HELLOWORLD;
 	self.dispatchEvent(self._lbl1);
-	self._lbl2 = new flash.events.MouseEvent();
+	self._lbl2 = new custom.MouseEvent();
 	self._lbl2.localX = 200;
 	self._lbl2.localY = 25;
 	self._lbl2.type = Example.counter + "";
 	self.dispatchEvent(self._lbl2);
-	self._btn1 = new flash.events.Event();
+	self._btn1 = new custom.TestEvent();
 	self._btn1.type = "Click me";
-	self._et1.addEventListener(flash.events.MouseEvent.CLICK, self.btn1clickHandler);
+	self._et1.addEventListener(custom.MouseEvent.CLICK, self.btn1clickHandler);
 	self._et1.dispatchEvent(self._btn1);
-	self._btn2 = new flash.events.Event();
+	self._btn2 = new custom.TestEvent();
 	self._btn2.type = "Add it";
-	self._et2.addEventListener(flash.events.MouseEvent.CLICK, self.btn2clickHandler);
+	self._et2.addEventListener(custom.MouseEvent.CLICK, self.btn2clickHandler);
 	self._et2.dispatchEvent(self._btn2);
-	self._btn3 = new flash.events.Event();
+	self._btn3 = new custom.TestEvent();
 	self._btn3.type = "Move it";
-	self._et3.addEventListener(flash.events.MouseEvent.CLICK, self.btn3clickHandler);
+	self._et3.addEventListener(custom.MouseEvent.CLICK, self.btn3clickHandler);
 	self._et3.dispatchEvent(self._btn3);
 };
 
 /**
- * @param {flash.events.MouseEvent} event
+ * @param {custom.MouseEvent} event
  */
 Example.prototype.btn1clickHandler = function(event) {
 	var self = this;
@@ -137,7 +137,7 @@ Example.prototype.btn1clickHandler = function(event) {
 };
 
 /**
- * @param {flash.events.MouseEvent} event
+ * @param {custom.MouseEvent} event
  */
 Example.prototype.btn2clickHandler = function(event) {
 	var self = this;
@@ -145,7 +145,7 @@ Example.prototype.btn2clickHandler = function(event) {
 };
 
 /**
- * @param {flash.events.MouseEvent} event
+ * @param {custom.MouseEvent} event
  */
 Example.prototype.btn3clickHandler = function(event) {
 	var self = this;
diff --git a/compiler-jx/src/test/resources/goog/files/qualify-new-object.as b/compiler-jx/src/test/resources/goog/files/qualify-new-object.as
index c5810ab..3b9f04f 100644
--- a/compiler-jx/src/test/resources/goog/files/qualify-new-object.as
+++ b/compiler-jx/src/test/resources/goog/files/qualify-new-object.as
@@ -19,22 +19,22 @@
 package org.apache.royale
 {
 
-import flash.events.EventDispatcher;
+import custom.TestImplementation;
 
-public class A extends EventDispatcher
+public class A extends TestImplementation
 {
 	public function A() 
 	{
 		init();
 	}
 	
-	private var _privateVar:EventDispatcher;
+	private var _privateVar:TestImplementation;
 	
 	public function init():void
 	{
-		var btn:EventDispatcher = new EventDispatcher();
+		var btn:TestImplementation = new TestImplementation();
 		
-		_privateVar = new EventDispatcher();
+		_privateVar = new TestImplementation();
 		
 		addEventListener("click", function () {});
 	}
diff --git a/compiler-jx/src/test/resources/goog/files/qualify-new-object_result.js b/compiler-jx/src/test/resources/goog/files/qualify-new-object_result.js
index 0362a94..aca551d 100644
--- a/compiler-jx/src/test/resources/goog/files/qualify-new-object_result.js
+++ b/compiler-jx/src/test/resources/goog/files/qualify-new-object_result.js
@@ -13,29 +13,29 @@
  */
 goog.provide('org.apache.royale.A');
 
-goog.require('flash.events.EventDispatcher');
+goog.require('custom.TestImplementation');
 
 /**
  * @constructor
- * @extends {flash.events.EventDispatcher}
+ * @extends {custom.TestImplementation}
  */
 org.apache.royale.A = function() {
 	var self = this;
 	org.apache.royale.A.base(this, 'constructor');
 	self.init();
 };
-goog.inherits(org.apache.royale.A, flash.events.EventDispatcher);
+goog.inherits(org.apache.royale.A, custom.TestImplementation);
 
 /**
  * @private
- * @type {flash.events.EventDispatcher}
+ * @type {custom.TestImplementation}
  */
 org.apache.royale.A.prototype._privateVar;
 
 org.apache.royale.A.prototype.init = function() {
 	var self = this;
-	var /** @type {flash.events.EventDispatcher} */ btn = new flash.events.EventDispatcher();
-	self._privateVar = new flash.events.EventDispatcher();
+	var /** @type {custom.TestImplementation} */ btn = new custom.TestImplementation();
+	self._privateVar = new custom.TestImplementation();
 	self.addEventListener("click", function() {
 	});
 };
diff --git a/compiler-jx/src/test/resources/royale/files/models/MyModel.as b/compiler-jx/src/test/resources/royale/files/models/MyModel.as
index 113df2d..c743d44 100644
--- a/compiler-jx/src/test/resources/royale/files/models/MyModel.as
+++ b/compiler-jx/src/test/resources/royale/files/models/MyModel.as
@@ -19,9 +19,9 @@
 package models
 {
 	import org.apache.royale.events.Event;
-	import org.apache.royale.events.EventDispatcher;
+	import org.apache.royale.events.TestImplementation;
 	
-	public class MyModel extends EventDispatcher
+	public class MyModel extends TestImplementation
 	{
 		public function MyModel()
 		{
diff --git a/compiler-jx/src/test/resources/royale/files/models/MyModel_result.js b/compiler-jx/src/test/resources/royale/files/models/MyModel_result.js
index ba0011d..07f5110 100644
--- a/compiler-jx/src/test/resources/royale/files/models/MyModel_result.js
+++ b/compiler-jx/src/test/resources/royale/files/models/MyModel_result.js
@@ -22,13 +22,13 @@
 goog.provide('models.MyModel');
 
 goog.require('org.apache.royale.events.Event');
-goog.require('org.apache.royale.events.EventDispatcher');
+goog.require('org.apache.royale.events.TestImplementation');
 
 
 
 /**
  * @constructor
- * @extends {org.apache.royale.events.EventDispatcher}
+ * @extends {org.apache.royale.events.TestImplementation}
  */
 models.MyModel = function() {
   models.MyModel.base(this, 'constructor');
@@ -36,7 +36,7 @@ models.MyModel = function() {
 this._strings = ["AAPL", "ADBE", "GOOG", "MSFT", "YHOO"];
 this._cities = ["London", "Miami", "Paris", "Sydney", "Tokyo"];
 };
-goog.inherits(models.MyModel, org.apache.royale.events.EventDispatcher);
+goog.inherits(models.MyModel, org.apache.royale.events.TestImplementation);
 
 
 /**
diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/targets/LinkageChecker.java b/compiler/src/main/java/org/apache/royale/compiler/internal/targets/LinkageChecker.java
index b418526..14196ab 100644
--- a/compiler/src/main/java/org/apache/royale/compiler/internal/targets/LinkageChecker.java
+++ b/compiler/src/main/java/org/apache/royale/compiler/internal/targets/LinkageChecker.java
@@ -109,14 +109,20 @@ public class LinkageChecker
         
         // next add all of the symbols from external libraries
         IWorkspace w = project.getWorkspace();
+        Collection<File> extLibs = targetSettings.getExternalLibraryPath();
+        List<RSLSettings> rsls = targetSettings.getRuntimeSharedLibraryPath();
         List<File> libraries = new ArrayList<File>(
-                targetSettings.getExternalLibraryPath().size() +
-                targetSettings.getRuntimeSharedLibraryPath().size());
-        libraries.addAll(targetSettings.getExternalLibraryPath());
-        for (RSLSettings settings : targetSettings.getRuntimeSharedLibraryPath())
+                ((extLibs == null) ? 0 : extLibs.size()) +
+                ((rsls == null) ? 0 : rsls.size()));
+        if (extLibs != null)
+        	libraries.addAll(targetSettings.getExternalLibraryPath());
+        if (rsls != null)
         {
-            libraries.add(settings.getLibraryFile());
-        }
+	        for (RSLSettings settings : targetSettings.getRuntimeSharedLibraryPath())
+	        {
+	            libraries.add(settings.getLibraryFile());
+	        }
+        }        
         
         for (File library : libraries)
         {
diff --git a/compiler/src/test/resources/custom-manifest.xml b/compiler/src/test/resources/custom-manifest.xml
index 0f03063..6930ff1 100644
--- a/compiler/src/test/resources/custom-manifest.xml
+++ b/compiler/src/test/resources/custom-manifest.xml
@@ -26,9 +26,12 @@
 <componentPackage>
 
     <component id="TestInstance" class="custom.TestInstance" />
-    <component id="Button" class="custom.TestInstance" />
+    <component id="Button" class="custom.Button" />
     <component id="HBox" class="custom.TestInstance" />
-    <component id="Label" class="custom.TestInstance" />
+    <component id="Label" class="custom.Label" />
     <component id="VBox" class="custom.TestInstance" />
+    <component id="Group" class="custom.Group" />
+
+    <component id="TestImplementation" class="custom.TestImplementation" />
 
 </componentPackage>
diff --git a/compiler/src/test/royale/custom/TestInstance.as b/compiler/src/test/royale/custom/Button.as
similarity index 82%
copy from compiler/src/test/royale/custom/TestInstance.as
copy to compiler/src/test/royale/custom/Button.as
index 78841c0..5a7aee2 100644
--- a/compiler/src/test/royale/custom/TestInstance.as
+++ b/compiler/src/test/royale/custom/Button.as
@@ -18,23 +18,17 @@
 ////////////////////////////////////////////////////////////////////////////////
 package custom {
 
-[Event(name="complete", type="custom.TestEvent")]
+[DefaultProperty("label")]
 
 /**
  * @constructor
  */
-public class TestInstance {
+public class Button extends TestInstance {
 
     /**
      */
-    public function TestInstance() {
+    public function Button() {
     }
-
-    public var name:String;
-    
-    public var value:Number;
     
-    public function someFunction():void {
-    }
 }
 }
diff --git a/compiler/src/test/royale/custom/TestInstance.as b/compiler/src/test/royale/custom/Group.as
similarity index 82%
copy from compiler/src/test/royale/custom/TestInstance.as
copy to compiler/src/test/royale/custom/Group.as
index 78841c0..5503766 100644
--- a/compiler/src/test/royale/custom/TestInstance.as
+++ b/compiler/src/test/royale/custom/Group.as
@@ -18,23 +18,15 @@
 ////////////////////////////////////////////////////////////////////////////////
 package custom {
 
-[Event(name="complete", type="custom.TestEvent")]
-
 /**
  * @constructor
  */
-public class TestInstance {
+public class Group extends TestInstance {
 
     /**
      */
-    public function TestInstance() {
+    public function Group() {
     }
-
-    public var name:String;
     
-    public var value:Number;
-    
-    public function someFunction():void {
-    }
 }
 }
diff --git a/compiler/src/test/royale/custom/TestInstance.as b/compiler/src/test/royale/custom/Label.as
similarity index 81%
copy from compiler/src/test/royale/custom/TestInstance.as
copy to compiler/src/test/royale/custom/Label.as
index 78841c0..c7596d3 100644
--- a/compiler/src/test/royale/custom/TestInstance.as
+++ b/compiler/src/test/royale/custom/Label.as
@@ -18,23 +18,17 @@
 ////////////////////////////////////////////////////////////////////////////////
 package custom {
 
-[Event(name="complete", type="custom.TestEvent")]
+[DefaultProperty("text")]
 
 /**
  * @constructor
  */
-public class TestInstance {
+public class Label extends TestInstance {
 
     /**
      */
-    public function TestInstance() {
+    public function Label() {
     }
 
-    public var name:String;
-    
-    public var value:Number;
-    
-    public function someFunction():void {
-    }
 }
 }
diff --git a/compiler/src/test/royale/custom/TestInstance.as b/compiler/src/test/royale/custom/MouseEvent.as
similarity index 82%
copy from compiler/src/test/royale/custom/TestInstance.as
copy to compiler/src/test/royale/custom/MouseEvent.as
index 78841c0..e937ba0 100644
--- a/compiler/src/test/royale/custom/TestInstance.as
+++ b/compiler/src/test/royale/custom/MouseEvent.as
@@ -18,23 +18,19 @@
 ////////////////////////////////////////////////////////////////////////////////
 package custom {
 
-[Event(name="complete", type="custom.TestEvent")]
-
 /**
  * @constructor
  */
-public class TestInstance {
+public class MouseEvent {
 
     /**
      */
-    public function TestInstance() {
+    public function MouseEvent() {
     }
 
-    public var name:String;
+    public var localX:Number;
     
-    public var value:Number;
+    public var localY:Number;
     
-    public function someFunction():void {
-    }
 }
 }
diff --git a/compiler/src/test/royale/custom/TestInstance.as b/compiler/src/test/royale/custom/TestGlobalFunction.as
similarity index 80%
copy from compiler/src/test/royale/custom/TestInstance.as
copy to compiler/src/test/royale/custom/TestGlobalFunction.as
index 78841c0..2f5558f 100644
--- a/compiler/src/test/royale/custom/TestInstance.as
+++ b/compiler/src/test/royale/custom/TestGlobalFunction.as
@@ -18,23 +18,9 @@
 ////////////////////////////////////////////////////////////////////////////////
 package custom {
 
-[Event(name="complete", type="custom.TestEvent")]
-
 /**
  * @constructor
  */
-public class TestInstance {
-
-    /**
-     */
-    public function TestInstance() {
-    }
-
-    public var name:String;
-    
-    public var value:Number;
-    
-    public function someFunction():void {
-    }
+public function TestGlobalFunction():void {
 }
 }
diff --git a/compiler/src/test/royale/custom/TestInstance.as b/compiler/src/test/royale/custom/TestImplementation.as
similarity index 59%
copy from compiler/src/test/royale/custom/TestInstance.as
copy to compiler/src/test/royale/custom/TestImplementation.as
index 78841c0..7cf7f54 100644
--- a/compiler/src/test/royale/custom/TestInstance.as
+++ b/compiler/src/test/royale/custom/TestImplementation.as
@@ -18,23 +18,49 @@
 ////////////////////////////////////////////////////////////////////////////////
 package custom {
 
-[Event(name="complete", type="custom.TestEvent")]
-
 /**
  * @constructor
  */
-public class TestInstance {
+public class TestImplementation implements TestInterface {
 
-    /**
-     */
-    public function TestInstance() {
+	private var _name:String;
+	
+    public function get name():String
+    {
+    	return _name;
+    }
+    
+    public function set name(value:String):void
+    {
+    	_name = value;
+    }
+    
+    private var _value:String;
+    
+    public function get value():String
+    {
+    	return _value;
     }
-
-    public var name:String;
     
-    public var value:Number;
+    public function set value(value:String):void
+    {
+    	_value = value;
+    }
+    
+    public function someFunction():void
+    {
+    }
+    
+    public function addEventListener(event:TestEvent):void
+    {
+    }
+    
+    public function removeEventListener(event:TestEvent):void
+    {
+    }
     
-    public function someFunction():void {
+    public function dispatchEvent(event:TestEvent):void
+    {
     }
 }
 }
diff --git a/compiler/src/test/royale/custom/TestInstance.as b/compiler/src/test/royale/custom/TestInstance.as
index 78841c0..3c7c294 100644
--- a/compiler/src/test/royale/custom/TestInstance.as
+++ b/compiler/src/test/royale/custom/TestInstance.as
@@ -20,6 +20,8 @@ package custom {
 
 [Event(name="complete", type="custom.TestEvent")]
 
+[DefaultProperty("mxmlContent")]
+
 /**
  * @constructor
  */
@@ -33,6 +35,25 @@ public class TestInstance {
     public var name:String;
     
     public var value:Number;
+
+    public var label:String;
+
+    public var text:String;
+    
+    public var id:String;
+    
+    public var color:uint;
+    
+    public var visible:Boolean;
+    
+    public var minWidth:Number;
+    public var minHeight:Number;
+    public var x:Number;
+    public var y:Number;
+    public var height:Number;
+    public var width:Number;
+    
+    public var mxmlContent:Array;
     
     public function someFunction():void {
     }
diff --git a/compiler/src/test/royale/custom/TestInstance.as b/compiler/src/test/royale/custom/TestInterface.as
similarity index 80%
copy from compiler/src/test/royale/custom/TestInstance.as
copy to compiler/src/test/royale/custom/TestInterface.as
index 78841c0..cd52177 100644
--- a/compiler/src/test/royale/custom/TestInstance.as
+++ b/compiler/src/test/royale/custom/TestInterface.as
@@ -18,23 +18,17 @@
 ////////////////////////////////////////////////////////////////////////////////
 package custom {
 
-[Event(name="complete", type="custom.TestEvent")]
-
 /**
  * @constructor
  */
-public class TestInstance {
-
-    /**
-     */
-    public function TestInstance() {
-    }
+public interface TestInterface {
 
-    public var name:String;
+    function get name():String;
+    function set name(value:String):void;
     
-    public var value:Number;
+    function get value():String;
+    function set value(value:String):void;
     
-    public function someFunction():void {
-    }
+    function someFunction():void;
 }
 }
diff --git a/compiler/src/test/royale/custom/TestInstance.as b/compiler/src/test/royale/custom/TestOtherInterface.as
similarity index 80%
copy from compiler/src/test/royale/custom/TestInstance.as
copy to compiler/src/test/royale/custom/TestOtherInterface.as
index 78841c0..747211a 100644
--- a/compiler/src/test/royale/custom/TestInstance.as
+++ b/compiler/src/test/royale/custom/TestOtherInterface.as
@@ -18,23 +18,17 @@
 ////////////////////////////////////////////////////////////////////////////////
 package custom {
 
-[Event(name="complete", type="custom.TestEvent")]
-
 /**
  * @constructor
  */
-public class TestInstance {
-
-    /**
-     */
-    public function TestInstance() {
-    }
+public interface TestOtherInterface {
 
-    public var name:String;
+    function get name():String;
+    function set name(value:String):void;
     
-    public var value:Number;
+    function get value():String;
+    function set value(value:String):void;
     
-    public function someFunction():void {
-    }
+    function someFunction():void;
 }
 }
diff --git a/compiler/src/test/royale/custom/TestInstance.as b/compiler/src/test/royale/custom/TestProxy.as
similarity index 81%
copy from compiler/src/test/royale/custom/TestInstance.as
copy to compiler/src/test/royale/custom/TestProxy.as
index 78841c0..9ff0766 100644
--- a/compiler/src/test/royale/custom/TestInstance.as
+++ b/compiler/src/test/royale/custom/TestProxy.as
@@ -18,23 +18,17 @@
 ////////////////////////////////////////////////////////////////////////////////
 package custom {
 
-[Event(name="complete", type="custom.TestEvent")]
-
 /**
  * @constructor
  */
-public class TestInstance {
+public class TestProxy {
 
-    /**
-     */
-    public function TestInstance() {
+    custom_namespace function getProperty(name:String):*
+    {
     }
-
-    public var name:String;
-    
-    public var value:Number;
     
-    public function someFunction():void {
+    custom_namespace function setProperty(name:String, value:*):void
+    {
     }
 }
 }

-- 
To stop receiving notification emails like this one, please contact
"commits@royale.apache.org" <co...@royale.apache.org>.