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\startluaparameterset[shockwave:display]
47 toolbar = true,
48
49 open = "click",
50 close = "focus",
51\stopluaparameterset
52
53\startJSpreamble shockwave used now
54
55 function StartShockwave(label) {
56 var rm = this.getAnnotsRichMedia(this.pageNum,label)[0] ;
57 if (rm.activated) {
58 ok
59 } else {
60 rm.activated = true ;
61 }
62 rm.callAS("rewind") ;
63 rm.callAS("playPause") ;
64 }
65
66 function StopShockwave(label) {
67 var rm = this.getAnnotsRichMedia(this.pageNum,label)[0] ;
68 if (rm.activated) {
69 rm.callAS("pause") ;
70 rm.callAS("rewind") ;
71 }
72 }
73
74 function RewindShockwave(label) {
75 var rm = this.getAnnotsRichMedia(this.pageNum,label)[0] ;
76 if (rm.activated) {
77 rm.callAS("rewind") ;
78 }
79 }
80
81 function PauseShockwave(label) {
82 var rm = this.getAnnotsRichMedia(this.pageNum,label)[0] ;
83 if (rm.activated) {
84 rm.callAS("playPause") ;
85 }
86 }
87
88\stopJSpreamble
89
90\definereference[StartShockwave] [JS(StartShockwave)]
91\definereference[StopShockwave] [JS(StopShockwave)]
92\definereference[RewindShockwave][JS(RewindShockwave)]
93\definereference[PauseShockwave] [JS(PauseShockwave)]
94
95\unprotect
96
97\doglobal \useexternalfigure
98 [shockwave]
99 [vplayer9.swf]
100
101 [\c!arguments=\luaparameterset{shockwave:arguments}{source="\externalfigureparameter\v!file",autoPlay=true},
102 \c!resources=\luaparameterset{shockwave:resources}{files={"\externalfigureparameter\v!file"}},
103 \c!display=shockwave:display]
104
105\protect \endinput
106 |