-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflashGate.js
More file actions
51 lines (47 loc) · 1.15 KB
/
flashGate.js
File metadata and controls
51 lines (47 loc) · 1.15 KB
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
/**
@Name: sb.flashGate
@Description: Used to include swf for surebert communicate with flash player for sound, multi-file/progress upload and storage. If you want to use one of these functions on page load, (e.g. play music) make sure to wrap it in the function sb_onFlashGateLoaded so that it fires once sb.flashGate has loaded.
@Author: Paul Visco
*/
sb.include('swf');
sb.flashGate = new sb.swf({
src : sb.base+"FlashGate.swf",
//src : '${swf}.swf?d='+Math.random(),
width : 1,
height : 1,
bgColor : '#FF0000',
id : 'Flashgate',
"swLiveConnect" : "true",
flashvars : {
debug : true
}
});
sb.flashGate.debug = 0;
sb.flashGateContainer = new sb.element({
tag : 'x',
styles : {
display : 'block',
position : 'absolute',
left : '-50px',
top : '-50px'
}
});
var sb_onFlashGateLoaded = [];
sb.dom.onReady({
id : 'body',
onReady : function(){
sb.flashGateContainer.appendToTop('body');
sb.flashGate.embed(sb.flashGateContainer);
sb_onFlashGateLoaded.forEach(function(v){
if(typeof v == 'function'){
v();
}
})
},
tries : 600,
ontimeout : function(){
if(sb.flashGate.debug){
throw('Cannot append flashGate to browser');
}
}
});