Table of contents Chapter index Previous slide Next slide 417
A sample JavaScript script

Writing program scripts with JavaScript
A sample JavaScript script
  • Event processing actions needed:
  • set_fraction eventIn function
  • No need for eventsProcessed function
  • DEF Bouncer Script {
    
        . . .
    
        url "vrmlscript:
    
            function set_fraction( frac, tm ) {
    
                . . .
    
            }"
    
    }