Dateianhang 'template_6frames.sc'
Herunterladen 1 # template_6frames.sc
2
3 # SWF Movie Control (6 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_6frames.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 .box viewport1 width=576 height=576 color=gray fill=white
39 .put viewport1 x=70 y=0 scale=100%
40
41 .box viewport2 width=576 height=576 color=gray fill=white
42 .put viewport2 x=650 y=0 scale=100%
43
44 .box viewport3 width=576 height=576 color=gray fill=white
45 .put viewport3 x=1230 y=0 scale=100%
46
47 .box viewport4 width=576 height=576 color=gray fill=white
48 .put viewport4 x=70 y=580 scale=100%
49
50 .box viewport5 width=576 height=576 color=gray fill=white
51 .put viewport5 x=650 y=580 scale=100%
52
53 .box viewport6 width=576 height=576 color=gray fill=white
54 .put viewport6 x=1230 y=580 scale=100%
55
56
57 .action:
58 framerate_swf.gotoAndStop(5);
59 StopAll();
60
61 function StopAll(){
62 viewport1.Stop();
63 viewport2.Stop();
64 viewport3.Stop();
65 viewport4.Stop();
66 viewport5.Stop();
67 viewport6.Stop();}
68
69 .end
70
71
72
73 .button framerate_slower
74 .show slower as=idle,area,hover,pressed scale=100%
75 .on_release inside:{
76 if(framerate>1){
77 framerate=framerate-1;
78 framerate_swf.prevframe(1);}
79 clearInterval( intervalID1 );
80 clearInterval( intervalID2 );
81 clearInterval( intervalID3 );
82 clearInterval( intervalID4 );
83 clearInterval( intervalID5 );
84 clearInterval( intervalID6 );
85
86 if(intervalID1 != 0){
87 intervalID1 = setInterval( PlayMovie1, 1000/framerate );}
88
89 if(intervalID2 != 0){
90 intervalID2 = setInterval( PlayMovie2, 1000/framerate );}
91
92 if(intervalID3 != 0){
93 intervalID3 = setInterval( PlayMovie3, 1000/framerate );}
94
95 if(intervalID4 != 0){
96 intervalID4 = setInterval( PlayMovie4, 1000/framerate );}
97
98 if(intervalID5 != 0){
99 intervalID5 = setInterval( PlayMovie5, 1000/framerate );}
100
101 if(intervalID6 != 0){
102 intervalID6 = setInterval( PlayMovie6, 1000/framerate );}}
103
104 .end
105 .end
106
107
108 .button framerate_5
109 .show normal_fps as=idle,area,hover,pressed scale=100%
110 .on_release inside:{
111 framerate=5;
112 framerate_swf.gotoAndStop(5);
113 clearInterval( intervalID1 );
114 clearInterval( intervalID2 );
115 clearInterval( intervalID3 );
116 clearInterval( intervalID4 );
117 clearInterval( intervalID5 );
118 clearInterval( intervalID6 );
119
120 if(intervalID1 != 0)
121 intervalID1 = setInterval( PlayMovie1, 1000/framerate );
122
123 if(intervalID2 != 0)
124 intervalID2 = setInterval( PlayMovie2, 1000/framerate );
125
126 if(intervalID3 != 0)
127 intervalID3 = setInterval( PlayMovie3, 1000/framerate );
128
129 if(intervalID4 != 0)
130 intervalID4 = setInterval( PlayMovie4, 1000/framerate );
131
132 if(intervalID5 != 0)
133 intervalID5 = setInterval( PlayMovie5, 1000/framerate );
134
135 if(intervalID6 != 0)
136 intervalID6 = setInterval( PlayMovie6, 1000/framerate );}
137 .end
138 .end
139
140
141 .button framerate_faster
142 .show faster as=idle,area,hover,pressed scale=100%
143 .on_release inside:{
144 if(framerate<10){
145 framerate=framerate+1;
146 framerate_swf.nextframe(1);}
147 clearInterval( intervalID1 );
148 clearInterval( intervalID2 );
149 clearInterval( intervalID3 );
150 clearInterval( intervalID4 );
151 clearInterval( intervalID5 );
152 clearInterval( intervalID6 );
153
154
155 if(intervalID1 != 0){
156 intervalID1 = setInterval( PlayMovie1, 1000/framerate );}
157
158 if(intervalID2 != 0){
159 intervalID2 = setInterval( PlayMovie2, 1000/framerate );}
160
161 if(intervalID3 != 0){
162 intervalID3 = setInterval( PlayMovie3, 1000/framerate );}
163
164 if(intervalID4 != 0){
165 intervalID4 = setInterval( PlayMovie4, 1000/framerate );}
166
167 if(intervalID5 != 0){
168 intervalID5 = setInterval( PlayMovie5, 1000/framerate );}
169
170 if(intervalID6 != 0){
171 intervalID6 = setInterval( PlayMovie6, 1000/framerate );}}
172
173 .end
174 .end
175
176
177 .action:
178
179 var intervalID1=0;
180 var intervalID2=0;
181 var intervalID3=0;
182 var intervalID4=0;
183 var intervalID5=0;
184 var intervalID6=0;
185 var framerate=5;
186
187 function PlayMovie1(){
188 if(viewport1._currentframe==viewport1._totalframes)
189 viewport1.gotoAndStop(1);
190 else
191 viewport1.nextframe();
192 updateAfterEvent();}
193
194 function PlayMovie2(){
195 if(viewport2._currentframe==viewport2._totalframes)
196 viewport2.gotoAndStop(1);
197 else
198 viewport2.nextframe();
199 updateAfterEvent();}
200
201 function PlayMovie3(){
202 if(viewport3._currentframe==viewport3._totalframes)
203 viewport3.gotoAndStop(1);
204 else
205 viewport3.nextframe();
206 updateAfterEvent();}
207
208 function PlayMovie4(){
209 if(viewport4._currentframe==viewport4._totalframes)
210 viewport4.gotoAndStop(1);
211 else
212 viewport4.nextframe();
213 updateAfterEvent();}
214
215 function PlayMovie5(){
216 if(viewport5._currentframe==viewport5._totalframes)
217 viewport5.gotoAndStop(1);
218 else
219 viewport5.nextframe();
220 updateAfterEvent();}
221
222 function PlayMovie6(){
223 if(viewport6._currentframe==viewport6._totalframes)
224 viewport6.gotoAndStop(1);
225 else
226 viewport6.nextframe();
227 updateAfterEvent();}
228
229 .end
230
231
232
233
234 .button firstbutton0
235 .show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
236 .on_release inside:
237 clearInterval( intervalID );
238 viewport1.gotoAndStop(1);
239 viewport2.gotoAndStop(1);
240 viewport3.gotoAndStop(1);
241 viewport4.gotoAndStop(1);
242 viewport5.gotoAndStop(1);
243 viewport6.gotoAndStop(1);
244 .end
245 .end
246
247 .button firstbutton1
248 .show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
249 .on_release inside:
250 viewport1.gotoAndStop(1);
251 .end
252 .end
253
254 .button firstbutton2
255 .show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
256 .on_release inside:
257 viewport2.gotoAndStop(1);
258 .end
259 .end
260
261 .button firstbutton3
262 .show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
263 .on_release inside:
264 viewport3.gotoAndStop(1);
265 .end
266 .end
267
268 .button firstbutton4
269 .show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
270 .on_release inside:
271 viewport4.gotoAndStop(1);
272 .end
273 .end
274
275 .button firstbutton5
276 .show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
277 .on_release inside:
278 viewport5.gotoAndStop(1);
279 .end
280 .end
281
282 .button firstbutton6
283 .show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
284 .on_release inside:
285 viewport6.gotoAndStop(1);
286 .end
287 .end
288
289
290
291 .button minusbutton0
292 .show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
293 .on_release inside:
294 viewport1.prevframe(1);
295 viewport2.prevframe(1);
296 viewport3.prevframe(1);
297 viewport4.prevframe(1);
298 viewport5.prevframe(1);
299 viewport6.prevframe(1);
300 .end
301 .end
302
303 .button minusbutton1
304 .show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
305 .on_release inside:
306 viewport1.prevframe(1);
307 .end
308 .end
309
310 .button minusbutton2
311 .show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
312 .on_release inside:
313 viewport2.prevframe(1);
314 .end
315 .end
316
317 .button minusbutton3
318 .show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
319 .on_release inside:
320 viewport3.prevframe(1);
321 .end
322 .end
323
324
325 .button minusbutton4
326 .show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
327 .on_release inside:
328 viewport4.prevframe(1);
329 .end
330 .end
331
332 .button minusbutton5
333 .show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
334 .on_release inside:
335 viewport5.prevframe(1);
336 .end
337 .end
338
339 .button minusbutton6
340 .show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
341 .on_release inside:
342 viewport6.prevframe(1);
343 .end
344 .end
345
346 .button stopbutton0
347 .show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
348 .on_release inside:{
349 clearInterval(intervalID1);
350 clearInterval(intervalID2);
351 clearInterval(intervalID3);
352 clearInterval(intervalID4);
353 clearInterval(intervalID5);
354 clearInterval(intervalID6);
355 intervalID1=0;
356 intervalID2=0;
357 intervalID3=0;
358 intervalID4=0;
359 intervalID5=0;
360 intervalID6=0;
361 StopAll();}
362 .end
363 .end
364
365 .button stopbutton1
366 .show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
367 .on_release inside:
368 viewport1.Stop();
369 clearInterval(intervalID1);
370 intervalID1=0;
371 .end
372 .end
373
374 .button stopbutton2
375 .show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
376 .on_release inside:
377 viewport2.Stop();
378 clearInterval(intervalID2);
379 intervalID2=0;
380 .end
381 .end
382
383 .button stopbutton3
384 .show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
385 .on_release inside:
386 viewport3.Stop();
387 clearInterval(intervalID3);
388 intervalID3=0;
389 .end
390 .end
391
392 .button stopbutton4
393 .show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
394 .on_release inside:
395 viewport4.Stop();
396 clearInterval(intervalID4);
397 intervalID4=0;
398 .end
399 .end
400
401 .button stopbutton5
402 .show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
403 .on_release inside:
404 viewport5.Stop();
405 clearInterval(intervalID5);
406 intervalID5=0;
407 .end
408 .end
409
410 .button stopbutton6
411 .show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
412 .on_release inside:
413 viewport6.Stop();
414 clearInterval(intervalID6);
415 intervalID6=0;
416 .end
417 .end
418
419
420 .button playbutton0
421 .show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
422 .on_release inside:{
423 clearInterval( intervalID1 );
424 clearInterval( intervalID2 );
425 clearInterval( intervalID3 );
426 clearInterval( intervalID4 );
427 clearInterval( intervalID5 );
428 clearInterval( intervalID6 );
429 intervalID1 = setInterval( PlayMovie1, 1000/framerate );
430 intervalID2 = setInterval( PlayMovie2, 1000/framerate );
431 intervalID3 = setInterval( PlayMovie3, 1000/framerate );
432 intervalID4 = setInterval( PlayMovie4, 1000/framerate );
433 intervalID5 = setInterval( PlayMovie5, 1000/framerate );
434 intervalID6 = setInterval( PlayMovie6, 1000/framerate );}
435 .end
436 .end
437
438 .button playbutton1
439 .show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
440 .on_release inside:
441 clearInterval( intervalID1 );
442 intervalID1 = setInterval( PlayMovie1, 1000/framerate );
443 .end
444 .end
445
446 .button playbutton2
447 .show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
448 .on_release inside:
449 clearInterval( intervalID2 );
450 intervalID2 = setInterval( PlayMovie2, 1000/framerate );
451 .end
452 .end
453
454 .button playbutton3
455 .show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
456 .on_release inside:
457 clearInterval( intervalID3 );
458 intervalID3 = setInterval( PlayMovie3, 1000/framerate );
459 .end
460 .end
461
462 .button playbutton4
463 .show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
464 .on_release inside:
465 clearInterval( intervalID4 );
466 intervalID4 = setInterval( PlayMovie4, 1000/framerate );
467 .end
468 .end
469
470 .button playbutton5
471 .show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
472 .on_release inside:
473 clearInterval( intervalID5 );
474 intervalID5 = setInterval( PlayMovie5, 1000/framerate );
475 .end
476 .end
477
478 .button playbutton6
479 .show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
480 .on_release inside:
481 clearInterval( intervalID6 );
482 intervalID6 = setInterval( PlayMovie6, 1000/framerate );
483 .end
484 .end
485
486
487
488 .button plusbutton0
489 .show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
490 .on_release inside:
491 viewport1.nextframe(1);
492 viewport2.nextframe(1);
493 viewport3.nextframe(1);
494 viewport4.nextframe(1);
495 viewport5.nextframe(1);
496 viewport6.nextframe(1);
497 .end
498 .end
499
500 .button plusbutton1
501 .show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
502 .on_release inside:
503 viewport1.nextframe(1);
504 .end
505 .end
506
507 .button plusbutton2
508 .show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
509 .on_release inside:
510 viewport2.nextframe(1);
511 .end
512 .end
513
514 .button plusbutton3
515 .show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
516 .on_release inside:
517 viewport3.nextframe(1);
518 .end
519 .end
520
521 .button plusbutton4
522 .show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
523 .on_release inside:
524 viewport4.nextframe(1);
525 .end
526 .end
527
528 .button plusbutton5
529 .show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
530 .on_release inside:
531 viewport5.nextframe(1);
532 .end
533 .end
534
535 .button plusbutton6
536 .show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
537 .on_release inside:
538 viewport6.nextframe(1);
539 .end
540 .end
541
542
543 .button lastbutton0
544 .show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
545 .on_release inside:
546 clearInterval( intervalID );
547 viewport1.gotoAndStop(10000);
548 viewport2.gotoAndStop(10000);
549 viewport3.gotoAndStop(10000);
550 viewport4.gotoAndStop(10000);
551 viewport5.gotoAndStop(10000);
552 viewport6.gotoAndStop(10000);
553 .end
554 .end
555
556 .button lastbutton1
557 .show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
558 .on_release inside:
559 viewport1.gotoAndStop(10000);
560 .end
561 .end
562
563 .button lastbutton2
564 .show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
565 .on_release inside:
566 viewport2.gotoAndStop(10000);
567 .end
568 .end
569
570 .button lastbutton3
571 .show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
572 .on_release inside:
573 viewport3.gotoAndStop(10000);
574 .end
575 .end
576
577 .button lastbutton4
578 .show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
579 .on_release inside:
580 viewport4.gotoAndStop(10000);
581 .end
582 .end
583
584 .button lastbutton5
585 .show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
586 .on_release inside:
587 viewport5.gotoAndStop(10000);
588 .end
589 .end
590
591 .button lastbutton6
592 .show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
593 .on_release inside:
594 viewport6.gotoAndStop(10000);
595 .end
596 .end
597
598
599
600 .put firstbutton0 x=560 y=-50
601 .put firstbutton1 x=70 y=0
602 .put firstbutton2 x=650 y=0
603 .put firstbutton3 x=1230 y=0
604 .put firstbutton4 x=70 y=580
605 .put firstbutton5 x=650 y=580
606 .put firstbutton6 x=1230 y=580
607 .put minusbutton0 x=590 y=-50
608 .put minusbutton1 x=100 y=0
609 .put minusbutton2 x=680 y=0
610 .put minusbutton3 x=1260 y=0
611 .put minusbutton4 x=100 y=580
612 .put minusbutton5 x=680 y=580
613 .put minusbutton6 x=1260 y=580
614 .put stopbutton0 x=620 y=-50
615 .put stopbutton1 x=130 y=0
616 .put stopbutton2 x=710 y=0
617 .put stopbutton3 x=1290 y=0
618 .put stopbutton4 x=130 y=580
619 .put stopbutton5 x=710 y=580
620 .put stopbutton6 x=1290 y=580
621 .put playbutton0 x=650 y=-50
622 .put playbutton1 x=160 y=0
623 .put playbutton2 x=740 y=0
624 .put playbutton3 x=1320 y=0
625 .put playbutton4 x=160 y=580
626 .put playbutton5 x=740 y=580
627 .put playbutton6 x=1320 y=580
628 .put plusbutton0 x=680 y=-50
629 .put plusbutton1 x=190 y=0
630 .put plusbutton2 x=770 y=0
631 .put plusbutton3 x=1350 y=0
632 .put plusbutton4 x=190 y=580
633 .put plusbutton5 x=770 y=580
634 .put plusbutton6 x=1350 y=580
635 .put lastbutton0 x=710 y=-50
636 .put lastbutton1 x=220 y=0
637 .put lastbutton2 x=800 y=0
638 .put lastbutton3 x=1380 y=0
639 .put lastbutton4 x=220 y=580
640 .put lastbutton5 x=800 y=580
641 .put lastbutton6 x=1380 y=580
642 .put framerate_slower x=800 y=-50
643 .put framerate_faster x=880 y=-50
644 .put framerate_5 x=840 y=-50
645
646
647 .end
648
649
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!