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