Dateianhang 'template_1frames_describe.sc'

Herunterladen

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

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!