Dateianhang 'template_1frames.sc'

Herunterladen

   1 # template_1frames.sc
   2 
   3 #   SWF Movie Control (1 swf)
   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_1frames.swf" version=7 background=white fps=10
  23 
  24 	.jpeg goto_first_slide "first.jpg" quality=100% 
  25         .jpeg goto_next_slide "next.jpg" quality=100% 
  26         .jpeg goto_previous_slide "previous.jpg" quality=100% 
  27         .jpeg goto_last_slide "last.jpg" quality=100% 
  28         .jpeg do_start "start.jpg" quality=100% 
  29         .jpeg do_stop "stop.jpg" quality=100% 
  30 	.jpeg faster "plus.jpg" quality=100%
  31 	.jpeg slower "minus.jpg" quality=100%
  32 	.jpeg normal_fps "null.jpg" quality=100%
  33 	.swf framerate_swf "framerate.swf" 
  34 	
  35 	.put framerate_swf x=470 y=-50 scale=100%	
  36 
  37 	.box viewport1 width=576 height=576 color=gray fill=white
  38 	.put viewport1 x=70 y=0 scale=100%
  39 
  40 
  41 	.action:
  42 	   framerate_swf.gotoAndStop(5);	
  43 	   viewport1.Stop();
  44 	.end
  45 
  46 
  47 
  48 	.button framerate_slower
  49 	      .show slower as=idle,area,hover,pressed scale=100%
  50 	      .on_release inside:{
  51 		if(framerate>1){
  52 			framerate=framerate-1;
  53 			framerate_swf.prevframe(1);}
  54 		clearInterval( intervalID );
  55 
  56 		if(intervalID != 0){
  57 		intervalID = setInterval( PlayMovie, 1000/framerate );}}
  58 
  59 	       .end
  60 	.end
  61 
  62 	
  63 	.button framerate_5
  64 		.show normal_fps as=idle,area,hover,pressed scale=100% 
  65 		.on_release inside:{
  66 			framerate=5;
  67 			framerate_swf.gotoAndStop(5);
  68 			clearInterval( intervalID );
  69 
  70 		if(intervalID != 0)
  71 		intervalID = setInterval( PlayMovie, 1000/framerate );}
  72 		.end
  73 	.end
  74 
  75 
  76 	.button framerate_faster
  77 	       .show faster as=idle,area,hover,pressed scale=100% 
  78 	       .on_release inside:{
  79 		if(framerate<10){
  80 			framerate=framerate+1;
  81 			framerate_swf.nextframe(1);}
  82 		clearInterval( intervalID );
  83 
  84 		if(intervalID != 0){
  85 		intervalID = setInterval( PlayMovie, 1000/framerate );}}
  86 
  87 	       .end
  88 	.end	
  89 
  90 
  91 
  92 	.action:
  93 
  94 	    var intervalID=0; 	 
  95 	    var framerate=5;
  96 
  97 	    function PlayMovie(){
  98 	     if(viewport1._currentframe==viewport1._totalframes)
  99 	       viewport1.gotoAndStop(1);
 100          else
 101 	       viewport1.nextframe();
 102 	     updateAfterEvent(); 
 103 	     }
 104 	 
 105 	.end
 106 
 107 
 108 
 109 
 110 	.button firstbutton
 111         	.show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
 112         	.on_release inside:
 113 		    clearInterval( intervalID );
 114         	    viewport1.gotoAndStop(1);
 115         	.end
 116 	.end
 117 
 118 
 119 	.button minusbutton
 120         	.show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
 121         	.on_release inside:
 122         	    viewport1.prevframe(1);
 123         	.end
 124     	.end
 125 
 126 
 127 	.button stopbutton
 128         	.show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
 129         	.on_release inside:
 130 		    clearInterval(intervalID);
 131 		    intervalID=0;
 132         	    viewport1.Stop();
 133         	.end
 134     	.end
 135 
 136 
 137 	.button playbutton
 138         	.show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
 139         	.on_release inside:{
 140 		  viewport1.Stop();
 141 		  clearInterval( intervalID );
 142 		  intervalID = setInterval( PlayMovie, 1000/framerate );}
 143         	.end
 144     	.end
 145 
 146 
 147 	.button plusbutton
 148         	.show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
 149         	.on_release inside:
 150         	    viewport1.nextframe(1);
 151 
 152         	.end
 153     	.end
 154 
 155 
 156 	.button lastbutton
 157         	.show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
 158         	.on_release inside:
 159 		    clearInterval( intervalID );
 160         	    viewport1.gotoAndStop(10000);
 161         	.end
 162     	.end
 163 
 164 
 165 	.put firstbutton x=120 y=-50 
 166         .put minusbutton x=150 y=-50
 167         .put stopbutton x=180 y=-50
 168         .put playbutton x=210 y=-50
 169         .put plusbutton x=240 y=-50
 170         .put lastbutton x=270 y=-50
 171 	.put framerate_slower x=330 y=-50
 172 	.put framerate_faster x=410 y=-50 
 173 	.put framerate_5 x=370 y=-50
 174 
 175 
 176 .end
 177 
 178         

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-13 13:18:48, 30.0 KB) [[attachment:buttons.tar]]
  • [laden | anzeigen] (2006-07-10 14:07:57, 89.3 KB) [[attachment:mini1.swf]]
  • [laden | anzeigen] (2006-07-10 13:59:35, 4.4 KB) [[attachment:template_1frames.sc]]
  • [laden | anzeigen] (2006-07-10 13:59:39, 4.5 KB) [[attachment:template_1frames_describe.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!