gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r11083: work from today hacking up m


From: Ben Limmer
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r11083: work from today hacking up makefiles to only compile the proper swf tests for the proper versions of flash
Date: Thu, 11 Jun 2009 16:18:59 -0600
User-agent: Bazaar (1.13.1)

------------------------------------------------------------
revno: 11083
committer: Ben Limmer <address@hidden>
branch nick: trunk
timestamp: Thu 2009-06-11 16:18:59 -0600
message:
  work from today hacking up makefiles to only compile the proper swf tests for 
the proper versions of flash
modified:
  testsuite/as3/classes.all/Makefile.am
  testsuite/as3/classes.all/accessibility/accessibility.am
  testsuite/as3/classes.all/data/data.am
  testsuite/as3/classes.all/desktop/desktop.am
  testsuite/as3/classes.all/display/display.am
  testsuite/as3/classes.all/errors/errors.am
  testsuite/as3/classes.all/events/AsyncErrorEvent_as.hx
  testsuite/as3/classes.all/events/BrowserInvokeEvent_as.hx
  testsuite/as3/classes.all/events/ContextMenuEvent_as.hx
  testsuite/as3/classes.all/events/DRMAuthenticateEvent_as.hx
  testsuite/as3/classes.all/events/DataEvent_as.hx
  testsuite/as3/classes.all/events/ErrorEvent_as.hx
  testsuite/as3/classes.all/events/EventDispatcher_as.hx
  testsuite/as3/classes.all/events/EventPhase_as.hx
  testsuite/as3/classes.all/events/Event_as.hx
  testsuite/as3/classes.all/events/FocusEvent_as.hx
  testsuite/as3/classes.all/events/FullScreenEvent_as.hx
  testsuite/as3/classes.all/events/HTTPStatusEvent_as.hx
  testsuite/as3/classes.all/events/IEventDispatcher_as.hx
  testsuite/as3/classes.all/events/IMEEvent_as.hx
  testsuite/as3/classes.all/events/IOErrorEvent_as.hx
  testsuite/as3/classes.all/events/InvokeEvent_as.hx
  testsuite/as3/classes.all/events/KeyboardEvent_as.hx
  testsuite/as3/classes.all/events/MouseEvent_as.hx
  testsuite/as3/classes.all/events/NetStatusEvent_as.hx
  testsuite/as3/classes.all/events/ProgressEvent_as.hx
  testsuite/as3/classes.all/events/SecurityErrorEvent_as.hx
  testsuite/as3/classes.all/events/StatusEvent_as.hx
  testsuite/as3/classes.all/events/SyncEvent_as.hx
  testsuite/as3/classes.all/events/TextEvent_as.hx
  testsuite/as3/classes.all/events/TimerEvent_as.hx
  testsuite/as3/classes.all/events/events.am
  testsuite/as3/classes.all/external/external.am
  testsuite/as3/classes.all/filesystem/filesystem.am
  testsuite/as3/classes.all/filters/BevelFilter_as.hx
  testsuite/as3/classes.all/filters/filters.am
  testsuite/as3/classes.all/xml/XMLNode_as.hx
  testsuite/as3/classes.all/xml/xml.am
=== modified file 'testsuite/as3/classes.all/Makefile.am'
--- a/testsuite/as3/classes.all/Makefile.am     2009-06-10 23:57:23 +0000
+++ b/testsuite/as3/classes.all/Makefile.am     2009-06-11 22:18:59 +0000
@@ -46,7 +46,7 @@
 
 include $(srcdir)/display/display.am
 include $(srcdir)/errors/errors.am
-# # include $(srcdir)/events/events.am
+include $(srcdir)/events/events.am
 include $(srcdir)/external/external.am
 # # include $(srcdir)/filesystem/filesystem.am
 # # include $(srcdir)/filters/filters.am

=== modified file 'testsuite/as3/classes.all/accessibility/accessibility.am'
--- a/testsuite/as3/classes.all/accessibility/accessibility.am  2009-06-05 
17:46:11 +0000
+++ b/testsuite/as3/classes.all/accessibility/accessibility.am  2009-06-11 
22:18:59 +0000
@@ -19,19 +19,20 @@
 
 #AM_CPPFLAGS += -I$(ACCESSIBILITYdir)
 
-ACCESSIBILITY_TESTS = 
+ACCESSIBILITY_TESTS_V6 = 
+ACCESSIBILITY_TESTS_V9 =
 
 # if BUILD_ACCIMPL_AS3
 # ACCESSIBILITY_SOURCES += $(ACCESSIBILITYdir)/AccImpl_as3.cpp
 # endif
 
 if BUILD_ACCESSIBILITY_PROPERTIES_AS3
-ACCESSIBILITY_TESTS += accessibility/AccessibilityProperties_as.swf
+ACCESSIBILITY_TESTS_V9 += accessibility/AccessibilityProperties_as.swf
 endif
 
 if BUILD_ACCESSIBILITY_AS3
-ACCESSIBILITY_TESTS += accessibility/Accessibility_as.swf
+ACCESSIBILITY_TESTS_V6 += accessibility/Accessibility_as.swf
 endif
 
-check_SCRIPTS += $(ACCESSIBILITY_TESTS)
+check_SCRIPTS += $(ACCESSIBILITY_TESTS_V6) $(ACCESSIBILITY_TESTS_V9)
 HAXE_FLAGS += -cp $(ACCESSIBILITYdir)

=== modified file 'testsuite/as3/classes.all/data/data.am'
--- a/testsuite/as3/classes.all/data/data.am    2009-05-21 00:17:43 +0000
+++ b/testsuite/as3/classes.all/data/data.am    2009-06-11 22:18:59 +0000
@@ -17,67 +17,67 @@
 
 DATAdir = $(srcdir)/data
 
-DATA_TESTS = 
+DATA_TESTS_V9 = 
 
 # if BUILD_ENCRYPTEDLOCALSTORE_AS3
 # DATA_TESTS += data/EncryptedLocalStore_as.swf
 # endif
 
 if BUILD_SQLCOLLATIONTYPE_AS3
-DATA_TESTS += data/SQLCollationType_as.swf
+DATA_TESTS_V9 += data/SQLCollationType_as.swf
 endif
 
 if BUILD_SQLCOLUMNNAMESTYLE_AS3
-DATA_TESTS += data/SQLColumnNameStyle_as.swf
+DATA_TESTS_V9 += data/SQLColumnNameStyle_as.swf
 endif
 
 if BUILD_SQLCOLUMNSCHEMA_AS3
-DATA_TESTS += data/SQLColumnSchema_as.swf
+DATA_TESTS_V9 += data/SQLColumnSchema_as.swf
 endif
 
 if BUILD_SQLCONNECTION_AS3
-DATA_TESTS += data/SQLConnection_as.swf
+DATA_TESTS_V9 += data/SQLConnection_as.swf
 endif
 
 if BUILD_SQLINDEXSCHEMA_AS3
-DATA_TESTS += data/SQLIndexSchema_as.swf
+DATA_TESTS_V9 += data/SQLIndexSchema_as.swf
 endif
 
 if BUILD_SQLMODE_AS3
-DATA_TESTS += data/SQLMode_as.swf
+DATA_TESTS_V9 += data/SQLMode_as.swf
 endif
 
 if BUILD_SQLRESULT_AS3
-DATA_TESTS += data/SQLResult_as.swf
+DATA_TESTS_V9 += data/SQLResult_as.swf
 endif
 
 if BUILD_SQLSCHEMARESULT_AS3
-DATA_TESTS += data/SQLSchemaResult_as.swf
+DATA_TESTS_V9 += data/SQLSchemaResult_as.swf
 endif
 
 if BUILD_SQLSCHEMA_AS3
-DATA_TESTS += data/SQLSchema_as.swf
+DATA_TESTS_V9 += data/SQLSchema_as.swf
 endif
 
 if BUILD_SQLSTATEMENT_AS3
-DATA_TESTS += data/SQLStatement_as.swf
+DATA_TESTS_V9 += data/SQLStatement_as.swf
 endif
 
 if BUILD_SQLTABLESCHEMA_AS3
-DATA_TESTS += data/SQLTableSchema_as.swf
+DATA_TESTS_V9 += data/SQLTableSchema_as.swf
 endif
 
 if BUILD_SQLTRANSACTIONLOCKTYPE_AS3
-DATA_TESTS += data/SQLTransactionLockType_as.swf
+DATA_TESTS_V9 += data/SQLTransactionLockType_as.swf
 endif
 
 if BUILD_SQLTRIGGERSCHEMA_AS3
-DATA_TESTS += data/SQLTriggerSchema_as.swf
+DATA_TESTS_V9 += data/SQLTriggerSchema_as.swf
 endif
 
 if BUILD_SQLVIEWSCHEMA_AS3
-DATA_TESTS += data/SQLViewSchema_as.swf
+DATA_TESTS_V9 += data/SQLViewSchema_as.swf
 endif
 
-check_SCRIPTS += $(DATA_TESTS)
+check_SCRIPTS += $(DATA_TESTS_V9)
 HAXE_FLAGS += -cp $(DATAdir)

=== modified file 'testsuite/as3/classes.all/desktop/desktop.am'
--- a/testsuite/as3/classes.all/desktop/desktop.am      2009-05-21 00:17:43 
+0000
+++ b/testsuite/as3/classes.all/desktop/desktop.am      2009-06-11 22:18:59 
+0000
@@ -17,60 +17,60 @@
 
 DESKTOPdir = $(srcdir)/desktop
 
-DESKTOP_TESTS = 
+DESKTOP_TESTS_V9 = 
 
 if BUILD_CLIPBOARDFORMATS_AS3
-DESKTOP_TESTS += desktop/ClipboardFormats_as.swf
+DESKTOP_TESTS_V9 += desktop/ClipboardFormats_as.swf
 endif
 
 if BUILD_CLIPBOARDTRANSFERMODE_AS3
-DESKTOP_TESTS += desktop/ClipboardTransferMode_as.swf
+DESKTOP_TESTS_V9 += desktop/ClipboardTransferMode_as.swf
 endif
 
 if BUILD_CLIPBOARD_AS3
-DESKTOP_TESTS += desktop/Clipboard_as.swf
+DESKTOP_TESTS_V9 += desktop/Clipboard_as.swf
 endif
 
 if BUILD_DOCKICON_AS3
-DESKTOP_TESTS += desktop/DockIcon_as.swf
+DESKTOP_TESTS_V9 += desktop/DockIcon_as.swf
 endif
 
 if BUILD_ICON_AS3
-DESKTOP_TESTS += desktop/Icon_as.swf
+DESKTOP_TESTS_V9 += desktop/Icon_as.swf
 endif
 
 if BUILD_INTERACTIVEICON_AS3
-DESKTOP_TESTS += desktop/InteractiveIcon_as.swf
+DESKTOP_TESTS_V9 += desktop/InteractiveIcon_as.swf
 endif
 
 if BUILD_NATIVEAPPLICATION_AS3
-DESKTOP_TESTS += desktop/NativeApplication_as.swf
+DESKTOP_TESTS_V9 += desktop/NativeApplication_as.swf
 endif
 
 if BUILD_NATIVEDRAGACTIONS_AS3
-DESKTOP_TESTS += desktop/NativeDragActions_as.swf
+DESKTOP_TESTS_V9 += desktop/NativeDragActions_as.swf
 endif
 
 if BUILD_NATIVEDRAGMANAGER_AS3
-DESKTOP_TESTS += desktop/NativeDragManager_as.swf
+DESKTOP_TESTS_V9 += desktop/NativeDragManager_as.swf
 endif
 
 if BUILD_NATIVEDRAGOPTIONS_AS3
-DESKTOP_TESTS += desktop/NativeDragOptions_as.swf
+DESKTOP_TESTS_V9 += desktop/NativeDragOptions_as.swf
 endif
 
 if BUILD_NOTIFICATIONTYPE_AS3
-DESKTOP_TESTS += desktop/NotificationType_as.swf
+DESKTOP_TESTS_V9 += desktop/NotificationType_as.swf
 endif
 
 if BUILD_SYSTEMTRAYICON_AS3
-DESKTOP_TESTS += desktop/SystemTrayIcon_as.swf
+DESKTOP_TESTS_V9 += desktop/SystemTrayIcon_as.swf
 endif
 
 if BUILD_UPDATER_AS3
-DESKTOP_TESTS += desktop/Updater_as.swf
+DESKTOP_TESTS_V9 += desktop/Updater_as.swf
 endif
 
-check_SCRIPTS += $(DESKTOP_TESTS)
+check_SCRIPTS += $(DESKTOP_TESTS_V9)
 HAXE_FLAGS += -cp $(DESKTOPdir)
 

=== modified file 'testsuite/as3/classes.all/display/display.am'
--- a/testsuite/as3/classes.all/display/display.am      2009-05-21 16:02:15 
+0000
+++ b/testsuite/as3/classes.all/display/display.am      2009-06-11 22:18:59 
+0000
@@ -19,42 +19,44 @@
 
 #AM_CPPFLAGS += 
 
-DISPLAY_TESTS = 
+DISPLAY_TESTS_V9 = 
+DISPLAY_TESTS_V8 = 
+DISPLAY_TESTS_V6 =
 
 # if BUILD_AVM1MOVIE_AS3
-# DISPLAY_TESTS += display/AVM1Movie_as.swf
+# DISPLAY_TESTS_V9 += display/AVM1Movie_as.swf
 # endif
 
 # if BUILD_ACTIONSCRIPTVERSION_AS3
-# DISPLAY_TESTS += display/ActionScriptVersion_as.swf
+# DISPLAY_TESTS_V9 += display/ActionScriptVersion_as.swf
 # endif
 
 # if BUILD_BITMAPDATACHANNEL_AS3
-# DISPLAY_TESTS += display/BitmapDataChannel_as.swf
+# DISPLAY_TESTS_V9 += display/BitmapDataChannel_as.swf
 # endif
 
 if BUILD_BITMAPDATA_AS3
-DISPLAY_TESTS += display/BitmapData_as.swf
+DISPLAY_TESTS_V8 += display/BitmapData_as.swf
 endif
 
 if BUILD_BITMAP_AS3
-DISPLAY_TESTS += display/Bitmap_as.swf
+DISPLAY_TESTS_V9 += display/Bitmap_as.swf
 endif
 
 if BUILD_BLENDMODE_AS3
-DISPLAY_TESTS += display/BlendMode_as.swf
+DISPLAY_TESTS_V9 += display/BlendMode_as.swf
 endif
 
 if BUILD_CAPSSTYLE_AS3
-DISPLAY_TESTS += display/CapsStyle_as.swf
+DISPLAY_TESTS_V9 += display/CapsStyle_as.swf
 endif
 
 if BUILD_DISPLAYOBJECTCONTAINER_AS3
-DISPLAY_TESTS += display/DisplayObjectContainer_as.swf
+DISPLAY_TESTS_V9 += display/DisplayObjectContainer_as.swf
 endif
 
 if BUILD_DISPLAYOBJECT_AS3
-DISPLAY_TESTS += display/DisplayObject_as.swf
+DISPLAY_TESTS_V9 += display/DisplayObject_as.swf
 endif
 
 # this class is AIR only
@@ -63,15 +65,15 @@
 # endif
 
 if BUILD_FRAMELABEL_AS3
-DISPLAY_TESTS += display/FrameLabel_as.swf
+DISPLAY_TESTS_V9 += display/FrameLabel_as.swf
 endif
 
 if BUILD_GRADIENTTYPE_AS3
-DISPLAY_TESTS += display/GradientType_as.swf
+DISPLAY_TESTS_V9 += display/GradientType_as.swf
 endif
 
 if BUILD_GRAPHICS_AS3
-DISPLAY_TESTS += display/Graphics_as.swf
+DISPLAY_TESTS_V9 += display/Graphics_as.swf
 endif
 
 # FIXME: this in an interface, not a class
@@ -80,35 +82,35 @@
 # endif
 
 if BUILD_INTERACTIVEOBJECT_AS3
-DISPLAY_TESTS += display/InteractiveObject_as.swf
+DISPLAY_TESTS_V9 += display/InteractiveObject_as.swf
 endif
 
 if BUILD_INTERPOLATIONMETHOD_AS3
-DISPLAY_TESTS += display/InterpolationMethod_as.swf
+DISPLAY_TESTS_V9 += display/InterpolationMethod_as.swf
 endif
 
 if BUILD_JOINTSTYLE_AS3
-DISPLAY_TESTS += display/JointStyle_as.swf
+DISPLAY_TESTS_V9 += display/JointStyle_as.swf
 endif
 
 if BUILD_LINESCALEMODE_AS3
-DISPLAY_TESTS += display/LineScaleMode_as.swf
+DISPLAY_TESTS_V9 += display/LineScaleMode_as.swf
 endif
 
 if BUILD_LOADERINFO_AS3
-DISPLAY_TESTS += display/LoaderInfo_as.swf
+DISPLAY_TESTS_V9 += display/LoaderInfo_as.swf
 endif
 
 if BUILD_LOADER_AS3
-DISPLAY_TESTS += display/Loader_as.swf
+DISPLAY_TESTS_V9 += display/Loader_as.swf
 endif
 
 if BUILD_MORPHSHAPE_AS3
-DISPLAY_TESTS += display/MorphShape_as.swf
+DISPLAY_TESTS_V9 += display/MorphShape_as.swf
 endif
 
 if BUILD_MOVIECLIP_AS3
-DISPLAY_TESTS += display/MovieClip_as.swf
+DISPLAY_TESTS_V6 += display/MovieClip_as.swf
 endif
 
 # These Native* classes are AIR only
@@ -141,15 +143,15 @@
 # endif
 
 if BUILD_PIXELSNAPPING_AS3
-DISPLAY_TESTS += display/PixelSnapping_as.swf
+DISPLAY_TESTS_V9 += display/PixelSnapping_as.swf
 endif
 
 if BUILD_SWFVERSION_AS3
-DISPLAY_TESTS += display/SWFVersion_as.swf
+DISPLAY_TESTS_V9 += display/SWFVersion_as.swf
 endif
 
 if BUILD_SCENE_AS3
-DISPLAY_TESTS += display/Scene_as.swf
+DISPLAY_TESTS_V9 += display/Scene_as.swf
 endif
 
 # This class is AIR only
@@ -158,40 +160,40 @@
 # endif
 
 if BUILD_SHAPE_AS3
-DISPLAY_TESTS += display/Shape_as.swf
+DISPLAY_TESTS_V9 += display/Shape_as.swf
 endif
 
 if BUILD_SIMPLEBUTTON_AS3
-DISPLAY_TESTS += display/SimpleButton_as.swf
+DISPLAY_TESTS_V9 += display/SimpleButton_as.swf
 endif
 
 if BUILD_SPREADMETHOD_AS3
-DISPLAY_TESTS += display/SpreadMethod_as.swf
+DISPLAY_TESTS_V9 += display/SpreadMethod_as.swf
 endif
 
 if BUILD_SPRITE_AS3
-DISPLAY_TESTS += display/Sprite_as.swf
+DISPLAY_TESTS_V9 += display/Sprite_as.swf
 endif
 
 if BUILD_STAGEALIGN_AS3
-DISPLAY_TESTS += display/StageAlign_as.swf
+DISPLAY_TESTS_V9 += display/StageAlign_as.swf
 endif
 
 if BUILD_STAGEDISPLAYSTATE_AS3
-DISPLAY_TESTS += display/StageDisplayState_as.swf
+DISPLAY_TESTS_V9 += display/StageDisplayState_as.swf
 endif
 
 if BUILD_STAGEQUALITY_AS3
-DISPLAY_TESTS += display/StageQuality_as.swf
+DISPLAY_TESTS_V9 += display/StageQuality_as.swf
 endif
 
 if BUILD_STAGESCALEMODE_AS3
-DISPLAY_TESTS += display/StageScaleMode_as.swf
+DISPLAY_TESTS_V9 += display/StageScaleMode_as.swf
 endif
 
 if BUILD_STAGE_AS3
-DISPLAY_TESTS += display/Stage_as.swf
+DISPLAY_TESTS_V6 += display/Stage_as.swf
 endif
 
-check_SCRIPTS += $(DISPLAY_TESTS)
+check_SCRIPTS += $(DISPLAY_TESTS_V6) $(DISPLAY_TESTS_V8) $(DISPLAY_TESTS_V9)
 HAXE_FLAGS += -cp $(DISPLAYdir)

=== modified file 'testsuite/as3/classes.all/errors/errors.am'
--- a/testsuite/as3/classes.all/errors/errors.am        2009-05-21 00:17:43 
+0000
+++ b/testsuite/as3/classes.all/errors/errors.am        2009-06-11 22:18:59 
+0000
@@ -17,44 +17,44 @@
 
 ERRORSdir = $(srcdir)/errors
 
-ERRORS_TESTS = 
+ERRORS_TESTS_V9 = 
 
 if BUILD_EOFERROR_AS3
-ERRORS_TESTS += errors/EOFError_as.swf
+ERRORS_TESTS_V9 += errors/EOFError_as.swf
 endif
 
 if BUILD_IOERROR_AS3
-ERRORS_TESTS += errors/IOError_as.swf
+ERRORS_TESTS_V9 += errors/IOError_as.swf
 endif
 
 if BUILD_ILLEGALOPERATIONERROR_AS3
-ERRORS_TESTS += errors/IllegalOperationError_as.swf
+ERRORS_TESTS_V9 += errors/IllegalOperationError_as.swf
 endif
 
 if BUILD_INVALIDSWFERROR_AS3
-ERRORS_TESTS += errors/InvalidSWFError_as.swf
+ERRORS_TESTS_V9 += errors/InvalidSWFError_as.swf
 endif
 
 if BUILD_MEMORYERROR_AS3
-ERRORS_TESTS += errors/MemoryError_as.swf
+ERRORS_TESTS_V9 += errors/MemoryError_as.swf
 endif
 
 # AIR only
 # if BUILD_SQLERROROPERATION_AS3
-# ERRORS_TESTS += errors/SQLErrorOperation_as.swf
+# ERRORS_TESTS_V9 += errors/SQLErrorOperation_as.swf
 # endif
 
 # if BUILD_SQLERROR_AS3
-# ERRORS_TESTS += errors/SQLError_as.swf
+# ERRORS_TESTS_V9 += errors/SQLError_as.swf
 # endif
 
 if BUILD_SCRIPTTIMEOUTERROR_AS3
-ERRORS_TESTS += errors/ScriptTimeoutError_as.swf
+ERRORS_TESTS_V9 += errors/ScriptTimeoutError_as.swf
 endif
 
 if BUILD_STACKOVERFLOWERROR_AS3
-ERRORS_TESTS += errors/StackOverflowError_as.swf
+ERRORS_TESTS_V9 += errors/StackOverflowError_as.swf
 endif
 
-check_SCRIPTS += $(ERRORS_TESTS)
+check_SCRIPTS += $(ERRORS_TESTS_V9)
 HAXE_FLAGS += -cp $(ERRORSdir)

=== modified file 'testsuite/as3/classes.all/events/AsyncErrorEvent_as.hx'
--- a/testsuite/as3/classes.all/events/AsyncErrorEvent_as.hx    2009-05-25 
02:00:57 +0000
+++ b/testsuite/as3/classes.all/events/AsyncErrorEvent_as.hx    2009-06-11 
22:18:59 +0000
@@ -27,11 +27,11 @@
 import flash.events.AsyncErrorEvent;
 import flash.display.MovieClip;
 #else
-import flash.AsyncErrorEvent;
 import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
+import Std; 
 
 // import our testing API
 import DejaGnu;
