Table of contents
Chapter index
Previous slide
Next slide
436
Initializing a program script
Writing program scripts with Java
Initializing a program script
The optional
initialize
method is called when the script is loaded
public void initialize ( ) { . . . }
Initialization occurs when:
the
Script
node is created (typically when the browser loads the world)