This method opens a given box file. The method returns a
scene object. The
dictionary can also use the following built-in keys:
- noActivate - This key can be set to true to open the scene, but do
not active it.
- isChildWindow - This key can be set to true to open the scene as a
true child window of its parent.
- useTheme- This key has a value with the format 'ALIASNAME=BOXURL'.
This key sets the theme for this scene.
See the scene class method scene::setThemeForAlias for more information.
function onLaunchSample()
{
var boxFile = "../content/sample.box";
var scn = shell.openScene(boxFile, scene, "Sample", null, null, false);
if (scn)
{
shell.print(scn.url);
}
}