<?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"><X3D profile='Immersive' version='3.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation=' http://www.web3d.org/specifications/x3d-3.0.xsd '>
<![CDATA[
ecmascript:
function trigger_event(value, ts)
{
// do something and then fetch values
Browser.createVRMLFromURL(url, myself, 'nodesLoaded');
}
function nodesLoaded(value, timestamp)
{
if (value.length > 5)
{
// do something more than 5 nodes in this MFNode...
}
root.addChildren = value;
}
// example is missing reference to the url field defined above
]]>
<!-- Tag color codes: <Node DEF='idName' attribute='value'/> -->