In the main scene: you can pick the url of the inline in order to:
- find out the time it takes to load it
- be notified when the file is loaded
In layer 1: the animation it played/stopped by accessing the 'children' nodes
of the inline and finding the timesensor of the animation in the nodes,
in order to stop/play the animation.
In the layer 2: you randomly add and remove nodes dynamically once again using
the 'children' field (and it's two events 'addChildren' and 'removeChildren').
Also, using the 'getName' and 'getType' extensions, you know what is the type
and instance name of the node.
Using Inlines, you can import other files in your scene. Also see
prototypes & externprotos for a more advanced way to import other vrml
files in your scene. Inlines can contain all types of vrml, from a simple
box to a whole scene. Combined with server-generated files, it is
easy to create dynamic scenes and applications.
|