<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "http://www.web3d.org/specifications/x3d-3.0.dtd">
<![CDATA[
ecmascript: // setting the value of an eventOut variable also sends it as an event // you can view the output of print statements in the VRML Console function toggle ( value, ts ) { // only toggle on click (isActive true) not release (isActive false) if ( value == false ) return; if ( state == true ) { state = false; stateTurnedFalse = true; Browser.print ('ToggleScript.state = ' + state + ', stateTurnedFalse = ' + true); } else { state = true; stateTurnedTrue = true; Browser.print ('ToggleScript.state = ' + state + ', stateTurnedTrue = ' + true); } }
]]>
<![CDATA[
ecmascript: // setting the value of an eventOut variable also sends it as an event function setStart ( value, timeStamp ) { startEventTime = timeStamp; Browser.print ('TimeFilter.setStart (' + value + '), startEventTime = ' + timeStamp); Browser.print ('\n'); // newline } function setStop ( value, timeStamp ) { stopEventTime = timeStamp; Browser.print ('TimeFilter.setStop (' + value + '), stopEventTime = ' + timeStamp); Browser.print ('\n'); // newline }
]]>
<!-- Color key: <X3dNode DEF='idName' field='value'/> matches <XmlElement DEF='idName' attribute='value'/> -->
<!-- Additional help information about X3D scenes: X3D Resources, X3D Scene Authoring Hints and X3D Tooltips -->