Table of Contents Previous Chapter Summary Chapter Viewpoint Slideshow Javadoc for translated java source Next Chapter Summary X3D Resources

X3D Example Archives: Conformance Nist, Miscellaneous, Script

 

Script contains author-programmed event behaviors for a scene. Define the script input-output event interface by including field definitions. Scripting code is embedded in a child CDATA node or (deprecated) in the url field. Optionally supported programming languages are ECMAScript (JavaScript) and Java (via url to a myNode.class file).

X3D Tooltips of interest: Script node, field, and ROUTE.

X3D Specification sections of interest: 29 Scripting component, 29.2 Concepts, 29.4.1 Script and 7.2.5.7 ROUTE statement.

X3D Examples Archives of related interest:

 
  4 X3D Scenes       Scene Descriptions
ScriptNodeEventOutControl_EcmaScript Script Node Event Out Control Ecma Script Script node interface between VRML and EcmaScript: this conformance example tests event-based VRML/EcmaScript functionality.
ScriptNodeEventOutControl_Java Script Node Event Out Control Java Script node interface between VRML and Java: this conformance example tests event-based VRML_Java functionality.
ScriptNodeFieldControl_EcmaScript Script Node Field Control Ecma Script Script node interface between VRML and EcmaScript: this conformance example tests field-based VRML/EcmaScript functionality.
ScriptNodeFieldControl_Java Script Node Field Control Java Script node interface between VRML and Java: this conformance example tests field-based VRML-Java functionality.

Online at http://www.web3d.org/x3d/content/examples/ConformanceNist/Miscellaneous/Script

Validate XHTML 1.1

Master source-code model archive is under subversion control at
http://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/ConformanceNist/Miscellaneous/Script

The X3D Resources: Examples page and Savage Developers Guide provide more information about the production of this archive.

Table of Contents Previous Chapter Summary Chapter Viewpoint Slideshow Javadoc for translated java source Next Chapter Summary X3D Resources