1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19\startluaparameterset[shockwave:display]
20 toolbar = true,
21
22 open = "click",
23 close = "focus",
24\stopluaparameterset
25
26\startJSpreamble shockwave used now
27
28 function StartShockwave(label) {
29 var rm = this.getAnnotsRichMedia(this.pageNum,label)[0] ;
30 if (rm.activated) {
31 rm.callAS("multimediaplay") ;
32 } else {
33 rm.activated = true ;
34 }
35 }
36
37 function StopShockwave(label) {
38 var rm = this.getAnnotsRichMedia(this.pageNum,label)[0] ;
39 if (rm.activated) {
40 rm.callAS("multimediapause") ;
41 rm.callAS("multimediarewind") ;
42 }
43 }
44
45 function RewindShockwave(label) {
46 var rm = this.getAnnotsRichMedia(this.pageNum,label)[0] ;
47 if (rm.activated) {
48 rm.callAS("multimediarewind") ;
49 }
50 }
51
52 function PauseShockwave(label) {
53 var rm = this.getAnnotsRichMedia(this.pageNum,label)[0] ;
54 if (rm.activated) {
55 rm.callAS("multimediapause") ;
56 }
57 }
58
59\stopJSpreamble
60
61\definereference[StartShockwave] [JS(StartShockwave)]
62\definereference[StopShockwave] [JS(StopShockwave)]
63\definereference[RewindShockwave][JS(RewindShockwave)]
64\definereference[PauseShockwave] [JS(PauseShockwave)]
65
66\unprotect
67
68\doglobal \useexternalfigure
69 [shockwave]
70 [videoplayer.swf]
71 [\c!arguments=\luaparameterset{shockwave:arguments}{source="\externalfigureparameter\v!file"},
72 \c!resources=\luaparameterset{shockwave:resources}{files={"\externalfigureparameter\v!file"}},
73 \c!display=shockwave:display]
74
75
76
77
78
79
80
81
82\protect \endinput
83 |