Dateianhang 'template_2frames_describe.sc'
Herunterladen 1 # template_2frames_describe.sc
2
3 # SWF Movie Control (2 swfs with description)
4
5 # Copyright (c) 2006 Markus Effer <m.effer@fz-juelich.de>
6
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
21
22 .flash filename="template_2frames_describe.swf" version=7 background=white fps=10
23
24
25 .box description width=400 height=576 fill=white line=5
26 .put description x=1300 y=0 scale=100%
27 .jpeg goto_first_slide "first.jpg" quality=100%
28 .jpeg goto_next_slide "next.jpg" quality=100%
29 .jpeg goto_previous_slide "previous.jpg" quality=100%
30 .jpeg goto_last_slide "last.jpg" quality=100%
31 .jpeg do_start "start.jpg" quality=100%
32 .jpeg do_stop "stop.jpg" quality=100%
33 .jpeg faster "plus.jpg" quality=100%
34 .jpeg slower "minus.jpg" quality=100%
35 .jpeg normal_fps "null.jpg" quality=100%
36 .swf framerate_swf "framerate.swf"
37
38 .put framerate_swf x=950 y=-50 scale=100%
39
40 .box viewport1 width=576 height=576 color=gray fill=white
41 .put viewport1 x=70 y=0 scale=100%
42
43 .box viewport2 width=576 height=576 color=gray fill=white
44 .put viewport2 x=650 y=0 scale=100%
45
46
47 .action:
48 framerate_swf.gotoAndStop(5);
49 StopAll();
50
51
52 function StopAll(){
53 viewport1.Stop();
54 viewport2.Stop();}
55 .end
56
57
58 .button framerate_slower
59 .show slower as=idle,area,hover,pressed scale=100%
60 .on_release inside:{
61 if(framerate>1){
62 framerate=framerate-1;
63 framerate_swf.prevframe(1);}
64 clearInterval( intervalID1 );
65 clearInterval( intervalID2 );
66
67 if(intervalID1 != 0){
68 intervalID1 = setInterval( PlayMovie1, 1000/framerate );}
69
70 if(intervalID2 != 0){
71 intervalID2 = setInterval( PlayMovie2, 1000/framerate );}}
72 .end
73 .end
74
75 .button framerate_5
76 .show normal_fps as=idle,area,hover,pressed scale=100%
77 .on_release inside:{
78 framerate=5;
79 framerate_swf.gotoAndStop(5);
80 clearInterval( intervalID1 );
81 clearInterval( intervalID2 );
82
83 if(intervalID1 != 0)
84 intervalID1 = setInterval( PlayMovie1, 1000/framerate );
85
86 if(intervalID2 != 0)
87 intervalID2 = setInterval( PlayMovie2, 1000/framerate );}
88 .end
89 .end
90
91
92 .button framerate_faster
93 .show faster as=idle,area,hover,pressed scale=100%
94 .on_release inside:{
95 if(framerate<10){
96 framerate=framerate+1;
97 framerate_swf.nextframe(1);}
98 clearInterval( intervalID1 );
99 clearInterval( intervalID2 );
100
101
102 if(intervalID1 != 0){
103 intervalID1 = setInterval( PlayMovie1, 1000/framerate );}
104
105 if(intervalID2 != 0){
106 intervalID2 = setInterval( PlayMovie2, 1000/framerate );}}
107 .end
108 .end
109
110
111 .action:
112
113 var intervalID1=0;
114 var intervalID2=0;
115 var framerate=5;
116
117
118
119 function PlayMovie1(){
120 if(viewport1._currentframe==viewport1._totalframes)
121 viewport1.gotoAndStop(1);
122 else
123 viewport1.nextframe();
124 updateAfterEvent();}
125
126 function PlayMovie2(){
127 if(viewport2._currentframe==viewport2._totalframes)
128 viewport2.gotoAndStop(1);
129 else
130 viewport2.nextframe();
131 updateAfterEvent();}
132
133 .end
134
135
136
137
138 .button firstbutton0
139 .show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
140 .on_release inside:
141 clearInterval( intervalID );
142 viewport1.gotoAndStop(1);
143 viewport2.gotoAndStop(1);
144 .end
145 .end
146
147 .button firstbutton1
148 .show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
149 .on_release inside:
150 viewport1.gotoAndStop(1);
151 .end
152 .end
153
154 .button firstbutton2
155 .show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
156 .on_release inside:
157 viewport2.gotoAndStop(1);
158 .end
159 .end
160
161 .button minusbutton0
162 .show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
163 .on_release inside:
164 viewport1.prevframe(1);
165 viewport2.prevframe(1);
166 .end
167 .end
168
169 .button minusbutton1
170 .show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
171 .on_release inside:
172 viewport1.prevframe(1);
173 .end
174 .end
175
176 .button minusbutton2
177 .show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
178 .on_release inside:
179 viewport2.prevframe(1);
180 .end
181 .end
182
183
184 .button stopbutton0
185 .show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
186 .on_release inside:{
187 clearInterval(intervalID1);
188 clearInterval(intervalID2);
189 intervalID1=0;
190 intervalID2=0;
191 StopAll();}
192 .end
193 .end
194
195 .button stopbutton1
196 .show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
197 .on_release inside:
198 viewport1.Stop();
199 clearInterval(intervalID1);
200 intervalID1=0;
201 .end
202 .end
203
204 .button stopbutton2
205 .show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
206 .on_release inside:
207 viewport2.Stop();
208 clearInterval(intervalID2);
209 intervalID2=0;
210 .end
211 .end
212
213
214 .button playbutton0
215 .show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
216 .on_release inside:{
217 clearInterval( intervalID1 );
218 clearInterval( intervalID2 );
219 intervalID1 = setInterval( PlayMovie1, 1000/framerate );
220 intervalID2 = setInterval( PlayMovie2, 1000/framerate );}
221 .end
222 .end
223
224 .button playbutton1
225 .show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
226 .on_release inside:
227 clearInterval( intervalID1 );
228 intervalID1 = setInterval( PlayMovie1, 1000/framerate );
229 .end
230 .end
231
232 .button playbutton2
233 .show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
234 .on_release inside:
235 clearInterval( intervalID2 );
236 intervalID2 = setInterval( PlayMovie2, 1000/framerate );
237 .end
238 .end
239
240
241
242 .button plusbutton0
243 .show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
244 .on_release inside:
245 viewport1.nextframe(1);
246 viewport2.nextframe(1);
247 .end
248 .end
249
250 .button plusbutton1
251 .show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
252 .on_release inside:
253 viewport1.nextframe(1);
254 .end
255 .end
256
257 .button plusbutton2
258 .show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
259 .on_release inside:
260 viewport2.nextframe(1);
261 .end
262 .end
263
264
265 .button lastbutton0
266 .show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
267 .on_release inside:
268 clearInterval( intervalID );
269 viewport1.gotoAndStop(10000);
270 viewport2.gotoAndStop(10000);
271 .end
272 .end
273
274 .button lastbutton1
275 .show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
276 .on_release inside:
277 viewport1.gotoAndStop(10000);
278 .end
279 .end
280
281 .button lastbutton2
282 .show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
283 .on_release inside:
284 viewport2.gotoAndStop(10000);
285 .end
286 .end
287
288
289 .put firstbutton0 x=560 y=-50
290 .put firstbutton1 x=10 y=0
291 .put firstbutton2 x=1240 y=0
292 .put minusbutton0 x=590 y=-50
293 .put minusbutton1 x=10 y=30
294 .put minusbutton2 x=1240 y=30
295 .put stopbutton0 x=620 y=-50
296 .put stopbutton1 x=10 y=60
297 .put stopbutton2 x=1240 y=60
298 .put playbutton0 x=650 y=-50
299 .put playbutton1 x=10 y=90
300 .put playbutton2 x=1240 y=90
301 .put plusbutton0 x=680 y=-50
302 .put plusbutton1 x=10 y=120
303 .put plusbutton2 x=1240 y=120
304 .put lastbutton0 x=710 y=-50
305 .put lastbutton1 x=10 y=150
306 .put lastbutton2 x=1240 y=150
307 .put framerate_slower x=800 y=-50
308 .put framerate_faster x=880 y=-50
309 .put framerate_5 x=840 y=-50
310
311
312 .end
313
314
Gespeicherte Dateianhänge
Um Dateianhänge in eine Seite einzufügen sollte unbedingt eine Angabe wie attachment:dateiname benutzt werden, wie sie auch in der folgenden Liste der Dateien erscheint. Es sollte niemals die URL des Verweises ("laden") kopiert werden, da sich diese jederzeit ändern kann und damit der Verweis auf die Datei brechen würde.Sie dürfen keine Anhänge an diese Seite anhängen!