#X3D V3.0 utf8 PROFILE Immersive # [meta] reference: http://www.hypermultimedia.com/x3d/URLTests/USEInlineURLField.x3dv # example is expected to replace the scene when the loaded scene is clicked NavigationInfo { headlight FALSE type [ "EXAMINE" "FLY" "ANY" ] } Background { skyColor [ 0 0 0 ] } DEF FRONT Viewpoint { description "FRONT" orientation 0 1 0 0 position 0 0 60 } DEF MainSceneNode Transform { scale 3 3 3 children [ DEF NextSensor TouchSensor { } DEF MainScene Inline { url [ "Instancing.x3dv" "http://www.hypermultimedia.com/x3d/URLTests/Instancing.x3dv" ] } ]} DEF LoadNewURL Script { directOutput TRUE inputOnly SFBool znext initializeOnly SFNode TargetNode USE MainScene initializeOnly MFString nexturl [ "RedSphereBlueBox.x3dv" "http://www.hypermultimedia.com/x3d/URLTests/RedSphereBlueBox.x3dv" ] url [ "USEURLFieldChange.js" "http://www.hypermultimedia.com/x3d/URLTests/USEURLFieldChange.js" ] } ROUTE NextSensor.isActive TO LoadNewURL.znext