@@ -39,7 +39,12 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class AsyncErrorEvent_as {
     static function main() {
-        var x1:AsyncErrorEvent = new AsyncErrorEvent();
+        #if !flash9
+                       DejaGnu.note("this class did not exist before flash 
version 9");
+               #end
+               
+               #if flash9
+               var x1:AsyncErrorEvent = new AsyncErrorEvent("AsyncError", 
false, false, "", null);
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -47,234 +52,28 @@
         } else {
             DejaGnu.fail("AsyncErrorEvent class doesn't exist");
         }
-// Tests to see if all the properties exist. All these do is test for
-// existance of a property, and don't test the functionality at all. This
-// is primarily useful only to test completeness of the API implementation.
-       if (x1.error == Error) {
-           DejaGnu.pass("AsyncErrorEvent.error property exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent.error property doesn't exist");
-       }
-
 // Tests to see if all the methods exist. All these do is test for
 // existance of a method, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.AsyncErrorEvent == Error) {
-           DejaGnu.pass("AsyncErrorEvent::AsyncErrorEvent() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::AsyncErrorEvent() method doesn't 
exist");
-       }
-       if (x1.clone == Event) {
+       if (Type.typeof(x1.clone) == TFunction) {
            DejaGnu.pass("AsyncErrorEvent::clone() method exists");
        } else {
            DejaGnu.fail("AsyncErrorEvent::clone() method doesn't exist");
        }
-       if (x1.toString == null) {
+       if (Type.typeof(x1.toString) == TFunction) {
            DejaGnu.pass("AsyncErrorEvent::toString() method exists");
        } else {
            DejaGnu.fail("AsyncErrorEvent::toString() method doesn't exist");
        }
-       if (x1.ACTIVATE == null) {
-           DejaGnu.pass("AsyncErrorEvent::ACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::ACTIVATE() method doesn't exist");
-       }
-       if (x1.ADDED == null) {
-           DejaGnu.pass("AsyncErrorEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::ADDED() method doesn't exist");
-       }
-       if (x1.ADDED == TO) {
-           DejaGnu.pass("AsyncErrorEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::ADDED() method doesn't exist");
-       }
-       if (x1.ASYNC == ERROR) {
-           DejaGnu.pass("AsyncErrorEvent::ASYNC() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::ASYNC() method doesn't exist");
-       }
-       if (x1.CANCEL == null) {
-           DejaGnu.pass("AsyncErrorEvent::CANCEL() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::CANCEL() method doesn't exist");
-       }
-       if (x1.CHANGE == null) {
-           DejaGnu.pass("AsyncErrorEvent::CHANGE() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::CHANGE() method doesn't exist");
-       }
-       if (x1.CLOSE == null) {
-           DejaGnu.pass("AsyncErrorEvent::CLOSE() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::CLOSE() method doesn't exist");
-       }
-       if (x1.CLOSING == null) {
-           DejaGnu.pass("AsyncErrorEvent::CLOSING() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::CLOSING() method doesn't exist");
-       }
-       if (x1.COMPLETE == null) {
-           DejaGnu.pass("AsyncErrorEvent::COMPLETE() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::COMPLETE() method doesn't exist");
-       }
-       if (x1.CONNECT == null) {
-           DejaGnu.pass("AsyncErrorEvent::CONNECT() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::CONNECT() method doesn't exist");
-       }
-       if (x1.DEACTIVATE == null) {
-           DejaGnu.pass("AsyncErrorEvent::DEACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::DEACTIVATE() method doesn't exist");
-       }
-       if (x1.DISPLAYING == null) {
-           DejaGnu.pass("AsyncErrorEvent::DISPLAYING() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::DISPLAYING() method doesn't exist");
-       }
-       if (x1.ENTER == FRAME) {
-           DejaGnu.pass("AsyncErrorEvent::ENTER() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::ENTER() method doesn't exist");
-       }
-       if (x1.ERROR == null) {
-           DejaGnu.pass("AsyncErrorEvent::ERROR() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::ERROR() method doesn't exist");
-       }
-       if (x1.EXITING == null) {
-           DejaGnu.pass("AsyncErrorEvent::EXITING() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::EXITING() method doesn't exist");
-       }
-       if (x1.FULLSCREEN == null) {
-           DejaGnu.pass("AsyncErrorEvent::FULLSCREEN() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::FULLSCREEN() method doesn't exist");
-       }
-       if (x1.HTML == BOUNDS) {
-           DejaGnu.pass("AsyncErrorEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == DOM) {
-           DejaGnu.pass("AsyncErrorEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == RENDER) {
-           DejaGnu.pass("AsyncErrorEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::HTML() method doesn't exist");
-       }
-       if (x1.ID3 == null) {
-           DejaGnu.pass("AsyncErrorEvent::ID3() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::ID3() method doesn't exist");
-       }
-       if (x1.INIT == null) {
-           DejaGnu.pass("AsyncErrorEvent::INIT() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::INIT() method doesn't exist");
-       }
-       if (x1.LINK == null) {
-           DejaGnu.pass("AsyncErrorEvent::LINK() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::LINK() method doesn't exist");
-       }
-       if (x1.LOCATION == CHANGE) {
-           DejaGnu.pass("AsyncErrorEvent::LOCATION() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::LOCATION() method doesn't exist");
-       }
-       if (x1.MOUSE == LEAVE) {
-           DejaGnu.pass("AsyncErrorEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.NETWORK == CHANGE) {
-           DejaGnu.pass("AsyncErrorEvent::NETWORK() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::NETWORK() method doesn't exist");
-       }
-       if (x1.OPEN == null) {
-           DejaGnu.pass("AsyncErrorEvent::OPEN() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::OPEN() method doesn't exist");
-       }
-       if (x1.REMOVED == null) {
-           DejaGnu.pass("AsyncErrorEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.REMOVED == FROM) {
-           DejaGnu.pass("AsyncErrorEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.RENDER == null) {
-           DejaGnu.pass("AsyncErrorEvent::RENDER() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::RENDER() method doesn't exist");
-       }
-       if (x1.RESIZE == null) {
-           DejaGnu.pass("AsyncErrorEvent::RESIZE() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::RESIZE() method doesn't exist");
-       }
-       if (x1.SCROLL == null) {
-           DejaGnu.pass("AsyncErrorEvent::SCROLL() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::SCROLL() method doesn't exist");
-       }
-       if (x1.SELECT == null) {
-           DejaGnu.pass("AsyncErrorEvent::SELECT() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::SELECT() method doesn't exist");
-       }
-       if (x1.SOUND == COMPLETE) {
-           DejaGnu.pass("AsyncErrorEvent::SOUND() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::SOUND() method doesn't exist");
-       }
-       if (x1.TAB == CHILDREN) {
-           DejaGnu.pass("AsyncErrorEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == ENABLED) {
-           DejaGnu.pass("AsyncErrorEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == INDEX) {
-           DejaGnu.pass("AsyncErrorEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::TAB() method doesn't exist");
-       }
-       if (x1.TEXT == INPUT) {
-           DejaGnu.pass("AsyncErrorEvent::TEXT() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::TEXT() method doesn't exist");
-       }
-       if (x1.UNLOAD == null) {
-           DejaGnu.pass("AsyncErrorEvent::UNLOAD() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::UNLOAD() method doesn't exist");
-       }
-       if (x1.USER == IDLE) {
-           DejaGnu.pass("AsyncErrorEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::USER() method doesn't exist");
-       }
-       if (x1.USER == PRESENT) {
-           DejaGnu.pass("AsyncErrorEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("AsyncErrorEvent::USER() method doesn't exist");
-       }
-
+       
+//check constants
+//FIXME: figure out how to access a static variable in haxe to fix this
+//     if (Std.string(x1.ASYNC_ERROR) == "asyncError") {
+//             DejaGnu.pass("AsyncErrorEvent::ASYNC_ERROR constant returns the 
proper string.");
+//     } else {
+//             DejaGnu.fail("AsyncErrorEvent::ASYNC_ERROR constant does not 
return the proper string.");
+//     }
+       #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/BrowserInvokeEvent_as.hx'
--- a/testsuite/as3/classes.all/events/BrowserInvokeEvent_as.hx 2009-05-25 
02:00:57 +0000
+++ b/testsuite/as3/classes.all/events/BrowserInvokeEvent_as.hx 2009-06-11 
22:18:59 +0000
@@ -26,9 +26,6 @@
 #if flash9
 import flash.events.BrowserInvokeEvent;
 import flash.display.MovieClip;
-#else
-import flash.BrowserInvokeEvent;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
@@ -39,7 +36,12 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class BrowserInvokeEvent_as {
     static function main() {
-        var x1:BrowserInvokeEvent = new BrowserInvokeEvent();
+        #if !flash9
+                       DejaGnu.note("this class did not exist in AS2");
+               #end
+               
+               #if !flash
+               var x1:BrowserInvokeEvent = new BrowserInvokeEvent();
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -274,7 +276,7 @@
        } else {
            DejaGnu.fail("BrowserInvokeEvent::USER() method doesn't exist");
        }
-
+       #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/ContextMenuEvent_as.hx'
--- a/testsuite/as3/classes.all/events/ContextMenuEvent_as.hx   2009-05-25 
02:00:57 +0000
+++ b/testsuite/as3/classes.all/events/ContextMenuEvent_as.hx   2009-06-11 
22:18:59 +0000
@@ -26,12 +26,10 @@
 #if flash9
 import flash.events.ContextMenuEvent;
 import flash.display.MovieClip;
-#else
-import flash.ContextMenuEvent;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
+import Std;
 
 // import our testing API
 import DejaGnu;
@@ -39,8 +37,13 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class ContextMenuEvent_as {
     static function main() {
-        var x1:ContextMenuEvent = new ContextMenuEvent();
-
+        #if !flash9
+                       DejaGnu.note("this class didn't exist in AS2");
+               #end
+               
+               #if flash9
+               var x1:ContextMenuEvent = new 
ContextMenuEvent("contextmenuevent");
+               
         // Make sure we actually get a valid class        
         if (x1 != null) {
             DejaGnu.pass("ContextMenuEvent class exists");
@@ -50,12 +53,12 @@
 // Tests to see if all the properties exist. All these do is test for
 // existance of a property, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.contextMenuOwner == contextMenuOwner) {
+       if (Std.string(Type.typeof(x1.contextMenuOwner)) == "TNull") {
            DejaGnu.pass("ContextMenuEvent.contextMenuOwner property exists");
        } else {
            DejaGnu.fail("ContextMenuEvent.contextMenuOwner property doesn't 
exist");
        }
-       if (x1.mouseTarget == mouseTarget) {
+       if (Std.string(Type.typeof(x1.mouseTarget)) == "TNull") {
            DejaGnu.pass("ContextMenuEvent.mouseTarget property exists");
        } else {
            DejaGnu.fail("ContextMenuEvent.mouseTarget property doesn't exist");
@@ -64,212 +67,17 @@
 // Tests to see if all the methods exist. All these do is test for
 // existance of a method, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.ContextMenuEvent == InteractiveObject) {
-           DejaGnu.pass("ContextMenuEvent::ContextMenuEvent() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::ContextMenuEvent() method doesn't 
exist");
-       }
-       if (x1.clone == Event) {
+       if (Type.typeof(x1.clone) == ValueType.TFunction) {
            DejaGnu.pass("ContextMenuEvent::clone() method exists");
        } else {
            DejaGnu.fail("ContextMenuEvent::clone() method doesn't exist");
        }
-       if (x1.toString == null) {
+       if (Type.typeof(x1.toString) == ValueType.TFunction) {
            DejaGnu.pass("ContextMenuEvent::toString() method exists");
        } else {
            DejaGnu.fail("ContextMenuEvent::toString() method doesn't exist");
        }
-       if (x1.ACTIVATE == null) {
-           DejaGnu.pass("ContextMenuEvent::ACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::ACTIVATE() method doesn't exist");
-       }
-       if (x1.ADDED == null) {
-           DejaGnu.pass("ContextMenuEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::ADDED() method doesn't exist");
-       }
-       if (x1.ADDED == TO) {
-           DejaGnu.pass("ContextMenuEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::ADDED() method doesn't exist");
-       }
-       if (x1.CANCEL == null) {
-           DejaGnu.pass("ContextMenuEvent::CANCEL() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::CANCEL() method doesn't exist");
-       }
-       if (x1.CHANGE == null) {
-           DejaGnu.pass("ContextMenuEvent::CHANGE() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::CHANGE() method doesn't exist");
-       }
-       if (x1.CLOSE == null) {
-           DejaGnu.pass("ContextMenuEvent::CLOSE() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::CLOSE() method doesn't exist");
-       }
-       if (x1.CLOSING == null) {
-           DejaGnu.pass("ContextMenuEvent::CLOSING() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::CLOSING() method doesn't exist");
-       }
-       if (x1.COMPLETE == null) {
-           DejaGnu.pass("ContextMenuEvent::COMPLETE() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::COMPLETE() method doesn't exist");
-       }
-       if (x1.CONNECT == null) {
-           DejaGnu.pass("ContextMenuEvent::CONNECT() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::CONNECT() method doesn't exist");
-       }
-       if (x1.DEACTIVATE == null) {
-           DejaGnu.pass("ContextMenuEvent::DEACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::DEACTIVATE() method doesn't exist");
-       }
-       if (x1.DISPLAYING == null) {
-           DejaGnu.pass("ContextMenuEvent::DISPLAYING() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::DISPLAYING() method doesn't exist");
-       }
-       if (x1.ENTER == FRAME) {
-           DejaGnu.pass("ContextMenuEvent::ENTER() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::ENTER() method doesn't exist");
-       }
-       if (x1.EXITING == null) {
-           DejaGnu.pass("ContextMenuEvent::EXITING() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::EXITING() method doesn't exist");
-       }
-       if (x1.FULLSCREEN == null) {
-           DejaGnu.pass("ContextMenuEvent::FULLSCREEN() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::FULLSCREEN() method doesn't exist");
-       }
-       if (x1.HTML == BOUNDS) {
-           DejaGnu.pass("ContextMenuEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == DOM) {
-           DejaGnu.pass("ContextMenuEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == RENDER) {
-           DejaGnu.pass("ContextMenuEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::HTML() method doesn't exist");
-       }
-       if (x1.ID3 == null) {
-           DejaGnu.pass("ContextMenuEvent::ID3() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::ID3() method doesn't exist");
-       }
-       if (x1.INIT == null) {
-           DejaGnu.pass("ContextMenuEvent::INIT() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::INIT() method doesn't exist");
-       }
-       if (x1.LOCATION == CHANGE) {
-           DejaGnu.pass("ContextMenuEvent::LOCATION() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::LOCATION() method doesn't exist");
-       }
-       if (x1.MENU == ITEM) {
-           DejaGnu.pass("ContextMenuEvent::MENU() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::MENU() method doesn't exist");
-       }
-       if (x1.MENU == SELECT) {
-           DejaGnu.pass("ContextMenuEvent::MENU() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::MENU() method doesn't exist");
-       }
-       if (x1.MOUSE == LEAVE) {
-           DejaGnu.pass("ContextMenuEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.NETWORK == CHANGE) {
-           DejaGnu.pass("ContextMenuEvent::NETWORK() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::NETWORK() method doesn't exist");
-       }
-       if (x1.OPEN == null) {
-           DejaGnu.pass("ContextMenuEvent::OPEN() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::OPEN() method doesn't exist");
-       }
-       if (x1.REMOVED == null) {
-           DejaGnu.pass("ContextMenuEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.REMOVED == FROM) {
-           DejaGnu.pass("ContextMenuEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.RENDER == null) {
-           DejaGnu.pass("ContextMenuEvent::RENDER() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::RENDER() method doesn't exist");
-       }
-       if (x1.RESIZE == null) {
-           DejaGnu.pass("ContextMenuEvent::RESIZE() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::RESIZE() method doesn't exist");
-       }
-       if (x1.SCROLL == null) {
-           DejaGnu.pass("ContextMenuEvent::SCROLL() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::SCROLL() method doesn't exist");
-       }
-       if (x1.SELECT == null) {
-           DejaGnu.pass("ContextMenuEvent::SELECT() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::SELECT() method doesn't exist");
-       }
-       if (x1.SOUND == COMPLETE) {
-           DejaGnu.pass("ContextMenuEvent::SOUND() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::SOUND() method doesn't exist");
-       }
-       if (x1.TAB == CHILDREN) {
-           DejaGnu.pass("ContextMenuEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == ENABLED) {
-           DejaGnu.pass("ContextMenuEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == INDEX) {
-           DejaGnu.pass("ContextMenuEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::TAB() method doesn't exist");
-       }
-       if (x1.UNLOAD == null) {
-           DejaGnu.pass("ContextMenuEvent::UNLOAD() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::UNLOAD() method doesn't exist");
-       }
-       if (x1.USER == IDLE) {
-           DejaGnu.pass("ContextMenuEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::USER() method doesn't exist");
-       }
-       if (x1.USER == PRESENT) {
-           DejaGnu.pass("ContextMenuEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("ContextMenuEvent::USER() method doesn't exist");
-       }
-
+       #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/DRMAuthenticateEvent_as.hx'
--- a/testsuite/as3/classes.all/events/DRMAuthenticateEvent_as.hx       
2009-05-25 02:00:57 +0000
+++ b/testsuite/as3/classes.all/events/DRMAuthenticateEvent_as.hx       
2009-06-11 22:18:59 +0000
@@ -26,9 +26,6 @@
 #if flash9
 import flash.events.DRMAuthenticateEvent;
 import flash.display.MovieClip;
-#else
-import flash.DRMAuthenticateEvent;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
@@ -39,7 +36,12 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class DRMAuthenticateEvent_as {
     static function main() {
-        var x1:DRMAuthenticateEvent = new DRMAuthenticateEvent();
+        #if !flash9
+                       DejaGnu.note("this class did not exist before AS2");
+               #end
+               
+               #if flash9
+               var x1:DRMAuthenticateEvent = new DRMAuthenticateEvent();
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -84,11 +86,6 @@
 // Tests to see if all the methods exist. All these do is test for
 // existance of a method, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.DRMAuthenticateEvent == NetStream) {
-           DejaGnu.pass("DRMAuthenticateEvent::DRMAuthenticateEvent() method 
exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::DRMAuthenticateEvent() method 
doesn't exist");
-       }
        if (x1.clone == Event) {
            DejaGnu.pass("DRMAuthenticateEvent::clone() method exists");
        } else {
@@ -99,202 +96,7 @@
        } else {
            DejaGnu.fail("DRMAuthenticateEvent::toString() method doesn't 
exist");
        }
-       if (x1.ACTIVATE == null) {
-           DejaGnu.pass("DRMAuthenticateEvent::ACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::ACTIVATE() method doesn't 
exist");
-       }
-       if (x1.ADDED == null) {
-           DejaGnu.pass("DRMAuthenticateEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::ADDED() method doesn't exist");
-       }
-       if (x1.ADDED == TO) {
-           DejaGnu.pass("DRMAuthenticateEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::ADDED() method doesn't exist");
-       }
-       if (x1.AUTHENTICATION == TYPE) {
-           DejaGnu.pass("DRMAuthenticateEvent::AUTHENTICATION() method 
exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::AUTHENTICATION() method doesn't 
exist");
-       }
-       if (x1.AUTHENTICATION == TYPE) {
-           DejaGnu.pass("DRMAuthenticateEvent::AUTHENTICATION() method 
exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::AUTHENTICATION() method doesn't 
exist");
-       }
-       if (x1.CANCEL == null) {
-           DejaGnu.pass("DRMAuthenticateEvent::CANCEL() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::CANCEL() method doesn't exist");
-       }
-       if (x1.CHANGE == null) {
-           DejaGnu.pass("DRMAuthenticateEvent::CHANGE() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::CHANGE() method doesn't exist");
-       }
-       if (x1.CLOSE == null) {
-           DejaGnu.pass("DRMAuthenticateEvent::CLOSE() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::CLOSE() method doesn't exist");
-       }
-       if (x1.CLOSING == null) {
-           DejaGnu.pass("DRMAuthenticateEvent::CLOSING() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::CLOSING() method doesn't 
exist");
-       }
-       if (x1.COMPLETE == null) {
-           DejaGnu.pass("DRMAuthenticateEvent::COMPLETE() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::COMPLETE() method doesn't 
exist");
-       }
-       if (x1.CONNECT == null) {
-           DejaGnu.pass("DRMAuthenticateEvent::CONNECT() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::CONNECT() method doesn't 
exist");
-       }
-       if (x1.DEACTIVATE == null) {
-           DejaGnu.pass("DRMAuthenticateEvent::DEACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::DEACTIVATE() method doesn't 
exist");
-       }
-       if (x1.DISPLAYING == null) {
-           DejaGnu.pass("DRMAuthenticateEvent::DISPLAYING() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::DISPLAYING() method doesn't 
exist");
-       }
-       if (x1.DRM == AUTHENTICATE) {
-           DejaGnu.pass("DRMAuthenticateEvent::DRM() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::DRM() method doesn't exist");
-       }
-       if (x1.ENTER == FRAME) {
-           DejaGnu.pass("DRMAuthenticateEvent::ENTER() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::ENTER() method doesn't exist");
-       }
-       if (x1.EXITING == null) {
-           DejaGnu.pass("DRMAuthenticateEvent::EXITING() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::EXITING() method doesn't 
exist");
-       }
-       if (x1.FULLSCREEN == null) {
-           DejaGnu.pass("DRMAuthenticateEvent::FULLSCREEN() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::FULLSCREEN() method doesn't 
exist");
-       }
-       if (x1.HTML == BOUNDS) {
-           DejaGnu.pass("DRMAuthenticateEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == DOM) {
-           DejaGnu.pass("DRMAuthenticateEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == RENDER) {
-           DejaGnu.pass("DRMAuthenticateEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::HTML() method doesn't exist");
-       }
-       if (x1.ID3 == null) {
-           DejaGnu.pass("DRMAuthenticateEvent::ID3() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::ID3() method doesn't exist");
-       }
-       if (x1.INIT == null) {
-           DejaGnu.pass("DRMAuthenticateEvent::INIT() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::INIT() method doesn't exist");
-       }
-       if (x1.LOCATION == CHANGE) {
-           DejaGnu.pass("DRMAuthenticateEvent::LOCATION() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::LOCATION() method doesn't 
exist");
-       }
-       if (x1.MOUSE == LEAVE) {
-           DejaGnu.pass("DRMAuthenticateEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.NETWORK == CHANGE) {
-           DejaGnu.pass("DRMAuthenticateEvent::NETWORK() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::NETWORK() method doesn't 
exist");
-       }
-       if (x1.OPEN == null) {
-           DejaGnu.pass("DRMAuthenticateEvent::OPEN() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::OPEN() method doesn't exist");
-       }
-       if (x1.REMOVED == null) {
-           DejaGnu.pass("DRMAuthenticateEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::REMOVED() method doesn't 
exist");
-       }
-       if (x1.REMOVED == FROM) {
-           DejaGnu.pass("DRMAuthenticateEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::REMOVED() method doesn't 
exist");
-       }
-       if (x1.RENDER == null) {
-           DejaGnu.pass("DRMAuthenticateEvent::RENDER() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::RENDER() method doesn't exist");
-       }
-       if (x1.RESIZE == null) {
-           DejaGnu.pass("DRMAuthenticateEvent::RESIZE() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::RESIZE() method doesn't exist");
-       }
-       if (x1.SCROLL == null) {
-           DejaGnu.pass("DRMAuthenticateEvent::SCROLL() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::SCROLL() method doesn't exist");
-       }
-       if (x1.SELECT == null) {
-           DejaGnu.pass("DRMAuthenticateEvent::SELECT() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::SELECT() method doesn't exist");
-       }
-       if (x1.SOUND == COMPLETE) {
-           DejaGnu.pass("DRMAuthenticateEvent::SOUND() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::SOUND() method doesn't exist");
-       }
-       if (x1.TAB == CHILDREN) {
-           DejaGnu.pass("DRMAuthenticateEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == ENABLED) {
-           DejaGnu.pass("DRMAuthenticateEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == INDEX) {
-           DejaGnu.pass("DRMAuthenticateEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::TAB() method doesn't exist");
-       }
-       if (x1.UNLOAD == null) {
-           DejaGnu.pass("DRMAuthenticateEvent::UNLOAD() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::UNLOAD() method doesn't exist");
-       }
-       if (x1.USER == IDLE) {
-           DejaGnu.pass("DRMAuthenticateEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::USER() method doesn't exist");
-       }
-       if (x1.USER == PRESENT) {
-           DejaGnu.pass("DRMAuthenticateEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("DRMAuthenticateEvent::USER() method doesn't exist");
-       }
-
+       #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/DataEvent_as.hx'
--- a/testsuite/as3/classes.all/events/DataEvent_as.hx  2009-05-25 02:00:57 
+0000
+++ b/testsuite/as3/classes.all/events/DataEvent_as.hx  2009-06-11 22:18:59 
+0000
@@ -26,12 +26,10 @@
 #if flash9
 import flash.events.DataEvent;
 import flash.display.MovieClip;
-#else
-import flash.DataEvent;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
+import Std;
 
 // import our testing API
 import DejaGnu;
@@ -39,7 +37,12 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class DataEvent_as {
     static function main() {
-        var x1:DataEvent = new DataEvent();
+        #if !flash9
+                       DejaGnu.note("this class did not exist before AS3");
+               #end
+               
+               #if flash9
+               var x1:DataEvent = new DataEvent("dataevent");
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -50,7 +53,7 @@
 // Tests to see if all the properties exist. All these do is test for
 // existance of a property, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.data == null) {
+       if (Std.is(x1.data, String)) {
            DejaGnu.pass("DataEvent.data property exists");
        } else {
            DejaGnu.fail("DataEvent.data property doesn't exist");
@@ -59,222 +62,17 @@
 // Tests to see if all the methods exist. All these do is test for
 // existance of a method, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.DataEvent == null) {
-           DejaGnu.pass("DataEvent::DataEvent() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::DataEvent() method doesn't exist");
-       }
-       if (x1.clone == Event) {
+       if (Type.typeof(x1.clone) == ValueType.TFunction) {
            DejaGnu.pass("DataEvent::clone() method exists");
        } else {
            DejaGnu.fail("DataEvent::clone() method doesn't exist");
        }
-       if (x1.toString == null) {
+       if (Type.typeof(x1.toString) == ValueType.TFunction) {
            DejaGnu.pass("DataEvent::toString() method exists");
        } else {
            DejaGnu.fail("DataEvent::toString() method doesn't exist");
        }
-       if (x1.ACTIVATE == null) {
-           DejaGnu.pass("DataEvent::ACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::ACTIVATE() method doesn't exist");
-       }
-       if (x1.ADDED == null) {
-           DejaGnu.pass("DataEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::ADDED() method doesn't exist");
-       }
-       if (x1.ADDED == TO) {
-           DejaGnu.pass("DataEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::ADDED() method doesn't exist");
-       }
-       if (x1.CANCEL == null) {
-           DejaGnu.pass("DataEvent::CANCEL() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::CANCEL() method doesn't exist");
-       }
-       if (x1.CHANGE == null) {
-           DejaGnu.pass("DataEvent::CHANGE() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::CHANGE() method doesn't exist");
-       }
-       if (x1.CLOSE == null) {
-           DejaGnu.pass("DataEvent::CLOSE() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::CLOSE() method doesn't exist");
-       }
-       if (x1.CLOSING == null) {
-           DejaGnu.pass("DataEvent::CLOSING() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::CLOSING() method doesn't exist");
-       }
-       if (x1.COMPLETE == null) {
-           DejaGnu.pass("DataEvent::COMPLETE() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::COMPLETE() method doesn't exist");
-       }
-       if (x1.CONNECT == null) {
-           DejaGnu.pass("DataEvent::CONNECT() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::CONNECT() method doesn't exist");
-       }
-       if (x1.DATA == null) {
-           DejaGnu.pass("DataEvent::DATA() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::DATA() method doesn't exist");
-       }
-       if (x1.DEACTIVATE == null) {
-           DejaGnu.pass("DataEvent::DEACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::DEACTIVATE() method doesn't exist");
-       }
-       if (x1.DISPLAYING == null) {
-           DejaGnu.pass("DataEvent::DISPLAYING() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::DISPLAYING() method doesn't exist");
-       }
-       if (x1.ENTER == FRAME) {
-           DejaGnu.pass("DataEvent::ENTER() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::ENTER() method doesn't exist");
-       }
-       if (x1.EXITING == null) {
-           DejaGnu.pass("DataEvent::EXITING() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::EXITING() method doesn't exist");
-       }
-       if (x1.FULLSCREEN == null) {
-           DejaGnu.pass("DataEvent::FULLSCREEN() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::FULLSCREEN() method doesn't exist");
-       }
-       if (x1.HTML == BOUNDS) {
-           DejaGnu.pass("DataEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == DOM) {
-           DejaGnu.pass("DataEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == RENDER) {
-           DejaGnu.pass("DataEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::HTML() method doesn't exist");
-       }
-       if (x1.ID3 == null) {
-           DejaGnu.pass("DataEvent::ID3() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::ID3() method doesn't exist");
-       }
-       if (x1.INIT == null) {
-           DejaGnu.pass("DataEvent::INIT() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::INIT() method doesn't exist");
-       }
-       if (x1.LINK == null) {
-           DejaGnu.pass("DataEvent::LINK() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::LINK() method doesn't exist");
-       }
-       if (x1.LOCATION == CHANGE) {
-           DejaGnu.pass("DataEvent::LOCATION() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::LOCATION() method doesn't exist");
-       }
-       if (x1.MOUSE == LEAVE) {
-           DejaGnu.pass("DataEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.NETWORK == CHANGE) {
-           DejaGnu.pass("DataEvent::NETWORK() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::NETWORK() method doesn't exist");
-       }
-       if (x1.OPEN == null) {
-           DejaGnu.pass("DataEvent::OPEN() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::OPEN() method doesn't exist");
-       }
-       if (x1.REMOVED == null) {
-           DejaGnu.pass("DataEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.REMOVED == FROM) {
-           DejaGnu.pass("DataEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.RENDER == null) {
-           DejaGnu.pass("DataEvent::RENDER() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::RENDER() method doesn't exist");
-       }
-       if (x1.RESIZE == null) {
-           DejaGnu.pass("DataEvent::RESIZE() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::RESIZE() method doesn't exist");
-       }
-       if (x1.SCROLL == null) {
-           DejaGnu.pass("DataEvent::SCROLL() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::SCROLL() method doesn't exist");
-       }
-       if (x1.SELECT == null) {
-           DejaGnu.pass("DataEvent::SELECT() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::SELECT() method doesn't exist");
-       }
-       if (x1.SOUND == COMPLETE) {
-           DejaGnu.pass("DataEvent::SOUND() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::SOUND() method doesn't exist");
-       }
-       if (x1.TAB == CHILDREN) {
-           DejaGnu.pass("DataEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == ENABLED) {
-           DejaGnu.pass("DataEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == INDEX) {
-           DejaGnu.pass("DataEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::TAB() method doesn't exist");
-       }
-       if (x1.TEXT == INPUT) {
-           DejaGnu.pass("DataEvent::TEXT() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::TEXT() method doesn't exist");
-       }
-       if (x1.UNLOAD == null) {
-           DejaGnu.pass("DataEvent::UNLOAD() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::UNLOAD() method doesn't exist");
-       }
-       if (x1.UPLOAD == COMPLETE) {
-           DejaGnu.pass("DataEvent::UPLOAD() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::UPLOAD() method doesn't exist");
-       }
-       if (x1.USER == IDLE) {
-           DejaGnu.pass("DataEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::USER() method doesn't exist");
-       }
-       if (x1.USER == PRESENT) {
-           DejaGnu.pass("DataEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("DataEvent::USER() method doesn't exist");
-       }
-
+       #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/ErrorEvent_as.hx'
--- a/testsuite/as3/classes.all/events/ErrorEvent_as.hx 2009-05-25 02:00:57 
+0000
+++ b/testsuite/as3/classes.all/events/ErrorEvent_as.hx 2009-06-11 22:18:59 
+0000
@@ -26,12 +26,10 @@
 #if flash9
 import flash.events.ErrorEvent;
 import flash.display.MovieClip;
-#else
-import flash.ErrorEvent;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
+import Std;
 
 // import our testing API
 import DejaGnu;
@@ -39,7 +37,12 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class ErrorEvent_as {
     static function main() {
-        var x1:ErrorEvent = new ErrorEvent();
+        #if !flash9
+                       DejaGnu.note("this class did not exist in AS2");
+               #end
+               
+               #if flash9
+               var x1:ErrorEvent = new ErrorEvent("errorevent");
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -50,226 +53,27 @@
 // Tests to see if all the properties exist. All these do is test for
 // existance of a property, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.errorID == 0) {
-           DejaGnu.pass("ErrorEvent.errorID property exists");
-       } else {
-           DejaGnu.fail("ErrorEvent.errorID property doesn't exist");
-       }
+       //air only
+       //if (Std.is(x1.errorID, Int)) {
+       //    DejaGnu.pass("ErrorEvent.errorID property exists");
+       //} else {
+       //    DejaGnu.fail("ErrorEvent.errorID property doesn't exist");
+       //}
 
 // Tests to see if all the methods exist. All these do is test for
 // existance of a method, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.ErrorEvent == 0) {
-           DejaGnu.pass("ErrorEvent::ErrorEvent() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::ErrorEvent() method doesn't exist");
-       }
-       if (x1.clone == Event) {
+       if (Type.typeof(x1.clone) == ValueType.TFunction) {
            DejaGnu.pass("ErrorEvent::clone() method exists");
        } else {
            DejaGnu.fail("ErrorEvent::clone() method doesn't exist");
        }
-       if (x1.toString == null) {
+       if (Type.typeof(x1.toString) == ValueType.TFunction) {
            DejaGnu.pass("ErrorEvent::toString() method exists");
        } else {
            DejaGnu.fail("ErrorEvent::toString() method doesn't exist");
        }
-       if (x1.ACTIVATE == null) {
-           DejaGnu.pass("ErrorEvent::ACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::ACTIVATE() method doesn't exist");
-       }
-       if (x1.ADDED == null) {
-           DejaGnu.pass("ErrorEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::ADDED() method doesn't exist");
-       }
-       if (x1.ADDED == TO) {
-           DejaGnu.pass("ErrorEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::ADDED() method doesn't exist");
-       }
-       if (x1.CANCEL == null) {
-           DejaGnu.pass("ErrorEvent::CANCEL() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::CANCEL() method doesn't exist");
-       }
-       if (x1.CHANGE == null) {
-           DejaGnu.pass("ErrorEvent::CHANGE() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::CHANGE() method doesn't exist");
-       }
-       if (x1.CLOSE == null) {
-           DejaGnu.pass("ErrorEvent::CLOSE() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::CLOSE() method doesn't exist");
-       }
-       if (x1.CLOSING == null) {
-           DejaGnu.pass("ErrorEvent::CLOSING() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::CLOSING() method doesn't exist");
-       }
-       if (x1.COMPLETE == null) {
-           DejaGnu.pass("ErrorEvent::COMPLETE() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::COMPLETE() method doesn't exist");
-       }
-       if (x1.CONNECT == null) {
-           DejaGnu.pass("ErrorEvent::CONNECT() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::CONNECT() method doesn't exist");
-       }
-       if (x1.DEACTIVATE == null) {
-           DejaGnu.pass("ErrorEvent::DEACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::DEACTIVATE() method doesn't exist");
-       }
-       if (x1.DISPLAYING == null) {
-           DejaGnu.pass("ErrorEvent::DISPLAYING() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::DISPLAYING() method doesn't exist");
-       }
-       if (x1.ENTER == FRAME) {
-           DejaGnu.pass("ErrorEvent::ENTER() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::ENTER() method doesn't exist");
-       }
-       if (x1.ERROR == null) {
-           DejaGnu.pass("ErrorEvent::ERROR() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::ERROR() method doesn't exist");
-       }
-       if (x1.EXITING == null) {
-           DejaGnu.pass("ErrorEvent::EXITING() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::EXITING() method doesn't exist");
-       }
-       if (x1.FULLSCREEN == null) {
-           DejaGnu.pass("ErrorEvent::FULLSCREEN() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::FULLSCREEN() method doesn't exist");
-       }
-       if (x1.HTML == BOUNDS) {
-           DejaGnu.pass("ErrorEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == DOM) {
-           DejaGnu.pass("ErrorEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == RENDER) {
-           DejaGnu.pass("ErrorEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::HTML() method doesn't exist");
-       }
-       if (x1.ID3 == null) {
-           DejaGnu.pass("ErrorEvent::ID3() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::ID3() method doesn't exist");
-       }
-       if (x1.INIT == null) {
-           DejaGnu.pass("ErrorEvent::INIT() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::INIT() method doesn't exist");
-       }
-       if (x1.LINK == null) {
-           DejaGnu.pass("ErrorEvent::LINK() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::LINK() method doesn't exist");
-       }
-       if (x1.LOCATION == CHANGE) {
-           DejaGnu.pass("ErrorEvent::LOCATION() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::LOCATION() method doesn't exist");
-       }
-       if (x1.MOUSE == LEAVE) {
-           DejaGnu.pass("ErrorEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.NETWORK == CHANGE) {
-           DejaGnu.pass("ErrorEvent::NETWORK() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::NETWORK() method doesn't exist");
-       }
-       if (x1.OPEN == null) {
-           DejaGnu.pass("ErrorEvent::OPEN() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::OPEN() method doesn't exist");
-       }
-       if (x1.REMOVED == null) {
-           DejaGnu.pass("ErrorEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.REMOVED == FROM) {
-           DejaGnu.pass("ErrorEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.RENDER == null) {
-           DejaGnu.pass("ErrorEvent::RENDER() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::RENDER() method doesn't exist");
-       }
-       if (x1.RESIZE == null) {
-           DejaGnu.pass("ErrorEvent::RESIZE() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::RESIZE() method doesn't exist");
-       }
-       if (x1.SCROLL == null) {
-           DejaGnu.pass("ErrorEvent::SCROLL() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::SCROLL() method doesn't exist");
-       }
-       if (x1.SELECT == null) {
-           DejaGnu.pass("ErrorEvent::SELECT() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::SELECT() method doesn't exist");
-       }
-       if (x1.SOUND == COMPLETE) {
-           DejaGnu.pass("ErrorEvent::SOUND() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::SOUND() method doesn't exist");
-       }
-       if (x1.TAB == CHILDREN) {
-           DejaGnu.pass("ErrorEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == ENABLED) {
-           DejaGnu.pass("ErrorEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == INDEX) {
-           DejaGnu.pass("ErrorEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::TAB() method doesn't exist");
-       }
-       if (x1.TEXT == INPUT) {
-           DejaGnu.pass("ErrorEvent::TEXT() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::TEXT() method doesn't exist");
-       }
-       if (x1.UNLOAD == null) {
-           DejaGnu.pass("ErrorEvent::UNLOAD() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::UNLOAD() method doesn't exist");
-       }
-       if (x1.USER == IDLE) {
-           DejaGnu.pass("ErrorEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::USER() method doesn't exist");
-       }
-       if (x1.USER == PRESENT) {
-           DejaGnu.pass("ErrorEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("ErrorEvent::USER() method doesn't exist");
-       }
-
+       #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/EventDispatcher_as.hx'
--- a/testsuite/as3/classes.all/events/EventDispatcher_as.hx    2009-05-25 
02:00:57 +0000
+++ b/testsuite/as3/classes.all/events/EventDispatcher_as.hx    2009-06-11 
22:18:59 +0000
@@ -26,9 +26,6 @@
 #if flash9
 import flash.events.EventDispatcher;
 import flash.display.MovieClip;
-#else
-import flash.EventDispatcher;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
@@ -39,7 +36,12 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class EventDispatcher_as {
     static function main() {
-        var x1:EventDispatcher = new EventDispatcher();
+        #if !flash9
+                       DejaGnu.note("this class did not exist in AS2");
+               #end
+               
+               #if flash9
+               var x1:EventDispatcher = new EventDispatcher();
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -51,7 +53,32 @@
 // Tests to see if all the methods exist. All these do is test for
 // existance of a method, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-
+       if (Type.typeof(x1.addEventListener) == ValueType.TFunction) {
+               DejaGnu.pass("EventDispatch::addEventListener method exists");
+       } else {
+               DejaGnu.fail("EventDispatch::addEventListener method doesn't 
exist");
+       }
+       if (Type.typeof(x1.dispatchEvent) == ValueType.TFunction) {
+               DejaGnu.pass("EventDispatch::dispatchEvent method exists");
+       } else {
+               DejaGnu.fail("EventDispatch::dispatchEvent method doesn't 
exist");
+       }
+       if (Type.typeof(x1.hasEventListener) == ValueType.TFunction) {
+               DejaGnu.pass("EventDispatch::hasEventListener method exists");
+       } else {
+               DejaGnu.fail("EventDispatch::hasEventListener method doesn't 
exist");
+       }
+       if (Type.typeof(x1.removeEventListener) == ValueType.TFunction) {
+               DejaGnu.pass("EventDispatch::removeEventListener method 
exists");
+       } else {
+               DejaGnu.fail("EventDispatch::removeEventListener method doesn't 
exist");
+       }
+       if (Type.typeof(x1.willTrigger) == ValueType.TFunction) {
+               DejaGnu.pass("EventDispatch::willTrigger method exists");
+       } else {
+               DejaGnu.fail("EventDispatch::willTrigger method doesn't exist");
+       }
+               #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/EventPhase_as.hx'
--- a/testsuite/as3/classes.all/events/EventPhase_as.hx 2009-05-25 02:00:57 
+0000
+++ b/testsuite/as3/classes.all/events/EventPhase_as.hx 2009-06-11 22:18:59 
+0000
@@ -26,12 +26,10 @@
 #if flash9
 import flash.events.EventPhase;
 import flash.display.MovieClip;
-#else
-import flash.EventPhase;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
+import Std;
 
 // import our testing API
 import DejaGnu;
@@ -39,19 +37,30 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class EventPhase_as {
     static function main() {
-        var x1:EventPhase = new EventPhase();
-
-        // Make sure we actually get a valid class        
-        if (x1 != null) {
-            DejaGnu.pass("EventPhase class exists");
-        } else {
-            DejaGnu.fail("EventPhase class doesn't exist");
-        }
-
-// Tests to see if all the methods exist. All these do is test for
-// existance of a method, and don't test the functionality at all. This
-// is primarily useful only to test completeness of the API implementation.
-
+        #if !flash9
+                       DejaGnu.note("this class did not exist in as2");
+               #end
+               
+               #if flash9
+               if (Std.string(flash.events.EventPhase.AT_TARGET) == "2") {
+                       DejaGnu.pass("EventPhase::AT_TARGET has correct 
constant");
+               } else {
+                       DejaGnu.fail("EventPhase::AT_TARGET doesn't return the 
correct constant");
+               }
+
+               if (Std.string(flash.events.EventPhase.BUBBLING_PHASE) == "3") {
+                       DejaGnu.pass("EventPhase::BUBBLING_PHASE has correct 
constant");
+               } else {
+                       DejaGnu.fail("EventPhase::BUBBLING_PHASE doesn't return 
the correct constant");
+               }
+               
+               if (Std.string(flash.events.EventPhase.CAPTURING_PHASE) == "1") 
{
+                       DejaGnu.pass("EventPhase::CAPTURING_PHASE has correct 
constant");
+               } else {
+                       DejaGnu.fail("EventPhase::CAPTURING_PHASE doesn't 
return the correct constant");
+               }
+
+               #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/Event_as.hx'
--- a/testsuite/as3/classes.all/events/Event_as.hx      2009-05-25 02:00:57 
+0000
+++ b/testsuite/as3/classes.all/events/Event_as.hx      2009-06-11 22:18:59 
+0000
@@ -26,12 +26,10 @@
 #if flash9
 import flash.events.Event;
 import flash.display.MovieClip;
-#else
-import flash.Event;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
+import Std;
 
 // import our testing API
 import DejaGnu;
@@ -39,7 +37,12 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class Event_as {
     static function main() {
-        var x1:Event = new Event();
+        #if !flash9
+                       DejaGnu.note("this class did not exist in as2");
+               #end
+               
+               #if flash9
+               var x1:Event = new Event("event");
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -50,32 +53,32 @@
 // Tests to see if all the properties exist. All these do is test for
 // existance of a property, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.bubbles == false) {
+       if (Std.is(x1.bubbles, Bool)) {
            DejaGnu.pass("Event.bubbles property exists");
        } else {
            DejaGnu.fail("Event.bubbles property doesn't exist");
        }
-       if (x1.cancelable == false) {
+       if (Std.is(x1.cancelable, Bool)) {
            DejaGnu.pass("Event.cancelable property exists");
        } else {
            DejaGnu.fail("Event.cancelable property doesn't exist");
        }
-       if (x1.currentTarget == Object) {
+       if (Type.typeof(x1.currentTarget) == ValueType.TObject) {
            DejaGnu.pass("Event.currentTarget property exists");
        } else {
-           DejaGnu.fail("Event.currentTarget property doesn't exist");
+           DejaGnu.xfail("Event.currentTarget property doesn't exist");
        }
-       if (x1.eventPhase == uint) {
+       if (Std.is(x1.eventPhase, Float)) {
            DejaGnu.pass("Event.eventPhase property exists");
        } else {
            DejaGnu.fail("Event.eventPhase property doesn't exist");
        }
-       if (x1.target == Object) {
+       if (Type.typeof(x1.target) == ValueType.TObject) {
            DejaGnu.pass("Event.target property exists");
        } else {
-           DejaGnu.fail("Event.target property doesn't exist");
+           DejaGnu.xfail("Event.target property doesn't exist");
        }
-       if (x1.type == null) {
+       if (Std.is(x1.type, String)) {
            DejaGnu.pass("Event.type property exists");
        } else {
            DejaGnu.fail("Event.type property doesn't exist");
@@ -84,227 +87,216 @@
 // Tests to see if all the methods exist. All these do is test for
 // existance of a method, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.Event == false) {
-           DejaGnu.pass("Event::Event() method exists");
-       } else {
-           DejaGnu.fail("Event::Event() method doesn't exist");
-       }
-       if (x1.clone == Event) {
+       if (Type.typeof(x1.clone) == ValueType.TFunction) {
            DejaGnu.pass("Event::clone() method exists");
        } else {
            DejaGnu.fail("Event::clone() method doesn't exist");
        }
-       if (x1.formatToString == null) {
+       if (Type.typeof(x1.formatToString) == ValueType.TFunction) {
            DejaGnu.pass("Event::formatToString() method exists");
        } else {
            DejaGnu.fail("Event::formatToString() method doesn't exist");
        }
-       if (x1.isDefaultPrevented == false) {
+       if (Type.typeof(x1.isDefaultPrevented) == ValueType.TFunction) {
            DejaGnu.pass("Event::isDefaultPrevented() method exists");
        } else {
            DejaGnu.fail("Event::isDefaultPrevented() method doesn't exist");
        }
-       if (x1.preventDefault == null) {
+       if (Type.typeof(x1.preventDefault) == ValueType.TFunction) {
            DejaGnu.pass("Event::preventDefault() method exists");
        } else {
            DejaGnu.fail("Event::preventDefault() method doesn't exist");
        }
-       if (x1.stopImmediatePropagation == null) {
+       if (Type.typeof(x1.stopImmediatePropagation) == ValueType.TFunction) {
            DejaGnu.pass("Event::stopImmediatePropagation() method exists");
        } else {
            DejaGnu.fail("Event::stopImmediatePropagation() method doesn't 
exist");
        }
-       if (x1.stopPropagation == null) {
+       if (Type.typeof(x1.stopPropagation) == ValueType.TFunction) {
            DejaGnu.pass("Event::stopPropagation() method exists");
        } else {
            DejaGnu.fail("Event::stopPropagation() method doesn't exist");
        }
-       if (x1.toString == null) {
+       if (Type.typeof(x1.toString) == ValueType.TFunction) {
            DejaGnu.pass("Event::toString() method exists");
        } else {
            DejaGnu.fail("Event::toString() method doesn't exist");
        }
-       if (x1.ACTIVATE == null) {
-           DejaGnu.pass("Event::ACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("Event::ACTIVATE() method doesn't exist");
-       }
-       if (x1.ADDED == null) {
-           DejaGnu.pass("Event::ADDED() method exists");
-       } else {
-           DejaGnu.fail("Event::ADDED() method doesn't exist");
-       }
-       if (x1.ADDED == TO) {
-           DejaGnu.pass("Event::ADDED() method exists");
-       } else {
-           DejaGnu.fail("Event::ADDED() method doesn't exist");
-       }
-       if (x1.CANCEL == null) {
-           DejaGnu.pass("Event::CANCEL() method exists");
-       } else {
-           DejaGnu.fail("Event::CANCEL() method doesn't exist");
-       }
-       if (x1.CHANGE == null) {
-           DejaGnu.pass("Event::CHANGE() method exists");
-       } else {
-           DejaGnu.fail("Event::CHANGE() method doesn't exist");
-       }
-       if (x1.CLOSE == null) {
-           DejaGnu.pass("Event::CLOSE() method exists");
-       } else {
-           DejaGnu.fail("Event::CLOSE() method doesn't exist");
-       }
-       if (x1.CLOSING == null) {
-           DejaGnu.pass("Event::CLOSING() method exists");
-       } else {
-           DejaGnu.fail("Event::CLOSING() method doesn't exist");
-       }
-       if (x1.COMPLETE == null) {
-           DejaGnu.pass("Event::COMPLETE() method exists");
-       } else {
-           DejaGnu.fail("Event::COMPLETE() method doesn't exist");
-       }
-       if (x1.CONNECT == null) {
-           DejaGnu.pass("Event::CONNECT() method exists");
-       } else {
-           DejaGnu.fail("Event::CONNECT() method doesn't exist");
-       }
-       if (x1.DEACTIVATE == null) {
-           DejaGnu.pass("Event::DEACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("Event::DEACTIVATE() method doesn't exist");
-       }
-       if (x1.DISPLAYING == null) {
-           DejaGnu.pass("Event::DISPLAYING() method exists");
-       } else {
-           DejaGnu.fail("Event::DISPLAYING() method doesn't exist");
-       }
-       if (x1.ENTER == FRAME) {
-           DejaGnu.pass("Event::ENTER() method exists");
-       } else {
-           DejaGnu.fail("Event::ENTER() method doesn't exist");
-       }
-       if (x1.EXITING == null) {
-           DejaGnu.pass("Event::EXITING() method exists");
-       } else {
-           DejaGnu.fail("Event::EXITING() method doesn't exist");
-       }
-       if (x1.FULLSCREEN == null) {
-           DejaGnu.pass("Event::FULLSCREEN() method exists");
-       } else {
-           DejaGnu.fail("Event::FULLSCREEN() method doesn't exist");
-       }
-       if (x1.HTML == BOUNDS) {
-           DejaGnu.pass("Event::HTML() method exists");
-       } else {
-           DejaGnu.fail("Event::HTML() method doesn't exist");
-       }
-       if (x1.HTML == DOM) {
-           DejaGnu.pass("Event::HTML() method exists");
-       } else {
-           DejaGnu.fail("Event::HTML() method doesn't exist");
-       }
-       if (x1.HTML == RENDER) {
-           DejaGnu.pass("Event::HTML() method exists");
-       } else {
-           DejaGnu.fail("Event::HTML() method doesn't exist");
-       }
-       if (x1.ID3 == null) {
-           DejaGnu.pass("Event::ID3() method exists");
-       } else {
-           DejaGnu.fail("Event::ID3() method doesn't exist");
-       }
-       if (x1.INIT == null) {
-           DejaGnu.pass("Event::INIT() method exists");
-       } else {
-           DejaGnu.fail("Event::INIT() method doesn't exist");
-       }
-       if (x1.LOCATION == CHANGE) {
-           DejaGnu.pass("Event::LOCATION() method exists");
-       } else {
-           DejaGnu.fail("Event::LOCATION() method doesn't exist");
-       }
-       if (x1.MOUSE == LEAVE) {
-           DejaGnu.pass("Event::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("Event::MOUSE() method doesn't exist");
-       }
-       if (x1.NETWORK == CHANGE) {
-           DejaGnu.pass("Event::NETWORK() method exists");
-       } else {
-           DejaGnu.fail("Event::NETWORK() method doesn't exist");
-       }
-       if (x1.OPEN == null) {
-           DejaGnu.pass("Event::OPEN() method exists");
-       } else {
-           DejaGnu.fail("Event::OPEN() method doesn't exist");
-       }
-       if (x1.REMOVED == null) {
-           DejaGnu.pass("Event::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("Event::REMOVED() method doesn't exist");
-       }
-       if (x1.REMOVED == FROM) {
-           DejaGnu.pass("Event::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("Event::REMOVED() method doesn't exist");
-       }
-       if (x1.RENDER == null) {
-           DejaGnu.pass("Event::RENDER() method exists");
-       } else {
-           DejaGnu.fail("Event::RENDER() method doesn't exist");
-       }
-       if (x1.RESIZE == null) {
-           DejaGnu.pass("Event::RESIZE() method exists");
-       } else {
-           DejaGnu.fail("Event::RESIZE() method doesn't exist");
-       }
-       if (x1.SCROLL == null) {
-           DejaGnu.pass("Event::SCROLL() method exists");
-       } else {
-           DejaGnu.fail("Event::SCROLL() method doesn't exist");
-       }
-       if (x1.SELECT == null) {
-           DejaGnu.pass("Event::SELECT() method exists");
-       } else {
-           DejaGnu.fail("Event::SELECT() method doesn't exist");
-       }
-       if (x1.SOUND == COMPLETE) {
-           DejaGnu.pass("Event::SOUND() method exists");
-       } else {
-           DejaGnu.fail("Event::SOUND() method doesn't exist");
-       }
-       if (x1.TAB == CHILDREN) {
-           DejaGnu.pass("Event::TAB() method exists");
-       } else {
-           DejaGnu.fail("Event::TAB() method doesn't exist");
-       }
-       if (x1.TAB == ENABLED) {
-           DejaGnu.pass("Event::TAB() method exists");
-       } else {
-           DejaGnu.fail("Event::TAB() method doesn't exist");
-       }
-       if (x1.TAB == INDEX) {
-           DejaGnu.pass("Event::TAB() method exists");
-       } else {
-           DejaGnu.fail("Event::TAB() method doesn't exist");
-       }
-       if (x1.UNLOAD == null) {
-           DejaGnu.pass("Event::UNLOAD() method exists");
-       } else {
-           DejaGnu.fail("Event::UNLOAD() method doesn't exist");
-       }
-       if (x1.USER == IDLE) {
-           DejaGnu.pass("Event::USER() method exists");
-       } else {
-           DejaGnu.fail("Event::USER() method doesn't exist");
-       }
-       if (x1.USER == PRESENT) {
-           DejaGnu.pass("Event::USER() method exists");
-       } else {
-           DejaGnu.fail("Event::USER() method doesn't exist");
-       }
-
+       
+       //check constants
+       if (Std.string(flash.events.Event.ACTIVATE) == "activate") {
+               DejaGnu.pass("Event::ACTIVATE constant returns the correct 
string");
+       } else {
+               DejaGnu.fail("Event::ACTIVATE constant returns the wrong 
string");
+       }
+       if (Std.string(flash.events.Event.ADDED) == "added") {
+               DejaGnu.pass("Event::ADDED  constant returns the correct 
string");
+       } else {
+               DejaGnu.fail("Event::ADDED  constant returns the wrong string");
+       }
+       if (Std.string(flash.events.Event.ADDED_TO_STAGE) == "addedToStage") {
+               DejaGnu.pass("Event::  constant returns the correct string");
+       } else {
+               DejaGnu.fail("Event::  constant returns the wrong string");
+       }
+       if (Std.string(flash.events.Event.CANCEL) == "cancel") {
+               DejaGnu.pass("Event::CANCEL constant returns the correct 
string");
+       } else {
+               DejaGnu.fail("Event::CANCEL constant returns the wrong string");
+       }
+       if (Std.string(flash.events.Event.CHANGE) == "change") {
+               DejaGnu.pass("Event::CHANGE constant returns the correct 
string");
+       } else {
+               DejaGnu.fail("Event::CHANGE constant returns the wrong string");
+       }
+       if (Std.string(flash.events.Event.CLOSE) == "close") {
+               DejaGnu.pass("Event::  constant returns the correct string");
+       } else {
+               DejaGnu.fail("Event::  constant returns the wrong string");
+       }
+       if (Std.string(flash.events.Event.CONNECT) == "connect") {
+               DejaGnu.pass("Event::CONNECT constant returns the correct 
string");
+       } else {
+               DejaGnu.fail("Event::CONNECT constant returns the wrong 
string");
+       }
+       if (Std.string(flash.events.Event.COMPLETE) == "complete") {
+               DejaGnu.pass("Event::COMPLETE constant returns the correct 
string");
+       } else {
+               DejaGnu.fail("Event::COMPLETE constant returns the wrong 
string");
+       }
+       //NOT IN HAXE
+       //if (Std.string(flash.events.Event.COPY) == "copy") {
+       //      DejaGnu.pass("Event::COPY constant returns the correct string");
+       //} else {
+       //      DejaGnu.fail("Event::COPY constant returns the wrong string");
+       //}
+       //NOT IN HAXE
+       //if (Std.string(flash.events.Event.CUT) == "cut") {
+       //      DejaGnu.pass("Event::CUT constant returns the correct string");
+       //} else {
+       //      DejaGnu.fail("Event::CUT constant returns the wrong string");
+       //}
+       if (Std.string(flash.events.Event.DEACTIVATE) == "deactivate") {
+               DejaGnu.pass("Event::DEACTIVATE constant returns the correct 
string");
+       } else {
+               DejaGnu.fail("Event::DEACTIVATE constant returns the wrong 
string");
+       }
+       //NOT IN HAXE
+       //if (Std.string(flash.events.Event.DISPLAYING) == "displaying") {
+       //      DejaGnu.pass("Event::DISPLAYING constant returns the correct 
string");
+       //} else {
+       //      DejaGnu.fail("Event::DISPLAYING constant returns the wrong 
string");
+       //}
+       //if (Std.string(flash.events.Event.ENTER_FRAME) == "enterFrame") {
+       //      DejaGnu.pass("Event::ENTER_FRAME constant returns the correct 
string");
+       //} else {
+       //      DejaGnu.fail("Event::ENTER_FRAME constant returns the wrong 
string");
+       //}
+       //NOT IN HAXE
+       //if (Std.string(flash.events.Event.EXIT_FRAME) == "exitFrame") {
+       //      DejaGnu.pass("Event::EXIT_FRAME constant returns the correct 
string");
+       //} else {
+       //      DejaGnu.fail("Event::EXIT_FRAME constant returns the wrong 
string");
+       //}
+       //NOT IN HAXE
+       //if (Std.string(flash.events.Event.FRAME_CONSTRUCTED) == "exitFrame") {
+       //      DejaGnu.pass("Event::EXIT_FRAME constant returns the correct 
string");
+       //} else {
+       //      DejaGnu.fail("Event::EXIT_FRAME constant returns the wrong 
string");
+       //}
+       if (Std.string(flash.events.Event.FULLSCREEN) == "fullScreen") {
+               DejaGnu.pass("Event::FULLSCREEN constant returns the correct 
string");
+       } else {
+               DejaGnu.fail("Event::FULLSCREEN constant returns the wrong 
string");
+       }
+       if (Std.string(flash.events.Event.ID3) == "id3") {
+               DejaGnu.pass("Event::ID3 constant returns the correct string");
+       } else {
+               DejaGnu.fail("Event::ID3 constant returns the wrong string");
+       }
+       if (Std.string(flash.events.Event.INIT) == "init") {
+               DejaGnu.pass("Event::INIT constant returns the correct string");
+       } else {
+               DejaGnu.fail("Event::INIT constant returns the wrong string");
+       }
+       if (Std.string(flash.events.Event.MOUSE_LEAVE) == "mouseLeave") {
+               DejaGnu.pass("Event::MOUSELEAVE constant returns the correct 
string");
+       } else {
+               DejaGnu.fail("Event::MOUSELEAVE  constant returns the wrong 
string");
+       }
+       if (Std.string(flash.events.Event.OPEN) == "open") {
+               DejaGnu.pass("Event::OPEN constant returns the correct string");
+       } else {
+               DejaGnu.fail("Event::OPEN constant returns the wrong string");
+       }
+       //if (Std.string(flash.events.Event.PASTE) == "paste") {
+       //      DejaGnu.pass("Event::PASTE constant returns the correct 
string");
+       //} else {
+       //      DejaGnu.fail("Event::PASTE constant returns the wrong string");
+       //}
+       if (Std.string(flash.events.Event.REMOVED) == "removed") {
+               DejaGnu.pass("Event::REMOVED constant returns the correct 
string");
+       } else {
+               DejaGnu.fail("Event::REMOVED constant returns the wrong 
string");
+       }
+       if (Std.string(flash.events.Event.REMOVED_FROM_STAGE) == 
"removedFromStage") {
+               DejaGnu.pass("Event::REMOVEDFROMSTAGE constant returns the 
correct string");
+       } else {
+               DejaGnu.fail("Event::REMOVEDFROMSTAGE constant returns the 
wrong string");
+       }
+       if (Std.string(flash.events.Event.RENDER) == "render") {
+               DejaGnu.pass("Event::RENDER constant returns the correct 
string");
+       } else {
+               DejaGnu.fail("Event::RENDER constant returns the wrong string");
+       }
+       if (Std.string(flash.events.Event.RESIZE) == "resize") {
+               DejaGnu.pass("Event::RESIZE  constant returns the correct 
string");
+       } else {
+               DejaGnu.fail("Event::RESIZE  constant returns the wrong 
string");
+       }
+       if (Std.string(flash.events.Event.SCROLL) == "scroll") {
+               DejaGnu.pass("Event::SCROLL  constant returns the correct 
string");
+       } else {
+               DejaGnu.fail("Event::SCROLL  constant returns the wrong 
string");
+       }
+       if (Std.string(flash.events.Event.SELECT) == "select") {
+               DejaGnu.pass("Event::SELECT constant returns the correct 
string");
+       } else {
+               DejaGnu.fail("Event::SELECT constant returns the wrong string");
+       }
+       //NOT IN HAXE
+       //if (Std.string(flash.events.Event.SELECT_ALL) == "selectAll") {
+       //      DejaGnu.pass("Event::SELECTALL constant returns the correct 
string");
+       //} else {
+       //      DejaGnu.fail("Event::SELECTALL constant returns the wrong 
string");
+       //}
+       if (Std.string(flash.events.Event.SOUND_COMPLETE) == "soundComplete") {
+               DejaGnu.pass("Event::SOUNDCOMPLETE  constant returns the 
correct string");
+       } else {
+               DejaGnu.fail("Event::SOUNDCOMPLETE  constant returns the wrong 
string");
+       }
+       if (Std.string(flash.events.Event.TAB_CHILDREN_CHANGE) == 
"tabChildrenChange") {
+               DejaGnu.pass("Event::TABCHILDRENCHANGE constant returns the 
correct string");
+       } else {
+               DejaGnu.fail("Event::TABCHILDRENCHANGE constant returns the 
wrong string");
+       }
+       //NOT IN HAXE
+       //if (Std.string(flash.events.Event.TAB_ENBABLED_CHANGE) == 
"tabEnabledChange") {
+       //      DejaGnu.pass("Event::TABENABLEDCHANGE constant returns the 
correct string");
+       //} else {
+       //      DejaGnu.fail("Event::TABENABLEDCHANGE constant returns the 
wrong string");
+       //}
+       if (Std.string(flash.events.Event.TAB_INDEX_CHANGE) == 
"tabIndexChange") {
+               DejaGnu.pass("Event::TABINDEXCHANGE constant returns the 
correct string");
+       } else {
+               DejaGnu.fail("Event::TABINDEXCHANGE constant returns the wrong 
string");
+       }
+       if (Std.string(flash.events.Event.UNLOAD) == "unload") {
+               DejaGnu.pass("Event::UNLOAD constant returns the correct 
string");
+       } else {
+               DejaGnu.fail("Event::UNLOAD constant returns the wrong string");
+       }
+       #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/FocusEvent_as.hx'
--- a/testsuite/as3/classes.all/events/FocusEvent_as.hx 2009-05-25 02:00:57 
+0000
+++ b/testsuite/as3/classes.all/events/FocusEvent_as.hx 2009-06-11 22:18:59 
+0000
@@ -26,12 +26,10 @@
 #if flash9
 import flash.events.FocusEvent;
 import flash.display.MovieClip;
-#else
-import flash.FocusEvent;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
+import Std;
 
 // import our testing API
 import DejaGnu;
@@ -39,7 +37,12 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class FocusEvent_as {
     static function main() {
-        var x1:FocusEvent = new FocusEvent();
+        #if !flash9
+                       DejaGnu.note("this is not a valid class in as2");
+               #end
+               
+               #if flash9
+               var x1:FocusEvent = new FocusEvent("focusevent");
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -50,22 +53,23 @@
 // Tests to see if all the properties exist. All these do is test for
 // existance of a property, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.direction == null) {
-           DejaGnu.pass("FocusEvent.direction property exists");
-       } else {
-           DejaGnu.fail("FocusEvent.direction property doesn't exist");
-       }
-       if (x1.keyCode == uint) {
+       //not implemented in haxe
+       //if (Std.is(x1.isRelatedObjectInaccessible, Bool)) {
+       //    DejaGnu.pass("FocusEvent.keyCode property exists");
+       //} else {
+       //    DejaGnu.fail("FocusEvent.keyCode property doesn't exist");
+       //}
+       if (Std.is(x1.keyCode, Float)) {
            DejaGnu.pass("FocusEvent.keyCode property exists");
        } else {
            DejaGnu.fail("FocusEvent.keyCode property doesn't exist");
        }
-       if (x1.relatedObject == relatedObject) {
+       if (Std.string(Type.typeof(x1.relatedObject)) == "TNull") {
            DejaGnu.pass("FocusEvent.relatedObject property exists");
        } else {
            DejaGnu.fail("FocusEvent.relatedObject property doesn't exist");
        }
-       if (x1.shiftKey == false) {
+       if (Std.is(x1.shiftKey, Bool)) {
            DejaGnu.pass("FocusEvent.shiftKey property exists");
        } else {
            DejaGnu.fail("FocusEvent.shiftKey property doesn't exist");
@@ -74,222 +78,39 @@
 // Tests to see if all the methods exist. All these do is test for
 // existance of a method, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.FocusEvent == null) {
-           DejaGnu.pass("FocusEvent::FocusEvent() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::FocusEvent() method doesn't exist");
-       }
-       if (x1.clone == Event) {
+       if (Type.typeof(x1.clone) == ValueType.TFunction) {
            DejaGnu.pass("FocusEvent::clone() method exists");
        } else {
            DejaGnu.fail("FocusEvent::clone() method doesn't exist");
        }
-       if (x1.toString == null) {
+       if (Type.typeof(x1.toString) == ValueType.TFunction) {
            DejaGnu.pass("FocusEvent::toString() method exists");
        } else {
            DejaGnu.fail("FocusEvent::toString() method doesn't exist");
        }
-       if (x1.ACTIVATE == null) {
-           DejaGnu.pass("FocusEvent::ACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::ACTIVATE() method doesn't exist");
-       }
-       if (x1.ADDED == null) {
-           DejaGnu.pass("FocusEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::ADDED() method doesn't exist");
-       }
-       if (x1.ADDED == TO) {
-           DejaGnu.pass("FocusEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::ADDED() method doesn't exist");
-       }
-       if (x1.CANCEL == null) {
-           DejaGnu.pass("FocusEvent::CANCEL() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::CANCEL() method doesn't exist");
-       }
-       if (x1.CHANGE == null) {
-           DejaGnu.pass("FocusEvent::CHANGE() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::CHANGE() method doesn't exist");
-       }
-       if (x1.CLOSE == null) {
-           DejaGnu.pass("FocusEvent::CLOSE() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::CLOSE() method doesn't exist");
-       }
-       if (x1.CLOSING == null) {
-           DejaGnu.pass("FocusEvent::CLOSING() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::CLOSING() method doesn't exist");
-       }
-       if (x1.COMPLETE == null) {
-           DejaGnu.pass("FocusEvent::COMPLETE() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::COMPLETE() method doesn't exist");
-       }
-       if (x1.CONNECT == null) {
-           DejaGnu.pass("FocusEvent::CONNECT() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::CONNECT() method doesn't exist");
-       }
-       if (x1.DEACTIVATE == null) {
-           DejaGnu.pass("FocusEvent::DEACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::DEACTIVATE() method doesn't exist");
-       }
-       if (x1.DISPLAYING == null) {
-           DejaGnu.pass("FocusEvent::DISPLAYING() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::DISPLAYING() method doesn't exist");
-       }
-       if (x1.ENTER == FRAME) {
-           DejaGnu.pass("FocusEvent::ENTER() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::ENTER() method doesn't exist");
-       }
-       if (x1.EXITING == null) {
-           DejaGnu.pass("FocusEvent::EXITING() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::EXITING() method doesn't exist");
-       }
-       if (x1.FOCUS == IN) {
-           DejaGnu.pass("FocusEvent::FOCUS() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::FOCUS() method doesn't exist");
-       }
-       if (x1.FOCUS == OUT) {
-           DejaGnu.pass("FocusEvent::FOCUS() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::FOCUS() method doesn't exist");
-       }
-       if (x1.FULLSCREEN == null) {
-           DejaGnu.pass("FocusEvent::FULLSCREEN() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::FULLSCREEN() method doesn't exist");
-       }
-       if (x1.HTML == BOUNDS) {
-           DejaGnu.pass("FocusEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == DOM) {
-           DejaGnu.pass("FocusEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == RENDER) {
-           DejaGnu.pass("FocusEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::HTML() method doesn't exist");
-       }
-       if (x1.ID3 == null) {
-           DejaGnu.pass("FocusEvent::ID3() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::ID3() method doesn't exist");
-       }
-       if (x1.INIT == null) {
-           DejaGnu.pass("FocusEvent::INIT() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::INIT() method doesn't exist");
-       }
-       if (x1.KEY == FOCUS) {
-           DejaGnu.pass("FocusEvent::KEY() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::KEY() method doesn't exist");
-       }
-       if (x1.LOCATION == CHANGE) {
-           DejaGnu.pass("FocusEvent::LOCATION() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::LOCATION() method doesn't exist");
-       }
-       if (x1.MOUSE == FOCUS) {
-           DejaGnu.pass("FocusEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.MOUSE == LEAVE) {
-           DejaGnu.pass("FocusEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.NETWORK == CHANGE) {
-           DejaGnu.pass("FocusEvent::NETWORK() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::NETWORK() method doesn't exist");
-       }
-       if (x1.OPEN == null) {
-           DejaGnu.pass("FocusEvent::OPEN() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::OPEN() method doesn't exist");
-       }
-       if (x1.REMOVED == null) {
-           DejaGnu.pass("FocusEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.REMOVED == FROM) {
-           DejaGnu.pass("FocusEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.RENDER == null) {
-           DejaGnu.pass("FocusEvent::RENDER() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::RENDER() method doesn't exist");
-       }
-       if (x1.RESIZE == null) {
-           DejaGnu.pass("FocusEvent::RESIZE() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::RESIZE() method doesn't exist");
-       }
-       if (x1.SCROLL == null) {
-           DejaGnu.pass("FocusEvent::SCROLL() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::SCROLL() method doesn't exist");
-       }
-       if (x1.SELECT == null) {
-           DejaGnu.pass("FocusEvent::SELECT() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::SELECT() method doesn't exist");
-       }
-       if (x1.SOUND == COMPLETE) {
-           DejaGnu.pass("FocusEvent::SOUND() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::SOUND() method doesn't exist");
-       }
-       if (x1.TAB == CHILDREN) {
-           DejaGnu.pass("FocusEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == ENABLED) {
-           DejaGnu.pass("FocusEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == INDEX) {
-           DejaGnu.pass("FocusEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::TAB() method doesn't exist");
-       }
-       if (x1.UNLOAD == null) {
-           DejaGnu.pass("FocusEvent::UNLOAD() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::UNLOAD() method doesn't exist");
-       }
-       if (x1.USER == IDLE) {
-           DejaGnu.pass("FocusEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::USER() method doesn't exist");
-       }
-       if (x1.USER == PRESENT) {
-           DejaGnu.pass("FocusEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("FocusEvent::USER() method doesn't exist");
-       }
-
+       
+//check constants
+       if (Std.string(flash.events.FocusEvent.FOCUS_IN) == "focusIn") {
+           DejaGnu.pass("FocusEvent.FOCUS_IN property exists");
+       } else {
+           DejaGnu.fail("FocusEvent.FOCUS_IN property doesn't exist");
+       }
+       if (Std.string(flash.events.FocusEvent.FOCUS_OUT) == "focusOut") {
+           DejaGnu.pass("FocusEvent.FOCUS_OUT property exists");
+       } else {
+           DejaGnu.fail("FocusEvent.FOCUS_OUT property doesn't exist");
+       }
+       if (Std.string(flash.events.FocusEvent.KEY_FOCUS_CHANGE) == 
"keyFocusChange") {
+           DejaGnu.pass("FocusEvent.KEY_FOCUS_CHANGE property exists");
+       } else {
+           DejaGnu.fail("FocusEvent.KEY_FOCUS_CHANGE property doesn't exist");
+       }
+       if (Std.string(flash.events.FocusEvent.MOUSE_FOCUS_CHANGE) == 
"mouseFocusChange") {
+           DejaGnu.pass("FocusEvent.FOCUS_IN property exists");
+       } else {
+           DejaGnu.fail("FocusEvent.FOCUS_IN property doesn't exist");
+       }
+       #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/FullScreenEvent_as.hx'
--- a/testsuite/as3/classes.all/events/FullScreenEvent_as.hx    2009-05-25 
02:00:57 +0000
+++ b/testsuite/as3/classes.all/events/FullScreenEvent_as.hx    2009-06-11 
22:18:59 +0000
@@ -26,12 +26,10 @@
 #if flash9
 import flash.events.FullScreenEvent;
 import flash.display.MovieClip;
-#else
-import flash.FullScreenEvent;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
+import Std;
 
 // import our testing API
 import DejaGnu;
@@ -39,7 +37,12 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class FullScreenEvent_as {
     static function main() {
-        var x1:FullScreenEvent = new FullScreenEvent();
+        #if !flash9
+                       DejaGnu.note("this class didn't exist in as2");
+               #end
+               
+               #if flash9
+               var x1:FullScreenEvent = new FullScreenEvent("fullscreenevent");
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -50,7 +53,7 @@
 // Tests to see if all the properties exist. All these do is test for
 // existance of a property, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.fullScreen == false) {
+       if (Std.is(x1.fullScreen, Bool)) {
            DejaGnu.pass("FullScreenEvent.fullScreen property exists");
        } else {
            DejaGnu.fail("FullScreenEvent.fullScreen property doesn't exist");
@@ -59,212 +62,22 @@
 // Tests to see if all the methods exist. All these do is test for
 // existance of a method, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.FullScreenEvent == false) {
-           DejaGnu.pass("FullScreenEvent::FullScreenEvent() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::FullScreenEvent() method doesn't 
exist");
-       }
-       if (x1.clone == Event) {
+       if (Type.typeof(x1.clone) == ValueType.TFunction) {
            DejaGnu.pass("FullScreenEvent::clone() method exists");
        } else {
            DejaGnu.fail("FullScreenEvent::clone() method doesn't exist");
        }
-       if (x1.toString == null) {
+       if (Type.typeof(x1.toString) == ValueType.TFunction) {
            DejaGnu.pass("FullScreenEvent::toString() method exists");
        } else {
            DejaGnu.fail("FullScreenEvent::toString() method doesn't exist");
        }
-       if (x1.ACTIVATE == null) {
-           DejaGnu.pass("FullScreenEvent::ACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::ACTIVATE() method doesn't exist");
-       }
-       if (x1.ACTIVITY == null) {
-           DejaGnu.pass("FullScreenEvent::ACTIVITY() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::ACTIVITY() method doesn't exist");
-       }
-       if (x1.ADDED == null) {
-           DejaGnu.pass("FullScreenEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::ADDED() method doesn't exist");
-       }
-       if (x1.ADDED == TO) {
-           DejaGnu.pass("FullScreenEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::ADDED() method doesn't exist");
-       }
-       if (x1.CANCEL == null) {
-           DejaGnu.pass("FullScreenEvent::CANCEL() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::CANCEL() method doesn't exist");
-       }
-       if (x1.CHANGE == null) {
-           DejaGnu.pass("FullScreenEvent::CHANGE() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::CHANGE() method doesn't exist");
-       }
-       if (x1.CLOSE == null) {
-           DejaGnu.pass("FullScreenEvent::CLOSE() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::CLOSE() method doesn't exist");
-       }
-       if (x1.CLOSING == null) {
-           DejaGnu.pass("FullScreenEvent::CLOSING() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::CLOSING() method doesn't exist");
-       }
-       if (x1.COMPLETE == null) {
-           DejaGnu.pass("FullScreenEvent::COMPLETE() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::COMPLETE() method doesn't exist");
-       }
-       if (x1.CONNECT == null) {
-           DejaGnu.pass("FullScreenEvent::CONNECT() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::CONNECT() method doesn't exist");
-       }
-       if (x1.DEACTIVATE == null) {
-           DejaGnu.pass("FullScreenEvent::DEACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::DEACTIVATE() method doesn't exist");
-       }
-       if (x1.DISPLAYING == null) {
-           DejaGnu.pass("FullScreenEvent::DISPLAYING() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::DISPLAYING() method doesn't exist");
-       }
-       if (x1.ENTER == FRAME) {
-           DejaGnu.pass("FullScreenEvent::ENTER() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::ENTER() method doesn't exist");
-       }
-       if (x1.EXITING == null) {
-           DejaGnu.pass("FullScreenEvent::EXITING() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::EXITING() method doesn't exist");
-       }
-       if (x1.FULL == SCREEN) {
-           DejaGnu.pass("FullScreenEvent::FULL() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::FULL() method doesn't exist");
-       }
-       if (x1.FULLSCREEN == null) {
-           DejaGnu.pass("FullScreenEvent::FULLSCREEN() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::FULLSCREEN() method doesn't exist");
-       }
-       if (x1.HTML == BOUNDS) {
-           DejaGnu.pass("FullScreenEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == DOM) {
-           DejaGnu.pass("FullScreenEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == RENDER) {
-           DejaGnu.pass("FullScreenEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::HTML() method doesn't exist");
-       }
-       if (x1.ID3 == null) {
-           DejaGnu.pass("FullScreenEvent::ID3() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::ID3() method doesn't exist");
-       }
-       if (x1.INIT == null) {
-           DejaGnu.pass("FullScreenEvent::INIT() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::INIT() method doesn't exist");
-       }
-       if (x1.LOCATION == CHANGE) {
-           DejaGnu.pass("FullScreenEvent::LOCATION() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::LOCATION() method doesn't exist");
-       }
-       if (x1.MOUSE == LEAVE) {
-           DejaGnu.pass("FullScreenEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.NETWORK == CHANGE) {
-           DejaGnu.pass("FullScreenEvent::NETWORK() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::NETWORK() method doesn't exist");
-       }
-       if (x1.OPEN == null) {
-           DejaGnu.pass("FullScreenEvent::OPEN() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::OPEN() method doesn't exist");
-       }
-       if (x1.REMOVED == null) {
-           DejaGnu.pass("FullScreenEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.REMOVED == FROM) {
-           DejaGnu.pass("FullScreenEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.RENDER == null) {
-           DejaGnu.pass("FullScreenEvent::RENDER() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::RENDER() method doesn't exist");
-       }
-       if (x1.RESIZE == null) {
-           DejaGnu.pass("FullScreenEvent::RESIZE() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::RESIZE() method doesn't exist");
-       }
-       if (x1.SCROLL == null) {
-           DejaGnu.pass("FullScreenEvent::SCROLL() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::SCROLL() method doesn't exist");
-       }
-       if (x1.SELECT == null) {
-           DejaGnu.pass("FullScreenEvent::SELECT() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::SELECT() method doesn't exist");
-       }
-       if (x1.SOUND == COMPLETE) {
-           DejaGnu.pass("FullScreenEvent::SOUND() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::SOUND() method doesn't exist");
-       }
-       if (x1.TAB == CHILDREN) {
-           DejaGnu.pass("FullScreenEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == ENABLED) {
-           DejaGnu.pass("FullScreenEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == INDEX) {
-           DejaGnu.pass("FullScreenEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::TAB() method doesn't exist");
-       }
-       if (x1.UNLOAD == null) {
-           DejaGnu.pass("FullScreenEvent::UNLOAD() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::UNLOAD() method doesn't exist");
-       }
-       if (x1.USER == IDLE) {
-           DejaGnu.pass("FullScreenEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::USER() method doesn't exist");
-       }
-       if (x1.USER == PRESENT) {
-           DejaGnu.pass("FullScreenEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("FullScreenEvent::USER() method doesn't exist");
-       }
-
+       if (Std.string(flash.events.FullScreenEvent.FULL_SCREEN) == 
"fullScreen") {
+           DejaGnu.pass("FullScreenEvent.FULL_SCREEN property exists");
+       } else {
+           DejaGnu.fail("FullScreenEvent.FULL_SCREEN property doesn't exist");
+       }
+       #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/HTTPStatusEvent_as.hx'
--- a/testsuite/as3/classes.all/events/HTTPStatusEvent_as.hx    2009-05-25 
02:00:57 +0000
+++ b/testsuite/as3/classes.all/events/HTTPStatusEvent_as.hx    2009-06-11 
22:18:59 +0000
@@ -26,12 +26,10 @@
 #if flash9
 import flash.events.HTTPStatusEvent;
 import flash.display.MovieClip;
-#else
-import flash.HTTPStatusEvent;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
+import Std;
 
 // import our testing API
 import DejaGnu;
@@ -39,7 +37,12 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class HTTPStatusEvent_as {
     static function main() {
-        var x1:HTTPStatusEvent = new HTTPStatusEvent();
+        #if !flash9
+                       DejaGnu.note("this class didn't exist in as2");
+               #end
+               
+               #if flash9
+               var x1:HTTPStatusEvent = new HTTPStatusEvent("httpstatusevent");
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -50,17 +53,7 @@
 // Tests to see if all the properties exist. All these do is test for
 // existance of a property, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.responseHeaders == 0) {
-           DejaGnu.pass("HTTPStatusEvent.responseHeaders property exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent.responseHeaders property doesn't 
exist");
-       }
-       if (x1.responseURL == null) {
-           DejaGnu.pass("HTTPStatusEvent.responseURL property exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent.responseURL property doesn't exist");
-       }
-       if (x1.status == 0) {
+       if (Std.is(x1.status, Int)) {
            DejaGnu.pass("HTTPStatusEvent.status property exists");
        } else {
            DejaGnu.fail("HTTPStatusEvent.status property doesn't exist");
@@ -69,212 +62,23 @@
 // Tests to see if all the methods exist. All these do is test for
 // existance of a method, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.HTTPStatusEvent == 0) {
-           DejaGnu.pass("HTTPStatusEvent::HTTPStatusEvent() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::HTTPStatusEvent() method doesn't 
exist");
-       }
-       if (x1.clone == Event) {
+       if (Type.typeof(x1.clone) == ValueType.TFunction) {
            DejaGnu.pass("HTTPStatusEvent::clone() method exists");
        } else {
            DejaGnu.fail("HTTPStatusEvent::clone() method doesn't exist");
        }
-       if (x1.toString == null) {
+       if (Type.typeof(x1.toString) == ValueType.TFunction) {
            DejaGnu.pass("HTTPStatusEvent::toString() method exists");
        } else {
            DejaGnu.fail("HTTPStatusEvent::toString() method doesn't exist");
        }
-       if (x1.ACTIVATE == null) {
-           DejaGnu.pass("HTTPStatusEvent::ACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::ACTIVATE() method doesn't exist");
-       }
-       if (x1.ADDED == null) {
-           DejaGnu.pass("HTTPStatusEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::ADDED() method doesn't exist");
-       }
-       if (x1.ADDED == TO) {
-           DejaGnu.pass("HTTPStatusEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::ADDED() method doesn't exist");
-       }
-       if (x1.CANCEL == null) {
-           DejaGnu.pass("HTTPStatusEvent::CANCEL() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::CANCEL() method doesn't exist");
-       }
-       if (x1.CHANGE == null) {
-           DejaGnu.pass("HTTPStatusEvent::CHANGE() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::CHANGE() method doesn't exist");
-       }
-       if (x1.CLOSE == null) {
-           DejaGnu.pass("HTTPStatusEvent::CLOSE() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::CLOSE() method doesn't exist");
-       }
-       if (x1.CLOSING == null) {
-           DejaGnu.pass("HTTPStatusEvent::CLOSING() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::CLOSING() method doesn't exist");
-       }
-       if (x1.COMPLETE == null) {
-           DejaGnu.pass("HTTPStatusEvent::COMPLETE() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::COMPLETE() method doesn't exist");
-       }
-       if (x1.CONNECT == null) {
-           DejaGnu.pass("HTTPStatusEvent::CONNECT() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::CONNECT() method doesn't exist");
-       }
-       if (x1.DEACTIVATE == null) {
-           DejaGnu.pass("HTTPStatusEvent::DEACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::DEACTIVATE() method doesn't exist");
-       }
-       if (x1.DISPLAYING == null) {
-           DejaGnu.pass("HTTPStatusEvent::DISPLAYING() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::DISPLAYING() method doesn't exist");
-       }
-       if (x1.ENTER == FRAME) {
-           DejaGnu.pass("HTTPStatusEvent::ENTER() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::ENTER() method doesn't exist");
-       }
-       if (x1.EXITING == null) {
-           DejaGnu.pass("HTTPStatusEvent::EXITING() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::EXITING() method doesn't exist");
-       }
-       if (x1.FULLSCREEN == null) {
-           DejaGnu.pass("HTTPStatusEvent::FULLSCREEN() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::FULLSCREEN() method doesn't exist");
-       }
-       if (x1.HTML == BOUNDS) {
-           DejaGnu.pass("HTTPStatusEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == DOM) {
-           DejaGnu.pass("HTTPStatusEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == RENDER) {
-           DejaGnu.pass("HTTPStatusEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTTP == RESPONSE) {
-           DejaGnu.pass("HTTPStatusEvent::HTTP() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::HTTP() method doesn't exist");
-       }
-       if (x1.HTTP == STATUS) {
-           DejaGnu.pass("HTTPStatusEvent::HTTP() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::HTTP() method doesn't exist");
-       }
-       if (x1.ID3 == null) {
-           DejaGnu.pass("HTTPStatusEvent::ID3() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::ID3() method doesn't exist");
-       }
-       if (x1.INIT == null) {
-           DejaGnu.pass("HTTPStatusEvent::INIT() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::INIT() method doesn't exist");
-       }
-       if (x1.LOCATION == CHANGE) {
-           DejaGnu.pass("HTTPStatusEvent::LOCATION() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::LOCATION() method doesn't exist");
-       }
-       if (x1.MOUSE == LEAVE) {
-           DejaGnu.pass("HTTPStatusEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.NETWORK == CHANGE) {
-           DejaGnu.pass("HTTPStatusEvent::NETWORK() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::NETWORK() method doesn't exist");
-       }
-       if (x1.OPEN == null) {
-           DejaGnu.pass("HTTPStatusEvent::OPEN() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::OPEN() method doesn't exist");
-       }
-       if (x1.REMOVED == null) {
-           DejaGnu.pass("HTTPStatusEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.REMOVED == FROM) {
-           DejaGnu.pass("HTTPStatusEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.RENDER == null) {
-           DejaGnu.pass("HTTPStatusEvent::RENDER() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::RENDER() method doesn't exist");
-       }
-       if (x1.RESIZE == null) {
-           DejaGnu.pass("HTTPStatusEvent::RESIZE() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::RESIZE() method doesn't exist");
-       }
-       if (x1.SCROLL == null) {
-           DejaGnu.pass("HTTPStatusEvent::SCROLL() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::SCROLL() method doesn't exist");
-       }
-       if (x1.SELECT == null) {
-           DejaGnu.pass("HTTPStatusEvent::SELECT() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::SELECT() method doesn't exist");
-       }
-       if (x1.SOUND == COMPLETE) {
-           DejaGnu.pass("HTTPStatusEvent::SOUND() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::SOUND() method doesn't exist");
-       }
-       if (x1.TAB == CHILDREN) {
-           DejaGnu.pass("HTTPStatusEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == ENABLED) {
-           DejaGnu.pass("HTTPStatusEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == INDEX) {
-           DejaGnu.pass("HTTPStatusEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::TAB() method doesn't exist");
-       }
-       if (x1.UNLOAD == null) {
-           DejaGnu.pass("HTTPStatusEvent::UNLOAD() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::UNLOAD() method doesn't exist");
-       }
-       if (x1.USER == IDLE) {
-           DejaGnu.pass("HTTPStatusEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::USER() method doesn't exist");
-       }
-       if (x1.USER == PRESENT) {
-           DejaGnu.pass("HTTPStatusEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("HTTPStatusEvent::USER() method doesn't exist");
-       }
-
+       
+       if (Std.string(flash.events.HTTPStatusEvent.HTTP_STATUS) == 
"httpStatus") {
+           DejaGnu.pass("HTTPStatusEvent::HTTPSTATUS constant exists");
+       } else {
+           DejaGnu.fail("HTTPStatusEvent::HTTPSTATUS constant doesn't exist");
+       }
+       #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/IEventDispatcher_as.hx'
--- a/testsuite/as3/classes.all/events/IEventDispatcher_as.hx   2009-05-25 
02:00:57 +0000
+++ b/testsuite/as3/classes.all/events/IEventDispatcher_as.hx   2009-06-11 
22:18:59 +0000
@@ -26,9 +26,6 @@
 #if flash9
 import flash.events.IEventDispatcher;
 import flash.display.MovieClip;
-#else
-import flash.IEventDispatcher;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
@@ -39,19 +36,21 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class IEventDispatcher_as {
     static function main() {
-        var x1:IEventDispatcher = new IEventDispatcher();
-
-        // Make sure we actually get a valid class        
-        if (x1 != null) {
-            DejaGnu.pass("IEventDispatcher class exists");
-        } else {
-            DejaGnu.fail("IEventDispatcher class doesn't exist");
-        }
+        #if !flash9
+                       DejaGnu.note("this class didn't exist in as2");
+               #end
+               
+               #if flash9
 
 // Tests to see if all the methods exist. All these do is test for
 // existance of a method, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-
+       if (Type.typeof(flash.events.IEventDispatcher.addEventListener) == 
ValueType.TFunction) {
+           DejaGnu.pass("FullScreenEvent::clone() method exists");
+       } else {
+           DejaGnu.fail("FullScreenEvent::clone() method doesn't exist");
+       }
+       #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/IMEEvent_as.hx'
--- a/testsuite/as3/classes.all/events/IMEEvent_as.hx   2009-05-25 02:00:57 
+0000
+++ b/testsuite/as3/classes.all/events/IMEEvent_as.hx   2009-06-11 22:18:59 
+0000
@@ -26,12 +26,10 @@
 #if flash9
 import flash.events.IMEEvent;
 import flash.display.MovieClip;
-#else
-import flash.IMEEvent;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
+import Std;
 
 // import our testing API
 import DejaGnu;
@@ -39,7 +37,12 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class IMEEvent_as {
     static function main() {
-        var x1:IMEEvent = new IMEEvent();
+        #if !flash9
+                       DejaGnu.note("this isnt a valid class in AS2");
+               #end
+               
+               #if flash9
+               var x1:IMEEvent = new IMEEvent("imeevent");
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -51,7 +54,18 @@
 // Tests to see if all the methods exist. All these do is test for
 // existance of a method, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
+       if (Type.typeof(x1.clone) == ValueType.TFunction) {
+           DejaGnu.pass("IMEEvent::clone() method exists");
+       } else {
+           DejaGnu.fail("IMEEvent::clone() method doesn't exist");
+       }
+       if (Type.typeof(x1.toString) == ValueType.TFunction) {
+           DejaGnu.pass("IMEEvent::toString() method exists");
+       } else {
+           DejaGnu.fail("IMEEvent::toString() method doesn't exist");
+       }
 
+       #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/IOErrorEvent_as.hx'
--- a/testsuite/as3/classes.all/events/IOErrorEvent_as.hx       2009-05-25 
02:00:57 +0000
+++ b/testsuite/as3/classes.all/events/IOErrorEvent_as.hx       2009-06-11 
22:18:59 +0000
@@ -26,12 +26,11 @@
 #if flash9
 import flash.events.IOErrorEvent;
 import flash.display.MovieClip;
-#else
-import flash.IOErrorEvent;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
+import Std;
+
 
 // import our testing API
 import DejaGnu;
@@ -39,7 +38,12 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class IOErrorEvent_as {
     static function main() {
-        var x1:IOErrorEvent = new IOErrorEvent();
+        #if !flash9
+                       DejaGnu.note("this class didn't exist in as2");
+               #end
+               
+               #if flash9
+               var x1:IOErrorEvent = new IOErrorEvent("ioerrorevent");
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -51,7 +55,17 @@
 // Tests to see if all the methods exist. All these do is test for
 // existance of a method, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-
+       if (Type.typeof(x1.clone) == ValueType.TFunction) {
+           DejaGnu.pass("IOErrorEvent::clone() method exists");
+       } else {
+           DejaGnu.fail("IOErrorEvent::clone() method doesn't exist");
+       }
+       if (Type.typeof(x1.toString) == ValueType.TFunction) {
+           DejaGnu.pass("IOErrorEvent::toString() method exists");
+       } else {
+           DejaGnu.fail("IOErrorEvent::toString() method doesn't exist");
+       }
+       #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/InvokeEvent_as.hx'
--- a/testsuite/as3/classes.all/events/InvokeEvent_as.hx        2009-05-25 
02:00:57 +0000
+++ b/testsuite/as3/classes.all/events/InvokeEvent_as.hx        2009-06-11 
22:18:59 +0000
@@ -26,9 +26,6 @@
 #if flash9
 import flash.events.InvokeEvent;
 import flash.display.MovieClip;
-#else
-import flash.InvokeEvent;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
@@ -39,7 +36,12 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class InvokeEvent_as {
     static function main() {
-        var x1:InvokeEvent = new InvokeEvent();
+        #if !flash9
+                       DejaGnu.note("this class didn't exist in as2");
+               #end
+               
+               #if flash9
+               var x1:InvokeEvent = new InvokeEvent("invokeevent");
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -47,219 +49,21 @@
         } else {
             DejaGnu.fail("InvokeEvent class doesn't exist");
         }
-// Tests to see if all the properties exist. All these do is test for
-// existance of a property, and don't test the functionality at all. This
-// is primarily useful only to test completeness of the API implementation.
-       if (x1.arguments == 0) {
-           DejaGnu.pass("InvokeEvent.arguments property exists");
-       } else {
-           DejaGnu.fail("InvokeEvent.arguments property doesn't exist");
-       }
-       if (x1.currentDirectory == File) {
-           DejaGnu.pass("InvokeEvent.currentDirectory property exists");
-       } else {
-           DejaGnu.fail("InvokeEvent.currentDirectory property doesn't exist");
-       }
 
 // Tests to see if all the methods exist. All these do is test for
 // existance of a method, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.InvokeEvent == 0) {
-           DejaGnu.pass("InvokeEvent::InvokeEvent() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::InvokeEvent() method doesn't exist");
-       }
-       if (x1.clone == Event) {
-           DejaGnu.pass("InvokeEvent::clone() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::clone() method doesn't exist");
-       }
-       if (x1.ACTIVATE == null) {
-           DejaGnu.pass("InvokeEvent::ACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::ACTIVATE() method doesn't exist");
-       }
-       if (x1.ADDED == null) {
-           DejaGnu.pass("InvokeEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::ADDED() method doesn't exist");
-       }
-       if (x1.ADDED == TO) {
-           DejaGnu.pass("InvokeEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::ADDED() method doesn't exist");
-       }
-       if (x1.CANCEL == null) {
-           DejaGnu.pass("InvokeEvent::CANCEL() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::CANCEL() method doesn't exist");
-       }
-       if (x1.CHANGE == null) {
-           DejaGnu.pass("InvokeEvent::CHANGE() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::CHANGE() method doesn't exist");
-       }
-       if (x1.CLOSE == null) {
-           DejaGnu.pass("InvokeEvent::CLOSE() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::CLOSE() method doesn't exist");
-       }
-       if (x1.CLOSING == null) {
-           DejaGnu.pass("InvokeEvent::CLOSING() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::CLOSING() method doesn't exist");
-       }
-       if (x1.COMPLETE == null) {
-           DejaGnu.pass("InvokeEvent::COMPLETE() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::COMPLETE() method doesn't exist");
-       }
-       if (x1.CONNECT == null) {
-           DejaGnu.pass("InvokeEvent::CONNECT() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::CONNECT() method doesn't exist");
-       }
-       if (x1.DEACTIVATE == null) {
-           DejaGnu.pass("InvokeEvent::DEACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::DEACTIVATE() method doesn't exist");
-       }
-       if (x1.DISPLAYING == null) {
-           DejaGnu.pass("InvokeEvent::DISPLAYING() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::DISPLAYING() method doesn't exist");
-       }
-       if (x1.ENTER == FRAME) {
-           DejaGnu.pass("InvokeEvent::ENTER() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::ENTER() method doesn't exist");
-       }
-       if (x1.EXITING == null) {
-           DejaGnu.pass("InvokeEvent::EXITING() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::EXITING() method doesn't exist");
-       }
-       if (x1.FULLSCREEN == null) {
-           DejaGnu.pass("InvokeEvent::FULLSCREEN() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::FULLSCREEN() method doesn't exist");
-       }
-       if (x1.HTML == BOUNDS) {
-           DejaGnu.pass("InvokeEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == DOM) {
-           DejaGnu.pass("InvokeEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == RENDER) {
-           DejaGnu.pass("InvokeEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::HTML() method doesn't exist");
-       }
-       if (x1.ID3 == null) {
-           DejaGnu.pass("InvokeEvent::ID3() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::ID3() method doesn't exist");
-       }
-       if (x1.INIT == null) {
-           DejaGnu.pass("InvokeEvent::INIT() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::INIT() method doesn't exist");
-       }
-       if (x1.INVOKE == null) {
-           DejaGnu.pass("InvokeEvent::INVOKE() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::INVOKE() method doesn't exist");
-       }
-       if (x1.LOCATION == CHANGE) {
-           DejaGnu.pass("InvokeEvent::LOCATION() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::LOCATION() method doesn't exist");
-       }
-       if (x1.MOUSE == LEAVE) {
-           DejaGnu.pass("InvokeEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.NETWORK == CHANGE) {
-           DejaGnu.pass("InvokeEvent::NETWORK() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::NETWORK() method doesn't exist");
-       }
-       if (x1.OPEN == null) {
-           DejaGnu.pass("InvokeEvent::OPEN() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::OPEN() method doesn't exist");
-       }
-       if (x1.REMOVED == null) {
-           DejaGnu.pass("InvokeEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.REMOVED == FROM) {
-           DejaGnu.pass("InvokeEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.RENDER == null) {
-           DejaGnu.pass("InvokeEvent::RENDER() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::RENDER() method doesn't exist");
-       }
-       if (x1.RESIZE == null) {
-           DejaGnu.pass("InvokeEvent::RESIZE() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::RESIZE() method doesn't exist");
-       }
-       if (x1.SCROLL == null) {
-           DejaGnu.pass("InvokeEvent::SCROLL() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::SCROLL() method doesn't exist");
-       }
-       if (x1.SELECT == null) {
-           DejaGnu.pass("InvokeEvent::SELECT() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::SELECT() method doesn't exist");
-       }
-       if (x1.SOUND == COMPLETE) {
-           DejaGnu.pass("InvokeEvent::SOUND() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::SOUND() method doesn't exist");
-       }
-       if (x1.TAB == CHILDREN) {
-           DejaGnu.pass("InvokeEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == ENABLED) {
-           DejaGnu.pass("InvokeEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == INDEX) {
-           DejaGnu.pass("InvokeEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::TAB() method doesn't exist");
-       }
-       if (x1.UNLOAD == null) {
-           DejaGnu.pass("InvokeEvent::UNLOAD() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::UNLOAD() method doesn't exist");
-       }
-       if (x1.USER == IDLE) {
-           DejaGnu.pass("InvokeEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::USER() method doesn't exist");
-       }
-       if (x1.USER == PRESENT) {
-           DejaGnu.pass("InvokeEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("InvokeEvent::USER() method doesn't exist");
-       }
-
+       if (Type.typeof(x1.toString) == ValueType.TFunction) {
+           DejaGnu.pass("InvokeEvent::toString() method exists");
+       } else {
+           DejaGnu.fail("InvokeEvent::toString() method doesn't exist");
+       }
+       if (Std.string(flash.events.InvokeEvent.INVOKE) == "invoke") {
+           DejaGnu.pass("InvokeEvent.INVOKE property exists");
+       } else {
+           DejaGnu.fail("InvokeEvent.INVOKE property doesn't exist");
+       }
+       #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/KeyboardEvent_as.hx'
--- a/testsuite/as3/classes.all/events/KeyboardEvent_as.hx      2009-05-25 
02:00:57 +0000
+++ b/testsuite/as3/classes.all/events/KeyboardEvent_as.hx      2009-06-11 
22:18:59 +0000
@@ -26,12 +26,10 @@
 #if flash9
 import flash.events.KeyboardEvent;
 import flash.display.MovieClip;
-#else
-import flash.KeyboardEvent;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
+import Std;
 
 // import our testing API
 import DejaGnu;
@@ -39,7 +37,12 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class KeyboardEvent_as {
     static function main() {
-        var x1:KeyboardEvent = new KeyboardEvent();
+        #if !flash9
+                       DejaGnu.note("this class didn't exist in as2");
+               #end
+               
+               #if flash9
+               var x1:KeyboardEvent = new KeyboardEvent("keyboardevent");
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -50,42 +53,32 @@
 // Tests to see if all the properties exist. All these do is test for
 // existance of a property, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.altKey == false) {
+       if (Std.is(x1.altKey, Bool)) {
            DejaGnu.pass("KeyboardEvent.altKey property exists");
        } else {
            DejaGnu.fail("KeyboardEvent.altKey property doesn't exist");
        }
-       if (x1.charCode == uint) {
+       if (Std.is(x1.charCode, Float)) {
            DejaGnu.pass("KeyboardEvent.charCode property exists");
        } else {
            DejaGnu.fail("KeyboardEvent.charCode property doesn't exist");
        }
-       if (x1.commandKey == false) {
-           DejaGnu.pass("KeyboardEvent.commandKey property exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent.commandKey property doesn't exist");
-       }
-       if (x1.controlKey == false) {
-           DejaGnu.pass("KeyboardEvent.controlKey property exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent.controlKey property doesn't exist");
-       }
-       if (x1.ctrlKey == false) {
+       if (Std.is(x1.ctrlKey, Bool)) {
            DejaGnu.pass("KeyboardEvent.ctrlKey property exists");
        } else {
            DejaGnu.fail("KeyboardEvent.ctrlKey property doesn't exist");
        }
-       if (x1.keyCode == uint) {
+       if (Std.is(x1.keyCode, Float)) {
            DejaGnu.pass("KeyboardEvent.keyCode property exists");
        } else {
            DejaGnu.fail("KeyboardEvent.keyCode property doesn't exist");
        }
-       if (x1.keyLocation == uint) {
+       if (Std.is(x1.keyLocation, Float)) {
            DejaGnu.pass("KeyboardEvent.keyLocation property exists");
        } else {
            DejaGnu.fail("KeyboardEvent.keyLocation property doesn't exist");
        }
-       if (x1.shiftKey == false) {
+       if (Std.is(x1.shiftKey, Bool)) {
            DejaGnu.pass("KeyboardEvent.shiftKey property exists");
        } else {
            DejaGnu.fail("KeyboardEvent.shiftKey property doesn't exist");
@@ -94,217 +87,32 @@
 // Tests to see if all the methods exist. All these do is test for
 // existance of a method, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.KeyboardEvent == false) {
-           DejaGnu.pass("KeyboardEvent::KeyboardEvent() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::KeyboardEvent() method doesn't exist");
-       }
-       if (x1.clone == Event) {
+       if (Type.typeof(x1.clone) == ValueType.TFunction) {
            DejaGnu.pass("KeyboardEvent::clone() method exists");
        } else {
            DejaGnu.fail("KeyboardEvent::clone() method doesn't exist");
        }
-       if (x1.toString == null) {
+       if (Type.typeof(x1.toString) == ValueType.TFunction) {
            DejaGnu.pass("KeyboardEvent::toString() method exists");
        } else {
            DejaGnu.fail("KeyboardEvent::toString() method doesn't exist");
        }
-       if (x1.updateAfterEvent == null) {
+       if (Type.typeof(x1.updateAfterEvent) == ValueType.TFunction) {
            DejaGnu.pass("KeyboardEvent::updateAfterEvent() method exists");
        } else {
            DejaGnu.fail("KeyboardEvent::updateAfterEvent() method doesn't 
exist");
        }
-       if (x1.ACTIVATE == null) {
-           DejaGnu.pass("KeyboardEvent::ACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::ACTIVATE() method doesn't exist");
-       }
-       if (x1.ADDED == null) {
-           DejaGnu.pass("KeyboardEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::ADDED() method doesn't exist");
-       }
-       if (x1.ADDED == TO) {
-           DejaGnu.pass("KeyboardEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::ADDED() method doesn't exist");
-       }
-       if (x1.CANCEL == null) {
-           DejaGnu.pass("KeyboardEvent::CANCEL() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::CANCEL() method doesn't exist");
-       }
-       if (x1.CHANGE == null) {
-           DejaGnu.pass("KeyboardEvent::CHANGE() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::CHANGE() method doesn't exist");
-       }
-       if (x1.CLOSE == null) {
-           DejaGnu.pass("KeyboardEvent::CLOSE() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::CLOSE() method doesn't exist");
-       }
-       if (x1.CLOSING == null) {
-           DejaGnu.pass("KeyboardEvent::CLOSING() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::CLOSING() method doesn't exist");
-       }
-       if (x1.COMPLETE == null) {
-           DejaGnu.pass("KeyboardEvent::COMPLETE() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::COMPLETE() method doesn't exist");
-       }
-       if (x1.CONNECT == null) {
-           DejaGnu.pass("KeyboardEvent::CONNECT() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::CONNECT() method doesn't exist");
-       }
-       if (x1.DEACTIVATE == null) {
-           DejaGnu.pass("KeyboardEvent::DEACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::DEACTIVATE() method doesn't exist");
-       }
-       if (x1.DISPLAYING == null) {
-           DejaGnu.pass("KeyboardEvent::DISPLAYING() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::DISPLAYING() method doesn't exist");
-       }
-       if (x1.ENTER == FRAME) {
-           DejaGnu.pass("KeyboardEvent::ENTER() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::ENTER() method doesn't exist");
-       }
-       if (x1.EXITING == null) {
-           DejaGnu.pass("KeyboardEvent::EXITING() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::EXITING() method doesn't exist");
-       }
-       if (x1.FULLSCREEN == null) {
-           DejaGnu.pass("KeyboardEvent::FULLSCREEN() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::FULLSCREEN() method doesn't exist");
-       }
-       if (x1.HTML == BOUNDS) {
-           DejaGnu.pass("KeyboardEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == DOM) {
-           DejaGnu.pass("KeyboardEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == RENDER) {
-           DejaGnu.pass("KeyboardEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::HTML() method doesn't exist");
-       }
-       if (x1.ID3 == null) {
-           DejaGnu.pass("KeyboardEvent::ID3() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::ID3() method doesn't exist");
-       }
-       if (x1.INIT == null) {
-           DejaGnu.pass("KeyboardEvent::INIT() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::INIT() method doesn't exist");
-       }
-       if (x1.KEY == DOWN) {
-           DejaGnu.pass("KeyboardEvent::KEY() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::KEY() method doesn't exist");
-       }
-       if (x1.KEY == UP) {
-           DejaGnu.pass("KeyboardEvent::KEY() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::KEY() method doesn't exist");
-       }
-       if (x1.LOCATION == CHANGE) {
-           DejaGnu.pass("KeyboardEvent::LOCATION() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::LOCATION() method doesn't exist");
-       }
-       if (x1.MOUSE == LEAVE) {
-           DejaGnu.pass("KeyboardEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.NETWORK == CHANGE) {
-           DejaGnu.pass("KeyboardEvent::NETWORK() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::NETWORK() method doesn't exist");
-       }
-       if (x1.OPEN == null) {
-           DejaGnu.pass("KeyboardEvent::OPEN() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::OPEN() method doesn't exist");
-       }
-       if (x1.REMOVED == null) {
-           DejaGnu.pass("KeyboardEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.REMOVED == FROM) {
-           DejaGnu.pass("KeyboardEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.RENDER == null) {
-           DejaGnu.pass("KeyboardEvent::RENDER() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::RENDER() method doesn't exist");
-       }
-       if (x1.RESIZE == null) {
-           DejaGnu.pass("KeyboardEvent::RESIZE() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::RESIZE() method doesn't exist");
-       }
-       if (x1.SCROLL == null) {
-           DejaGnu.pass("KeyboardEvent::SCROLL() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::SCROLL() method doesn't exist");
-       }
-       if (x1.SELECT == null) {
-           DejaGnu.pass("KeyboardEvent::SELECT() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::SELECT() method doesn't exist");
-       }
-       if (x1.SOUND == COMPLETE) {
-           DejaGnu.pass("KeyboardEvent::SOUND() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::SOUND() method doesn't exist");
-       }
-       if (x1.TAB == CHILDREN) {
-           DejaGnu.pass("KeyboardEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == ENABLED) {
-           DejaGnu.pass("KeyboardEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == INDEX) {
-           DejaGnu.pass("KeyboardEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::TAB() method doesn't exist");
-       }
-       if (x1.UNLOAD == null) {
-           DejaGnu.pass("KeyboardEvent::UNLOAD() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::UNLOAD() method doesn't exist");
-       }
-       if (x1.USER == IDLE) {
-           DejaGnu.pass("KeyboardEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::USER() method doesn't exist");
-       }
-       if (x1.USER == PRESENT) {
-           DejaGnu.pass("KeyboardEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("KeyboardEvent::USER() method doesn't exist");
-       }
-
+       if (Std.string(flash.events.KeyboardEvent.KEY_DOWN) == "keyDown") {
+           DejaGnu.pass("KeyboardEvent.KEY_DOWN property exists");
+       } else {
+           DejaGnu.fail("KeyboardEvent.KEY_DOWN property doesn't exist");
+       }
+       if (Std.string(flash.events.KeyboardEvent.KEY_UP) == "keyUp") {
+           DejaGnu.pass("KeyboardEvent.KEY_UP property exists");
+       } else {
+           DejaGnu.fail("KeyboardEvent.KEY_UP property doesn't exist");
+       }
+       #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/MouseEvent_as.hx'
--- a/testsuite/as3/classes.all/events/MouseEvent_as.hx 2009-05-25 02:00:57 
+0000
+++ b/testsuite/as3/classes.all/events/MouseEvent_as.hx 2009-06-11 22:18:59 
+0000
@@ -26,12 +26,10 @@
 #if flash9
 import flash.events.MouseEvent;
 import flash.display.MovieClip;
-#else
-import flash.MouseEvent;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
+import Std;
 
 // import our testing API
 import DejaGnu;
@@ -39,7 +37,12 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class MouseEvent_as {
     static function main() {
-        var x1:MouseEvent = new MouseEvent();
+        #if !flash9
+                       DejaGnu.note("this class didn't exist in as2");
+               #end
+               
+               #if flash9
+        var x1:MouseEvent = new MouseEvent("mouseevent");
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -50,361 +53,74 @@
 // Tests to see if all the properties exist. All these do is test for
 // existance of a property, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.altKey == false) {
+       if (Std.is(x1.altKey, Bool)) {
            DejaGnu.pass("MouseEvent.altKey property exists");
        } else {
            DejaGnu.fail("MouseEvent.altKey property doesn't exist");
        }
-       if (x1.buttonDown == false) {
+       if (Std.is(x1.buttonDown, Bool)) {
            DejaGnu.pass("MouseEvent.buttonDown property exists");
        } else {
            DejaGnu.fail("MouseEvent.buttonDown property doesn't exist");
        }
-       if (x1.clickCount == 0) {
-           DejaGnu.pass("MouseEvent.clickCount property exists");
-       } else {
-           DejaGnu.fail("MouseEvent.clickCount property doesn't exist");
-       }
-       if (x1.commandKey == false) {
-           DejaGnu.pass("MouseEvent.commandKey property exists");
-       } else {
-           DejaGnu.fail("MouseEvent.commandKey property doesn't exist");
-       }
-       if (x1.controlKey == false) {
-           DejaGnu.pass("MouseEvent.controlKey property exists");
-       } else {
-           DejaGnu.fail("MouseEvent.controlKey property doesn't exist");
-       }
-       if (x1.ctrlKey == false) {
+       if (Std.is(x1.ctrlKey, Bool)) {
            DejaGnu.pass("MouseEvent.ctrlKey property exists");
        } else {
            DejaGnu.fail("MouseEvent.ctrlKey property doesn't exist");
        }
-       if (x1.delta == 0) {
+       if (Std.is(x1.delta, Int)) {
            DejaGnu.pass("MouseEvent.delta property exists");
        } else {
            DejaGnu.fail("MouseEvent.delta property doesn't exist");
        }
-       if (x1.localX == 0) {
+       if (Std.is(x1.localX, Float)) {
            DejaGnu.pass("MouseEvent.localX property exists");
        } else {
            DejaGnu.fail("MouseEvent.localX property doesn't exist");
        }
-       if (x1.localY == 0) {
+       if (Std.is(x1.localY, Float)) {
            DejaGnu.pass("MouseEvent.localY property exists");
        } else {
            DejaGnu.fail("MouseEvent.localY property doesn't exist");
        }
-       if (x1.relatedObject == relatedObject) {
+       if (Std.string(Type.typeof(x1.relatedObject)) == "TNull") {
            DejaGnu.pass("MouseEvent.relatedObject property exists");
        } else {
            DejaGnu.fail("MouseEvent.relatedObject property doesn't exist");
        }
-       if (x1.shiftKey == false) {
+       if (Std.is(x1.shiftKey, Bool)) {
            DejaGnu.pass("MouseEvent.shiftKey property exists");
        } else {
            DejaGnu.fail("MouseEvent.shiftKey property doesn't exist");
        }
-       if (x1.stageX == 0) {
+       if (Std.is(x1.stageX, Float)) {
            DejaGnu.pass("MouseEvent.stageX property exists");
        } else {
            DejaGnu.fail("MouseEvent.stageX property doesn't exist");
        }
-       if (x1.stageY == 0) {
+       if (Std.is(x1.stageY, Float)) {
            DejaGnu.pass("MouseEvent.stageY property exists");
        } else {
            DejaGnu.fail("MouseEvent.stageY property doesn't exist");
        }
-
-// Tests to see if all the methods exist. All these do is test for
-// existance of a method, and don't test the functionality at all. This
-// is primarily useful only to test completeness of the API implementation.
-       if (x1.MouseEvent == 0) {
-           DejaGnu.pass("MouseEvent::MouseEvent() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::MouseEvent() method doesn't exist");
-       }
-       if (x1.clone == Event) {
+       
+       //check methods
+       if (Type.typeof(x1.clone) == ValueType.TFunction) {
            DejaGnu.pass("MouseEvent::clone() method exists");
        } else {
            DejaGnu.fail("MouseEvent::clone() method doesn't exist");
        }
-       if (x1.toString == null) {
+       if (Type.typeof(x1.toString) == ValueType.TFunction) {
            DejaGnu.pass("MouseEvent::toString() method exists");
        } else {
            DejaGnu.fail("MouseEvent::toString() method doesn't exist");
        }
-       if (x1.updateAfterEvent == null) {
+       if (Type.typeof(x1.updateAfterEvent) == ValueType.TFunction) {
            DejaGnu.pass("MouseEvent::updateAfterEvent() method exists");
        } else {
            DejaGnu.fail("MouseEvent::updateAfterEvent() method doesn't exist");
        }
-       if (x1.ACTIVATE == null) {
-           DejaGnu.pass("MouseEvent::ACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::ACTIVATE() method doesn't exist");
-       }
-       if (x1.ADDED == null) {
-           DejaGnu.pass("MouseEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::ADDED() method doesn't exist");
-       }
-       if (x1.ADDED == TO) {
-           DejaGnu.pass("MouseEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::ADDED() method doesn't exist");
-       }
-       if (x1.CANCEL == null) {
-           DejaGnu.pass("MouseEvent::CANCEL() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::CANCEL() method doesn't exist");
-       }
-       if (x1.CHANGE == null) {
-           DejaGnu.pass("MouseEvent::CHANGE() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::CHANGE() method doesn't exist");
-       }
-       if (x1.CLICK == null) {
-           DejaGnu.pass("MouseEvent::CLICK() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::CLICK() method doesn't exist");
-       }
-       if (x1.CLOSE == null) {
-           DejaGnu.pass("MouseEvent::CLOSE() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::CLOSE() method doesn't exist");
-       }
-       if (x1.CLOSING == null) {
-           DejaGnu.pass("MouseEvent::CLOSING() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::CLOSING() method doesn't exist");
-       }
-       if (x1.COMPLETE == null) {
-           DejaGnu.pass("MouseEvent::COMPLETE() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::COMPLETE() method doesn't exist");
-       }
-       if (x1.CONNECT == null) {
-           DejaGnu.pass("MouseEvent::CONNECT() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::CONNECT() method doesn't exist");
-       }
-       if (x1.CONTEXT == MENU) {
-           DejaGnu.pass("MouseEvent::CONTEXT() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::CONTEXT() method doesn't exist");
-       }
-       if (x1.DEACTIVATE == null) {
-           DejaGnu.pass("MouseEvent::DEACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::DEACTIVATE() method doesn't exist");
-       }
-       if (x1.DISPLAYING == null) {
-           DejaGnu.pass("MouseEvent::DISPLAYING() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::DISPLAYING() method doesn't exist");
-       }
-       if (x1.DOUBLE == CLICK) {
-           DejaGnu.pass("MouseEvent::DOUBLE() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::DOUBLE() method doesn't exist");
-       }
-       if (x1.ENTER == FRAME) {
-           DejaGnu.pass("MouseEvent::ENTER() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::ENTER() method doesn't exist");
-       }
-       if (x1.EXITING == null) {
-           DejaGnu.pass("MouseEvent::EXITING() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::EXITING() method doesn't exist");
-       }
-       if (x1.FULLSCREEN == null) {
-           DejaGnu.pass("MouseEvent::FULLSCREEN() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::FULLSCREEN() method doesn't exist");
-       }
-       if (x1.HTML == BOUNDS) {
-           DejaGnu.pass("MouseEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == DOM) {
-           DejaGnu.pass("MouseEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == RENDER) {
-           DejaGnu.pass("MouseEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::HTML() method doesn't exist");
-       }
-       if (x1.ID3 == null) {
-           DejaGnu.pass("MouseEvent::ID3() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::ID3() method doesn't exist");
-       }
-       if (x1.INIT == null) {
-           DejaGnu.pass("MouseEvent::INIT() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::INIT() method doesn't exist");
-       }
-       if (x1.LOCATION == CHANGE) {
-           DejaGnu.pass("MouseEvent::LOCATION() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::LOCATION() method doesn't exist");
-       }
-       if (x1.MIDDLE == CLICK) {
-           DejaGnu.pass("MouseEvent::MIDDLE() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::MIDDLE() method doesn't exist");
-       }
-       if (x1.MIDDLE == MOUSE) {
-           DejaGnu.pass("MouseEvent::MIDDLE() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::MIDDLE() method doesn't exist");
-       }
-       if (x1.MIDDLE == MOUSE) {
-           DejaGnu.pass("MouseEvent::MIDDLE() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::MIDDLE() method doesn't exist");
-       }
-       if (x1.MOUSE == DOWN) {
-           DejaGnu.pass("MouseEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.MOUSE == LEAVE) {
-           DejaGnu.pass("MouseEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.MOUSE == MOVE) {
-           DejaGnu.pass("MouseEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.MOUSE == OUT) {
-           DejaGnu.pass("MouseEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.MOUSE == OVER) {
-           DejaGnu.pass("MouseEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.MOUSE == UP) {
-           DejaGnu.pass("MouseEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.MOUSE == WHEEL) {
-           DejaGnu.pass("MouseEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.NETWORK == CHANGE) {
-           DejaGnu.pass("MouseEvent::NETWORK() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::NETWORK() method doesn't exist");
-       }
-       if (x1.OPEN == null) {
-           DejaGnu.pass("MouseEvent::OPEN() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::OPEN() method doesn't exist");
-       }
-       if (x1.REMOVED == null) {
-           DejaGnu.pass("MouseEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.REMOVED == FROM) {
-           DejaGnu.pass("MouseEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.RENDER == null) {
-           DejaGnu.pass("MouseEvent::RENDER() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::RENDER() method doesn't exist");
-       }
-       if (x1.RESIZE == null) {
-           DejaGnu.pass("MouseEvent::RESIZE() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::RESIZE() method doesn't exist");
-       }
-       if (x1.RIGHT == CLICK) {
-           DejaGnu.pass("MouseEvent::RIGHT() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::RIGHT() method doesn't exist");
-       }
-       if (x1.RIGHT == MOUSE) {
-           DejaGnu.pass("MouseEvent::RIGHT() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::RIGHT() method doesn't exist");
-       }
-       if (x1.RIGHT == MOUSE) {
-           DejaGnu.pass("MouseEvent::RIGHT() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::RIGHT() method doesn't exist");
-       }
-       if (x1.ROLL == OUT) {
-           DejaGnu.pass("MouseEvent::ROLL() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::ROLL() method doesn't exist");
-       }
-       if (x1.ROLL == OVER) {
-           DejaGnu.pass("MouseEvent::ROLL() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::ROLL() method doesn't exist");
-       }
-       if (x1.SCROLL == null) {
-           DejaGnu.pass("MouseEvent::SCROLL() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::SCROLL() method doesn't exist");
-       }
-       if (x1.SELECT == null) {
-           DejaGnu.pass("MouseEvent::SELECT() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::SELECT() method doesn't exist");
-       }
-       if (x1.SOUND == COMPLETE) {
-           DejaGnu.pass("MouseEvent::SOUND() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::SOUND() method doesn't exist");
-       }
-       if (x1.TAB == CHILDREN) {
-           DejaGnu.pass("MouseEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == ENABLED) {
-           DejaGnu.pass("MouseEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == INDEX) {
-           DejaGnu.pass("MouseEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::TAB() method doesn't exist");
-       }
-       if (x1.UNLOAD == null) {
-           DejaGnu.pass("MouseEvent::UNLOAD() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::UNLOAD() method doesn't exist");
-       }
-       if (x1.USER == IDLE) {
-           DejaGnu.pass("MouseEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::USER() method doesn't exist");
-       }
-       if (x1.USER == PRESENT) {
-           DejaGnu.pass("MouseEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("MouseEvent::USER() method doesn't exist");
-       }
-
+       #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/NetStatusEvent_as.hx'
--- a/testsuite/as3/classes.all/events/NetStatusEvent_as.hx     2009-05-25 
02:00:57 +0000
+++ b/testsuite/as3/classes.all/events/NetStatusEvent_as.hx     2009-06-11 
22:18:59 +0000
@@ -26,12 +26,10 @@
 #if flash9
 import flash.events.NetStatusEvent;
 import flash.display.MovieClip;
-#else
-import flash.NetStatusEvent;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
+import Std;
 
 // import our testing API
 import DejaGnu;
@@ -39,7 +37,12 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class NetStatusEvent_as {
     static function main() {
-        var x1:NetStatusEvent = new NetStatusEvent();
+        #if !flash9
+                       DejaGnu.note("this class didn't exist in as2");
+               #end
+               
+               #if flash9
+               var x1:NetStatusEvent = new NetStatusEvent("netstatusevent");
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -50,7 +53,7 @@
 // Tests to see if all the properties exist. All these do is test for
 // existance of a property, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.info == Object) {
+       if (Type.typeof(x1.info) == ValueType.TObject) {
            DejaGnu.pass("NetStatusEvent.info property exists");
        } else {
            DejaGnu.fail("NetStatusEvent.info property doesn't exist");
@@ -59,207 +62,22 @@
 // Tests to see if all the methods exist. All these do is test for
 // existance of a method, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.NetStatusEvent == Object) {
-           DejaGnu.pass("NetStatusEvent::NetStatusEvent() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::NetStatusEvent() method doesn't 
exist");
-       }
-       if (x1.clone == Event) {
+       if (Type.typeof(x1.clone) == ValueType.TFunction)) {
            DejaGnu.pass("NetStatusEvent::clone() method exists");
        } else {
            DejaGnu.fail("NetStatusEvent::clone() method doesn't exist");
        }
-       if (x1.toString == null) {
+       if (Type.typeof(x1.toString) == ValueType.TFunction) {
            DejaGnu.pass("NetStatusEvent::toString() method exists");
        } else {
            DejaGnu.fail("NetStatusEvent::toString() method doesn't exist");
        }
-       if (x1.ACTIVATE == null) {
-           DejaGnu.pass("NetStatusEvent::ACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::ACTIVATE() method doesn't exist");
-       }
-       if (x1.ADDED == null) {
-           DejaGnu.pass("NetStatusEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::ADDED() method doesn't exist");
-       }
-       if (x1.ADDED == TO) {
-           DejaGnu.pass("NetStatusEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::ADDED() method doesn't exist");
-       }
-       if (x1.CANCEL == null) {
-           DejaGnu.pass("NetStatusEvent::CANCEL() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::CANCEL() method doesn't exist");
-       }
-       if (x1.CHANGE == null) {
-           DejaGnu.pass("NetStatusEvent::CHANGE() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::CHANGE() method doesn't exist");
-       }
-       if (x1.CLOSE == null) {
-           DejaGnu.pass("NetStatusEvent::CLOSE() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::CLOSE() method doesn't exist");
-       }
-       if (x1.CLOSING == null) {
-           DejaGnu.pass("NetStatusEvent::CLOSING() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::CLOSING() method doesn't exist");
-       }
-       if (x1.COMPLETE == null) {
-           DejaGnu.pass("NetStatusEvent::COMPLETE() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::COMPLETE() method doesn't exist");
-       }
-       if (x1.CONNECT == null) {
-           DejaGnu.pass("NetStatusEvent::CONNECT() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::CONNECT() method doesn't exist");
-       }
-       if (x1.DEACTIVATE == null) {
-           DejaGnu.pass("NetStatusEvent::DEACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::DEACTIVATE() method doesn't exist");
-       }
-       if (x1.DISPLAYING == null) {
-           DejaGnu.pass("NetStatusEvent::DISPLAYING() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::DISPLAYING() method doesn't exist");
-       }
-       if (x1.ENTER == FRAME) {
-           DejaGnu.pass("NetStatusEvent::ENTER() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::ENTER() method doesn't exist");
-       }
-       if (x1.EXITING == null) {
-           DejaGnu.pass("NetStatusEvent::EXITING() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::EXITING() method doesn't exist");
-       }
-       if (x1.FULLSCREEN == null) {
-           DejaGnu.pass("NetStatusEvent::FULLSCREEN() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::FULLSCREEN() method doesn't exist");
-       }
-       if (x1.HTML == BOUNDS) {
-           DejaGnu.pass("NetStatusEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == DOM) {
-           DejaGnu.pass("NetStatusEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == RENDER) {
-           DejaGnu.pass("NetStatusEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::HTML() method doesn't exist");
-       }
-       if (x1.ID3 == null) {
-           DejaGnu.pass("NetStatusEvent::ID3() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::ID3() method doesn't exist");
-       }
-       if (x1.INIT == null) {
-           DejaGnu.pass("NetStatusEvent::INIT() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::INIT() method doesn't exist");
-       }
-       if (x1.LOCATION == CHANGE) {
-           DejaGnu.pass("NetStatusEvent::LOCATION() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::LOCATION() method doesn't exist");
-       }
-       if (x1.MOUSE == LEAVE) {
-           DejaGnu.pass("NetStatusEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.NET == STATUS) {
-           DejaGnu.pass("NetStatusEvent::NET() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::NET() method doesn't exist");
-       }
-       if (x1.NETWORK == CHANGE) {
-           DejaGnu.pass("NetStatusEvent::NETWORK() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::NETWORK() method doesn't exist");
-       }
-       if (x1.OPEN == null) {
-           DejaGnu.pass("NetStatusEvent::OPEN() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::OPEN() method doesn't exist");
-       }
-       if (x1.REMOVED == null) {
-           DejaGnu.pass("NetStatusEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.REMOVED == FROM) {
-           DejaGnu.pass("NetStatusEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.RENDER == null) {
-           DejaGnu.pass("NetStatusEvent::RENDER() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::RENDER() method doesn't exist");
-       }
-       if (x1.RESIZE == null) {
-           DejaGnu.pass("NetStatusEvent::RESIZE() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::RESIZE() method doesn't exist");
-       }
-       if (x1.SCROLL == null) {
-           DejaGnu.pass("NetStatusEvent::SCROLL() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::SCROLL() method doesn't exist");
-       }
-       if (x1.SELECT == null) {
-           DejaGnu.pass("NetStatusEvent::SELECT() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::SELECT() method doesn't exist");
-       }
-       if (x1.SOUND == COMPLETE) {
-           DejaGnu.pass("NetStatusEvent::SOUND() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::SOUND() method doesn't exist");
-       }
-       if (x1.TAB == CHILDREN) {
-           DejaGnu.pass("NetStatusEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == ENABLED) {
-           DejaGnu.pass("NetStatusEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == INDEX) {
-           DejaGnu.pass("NetStatusEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::TAB() method doesn't exist");
-       }
-       if (x1.UNLOAD == null) {
-           DejaGnu.pass("NetStatusEvent::UNLOAD() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::UNLOAD() method doesn't exist");
-       }
-       if (x1.USER == IDLE) {
-           DejaGnu.pass("NetStatusEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::USER() method doesn't exist");
-       }
-       if (x1.USER == PRESENT) {
-           DejaGnu.pass("NetStatusEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("NetStatusEvent::USER() method doesn't exist");
-       }
-
+       if (Std.string(flash.events.NetStatusEvent.NET_STATUS) == "netStatus") {
+           DejaGnu.pass("NetStatusEvent.NET_STATUS property exists");
+       } else {
+           DejaGnu.fail("NetStatusEvent.NET_STATUS property doesn't exist");
+       }
+       #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/ProgressEvent_as.hx'
--- a/testsuite/as3/classes.all/events/ProgressEvent_as.hx      2009-05-25 
02:00:57 +0000
+++ b/testsuite/as3/classes.all/events/ProgressEvent_as.hx      2009-06-11 
22:18:59 +0000
@@ -26,12 +26,10 @@
 #if flash9
 import flash.events.ProgressEvent;
 import flash.display.MovieClip;
-#else
-import flash.ProgressEvent;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
+import Std;
 
 // import our testing API
 import DejaGnu;
@@ -39,7 +37,12 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class ProgressEvent_as {
     static function main() {
-        var x1:ProgressEvent = new ProgressEvent();
+        #if !flash9
+                       DejaGnu.note("this class didn't exist in as2");
+               #end
+               
+               #if flash9
+               var x1:ProgressEvent = new ProgressEvent("progressevent");
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -50,12 +53,12 @@
 // Tests to see if all the properties exist. All these do is test for
 // existance of a property, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.bytesLoaded == 0) {
+       if (Std.is(x1.bytesLoaded, Float)) {
            DejaGnu.pass("ProgressEvent.bytesLoaded property exists");
        } else {
            DejaGnu.fail("ProgressEvent.bytesLoaded property doesn't exist");
        }
-       if (x1.bytesTotal == 0) {
+       if (Std.is(x1.bytesTotal, Float)) {
            DejaGnu.pass("ProgressEvent.bytesTotal property exists");
        } else {
            DejaGnu.fail("ProgressEvent.bytesTotal property doesn't exist");
@@ -64,212 +67,27 @@
 // Tests to see if all the methods exist. All these do is test for
 // existance of a method, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.ProgressEvent == 0) {
-           DejaGnu.pass("ProgressEvent::ProgressEvent() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::ProgressEvent() method doesn't exist");
-       }
-       if (x1.clone == Event) {
+       if (Type.typeof(x1.clone) == ValueType.TFunction) {
            DejaGnu.pass("ProgressEvent::clone() method exists");
        } else {
-           DejaGnu.fail("ProgressEvent::clone() method doesn't exist");
+           DejaGnu.fail("ProgressEvent::clone()::clone() method doesn't 
exist");
        }
-       if (x1.toString == null) {
+       if (Type.typeof(x1.toString) == ValueType.TFunction) {
            DejaGnu.pass("ProgressEvent::toString() method exists");
        } else {
            DejaGnu.fail("ProgressEvent::toString() method doesn't exist");
        }
-       if (x1.ACTIVATE == null) {
-           DejaGnu.pass("ProgressEvent::ACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::ACTIVATE() method doesn't exist");
-       }
-       if (x1.ADDED == null) {
-           DejaGnu.pass("ProgressEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::ADDED() method doesn't exist");
-       }
-       if (x1.ADDED == TO) {
-           DejaGnu.pass("ProgressEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::ADDED() method doesn't exist");
-       }
-       if (x1.CANCEL == null) {
-           DejaGnu.pass("ProgressEvent::CANCEL() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::CANCEL() method doesn't exist");
-       }
-       if (x1.CHANGE == null) {
-           DejaGnu.pass("ProgressEvent::CHANGE() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::CHANGE() method doesn't exist");
-       }
-       if (x1.CLOSE == null) {
-           DejaGnu.pass("ProgressEvent::CLOSE() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::CLOSE() method doesn't exist");
-       }
-       if (x1.CLOSING == null) {
-           DejaGnu.pass("ProgressEvent::CLOSING() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::CLOSING() method doesn't exist");
-       }
-       if (x1.COMPLETE == null) {
-           DejaGnu.pass("ProgressEvent::COMPLETE() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::COMPLETE() method doesn't exist");
-       }
-       if (x1.CONNECT == null) {
-           DejaGnu.pass("ProgressEvent::CONNECT() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::CONNECT() method doesn't exist");
-       }
-       if (x1.DEACTIVATE == null) {
-           DejaGnu.pass("ProgressEvent::DEACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::DEACTIVATE() method doesn't exist");
-       }
-       if (x1.DISPLAYING == null) {
-           DejaGnu.pass("ProgressEvent::DISPLAYING() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::DISPLAYING() method doesn't exist");
-       }
-       if (x1.ENTER == FRAME) {
-           DejaGnu.pass("ProgressEvent::ENTER() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::ENTER() method doesn't exist");
-       }
-       if (x1.EXITING == null) {
-           DejaGnu.pass("ProgressEvent::EXITING() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::EXITING() method doesn't exist");
-       }
-       if (x1.FULLSCREEN == null) {
-           DejaGnu.pass("ProgressEvent::FULLSCREEN() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::FULLSCREEN() method doesn't exist");
-       }
-       if (x1.HTML == BOUNDS) {
-           DejaGnu.pass("ProgressEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == DOM) {
-           DejaGnu.pass("ProgressEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == RENDER) {
-           DejaGnu.pass("ProgressEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::HTML() method doesn't exist");
-       }
-       if (x1.ID3 == null) {
-           DejaGnu.pass("ProgressEvent::ID3() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::ID3() method doesn't exist");
-       }
-       if (x1.INIT == null) {
-           DejaGnu.pass("ProgressEvent::INIT() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::INIT() method doesn't exist");
-       }
-       if (x1.LOCATION == CHANGE) {
-           DejaGnu.pass("ProgressEvent::LOCATION() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::LOCATION() method doesn't exist");
-       }
-       if (x1.MOUSE == LEAVE) {
-           DejaGnu.pass("ProgressEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.NETWORK == CHANGE) {
-           DejaGnu.pass("ProgressEvent::NETWORK() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::NETWORK() method doesn't exist");
-       }
-       if (x1.OPEN == null) {
-           DejaGnu.pass("ProgressEvent::OPEN() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::OPEN() method doesn't exist");
-       }
-       if (x1.PROGRESS == null) {
-           DejaGnu.pass("ProgressEvent::PROGRESS() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::PROGRESS() method doesn't exist");
-       }
-       if (x1.REMOVED == null) {
-           DejaGnu.pass("ProgressEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.REMOVED == FROM) {
-           DejaGnu.pass("ProgressEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.RENDER == null) {
-           DejaGnu.pass("ProgressEvent::RENDER() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::RENDER() method doesn't exist");
-       }
-       if (x1.RESIZE == null) {
-           DejaGnu.pass("ProgressEvent::RESIZE() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::RESIZE() method doesn't exist");
-       }
-       if (x1.SCROLL == null) {
-           DejaGnu.pass("ProgressEvent::SCROLL() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::SCROLL() method doesn't exist");
-       }
-       if (x1.SELECT == null) {
-           DejaGnu.pass("ProgressEvent::SELECT() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::SELECT() method doesn't exist");
-       }
-       if (x1.SOCKET == DATA) {
-           DejaGnu.pass("ProgressEvent::SOCKET() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::SOCKET() method doesn't exist");
-       }
-       if (x1.SOUND == COMPLETE) {
-           DejaGnu.pass("ProgressEvent::SOUND() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::SOUND() method doesn't exist");
-       }
-       if (x1.TAB == CHILDREN) {
-           DejaGnu.pass("ProgressEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == ENABLED) {
-           DejaGnu.pass("ProgressEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == INDEX) {
-           DejaGnu.pass("ProgressEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::TAB() method doesn't exist");
-       }
-       if (x1.UNLOAD == null) {
-           DejaGnu.pass("ProgressEvent::UNLOAD() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::UNLOAD() method doesn't exist");
-       }
-       if (x1.USER == IDLE) {
-           DejaGnu.pass("ProgressEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::USER() method doesn't exist");
-       }
-       if (x1.USER == PRESENT) {
-           DejaGnu.pass("ProgressEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("ProgressEvent::USER() method doesn't exist");
-       }
-
+       if (Std.string(flash.events.ProgressEvent.PROGRESS) == "progress") {
+           DejaGnu.pass("ProgressEvent.PROGRESS property exists");
+       } else {
+           DejaGnu.fail("ProgressEvent.PROGRESS property doesn't exist");
+       }
+       if (Std.string(flash.events.ProgressEvent.SOCKET_DATA) == "socketData") 
{
+           DejaGnu.pass("ProgressEvent.SOCKET_DATA property exists");
+       } else {
+           DejaGnu.fail("ProgressEvent.SOCKET_DATA property doesn't exist");
+       }
+       #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/SecurityErrorEvent_as.hx'
--- a/testsuite/as3/classes.all/events/SecurityErrorEvent_as.hx 2009-05-25 
02:00:57 +0000
+++ b/testsuite/as3/classes.all/events/SecurityErrorEvent_as.hx 2009-06-11 
22:18:59 +0000
@@ -26,12 +26,10 @@
 #if flash9
 import flash.events.SecurityErrorEvent;
 import flash.display.MovieClip;
-#else
-import flash.SecurityErrorEvent;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
+import Std;
 
 // import our testing API
 import DejaGnu;
@@ -39,7 +37,12 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class SecurityErrorEvent_as {
     static function main() {
-        var x1:SecurityErrorEvent = new SecurityErrorEvent();
+        #if !flash9
+                       DejaGnu.note("this class didn't exist in as2");
+               #end
+               
+               #if flash9
+               var x1:SecurityErrorEvent = new 
SecurityErrorEvent("securityevent");
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -51,7 +54,22 @@
 // Tests to see if all the methods exist. All these do is test for
 // existance of a method, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-
+       if (Type.typeof(x1.clone) == ValueType.TFunction) {
+           DejaGnu.pass("SecurityErrorEvent::clone() method exists");
+       } else {
+           DejaGnu.fail("SecurityErrorEvent::clone() method doesn't exist");
+       }
+       if (Type.typeof(x1.toString) == ValueType.TFunction) {
+           DejaGnu.pass("SecurityErrorEvent::toString() method exists");
+       } else {
+           DejaGnu.fail("SecurityErrorEvent::toString() method doesn't exist");
+       }
+       if (Std.string(flash.events.SecurityErrorEvent.SECURITY_ERROR) == 
"securityError") {
+           DejaGnu.pass("SecurityErrorEvent.SECURITY_ERROR property exists");
+       } else {
+           DejaGnu.fail("SecurityErrorEvent.SECURITY_ERROR property doesn't 
exist");
+       }
+       #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/StatusEvent_as.hx'
--- a/testsuite/as3/classes.all/events/StatusEvent_as.hx        2009-05-25 
02:00:57 +0000
+++ b/testsuite/as3/classes.all/events/StatusEvent_as.hx        2009-06-11 
22:18:59 +0000
@@ -26,12 +26,10 @@
 #if flash9
 import flash.events.StatusEvent;
 import flash.display.MovieClip;
-#else
-import flash.StatusEvent;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
+import Std;
 
 // import our testing API
 import DejaGnu;
@@ -39,7 +37,12 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class StatusEvent_as {
     static function main() {
-        var x1:StatusEvent = new StatusEvent();
+        #if !flash9
+                       DejaGnu.note("this class didn't exist in as2");
+               #end
+               
+               #if flash9
+               var x1:StatusEvent = new StatusEvent("statusevent");
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -50,221 +53,32 @@
 // Tests to see if all the properties exist. All these do is test for
 // existance of a property, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.code == null) {
+       if (Std.is(x1.code, String)) {
            DejaGnu.pass("StatusEvent.code property exists");
        } else {
            DejaGnu.fail("StatusEvent.code property doesn't exist");
        }
-       if (x1.level == null) {
+       if (Std.is(x1.level, String)) {
            DejaGnu.pass("StatusEvent.level property exists");
        } else {
            DejaGnu.fail("StatusEvent.level property doesn't exist");
        }
-
-// Tests to see if all the methods exist. All these do is test for
-// existance of a method, and don't test the functionality at all. This
-// is primarily useful only to test completeness of the API implementation.
-       if (x1.StatusEvent == null) {
-           DejaGnu.pass("StatusEvent::StatusEvent() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::StatusEvent() method doesn't exist");
-       }
-       if (x1.clone == Event) {
+       if (Type.typeof(x1.clone) == ValueType.TFunction) {
            DejaGnu.pass("StatusEvent::clone() method exists");
        } else {
            DejaGnu.fail("StatusEvent::clone() method doesn't exist");
        }
-       if (x1.toString == null) {
+       if (Type.typeof(x1.toString) == ValueType.TFunction) {
            DejaGnu.pass("StatusEvent::toString() method exists");
        } else {
            DejaGnu.fail("StatusEvent::toString() method doesn't exist");
        }
-       if (x1.ACTIVATE == null) {
-           DejaGnu.pass("StatusEvent::ACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::ACTIVATE() method doesn't exist");
-       }
-       if (x1.ADDED == null) {
-           DejaGnu.pass("StatusEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::ADDED() method doesn't exist");
-       }
-       if (x1.ADDED == TO) {
-           DejaGnu.pass("StatusEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::ADDED() method doesn't exist");
-       }
-       if (x1.CANCEL == null) {
-           DejaGnu.pass("StatusEvent::CANCEL() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::CANCEL() method doesn't exist");
-       }
-       if (x1.CHANGE == null) {
-           DejaGnu.pass("StatusEvent::CHANGE() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::CHANGE() method doesn't exist");
-       }
-       if (x1.CLOSE == null) {
-           DejaGnu.pass("StatusEvent::CLOSE() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::CLOSE() method doesn't exist");
-       }
-       if (x1.CLOSING == null) {
-           DejaGnu.pass("StatusEvent::CLOSING() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::CLOSING() method doesn't exist");
-       }
-       if (x1.COMPLETE == null) {
-           DejaGnu.pass("StatusEvent::COMPLETE() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::COMPLETE() method doesn't exist");
-       }
-       if (x1.CONNECT == null) {
-           DejaGnu.pass("StatusEvent::CONNECT() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::CONNECT() method doesn't exist");
-       }
-       if (x1.DEACTIVATE == null) {
-           DejaGnu.pass("StatusEvent::DEACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::DEACTIVATE() method doesn't exist");
-       }
-       if (x1.DISPLAYING == null) {
-           DejaGnu.pass("StatusEvent::DISPLAYING() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::DISPLAYING() method doesn't exist");
-       }
-       if (x1.ENTER == FRAME) {
-           DejaGnu.pass("StatusEvent::ENTER() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::ENTER() method doesn't exist");
-       }
-       if (x1.EXITING == null) {
-           DejaGnu.pass("StatusEvent::EXITING() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::EXITING() method doesn't exist");
-       }
-       if (x1.FULLSCREEN == null) {
-           DejaGnu.pass("StatusEvent::FULLSCREEN() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::FULLSCREEN() method doesn't exist");
-       }
-       if (x1.HTML == BOUNDS) {
-           DejaGnu.pass("StatusEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == DOM) {
-           DejaGnu.pass("StatusEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == RENDER) {
-           DejaGnu.pass("StatusEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::HTML() method doesn't exist");
-       }
-       if (x1.ID3 == null) {
-           DejaGnu.pass("StatusEvent::ID3() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::ID3() method doesn't exist");
-       }
-       if (x1.INIT == null) {
-           DejaGnu.pass("StatusEvent::INIT() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::INIT() method doesn't exist");
-       }
-       if (x1.LOCATION == CHANGE) {
-           DejaGnu.pass("StatusEvent::LOCATION() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::LOCATION() method doesn't exist");
-       }
-       if (x1.MOUSE == LEAVE) {
-           DejaGnu.pass("StatusEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.NETWORK == CHANGE) {
-           DejaGnu.pass("StatusEvent::NETWORK() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::NETWORK() method doesn't exist");
-       }
-       if (x1.OPEN == null) {
-           DejaGnu.pass("StatusEvent::OPEN() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::OPEN() method doesn't exist");
-       }
-       if (x1.REMOVED == null) {
-           DejaGnu.pass("StatusEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.REMOVED == FROM) {
-           DejaGnu.pass("StatusEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.RENDER == null) {
-           DejaGnu.pass("StatusEvent::RENDER() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::RENDER() method doesn't exist");
-       }
-       if (x1.RESIZE == null) {
-           DejaGnu.pass("StatusEvent::RESIZE() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::RESIZE() method doesn't exist");
-       }
-       if (x1.SCROLL == null) {
-           DejaGnu.pass("StatusEvent::SCROLL() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::SCROLL() method doesn't exist");
-       }
-       if (x1.SELECT == null) {
-           DejaGnu.pass("StatusEvent::SELECT() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::SELECT() method doesn't exist");
-       }
-       if (x1.SOUND == COMPLETE) {
-           DejaGnu.pass("StatusEvent::SOUND() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::SOUND() method doesn't exist");
-       }
-       if (x1.STATUS == null) {
-           DejaGnu.pass("StatusEvent::STATUS() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::STATUS() method doesn't exist");
-       }
-       if (x1.TAB == CHILDREN) {
-           DejaGnu.pass("StatusEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == ENABLED) {
-           DejaGnu.pass("StatusEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == INDEX) {
-           DejaGnu.pass("StatusEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::TAB() method doesn't exist");
-       }
-       if (x1.UNLOAD == null) {
-           DejaGnu.pass("StatusEvent::UNLOAD() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::UNLOAD() method doesn't exist");
-       }
-       if (x1.USER == IDLE) {
-           DejaGnu.pass("StatusEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::USER() method doesn't exist");
-       }
-       if (x1.USER == PRESENT) {
-           DejaGnu.pass("StatusEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("StatusEvent::USER() method doesn't exist");
-       }
-
+       if (Std.string(flash.events.StatusEvent.STATUS) == "status") {
+           DejaGnu.pass("StatusEvent.STATUS property exists");
+       } else {
+           DejaGnu.fail("StatusEvent.STATUS property doesn't exist");
+       }
+       #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/SyncEvent_as.hx'
--- a/testsuite/as3/classes.all/events/SyncEvent_as.hx  2009-05-25 02:00:57 
+0000
+++ b/testsuite/as3/classes.all/events/SyncEvent_as.hx  2009-06-11 22:18:59 
+0000
@@ -26,12 +26,10 @@
 #if flash9
 import flash.events.SyncEvent;
 import flash.display.MovieClip;
-#else
-import flash.SyncEvent;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
+import Std;
 
 // import our testing API
 import DejaGnu;
@@ -39,7 +37,12 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class SyncEvent_as {
     static function main() {
-        var x1:SyncEvent = new SyncEvent();
+        #if !flash9
+                       DejaGnu.note("this class didn't exist in as2");
+               #end
+               
+               #if flash9
+               var x1:SyncEvent = new SyncEvent("syncevent");
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -50,216 +53,27 @@
 // Tests to see if all the properties exist. All these do is test for
 // existance of a property, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.changeList == 0) {
+       if (Std.string(Type.typeof(x1.changeList)) == "TNull") {
            DejaGnu.pass("SyncEvent.changeList property exists");
        } else {
            DejaGnu.fail("SyncEvent.changeList property doesn't exist");
        }
-
-// Tests to see if all the methods exist. All these do is test for
-// existance of a method, and don't test the functionality at all. This
-// is primarily useful only to test completeness of the API implementation.
-       if (x1.SyncEvent == 0) {
-           DejaGnu.pass("SyncEvent::SyncEvent() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::SyncEvent() method doesn't exist");
-       }
-       if (x1.clone == Event) {
+       if (Type.typeof(x1.clone) == ValueType.TFunction) {
            DejaGnu.pass("SyncEvent::clone() method exists");
        } else {
            DejaGnu.fail("SyncEvent::clone() method doesn't exist");
        }
-       if (x1.toString == null) {
+       if (Type.typeof(x1.toString) == ValueType.TFunction) {
            DejaGnu.pass("SyncEvent::toString() method exists");
        } else {
            DejaGnu.fail("SyncEvent::toString() method doesn't exist");
        }
-       if (x1.ACTIVATE == null) {
-           DejaGnu.pass("SyncEvent::ACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::ACTIVATE() method doesn't exist");
-       }
-       if (x1.ADDED == null) {
-           DejaGnu.pass("SyncEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::ADDED() method doesn't exist");
-       }
-       if (x1.ADDED == TO) {
-           DejaGnu.pass("SyncEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::ADDED() method doesn't exist");
-       }
-       if (x1.CANCEL == null) {
-           DejaGnu.pass("SyncEvent::CANCEL() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::CANCEL() method doesn't exist");
-       }
-       if (x1.CHANGE == null) {
-           DejaGnu.pass("SyncEvent::CHANGE() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::CHANGE() method doesn't exist");
-       }
-       if (x1.CLOSE == null) {
-           DejaGnu.pass("SyncEvent::CLOSE() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::CLOSE() method doesn't exist");
-       }
-       if (x1.CLOSING == null) {
-           DejaGnu.pass("SyncEvent::CLOSING() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::CLOSING() method doesn't exist");
-       }
-       if (x1.COMPLETE == null) {
-           DejaGnu.pass("SyncEvent::COMPLETE() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::COMPLETE() method doesn't exist");
-       }
-       if (x1.CONNECT == null) {
-           DejaGnu.pass("SyncEvent::CONNECT() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::CONNECT() method doesn't exist");
-       }
-       if (x1.DEACTIVATE == null) {
-           DejaGnu.pass("SyncEvent::DEACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::DEACTIVATE() method doesn't exist");
-       }
-       if (x1.DISPLAYING == null) {
-           DejaGnu.pass("SyncEvent::DISPLAYING() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::DISPLAYING() method doesn't exist");
-       }
-       if (x1.ENTER == FRAME) {
-           DejaGnu.pass("SyncEvent::ENTER() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::ENTER() method doesn't exist");
-       }
-       if (x1.EXITING == null) {
-           DejaGnu.pass("SyncEvent::EXITING() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::EXITING() method doesn't exist");
-       }
-       if (x1.FULLSCREEN == null) {
-           DejaGnu.pass("SyncEvent::FULLSCREEN() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::FULLSCREEN() method doesn't exist");
-       }
-       if (x1.HTML == BOUNDS) {
-           DejaGnu.pass("SyncEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == DOM) {
-           DejaGnu.pass("SyncEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == RENDER) {
-           DejaGnu.pass("SyncEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::HTML() method doesn't exist");
-       }
-       if (x1.ID3 == null) {
-           DejaGnu.pass("SyncEvent::ID3() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::ID3() method doesn't exist");
-       }
-       if (x1.INIT == null) {
-           DejaGnu.pass("SyncEvent::INIT() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::INIT() method doesn't exist");
-       }
-       if (x1.LOCATION == CHANGE) {
-           DejaGnu.pass("SyncEvent::LOCATION() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::LOCATION() method doesn't exist");
-       }
-       if (x1.MOUSE == LEAVE) {
-           DejaGnu.pass("SyncEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.NETWORK == CHANGE) {
-           DejaGnu.pass("SyncEvent::NETWORK() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::NETWORK() method doesn't exist");
-       }
-       if (x1.OPEN == null) {
-           DejaGnu.pass("SyncEvent::OPEN() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::OPEN() method doesn't exist");
-       }
-       if (x1.REMOVED == null) {
-           DejaGnu.pass("SyncEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.REMOVED == FROM) {
-           DejaGnu.pass("SyncEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.RENDER == null) {
-           DejaGnu.pass("SyncEvent::RENDER() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::RENDER() method doesn't exist");
-       }
-       if (x1.RESIZE == null) {
-           DejaGnu.pass("SyncEvent::RESIZE() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::RESIZE() method doesn't exist");
-       }
-       if (x1.SCROLL == null) {
-           DejaGnu.pass("SyncEvent::SCROLL() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::SCROLL() method doesn't exist");
-       }
-       if (x1.SELECT == null) {
-           DejaGnu.pass("SyncEvent::SELECT() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::SELECT() method doesn't exist");
-       }
-       if (x1.SOUND == COMPLETE) {
-           DejaGnu.pass("SyncEvent::SOUND() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::SOUND() method doesn't exist");
-       }
-       if (x1.SYNC == null) {
-           DejaGnu.pass("SyncEvent::SYNC() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::SYNC() method doesn't exist");
-       }
-       if (x1.TAB == CHILDREN) {
-           DejaGnu.pass("SyncEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == ENABLED) {
-           DejaGnu.pass("SyncEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == INDEX) {
-           DejaGnu.pass("SyncEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::TAB() method doesn't exist");
-       }
-       if (x1.UNLOAD == null) {
-           DejaGnu.pass("SyncEvent::UNLOAD() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::UNLOAD() method doesn't exist");
-       }
-       if (x1.USER == IDLE) {
-           DejaGnu.pass("SyncEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::USER() method doesn't exist");
-       }
-       if (x1.USER == PRESENT) {
-           DejaGnu.pass("SyncEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("SyncEvent::USER() method doesn't exist");
-       }
-
+       if (Std.string(flash.events.SyncEvent.SYNC) == "sync") {
+           DejaGnu.pass("SyncEvent.SYNC property exists");
+       } else {
+           DejaGnu.fail("SyncEvent.SYNC property doesn't exist");
+       }
+       #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/TextEvent_as.hx'
--- a/testsuite/as3/classes.all/events/TextEvent_as.hx  2009-05-25 02:00:57 
+0000
+++ b/testsuite/as3/classes.all/events/TextEvent_as.hx  2009-06-11 22:18:59 
+0000
@@ -26,12 +26,10 @@
 #if flash9
 import flash.events.TextEvent;
 import flash.display.MovieClip;
-#else
-import flash.TextEvent;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
+import Std;
 
 // import our testing API
 import DejaGnu;
@@ -39,7 +37,12 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class TextEvent_as {
     static function main() {
-        var x1:TextEvent = new TextEvent();
+        #if !flash9
+                       DejaGnu.note("this class didn't exist in as2");
+               #end
+               
+               #if flash9
+               var x1:TextEvent = new TextEvent("textevent");
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -50,221 +53,32 @@
 // Tests to see if all the properties exist. All these do is test for
 // existance of a property, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-       if (x1.text == null) {
+       if (Std.is(x1.text, String)) {
            DejaGnu.pass("TextEvent.text property exists");
        } else {
            DejaGnu.fail("TextEvent.text property doesn't exist");
        }
-
-// Tests to see if all the methods exist. All these do is test for
-// existance of a method, and don't test the functionality at all. This
-// is primarily useful only to test completeness of the API implementation.
-       if (x1.TextEvent == null) {
-           DejaGnu.pass("TextEvent::TextEvent() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::TextEvent() method doesn't exist");
-       }
-       if (x1.clone == Event) {
+       if (Type.typeof(x1.clone) == ValueType.TFunction) {
            DejaGnu.pass("TextEvent::clone() method exists");
        } else {
            DejaGnu.fail("TextEvent::clone() method doesn't exist");
        }
-       if (x1.toString == null) {
+       if (Type.typeof(x1.toString) == ValueType.TFunction) {
            DejaGnu.pass("TextEvent::toString() method exists");
        } else {
            DejaGnu.fail("TextEvent::toString() method doesn't exist");
        }
-       if (x1.ACTIVATE == null) {
-           DejaGnu.pass("TextEvent::ACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::ACTIVATE() method doesn't exist");
-       }
-       if (x1.ADDED == null) {
-           DejaGnu.pass("TextEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::ADDED() method doesn't exist");
-       }
-       if (x1.ADDED == TO) {
-           DejaGnu.pass("TextEvent::ADDED() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::ADDED() method doesn't exist");
-       }
-       if (x1.CANCEL == null) {
-           DejaGnu.pass("TextEvent::CANCEL() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::CANCEL() method doesn't exist");
-       }
-       if (x1.CHANGE == null) {
-           DejaGnu.pass("TextEvent::CHANGE() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::CHANGE() method doesn't exist");
-       }
-       if (x1.CLOSE == null) {
-           DejaGnu.pass("TextEvent::CLOSE() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::CLOSE() method doesn't exist");
-       }
-       if (x1.CLOSING == null) {
-           DejaGnu.pass("TextEvent::CLOSING() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::CLOSING() method doesn't exist");
-       }
-       if (x1.COMPLETE == null) {
-           DejaGnu.pass("TextEvent::COMPLETE() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::COMPLETE() method doesn't exist");
-       }
-       if (x1.CONNECT == null) {
-           DejaGnu.pass("TextEvent::CONNECT() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::CONNECT() method doesn't exist");
-       }
-       if (x1.DEACTIVATE == null) {
-           DejaGnu.pass("TextEvent::DEACTIVATE() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::DEACTIVATE() method doesn't exist");
-       }
-       if (x1.DISPLAYING == null) {
-           DejaGnu.pass("TextEvent::DISPLAYING() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::DISPLAYING() method doesn't exist");
-       }
-       if (x1.ENTER == FRAME) {
-           DejaGnu.pass("TextEvent::ENTER() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::ENTER() method doesn't exist");
-       }
-       if (x1.EXITING == null) {
-           DejaGnu.pass("TextEvent::EXITING() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::EXITING() method doesn't exist");
-       }
-       if (x1.FULLSCREEN == null) {
-           DejaGnu.pass("TextEvent::FULLSCREEN() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::FULLSCREEN() method doesn't exist");
-       }
-       if (x1.HTML == BOUNDS) {
-           DejaGnu.pass("TextEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == DOM) {
-           DejaGnu.pass("TextEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::HTML() method doesn't exist");
-       }
-       if (x1.HTML == RENDER) {
-           DejaGnu.pass("TextEvent::HTML() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::HTML() method doesn't exist");
-       }
-       if (x1.ID3 == null) {
-           DejaGnu.pass("TextEvent::ID3() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::ID3() method doesn't exist");
-       }
-       if (x1.INIT == null) {
-           DejaGnu.pass("TextEvent::INIT() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::INIT() method doesn't exist");
-       }
-       if (x1.LINK == null) {
-           DejaGnu.pass("TextEvent::LINK() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::LINK() method doesn't exist");
-       }
-       if (x1.LOCATION == CHANGE) {
-           DejaGnu.pass("TextEvent::LOCATION() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::LOCATION() method doesn't exist");
-       }
-       if (x1.MOUSE == LEAVE) {
-           DejaGnu.pass("TextEvent::MOUSE() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::MOUSE() method doesn't exist");
-       }
-       if (x1.NETWORK == CHANGE) {
-           DejaGnu.pass("TextEvent::NETWORK() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::NETWORK() method doesn't exist");
-       }
-       if (x1.OPEN == null) {
-           DejaGnu.pass("TextEvent::OPEN() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::OPEN() method doesn't exist");
-       }
-       if (x1.REMOVED == null) {
-           DejaGnu.pass("TextEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.REMOVED == FROM) {
-           DejaGnu.pass("TextEvent::REMOVED() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::REMOVED() method doesn't exist");
-       }
-       if (x1.RENDER == null) {
-           DejaGnu.pass("TextEvent::RENDER() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::RENDER() method doesn't exist");
-       }
-       if (x1.RESIZE == null) {
-           DejaGnu.pass("TextEvent::RESIZE() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::RESIZE() method doesn't exist");
-       }
-       if (x1.SCROLL == null) {
-           DejaGnu.pass("TextEvent::SCROLL() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::SCROLL() method doesn't exist");
-       }
-       if (x1.SELECT == null) {
-           DejaGnu.pass("TextEvent::SELECT() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::SELECT() method doesn't exist");
-       }
-       if (x1.SOUND == COMPLETE) {
-           DejaGnu.pass("TextEvent::SOUND() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::SOUND() method doesn't exist");
-       }
-       if (x1.TAB == CHILDREN) {
-           DejaGnu.pass("TextEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == ENABLED) {
-           DejaGnu.pass("TextEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::TAB() method doesn't exist");
-       }
-       if (x1.TAB == INDEX) {
-           DejaGnu.pass("TextEvent::TAB() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::TAB() method doesn't exist");
-       }
-       if (x1.TEXT == INPUT) {
-           DejaGnu.pass("TextEvent::TEXT() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::TEXT() method doesn't exist");
-       }
-       if (x1.UNLOAD == null) {
-           DejaGnu.pass("TextEvent::UNLOAD() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::UNLOAD() method doesn't exist");
-       }
-       if (x1.USER == IDLE) {
-           DejaGnu.pass("TextEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::USER() method doesn't exist");
-       }
-       if (x1.USER == PRESENT) {
-           DejaGnu.pass("TextEvent::USER() method exists");
-       } else {
-           DejaGnu.fail("TextEvent::USER() method doesn't exist");
-       }
-
+       if (Std.string(flash.events.TextEvent.LINK) == "link") {
+           DejaGnu.pass("TextEvent.LINK property exists");
+       } else {
+           DejaGnu.fail("TextEvent.LINK property doesn't exist");
+       }
+       if (Std.string(flash.events.TextEvent.TEXT_INPUT) == "textInput") {
+           DejaGnu.pass("TextEvent.TEXT_INPUT property exists");
+       } else {
+           DejaGnu.fail("TextEvent.TEXT_INPUT property doesn't exist");
+       }
+       #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/TimerEvent_as.hx'
--- a/testsuite/as3/classes.all/events/TimerEvent_as.hx 2009-05-25 02:00:57 
+0000
+++ b/testsuite/as3/classes.all/events/TimerEvent_as.hx 2009-06-11 22:18:59 
+0000
@@ -26,9 +26,6 @@
 #if flash9
 import flash.events.TimerEvent;
 import flash.display.MovieClip;
-#else
-import flash.TimerEvent;
-import flash.MovieClip;
 #end
 import flash.Lib;
 import Type;
@@ -39,7 +36,12 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class TimerEvent_as {
     static function main() {
-        var x1:TimerEvent = new TimerEvent();
+        #if !flash9
+                       DejaGnu.note("this class didn't exist in as2");
+               #end
+               
+               #if flash9
+               var x1:TimerEvent = new TimerEvent("timerevent");
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -51,7 +53,27 @@
 // Tests to see if all the methods exist. All these do is test for
 // existance of a method, and don't test the functionality at all. This
 // is primarily useful only to test completeness of the API implementation.
-
+               if (Type.typeof(x1.clone) == ValueType.TFunction) {
+                       DejaGnu.pass("TimerEvent::clone() method exists");
+               } else {
+                       DejaGnu.fail("TimerEvent::clone() method doesn't 
exist");
+               }
+               if (Type.typeof(x1.toString) == ValueType.TFunction) {
+                       DejaGnu.pass("TimerEvent::toString() method exists");
+               } else {
+                       DejaGnu.fail("TimerEvent::toString() method doesn't 
exist");
+               }
+               if (Std.string(flash.events.TimerEvent.TIMER) == "timer") {
+                       DejaGnu.pass("TimerEvent.TIMER property exists");
+               } else {
+                       DejaGnu.fail("TimerEvent.TIMER property doesn't exist");
+               }
+               if (Std.string(flash.events.TimerEvent.TIMER_COMPLETE) == 
"timerComplete") {
+                       DejaGnu.pass("TimerEvent.TIMER_COMPLETE property 
exists");
+               } else {
+                       DejaGnu.fail("TimerEvent.TIMER_COMPLETE property 
doesn't exist");
+               }
+               #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/events/events.am'
--- a/testsuite/as3/classes.all/events/events.am        2009-05-20 16:47:49 
+0000
+++ b/testsuite/as3/classes.all/events/events.am        2009-06-11 22:18:59 
+0000
@@ -17,159 +17,177 @@
 
 EVENTSdir = $(srcdir)/events
 
-EVENTS_TESTS = 
+EVENTS_TESTS_V9 = 
+EVENTS_TESTS =
 
 if BUILD_ACTIVITYEVENT_AS3
-EVENTS_TESTS += events/ActivityEvent_as3.swf
+EVENTS_TESTS_V9 += events/ActivityEvent_as.swf
 endif
 
 if BUILD_ASYNCERROREVENT_AS3
-EVENTS_TESTS += events/AsyncErrorEvent_as3.swf
+EVENTS_TESTS_V9 += events/AsyncErrorEvent_as.swf
 endif
 
-if BUILD_BROWSERINVOKEEVENT_AS3
-EVENTS_TESTS += events/BrowserInvokeEvent_as3.swf
-endif
+#this is air only
+#if BUILD_BROWSERINVOKEEVENT_AS3
+#EVENTS_TESTS += events/BrowserInvokeEvent_as.swf
+#endif
 
 if BUILD_CONTEXTMENUEVENT_AS3
-EVENTS_TESTS += events/ContextMenuEvent_as3.swf
-endif
-
-if BUILD_DRMAUTHENTICATEEVENT_AS3
-EVENTS_TESTS += events/DRMAuthenticateEvent_as3.swf
-endif
-
-if BUILD_DRMERROREVENT_AS3
-EVENTS_TESTS += events/DRMErrorEvent_as3.swf
-endif
-
-if BUILD_DRMSTATUSEVENT_AS3
-EVENTS_TESTS += events/DRMStatusEvent_as3.swf
-endif
+EVENTS_TESTS_V9 += events/ContextMenuEvent_as.swf
+endif
+
+#this is air only
+#if BUILD_DRMAUTHENTICATEEVENT_AS3
+#EVENTS_TESTS += events/DRMAuthenticateEvent_as.swf
+#endif
+
+#this is air only
+#if BUILD_DRMERROREVENT_AS3
+#EVENTS_TESTS += events/DRMErrorEvent_as.swf
+#endif
+
+#this is air only
+#if BUILD_DRMSTATUSEVENT_AS3
+#EVENTS_TESTS += events/DRMStatusEvent_as.swf
+#endif
 
 if BUILD_DATAEVENT_AS3
-EVENTS_TESTS += events/DataEvent_as3.swf
+EVENTS_TESTS_V9 += events/DataEvent_as.swf
 endif
 
 if BUILD_ERROREVENT_AS3
-EVENTS_TESTS += events/ErrorEvent_as3.swf
+EVENTS_TESTS_V9 += events/ErrorEvent_as.swf
 endif
 
 if BUILD_EVENTDISPATCHER_AS3
-EVENTS_TESTS += events/EventDispatcher_as3.swf
+EVENTS_TESTS_V9 += events/EventDispatcher_as.swf
 endif
 
 if BUILD_EVENTPHASE_AS3
-EVENTS_TESTS += events/EventPhase_as3.swf
+EVENTS_TESTS_V9 += events/EventPhase_as.swf
 endif
 
 if BUILD_EVENT_AS3
-EVENTS_TESTS += events/Event_as3.swf
+EVENTS_TESTS_V9 += events/Event_as.swf
 endif
 
-if BUILD_FILELISTEVENT_AS3
-EVENTS_TESTS += events/FileListEvent_as3.swf
-endif
+#AIR ONLY
+#if BUILD_FILELISTEVENT_AS3
+#EVENTS_TESTS += events/FileListEvent_as.swf
+#endif
 
 if BUILD_FOCUSEVENT_AS3
-EVENTS_TESTS += events/FocusEvent_as3.swf
+EVENTS_TESTS_V9 += events/FocusEvent_as.swf
 endif
 
 if BUILD_FULLSCREENEVENT_AS3
-EVENTS_TESTS += events/FullScreenEvent_as3.swf
+EVENTS_TESTS_V9 += events/FullScreenEvent_as.swf
 endif
 
-if BUILD_HTMLUNCAUGHTSCRIPTEXCEPTIONEVENT_AS3
-EVENTS_TESTS += events/HTMLUncaughtScriptExceptionEvent_as3.swf
-endif
+#AIR ONLY
+#if BUILD_HTMLUNCAUGHTSCRIPTEXCEPTIONEVENT_AS3
+#EVENTS_TESTS += events/HTMLUncaughtScriptExceptionEvent_as.swf
+#endif
 
 if BUILD_HTTPSTATUSEVENT_AS3
-EVENTS_TESTS += events/HTTPStatusEvent_as3.swf
+EVENTS_TESTS_V9 += events/HTTPStatusEvent_as.swf
 endif
 
-if BUILD_IEVENTDISPATCHER_AS3
-EVENTS_TESTS += events/IEventDispatcher_as3.swf
-endif
+#THIS IS AN INTERFACE
+#if BUILD_IEVENTDISPATCHER_AS3
+#EVENTS_TESTS_V9 += events/IEventDispatcher_as.swf
+#endif
 
 if BUILD_IMEEVENT_AS3
-EVENTS_TESTS += events/IMEEvent_as3.swf
+EVENTS_TESTS_V9 += events/IMEEvent_as.swf
 endif
 
 if BUILD_IOERROREVENT_AS3
-EVENTS_TESTS += events/IOErrorEvent_as3.swf
+EVENTS_TESTS += events/IOErrorEvent_as.swf
 endif
 
-if BUILD_INVOKEEVENT_AS3
-EVENTS_TESTS += events/InvokeEvent_as3.swf
-endif
+#not implemented in haxe
+#if BUILD_INVOKEEVENT_AS3
+#EVENTS_TESTS += events/InvokeEvent_as.swf
+#endif
 
 if BUILD_KEYBOARDEVENT_AS3
-EVENTS_TESTS += events/KeyboardEvent_as3.swf
+EVENTS_TESTS_V9 += events/KeyboardEvent_as.swf
 endif
 
 if BUILD_MOUSEEVENT_AS3
-EVENTS_TESTS += events/MouseEvent_as3.swf
-endif
-
-if BUILD_NATIVEDRAGEVENT_AS3
-EVENTS_TESTS += events/NativeDragEvent_as3.swf
-endif
-
-if BUILD_NATIVEWINDOWBOUNDSEVENT_AS3
-EVENTS_TESTS += events/NativeWindowBoundsEvent_as3.swf
-endif
-
-if BUILD_NATIVEWINDOWDISPLAYSTATEEVENT_AS3
-EVENTS_TESTS += events/NativeWindowDisplayStateEvent_as3.swf
-endif
+EVENTS_TESTS_V9 += events/MouseEvent_as.swf
+endif
+
+#AIR ONLY
+#if BUILD_NATIVEDRAGEVENT_AS3
+#EVENTS_TESTS += events/NativeDragEvent_as.swf
+#endif
+
+#AIR ONLY
+#if BUILD_NATIVEWINDOWBOUNDSEVENT_AS3
+#EVENTS_TESTS += events/NativeWindowBoundsEvent_as.swf
+#endif
+
+#AIR ONLY
+#if BUILD_NATIVEWINDOWDISPLAYSTATEEVENT_AS3
+#EVENTS_TESTS += events/NativeWindowDisplayStateEvent_as.swf
+#endif
 
 if BUILD_NETSTATUSEVENT_AS3
-EVENTS_TESTS += events/NetStatusEvent_as3.swf
+EVENTS_TESTS_V9 += events/NetStatusEvent_as.swf
 endif
 
-if BUILD_OUTPUTPROGRESSEVENT_AS3
-EVENTS_TESTS += events/OutputProgressEvent_as3.swf
-endif
+#AIR ONLY
+#if BUILD_OUTPUTPROGRESSEVENT_AS3
+#EVENTS_TESTS += events/OutputProgressEvent_as.swf
+#endif
 
 if BUILD_PROGRESSEVENT_AS3
-EVENTS_TESTS += events/ProgressEvent_as3.swf
-endif
-
-if BUILD_SQLERROREVENT_AS3
-EVENTS_TESTS += events/SQLErrorEvent_as3.swf
-endif
-
-if BUILD_SQLEVENT_AS3
-EVENTS_TESTS += events/SQLEvent_as3.swf
-endif
-
-if BUILD_SQLUPDATEEVENT_AS3
-EVENTS_TESTS += events/SQLUpdateEvent_as3.swf
-endif
-
-if BUILD_SCREENMOUSEEVENT_AS3
-EVENTS_TESTS += events/ScreenMouseEvent_as3.swf
-endif
+EVENTS_TESTS_V9 += events/ProgressEvent_as.swf
+endif
+
+#AIR ONLY
+#if BUILD_SQLERROREVENT_AS3
+#EVENTS_TESTS += events/SQLErrorEvent_as.swf
+#endif
+
+#AIR ONLY
+#if BUILD_SQLEVENT_AS3
+#EVENTS_TESTS += events/SQLEvent_as.swf
+#endif
+
+#AIR ONLY
+#if BUILD_SQLUPDATEEVENT_AS3
+#EVENTS_TESTS += events/SQLUpdateEvent_as.swf
+#endif
+
+#AIR ONLY
+#if BUILD_SCREENMOUSEEVENT_AS3
+#EVENTS_TESTS += events/ScreenMouseEvent_as.swf
+#endif
+
 
 if BUILD_SECURITYERROREVENT_AS3
-EVENTS_TESTS += events/SecurityErrorEvent_as3.swf
+EVENTS_TESTS_V9 += events/SecurityErrorEvent_as.swf
 endif
 
 if BUILD_STATUSEVENT_AS3
-EVENTS_TESTS += events/StatusEvent_as3.swf
+EVENTS_TESTS_V9 += events/StatusEvent_as.swf
 endif
 
 if BUILD_SYNCEVENT_AS3
-EVENTS_TESTS += events/SyncEvent_as3.swf
+EVENTS_TESTS_V9 += events/SyncEvent_as.swf
 endif
 
 if BUILD_TEXTEVENT_AS3
-EVENTS_TESTS += events/TextEvent_as3.swf
+EVENTS_TESTS_V9 += events/TextEvent_as.swf
 endif
 
 if BUILD_TIMEREVENT_AS3
-EVENTS_TESTS += events/TimerEvent_as3.swf
+EVENTS_TESTS_V9 += events/TimerEvent_as.swf
 endif
 
-check_SCRIPTS += $(EVENTS_TESTS)
+check_SCRIPTS += $(EVENTS_TESTS_V9)
 HAXE_FLAGS += -cp $(EVENTSdir)

=== modified file 'testsuite/as3/classes.all/external/external.am'
--- a/testsuite/as3/classes.all/external/external.am    2009-05-21 00:17:43 
+0000
+++ b/testsuite/as3/classes.all/external/external.am    2009-06-11 22:18:59 
+0000
@@ -17,11 +17,11 @@
 
 EXTERNALdir = $(srcdir)/external
 
-EXTERNAL_TESTS = 
+EXTERNAL_TESTS_V9 = 
 
 if BUILD_EXTERNALINTERFACE_AS3
-EXTERNAL_TESTS += external/ExternalInterface_as.swf
+EXTERNAL_TESTS_V9 += external/ExternalInterface_as.swf
 endif
 
-check_SCRIPTS += $(EXTERNAL_TESTS)
+check_SCRIPTS += $(EXTERNAL_TESTS_V9)
 HAXE_FLAGS += -cp $(EXTERNALdir)

=== modified file 'testsuite/as3/classes.all/filesystem/filesystem.am'
--- a/testsuite/as3/classes.all/filesystem/filesystem.am        2009-05-20 
16:47:49 +0000
+++ b/testsuite/as3/classes.all/filesystem/filesystem.am        2009-06-11 
22:18:59 +0000
@@ -17,19 +17,22 @@
 
 FILESYSTEMdir = $(srcdir)/filesystem
 
-FILESYSTEM_SOURCES = 
-
-if BUILD_FILEMODE_AS3
-FILESYSTEM_SOURCES += filesystem/FileMode_as3.cpp
-endif
-
-if BUILD_FILESTREAM_AS3
-FILESYSTEM_SOURCES += filesystem/FileStream_as3.cpp
-endif
-
-if BUILD_FILE_AS3
-FILESYSTEM_SOURCES += filesystem/File_as3.cpp
-endif
-
-check_SCRIPTS += $(FILESYSTEM_TESTS)
+FILESYSTEM_SOURCES_V9 = 
+
+#AIR ONLY
+#if BUILD_FILEMODE_AS3
+#FILESYSTEM_SOURCES_V9 += filesystem/FileMode_as.swf
+#endif
+
+#AIR ONLY
+#if BUILD_FILESTREAM_AS3
+#FILESYSTEM_SOURCES += filesystem/FileStream_as3.cpp
+#endif
+
+#AIR ONLY
+#if BUILD_FILE_AS3
+#FILESYSTEM_SOURCES += filesystem/File_as3.cpp
+#endif
+
+check_SCRIPTS += $(FILESYSTEM_TESTS_V9)
 HAXE_FLAGS += -cp $(FILESYSTEMdir)

=== modified file 'testsuite/as3/classes.all/filters/BevelFilter_as.hx'
--- a/testsuite/as3/classes.all/filters/BevelFilter_as.hx       2009-06-03 
15:32:04 +0000
+++ b/testsuite/as3/classes.all/filters/BevelFilter_as.hx       2009-06-11 
22:18:59 +0000
@@ -40,7 +40,8 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class BevelFilter_as {
     static function main() {
-        var x1:BevelFilter = new BevelFilter();
+        #if (!flash7 && !flash6)
+               var x1:BevelFilter = new BevelFilter();
 
         // Make sure we actually get a valid class        
         if (x1 != null) {
@@ -120,7 +121,7 @@
        } else {
            DejaGnu.fail("BevelFilter::clone() method doesn't exist");
        }
-
+               #end
         // Call this after finishing all tests. It prints out the totals.
         DejaGnu.done();
     }

=== modified file 'testsuite/as3/classes.all/filters/filters.am'
--- a/testsuite/as3/classes.all/filters/filters.am      2009-05-20 16:47:49 
+0000
+++ b/testsuite/as3/classes.all/filters/filters.am      2009-06-11 22:18:59 
+0000
@@ -17,10 +17,11 @@
 
 FILTERSdir = $(srcdir)/filters
 
-FILTERS_TESTS = 
+FILTERS_TESTS =
+FILTERS_TESTS_V8 =  
 
 if BUILD_BEVELFILTER_AS3
-FILTERS_TESTS += filters/BevelFilter_as3.swf
+FILTERS_TESTS_V8 += filters/BevelFilter_as.swf
 endif
 
 if BUILD_BITMAPFILTERQUALITY_AS3

=== modified file 'testsuite/as3/classes.all/xml/XMLNode_as.hx'
--- a/testsuite/as3/classes.all/xml/XMLNode_as.hx       2009-06-04 21:48:41 
+0000
+++ b/testsuite/as3/classes.all/xml/XMLNode_as.hx       2009-06-11 22:18:59 
+0000
@@ -28,7 +28,8 @@
 import flash.xml.XMLNodeType;
 import flash.display.MovieClip;
 #else
-import flash.XMLNode;
+//this functionality is currently not built into haxe
+//import flash.XMLNode;
 import flash.MovieClip;
 #end
 import flash.Lib;
@@ -41,7 +42,7 @@
 // Class must be named with the _as suffix, as that's the same name as the 
file.
 class XMLNode_as {
     static function main() {
-       #if flash
+       #if flash9
         var x1:XMLNode = new XMLNode(XMLNodeType.ELEMENT_NODE, null);  
        
         // Make sure we actually get a valid class        

=== modified file 'testsuite/as3/classes.all/xml/xml.am'
--- a/testsuite/as3/classes.all/xml/xml.am      2009-06-10 03:25:14 +0000
+++ b/testsuite/as3/classes.all/xml/xml.am      2009-06-11 22:18:59 +0000
@@ -34,5 +34,5 @@
 XML_TESTS_V6 += xml/XMLNode_as.swf
 endif
 
-check_SCRIPTS += $(XML_TESTS_v8) $(XML_TESTS_v9)
+check_SCRIPTS += $(XML_TESTS_v6) $(XML_TESTS_v9)
 HAXE_FLAGS += -cp $(XMLdir)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]