From b2b1048dcc31506b5ddd2c5887189b2deb41ccd1 Mon Sep 17 00:00:00 2001 From: Robert Penner Date: Wed, 22 Jun 2011 19:07:33 -0700 Subject: [PATCH] DisplayObjectSignalSetTest now uses strings for Flash Player 10 event types, so it will compile for Player 9. --- .../signals/natives/sets/DisplayObjectSignalSetTest.as | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/org/osflash/signals/natives/sets/DisplayObjectSignalSetTest.as b/tests/org/osflash/signals/natives/sets/DisplayObjectSignalSetTest.as index caccd89..3191c32 100644 --- a/tests/org/osflash/signals/natives/sets/DisplayObjectSignalSetTest.as +++ b/tests/org/osflash/signals/natives/sets/DisplayObjectSignalSetTest.as @@ -194,7 +194,7 @@ package org.osflash.signals.natives.sets public function add_exitFrame_then_EventDispatcher_dispatch_should_call_signal_listener():void { signalSet.exitFrame.add(async.add(handleEvent)); - sprite.dispatchEvent(new Event(Event.EXIT_FRAME)); + sprite.dispatchEvent(new Event("exitFrame")); } ////// @@ -203,7 +203,7 @@ package org.osflash.signals.natives.sets public function add_frameConstructed_then_EventDispatcher_dispatch_should_call_signal_listener():void { signalSet.frameConstructed.add(async.add(handleEvent)); - sprite.dispatchEvent(new Event(Event.FRAME_CONSTRUCTED)); + sprite.dispatchEvent(new Event("frameConstructed")); } ////// @@ -274,7 +274,7 @@ package org.osflash.signals.natives.sets const binding : ISignalBinding = signalSet.exitFrame.add(failIfCalled); binding.enabled = false; - sprite.dispatchEvent(new Event(Event.EXIT_FRAME)); + sprite.dispatchEvent(new Event("exitFrame")); } ////// @@ -285,7 +285,7 @@ package org.osflash.signals.natives.sets const binding : ISignalBinding = signalSet.frameConstructed.add(failIfCalled); binding.enabled = false; - sprite.dispatchEvent(new Event(Event.FRAME_CONSTRUCTED)); + sprite.dispatchEvent(new Event("frameConstructed")); } //////