Dateianhang 'template_3frames.sc'
Herunterladen 1 # template_3frames.sc
2
3 # SWF Movie Control (3 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_3frames.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=360 y=580 scale=100%
46
47
48 .action:
49 framerate_swf.gotoAndStop(5);
50 StopAll();
51
52 function StopAll(){
53 viewport1.Stop();
54 viewport2.Stop();
55 viewport3.Stop();}
56
57 .end
58
59
60 .button framerate_slower
61 .show slower as=idle,area,hover,pressed scale=100%
62 .on_release inside:{
63 if(framerate>1){
64 framerate=framerate-1;
65 framerate_swf.prevframe(1);}
66 clearInterval( intervalID1 );
67 clearInterval( intervalID2 );
68 clearInterval( intervalID3 );
69
70 if(intervalID1 != 0){
71 intervalID1 = setInterval( PlayMovie1, 1000/framerate );}
72
73 if(intervalID2 != 0){
74 intervalID2 = setInterval( PlayMovie2, 1000/framerate );}
75
76 if(intervalID3 != 0){
77 intervalID3 = setInterval( PlayMovie3, 1000/framerate );}}
78
79 .end
80 .end
81
82
83 .button framerate_5
84 .show normal_fps as=idle,area,hover,pressed scale=100%
85 .on_release inside:{
86 framerate=5;
87 framerate_swf.gotoAndStop(5);
88 clearInterval( intervalID1 );
89 clearInterval( intervalID2 );
90 clearInterval( intervalID3 );
91
92 if(intervalID1 != 0)
93 intervalID1 = setInterval( PlayMovie1, 1000/framerate );
94
95 if(intervalID2 != 0)
96 intervalID2 = setInterval( PlayMovie2, 1000/framerate );
97
98 if(intervalID3 != 0)
99 intervalID3 = setInterval( PlayMovie3, 1000/framerate );}
100 .end
101 .end
102
103
104 .button framerate_faster
105 .show faster as=idle,area,hover,pressed scale=100%
106 .on_release inside:{
107 if(framerate<10){
108 framerate=framerate+1;
109 framerate_swf.nextframe(1);}
110 clearInterval( intervalID1 );
111 clearInterval( intervalID2 );
112 clearInterval( intervalID3 );
113
114
115 if(intervalID1 != 0){
116 intervalID1 = setInterval( PlayMovie1, 1000/framerate );}
117
118 if(intervalID2 != 0){
119 intervalID2 = setInterval( PlayMovie2, 1000/framerate );}
120
121 if(intervalID3 != 0){
122 intervalID3 = setInterval( PlayMovie3, 1000/framerate );}}
123
124 .end
125 .end
126
127
128 .action:
129
130 var intervalID1=0;
131 var intervalID2=0;
132 var intervalID3=0;
133 var framerate=5;
134
135 function PlayMovie1(){
136 if(viewport1._currentframe==viewport1._totalframes)
137 viewport1.gotoAndStop(1);
138 else
139 viewport1.nextframe();
140 updateAfterEvent();}
141
142 function PlayMovie2(){
143 if(viewport2._currentframe==viewport2._totalframes)
144 viewport2.gotoAndStop(1);
145 else
146 viewport2.nextframe();
147 updateAfterEvent();}
148
149 function PlayMovie3(){
150 if(viewport3._currentframe==viewport3._totalframes)
151 viewport3.gotoAndStop(1);
152 else
153 viewport3.nextframe();
154 updateAfterEvent();}
155
156 .end
157
158
159
160
161 .button firstbutton0
162 .show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
163 .on_release inside:
164 clearInterval( intervalID );
165 viewport1.gotoAndStop(1);
166 viewport2.gotoAndStop(1);
167 viewport3.gotoAndStop(1);
168 .end
169 .end
170
171 .button firstbutton1
172 .show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
173 .on_release inside:
174 viewport1.gotoAndStop(1);
175 .end
176 .end
177
178 .button firstbutton2
179 .show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
180 .on_release inside:
181 viewport2.gotoAndStop(1);
182 .end
183 .end
184
185 .button firstbutton3
186 .show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
187 .on_release inside:
188 viewport3.gotoAndStop(1);
189 .end
190 .end
191
192
193 .button minusbutton0
194 .show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
195 .on_release inside:
196 viewport1.prevframe(1);
197 viewport2.prevframe(1);
198 viewport3.prevframe(1);
199 .end
200 .end
201
202 .button minusbutton1
203 .show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
204 .on_release inside:
205 viewport1.prevframe(1);
206 .end
207 .end
208
209 .button minusbutton2
210 .show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
211 .on_release inside:
212 viewport2.prevframe(1);
213 .end
214 .end
215
216 .button minusbutton3
217 .show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
218 .on_release inside:
219 viewport3.prevframe(1);
220 .end
221 .end
222
223
224 .button stopbutton0
225 .show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
226 .on_release inside:{
227 clearInterval(intervalID1);
228 clearInterval(intervalID2);
229 clearInterval(intervalID3);
230 intervalID1=0;
231 intervalID2=0;
232 intervalID3=0;
233 StopAll();}
234 .end
235 .end
236
237 .button stopbutton1
238 .show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
239 .on_release inside:
240 viewport1.Stop();
241 clearInterval(intervalID1);
242 intervalID1=0;
243 .end
244 .end
245
246 .button stopbutton2
247 .show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
248 .on_release inside:
249 viewport2.Stop();
250 clearInterval(intervalID2);
251 intervalID2=0;
252 .end
253 .end
254
255 .button stopbutton3
256 .show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
257 .on_release inside:
258 viewport3.Stop();
259 clearInterval(intervalID3);
260 intervalID3=0;
261 .end
262 .end
263
264
265 .button playbutton0
266 .show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
267 .on_release inside:{
268 clearInterval( intervalID1 );
269 clearInterval( intervalID2 );
270 clearInterval( intervalID3 );
271 intervalID1 = setInterval( PlayMovie1, 1000/framerate );
272 intervalID2 = setInterval( PlayMovie2, 1000/framerate );
273 intervalID3 = setInterval( PlayMovie3, 1000/framerate );}
274 .end
275 .end
276
277 .button playbutton1
278 .show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
279 .on_release inside:
280 clearInterval( intervalID1 );
281 intervalID1 = setInterval( PlayMovie1, 1000/framerate );
282 .end
283 .end
284
285 .button playbutton2
286 .show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
287 .on_release inside:
288 clearInterval( intervalID2 );
289 intervalID2 = setInterval( PlayMovie2, 1000/framerate );
290 .end
291 .end
292
293 .button playbutton3
294 .show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
295 .on_release inside:
296 clearInterval( intervalID3 );
297 intervalID3 = setInterval( PlayMovie3, 1000/framerate );
298 .end
299 .end
300
301
302 .button plusbutton0
303 .show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
304 .on_release inside:
305 viewport1.nextframe(1);
306 viewport2.nextframe(1);
307 viewport3.nextframe(1);
308 .end
309 .end
310
311 .button plusbutton1
312 .show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
313 .on_release inside:
314 viewport1.nextframe(1);
315 .end
316 .end
317
318 .button plusbutton2
319 .show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
320 .on_release inside:
321 viewport2.nextframe(1);
322 .end
323 .end
324
325 .button plusbutton3
326 .show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
327 .on_release inside:
328 viewport3.nextframe(1);
329 .end
330 .end
331
332
333 .button lastbutton0
334 .show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
335 .on_release inside:
336 clearInterval( intervalID );
337 viewport1.gotoAndstop(10000);
338 viewport2.gotoAndstop(10000);
339 viewport3.gotoAndstop(10000);
340 .end
341 .end
342
343 .button lastbutton1
344 .show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
345 .on_release inside:
346 viewport1.gotoAndstop(10000);
347 .end
348 .end
349
350 .button lastbutton2
351 .show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
352 .on_release inside:
353 viewport2.gotoAndstop(10000);
354 .end
355 .end
356
357 .button lastbutton3
358 .show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
359 .on_release inside:
360 viewport3.gotoAndstop(10000);
361 .end
362 .end
363
364
365 .put firstbutton0 x=560 y=-50
366 .put firstbutton1 x=10 y=0
367 .put firstbutton2 x=1240 y=0
368 .put firstbutton3 x=330 y=580
369 .put minusbutton0 x=590 y=-50
370 .put minusbutton1 x=10 y=30
371 .put minusbutton2 x=1240 y=30
372 .put minusbutton3 x=330 y=610
373 .put stopbutton0 x=620 y=-50
374 .put stopbutton1 x=10 y=60
375 .put stopbutton2 x=1240 y=60
376 .put stopbutton3 x=330 y=640
377 .put playbutton0 x=650 y=-50
378 .put playbutton1 x=10 y=90
379 .put playbutton2 x=1240 y=90
380 .put playbutton3 x=330 y=670
381 .put plusbutton0 x=680 y=-50
382 .put plusbutton1 x=10 y=120
383 .put plusbutton2 x=1240 y=120
384 .put plusbutton3 x=330 y=700
385 .put lastbutton0 x=710 y=-50
386 .put lastbutton1 x=10 y=150
387 .put lastbutton2 x=1240 y=150
388 .put lastbutton3 x=330 y=730
389 .put framerate_slower x=800 y=-50
390 .put framerate_faster x=880 y=-50
391 .put framerate_5 x=840 y=-50
392
393
394 .end
395
396
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!