2.2.31 • Published 1 year ago

@types/swfobject v2.2.31

Weekly downloads
4,460
License
MIT
Repository
github
Last release
1 year ago

Installation

npm install --save @types/swfobject

Summary

This package contains type definitions for swfobject (https://code.google.com/p/swfobject/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/swfobject.

index.d.ts

// Type definitions for swfobject v2.2
// Project: https://code.google.com/p/swfobject/
// Definitions by: rou <https://github.com/rou>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare var swfobject: swfobject.SwfObject;

declare namespace swfobject {
  export interface SwfObject {
    ua: {
      w3: boolean;
      pv: number[];
      wk: any;    // number or boolean
      ie: boolean;
      win: boolean;
      mac: boolean;
    };

    registerObject(
      objectIdStr: string,
      swfVersionStr: string,
      xiSwfUrlStr?: string,
      callbackFn?: (callbackObj: ICallbackObj) => void
    ): void;

    getObjectById(
      objectIdStr: string
    ): HTMLElement;

    embedSWF(
      swfUrlStr: string,
      replaceElemIdStr: string,
      widthStr: string,
      heightStr: string,
      swfVersionStr: string,
      xiSwfUrlStr?: string,
      flashvarsObj?: Object,
      parObj?: Object,
      attObj?: Object,
      callbackFn?: (callbackObj: ICallbackObj) => void
    ): void;

    switchOffAutoHideShow(): void;

    getFlashPlayerVersion(): IFlashPlayerVersion;

    hasFlashPlayerVersion(
      rv: string
    ): boolean;

    createSWF(
      attObj: ISwfObjectAttribute,
      parObj: ISwfObjectParameter,
      replaceElemIdStr: string
    ): HTMLElement;

    showExpressInstall(
      att: ISwfObjectAttribute,
      par: ISwfObjectParameter,
      replaceElemIdStr: string,
      callbackFn?: (callbackObj: ICallbackObj) => void
    ): void;

    removeSWF(
      objElemIdStr: string
    ): void;

    createCSS(
      selStr: string,
      declStr: string,
      mediaStr?: string,
      newStyleBoolean?: boolean
    ): void;

    addDomLoadEvent(
      fn: () => void
    ): void;

    addLoadEvent(
      fn: (event?: Event) => void
    ): void;

    getQueryParamValue(
      param?: string
    ): string;
  }

  export interface IFlashPlayerVersion {
    major: number;
    minor: number;
    release: number;
  }

  export interface ISwfObjectAttribute {
    id?: string | undefined;
    width?: string | undefined;
    height?: string | undefined;
  }

  export interface ISwfObjectParameter {
    flashvars?: string | undefined;
  }

  export interface ICallbackObj {
    success: boolean;
    id: string;
    ref?: HTMLElement | undefined;
  }
}

Additional Details

  • Last updated: Fri, 02 Jul 2021 22:33:18 GMT
  • Dependencies: none
  • Global values: swfobject

Credits

These definitions were written by rou.

2.2.29

1 year ago

2.2.31

1 year ago

2.2.30

1 year ago

2.2.28

3 years ago

2.2.27

8 years ago

2.2.26

8 years ago

2.2.25-alpha

8 years ago

2.2.24-alpha

8 years ago

2.2.23-alpha

8 years ago

2.2.22-alpha

8 years ago

2.2.21-alpha

8 years ago

2.2.20-alpha

9 years ago

2.2.19-alpha

9 years ago

2.2.14-alpha

9 years ago

2.2.13-alpha

9 years ago