forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
swfobject.d.ts
109 lines (90 loc) · 2.19 KB
/
swfobject.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
// Type definitions for swfobject v2.2
// Project: https://code.google.com/p/swfobject/
// Definitions by: rou <https://github.com/rou>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare var swfobject: swfobject.SwfObject;
declare module 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;
width?: string;
height?: string;
}
export interface ISwfObjectParameter {
flashvars?: string;
}
export interface ICallbackObj {
success: boolean;
id: string;
ref?: HTMLElement;
}
}