Dateianhang 'template_5frames.sc'

Herunterladen

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

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.
  • [laden | anzeigen] (2006-07-10 14:00:08, 8.2 KB) [[attachment:template_2frames.sc]]
  • [laden | anzeigen] (2006-07-10 14:00:20, 8.4 KB) [[attachment:template_2frames_describe.sc]]
  • [laden | anzeigen] (2006-07-10 14:00:24, 10.6 KB) [[attachment:template_3frames.sc]]
  • [laden | anzeigen] (2006-07-10 14:00:31, 10.7 KB) [[attachment:template_3frames_describe.sc]]
  • [laden | anzeigen] (2006-07-10 14:00:36, 12.9 KB) [[attachment:template_4frames.sc]]
  • [laden | anzeigen] (2006-07-10 14:00:40, 13.1 KB) [[attachment:template_4frames_describe.sc]]
  • [laden | anzeigen] (2006-07-10 14:00:44, 15.3 KB) [[attachment:template_5frames.sc]]
  • [laden | anzeigen] (2006-07-10 14:00:49, 15.4 KB) [[attachment:template_5frames_describe.sc]]
  • [laden | anzeigen] (2006-07-10 14:00:56, 17.6 KB) [[attachment:template_6frames.sc]]
 Alle Dateien | Ausgewählte Dateien: löschen verschieben auf Seite kopieren auf Seite

Sie dürfen keine Anhänge an diese Seite anhängen!