@flashport/flashport
Version:
FlashPort is a TypeScript 2D graphics library that largely replicates the Flash ActionScript 3.0 library
15 lines (14 loc) • 727 B
TypeScript
import { IEventDispatcher } from "./IEventDispatcher";
import { AEvent } from "./AEvent";
export declare class EventDispatcher extends Object implements IEventDispatcher {
protected listeners: any;
constructor(target?: IEventDispatcher);
private static trimHeaderValue;
private ctor;
addEventListener: (type: string, listener: Function, useCapture?: boolean, priority?: number, useWeakReference?: boolean) => void;
removeEventListener: (type: string, listener: Function, useCapture?: boolean) => void;
dispatchEvent(event: AEvent): boolean;
hasEventListener: (type: string) => boolean;
willTrigger(param1: string): boolean;
protected dispatchEventFunction: (event: AEvent) => boolean;
}