Dateianhang 'template_2frames.sc'

Herunterladen

   1 # template_2frames.sc
   2 
   3 #   SWF Movie Control (2 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_2frames.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 
  45 	.action:
  46 	   framerate_swf.gotoAndStop(5);
  47     	   StopAll();
  48     	
  49 
  50 	  function StopAll(){
  51 		viewport1.Stop();
  52 	  	viewport2.Stop();}
  53 	.end
  54 
  55 
  56 	.button framerate_slower
  57 	      .show slower as=idle,area,hover,pressed scale=100%
  58 	      .on_release inside:{
  59 		if(framerate>1){
  60 			framerate=framerate-1;
  61 			framerate_swf.prevFrame(1);}
  62 		clearInterval( intervalID1 );
  63 		clearInterval( intervalID2 );
  64 
  65 		if(intervalID1 != 0){
  66 		intervalID1 = setInterval( PlayMovie1, 1000/framerate );}
  67 
  68 		if(intervalID2 != 0){ 
  69 		intervalID2 = setInterval( PlayMovie2, 1000/framerate );}}
  70 	       .end
  71 	.end
  72 
  73 	.button framerate_5
  74 		.show normal_fps as=idle,area,hover,pressed scale=100% 
  75 		.on_release inside:{
  76 	  		framerate_swf.gotoAndStop(5);
  77 			framerate=5;
  78 			clearInterval( intervalID1 );
  79 			clearInterval( intervalID2 );
  80 
  81 		if(intervalID1 != 0)
  82 		intervalID1 = setInterval( PlayMovie1, 1000/framerate );
  83 
  84 		if(intervalID2 != 0)
  85 		intervalID2 = setInterval( PlayMovie2, 1000/framerate );}
  86 		.end
  87 	.end
  88 
  89 
  90 	.button framerate_faster
  91 	       .show faster as=idle,area,hover,pressed scale=100% 
  92 	       .on_release inside:{
  93 		if(framerate<10){
  94 			framerate=framerate+1;
  95 			framerate_swf.nextFrame(1);}
  96 		clearInterval( intervalID1 );
  97 		clearInterval( intervalID2 );
  98 
  99 
 100 		if(intervalID1 != 0){
 101 		intervalID1 = setInterval( PlayMovie1, 1000/framerate );}
 102 
 103 		if(intervalID2 != 0){
 104 		intervalID2 = setInterval( PlayMovie2, 1000/framerate );}}
 105 	       .end
 106 	.end	
 107 
 108 
 109 	.action:
 110 
 111 	    var intervalID1=0; 	
 112 	    var intervalID2=0;
 113 	    var framerate=5;
 114 
 115 
 116 	 
 117 	    function PlayMovie1(){
 118 	    if(viewport1._currentframe==viewport1._totalframes)
 119 	       viewport1.gotoAndStop(1);
 120         else
 121 	       viewport1.nextframe();
 122 	     updateAfterEvent();}
 123 
 124 	    function PlayMovie2(){
 125 	    if(viewport2._currentframe==viewport2._totalframes)
 126 	       viewport2.gotoAndStop(1);
 127         else
 128 	       viewport2.nextframe();
 129 	     updateAfterEvent();}
 130 
 131 	.end
 132 
 133 
 134 
 135 
 136 	.button firstbutton0
 137         	.show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
 138         	.on_release inside:
 139 		    clearInterval( intervalID );
 140         	    viewport1.gotoAndStop(1);
 141 		    viewport2.gotoAndStop(1);
 142         	.end
 143 	.end
 144 
 145 	.button firstbutton1
 146         	.show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
 147         	.on_release inside:
 148         	    viewport1.gotoAndStop(1);
 149         	.end
 150        	.end
 151 
 152 	.button firstbutton2
 153         	.show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
 154         	.on_release inside:
 155 		    viewport2.gotoAndStop(1);
 156         	.end
 157        	.end
 158 
 159 	.button minusbutton0
 160         	.show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
 161         	.on_release inside:
 162         	    viewport1.prevframe(1);
 163 		    viewport2.prevframe(1);
 164         	.end
 165     	.end
 166 
 167 	.button minusbutton1
 168         	.show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
 169         	.on_release inside:
 170         	    viewport1.prevframe(1);
 171         	.end
 172     	.end
 173 
 174 	.button minusbutton2
 175         	.show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
 176         	.on_release inside:
 177 		    viewport2.prevframe(1);
 178         	.end
 179     	.end
 180 
 181 
 182 	.button stopbutton0
 183         	.show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
 184         	.on_release inside:{
 185 		    clearInterval(intervalID1);
 186 		    clearInterval(intervalID2);
 187 		    intervalID1=0;
 188 		    intervalID2=0;
 189 		    StopAll();}
 190         	.end
 191     	.end
 192 
 193 	.button stopbutton1
 194         	.show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
 195         	.on_release inside:
 196 		    viewport1.Stop();
 197 		    clearInterval(intervalID1);
 198 		    intervalID1=0;
 199         	.end
 200     	.end
 201 
 202 	.button stopbutton2
 203         	.show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
 204         	.on_release inside:
 205 		    viewport2.Stop();
 206 		    clearInterval(intervalID2);
 207 		    intervalID2=0;
 208         	.end
 209     	.end
 210 
 211 
 212 	.button playbutton0
 213         	.show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
 214         	.on_release inside:{
 215 		    clearInterval( intervalID1 );
 216 		    clearInterval( intervalID2 );
 217 		    intervalID1 = setInterval( PlayMovie1, 1000/framerate );
 218 		    intervalID2 = setInterval( PlayMovie2, 1000/framerate );}
 219         	.end
 220     	.end
 221 
 222 	.button playbutton1
 223         	.show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
 224         	.on_release inside:
 225 		    clearInterval( intervalID1 );
 226 		 intervalID1 = setInterval( PlayMovie1, 1000/framerate );
 227         	.end
 228     	.end
 229 
 230 	.button playbutton2
 231         	.show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
 232         	.on_release inside:
 233 		    clearInterval( intervalID2 );
 234 		 intervalID2 = setInterval( PlayMovie2, 1000/framerate );
 235         	.end
 236     	.end
 237 
 238 
 239 
 240 	.button plusbutton0
 241         	.show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
 242         	.on_release inside:
 243         	    viewport1.nextframe(1);
 244 		    viewport2.nextframe(1);
 245         	.end
 246     	.end
 247 
 248 	.button plusbutton1
 249         	.show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
 250         	.on_release inside:
 251         	    viewport1.nextframe(1);
 252         	.end
 253     	.end
 254 
 255 	.button plusbutton2
 256         	.show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
 257         	.on_release inside:
 258 		    viewport2.nextframe(1);
 259         	.end
 260     	.end
 261 
 262 
 263 	.button lastbutton0
 264         	.show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
 265         	.on_release inside:
 266 		    clearInterval( intervalID );
 267         	    viewport1.gotoAndStop(10000);
 268 		    viewport2.gotoAndStop(10000);
 269         	.end
 270     	.end
 271 
 272 	.button lastbutton1
 273         	.show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
 274         	.on_release inside:
 275         	    viewport1.gotoAndStop(10000);
 276         	.end
 277     	.end
 278 
 279 	.button lastbutton2
 280         	.show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
 281         	.on_release inside:
 282 		    viewport2.gotoAndStop(10000);
 283         	.end
 284     	.end
 285 
 286 
 287 	.put firstbutton0 x=560 y=-50 
 288 	.put firstbutton1 x=10 y=0
 289 	.put firstbutton2 x=1240 y=0
 290         .put minusbutton0 x=590 y=-50
 291 	.put minusbutton1 x=10 y=30
 292 	.put minusbutton2 x=1240 y=30
 293         .put stopbutton0 x=620 y=-50
 294 	.put stopbutton1 x=10 y=60
 295 	.put stopbutton2 x=1240 y=60
 296         .put playbutton0 x=650 y=-50
 297         .put playbutton1 x=10 y=90
 298         .put playbutton2 x=1240 y=90
 299         .put plusbutton0 x=680 y=-50
 300         .put plusbutton1 x=10 y=120
 301         .put plusbutton2 x=1240 y=120
 302         .put lastbutton0 x=710 y=-50
 303         .put lastbutton1 x=10 y=150
 304         .put lastbutton2 x=1240 y=150
 305 	.put framerate_slower x=800 y=-50
 306 	.put framerate_faster x=880 y=-50  
 307 	.put framerate_5 x=840 y=-50
 308 
 309 
 310 .end
 311 
 312         

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!