drawing_2_0_00.x3d source
<?xml version="1.0" encoding="UTF-8"?>
<X3D>
<Scene>
<ExternProtoDeclare name='ColorBall' url='"proto_colorball_0_00.x3d"'>
<field accessType='inputOutput' type='SFVec3f' name='ballPosition'/>
<field accessType='inputOnly' type='SFTime' name='startFloat'/>
</ExternProtoDeclare>

<Viewpoint position='0 10 12' orientation='1 0 0 -0.78'/>
<NavigationInfo
type='
"EXAMINE"'
/>

<Transform>
<Shape>
<Appearance>
<Material diffuseColor='0.6 0.3 0'/>
</Appearance>
<Box size='10 0.1 10'/>
</Shape>
<TouchSensor DEF='ThS'/>
</Transform>

<Group DEF='Balls-Gp'>
</Group>

<Script DEF='Sc'>
<field accessType='inputOnly' type='SFVec3f' name='set_hitPoint'/>
<field accessType='outputOnly' type='MFNode' name='addChildren'/>
<![CDATA[ecmascript:

function set_hitPoint(vec,et) {

var Ball = new SFNode ( 'ColorBall {}' );
Ball.ballPosition = vec;
Ball.startFloat = et + 1;

addChildren[0] = Ball;

}
]]>
</Script>
<ROUTE fromNode='ThS' fromField='hitPoint_changed' toNode='Sc' toField='set_hitPoint'/>
<ROUTE fromNode='Sc' fromField='addChildren' toNode='Balls-Gp' toField='addChildren'/>
</Scene>
</X3D>