onloadLoop_0_00.x3d source
<?xml version="1.0" encoding="UTF-8"?>

<X3D>
<Scene>
<Viewpoint/>
<NavigationInfo
type='"EXAMINE"'
/>
<!-- red cone -->
<Transform DEF='Cone-Tf'>
<Transform translation='3 0 0'>
<Shape>
<Appearance>
<Material diffuseColor='1 0 0'/>
</Appearance>
<Cone height='0.5' bottomRadius='0.2'/>
</Shape>
</Transform>
</Transform>

<!-- TimeSensor -->
<TimeSensor DEF='TiS' cycleInterval='5'/>

<!-- Turn Animation -->
<OrientationInterpolator DEF='OI'
key='0 0.25 0.5 0.75 1'
keyValue='0 0 1 0
0 0 1 1.5708
0 0 1 3.1416
0 0 1 4.7124
0 0 1 6.2832
'
/>

<!-- auto start script -->
<Script DEF='Sc'>
<field accessType='outputOnly' type='SFTime' name='startTime'/>
<![CDATA[ecmascript:

function initialize () {

var d = new Date();
var t = d.getTime();
if ( t > 1072224000000 ) t /= 1000;
startTime = t + 2;

}
]]>
</Script>

<ROUTE fromNode='Sc' fromField='startTime' toNode='TiS' toField='startTime'/>

<ROUTE fromNode='TiS' fromField='fraction_changed' toNode='OI' toField='set_fraction'/>
<ROUTE fromNode='OI' fromField='value_changed' toNode='Cone-Tf' toField='rotation'/>
</Scene>
</X3D>