UNPKG

@awayfl/avm2

Version:

Virtual machine for executing AS3 code

30 lines 1.25 kB
import { DisplayObject } from '@awayjs/scene'; import { AXClass } from './AXClass'; import { Multiname } from '../abc/lazy/Multiname'; export declare class ActiveLoaderContext { static loaderContext: any; } export declare class OrphanManager { static orphans: Record<number, WeakRef<DisplayObject> | DisplayObject>; static totalOrphansCount: number; static addOrphan(orphan?: DisplayObject): void; static removeOrphan(orphan: DisplayObject): void; static updateOrphans(): void; } /** * Generic axConstruct method that lives on the AXClass prototype. This just * creates an empty object with the right prototype and then calls the * instance initializer. * * TODO: Flatten out the argArray, or create an alternate ax helper to * make object construction faster. */ export declare function axConstruct(argArray?: any[]): any; export declare function isFastConstructSupport(mn: Multiname, trace: string[]): boolean; /** * Fast version of axConstruct, must be called when we strictly * know that elements not Interactive object and not have linked symbol, * this can save a lot of time for check */ export declare function axConstructFast(ctor: AXClass, args: any[]): any; //# sourceMappingURL=axConstruct.d.ts.map