@awayfl/awayfl-player
Version:
Flash Player emulator for executing SWF files (published for FP versions 6 and up) in javascript
13 lines (9 loc) • 312 B
text/typescript
import { AVMStage } from "@awayfl/swf-loader";
import { AVM2Handler } from "@awayfl/avm2";
import { PlayerGlobal } from '@awayfl/playerglobal';
export class AVM2Player extends AVMStage {
constructor(gameConfig) {
super(gameConfig);
this.registerAVMStageHandler(new AVM2Handler(new PlayerGlobal()));
}
}