Dateianhang 'template_4frames_describe.sc'

Herunterladen

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

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!