UNPKG

@awayfl/avm1

Version:

Virtual machine for executing AS1 and AS2 code

28 lines 1.23 kB
import { IAVMHandler, AVMStage } from '@awayfl/swf-loader'; import { SWFFile } from '@awayfl/swf-loader'; import { ISceneGraphFactory, DisplayObject } from '@awayjs/scene'; import { IAsset, EventBase } from '@awayjs/core'; import { AVM1EventProps } from './lib/AVM1EventHandler'; export declare class AVM1Handler implements IAVMHandler { avmVersion: string; private _avmStage; private _factory; private enterEvent; private exitEvent; private avm1Listener; get factory(): ISceneGraphFactory; init(avmStage: AVMStage, swfFile: SWFFile, callback: (hasInit: boolean) => void): void; private collectMCs; enterFrame(dt: number): void; private onKeyEvent; addAVM1EventListener(asset: IAsset, type: string, callback: (event: EventBase) => void, eventProps: AVM1EventProps): void; removeAVM1EventListener(asset: IAsset, type: string, callback: (event: EventBase) => void): void; clearAllAVM1Listener(): void; private _collectedDispatcher; collectMousEvents(child: DisplayObject): void; onMouseEvent(mouseEvent: EventBase): void; dispose(): void; resizeStage(): void; addAsset(asset: IAsset, addScene: boolean): void; } //# sourceMappingURL=AVM1Handler.d.ts.map