Dateianhang 'template_5frames_describe.sc'

Herunterladen

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

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!