media @ VU
[] readme course preface I 1 2 II 3 4 III 5 6 7 IV 8 9 10 V 11 12 afterthoughts appendix references examples resources _

talk show tell print

media-proto-slideset.vr

media-proto-slideset.vr (wrl ) [ flux / bitmanagement / cortona / octaga ]


  

slideset


  PROTO slideset [
      exposedField SFInt32    visible 0
      exposedField MFNode     slides []
      eventIn SFInt32         next
  ] {
      DEF select Switch {
          choice      IS slides
          whichChoice IS visible
      }
  
      Script {
      directOutput TRUE
      eventIn SFInt32 next IS next
      field SFInt32 slide IS visible
      field SFNode select USE select
      field MFNode slides []
      url "javascript:
      function next(value) {
      slides = select.choice;
      Browser.print('=' + slide + ' ' + slides.length);
      if (slide >= (slides.length-1)) slide = 0;
      else slide += 1;
      select.whichChoice = slide;
      }"
      } ## end script
  }
  


(C) A. Eliëns 21/5/2007

You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.