@awayfl/avm1
Version:
Virtual machine for executing AS1 and AS2 code
69 lines • 2.79 kB
TypeScript
import { IDisplayObjectAdapter, IFilter } from '@awayjs/scene';
import { IAVM1Context, IAVM1Callable, AVM1DefaultValueHint } from '../runtime';
import { IAsset } from '@awayjs/core';
import { AVM1Context } from '../context';
import { AVM1PropertyDescriptor } from './AVM1PropertyDescriptor';
/**
* Base class for object instances we prefer to not inherit Object.prototype properties.
*/
export declare class NullPrototypeObject {
}
/**
* Base class for the ActionScript AVM1 object.
*/
export declare class AVM1Object extends NullPrototypeObject implements IDisplayObjectAdapter {
_ownProperties: any;
_prototype: AVM1Object;
_avm1Context: IAVM1Context;
adaptee: IAsset;
avmType: string;
protected initialDepth: number;
protected scriptRefsToChilds: any;
_eventObserver: AVM1Object;
_blockedByScript: boolean;
_ctBlockedByScript: boolean;
protoTypeChanged: boolean;
protected _visibilityByScript: boolean;
private _isGhost;
get isGhost(): boolean;
get eventObserver(): AVM1Object;
set eventObserver(value: AVM1Object);
/**
* Move object to ghost mode, we can't recover back from this mode, all props and methods will be undef
*/
makeGhost(): void;
dispose(): any;
updateFilters(newFilters: IFilter[]): void;
isBlockedByScript(): boolean;
isColorTransformByScript(): boolean;
isVisibilityByScript(): boolean;
initAdapter(): void;
freeFromScript(): void;
clone(): AVM1Object;
get context(): AVM1Context;
constructor(avm1Context: IAVM1Context);
get alPrototype(): AVM1Object;
set alPrototype(v: AVM1Object);
alGetPrototypeProperty(): AVM1Object;
alSetOwnPrototypeProperty(v: any): void;
alGetConstructorProperty(): AVM1Object;
alSetOwnConstructorProperty(v: any): void;
_debugEscapeProperty(p: any): string;
alGetOwnProperty(name: string | number): AVM1PropertyDescriptor;
alSetOwnProperty(propName: string | number, desc: AVM1PropertyDescriptor): void;
alHasOwnProperty(propName: string | number): boolean;
alDeleteOwnProperty(propName: string | number): void;
deleteOwnProperties(): void;
alGetOwnPropertiesKeys(): string[];
alGetProperty(propName: string | number): AVM1PropertyDescriptor;
alGet(propName: string | number): any;
alCanPut(propName: string | number): boolean;
alPut(propName: string | number, value: any): void;
alHasProperty(p: any): boolean;
alDeleteProperty(propName: string | number): boolean;
alAddPropertyWatcher(propName: string | number, callback: IAVM1Callable, userData: any): boolean;
alRemotePropertyWatcher(p: any): boolean;
alDefaultValue(hint?: AVM1DefaultValueHint): any;
alGetKeys(): string[];
}
//# sourceMappingURL=AVM1Object.d.ts.map