Kaynağa Gözat

less Dynamic

Nicolas Cannasse 19 yıl önce
ebeveyn
işleme
23f6cfbd43
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      std/flash9/events/EventDispatcher.hx

+ 2 - 2
std/flash9/events/EventDispatcher.hx

@@ -2,10 +2,10 @@ package flash.events;
 
 extern class EventDispatcher implements flash.events.IEventDispatcher {
 	function new(?target : flash.events.IEventDispatcher) : Void;
-	function addEventListener(type : String, listener : Dynamic -> Void, ?useCapture : Bool, ?priority : Int, ?useWeakReference : Bool) : Void;
+	function addEventListener(type : String, listener : Event -> Void, ?useCapture : Bool, ?priority : Int, ?useWeakReference : Bool) : Void;
 	function dispatchEvent(event : flash.events.Event) : Bool;
 	function hasEventListener(type : String) : Bool;
-	function removeEventListener(type : String, listener : Dynamic -> Void, ?useCapture : Bool) : Void;
+	function removeEventListener(type : String, listener : Event -> Void, ?useCapture : Bool) : Void;
 	function toString() : String;
 	function willTrigger(type : String) : Bool;
 	private function dispatchEventFunction(event : flash.events.Event) : Bool;