Dateianhang 'template_4frames.sc'
Herunterladen 1 # template_4frames.sc
2
3 # SWF Movie Control (4 swfs)
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_4frames.swf" version=7 background=white fps=10
23
24
25 .jpeg goto_first_slide "first.jpg" quality=100%
26 .jpeg goto_next_slide "next.jpg" quality=100%
27 .jpeg goto_previous_slide "previous.jpg" quality=100%
28 .jpeg goto_last_slide "last.jpg" quality=100%
29 .jpeg do_start "start.jpg" quality=100%
30 .jpeg do_stop "stop.jpg" quality=100%
31 .jpeg faster "plus.jpg" quality=100%
32 .jpeg slower "minus.jpg" quality=100%
33 .jpeg normal_fps "null.jpg" quality=100%
34 .swf framerate_swf "framerate.swf"
35
36 .put framerate_swf x=950 y=-50 scale=100%
37
38
39 .box viewport1 width=576 height=576 color=gray fill=white
40 .put viewport1 x=70 y=0 scale=100%
41
42 .box viewport2 width=576 height=576 color=gray fill=white
43 .put viewport2 x=650 y=0 scale=100%
44
45 .box viewport3 width=576 height=576 color=gray fill=white
46 .put viewport3 x=70 y=580 scale=100%
47
48 .box viewport4 width=576 height=576 color=gray fill=white
49 .put viewport4 x=650 y=580 scale=100%
50
51
52 .action:
53 framerate_swf.gotoAndStop(5);
54 StopAll();
55
56 function StopAll(){
57 viewport1.Stop();
58 viewport2.Stop();
59 viewport3.Stop();
60 viewport4.Stop();}
61
62 .end
63
64
65 .button framerate_slower
66 .show slower as=idle,area,hover,pressed scale=100%
67 .on_release inside:{
68 if(framerate>1){
69 framerate=framerate-1;
70 framerate_swf.prevframe(1);}
71 clearInterval( intervalID1 );
72 clearInterval( intervalID2 );
73 clearInterval( intervalID3 );
74 clearInterval( intervalID4 );
75
76 if(intervalID1 != 0){
77 intervalID1 = setInterval( PlayMovie1, 1000/framerate );}
78
79 if(intervalID2 != 0){
80 intervalID2 = setInterval( PlayMovie2, 1000/framerate );}
81
82 if(intervalID3 != 0){
83 intervalID3 = setInterval( PlayMovie3, 1000/framerate );}
84
85 if(intervalID4 != 0){
86 intervalID4 = setInterval( PlayMovie4, 1000/framerate );}}
87
88 .end
89 .end
90
91
92 .button framerate_5
93 .show normal_fps as=idle,area,hover,pressed scale=100%
94 .on_release inside:{
95 framerate=5;
96 framerate_swf.gotoAndStop(5);
97 clearInterval( intervalID1 );
98 clearInterval( intervalID2 );
99 clearInterval( intervalID3 );
100 clearInterval( intervalID4 );
101
102 if(intervalID1 != 0)
103 intervalID1 = setInterval( PlayMovie1, 1000/framerate );
104
105 if(intervalID2 != 0)
106 intervalID2 = setInterval( PlayMovie2, 1000/framerate );
107
108 if(intervalID3 != 0)
109 intervalID3 = setInterval( PlayMovie3, 1000/framerate );
110
111 if(intervalID4 != 0)
112 intervalID4 = setInterval( PlayMovie4, 1000/framerate );}
113 .end
114 .end
115
116
117 .button framerate_faster
118 .show faster as=idle,area,hover,pressed scale=100%
119 .on_release inside:{
120 if(framerate<10){
121 framerate=framerate+1;
122 framerate_swf.nextframe(1);}
123 clearInterval( intervalID1 );
124 clearInterval( intervalID2 );
125 clearInterval( intervalID3 );
126 clearInterval( intervalID4 );
127
128
129 if(intervalID1 != 0){
130 intervalID1 = setInterval( PlayMovie1, 1000/framerate );}
131
132 if(intervalID2 != 0){
133 intervalID2 = setInterval( PlayMovie2, 1000/framerate );}
134
135 if(intervalID3 != 0){
136 intervalID3 = setInterval( PlayMovie3, 1000/framerate );}
137
138 if(intervalID4 != 0){
139 intervalID4 = setInterval( PlayMovie4, 1000/framerate );}}
140
141 .end
142 .end
143
144
145
146 .action:
147
148 var intervalID1=0;
149 var intervalID2=0;
150 var intervalID3=0;
151 var intervalID4=0;
152 var framerate=5;
153
154 function PlayMovie1(){
155 if(viewport1._currentframe==viewport1._totalframes)
156 viewport1.gotoAndStop(1);
157 else
158 viewport1.nextframe();
159 updateAfterEvent();}
160
161 function PlayMovie2(){
162 if(viewport2._currentframe==viewport2._totalframes)
163 viewport2.gotoAndStop(1);
164 else
165 viewport2.nextframe();
166 updateAfterEvent();}
167
168 function PlayMovie3(){
169 if(viewport3._currentframe==viewport3._totalframes)
170 viewport3.gotoAndStop(1);
171 else
172 viewport3.nextframe();
173 updateAfterEvent();}
174
175 function PlayMovie4(){
176 if(viewport4._currentframe==viewport4._totalframes)
177 viewport4.gotoAndStop(1);
178 else
179 viewport4.nextframe();
180 updateAfterEvent();}
181
182 .end
183
184
185
186
187 .button firstbutton0
188 .show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
189 .on_release inside:
190 clearInterval( intervalID );
191 viewport1.gotoAndStop(1);
192 viewport2.gotoAndStop(1);
193 viewport3.gotoAndStop(1);
194 viewport4.gotoAndStop(1);
195 .end
196 .end
197
198 .button firstbutton1
199 .show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
200 .on_release inside:
201 viewport1.gotoAndStop(1);
202 .end
203 .end
204
205 .button firstbutton2
206 .show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
207 .on_release inside:
208 viewport2.gotoAndStop(1);
209 .end
210 .end
211
212 .button firstbutton3
213 .show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
214 .on_release inside:
215 viewport3.gotoAndStop(1);
216 .end
217 .end
218
219 .button firstbutton4
220 .show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
221 .on_release inside:
222 viewport4.gotoAndStop(1);
223 .end
224 .end
225
226
227
228 .button minusbutton0
229 .show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
230 .on_release inside:
231 viewport1.prevframe(1);
232 viewport2.prevframe(1);
233 viewport3.prevframe(1);
234 viewport4.prevframe(1);
235 .end
236 .end
237
238 .button minusbutton1
239 .show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
240 .on_release inside:
241 viewport1.prevframe(1);
242 .end
243 .end
244
245 .button minusbutton2
246 .show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
247 .on_release inside:
248 viewport2.prevframe(1);
249 .end
250 .end
251
252 .button minusbutton3
253 .show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
254 .on_release inside:
255 viewport3.prevframe(1);
256 .end
257 .end
258
259
260 .button minusbutton4
261 .show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
262 .on_release inside:
263 viewport4.prevframe(1);
264 .end
265 .end
266
267 .button stopbutton0
268 .show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
269 .on_release inside:{
270 clearInterval(intervalID1);
271 clearInterval(intervalID2);
272 clearInterval(intervalID3);
273 clearInterval(intervalID4);
274 intervalID1=0;
275 intervalID2=0;
276 intervalID3=0;
277 intervalID4=0;
278 StopAll();}
279 .end
280 .end
281
282 .button stopbutton1
283 .show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
284 .on_release inside:
285 viewport1.Stop();
286 clearInterval(intervalID1);
287 intervalID1=0;
288 .end
289 .end
290
291 .button stopbutton2
292 .show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
293 .on_release inside:
294 viewport2.Stop();
295 clearInterval(intervalID2);
296 intervalID2=0;
297 .end
298 .end
299
300 .button stopbutton3
301 .show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
302 .on_release inside:
303 viewport3.Stop();
304 clearInterval(intervalID3);
305 intervalID3=0;
306 .end
307 .end
308
309 .button stopbutton4
310 .show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
311 .on_release inside:
312 viewport4.Stop();
313 clearInterval(intervalID4);
314 intervalID4=0;
315 .end
316 .end
317
318
319 .button playbutton0
320 .show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
321 .on_release inside:{
322 clearInterval( intervalID1 );
323 clearInterval( intervalID2 );
324 clearInterval( intervalID3 );
325 clearInterval( intervalID4 );
326 intervalID1 = setInterval( PlayMovie1, 1000/framerate );
327 intervalID2 = setInterval( PlayMovie2, 1000/framerate );
328 intervalID3 = setInterval( PlayMovie3, 1000/framerate );
329 intervalID4 = setInterval( PlayMovie4, 1000/framerate );}
330 .end
331 .end
332
333 .button playbutton1
334 .show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
335 .on_release inside:
336 clearInterval( intervalID1 );
337 intervalID1 = setInterval( PlayMovie1, 1000/framerate );
338 .end
339 .end
340
341 .button playbutton2
342 .show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
343 .on_release inside:
344 clearInterval( intervalID2 );
345 intervalID2 = setInterval( PlayMovie2, 1000/framerate );
346 .end
347 .end
348
349 .button playbutton3
350 .show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
351 .on_release inside:
352 clearInterval( intervalID3 );
353 intervalID3 = setInterval( PlayMovie3, 1000/framerate );
354 .end
355 .end
356
357 .button playbutton4
358 .show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
359 .on_release inside:
360 clearInterval( intervalID4 );
361 intervalID4 = setInterval( PlayMovie4, 1000/framerate );
362 .end
363 .end
364
365
366
367 .button plusbutton0
368 .show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
369 .on_release inside:
370 viewport1.nextframe(1);
371 viewport2.nextframe(1);
372 viewport3.nextframe(1);
373 viewport4.nextframe(1);
374 .end
375 .end
376
377 .button plusbutton1
378 .show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
379 .on_release inside:
380 viewport1.nextframe(1);
381 .end
382 .end
383
384 .button plusbutton2
385 .show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
386 .on_release inside:
387 viewport2.nextframe(1);
388 .end
389 .end
390
391 .button plusbutton3
392 .show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
393 .on_release inside:
394 viewport3.nextframe(1);
395 .end
396 .end
397
398 .button plusbutton4
399 .show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
400 .on_release inside:
401 viewport4.nextframe(1);
402 .end
403 .end
404
405
406 .button lastbutton0
407 .show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
408 .on_release inside:
409 clearInterval( intervalID );
410 viewport1.gotoAndStop(10000);
411 viewport2.gotoAndStop(10000);
412 viewport3.gotoAndStop(10000);
413 viewport4.gotoAndStop(10000);
414 .end
415 .end
416
417 .button lastbutton1
418 .show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
419 .on_release inside:
420 viewport1.gotoAndStop(10000);
421 .end
422 .end
423
424 .button lastbutton2
425 .show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
426 .on_release inside:
427 viewport2.gotoAndStop(10000);
428 .end
429 .end
430
431 .button lastbutton3
432 .show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
433 .on_release inside:
434 viewport3.gotoAndStop(10000);
435 .end
436 .end
437
438 .button lastbutton4
439 .show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
440 .on_release inside:
441 viewport4.gotoAndStop(10000);
442 .end
443 .end
444
445
446 .put firstbutton0 x=560 y=-50
447 .put firstbutton1 x=10 y=0
448 .put firstbutton2 x=1240 y=0
449 .put firstbutton3 x=10 y=580
450 .put firstbutton4 x=1240 y=580
451 .put minusbutton0 x=590 y=-50
452 .put minusbutton1 x=10 y=30
453 .put minusbutton2 x=1240 y=30
454 .put minusbutton3 x=10 y=610
455 .put minusbutton4 x=1240 y=610
456 .put stopbutton0 x=620 y=-50
457 .put stopbutton1 x=10 y=60
458 .put stopbutton2 x=1240 y=60
459 .put stopbutton3 x=10 y=640
460 .put stopbutton4 x=1240 y=640
461 .put playbutton0 x=650 y=-50
462 .put playbutton1 x=10 y=90
463 .put playbutton2 x=1240 y=90
464 .put playbutton3 x=10 y=670
465 .put playbutton4 x=1240 y=670
466 .put plusbutton0 x=680 y=-50
467 .put plusbutton1 x=10 y=120
468 .put plusbutton2 x=1240 y=120
469 .put plusbutton3 x=10 y=700
470 .put plusbutton4 x=1240 y=700
471 .put lastbutton0 x=710 y=-50
472 .put lastbutton1 x=10 y=150
473 .put lastbutton2 x=1240 y=150
474 .put lastbutton3 x=10 y=730
475 .put lastbutton4 x=1240 y=730
476 .put framerate_slower x=800 y=-50
477 .put framerate_faster x=880 y=-50
478 .put framerate_5 x=840 y=-50
479
480
481 .end
482
483
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!