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 	     viewport1.nextframe();
 101 	     updateAfterEvent(); 
 102 	     }
 103 	 
 104 	.end
 105 
 106 
 107 
 108 
 109 	.button firstbutton
 110         	.show goto_first_slide as=area,idle,hover,pressed scalex=100% scaley=100%
 111         	.on_release inside:
 112 		    clearInterval( intervalID );
 113         	    viewport1.gotoAndStop(1);
 114         	.end
 115 	.end
 116 
 117 
 118 	.button minusbutton
 119         	.show goto_previous_slide as=area,idle,hover,pressed scalex=100% scaley=100%
 120         	.on_release inside:
 121         	    viewport1.prevframe(1);
 122         	.end
 123     	.end
 124 
 125 
 126 	.button stopbutton
 127         	.show do_stop as=area,idle,hover,pressed scalex=100% scaley=100%
 128         	.on_release inside:
 129 		    clearInterval(intervalID);
 130 		    intervalID=0;
 131         	    viewport1.Stop();
 132         	.end
 133     	.end
 134 
 135 
 136 	.button playbutton
 137         	.show do_start as=area,idle,hover,pressed scalex=100% scaley=100%
 138         	.on_release inside:{
 139 		  viewport1.Stop();
 140 		  clearInterval( intervalID );
 141 		  intervalID = setInterval( PlayMovie, 1000/framerate );}
 142         	.end
 143     	.end
 144 
 145 
 146 	.button plusbutton
 147         	.show goto_next_slide as=area,idle,hover,pressed scalex=100% scaley=100%
 148         	.on_release inside:
 149         	    viewport1.nextframe(1);
 150 
 151         	.end
 152     	.end
 153 
 154 
 155 	.button lastbutton
 156         	.show goto_last_slide as=area,idle,hover,pressed scalex=100% scaley=100%
 157         	.on_release inside:
 158 		    clearInterval( intervalID );
 159         	    viewport1.gotoAndStop(10000);
 160         	.end
 161     	.end
 162 
 163 
 164 	.put firstbutton x=120 y=-50 
 165         .put minusbutton x=150 y=-50
 166         .put stopbutton x=180 y=-50
 167         .put playbutton x=210 y=-50
 168         .put plusbutton x=240 y=-50
 169         .put lastbutton x=270 y=-50
 170 	.put framerate_slower x=330 y=-50
 171 	.put framerate_faster x=410 y=-50 
 172 	.put framerate_5 x=370 y=-50
 173 
 174 
 175 .end
 176 
 177         

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-06-06 13:58:44, 4.4 KB) [[attachment:template_1frames.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!