This method adds the specified object to the DOM with the given name. The
specified object gets added to the shell root object. This
object is global to all scenes. To access the object from JavaScript use
shell.domObjName.
function onSample()
{
var myObject = new Object();
if (myObject)
{
shell.addDOMObject("myObject", myObject);
}
}
function onSample2()
{
// Now you can access the object from the Shell.
var myObject = shell.myObject
}